Skip to content

feat: sync fork with upstream firstmate (role authority, memory tiers, relaunch races) - #10

Merged
pc-agents-lstutzman[bot] merged 4 commits into
mainfrom
fm/sync-upstream-2026-10-14
Oct 14, 2026
Merged

pc-agents-lstutzman[bot] merged 4 commits into
mainfrom
fm/sync-upstream-2026-10-14

Conversation

@pc-agents-lstutzman

Copy link
Copy Markdown
Contributor

Intent

Sync the lstutzman/firstmate fork with upstream kunchenguid/firstmate main. The previous sync (PR #7) was squash-merged, so only four upstream commits are actually missing: #7154 (secondmate relaunch races), #7172 (explicit firstmate-role authority for upstream contributions), #7248 (pi before_agent_start narrowing), and #6608 (home-declared external memory tiers via a Memory layering section). They are applied as cherry-picks (-x) rather than a git merge, deliberately, because merging upstream/main would replay the eight already-squashed commits and conflict. One conflict was resolved in bin/fm-config-inherit-lib.sh FM_INHERITABLE_CONFIG: keep BOTH the fork's typesafe-base-url/typesafe-model/typesafe-token-file items (fork-only feature from PR #6, local Jev resolver) AND upstream's new firstmate-role item plus its receipt comment. The captain needs #6608 so the home can declare the Slarti memory MCP as an authoritative memory tier. No fork behaviour should be dropped; upstream content should land as-is.

What Changed

  • Cherry-picks (-x) the four upstream firstmate commits the fork was missing. #7154 serializes secondmate relaunches to stop concurrent relaunch races (fm-secondmate-liveness-lib.sh, fm-spawn.sh). #7172 adds explicit firstmate-repository role authority for upstream contributions (new bin/fm-role.sh and bin/fm-role-lib.sh, wired into brief, promote, session-start, spawn and teardown, plus a new firstmate-self-repo skill). #7248 narrows pi before_agent_start events before reading the prompt (.pi/extensions/*). #6608 lets a home declare authoritative external memory tiers through a Memory layering section (stow skill, AGENTS.md, docs/configuration.md).
  • Resolves the one conflict, in bin/fm-config-inherit-lib.sh. FM_INHERITABLE_CONFIG keeps the fork-only typesafe-base-url, typesafe-model and typesafe-token-file items and adds upstream's firstmate-role item. Upstream's proof-of-state receipt handling for that item (.fm-inherit-firstmate-role.generation) comes in with it, and fm-remote-inherit-push.sh is updated to match.
  • Brings in the upstream tests: the new tests/fm-self-repo-role.test.sh, plus updates to the secondmate liveness/safety, session-start and pi extension tests.

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: The cherry-picks and the one conflict resolution look faithful and preserve the fork's typesafe items, but #7172 adds a fail-closed publication gate that will refuse fork-targeted PR dispatch unless the captain configures a role or passes per-task consent.

Testing

I built disposable fixtures for this run: a marked lab primary home (fm-lab-home.sh), a throwaway git-clone secondmate home, a fork-like clone with origin set to lstutzman/firstmate, and an unrelated repo. Against these I drove the real fm-role.sh and fm-config-push.sh CLIs. Results: the fork-only typesafe-* items and upstream's firstmate-role both propagate. The role receipt is written, the secondmate reports the role as inherited, tampering fails closed, and revocation converges. A Memory layering declaration in captain-shared.md lands read-only (444) in the secondmate home. The role gate refuses by default and authorizes only on a matching consent or maintainer scope. Seven targeted upstream test files then passed with 0 failures, covering the relaunch-race lock, Pi before_agent_start handling, the self-repo gate in spawn/promote, stow tier handling, and the session-start role line. Those test-only scenarios (relaunch serialization, Pi extensions, stow/session-start) are recorded as untested because they were not driven live. The CONFIG_REREAD nudge send was refused because the gate's lifecycle guard is in force inside the gate worktree. That is the expected environment behaviour, not a product defect. All lab homes and clones were removed afterwards and the worktree is clean.

  • Live validation: ✅ go - 8 of 11 scenarios driven live against the product
Scenario Result Live Evidence
Merged FM_INHERITABLE_CONFIG: primary pushes the fork's typesafe-base-url/model/token-file AND upstream's firstmate-role to a secondmate home ✅ pass live config-inherit-transcript.txt: all four items reported 'pushed', and the secondmate config/ holds the values plus .fm-inherit-firstmate-role.generation
Secondmate home reports an inherited maintainer role and is authorized for the matching scope ✅ pass live config-inherit-transcript.txt: 'fm-role: maintainer github.com/lstutzman/firstmate (inherited)' / 'authorized: maintainer scope ...'
Adversarial: a tampered inherited role file in a secondmate is rejected (receipt mismatch) ✅ pass live config-inherit-transcript.txt: 'fm-role: user - unverified inherited grant: the inherited role grant diverges from the receipt'
Revocation: primary drops the grant, pushes, and the secondmate falls back to user and is refused ✅ pass live config-inherit-transcript.txt: 'firstmate-role: pushed - mirrored primary absence', then 'fm-role: user (inherited)' and refused exit=1
Default home role is user; a publishing check on a firstmate-lineage repo is refused, and an unrelated repo is not gated ✅ pass live role-gate-transcript.txt: 'fm-role: user (default)', refused exit=1, 'not a self-repository task' exit=2
Per-task upstream-consent authorizes only the matching publication target (wrong-scope consent refused) ✅ pass live role-gate-transcript.txt: consent lstutzman exit=0, consent kunchenguid exit=1
Adversarial: a maintainer grant does not cover a different target when an upstream remote is added, and a malformed role file fails closed ✅ pass live role-gate-transcript.txt: refused for github.com/kunchenguid/firstmate; 'malformed role file: invalid repository scope' refused
Home declares a Memory layering tier (Slarti memory MCP) in captain-shared.md and it propagates read-only to the secondmate home ✅ pass live memory-layering-inherit-transcript.txt: 'data/captain-shared.md: pushed', and the destination is -r--r--r-- containing the Memory layering table
Concurrent secondmate relaunches serialize, and the relaunch lock wait is bounded (#7154) ⏸️ untested no The prior payload covered this only through test suites (tests/fm-secondmate-liveness.test.sh, tests/fm-secondmate-safety.test.sh). No concurrent relaunch was driven against live secondmate sessions,…
Pi extensions handle before_agent_start events after narrowing (#7248) ⏸️ untested no The prior payload covered this only through tests/fm-pi-branch-extension.test.sh and tests/fm-pi-watch-extension.test.sh. No live Pi agent session was started to emit a real before_agent_start event,…
Stow honours declared memory tiers and the session-start digest still completes with the role line ⏸️ untested no The prior payload covered this only through tests/fm-stow-cascade.test.sh and tests/fm-session-start.test.sh. No live stow or real session start was run in a home with declared tiers, so a live result…
Evidence: fm-role report/check transcript (default, consent, maintainer, adversarial)

Source: fm-role report/check transcript (default, consent, maintainer, adversarial)

## 1. default role (no config/firstmate-role)
$ FM_HOME=$PRIMARY bin/fm-role.sh report
fm-role: user (default)
$ FM_HOME=$PRIMARY bin/fm-role.sh check <fork clone, origin=lstutzman/firstmate>
refused: this home runs as firstmate user/operator and holds no publication authority for github.com/lstutzman/firstmate
exit=1
$ ... check <unrelated repo>
not a self-repository task
exit=2
$ ... check <fork clone> upstream-consent github.com/lstutzman/firstmate
authorized: task consent for github.com/lstutzman/firstmate
exit=0
$ ... check <fork clone> upstream-consent github.com/kunchenguid/firstmate   (adversarial: consent for wrong target)
refused: this home runs as firstmate user/operator and holds no publication authority for github.com/lstutzman/firstmate
exit=1

## 2. maintainer grant github.com/lstutzman/firstmate
fm-role: maintainer github.com/lstutzman/firstmate (local)
authorized: maintainer scope github.com/lstutzman/firstmate
exit=0
$ adversarial: add upstream remote -> kunchenguid/firstmate becomes target
refused: this home runs as firstmate user/operator and holds no publication authority for github.com/kunchenguid/firstmate
exit=1
$ malformed role file
fm-role: user (local) - malformed role file: invalid repository scope 'notascope'
refused: this home runs as firstmate user/operator and holds no publication authority for github.com/lstutzman/firstmate
exit=1
Evidence: Config inheritance transcript: typesafe-* and firstmate-role push, receipt, tamper, revocation

Source: Config inheritance transcript: typesafe-* and firstmate-role push, receipt, tamper, revocation

## primary config/firstmate-role:
# fork maintainer
maintainer github.com/lstutzman/firstmate
$ FM_HOME=$PRIMARY bin/fm-config-push.sh
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
config-push: /var/folders/w7/_1vd8cbs0hd3vx7cndzrjzf40000gn/T//fm-lab.HCfuGE -> live secondmate homes
secondmate sm-lab (/private/tmp/fmsm.zSon/home):
fm-config-inherit: error: primary source header missing required main-authoritative warning: missing "main-authoritative" data/captain-shared.md at /var/folders/w7/_1vd8cbs0hd3vx7cndzrjzf40000gn/T//fm-lab.HCfuGE/data/captain-shared.md
  crew-dispatch.json: unchanged
  dispatch-never-send: unchanged
  typesafe-base-url: pushed
  typesafe-model: pushed
  typesafe-token-file: pushed
  crew-harness: unchanged
  backlog-backend: unchanged
  backend: unchanged
  herdr-presentation-spaces: unchanged
  startup-memory-budget: unchanged
  trace-context: unchanged - session-scoped
  launch-env-allowlist: unchanged
  claude-permission-mode: unchanged
  lavish-axi-host: unchanged
  keep-ai-trailers: unchanged
  supervision-host-off: unchanged
  firstmate-role: pushed
  data/captain-shared.md: error - primary source header missing required main-authoritative warning: missing "main-authoritative"
CONFIG_REREAD: secondmate sm-lab: send failed: error: refusing fleet lifecycle from inside a no-mistakes gate worktree (~/.no-mistakes/repos/c050d9982933.git)
exit=1

## secondmate config/ after push:
.fm-inherit-firstmate-role.generation
firstmate-role
typesafe-base-url
typesafe-model
typesafe-token-file
typesafe-base-url: https://typesafe.example.test 
typesafe-model: jev-local-model 
typesafe-token-file: /nonexistent/token 
firstmate-role: maintainer github.com/lstutzman/firstmate 
.fm-inherit-firstmate-role.generation: 1 42 61436880f70da73d21c73b838daab97e6e9ee88888c3a6d53950b1524607707d put 
## secondmate data/captain-shared.md:
cat: /tmp/fmsm.zSon/home/data/captain-shared.md: No such file or directory
$ FM_HOME=$SECONDMATE bin/fm-role.sh report
fm-role: maintainer github.com/lstutzman/firstmate (inherited)
$ FM_HOME=$SECONDMATE bin/fm-role.sh check <fork clone>
authorized: maintainer scope github.com/lstutzman/firstmate
exit=0

## adversarial: tamper secondmate role file (receipt no longer matches)
fm-role: user - unverified inherited grant: the inherited role grant diverges from the receipt

## revocation: primary drops grant, push again
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
config-push: /var/folders/w7/_1vd8cbs0hd3vx7cndzrjzf40000gn/T//fm-lab.HCfuGE -> live secondmate homes
secondmate sm-lab (/private/tmp/fmsm.zSon/home):
fm-config-inherit: error: primary source header missing required main-authoritative warning: missing "main-authoritative" data/captain-shared.md at /var/folders/w7/_1vd8cbs0hd3vx7cndzrjzf40000gn/T//fm-lab.HCfuGE/data/captain-shared.md
  crew-dispatch.json: unchanged
  dispatch-never-send: unchanged
  typesafe-base-url: unchanged
  typesafe-model: unchanged
  typesafe-token-file: unchanged
  crew-harness: unchanged
  backlog-backend: unchanged
  backend: unchanged
  herdr-presentation-spaces: unchanged
  startup-memory-budget: unchanged
  trace-context: unchanged - session-scoped
  launch-env-allowlist: unchanged
  claude-permission-mode: unchanged
  lavish-axi-host: unchanged
  keep-ai-trailers: unchanged
  supervision-host-off: unchanged
  firstmate-role: pushed - mirrored primary absence
  data/captain-shared.md: error - primary source header missing required main-authoritative warning: missing "main-authoritative"
CONFIG_REREAD: secondmate sm-lab: send failed: error: refusing fleet lifecycle from inside a no-mistakes gate worktree (~/.no-mistakes/repos/c050d9982933.git)
exit=1
fm-role: user (inherited)
refused: this home runs as firstmate user/operator and holds no publication authority for github.com/lstutzman/firstmate
exit=1
Evidence: Memory layering section inherited via captain-shared.md

Source: Memory layering section inherited via captain-shared.md

$ FM_HOME=$PRIMARY bin/fm-config-push.sh   (captain-shared.md with Memory layering section)
config-push: /var/folders/w7/_1vd8cbs0hd3vx7cndzrjzf40000gn/T//fm-lab.HCfuGE -> live secondmate homes
secondmate sm-lab (/private/tmp/fmsm.zSon/home):
  trace-context: unchanged - session-scoped
  data/captain-shared.md: pushed
CONFIG_REREAD: secondmate sm-lab: send failed: error: refusing fleet lifecycle from inside a no-mistakes gate worktree (~/.no-mistakes/repos/c050d9982933.git)
exit=
## secondmate data/captain-shared.md:
-r--r--r--@ 1 leestutzman  wheel  480 Oct 14 08:59 /tmp/fmsm.zSon/home/data/captain-shared.md
<!-- main-authoritative: read-only in secondmate homes; must not be edited there. Edit on the main firstmate and send a marked status or document pointer. -->
# Shared captain preferences

## Memory layering

| Tier | Destination | Authoritative for | Correction rule |
|---|---|---|---|
| slarti-memory | MCP tools `mcp__mcp-memory-service__*` | decisions, corrections, references | append-only supersession |
| data/ | local files | disposable per-machine cache | edit freely |
## secondmate config typesafe still present:
jev-local-model
Evidence: Targeted upstream test results (relaunch race, pi, role, stow, session-start)

Source: Targeted upstream test results (relaunch race, pi, role, stow, session-start)

ok - sweep: distinct secondmate relaunches serialize across the task-set lock
ok - sweep: an authoritatively missing Pi secondmate window is relaunched
ok - sweep: an authoritatively missing pi-signed secondmate window is relaunched
ok - sweep: failed relaunch diagnostics distinguish a confidently missing endpoint
ok - relaunch: the spawn timeout bounds the lock wait before touching the endpoint
ok - sweep: an unreadable or unwritable relaunch ledger refuses to kill or spawn
fmt-fm-pi-branch-extension.log: 49 ok, 0 not ok
fmt-fm-pi-watch-extension.log: 60 ok, 0 not ok
fmt-fm-secondmate-liveness.log: 21 ok, 0 not ok
fmt-fm-secondmate-safety.log: 81 ok, 0 not ok
fmt-fm-self-repo-role.log: 20 ok, 0 not ok
fmt-fm-session-start.log: 60 ok, 0 not ok
fmt-fm-stow-cascade.log: 6 ok, 0 not ok

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 2 issues (1 warning, 1 info)
  • ⚠️ bin/fm-role-lib.sh:228 - Upstream #7172 lands as-is, as intended, but it changes how the fork works. Every home now defaults to the user/operator role. fm_role_gate_self_publish, called from fm-spawn.sh, refuses any publishing ship task whose project shares firstmate's root commit unless one of two things matches the publication target: a maintainer &lt;scope&gt; line in config/firstmate-role, or a per-task --upstream-consent. fm_role_publication_target picks the upstream remote before origin (fm-role-lib.sh:230). A fork clone used for syncing normally has upstream pointing at kunchenguid/firstmate, so the computed target is kunchenguid/firstmate, not lstutzman/firstmate. Concretely: after this sync, dispatching a PR task against the fork, such as the next upstream sync or a fork-only fix like PR feat: configurable base URL, model, and token file for the Jev dispatch resolver #6, is refused with 'holds no publication authority for github.com/kunchenguid/firstmate'. The only home-level grant that would pass names kunchenguid/firstmate, which also authorizes publishing to the real upstream. That is the opposite of what the fork wants. The intent says 'No fork behaviour should be dropped'. The fork's previously working ability to dispatch publishing tasks to its own repo now depends on new config, or on --upstream-consent for every task. The captain needs to decide one of: accept per-task --upstream-consent; remove or rename the upstream remote in the captain's checkout so origin (lstutzman/firstmate) is the target and grant maintainer github.com/lstutzman/firstmate; or carry a fork-only change to the target resolution. Changing code would go beyond 'upstream content should land as-is', so this needs authorization rather than an auto-fix.
  • ℹ️ bin/fm-config-inherit-lib.sh:90 - The FM_INHERITABLE_CONFIG conflict was resolved as stated. The fork's typesafe-base-url, typesafe-model and typesafe-token-file items are kept, and upstream's firstmate-role is appended with its receipt comment block. No conflict markers remain, and no other fork-specific (typesafe or Jev) lines are deleted anywhere in the diff. Every helper the cherry-picks call exists in the fork: fm_lock_acquire_wait_bounded, fm_lock_role, fm_sm_live_require_locks, fm_inherit_sha256 and isProcessingCustomMessage. The upstream source commits are not present locally, so byte-identity with upstream could not be checked directly; the review relied on the -x trailers and a clean read of the diff.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 8 of 11 scenarios driven live against the product
Scenario Result Live Evidence
Merged FM_INHERITABLE_CONFIG: primary pushes the fork's typesafe-base-url/model/token-file AND upstream's firstmate-role to a secondmate home ✅ pass live config-inherit-transcript.txt: all four items reported 'pushed', and the secondmate config/ holds the values plus .fm-inherit-firstmate-role.generation
Secondmate home reports an inherited maintainer role and is authorized for the matching scope ✅ pass live config-inherit-transcript.txt: 'fm-role: maintainer github.com/lstutzman/firstmate (inherited)' / 'authorized: maintainer scope ...'
Adversarial: a tampered inherited role file in a secondmate is rejected (receipt mismatch) ✅ pass live config-inherit-transcript.txt: 'fm-role: user - unverified inherited grant: the inherited role grant diverges from the receipt'
Revocation: primary drops the grant, pushes, and the secondmate falls back to user and is refused ✅ pass live config-inherit-transcript.txt: 'firstmate-role: pushed - mirrored primary absence', then 'fm-role: user (inherited)' and refused exit=1
Default home role is user; a publishing check on a firstmate-lineage repo is refused, and an unrelated repo is not gated ✅ pass live role-gate-transcript.txt: 'fm-role: user (default)', refused exit=1, 'not a self-repository task' exit=2
Per-task upstream-consent authorizes only the matching publication target (wrong-scope consent refused) ✅ pass live role-gate-transcript.txt: consent lstutzman exit=0, consent kunchenguid exit=1
Adversarial: a maintainer grant does not cover a different target when an upstream remote is added, and a malformed role file fails closed ✅ pass live role-gate-transcript.txt: refused for github.com/kunchenguid/firstmate; 'malformed role file: invalid repository scope' refused
Home declares a Memory layering tier (Slarti memory MCP) in captain-shared.md and it propagates read-only to the secondmate home ✅ pass live memory-layering-inherit-transcript.txt: 'data/captain-shared.md: pushed', and the destination is -r--r--r-- containing the Memory layering table
Concurrent secondmate relaunches serialize, and the relaunch lock wait is bounded (#7154) ⏸️ untested no The prior payload covered this only through test suites (tests/fm-secondmate-liveness.test.sh, tests/fm-secondmate-safety.test.sh). No concurrent relaunch was driven against live secondmate sessions,…
Pi extensions handle before_agent_start events after narrowing (#7248) ⏸️ untested no The prior payload covered this only through tests/fm-pi-branch-extension.test.sh and tests/fm-pi-watch-extension.test.sh. No live Pi agent session was started to emit a real before_agent_start event,…
Stow honours declared memory tiers and the session-start digest still completes with the role line ⏸️ untested no The prior payload covered this only through tests/fm-stow-cascade.test.sh and tests/fm-session-start.test.sh. No live stow or real session start was run in a home with declared tiers, so a live result…
  • FM_HOME=&lt;lab&gt; bin/fm-role.sh report with no config, a maintainer grant, and a malformed role file
  • FM_HOME=&lt;lab&gt; bin/fm-role.sh check &lt;fork clone origin=lstutzman/firstmate&gt; for default user, upstream-consent with the right scope, upstream-consent with the wrong scope, a maintainer grant, a maintainer grant with an added upstream remote, and an unrelated repo
  • FM_HOME=&lt;lab primary&gt; bin/fm-config-push.sh into a disposable cloned secondmate home (state/sm-lab.meta) with typesafe-base-url/model/token-file, firstmate-role, and captain-shared.md holding a Memory layering section
  • FM_HOME=&lt;secondmate&gt; bin/fm-role.sh report/check after inheritance, after tampering with the inherited role file, and after the primary revokes the grant and pushes again
  • bash tests/fm-secondmate-liveness.test.sh
  • bash tests/fm-secondmate-safety.test.sh
  • bash tests/fm-pi-branch-extension.test.sh
  • bash tests/fm-pi-watch-extension.test.sh
  • bash tests/fm-self-repo-role.test.sh
  • bash tests/fm-stow-cascade.test.sh
  • bash tests/fm-session-start.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

0x7067 and others added 4 commits October 14, 2026 08:31
* fix: serialize secondmate liveness relaunches across task set

* no-mistakes(review): Remove relaunch wait override and test bounded contention

* no-mistakes(document): Clarify secondmate relaunch locking and timeout documentation

* chore: keep local Stele binding out of shared template

* no-mistakes(document): Correct stale secondmate recovery timing comment

* chore: exclude local Stele binding from relaunch fix

* ci: retrigger CI after a timed-out test shard

* no-mistakes(document): Correct secondmate recovery ordering documentation

(cherry picked from commit 6407052)
…(#7172)

* feat(bin): gate firstmate-upstream publication behind a declared home role

Users who clone firstmate and run it as-is got a surprise: when their
agent hit a firstmate bug, it could drive a pull request at upstream
because nothing distinguished the maintainer's home from an ordinary
user's. Every home now resolves to user/operator unless the gitignored
config/firstmate-role grants a maintainer scope, or a single task
carries the captain's recorded --upstream-consent on the brief, spawn,
and promotion. fm-brief, fm-spawn, and fm-promote apply one fail-closed
gate in bin/fm-role-lib.sh; the role is never inferred from gh identity,
remotes, permissions, or CI, and secondmates honor only receipt-proven
inherited grants so a child cannot grant itself. Session start reports
the resolved role with no network call. Ordinary project delivery and
the clone-and-run setup flow are unchanged.

* no-mistakes(review): Harden firstmate role parsing, normalization, and inheritance

* no-mistakes(review): Detect firstmate by lineage; drop consent fallback; fix claims

* no-mistakes(document): Correct and consolidate Firstmate role documentation

(cherry picked from commit 7df545b)
* fix: narrow Pi before-agent prompt events

* no-mistakes(review): Restore processing-run abort detection and type Pi test events

(cherry picked from commit 8c9c67d)
* docs: let a home declare authoritative external memory tiers

AGENTS.md section 6 routed durable knowledge only to firstmate-local files,
so a home whose captain keeps reasoning and facts in external stores had no
tracked rule keeping those stores authoritative over the per-machine data/
cache. Add a generic home-declared Memory layering contract (schema in
docs/configuration.md), make firstmate the capture path for workers whose
harness cannot reach a declared tier, and teach the stow skill to route to
declared tiers first and never prune a tier-owned entry without capturing it.

* no-mistakes(review): Report missing memory-layering declaration and index tier docs

* no-mistakes(document): Narrow memory-tier re-seed step to captain re-declaration

* no-mistakes(ci): Environment: 2026-10-05, host wildrobot, Linux 7.0.0-34. Finding ci-1 (Greptile): a tier-owned fact could be lost when its declared tier was unreachable from the session. - The invariant that was broken: until the declared tier holds a tier-owned fact, that fact must stay in a memory file loaded at startup. - Where it could be broken: the declared-tier guard, which said to archive the entry to the never-loaded cold tier; the routing step for new findings, which only mentioned the receipt; and the budget-eviction and offload eligibility rules. Fix, made only in .agents/skills/stow/SKILL.md: - **New marker.** Added `<!--t:NAME-->` to the existing compact marker list, so its meaning lives in one place. It marks a tier-owned entry that tier NAME does not hold yet. Stow never prunes, ages out, evicts, offloads, consolidates away, or archives an entry carrying it, whatever its tier clock says. A later pass that can reach NAME captures the entry there and removes the marker. - **Declared-tier guard.** "still archive rather than delete" now says to leave the entry in place with its pending-capture marker, and the receipt still names it. - **Routing step 2.** When the tier is unreachable, a new finding is written to the startup-loaded local file its class would otherwise use, or kept where it already lives, with the marker. It is still reported as an exception in the receipt. - **Budget eviction and offload eligibility.** Both now exclude entries pending capture, so the convergence pool is counted correctly. - **Receipt bullet.** Changed "finding or pruned entry" to entries left carrying the pending-capture marker, because those entries are no longer pruned. docs/configuration.md ("protects tier-owned entries from pruning") and AGENTS.md section 6 are still accurate, so I left them unchanged. No new file, queue, script, or digest section. One sentence per line, plain dashes. Verification: tests/fm-stow-cascade.test.sh, tests/fm-documentation-audiences.test.sh, and tests/fm-lint.test.sh all pass

* docs: keep undeclared memory-tier path silent and close stuck tier markers

Drop the stow receipt line reporting a missing Memory layering declaration
(AGENTS.md section 6, the stow skill, docs/configuration.md) so a home with
no declaration behaves exactly as before. Name pending-capture entries in the
exempt floor wording, and say how stow retargets or clears a pending-capture
marker whose tier was renamed or retired.

(cherry picked from commit 2911a3b)
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