feat(hook+lockdown): first-class Claude Code SessionStart support #100
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two related moves; this issue covers both.
1. SessionStart envelope ->
hook.cmd/coily/session_start.gobuilds the Claude Code SessionStart payload (hookSpecificOutput.additionalContext). The envelope types (sessionStartHookOutput/sessionStartHookSpecific) are a pure Claude Code contract and belong next tohook.PreToolUse, which already owns the PreToolUse side.2. SessionStart-hook injection ->
lockdown.BuildSettings.cmd/coily/lockdown_driver.gowrapslockdown'sBuildSettingsby hand to inject a SessionStart hook entry into settings.json (injectSessionStartHook/sessionStartHookPresent). Fold idempotent SessionStart-hook installation intolockdown.BuildSettings(config-driven command string) so consumers stop wrapping-and-re-marshaling the framework's builder.Stays in coily (policy, do not extract): the capability-index content -
serviceGroups,capabilityDoctrine, and the render strings. Only the envelope + injection mechanics are generic.Consumer seams to parameterize: the injected command string (
coily hook session-start); for the renderer, if extracted later,serviceGroups/doctrine/bin-name (it depends on theclitreeextraction, cli-guard#95).Suggested home (pre-refactor):
hook(envelope) +lockdown(injection).Done when:
godoc-current.txtregenerated (scripts/check-godoc-current.sh --update)make testgreen both sidesclosesthis issueBacklog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.