Repository navigation
Conversation
Herdr's sandbox blocks shell redirects like echo >> status-file, so generated briefs that teach that form fail on the first status write. Scaffold ship, scout, and secondmate briefs with echo | tee -a instead; path-quoting tests assert the new form. Docker hygiene (audit kunchenguid#12) has no non-core call site in this repo and is left for the morning interactive session.
There was a problem hiding this comment.
Pull request overview
Captain, this PR updates firstmate’s generated brief scaffolds so crews append status lines using tee -a (instead of shell redirection >>), aligning the scaffold guidance with Herdr sandbox behavior while keeping all runtime/spawn/watcher logic unchanged.
Changes:
- Switched ship/scout/secondmate brief templates to instruct status appends via
echo ... | tee -a $STATUS_FILE. - Updated brief-related tests to assert the new
tee -awording while preserving the existing path shell-quoting expectations.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| bin/fm-brief.sh | Updates scaffolded status-append instructions from >> to tee -a across ship/scout/secondmate briefs. |
| tests/fm-secondmate-safety.test.sh | Adjusts FM_HOME path-quoting assertions to match the new tee -a status-append instruction. |
| tests/fm-brief.test.sh | Updates secondmate absolute-path stability assertions to expect tee -a instead of >>. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Low-risk non-core audit follow-up from
fm-audit-s2.echo "{state}: ..." | tee -a $STATUS_FILEinstead ofecho ... >>. Herdr's sandbox blocks shell redirects, so the old form failed on the first status write (audit learning chore: initialize no-mistakes gate #1 / A5). Scaffold content only; spawn, teardown, watcher, and backend logic untouched. Path-quoting tests updated to asserttee -a.--userhygiene - Out of scope for this PR. A full-tree search of this repo found zerodockerinvocations (including underbin/,tests/, generated brief text, and tooling). No non-core call site exists to add--user "$(id -u):$(id -g)". Recorded below for the morning session with the teardown/compose half of audit ci: enforce contributor guardrails #5.Test plan
bin/fm-lint.sh(no-mistakes lint step + local)./bin/fm-test-run.sh tests/fm-brief.test.sh tests/fm-secondmate-safety.test.sh01KZA50H2ZAB5RSFTSTFADQPWX: intent, rebase, review, test, document, lint, push all completed with 0 findingsDelivery note
no-mistakes push succeeded to
MabezDev:fm/fm-audit-fix-a3. The pipeline's PR and CI steps were skipped withskipping PR creation: gh CLI is not authenticated(daemon cannot use the interactive keyring token). This PR was opened withgh-axiafter that pass. Upstream Actions for the fork PR are currentlyaction_requiredwith zero jobs (maintainer workflow approval for the fork); the opener has pull-only onkunchenguid/firstmateand cannot approve or re-run them.For the morning interactive session
Hard out of scope for this crew; do not treat this PR as covering them:
/updatefirstmatein an empty-fleet window.--stale-thresholdor fix(watcher): bound stale wakes for parked crew #743-style cadence for alive validating crews if still burning turns.gh auth login/ daemon-visibleghtoken (setup fix(bin): coalesce watcher signals into one wake #4, learning fix: prevent watcher check starvation #13) - plainghis unauthenticated from the no-mistakes daemon, so PR/CI steps skip; interactive shell keyring auth does not reach the daemon. Also needed so no-mistakes can open the PR body itself with the Pipeline section.--userhalf: no call site in this repo (repo-wide search: zerodocker/podman/nerdctlrun/build/exec/compose invocations). If root-owned files come from a project (e.g. birdied) compose/test containers, fix lives in that project.docker compose downon teardown - would touchbin/fm-teardown.sh/ spawn path, deliberately out of scope here.config/backendif desired.Pipeline
Updates from git push no-mistakes
Run id:
01KZA50H2ZAB5RSFTSTFADQPWXheadb04e6a4a✅ **intent** - passed
✅ Intent supplied by the agent; no issues found.
✅ **Rebase** - passed
✅ Already ahead of origin/main.
✅ **Review** - passed
✅ No issues found. Scope-complete scaffold
tee -achange; fix 2 out-of-scope claim source-verified.✅ **Test** - passed
✅
tests/fm-brief.test.shandtests/fm-secondmate-safety.test.shgreen; generated ship/scout/secondmate briefs usetee -aonly.✅ **Document** - passed
✅ No documentation updates required;
bin/fm-brief.showns status protocol.✅ **Lint** - passed
✅
bin/fm-lint.sh(ShellCheck 0.11.0 pinned).✅ **Push** - passed
✅ Pushed to fork
MabezDev/firstmatebranchfm/fm-audit-fix-a3.Daemon:
skipping PR creation: gh CLI is not authenticated/skipping CI: gh CLI is not authenticated. PR opened afterward viagh-axias #1765.