Skip to content

docs: document local captain preferences - #19

Merged
kunchenguid merged 2 commits into
mainfrom
fm/captain-prefs-c7
Jun 14, 2026
Merged

kunchenguid merged 2 commits into
mainfrom
fm/captain-prefs-c7

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Give firstmate a dedicated, intentional local home for this captain's personal preferences by documenting data/captain.md in the shared AGENTS.md template and reading it during bootstrap. The tracked change should be AGENTS.md only: Section 2 must describe data/captain.md as the local, gitignored, compact rewrite-and-prune counterpart to AGENTS.md for curated preferences such as approval posture, communication style, and release habits; Section 3 must read data/captain.md if present after bootstrap checks and data/projects.md, treat absence as template defaults, and clarify that harness memory is only a recall cache while data/captain.md is canonical. I audited AGENTS.md conservatively for personalization and found no material captain-specific behavior to relocate beyond adding the generic pointer, so the existing system mechanisms and doctrine remain unchanged.

What Changed

  • Documented data/captain.md as the local, gitignored home for a captain's curated preferences and working style.
  • Updated bootstrap guidance to read data/captain.md after data/projects.md, using template defaults when it is absent and treating harness memory as a recall cache.
  • Clarified README configuration docs to distinguish shared orchestrator behavior in AGENTS.md from per-captain local preferences.

Risk Assessment

✅ Low: The change is limited to documenting a local preferences file and adding bootstrap reading guidance in AGENTS.md, with no executable code or behavioral complexity introduced.

Testing

I inspected the target diff, verified the tracked change is AGENTS.md only, asserted the new data/captain.md layout and bootstrap instructions including read order and canonical-source wording, confirmed personal fleet paths remain untracked, and captured an AGENTS.md excerpt as reviewer-visible evidence; all checks passed.

Evidence: AGENTS.md captain preferences excerpt

Excerpt from AGENTS.md lines 47-104 showing data/captain.md in Section 2 and the bootstrap read instructions in Section 3.

 47: ## 2. Layout and state
 48: 
 49: `` `
 50: AGENTS.md            this file (CLAUDE.md is a symlink to it)
 51: CONTRIBUTING.md      contributor workflow and repo conventions
 52: README.md            public overview and development notes
 53: .github/workflows/   shared CI and PR enforcement, committed
 54: .agents/skills/      shared skills, committed
 55: .claude/skills       symlink to .agents/skills for claude compatibility
 56: bin/                 helper scripts, committed, including fm-fleet-sync.sh for clean default-branch refreshes; read each script's header before first use
 57: config/crew-harness  crewmate harness override; LOCAL, gitignored; absent or "default" = same as firstmate
 58: data/                personal fleet records; LOCAL, gitignored as a whole
 59:   backlog.md         task queue, dependencies, history
 60:   captain.md         captain's curated personal preferences and working style - approval posture, communication style, release habits; LOCAL, gitignored; compact rewrite-and-prune counterpart to shared AGENTS.md; canonical harness-portable home, even if harness memory mirrors it as a recall cache
 61:   projects.md        fleet registry: one line per project under projects/ with a short description and its delivery mode - "- <name> [<mode>] - <desc>", optional "+yolo" (e.g. "[direct-PR +yolo]"); no "[...]" = no-mistakes. fm-project-mode.sh parses it (section 6)
 62:   <id>/brief.md      per-task crewmate brief
 63:   <id>/report.md     scout task deliverable, written by the crewmate; survives teardown
 64: projects/            cloned repos; gitignored; READ-ONLY for you
 65: state/               volatile runtime signals; gitignored
 66:   <id>.status        appended by crewmates: "<state>: <note>" lines
 67:   <id>.turn-ended    touched by turn-end hooks
 68:   <id>.meta          written by fm-spawn: window=, worktree=, project=, harness=, kind=, mode=, yolo= (fm-pr-check appends pr=)
 69:   <id>.check.sh      optional slow poll you write per task (e.g. merged-PR check)
 70:   .hash-* .count-* .stale-* .seen-* .last-* .heartbeat-streak   watcher internals; never touch
 71:   .last-watcher-beat watcher liveness beacon, touched every poll; fm-guard.sh reads it
 72: .no-mistakes/        local validation state and evidence; gitignored
 73: `` `
 74: 
 75: Task ids are short kebab slugs with a random suffix, e.g. `fix-login-k3`.
 76: The tmux window for a task is always named `fm-<id>`.
 77: 
 78: ## 3. Bootstrap (run at every session start)
 79: 
 80: Bootstrap is detect, then consent, then install.
 81: Never install anything the captain has not approved in this session.
 82: 
 83: Run `bin/fm-bootstrap.sh`.
 84: Bootstrap also refreshes the fleet via `bin/fm-fleet-sync.sh`: it fetches each remote-backed clone and clean-fast-forwards its local default branch when safe, best-effort and non-fatal.
 85: Silence means all good: say nothing and move on.
 86: Otherwise it prints one line per problem; handle each:
 87: 
 88: - `MISSING: <tool> (install: <command>)` - list the missing tools to the captain with a one-line purpose each plus the printed install commands, wait for consent (one approval may cover the list), then run `bin/fm-bootstrap.sh install <approved tools...>`.
 89: - `NEEDS_GH_AUTH` - ask the captain to run `! gh auth login` (interactive; you cannot run it for them).
 90: - `CREW_HARNESS_OVERRIDE: <name>` - record and use the override silently; surface a harness fact only if it actually blocks work or the captain asks.
 91: - `FLEET_SYNC: <repo>: skipped: <reason>` - bootstrap continued; investigate only if the dirty, diverged, or offline clone blocks work.
 92: 
 93: Bootstrap's fleet refresh is bounded by `FM_FLEET_SYNC_BOOTSTRAP_TIMEOUT` seconds, default 20; a timeout is reported as a `FLEET_SYNC` skip and does not block startup.
 94: 
 95: Then read `data/projects.md`, the fleet registry, to load what each project is.
 96: If it is missing or disagrees with what is actually under `projects/`, rebuild it from the clones (a README skim per project is enough) before taking on work.
 97: Then read `data/captain.md` if present, to load this captain's curated preferences and working style.
 98: If it is absent, use this template's defaults with no special preferences.
 99: Treat any harness memory of these preferences as a recall cache only; `data/captain.md` is the canonical, harness-portable home.
100: 
101: Do not dispatch any work until the tools that work needs are present and GitHub auth is good.
102: Use `gh-axi` for all GitHub operations, `chrome-devtools-axi` for all browser operations, and `lavish-axi` when a decision or report is complex enough to deserve a rich review surface.
103: Do not memorize their flags; their session hooks and `--help` are the source of truth.
104: If the captain names a different crewmate harness at bootstrap or later, write it to `config/crew-harness` (local, gitignored); that is the whole switch.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • git diff --stat 539f3a3131c0e07cfe1cd940b23c9cf5c1c4e2ab..29007ba0409264d1dbc7c7a5acccddcfe53120ea
  • git diff --name-only 539f3a3131c0e07cfe1cd940b23c9cf5c1c4e2ab..29007ba0409264d1dbc7c7a5acccddcfe53120ea
  • ruby -e &#39;changed = git diff --name-only 539f3a3131c0e07cfe1cd940b23c9cf5c1c4e2ab..29007ba0409264d1dbc7c7a5acccddcfe53120ea.lines.map(&amp;:chomp); abort(&#34;unexpected changed files: #{changed.inspect}&#34;) unless changed == [&#34;AGENTS.md&#34;]; puts &#34;tracked change scope ok: AGENTS.md only&#34;&#39;
  • ruby -e &#39;tracked = git ls-files -- data state config projects .no-mistakes; abort(&#34;personal fleet paths are tracked:\n#{tracked}&#34;) unless tracked.empty?; puts &#34;personal fleet paths remain untracked&#34;&#39;
  • ruby -e &#39;text = File.read(&#34;AGENTS.md&#34;); checks = { ... }; checks.each { |name, needle| abort(&#34;missing #{name}&#34;) unless text.include?(needle) }; abort(&#34;data/captain.md read must follow data/projects.md&#34;) unless text.index(&#34;Then read data/projects.md, the fleet registry&#34;) &lt; text.index(&#34;Then read data/captain.md if present&#34;); puts &#34;AGENTS.md documents captain preferences home and bootstrap read order&#34;&#39;
  • ruby -e 'lines = File.readlines("AGENTS.md"); File.write("/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KV449Q3NDH57CJ5SJJ4CGJEW/captain-preferences-agents-excerpt.txt", lines.each_with_index.select { |_, i| (47..104).cover?(i + 1) }.map { |line, i| "%3d: %s" % [i + 1, line] }.join)'
  • git status --short
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid
kunchenguid merged commit a16660d into main Jun 14, 2026
3 checks passed
@kunchenguid
kunchenguid deleted the fm/captain-prefs-c7 branch June 14, 2026 22:40
vipentti pushed a commit to vipentti/firstmate that referenced this pull request Aug 5, 2026
* Document captain preferences file

* no-mistakes(document): Document captain preferences home
@kboyd12

kboyd12 commented Aug 6, 2026

Copy link
Copy Markdown

Retired on the captain's decision, 2026-08-06, following the board triage of that date.

This is one of four prior dashboard framings (#16, #21, #26, #19) that the approved 2026-08-05 design work supersedes. #350 names them as "prior framings of this page, to fold in or close", and the captain has chosen to close.

Specifically: #350 argues against keying a dashboard off role at all, since capabilities resolve as a union across held roles and role-keying would reintroduce what #203 removed — which contradicts #16's premise directly. The Stitch-template framing in #21 is superseded by the three 2026-08-05 design studies. #26 and #19 are absorbed by that cluster plus #217 and the Project Detail epics #177–#181.

Nothing here is lost: a closed issue stays readable, and the live successors are #350, #217, #328 and #177–#181. Reopen if a requirement here turns out to have no successor.

NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Sep 26, 2026
…ly dropping sources (kunchenguid#19)

* fix(procevent): surface a group-writable state root instead of silently dropping every source

fm-procevent.sh's own private-directory check on state/ is sound, but the
watcher's reconcile call swallowed its failure, arm registered a watch
against it with no warning, and nothing at session start said why every
registered process-event source had gone quiet. Bootstrap now prints an
actionable PROCEVENT diagnostic naming the exact chmod fix, arm refuses
loudly before registering a source that could never be polled, and the
watcher's reconcile surfaces a failed episode as one check wake, cleared the
moment the state root is private again.

Upstream: kunchenguid#3929

* no-mistakes(review): Fix reconcile marker ordering and tailor state-root diagnostics

* no-mistakes(test): Raise flaky watcher-test alarm bound to fix timing false-failure

* no-mistakes(document): Add missing guarantee-table rows for state-root guard and reconcile-failure wake

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Sep 26, 2026
…ly dropping sources (kunchenguid#19)

* fix(procevent): surface a group-writable state root instead of silently dropping every source

fm-procevent.sh's own private-directory check on state/ is sound, but the
watcher's reconcile call swallowed its failure, arm registered a watch
against it with no warning, and nothing at session start said why every
registered process-event source had gone quiet. Bootstrap now prints an
actionable PROCEVENT diagnostic naming the exact chmod fix, arm refuses
loudly before registering a source that could never be polled, and the
watcher's reconcile surfaces a failed episode as one check wake, cleared the
moment the state root is private again.

Upstream: kunchenguid#3929

* no-mistakes(review): Fix reconcile marker ordering and tailor state-root diagnostics

* no-mistakes(test): Raise flaky watcher-test alarm bound to fix timing false-failure

* no-mistakes(document): Add missing guarantee-table rows for state-root guard and reconcile-failure wake

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Sep 26, 2026
…ly dropping sources (kunchenguid#19)

* fix(procevent): surface a group-writable state root instead of silently dropping every source

fm-procevent.sh's own private-directory check on state/ is sound, but the
watcher's reconcile call swallowed its failure, arm registered a watch
against it with no warning, and nothing at session start said why every
registered process-event source had gone quiet. Bootstrap now prints an
actionable PROCEVENT diagnostic naming the exact chmod fix, arm refuses
loudly before registering a source that could never be polled, and the
watcher's reconcile surfaces a failed episode as one check wake, cleared the
moment the state root is private again.

Upstream: kunchenguid#3929

* no-mistakes(review): Fix reconcile marker ordering and tailor state-root diagnostics

* no-mistakes(test): Raise flaky watcher-test alarm bound to fix timing false-failure

* no-mistakes(document): Add missing guarantee-table rows for state-root guard and reconcile-failure wake

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Oct 1, 2026
…ly dropping sources (kunchenguid#19)

* fix(procevent): surface a group-writable state root instead of silently dropping every source

fm-procevent.sh's own private-directory check on state/ is sound, but the
watcher's reconcile call swallowed its failure, arm registered a watch
against it with no warning, and nothing at session start said why every
registered process-event source had gone quiet. Bootstrap now prints an
actionable PROCEVENT diagnostic naming the exact chmod fix, arm refuses
loudly before registering a source that could never be polled, and the
watcher's reconcile surfaces a failed episode as one check wake, cleared the
moment the state root is private again.

Upstream: kunchenguid#3929

* no-mistakes(review): Fix reconcile marker ordering and tailor state-root diagnostics

* no-mistakes(test): Raise flaky watcher-test alarm bound to fix timing false-failure

* no-mistakes(document): Add missing guarantee-table rows for state-root guard and reconcile-failure wake

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
NewAiCoder added a commit to NewAiCoder/firstmate that referenced this pull request Oct 1, 2026
…ly dropping sources (kunchenguid#19)

* fix(procevent): surface a group-writable state root instead of silently dropping every source

fm-procevent.sh's own private-directory check on state/ is sound, but the
watcher's reconcile call swallowed its failure, arm registered a watch
against it with no warning, and nothing at session start said why every
registered process-event source had gone quiet. Bootstrap now prints an
actionable PROCEVENT diagnostic naming the exact chmod fix, arm refuses
loudly before registering a source that could never be polled, and the
watcher's reconcile surfaces a failed episode as one check wake, cleared the
moment the state root is private again.

Upstream: kunchenguid#3929

* no-mistakes(review): Fix reconcile marker ordering and tailor state-root diagnostics

* no-mistakes(test): Raise flaky watcher-test alarm bound to fix timing false-failure

* no-mistakes(document): Add missing guarantee-table rows for state-root guard and reconcile-failure wake

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…nchenguid#19)

* feat(primary): rotate on context used before the session balloons

Add an opt-in context-used trigger axis to the existing primary-handoff
protocol so a long-running primary can same-runtime refresh before
resident context dominates cost, without disturbing live workers.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(lint): quote empty FM_PRIMARY_HARNESS assignment for shellcheck

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
@FlowThimon

Copy link
Copy Markdown

Meting op echte facturen (zonder AI)

Gemeten op alle 41 De Fleurie-facturen van Star & van der Gugten (FDFLRI) met hun Twinfield-boeking, met de tekstlaag zoals de app die maakt (prepFromPdf) en de gebouwde pagina met alle patches; geen AI-aanroepen. Klantgegevens en meetscripts staan buiten git.

Aantal
Door de lezer gelezen (geen AI-uitlezing) 41 / 41
FOUT-controles 0
Per btw-tarief gelijk aan Twinfield 39 / 41
1 cent verschil bij 9% (32601502, 32601199) 2
Andere facturen ten onrechte als Star & van der Gugten herkend 0
  • De 2 centverschillen zitten in Twinfield: de boeker schoof 1 cent tussen grondslag en btw (factuur 9% 733,73 / 66,04, Twinfield 733,74 / 66,03); totaal incl. gelijk. De lezer volgt de factuur.
  • De drie facturen uit de stresstest (32603555, 32602216, 32602697), die eerder een verschilregel kregen, zijn nu per tarief gelijk aan Twinfield.
  • Vondst: alleen "Mps A"/"Mps A+" sluiten op alle 43 facturen precies op "MPS certificering"; "MPS A" in hoofdletters telt de factuur niet mee. De lezer boekt die als gewone bloemen.
  • Volledige pnpm verify groen vóór de pipeline (1470 tests, smoke).

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 18, 2026
…working folder (kunchenguid#19)

* fix(bin): let the cd guard allow a Claude cd that ends outside every working folder

The primary-session cd guard denied every absolute cd except one to the home
itself, so a harmless cd into a scratch or temporary folder cost a denied call
and a retry. Claude Code returns the shell to its start folder after any command
that ends outside its working folders, so under the Claude transport such a cd
cannot move the primary shell.

With --claude the transport now tells the policy the harness resets the shell
and names every Claude working folder it can see (FM_HOME and each settings
additionalDirectories entry). The policy allows a literal absolute cd whose
target exists and lies, under every path form, outside the home and those
folders. A cd into any home subfolder, a working folder, a symlink into the home,
a missing target, or any target while a settings file is unreadable stays
denied, and every other harness keeps denying an outside cd.

The behavior was verified on Claude Code 2.1.319 with a new opt-in live guard,
tests/fm-cd-guard-claude-reset-live-e2e.test.sh, recorded in
docs/verification/runtime-backends.md.

* no-mistakes(document): Note Claude outside-cd exemption in cd-guard reason text
ghazni101 pushed a commit to ghazni101/firstmate-dsh that referenced this pull request Nov 19, 2026
… own parent' (kunchenguid#19) from fm/fix-coordinator-escalation into 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.

3 participants