feat(hooks): import reviewed Claude and Codex commands - #1840
Merged
Conversation
Revalidate managed Hook content before rebuilding the native engine and reuse the verified bytes for parsing. Report preserved disabled imports accurately in both CLI surfaces.
Remove process-only superpowers documents from the PR, keep the durable integrity rule in the owned architecture document, and make CLI/TUI/Desktop confirmation and state messaging reflect the actual Hook gates without exposing internal fingerprints.
limityan
marked this pull request as ready for review
July 29, 2026 01:18
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
AgentHookEngineas the only executor. Ecosystem adapters discover and prepare; core owns plan/apply fencing; the service store owns private managed snapshots.bitfun hooks//hooks, with old external-Hook commands retained only as aliases.Product and architecture boundaries
docs/superpowers/**material is excluded; durable behavior and ownership constraints stay in the existing architecture and feature documents.User experience
/hooksactions; root CLI retains the exact fingerprint only where cross-process non-interactive confirmation requires it.Safety and failure handling
hooks.jsonbytes to the native parser; an earlier validity bit cannot authorize newly read commands.Validation
cargo check --workspacecargo test -p bitfun-services-integrations --no-default-features --features hook-import hook_import(13 passed)cargo test -p bitfun-cli hook --no-default-features(19 passed)pnpm --dir src/web-ui run test:run src/infrastructure/config/components/HooksConfig.test.tsx(6 passed)pnpm run type-check:webpnpm run i18n:contract:testpnpm run i18n:auditpnpm run lint:webnode scripts/check-core-boundaries.mjspnpm run check:repo-hygienegit diff --checkCI is intentionally not awaited for this draft.