Repository navigation
Conversation
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains within the accepted enforcement boundary. No blocking failure remains. Reviews (3): Last reviewed commit: "fix(document): Clarify voice-guard cover..." | Re-trigger Greptile |
3d669e5 to
ad1dbee
Compare
AGENTS.md tells every agent to address the user as captain in every response. An agent working inside this repo reads that as an ordinary repo file and applies it to commit messages, which it treats as responses. The messages that leaked came from the no-mistakes pipeline's own fix agents rather than from a briefed worker, so no brief could have prevented them, and an instruction-level guard against adopting that identity was already active while it happened anyway. bin/fm-voice-guard.sh reads back every commit message not yet on the default branch and refuses an address to the repository owner or an account of how the change was produced. bin/fm-lint.sh runs it on its default path, which .no-mistakes.yaml pins as commands.lint and the gate runs after its review, test, and document steps, so it is the last step that sees every message about to leave. The guard bounds itself to unpublished commits and fails closed when it cannot resolve a default-branch ref, so the CI lint job now checks out full history. A pull request title and description have no pre-push moment, so a small workflow reads them on open, edit, synchronize, and reopen. The rule set keys on the syntactic position of an address rather than on vocabulary, because this repo's own subject matter is the fleet. Selected against the merged history, it matches 222 leaking lines and none of the 301 legitimate lines that mention the same words, so captain holds, captain intent, the ahoy skill, and shipshape all keep shipping. A refusal names the rule, the exact text that matched, and the reword command; there is no bypass flag because rewording always clears it.
The refusal resolved its default-branch refs with a rev-parse spelling the rest of the repository does not use, and let a failing rev-list fall through as exit 1, which is the code that means text was found. Both now report an unknown range instead, since neither knows whether anything leaked. The ref probe matches bin/fm-lint.sh's own, so a checkout that script can read is a checkout the refusal can read. The lint suite's git double answers the range query as a checkout with nothing unpushed, keeping those tests about file selection.
The rule that refuses a subject ending in a bare comma and the word captain would also refuse a comma list whose last item is that word. No such line exists in the history the rules were selected against, and the six lines only this rule caught existed only in the address shape, so the header now states the trade-off instead of leaving a future reader to rediscover it.
The loop variable holding one grep hit was left global, so it outlived each scan. Nothing depended on that, but the surrounding function declares every other local.
The script sat in the bin/fm-voice-* namespace, which is the audio voice relay (fm-voice-relay.py, fm-voice-client.py and their records and frame modules), so a reader would reasonably expect it to guard that feature. It is now bin/fm-prepush-voice-guard.sh, named for the moment it runs, with the test, lint wiring, workflow, and documentation pointers moved with it. Two rules join it, because a link to the working session that produced a change is internal material leaving the machine in the same artifact at the same moment as an address is. Three such trailers are already in merged history, so this is a recurring leak rather than a hypothetical one. The rules refuse the pointer shape, a trailer key carrying a URL or an opaque id and a session path inside a link, never the word, so the 333 merged lines using "session" in its ordinary technical sense still pass.
The address rules admitted a spaced ASCII dash after "captain" but not an em or en dash, so the same vocative in the same syntactic slot reached published history through a rule that already refused its plain-dash twin. Both dashes are now admitted, spaced or unspaced, since an em dash is conventionally set without spaces. The work-document rule excluded a slash before "data" so that a relative path such as tests/data/fixtures/x.txt would keep passing. That exclusion also skipped the shape the leak usually takes, an absolute or home-rooted path ending in the same data/<id>/<file> tail. A second alternative admits that shape at any depth while still requiring a non-word character before the leading slash, which is what keeps the relative path passing. Both expressions were measured against origin/main's 16,485 merged message lines and changed no count: the address total and the work-document total are identical before and after, so each closes a reachable shape without widening what the rules already refuse. The header's measured counts are restated for the larger corpus. Each regression was run against the previous expressions first and exited clean, so neither test passes vacuously alongside the correction it pins.
The guard's header, the architecture section, and the lint pin each claimed lint was the last step able to read every commit the branch would contribute. That is wrong by one step. It holds for the review, test, and document steps, which precede lint, but not for the CI step: it runs after the first push and its fix agent commits on top, so this scan never reads those messages. A subject opening with an address to a person reached a public branch that way. Correct all three copies to say what the scan actually covers, and declare the uncovered step rather than leaving it implied. The pull request workflow does not close it either, since it scans only the title and description. Coverage for that step is tracked separately and is not attempted here.
ad1dbee to
bf86906
Compare
|
The red Measured cause: the portable serial lanes are packed from a hand-maintained per-script duration table that was last refreshed 2026-09-01. It now under-predicts, so one shard carries more work than the others and reaches the job bound. The lane is also cancelled on A repair is open as #4006 — it refreshes the duration table and moves from 5 shards to 6. On its two most recent runs, 14 jobs completed with 0 cancellations. We cannot re-run the cancelled lane ourselves: our access to this repository is pull-only, and re-running requires admin. |
Resolve three conflicts against b182d0f. AGENTS.md: state the publication boundary as one rule with one artifact list, taking the trunk sentence and folding in the prohibitions on accounts of how work was produced and on session links, followed by the automatic-trailer clause and the guard pointer. CONTRIBUTING.md: keep the trunk sentence listing what bin/fm-lint.sh owns, including the backend-purity check, and keep the pointer to the architecture guide's internal-voice refusal section. bin/fm-lint.sh: keep both the backend-purity and the voice-guard checks, each dispatched exactly once, and move the purity and workflow dispatch into the pre-telemetry sequence so every check result is recorded in the telemetry exit rather than written after it.
…ng backend fixture and detecting awk errors across platforms. Confirmed the regression fails before the fixture fix and passes afterward. All 16 workflow tests, targeted canonical lint, Bash syntax validation, and git diff --check pass. Full CI shard was not rerun
|
Closing in favour of #4822, which covers the same goal with a pre-publication check. |
Intent
Stop firstmate's internal voice from leaking into published artifacts before the first push can carry it out of reach. A commit message, pull request title, or pull request description must never carry direct address to the human owner of the fleet, an account of how the work was produced, or a link to the session that produced it. Deliver this as bin/fm-prepush-voice-guard.sh, which reads back every commit message not yet on the default branch and refuses a match, wired into the canonical lint owner bin/fm-lint.sh so it runs last before the gate's first push, plus a .github/workflows/internal-voice-guard.yml backstop that reports matching pull request title or description text after GitHub has received it. The gap between those two is deliberate and documented rather than an oversight: commits created after that first push, including by the CI step, are not covered, and docs/architecture.md owns that declared gap. This revision adds one thing only: the branch has been brought up to date with the current default branch by merging it in, resolving three conflicts. Those resolutions are deliberate decisions, not accidents of merging. First, the AGENTS.md rule stating the publication boundary is worded exactly as the repository's human owner approved it, word for word, after an explicit arbitration between two competing versions of that same rule: it deliberately states the contract once with a single artifact list rather than twice, it deliberately names who to report to when a tool asks to add a trailer automatically, and it must not be reworded, retitled, tidied, split, shortened, or expanded - raise any concern about it as a finding rather than editing it, because approval was given for that exact wording and does not carry to a revision of it. Second, bin/fm-lint.sh deliberately keeps both the backend-purity check that arrived on the default branch and this delivery's voice guard, each dispatched exactly once, with the purity and workflow dispatch moved ahead of the telemetry block so that every check result is recorded in the telemetry exit code rather than written after it - an existing test pins that telemetry exit to the real exit code. Third, nothing beyond this delivery and that merge is in scope; no tidying, generalization, or adjacent improvement belongs in this branch.
What Changed
bin/fm-prepush-voice-guard.shto scan commit messages inorigin/main..HEAD, reject known internal-address, handoff, session-pointer, and private-document patterns, and refuse incomplete scans.Risk Assessment
✅ Low: The scoped changes preserve the accepted publication limits and merge resolutions, with no material source defects identified.
Testing
Targeted scanner tests, live CLI scenarios, the submitted-branch scan and supplemental workflow checks passed. Captured refusal transcripts and generated warning output; no UI surface required screenshots. Lint integration and actual GitHub execution remain untested. No source changes remain.
Evidence: Live CLI transcript
Source: Live CLI transcript
Evidence: Submitted branch scan
Source: Submitted branch scan
Evidence: Local workflow shell transcript
Source: Local workflow shell transcript
Evidence: Generated bootstrap warning
Source: Generated bootstrap warning
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
⏭️ **Rebase** - skipped
AGENTS.md- merge conflict rebasing onto origin/mainCONTRIBUTING.md- merge conflict rebasing onto origin/mainbin/fm-lint.sh- merge conflict rebasing onto origin/main✅ **Review** - passed
✅ No issues found.
TMPDIR="$PWD/.voice-guard-live-check" bin/fm-test-run.sh --jobs 1 tests/.voice-guard-scanner-only.test.sh— existing scanner assertions, with only the lint integration invocation excluded.python3 ~/.no-mistakes/evidence/01M2HV450TTYZ7HY9HBZA00GYK/drive-voice-guard.py— real CLI and isolated Git histories, plus a non-live backtick mutation counterfactual.bin/fm-prepush-voice-guard.sh— scanned the submitted branch against its resolved origin/main.python3 ~/.no-mistakes/evidence/01M2HV450TTYZ7HY9HBZA00GYK/check-workflow-shell.py— normalized workflow semantics and supplemental local shell cases.Removed temporary test adapters and isolated repositories;git status --shortconfirmed no remaining changes.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.