Plan-tune cathedral T8. Wires the new PostToolUse capture hook and
PreToolUse enforcement hook into ~/.claude/settings.json via the
schema-aware gstack-settings-hook (T3) — respecting D4's "never mutate
settings.json silently" boundary and the Codex outside-voice warning.
Behavior at setup time:
- Idempotency: if list-sources already shows 'plan-tune-cathedral', no-op
with a one-line note.
- Marker present (previously declined): no-op, no re-prompt.
- Interactive terminal: print rationale + diff preview from settings-hook,
rollback command, and prompt y/N. On accept, register both hooks
(PostToolUse and PreToolUse) with --source plan-tune-cathedral. On
decline, touch ~/.gstack/.plan-tune-hooks-prompted so we don't re-ask.
- Non-interactive (CI / scripted): no prompt; print the two exact commands
the user would need to install manually.
- --no-team teardown also removes the plan-tune hooks via remove-source.
gstack-uninstall extended to clean up plan-tune-cathedral hooks alongside
the existing SessionStart cleanup. Listed as a separate "plan-tune
cathedral hooks" line in the REMOVED summary when it fires.
No new test file — coverage from T3's gstack-settings-hook-schema-aware
tests proves the underlying bin behavior; setup-level integration is
verified manually (re-running ./setup is cheap and the prompt makes it
obvious whether install happened).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>