Workers and Reviewers never print a secret: check one with | wc -c, never let its value reach a tool result #94
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!94
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-p5cy"
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?
A Worker on root-tuo printed a key with
bao kv getinto its tool result (2026-11-12). This adds one rule, in the same words, to the Worker's prompt, the Worker's skill (worker) and the Reviewer's prompt: a command that prints a secret never runs so that its stdout reaches the session; pipe it into the consumer or intowc -cor a hash comparison and say only the size or result; if a value was printed anyway, stop, mail the Operator what and where (never the value), and go on. A.changelog/fragment is included.The bead asked for the rule "stated once where both read it". The Worker (roles pack) and the Reviewer (forgejo pack) share no file they both read: the Reviewer loads no skill, and a pack-level fragment would need roles composed wherever forgejo is. So the sentences are written in the Worker's prompt template, and tests hold the other places to them word for word.
Tests:
tests/formula.shtakes the rule from the Worker's prompt template and checks that it says the three things, and that the Worker's rendered prompt and skill carry it;tests/reviewer.shchecks that the Reviewer's template and both rendered Reviewer prompts (city and rig) carry it. Both pass. Undoing the change, each fails: with the three content files restored from main, with the Reviewer's template and the skill restored (the Worker's template kept), the skill check informula.shand the three Reviewer checks inreviewer.shfail. Not run: the other CI steps (the change touches prompts, one skill and tests only);changelog -base mainandgc lint .pass.Bead: gascitypacks-p5cy
Review of
9a504d2ab5for gascitypacks-p5cy. Checks of the head: success.Verdict
pass
Findings
Verified
wc -cor a hash comparison and report only the size, and when a value was printed, mail the Operator what and where without the value, then go on. The changelog fragment.changelog/never-print-a-secret.mdis present, and the PR has a description.b38263d, which includes #92 that landed after the branch was cut): the merge is clean, and the forge reportsmergeable.gc lint .(2 packs ok), and tests/formula.sh, reviewer.sh, doctor.sh, operator-overlay.sh, researcher.sh, researcher-formula.sh and pack-cache.sh all pass.go vet ./...,go test ./...andgo test -race ./...pass. The shell budget reports 32 units, 0 findings, and no shell was changed apart from the test additions. The scripts job's 13 tests (worktree-setup … permission-request) pass.changelog -base main(the city's build) exits 0.