Skip to content

fix: clarify worker artifact storage and isolation instructions - #7389

Closed
hundarvarg wants to merge 6 commits into
kunchenguid:mainfrom
hundarvarg:fm/firstmate-artifact-instructions
Closed

hundarvarg wants to merge 6 commits into
kunchenguid:mainfrom
hundarvarg:fm/firstmate-artifact-instructions

Conversation

@hundarvarg

@hundarvarg hundarvarg commented Oct 16, 2026 •

Copy link
Copy Markdown

What Changed

  • Share a storage contract across ship, scout, and promotion instructions that separates authored files from generated runtime artifacts, preserves ignored build output and existing work, and respects executor-owned evidence grants.
  • Add isolation checks to scout briefs and remove blanket installation, scratch-commit, and discard permissions; add storage-contract regression coverage and make shell-injection fixtures independent of temporary-directory naming.
  • Keep gate evidence local by disabling evidence-branch publication and PR media attachments, and update the architecture and configuration documentation.

✅ Low: The change is bounded to generated storage guidance, associated executable-interface regressions, and evidence-publication defaults, with existing isolation, task scope, publication ownership, and preservation protections retained.

Updates from git push no-mistakes

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @hundarvarg for this — the shared storage rule and the scout isolation check are a thoughtful tightening, and the regressions are clear.

VISION per-rule

  1. One captain, one interface: aligns — no captain-facing surface; worker guidance only.
  2. Authority is explicit: aligns — scouts lose the blanket install/scratch-commit/discard grant, and the brief now refuses to infer permissions the task didn't give.
  3. Scripts own the mechanics: aligns — one renderer (fm_worker_storage_rule) owns the text for ship, scout and promotion; it is guidance, not enforcement, and says so.
  4. A restart is a non-event: aligns — preservation of proof/private records/unlanded work is stated explicitly.
  5. Delegation with a spine: aligns — scout briefs gain the same primary-checkout isolation refusal ships already had.
  6. The fleet outlives any vendor: aligns — harness/backend-neutral.
  7. Scope: caution — the per-brief rule grows by ~10 lines in every ship/scout/promotion brief (token cost per task); and .no-mistakes.yaml flips this repo's own evidence policy (store_in_repo: false, attach_media: false), which is a maintainer validation-policy choice rather than part of the worker-guidance fix.

Contract-class: new-default (my own read of tip vs main, not the PR's label). Every unconfigured ship/scout brief now carries different default instructions (scouts no longer get "install, run, edit, and make scratch commits freely"; generated output moves out of task data), and the repo's evidence-publication default changes. That's a captain merge-or-leave call, so this won't auto-merge.

CI: reviewed the diff for first-time-fork safety (no .github changes; test injection fixtures stay literal) and approved the workflow runs (CI 38855518533, Require no-mistakes 38855518316); they're queued. Related open PRs touching the same area, for context: #6645 (worker scratch to task temp roots) and #1915 (isolation guards in scout briefs).

Once CI is green this goes to the captain as a new-default decision. If you'd like to make review easier, splitting the .no-mistakes.yaml evidence-policy change into its own PR would let the brief guidance be judged on its own.

@hundarvarg
hundarvarg force-pushed the fm/firstmate-artifact-instructions branch from 960775b to eaf1a12 Compare October 16, 2026 21:10
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @hundarvarg for the new head. Unifying the rule in fm_worker_storage_rule and sharing the isolation assertion between ship and scout briefs reads more cleanly than before.

Diff reviewed tip eaf1a12c vs main 7099556d (8 files): fm_worker_storage_rule in bin/fm-dod-lib.sh now renders rule 2 for ship, scout and promotion. The scout brief gains the isolation check and loses the blanket "install, run, edit, and make scratch commits freely ... discarded at teardown" grant. .no-mistakes.yaml still sets store_in_repo: false and adds attach_media: false. The test injection fixtures stay literal through FM_TEST_BRANCH_MARKER. There is no workflow or secret surface, so I approved the first-time fork runs: CI 38967475723 and Require no-mistakes 38967475823.

Contract-class: new-default (unchanged, my own read). Every unconfigured ship, scout and promotion brief gets different default instructions, and this repo's evidence-publication default changes. VISION.md: one captain aligns · authority aligns (the scout grant narrows) · scripts/agents aligns (one renderer) · restart aligns (preservation stated) · spine aligns · vendor aligns · scope: caution (about 11 more lines in every brief, plus the bundled evidence-policy flip).

One thing I need from you: the PR body has no live-validation section for this head. Could you live-test it and post the evidence here, or re-raise through no-mistakes so the Test step records it? For example, scaffold a real ship brief and a real scout brief with bin/fm-brief.sh on this head and paste the rendered rule 2 and isolation block. Ideally also show one real scout or ship run following the storage rule. With store_in_repo: false the evidence won't land on the evidence branch, so pasting it inline is fine.

After that, and once CI is green, this goes to Kun as a merge-or-leave decision because it changes defaults. That part is the captain's call, not anything you need to do. Splitting out the .no-mistakes.yaml change would still make that decision easier, but it's optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants