feat: make the rendered prompt a reviewable artifact #92
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!92
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/prompt-snapshots"
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?
Stacked on #85. Merge that first.
Problem
The model's instruction surface is assembled from
internal/community/prompt.go, the tracked definition, and everySKILL.mdunder the selected policy roots. Nothing printed the result. A one-line edit to aSKILL.mdcould move several hundred bytes of model context with no reviewable diff, andpolicy-checkreported only a byte count.What this adds
cmd/sirens-echo-promptrenders each tracked definition toagent/rendered/<name>.prompt.txt:The check runs as a pre-commit hook scoped to
agent/,.agents/skills/,prompt.go,skillpack.go, and the dumper, so a prompt change cannot land without its rendered diff. Verified both directions: appending a line tocoilyco-general/SKILL.mdfails the check, and reverting it passes.The snapshots are byte-exact, so
trailing-whitespaceandend-of-file-fixerskipagent/rendered/. Hand-editing one is pointless because the hook regenerates from source.Current state, now visible
Those numbers are the cheapest signal that a reference file pulled in more than intended, which matters more once a role bundle composes in.
Also here
docs/sirens-echo-prompt.mddocuments the assembly and how to review a diff. Knowledge gaps and corrections split out ofsirens-echo-config.md, which had grown past the documentation size cap.Verification
pre-commit run --all-filesexit 0,go vet,go test -count=1 -race ./..., andsirens-echo-policy-checkall pass.