Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
Cycle 20261026 - verified delivery and honest writes: what the delivery trims, what the reply contained, what the store refuses to leak, and what every write surface admits
Status: draft Author: orchestrator (via feature-release-playbook) Audience: implementation
Problem statement
Open Second Brain's delivery and write surfaces stop one step short of the truth in eight places. Delivery bounds context packs with a tier-dominant budget, so a peripheral page restating the agent's question is dropped before a core page that does not, and nothing records whether an injected memory ever surfaced in the agent's reply. The preferences bank and llms-txt export filter by status only, so a rule the operator marked private rides out to shared surfaces that every other exporter already blocks. Dead extraction writes leave durable letters that name their payload but offer no classification and no one-command recovery, and an agent that patches vault files outside a hook or tool call has no gate that exits non-zero. The operator status says nothing about who holds the writer lock or that the status caller itself is read-only, folder reorganization must move notes one file at a time through a surface that refuses directory changes, and doctor resolves client commands without reporting which version of each client answered. Every one of the eight features replaces one of those silences with a measured, classified or scope-honest fact.
Scope
Eight features, each with its kanban card, grouped into four implementation lanes:
t_cb6a5558(Lane A) - Score-aware tail trim for delivered evidence: a config-gated trim after the tier gate that keeps the top 3 delivered items and any tail item whose query-term overlap nearly matches the top hit, drops the rest whole as a newtail-trimskip reason, and offers the freed budget back toover-budgetcandidates in priority order; telemetry reports dropped, kept-by-query-terms, rescued and tokens-saved.t_f8510c55(Lane A) - Reply-presence receipts: the answer-quote-check Stop hook folds per-injected-note presence verdicts (including an explicitabsentfor notes no reply span touched) into a sibling continuity record joined to the context receipt bysession_id; thesession_injectreceipt gains its missingsession_id.t_b88c2190(Lane B) - The preferences bank/llms-txt export learns the existing privacy deny markers:visibility: privateand the informalaccess/confidentiality/sensitivitymarkers deny a preference from every shared lane (json export, llms-txt, bank bundle, knowledge pack), each omission named, with no override flag.t_50794f57(Lane C) - One-command recovery for dead extraction writes: dead-letter schema v2 freezes the payload at failure time; a classifier labels every rowrecover,pending,re-extract,not_recoverableorresolvedwith the exact copy-paste command;o2b brain dead-letters recoverre-runs the recorded payload at current vault state behind the established consent ladder.t_dc782fd5(Lane C) - Standalone validation gate:o2b brain validate --paths <p>... | --dirtyruns the exact write-receipt page-lint vocabulary over a caller-named page set or every git-dirty note and maps findings to doctor's exit-code contract, so an unhooked agent or cron script can block its own commit.t_9571a47f(Lane D) - Folder-level note moves and renames: two new actions on the existing note-lifecycle surface move or rename a whole folder, refuse occupied destinations before the first byte moves, and rewrite inbound path-spelled wikilinks in a single pass over the successfully moved set.t_cfe2ce5d(Lane D) - Status store-ownership honesty: the operator snapshot gains astoregroup reporting the search writer lock asheld/free/unknownwith age, an owner field that truthfully reads null because the lock record carries no identity, and athisCaller: read-onlystatement.t_8e49ec96(Lane D) - Doctor client versions: aclient_versionsreadiness probe besideregistered_commandsasks each manifest-recorded client its version with a fail-soft read-only async spawn and grades rows pass/unknown/skipped, never fail.
Plus the integrator/docs phase (outside the four lanes): docs/cli-reference.md, docs/mcp.md, CHANGELOG.md, and the two wiring-file description lines that belong to Lane C-owned files.
Out of scope
- Writer-lock owner identity stamping (an owner record written inside the lock directory at acquire time) - deferred; v1 reports
writerLockOwner: nulland says so in the renderer rather than inventing a holder. The brain-lane.lockfiles stamp a pid, but no surface reads it back and the status field is scoped to the search writer lock only, stated in the docblock. - Dead-letter deletion on recovery - the retention rule stands: nothing in the project deletes a dead letter; a successful recovery says so and names the file the operator may delete by hand.
- A CLI flag for the tail trim - the established MCP-first precedent (
query_mode, packing-policy, entity-facts): the config key and env var resolve for MCP callers; the CLI context-pack verb reads no config gates today and gains none here. - Extending the trim to the
packingPolicybranch ofpackContext- the unified path only in v1, with a note in the module where the policy branch begins. - Reply presence for the
pre_compressinjection lane - the card and the Stop hook cover the recall/active/subagent phases; pre-compression presence is a follow-up. - Inventing a privacy class for preferences - the export teaches the existing deny markers (
pageVisibilitytoken plushasPrivacyDenyMarker); the knowledge pack already blocks class-marked pages. - Auto-fix in the validate gate - report-only in v1; findings carry their existing
next_commandpointers tobrain doctor --repairandbrain lint --consolidate --apply, and no third fix vocabulary is grown. - A minimum-version table for doctor client versions - no
minVersioncolumn, no config surface; the grading vocabulary stays withoutfail. - Lane edits to
docs/cli-reference.md,docs/mcp.mdandCHANGELOG.md- all integrator/docs phase. - The doctor message touch-up in
src/core/brain/doctor/privacy-marker-check.ts(naming the preference export as a marker reader) - deferred as behavior-neutral; the existing sentence stays true after this change. - Changing the locking strategy, the append-only continuity store, or the closed dead-letter lane union.
Premise verification
All eight premises were verified against live source by read-only recon; each holds in a narrowed form that the scope above encodes:
t_cb6a5558- holds (narrowed): the comparator atsrc/core/brain/context-pack.ts:925-948sorts tier first and the walker at 1205-1223 reports onlyover-budgetwith no term-aware rescue, while the ranked-mode jaccard scorer at 897-905 already supplies the lexical overlap to reuse; the config-gated trim is fully specified and buildable now. (The card's 642-653 anchor had drifted; the validator's corrected anchor holds.)t_f8510c55- partly false, corrected: per-injected-note reply-presence receipts genuinely do not exist, but the premise that nothing reads the answer is stale - the Claude Code Stop hook (answer-quote-check) already reads the turn's assistant messages from the transcript, and context receipts record a hash and char count of the final text. The build extends the existing Stop lane; no transcript reading is built from scratch.t_b88c2190- partly false, narrowed to the preferences bank/llms-txt export lane (src/core/brain/export.ts): the knowledge pack already blocks privacy-marked pages viapageBlockReasonand informal markers deny at every remote read root, so the claim "no export surface reads a privacy marker" is refuted for the main lanes; the residual status-only export is the one real lane, and it is taught the existing deny markers rather than a new class.t_50794f57- holds (narrowed): dead letters already carry lane, error and payload identity butlistDeadLettersis the only API and no classifier or command exists. The signal lane carries no revision counter, so re-admission re-runs the recorded payload at current vault state rather than at a recorded revision; the dead-letter schema bumps to v2 with an optional frozen payload, and v1 letters classify asre-extract.t_dc782fd5- holds:brain lintreturns 0 even with unresolved findings (src/cli/brain/verbs/lint.ts:31), no CLI verb exits non-zero for note-content findings, and a git-dirty gate reusing the write-receipt page-lint vocabulary and doctor's exit contract is actionable now.t_9571a47f- holds: note lifecycle is defined for note files one at a time andsrc/core/brain/notes/lifecycle.ts:623refuses any rename that changes directory, so folder-level one-pass inbound rewrite is an identified deterministic extension with no invariant tension against the existing rename/move split.t_cfe2ce5d- holds (narrowed):isWriterLockHeldexists but nothing in status calls it, and the writer lock is a bareproper-lockfiledirectory carrying no owner identity - mtime only. V1 therefore reportswriterLockOwner: nullplusheld/free/unknownand a this-caller read-only statement; identity stamping is explicitly deferred.t_8e49ec96- holds: theregistered_commandsprobe only resolves executables intoresolves/absent/unresolved(src/core/install/command-probe.ts:73-80) and nothing reports a client's own version; a fail-soft, read-only version row slotted beside it is actionable now.
Chosen approach
Four parallel lanes on provably disjoint file sets, each reusing the seam its recon verified rather than building a parallel surface. Lane A reuses the ranked-mode jaccard kernel inside the unified packContext walker for the trim (flag off stays byte-identical) and the existing Stop-hook check loop for presence, emitting an append-only sibling record because the continuity store cannot amend the receipt written at injection time. Lane B computes denials once at the collector seam where the frontmatter map is already parsed, keeps rows complete for the import topic maps, and lets the json envelope, llms-txt variant, bank bundle and knowledge pack each name what they leave out. Lane C adds the two new flat verbs (dead-letters, validate) with a core classifier and a tiny git-dirty helper, owning all four CLI wiring files exclusively. Lane D extends the note-lifecycle action vocabulary and the operator snapshot and the readiness probe registry - no new verbs, so it needs none of the wiring files. Every destructive path follows the repo's established consent ladder (dry-run default, headless --yes, frozen-vault and vault-identity guards), and every new reportable fact is named in an existing reporting contract (omitted/blocked arrays, skip reasons with gap telemetry, readiness rows, snapshot groups) rather than a second vocabulary.
Design decisions
Lane A - delivery (t_cb6a5558, t_f8510c55)
- Trim lives after the unified walker, reusing comparator scores. The trim applies once
opts.tailTrimis on and a query is present: the first 3 delivered items are immune (module constantCONTEXT_PACK_TAIL_TRIM_KEEP), a tail item whose jaccard score against the query is at leastTAIL_TRIM_KEEP_FRACTION(0.8) of the top delivered score is kept, everything lower is dropped whole with a new"tail-trim"skip reason, and the freed budget is offered toover-budgetcandidates in priority order - rescue is the only path across tiers, bounded by the samemaxTokens, and never reorders the attention item. Inrankedmode the scores already sit inrelevanceByIdand are reused; in other modes they are computed under the flag only. Rationale: the validator's "after the tier gate" phrasing and the named-constant-not-knob precedent (CONTEXT_PACK_ENTITY_FACTS_MAX_ENTITIES); in-walker placement keeps the off-path byte-identical and makes the receipt correct for free, since finalize mapsreport.items. - Trim reporting rides the existing conditional-member shape:
tailTrim?: { dropped; keptByQueryTerms; rescued; tokensSaved }onContextPackReport, attached infinalizeContextPackReportonly when the option ran, with the counters echoed intocontextPackBudgetMetadataso receiptbudgetand telemetrymetadatacarry them andcontextPackGapssurfaces the new reason as gaptail_trimautomatically. Names echo upstream'sdelivery.tail_trimwithout copying its envelope. - Flag resolver follows the precedent family:
resolveTailTrimContextPack(config keytail_trim_context_pack, envOPEN_SECOND_BRAIN_TAIL_TRIM_CONTEXT_PACK) beside the entity-facts resolver atsrc/core/config.ts:862-876, default off, absent option documented as byte-identical. - Presence is a sibling continuity record, not a receipt amendment. The continuity ledger is append-only, so the Stop hook cannot revise the receipt written at injection time; instead it appends
kind: "reply_presence"with{ session_id, per-note verdicts, checked, source_hash? }, and the receipt read surface gains a conditional join. The new kind joinsCONTINUITY_RECORD_KINDS(same-edit rule) and gets a keep row inFOLDABLE_CONTINUITY_KINDS' siblingKEPT_CONTINUITY_KINDS- the fold-decision census fails on any kind without exactly one decision, and per-turn verdict rows are not fold candidates in v1. - Per-note outcomes reuse
ANSWER_QUOTE_VERDICT, extended withabsent: a note at least one reply span verified against readsverified; a note whose spans all miss reads its strongest miss verdict; a note no span touched readsabsent- the row this feature exists to surface. One vocabulary, census-silent (the census entry self-derives from the constant); no second per-note set. - The join key is fixed at the source:
hooks/active-inject.tsaddssessionIdto thesession_injectreceipt (additive payload member), so receipt-to-presence joins do not depend on time windows. Where no session id exists on either side the read reportsunjoined- honest absence, never an inferred match - and the join runs at the caller's reach: a note row the reach view hides is dropped fromper_noteand counted inwithheld, so a filtered join never reads as a smaller check (the receipts-reach clause in the follow-up docs wave names this). Presence rides the existing per-phasequote_check.*modes (off/shadow/enforce, default shadow): no new config key, and operators who want silence set the phase off. Codex and grok stay annotation-silent as today, but the presence record writes wherever a transcript exists;hooks/README.mdstates this beside the existing annotation caveat.
Lane B - export privacy (t_b88c2190)
- Denial is computed once at the collector seam.
collectPreferenceRowsalready holds the parsed frontmatter map atsrc/core/brain/export.ts:269and discards it; the denied array is computed fromhasPrivacyDenyMarker(meta)andpageVisibility(meta)right there - no extra file read.rowsstays complete because the import-side topic maps (preference-restore.ts:592,knowledge-pack.ts:878) must keep seeing every row; denial is a report beside the rows, not a filter inside the collector. - The deny is unconditional and named everywhere. There is no
--include-privateremedy (the knowledge pack carries none for its visibility blocks); a deny reason is"visibility"matchingpageBlockReason's vocabulary. The json envelope gainsomitted: [{id, reason}], absent when empty so the byte-identity redaction fixtures hold and the schema stays 1 (additive per the module's own versioning rule); llms-txt gains a detailed{text, omitted}variant with the stable string signature delegating to it (SDK stability); the export verb writes a stderr omission notice in thecontentClassOmissionNoticeshape whose remedy sentence names the reservation key, not a flag. - Shared surfaces follow so no two exporters disagree about the same directory: the bank bundle filters denied preferences and
brain bank-exportnames the omissions on stderr (same shape as its existing content-class notice), and the knowledge pack converts collector denials intoblockedentries{kind: "preference", id, reason: "visibility"}so its name-every-omission contract holds. A denied preference cannot ride redacted (the pack carries preferences with empty body), so this is drop-and-name.
Lane C - capture writes (t_50794f57, t_dc782fd5)
- Schema v2 freezes the payload at failure time.
DEAD_LETTER_SCHEMA_VERSIONbumps to 2 with an optionalpayloadfield (the validated items array, bounded by the existing 12-item per-session cap) written byextract-signals.tswhen the mid-payload write throws; parsing stays strict per version, v1 letters keep parsing and classify asre-extract, unknown versions still refuse. No config key gates capture - the growth is small JSON and a knob here would silently downgrade the one fact recovery depends on. - The classifier has five honest states.
recover(v2 payload, session still capture-classified, missing items not already deduped away),pending(staged items sit in the write-approval queue; the command namesbrain pending apply),re-extract(a payload-less v1 letter, or a frozen payload that no longer passes the lane's own shape and semantic validation; the command namesbrain extract-signals <reference>),not_recoverable(session unknown or boundary now refuses; no command, reason rendered), andresolved(every missing key now exists on disk) - the fifth state is required by the retention rule, else a reconciled row reads as still-broken forever. Unknown future lanes refuse by name asnot_recoverable; the lane union stays closed on purpose. - Re-admission means re-run at current state, never at a recorded revision. The extraction-signal lane carries no revision counter - its concurrency story is the content-derived dedup hash plus atomic writes - so
recover --applycallscommitExtractedSignalswith exactly the MISSING items the letter names - never the whole payload, which would resurrect a delivered item an operator later removed (a deleted signal, a rejected queue row the dedup index never walks) - and lets it re-derive the capture boundary, dedup index and staging lane at call time; nothing stale is replayed by construction.expectRevisionbecomes load-bearing only if a preference-writing lane ever joins the union. o2b brain dead-lettersis a new flat verb (list default,show <id>,recover <id>): dry-run default with per-item verdicts,--applyrequiring--yesunder--jsonor non-TTY (thebrain lint/brain doctor --repairrule), frozen-vault and vault-identity guards inherited, and the record id serving as the pin (thewrites revert --apply <digest>pattern). The record'sDIAGNOSTIC_SIGNALSentry points theExtractSignalsWriteErrormessage at the surface so the MCP error boundary - which never sees the typed write error today - can name the next command.o2b brain validateis read-only and non-interactive by construction. Selection is exactly one of--paths(vault-relative, canonicalized, escape refused by name) or--dirty(a new tiny helper runninggit status --porcelainon the vault, including modified, added and untracked Markdown - an agent-created new note is exactly the target population; a non-worktree vault is a named refusal with exit 2, never a silent clean pass). Checks reuselintWrittenPagesverbatim - the write-receipt vocabulary plusvalidateArtifact's error-severity document checks, and nothing new. Exit contract byte-for-byte doctor's lint ladder: errors or an unreadable named page 1 (a gate that could not read what it was pointed at may not report clean),--strictwarnings 2, clean 0; exit 2 is SHARED with the verb's own usage refusals - the non-worktree--dirtyrefusal, an escaping--pathsvalue, a bad selector - the same overlap doctor's usage paths accept, and a cron caller distinguishes them by the printed reason, not the code alone;--jsonreusesPageLintReportfield names with no advisory-rail lines. The documented split keeps it from duplicating doctor: doctor is the whole-vault structural invariant pass with repair modes; validate is per-page authored-content lint over a named subset with the exit code as the product.
Lane D - operator surfaces (t_9571a47f, t_cfe2ce5d, t_8e49ec96)
- Folder moves are two new actions on the existing note-lifecycle surface, split from day one:
move-folder <folder> <toDir>(destination parent must differ) andrename-folder <folder> <newName>(single segment, same parent), mirroring the file surface's rename/move discipline that catches caller mistakes. The vocabulary extendsNOTE_LIFECYCLE_ACTIONso the CLI guard, MCP enum and manifest stay in sync from one constant;delete/archivestay file-only and are refused for folder actions. - The folder envelope mirrors
resolveNoteTargetminus the.mdrung: vault-relative, realpath inside the vault, not underBrain/, vault-scope checks, write binding on the destination, source must stat as a directory, vault root refused. Occupancy pre-flight checks every destination path (plus the dev/ino case-only check) before the first rename and refuses withdestination_occupiednaming every collision and nothing moved. The operation is explicitly not atomic and says so: mid-set I/O failures are recorded inmoveFailures(renderedmove_failures), the rewrite pairs are computed from the successfully moved set only, and no rollback is attempted - the settled partial-failure doctrine. Two named additions shipped with it: a mid-set fault that linked the destination name before failing drops that second name (the source still holds the inode; declared in the destructive-sites census beside the prune), and the emptied source directories are pruned bottom-up, with the residue a prune could not remove named inleft_behind. The refusal vocabulary grewdestination_inside_sourceandmove_set_emptybesidedestination_occupied. - One rewrite pass is genuinely complete for folders: a folder move never changes a basename, so bare
[[Name]]spellings keep resolving anddecideBasename/bareNameRepairshave nothing to do; only path-spelled links break, and a singleretargetWikilinkscall over all pairs (minimal spellings computed against the post-move population) fixes them, including links inside the moved folder.--expect Nkeeps its established meaning - files the apply will write (inbound referers), not files moved. - The status
storegroup is three-state and fail-soft, wrapped exactly likewriterLockRefusal:writerLock: held | free | unknown(stat failure readsunknownwith the errno - "could not find out" is not "free"),writerLockAgeMsfrom mtime when held,writerLockOwner: nullalways in v1 (the lock is a bare directory; the renderer statesowner: unknown (the lock record carries no identity)so absence is a measurement, not a gap),writerLockPathin the CLI payload only (withheld below MCP local reach, likestateFiles.searchIndex; the follow-up security wave extended the rule - the probe's failure reason is redacted below local reach because the fs error embeds the same path, and the browser explorer is a second below-local surface that withholds the path and scrubs it from the reason), andthisCaller: "read-only"with the rendered consequence, scoped to what the lock gates (an index write -o2b search index/ reindex - while held refuses withINDEX_LOCKED; vault and memory writes serialize on the brain lane's own lock files and are not gated by this lock). A held lock is a live writer, not a fault: no problem line, not folded intohealthy- thefrozen-field precedent. An injectedwriterLockHeldAtseam (named afterMigrationPlanInput.writerLockHeldAt) makes the states testable. - The
client_versionsprobe is manifest-scoped and fail-soft: detection comes from the install manifest likeregistered_commands(a client installed but never registered is out of scope, stated in the docblock); a small constant table maps each target to its version argv (generic: null, skipped by name); execution is async spawn inside the existing per-probe timeout so the budget actually covers it; grading ispass(exit 0, non-empty stdout - the raw first line, never semver-parsed),unknown(throw, non-zero, timeout, empty - ENOENT wording points atregistered_commandsrather than duplicating a fail), orskipped; there is nofailin v1 because a version row never proves a surface broken. Aggregate and detail followprobeRegisteredCommands' shape; the additive optionalrowsfield onReadinessProbeResultrides only this probe, so the exit codes are untouched - a fully unknown probe stays exit 6, not 1 - whilereadiness_summarygains the probe's own counts like every probe before it (itsunknowncan read one higher than a pre-1.95 vault's). Binary names beyondcodexandcopilot-cliare confirmed against each adapter's detect logic before shipping.
Cross-lane
- Docs ownership keeps lane sets disjoint: lanes never edit
docs/cli-reference.md,docs/mcp.mdorCHANGELOG.md(integrator/docs phase);docs/mcp.mdis integrator-owned because three of the four lanes need rows in it. Lane A keeps its lane-exclusive docs (docs/how-it-works.md,docs/observability.md,hooks/README.md).
File changes
Per lane (exact per-task lists in plan.md):
- Lane A (20 files):
src/core/brain/context-pack.ts,src/core/config.ts,src/mcp/brain/pack-tools.ts,hooks/answer-quote-check.ts,src/core/brain/answer-quotes/check.ts,src/core/brain/continuity/types.ts,src/core/brain/receipts/types.ts,src/core/brain/context-receipts.ts,hooks/active-inject.ts,src/cli/brain/verbs/context-receipts.ts,src/core/search/visibility-surface-registry.ts,docs/how-it-works.md,docs/observability.md,hooks/README.md, plus tests:tests/core/brain/context-pack-tail-trim.test.ts(new),tests/core/config-counterparty-brief.test.ts,tests/mcp/context-pack-tool.test.ts,tests/hooks/answer-quote-check.test.ts,tests/core/brain/context-receipts.test.ts,tests/mcp/context-receipts-tool.test.ts. - Lane B (9 files):
src/core/brain/export.ts,src/cli/brain/verbs/export.ts,src/core/brain/portability/knowledge-pack.ts,src/core/brain/portability/bundle.ts,src/cli/brain/verbs/bank-export.ts, plus tests:tests/core/brain/export.test.ts,tests/cli/brain-export.test.ts,tests/cli/export-redaction.test.ts,tests/core/brain/portability/knowledge-pack.test.ts. - Lane C (15 files):
src/core/brain/dead-letter.ts,src/core/brain/extract-signals.ts,src/core/brain/dead-letter-recovery.ts(new),src/core/brain/vault-dirty.ts(new),src/core/brain/diagnostics.ts,src/cli/brain/verbs/dead-letters.ts(new),src/cli/brain/verbs/validate.ts(new),src/cli/brain.ts,src/cli/brain/verbs/index.ts,src/cli/command-manifest.ts,src/cli/brain/help-text.ts, plus tests:tests/core/brain/dead-letter.test.ts,tests/core/brain/dead-letter-recovery.test.ts(new),tests/cli/brain-dead-letters.test.ts(new),tests/cli/brain-validate.test.ts(new). - Lane D (13 files):
src/core/brain/notes/folder-lifecycle.ts(new),src/core/brain/notes/lifecycle.ts,src/cli/brain/verbs/note-lifecycle.ts,src/mcp/brain/lifecycle-file-tools.ts,src/core/brain/operator-snapshot.ts,src/mcp/brain/health-tools.ts,src/core/doctor-readiness.ts,src/cli/main.ts, plus tests:tests/core/brain/notes/folder-lifecycle.test.ts(new),tests/core/brain.operator-snapshot.test.ts,tests/cli/status.test.ts,tests/mcp/maintenance-status-reach.test.ts,tests/core/doctor-readiness.test.ts. - Integrator/docs phase (5 files):
docs/cli-reference.md,docs/mcp.md,CHANGELOG.md, plus thenote-lifecycledescription line insrc/cli/command-manifest.tsand the usage-block line insrc/cli/brain/help-text.ts(folder actions), landed after Lane C.
The four lane sets are pairwise disjoint; no source or test file appears in two lanes. Lane-internal serial tasks may touch the same file (wiring files in Lane C, docs/observability.md and the folder test file within their lanes).
Risks and open questions
- Rescue versus tier gate. The rescue is the only path by which a page crosses tiers; it is bounded by
maxTokensand priority order, and the top-3 immunity anchors the head. Risk: a rescued peripheral page displacing a would-be core page - bounded because rescue runs after the walker filled every tier-affordable candidate, so only genuinely over-budget candidates compete for freed budget. - Skip-reason ripple. The new
"tail-trim"reason ripples into the gaps vocabulary; verified that consumers pass reasons through verbatim (pack-tools.ts:582) and existing test pins are scenario-specific, not exhaustive over the union. The new reason's pins live in the new tail-trim suite. - Marker durability on preference files. Denials read live frontmatter;
mergeFrontmatterTieredkeeps user-tier keys, andbrain-preferenceis inDEFAULT_TIER_MAP, so hand-added markers survive framework rewrites. Residual risk is an operator removing a marker to re-share - which is the intended mechanism, not a defect. - Byte-identity pressure on the export. The
export-redactionfixtures pin "nothing to redact is byte-identical"; theomittedfield must be absent-when-empty and notices stderr-only, and both properties get their own pins. - Presence record volume. One
reply_presencerecord per checked Stop event grows the continuity ledger per turn; bounded and kept-never-fold in v1. If volume proves noisy, the follow-up is a mode, not silent suppression. - Join coverage honesty. Receipts without
receipt_session_idand presence records without a matchingsession_idreadunjoined; no time-window inference. Documented in the read-surface help text. - Census self-derivation assumption. Both vocabulary extensions (
ANSWER_QUOTE_VERDICT+absent,NOTE_LIFECYCLE_ACTION+ two actions) are expected census-silent because census entries derive from the live constants. If either lane discovers a required census edit, it stops and reports rather than editing the shared census file (contract item 6). The fold-decision census requires theKEPT_CONTINUITY_KINDSrow in the same change as the record kind - that edit is Lane A's own file. - Version-command table accuracy. Only
codexandcopilot-clibinary names are confirmed by in-repo spawn precedent; the table's remaining rows are verified against each adapter's config/detect logic before the probe ships, and a correction is a one-line follow-up in the table's own module. - Two doctors. Lane D touches
src/core/doctor-readiness.ts(theo2b doctor --readinesssurface) while the brain doctor (src/core/brain/doctor.ts) is untouched; commit messages keep the distinction explicit so review does not conflate them. - Lock age meaningfulness.
writerLockAgeMsderives from the lock directory mtime, refreshed by a 30 s heartbeat; an age above the stale window reads as a stale residue the doctor'sstale-lockprobe already owns, and the status line says nothing stronger than the measurement.