Skip to content

feat(governance): harden hook stdout and Cursor gate doctrine#1

Open
frithjo wants to merge 4 commits into
mainfrom
feat/hook-gate-doctrine-and-stdout-hardening
Open

feat(governance): harden hook stdout and Cursor gate doctrine#1
frithjo wants to merge 4 commits into
mainfrom
feat/hook-gate-doctrine-and-stdout-hardening

Conversation

@frithjo

@frithjo frithjo commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • harden mutation hook adapters by emitting codex/claude allow JSON and capturing verify stdout/stderr off the hook pipe
  • add Cursor hook-gate-doctrine.mdc template (alwaysApply), wire it in MANIFEST.toml/REQUIREMENTS.toml, and update Cursor governance doctrine docs
  • add scripts/test-mutation-hook-stdout.sh and include source-limit exclusions for generated keysymdef.go and vendored xorg-deps/ trees in consumer repos

Test plan

  • bash scripts/test-mutation-hook-stdout.sh
  • cargo test --locked --manifest-path rust/task-registry-flow-cli/Cargo.toml source_limit -- --nocapture

Gemini CLI added 4 commits June 8, 2026 11:12
Consumer repos with generated keysymdef.go and vendored xorg-deps trees
should not fail the 1600-line source-limit gate.
Emit codex/claude allow JSON, capture verify-mutation-hook output off the
hook pipe, add hook-gate-doctrine Cursor rule template with install wiring,
and ship test-mutation-hook-stdout.sh for consumer verification.
Add a plugin skill that focuses on sorting changes and creating remote PRs with governance evidence, and include it in installer skill projections for Cursor, agents, and Claude paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant