Skip to content

refactor(brief): bound generated worker identity boilerplate - #4143

Open
dutopy wants to merge 1 commit into
kunchenguid:mainfrom
dutopy:chain4-brief-compaction
Open

dutopy wants to merge 1 commit into
kunchenguid:mainfrom
dutopy:chain4-brief-compaction

Conversation

@dutopy

@dutopy dutopy commented Sep 10, 2026

Copy link
Copy Markdown

Summary

Bound the repeated generated worker identity boilerplate for future ship/scout briefs and launch-time worker-role output. Existing authored briefs and secondmate charters are preserved; no historical migration was performed.

Sanitized scope inventory

Changed paths (exactly three):

  • bin/fm-brief.sh
  • bin/fm-dod-lib.sh
  • tests/fm-brief.test.sh

Excluded and unchanged:

  • Historical authored briefs and launch briefs
  • Secondmate charter generation
  • Live instructions, profiles, services, secrets, clients, home-Hermes state, supervisor state, and private data/config
  • fm-spawn.sh and unrelated project surfaces

Compatibility and migration evidence

  • Existing authored worker briefs remain byte-identical; overwrite refusal is tested across worker modes, scout, and secondmate.
  • No historical-copy migration set exists because no exact historical rewrite approval was granted.
  • The secondmate scaffold remains outside the worker introduction and role-overlay paths.
  • Role selection, authority/handoff, isolation, intent, status, worker/supervisor separation, non-delegation, no-captain, and safety boundaries remain covered by the focused checks.

Fixed consumed-output proxy

Using the fixed sanitized five-variant fixture, normalized roots, fixed intent/spec/charter strings, UTF-8 byte counts, and Python str.split() whitespace-word counts:

  • Combined: 41,423 -> 40,639 bytes (-784)
  • Each worker variant: -196 bytes / -31 whitespace words
  • Secondmate: unchanged at 7,951 bytes / 1,277 whitespace words; output hash unchanged

This is a byte/whitespace proxy, not a model-token or effectiveness measurement.

Verification

  • Focused suites: total=3, failed=0, skipped_gate=0
  • ShellCheck 0.11.0 and actionlint 1.7.12: passed
  • Extended changed-file lint: passed
  • Documentation audience/link check: surfaces=97, local_links=356
  • Exact-range git diff --check: passed
  • Candidate ancestry: exactly one commit after b84e0e362face25f3dd8945297a3df1320d7668c
  • Final candidate SHA: 1b231cea3d87aa11319187dd33e58ca02ea11194

Review and validation provenance

  • Final validation verdict: task t_d6bb25ea, exact SHA 1b231cea3d87aa11319187dd33e58ca02ea11194
  • Renewed distinct read-only review verdict: task t_15573f69, exact SHA 1b231cea3d87aa11319187dd33e58ca02ea11194
  • Both verdicts are approved/passed for this full SHA only; no rebase, amend, squash, or merge was performed.

Merge remains with MAIN.

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.

1 participant