Skip to content

feat: manage project agent memory through ship briefs - #21

Merged
kunchenguid merged 4 commits into
mainfrom
fm/selfgov-mem-x7
Jun 17, 2026
Merged

kunchenguid merged 4 commits into
mainfrom
fm/selfgov-mem-x7

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Codify two captain-approved firstmate self-governance rules into the firstmate template. Separate mandatory captain address from optional nautical seasoning in AGENTS.md so every response addresses the user as captain, including bad news, while playful flavor remains optional and drops for serious findings. Document project-memory ownership in section 6: project-intrinsic durable knowledge belongs in a project's committed AGENTS.md with CLAUDE.md as a symlink; fleet and captain-private knowledge remains in firstmate data; prime directive #1 is preserved because firstmate does not hand-write project AGENTS.md files, crewmates update them through normal delivery; creation is lazy; data/projects.md remains a thin registry. Add an idempotent bin/fm-ensure-agents-md.sh helper for worktrees and wire ship briefs, but not scout briefs, to run it and record durable project-intrinsic learnings proportionately.

What Changed

  • Separates the mandatory captain address rule from optional nautical seasoning, including guidance for serious or bad-news responses.
  • Documents project-memory ownership so durable project-intrinsic knowledge lives in committed project AGENTS.md files while fleet-private state stays in data/.
  • Adds bin/fm-ensure-agents-md.sh and wires ship briefs to use it for creating, promoting, or validating project AGENTS.md/CLAUDE.md conventions.

Risk Assessment

✅ Low: The changes are limited to documentation, brief scaffolding, and a small idempotent helper with conservative conflict handling.

Testing

Captain, I exercised the changed docs and scripts end-to-end: repo invariants held, the AGENTS/CLAUDE helper created/promoted/refused the expected file states, ship briefing included the project-memory contract while scout briefing omitted it, documentation checks matched the intended governance rules, and transient worktree test data was removed afterward.

Evidence: Governance and project-memory helper transcript

Shows repo invariants passing, fm-ensure-agents-md create/idempotence/promotion/conflict behavior, fm-brief ship-vs-scout project-memory behavior, and AGENTS.md documentation checks.

== repo invariants ==
repo invariant checks passed

== fm-ensure-agents-md create and idempotence ==
created: AGENTS.md and CLAUDE.md -> AGENTS.md in /private/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KVBSZEXT8TK6WZ57QTMDC0FS/helper-cases/empty
unchanged: AGENTS.md with CLAUDE.md -> AGENTS.md in /private/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KVBSZEXT8TK6WZ57QTMDC0FS/helper-cases/empty
empty worktree now has real AGENTS.md and CLAUDE.md symlink

== fm-ensure-agents-md promote legacy CLAUDE.md ==
promoted: moved CLAUDE.md to AGENTS.md and symlinked CLAUDE.md -> AGENTS.md in /private/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KVBSZEXT8TK6WZ57QTMDC0FS/helper-cases/legacy
legacy CLAUDE.md content promoted to AGENTS.md with compatibility symlink

== fm-ensure-agents-md refuses conflicting real files ==
conflict: both AGENTS.md and CLAUDE.md are real files in /private/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KVBSZEXT8TK6WZ57QTMDC0FS/helper-cases/conflict; reconcile them manually
conflict correctly refused

== fm-brief project memory contract ==
ship brief includes project memory helper; scout brief omits it

== documentation behavior checks ==
captain address, optional seasoning, and project-memory ownership documented

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 3780ba7d53a92234c79841ce33f8945d3f1b2cf1..d12682aaa864cea2477660ddbcd3148366fc53e0 && git diff --name-only 3780ba7d53a92234c79841ce33f8945d3f1b2cf1..d12682aaa864cea2477660ddbcd3148366fc53e0
  • Repo invariant checks equivalent to .github/workflows/ci.yml: readlink CLAUDE.md, readlink .claude/skills, and git ls-files -- data state config projects .no-mistakes
  • End-to-end bin/fm-ensure-agents-md.sh cases in the evidence directory: empty worktree creation, idempotent rerun, legacy real CLAUDE.md promotion, and conflicting real-file refusal
  • bin/fm-brief.sh test-ship-memory-x7 sample-repo and bin/fm-brief.sh test-scout-memory-x7 sample-repo --scout, verifying ship briefs include the project-memory helper and scout briefs omit it
  • Documentation checks against AGENTS.md for mandatory captain address, optional serious-context seasoning behavior, project-memory ownership, and thin data/projects.md registry language
  • git status --short after cleanup
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid
kunchenguid merged commit 5777d25 into main Jun 17, 2026
3 checks passed
@kunchenguid
kunchenguid deleted the fm/selfgov-mem-x7 branch June 17, 2026 22:18
@modfreq

modfreq commented Jun 28, 2026

Copy link
Copy Markdown

Audited against code: all four slices delivered, including stateful doors as world entities with dynamic walkability that consults live door state each movement step (hand-verified), authoritative open/close, and the dev authoring overlay. Full suite green. Two polish follow-ups (reconcile the single z=0 placeholder sign with ADR-0011's hung pair; UO-client visual confirmation of door art ids) are captain-side, not re-open blockers. Closing as delivered.

vipentti pushed a commit to vipentti/firstmate that referenced this pull request Aug 5, 2026
* Clarify captain address rule

* Document project memory ownership

* Add project memory helper to briefs

* no-mistakes(document): Sync project memory docs
@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
…rom stale-beacon (kunchenguid#21)

* fix(afk): prefer the terminal-backed away daemon and name gone-daemon vs stale-beacon

The /afk skill preferred Claude/Grok's native background tool, exactly the
path Claude Code's low-memory guard has silently killed on transient RAM
spikes even with several GB free; the terminal-backed daemon sits outside
that job table and survives them. Prefer it now whenever the backend
supports a non-visible terminal (tmux or herdr), regardless of harness, and
reserve the native path for backends with neither. The turn-end guard also
named every away-mode supervision lapse as generic "no live watcher", which
sends an operator toward the wrong recovery for a live daemon with a stuck
watcher versus a daemon that is simply gone; it now names each distinctly.

Upstream: kunchenguid#3930

* no-mistakes(review): Add tmux-availability skip guard to dead-pid terminal test

* no-mistakes(document): Document distinct away-mode block-banner wording in turnend-guard.md

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
@danielkuykendall23-boop

Copy link
Copy Markdown
Contributor

Not live-proven

  • A real fenced no-mistakes axi run on an already-pushed branch was not run. The gate staging it needs was proven with real git inside the fence, using the ref format refs/no-mistakes/fetch/<n>-<n> and the --no-tags --no-write-fetch-head flags found in the v1.84.0 binary, not with the no-mistakes binary itself.
  • The fenced Herdr lab provision was proven live only by this pipeline's test step (the table above). docs/verification/worker-sandbox.md still lists it as not proven, because the implementing worker's own instructions did not allow driving Herdr.
  • The omp built-in browser under the fence was proven once during development (a fenced omp -p opened a file:// page and returned its title, recorded in docs/verification/worker-sandbox.md), not by this pipeline.

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
kunchenguid#21)

* feat(primary): certify Cursor CLI primary and add cursor-grok launcher

Validate Cursor agent 2026.07.20-8cc9c0b as a Firstmate primary in an
isolated Herdr lab and add bin/fm-primary.sh cursor-grok
(agent --yolo --model cursor-grok-4.5-high). SessionStart and PreToolUse
via .claude/settings.json pass; Stop did not fire on this CLI version
(documented fail); status-bar remains a documented API gap. Worker
adapter behavior is unchanged.

* fix(status-bar): keep Cursor worker-only in the status-bar owner

Restore the status-bar contract's worker-only / not-applicable Cursor
boundary so the owner test passes. Cursor primary certification remains
elsewhere; no captain-facing Cursor status renderer or companion is added.
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 18, 2026
…R is gone (kunchenguid#21)

A floater macOS starts by itself (Quit & Reopen, Finder, a login item)
inherits the login session's TMPDIR, which an installer can leave naming a
deleted folder. Every helper the floater runs that makes a temporary file
then failed: transcription reported "Saved - retrying" and screenshots
landed in the mailbox instead of the chat.

At launch the floater now keeps TMPDIR only when it is an existing folder
it can write to, and otherwise points it at macOS's per-user temporary
folder, then /tmp, so every helper it starts inherits a working one. A
test runs the real transcription helper with a deleted TMPDIR before and
after the repair.
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.

4 participants