feat: Year 0 PACK-00–03 Grok behavioral port foundation#102
Merged
Conversation
Implement the Year 0 Grok→Hawk control-plane foundation: PACK-00: ADR-0003, YEAR-0-ACTIVE tracker, call-site inventory, feature flags. PACK-01/02: typed Agent spawn via hawk-core-contracts/agent, explore/plan/ general-purpose wiring, explore bash hard allowlist, taskruntime registry, worktree isolation, BackgroundManager wired into tool context. PACK-03: folder trust store + `hawk trust` CLI, sandbox.toml load/merge/ deny globs, project .hawk/plugins and hooks gated on trust. Depends on hawk-core-contracts#10 (v0.1.6 agent package); submodule pointer updated to feat/agent-spawn-contracts.
Wire decision hooks into PermissionEngine.CheckTool so PreToolUse can deny tool execution before autonomy short-circuits (including YOLO). Also: vendor event aliases (PreToolUse ↔ pre_tool), HTTP decision hooks, hook directory discovery, HAWK_PLUGIN_ROOT/DATA env for plugin hooks and daemons, acceptEdits/dontAsk autonomy aliases, and subagent start/stop lifecycle hook events.
…s.go The PACK-04 commit accidentally overwrote the lifecycle EventBus module in events.go. Restore it and keep vendor CanonicalEvent helpers in aliases.go.
- Manifest components field + DiscoverComponents (tools/hooks/skills/mcp) - Discovery scopes: managed > user > project (trust-gated project) - Marketplace client: multi-source indexes, install by name, add sources - CLI: hawk plugin marketplace list|install|add|sources, plugin inspect - Multi-harness skill dirs (claude/codex/cursor/agents) trust-gated - plugin create scaffolds multi-component layout - HAWK_Y0_MARKETPLACE defaults on
- PACK-06: Monitor/Wait/Kill tools; unified taskruntime shell bridge - PACK-07: Structured AskUser with options, interjection support - PACK-08: Announcements, prompt queue, /btw interjection - Docs: user-guide 01–24 completed - Theme: auto follows system appearance, live preview in picker - Commands: /compact-mode, /scroll-speed, /scroll-invert, /scroll-mode, /terminal-setup, /pager-config, /announcements, /prompt-queue - Settings: scroll, compact, auto-dark/light, paginator configs
…ntrol + docs/plans
…ler, Brotli npm, deny-glob parity (W1C/W2/W3) - install.sh: versioned binary at ~/.hawk/bin/hawk-<v> + tmp-then-rename symlink so a running hawk is never disrupted (macOS codesig SIGKILL rationale); HAWK_HOME/--prefix overrides; Windows cp shim. Download/checksum unchanged. - bin/buf: dotslash-style hermetic buf launcher (SHA-pinned, cache, overridable), checksum placeholders to fill before first use. - internal/crash: panic/signal crash handler (state-dir reports, capability-gated runtime/debug.SetCrashOutput, dump capture), 3 tests. - npm/: Brotli multi-platform packaging (6 sub-packages + meta @graycodeai/hawk), assemble script + postinstall modeled on grok. - internal/sandbox/deny_glob_parity_test.go: deny-glob Linux<->macOS parity test (ported from grok deny/glob.rs invariant), 8 tests. - .gitignore: track bin/buf, keep ignoring build artifacts in bin/.
- crash_runtime.go: remove the blank line gofumpt flags between the stdlib and third-party import groups (gofumpt -w compliance). - scripts/check-ecosystem-boundaries.sh: restore +x (lost in a previous checkout; caused "permission denied" from the "make boundaries" target and CI boundary-guard job).
Checksums verified against the published v1.50.0 release tarballs
(Linux-{x86_64,aarch64}, Darwin-{x86_64,arm64}). Also fixes the asset-name
construction: buf publishes capitalized OS names (Darwin-/Linux-), and
uname -m returns arm64 on macOS vs aarch64 on Linux — the previous
darwin/arm64|aarch64 alternation never matched darwin/aarch64. Map each
real (os,arch) pair explicitly and error on unsupported platforms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Year 0 Grok→Hawk behavioral port foundation (see ADR-0003 and
docs/plans/YEAR-0-ACTIVE.md).PACK-00
HAWK_Y0_*feature flagsPACK-01 / PACK-02
Agent/MultiAgentspawn viahawk-core-contracts/agent(SpawnRequest/SpawnResult)ExploreBashAllowed)internal/taskruntimeunified agent background registry (+ Kill/Wait)isolation=worktree→.hawk/worktrees/…)PACK-03
hawk trust add|remove|list|checksandbox.tomlload/merge (project additive-only) + deny globs.hawk/plugins/ hooks gated whenHAWK_Y0_FOLDER_TRUSTis on (default true)Dependency
external/hawk-core-contractspoints at that branch until merge+tagTest plan
go test ./internal/tool/ ./internal/taskruntime/ ./internal/gitworktree/ ./internal/trust/ ./internal/sandbox/ ./internal/flags/ ./internal/engine/ ./internal/plugin/ ./cmd/go build ./cmd/hawk