fulcra-tools
AGENTS.md10 starsChanged 3 months agoMITView on GitHub
Your entry point to this repo. Fulcra helps agents know their user, know what's happening in their user's world, work with their user's other agents, and become more helpful over time — the packages here are working examples of all four. This file covers the non-obvious environment and the conventions you can't infer from the source; the README.md tells the top-level story (what each package is, how to install the pieces) and this file does not repeat it. Keep the…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository19 other files it gives its agents.
- coordinator-disciplineSkill
- fulcra-agent-atcSkill
- fulcra-agent-automationSkill
- fulcra-agent-cloud-coordinatorSkill
- fulcra-agent-continuitySkill
- fulcra-agent-directivesSkill
- fulcra-agent-durable-stateSkill
- fulcra-agent-forgeSkill
- fulcra-agent-healthSkill
- fulcra-agent-operatorSkill
- fulcra-agent-presenceSkill
- fulcra-agent-reconcileSkill
- fulcra-agent-reviewSkill
- fulcra-agent-rolesSkill
- fulcra-agent-tasksSkill
- fulcra-content-reviewSkill
- fulcra-fdeSkill
- fulcra-lab-resultsSkill
- sealed-secretsSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
README updates are required with every change: Every update to Fulcra Tools or anything in it must update the relevant READMEs in the same …
- Distinctive: line 29
This file is a ship-gate artifact: Every PR that changes agent-facing behavior — CLI verbs, skills, conventions, environment requirements, …
- Very specific: line 80
All packages, plugins, skills, examples, and release artifacts must be reusable without personal accounts or machine-specific values.
- Very specific: line 273
Do NOT use --all-extras here: it pulls the macos extra, whose PyObjC wheels build by shelling out to /usr/bin/sw_vers, which does not exist …
- Very specific: line 281
Run tests: uv run pytest packages/ -q (a couple of minutes, and must NOT hit the network — a network-bound run is the bug, not slowness).
- Very specific: line 305
No team-particular identity in engine logic.
- Very specific: line 319
When the trusted feed fold still corroborates tasks omitted by a full-scan listing, reconcile fails closed and preserves the current …
- Distinctive: line 326
Do the reader sweep in the same change, and say in the PR which readers you checked — "I did not audit the others" is a finding, not a …
- Very specific: line 343
Every rep at -8d, -9d, -10d, -12d and -15d returned HTTP 500 with an empty body.
- Very specific: line 416
When a role's registered maintainer: is also one of its own lease holders, the alarm cannot reach a supervising identity.
- Very specific: line 646
Read health before anything else: UNKNOWN means the authority itself was untrusted and the rows must not be acted on.
- Very specific: line 696
Prefer if cmd; then …; else ….
- Distinctive: line 697
When reporting a BATCH, count the artifacts on the store rather than tallying exit codes you did not check.
- Very specific: line 713
Legacy Bus-v3 migration is authority/cursor-only: Run coord-engine bus-v3 migrate <team> --dry-run first, then --apply only after every …
- Very specific: line 833
Slug dedup + delivery rc: Every directive slug carries a payload hash (<title-slug>-<sha256(payload)[:8]>), so identical resends dedupe by …
- Very specific: line 1100
ONLY by the lapse sweep (below), and clearing lapsed takes an explicit session re-declaration.
- Very specific: line 1101
Every fold PARSES engagement through the ONE defensive seam presence.parse_engagement(fm) — any malformed input (non-dict, unknown …
- Distinctive: line 1108
Activity implies liveness: Every engine bus WRITE verb refreshes the
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fulcra Tools — agent guide
Your entry point to this repo. Fulcra helps agents know their user, know
what's happening in their user's world, work with their user's other agents,
and become more helpful over time — the packages here are working examples of
all four. This file covers the non-obvious environment and the conventions
you can't infer from the source; the README.md tells the
top-level story (what each package is, how to install the pieces) and this
file does not repeat it.
Keep the monorepo framing. These are unofficial, unsupported tools and skills vibe-coded by Fulcra's lawyer to work with Fulcra. Coordination and continuity work independently of Collect. Collect is an optional host for local/source connectors, not a prerequisite for using Fulcra. The root README indexes every package and bundled skill; retain the human introduction and verify release claims.
Record each new actionable user request as an owned bus task, or update the matching task. Keep its scope, status, prerequisites, next action, and completion evidence current. A continuity checkpoint is not a substitute for the task backlog.
README updates are required with every change. Every update to Fulcra Tools or anything in it must update the relevant READMEs in the same PR, including fixes, plugins, installers, commands, and workflows. If a package has no README, update its nearest owning README or add one. Update the root README when the change affects installation, available tools, or release status. Document current behavior and limits; label unfinished work. Reviewers must block a change whose README update is missing or stale. This is a standing repository rule.
This file is a ship-gate artifact. Every PR that changes agent-facing
behavior — CLI verbs, skills, conventions, environment requirements, review
rules — MUST update this file in the same PR. Reviewers: treat a stale
AGENTS.md as a blocking finding. If your change doesn't alter what an agent
needs to know, say so in the PR body ("AGENTS.md: no change needed").
No one-off fixes on coordination or continuity surfaces (operator law,
2026-08-14; earned by twelve strict-consumer incidents,
OUTPUT-CONTRACT.md). Root-cause every
incident and fix it upstream at the surface that produced it, not with a
defensive patch at the consumer. The models reading these surfaces are smart;
what they need from us is surfaces that are durable.
Apple Notes reconciliation/writeback: listing timestamps are not a content baseline. Reconciliation reads tracked vault bodies so edits near a sync are not missed; retain the complete internal change list and cap only report presentation. Partial AppleScript write failures must produce a failed report and failed run.
Selected-list task sync: Reminders uses EventKit, with separate read-only
permission checks and explicit permission requests. No lists are selected by
default. Import and source completion must re-check live selection, enabled
state, and preview mode before each write. Task status is open or resolved;
identity and generation fields bind a completion to the source task. Normalize task paths to absolute Fulcra paths at the Files adapter boundary
for both history lookup and upload; the API rejects relative upload paths. Read all
unseen Fulcra file versions so a concurrent bot edit survives an importer write.
Missing source tasks are never completion evidence. Todoist task-detail lookup
can return checked: true after completion; accept it only with valid explicit
completion evidence. Keep active-list validation separate: a checked task there
still invalidates the snapshot. Recurring writeback is
unsupported until the provider can atomically protect the intended occurrence.
Capture RunContext.config_epoch with settings and pass it into the task engine;
check it in the live selection callback. Configuration and credential transitions
must invalidate pending journals even when no sync runs between the changes.
Save configuration under a cross-process lock and publish it atomically.
Merge each caller's edits against its immutable load/save baseline: enabled
membership, interval keys, and individual plugin-setting keys merge independently.
An unchanged stale value must never undo a disable or remove another caller's
setting. Divergent edits to the same field raise ConfigConflictError before
publication; reload and retry instead of force-saving the stale object.
For explicit user submissions use enable, disable, set_interval, and
update_plugin_settings(plugin_id, values): these preserve intent even when the
submitted value equals the loaded baseline. Direct mapping edits carry only
semantic differences and cannot represent an explicit unchanged-value request.
Interactive Fulcra sign-in/sign-out must persist an account_transition gate and
rotate all plugin epochs before changing the token, then rotate again before
clearing the gate on success. Task callbacks reject the gate as well as stale
epochs. Failure leaves the gate closed until an interactive retry succeeds; normal
configuration saves and automatic token refresh must never clear it.
Public repository privacy
All packages, plugins, skills, examples, and release artifacts must be reusable
without personal accounts or machine-specific values. Follow
docs/PRIVACY.md before publishing. Run the tracked-tree
privacy guard and credential scan; also review fixture provenance, public
messages, and generated artifacts. Account-specific UUIDs and device names
remain private even in retired-channel fixtures. Adoption claims must use the
authority-checked bus sender; a failed send must not fall back to a hard-coded
channel or write its success marker. Passing a pattern scan is not proof that
all personal information has been removed.
Answers bridge configuration: account IDs and project URLs stay private,
just like credentials. Ship only synthetic examples; the privacy guard rejects
the private account config and credential filenames even inside archives. Select the config with
ANSWERS_LINEAR_CONFIG or --config, require COORD_TEAM, and load credentials
only from LINEAR_API_KEY or an explicit ANSWERS_LINEAR_ENV. Help and local
setup checks must not contact services. Preserve the existing sender, workstream,
and promotion source when migrating an operator's private configuration so a
pending promotion retry keeps its task identity.
Where to start
Zero state — never installed coord-engine, or joining from a fresh / remote /
sandboxed host? Start at
docs/coord/GET-ON-THE-BUS.md — install → auth →
(remote egress) → team bootstrap from zero → join. The probe grid below assumes the
engine is installed and a <team> exists; if coord-engine is command not found
or you have no team yet, the grid can't help you — the quickstart is the entry.
Already on the bus? Run the probes top to bottom, then jump to the layer you're touching. First failing probe is where your setup gap is.
| Probe / question | Command | Passes when | Where to go |
| Engine + auth usable? | coord-engine doctor <team> | exits 0 — tooling present, store reachable | never installed / command not found / no team yet → docs/coord/GET-ON-THE-BUS.md (install → auth → bootstrap → join). Otherwise fix the reported gap (auth: fulcra auth login; missing/old coord-engine: reinstall) |
| On the bus? | coord-engine queue <team> --agent <you> (bus v3; raw get-records if the engine predates v1.7.0), then coord-engine briefing <team> --agent <you> for the durable board | queue read completes — and if it stages a queue-delivery token (cursor schema v2), the probe passes only after every record is classified and queue commit succeeds; briefing prints your identity, role inboxes, reviews owed | Coordinate on the bus — events are the wake surface, the fold is the full picture |
| Two identities joined end to end? | coord-engine acceptance pair <team> --agent <A> --peer <B> | every timed hop prints HOP N PASS and the command ends PASS pair A<->B; any bad nonce, missing checkpoint, stale resume, degraded queue, or failed write exits at FAILED AT HOP N with raw evidence | GET-ON-THE-BUS.md |
| Own worktree? | git worktree list | your cwd is a dedicated worktree, not a shared checkout (no conflict markers or foreign staged files) | Working tree — carve your own before committing |
| Touching Collect / the daemon? | — | — | The daemon (Collect) |
| Touching coord conventions? | — | — | Coordinate on the bus |
| Touching the platform surface? | — | — | Fulcra platform surface & records |
| Touching CI / hooks? | — | — | CI and workspace membership |
Layout
uv-workspace monorepo, macOS-first. Packages under packages/, agent skills
under skills/, each package with its own README, build, and tests.
- Collect — the local ingest side:
collect(the daemon: control socket + FastAPI onboarding wizard + worker subprocesses),menubar(the macOS menu-bar app, PyObjC / rumps),fulcra-common(shared API client + ingest pipeline), plus the importer packages (dayone,csv-importer,media-helpers,attention,netflix-skill, …). fulcra-media webhookreadiness is a synchronization contract. Its JSON{"stage":"ready"}lifecycle line is emitted only after the local/healthendpoint has served a request, not merely after bind/listen. A parent may therefore send SIGINT/SIGTERM immediately after reading that line; the command must emit its shutdown line and exit cleanly. Do not move readiness ahead of the serve-loop health probe —BaseServer.shutdown()can deadlock if it racesserve_forever()initialization.packages/gmail(fulcra-gmail) — the local, read-only Gmail relay: multi-account, crash-safe (append-only ledger + contiguous-frontier watermark), landing selected emails in Fulcra Files and relaying matches over the coord bus. The OAuth client MUST be an External, Desktop app client: Internal excludes personal Gmail accounts, and a Web client's secret is confidential and unsuitable for a shipped local relay (Google treats a Desktop client's secret as non-confidential, which is what lets one shared client ship to many installs). The full OAuth clickpath, account caps, logging rules, ledger/relay/pipeline design, and the in-plugin rule builder live inpackages/gmail/README.md— read it before touching the relay.packages/purpleair(fulcra-purpleair) — ascheduled/live_polledCollect plugin polling PurpleAir air-quality sensors (cloud API or a sensor on the LAN), fanning each reading out to per-measure NumericAnnotation tracks with EPA AQI derived locally from PM2.5; idempotency is per-reading via the daemon'sclaim_dedup_keys. Details:packages/purpleair.- Shipping the Safari app to TestFlight —
packages/attention/safari/scripts/release_testflight.shdoes the whole mechanical path (both JS bundles → archive → payload check → export → validate → upload) and refuses to start without three things a runner must never hold: an Apple Distribution certificate, an App Store Connect app record forcom.fulcra.attention, and an ASC API key passed asASC_KEY_ID/ASC_ISSUER_IDwith the.p8at~/.appstoreconnect/private_keys/AuthKey_<KEYID>.p8.Developer ID Applicationis not a substitute — that signs the notarised.dmgfor direct download, not an App Store build; they are different certificates for different channels and assuming otherwise fails late, looking like a provisioning problem.--dry-runstops after export; any other argument is rejected with exit 2 rather than falling through to an upload, because a consumed build number is not recoverable.CURRENT_PROJECT_VERSIONmust increase on every upload. - The Safari destination step is a requirement. The containing app must
show which "Attention" definition this device writes into and let the user
change it (
DestinationView.swift).EnsureAttention's oldest-first auto-adopt is a DEFAULT, not intent — with two definitions it silently takes the older one and the data lands in the wrong place while validating fine. Do not remove the picker on the grounds that auto-resolution "already works". - Running the Safari Swift tests —
xcodebuild -scheme FulcraAttentionTests -destination 'platform=macOS' test, but build both JS bundles first (npm ci && npm run build && npx vite build --config vite.safari.config.tsinpackages/attention/chrome): the scheme builds the macOS app, which embeds the extension, which copies a built bundle as resources, so a clean checkout fails on missing files unrelated to the tests. Platform-agnostic logic belongs in the macOS app target even when only the extension uses it at runtime — that is what makes it reachable by@testable import FulcraAttention. - Sign the native command launchers explicitly. Briefcase does not discover
the extra
fulcra-collect,fulcra, andfulcra-apiexecutables inContents/MacOS. The release script signs each with Developer ID, a secure timestamp, and hardened runtime before Briefcase seals the outer app. A valid outer resource seal alone does not establish notarization eligibility. - Shipping a new plugin in the frozen macOS app — the menubar Briefcase
requiresis the ONLY list you edit, but it is not sufficient on its own: a monorepo package isn't on PyPI, so the release build must also build a local wheel intowheelhouse/and prove it landed (Briefcase can exit 0 with an emptyapp_packages). Both steps derive frompackages/menubar/scripts/bundle_manifest.py, which resolves each workspace package's real import name from its own hatch config (the mapping is not mechanical). Do not reintroduce a hand-written package list inbuild_macos_app.sh;test_registry_manifest.pyfails if you do (this drift shipped once — caught in PR #455 review). - Shipping a new plugin: document it in the same PR.
docs/how-do-i-get-my-data.mdstates that it lists every source Collect can pull from, so an undocumented plugin makes that opening sentence false. The catalogue cites plugins by id in backticks, andpackages/collect/tests/test_docs_coverage.pyfails when a registered plugin appears nowhere in it — so the test tells you at PR time, not a user months later. A plugin that genuinely is not a user-facing source goes in that file's_NOT_USER_FACINGmap with a reason, which is a deliberate statement, not a way to quiet the test. The check is coverage only: it proves the source is mentioned, never that the prose is right (this drifted for real: two shipped plugins were undocumented and one section affirmatively denied a plugin that was registered — the coverage test now catches the first class; only reading the prose catches the second). - coord — the agent-coordination layer. In prose it is coord; the
engine is
packages/coord-engine(a stdlib-only CLI,coord-engine), and the skills underskills/— thefulcra-agent-*family (e.g.fulcra-agent-review,fulcra-agent-continuity,fulcra-agent-automation) pluscoordinator-discipline— are how an agent actually drives it. (Thecoord2codename is fully retired — code, identifiers, and prose all say coord; installers migrate coord2-era on-host artifacts automatically when re-run.) The first-generationfulcra-coordandfulcra-coord-filespackages were retired after their last live annotations surface moved tofulcra-common. Their provenance remains in git history; all coordination work uses coord. packages/coord-tracker-bridge— the alpha, provider-neutral projection core for reflecting coord work into external trackers (normalized snapshots, versioned policy, a pure diff plan, a Linear adapter). Workflow order, lane policy, and adapter contracts:packages/coord-tracker-bridge/README.md.- Coord retention is on by default: terminal and quiet proposed tasks archive
after 14 days, settled review families after 7 days, and dead presence shards
are pruned after 7 days.
COORD_RETENTION_DAYS=0orreconcile --retention-days 0is the explicit kill switch; invalid values fail safe to the enabled default. Hot review folds consult a compact settled index instead of repeatedly classifying historical tombstones, and the legacyartifact/namespace is consolidated intoartifacts/. UNKNOWN listings stay hot, moves are copy-verified rather than destructive-only, and archived work reverses throughtask restoreorreview restore. Note the age thresholds above are necessary, not sufficient: tasks and reviews share ONE per-pass archive cap and tasks are swept first, so a large task backlog defers review archiving indefinitely. When that happens the pass now warnsretention: cap reached ... N review slug(s) not examined this pass— treat that warning as "review retention is not running", not as routine throttling. - The OLD one-shot
migrateexporter and the unused atomichandoffconvenience verb are retired (bus-v3 migrate, described under Coordinate on the bus, is live and unrelated). Reassign live work withtask update --assignee <agent> --next "..."; when another session needs resumable context, write the continuity snapshot first and then reassign the task. - Machine JSON is compact by contract: public non-ATC
--jsondocuments, the single-arraythreadsresult, and_coord/summaries.jsonomit insignificant whitespace while preserving parsed values and degradation markers. Tests and consumers compare parsed JSON unless byte layout is the explicit contract. - Other agent-facing layers (Continuity, Prefs, Vault, FDE, ATC) are described in the README; their skills and READMEs carry the detail.
Setup & tests
- One command:
bash scripts/setup.sh— installs the right Python +uvextras + thefulcraCLI, then runs the suite to verify (macOS-first; the menubar's PyObjC deps are macOS-only). - The manual equivalent is OS-dependent, and the difference is silent —
which is the whole reason this bullet is two paragraphs.
- macOS:
uv sync --all-packages --all-extras. Bareuv syncis NOT enough — pytest lives in each package'sdevextra and PyObjC/rumps in themacosextra, so a bare sync fails tests withFailed to spawn: pytestand the menu-bar can't import. Any sync must keep--all-extrasor it prunes pytest + PyObjC back out. - Linux:
uv sync --all-packages, then select the dev extra at RUN time:uv run --all-packages --extra dev python -m pytest packages/ -q. The Linux CI job (uv-workspace.yml) uses the same extra selection over an explicit list of package test paths. Do NOT use--all-extrashere: it pulls themacosextra, whose PyObjC wheels build by shelling out to/usr/bin/sw_vers, which does not exist on Linux. The build dies withFileNotFoundErrorand nothing is installed. That failure does not look like a failure afterwards: it leaves a.venvcontainingpythonand nothing else, sols .venvsucceeds, the venv "exists", and the next thing to run is a test that cannot import anything. Measured here on 2026-09-05 — the macOS line above was followed on a Linux container and produced exactly that.
- macOS:
- Run tests:
uv run pytest packages/ -q(a couple of minutes, and must NOT hit the network — a network-bound run is the bug, not slowness). - Editable install: the
.venvimports the live workspace source, so a code change is picked up by restarting the daemon, not re-syncing. - A pass/fail count is a property of (sha, interpreter, cwd) — never of the
sha alone. Measuring the engine at one merge commit gave 66 failed,
then 1 failed, then 0 failed, from three cwds over the same source.
From the repo root, the
.venv's editable install resolvedcoord_engineto a DIFFERENT checkout — the 66 failures belonged to a stale working tree, not to the sha under test. From the package directory,coord_engine/sat onsys.path, and the subprocess intest_obligations_engine_absent.py— whose whole job is to assert the engine is NOT importable in its sandbox — inherited that cwd and found it. Only an isolated venv holding a non-editable install, run from a repo root, measured the build actually under test. So printmodule.__file__for the package before you report a number, and say which cwd produced it: a count without that pair is not evidence, and two of those three numbers would have been a false report to the operator. The rule generalizes past Python — whenever a tool resolves an implementation by search path, the search path is part of the measurement. - Pull latest into a checkout with
bash scripts/update.sh(git pull +uv sync --all-packages --all-extras+ restart daemon/menubar). - PyObjC-free logic is split into its own modules so tests run on Linux CI; macOS view-layer tests are marked and skipped off-darwin. Keep new PyObjC imports lazy (inside functions), never at module import time.
- No team-particular identity in engine logic.
review restoregated a whole code path onfiles != ["<one-agent>.md"], so the verb worked for exactly one agent on exactly one team and told everyone else "unexpected archived verdict shape". Predicates belong on the SHAPE (how many shards, is there a doc), never on whose name is in the filename — the repo generalizes, and the team's particulars live on the team's store. continuity snapshotexits 3 and says so when the write did not persist.transport.writereturns False on a transport failure rather than raising; the snapshot path once swallowed that and still printedsnapshot <id>at rc 0 — found live during a store outage, leaving a successor to resume from the PREVIOUS checkpoint believing it current, exactly when parking matters most. Any caller oftransport.writemust treatFalseas failure; it is not a Falsy-but-fine return.- A task-directory listing that returns rc 0 is not automatically complete.
When the trusted feed fold still corroborates tasks omitted by a full-scan
listing,
reconcilefails closed and preserves the current generation, summaries, and index. This catches the live intermittent-empty listing shape; do not turn that disagreement back into authoritative task deletions. - Audit every existing READER before you change what a marker MEANS. A marker's meaning is fixed by everything that acts on it, not by the writer's intent, so a new state or a new field is a change to every consumer at once. Do the reader sweep in the same change, and say in the PR which readers you checked — "I did not audit the others" is a finding, not a footnote.
health's continuity audit reads ONE pointer per agent (continuity/LATEST.json, written only AFTER the snapshot itself persists), not every snapshot — a store listing carries no mtime, so the walk is one read per task and, measured at fleet scale, hundreds of serial reads that repeatedly timedhealthout. A missing pointer is UNKNOWN, never stale — only "has never checkpointed" (proven by one extra listing) is a finding;continuity_unknownreports the rest. A failed pointer update REMOVES the old pointer — with no conditional write, deleting the cache is the only way to stop a stale timestamp being believed; if it can be neither updated nor removed, the verb exits 3. Pointer updates are monotonic: an older snapshot must never move an agent's reported age backwards.data-updatesintermittently answers 200 with an EMPTYfile_changeson a window that otherwise works. MEASURED, at the raw HTTP boundary (GET /data/v1/updates?start_time=&end_time=) and through the CLI, 2026-10-02:-1dreturned 13135 file changes (4.0 MB);-7dreturned 106187 (32.7 MB).- Every rep at
-8d,-9d,-10d,-12dand-15dreturned HTTP 500 with an empty body;-20d/-25dreturned 500 in most reps. - At widths that otherwise answer, some reps returned rc 0 with
file_changes: []and a populateddata_typesmap — seen at-1d,-7dand-25d. The strongest single observation is two consecutive calls on the IDENTICAL range returning0and105768. What is NOT established, and must not be written as if it were: any causal mechanism, and any rate. These samples do not isolate window width from time of day, endpoint state, or anything else, and the-1dfalse empty is direct evidence that a comfortably-working width can fail — so "the endpoint degrades under window size, more often the wider the window" is an inference, not a measurement, and earlier revisions of this paragraph asserted it. Frequency is likewise unestablished: batches of 6 and of 20 came back entirely clean. Observation requiring further measurement: failure frequency looked higher at some wider requests. That is all it is. Consequences a detector over this feed can actually rely on: - An empty
file_changesis never proof of quiet, at ANY window width. It is a well-formed answer indistinguishable from truth by shape.COORD_FEED_EMPTY_CORROBORATION(below) checks it against a recent sub-window, catching every case wider than the corroboration bound and not one narrower than it. - A populated
data_typesbeside an emptyfile_changesis a CANDIDATE signal, not a rule — records-processed and file-changes are different legs and may legitimately diverge over a quiet range. Do not build a hard check on it without measuring that. - Do not raise
COORD_TRANSPORT_TIMEOUTin response to this. Two earlier justifications for that advice were wrong and are withdrawn: a longer bound cannot turn a 500 into a 200 (our transport maps rc != 0 to None = UNKNOWN, correctly), and the width/frequency mechanism above is not established. The reason that survives needs neither: a longer bound lets requests complete that would otherwise be cut client-side, and since an empty answer is indistinguishable from a quiet range, more completed requests means more chances to record a false clear. The original error is worth keeping in view — a timeout-causes-200 mechanism read off one 30s-fails / 120s-returns- empty pair, which repeated sampling showed was the endpoint's intermittency.
healthfreshness is SHARD RECENCY; the advance fact is separate. EVERY reconcile exit writes a health shard, aborts included —_write_health_shardruns before the earlyreturn— so a host that has aborted every pass for hours still renders[ok … 0.02h ago]. Measured onteam/fulcra2026-10-02: the task index had not advanced in ~16h whilehealthreported4/7 host(s) freshwith four[ok]rows, the only trace an unlabelled1 warn. The shard could not have answered either —build_shardrecordedwarningsas a COUNT and droppeddegraded/reasonentirely, so the distinction was unrecorded, not merely unrendered. Shards now carryadvancedplusdegraded_reason, the fold addsadvancing/aborting/unknown_advanceover FRESH hosts only, and the text saysDID NOT ADVANCE: <reason>per host plus a headline. A shard with noadvancedkey is UNKNOWN, never True — a missing field is not evidence a pass succeeded, and during a rollout a pre-upgrade host must read as unknown rather than accused or excused.fresh/stale/healthyand the exit code keep their exact prior meaning (one production reader,cli.cmd_health, audited): whether an all-aborting fleet should fliphealthyis an OPEN REVIEW QUESTION, not something the fold decides. Known imprecision, stated not hidden: an inventory-only generation refusal still writessummaries.jsonas the compatibility cache and its shard call site never sees that reason, so it reportsadvanced: Truewith its warnings — "advanced" means was not aborted and wrote the index, never published a clean generation.- The
.settledmarker's MERGE EVIDENCE is never overwritten by the tally cache: a settleable tally once stampedstate: APPROVEDoverstate: MERGED+merge_sha— found in production, where the veryreview statusrun to CHECK a closure destroyed it. Both the delete AND the write need the guard (fixing one is the neighbour trap), and the write overwrites ONLY a positively identified CACHE or a positively ABSENT marker — an UNKNOWN one (unreadable, unrecognisedstate:, a FUTURE schema) is preserved and reported. Areview-settled/v2marker written by a newer build must survive an older build's refresh. - Date/clock tests: a module that fixes a top-level
NOWfor its data must also pin the clock — an autousemonkeypatch.setattr(cli, "_now", ...)to aPINNED_NOWat/just afterNOW(template:tests/test_threads.py), deriving relative ages fromPINNED_NOW, never asserting against the real clock. Otherwise the suite flips red once wall-clock passesNOW + window. Enforced bytests/test_clock_pin_convention.py. escalatenever addresses a role's vacancy notice to the party who lapsed. When a role's registeredmaintainer:is also one of its own lease holders, the alarm cannot reach a supervising identity. The notice is still written and counted; it is REPORTED (stderr + directive body) and never rerouted. Fix the role doc'smaintainer:field instead. The undelivered count is recomputed on EVERY sweep, the daily marker is a SUPPRESSOR and is never written for a notice that reached nobody, a closed-loop role re-surfaces every sweep,escalatereportsundelivered=N, and the verb exits 3.escalatedoes not restate a vacancy that is already on the board. The vacancy title embeds the date, so the slug differs every day and the per-slug existence check ondst(a classifiedread_classified(dst)since PR 694; a bareread(dst) is Nonebefore it) can never match across days; the daily marker suppresses only WITHIN a day. A state-change guard (roles.vacancy_already_open) now skips minting while a row for that role is open, and printsALREADY OPENwhen it fires — a suppressor that says nothing is indistinguishable from a sweep that never ran. Three properties are load-bearing and must survive any edit:- Role matching is EXACT, never a prefix. A prefix test would let
reviewersuppressreviewer-2; an identity transform used to suppress an alarm has to be injective or it hides what it was not asked to. - An unreadable listing does NOT suppress. UNKNOWN silencing an alarm is worse than a duplicate row, so the guard falls through to minting and says it skipped.
- Closed-loop vacancies are EXEMPT — that is what the
re-surfaces every sweepclause above is FOR. The notice reached nobody, so there the repeat IS the delivery, and suppressing it would silence the only retry. This is not a change to re-notify:directives.renotifyis "a strict filter OVER inbox", a read-side fold that writes nothing and keeps surfacing ONE unacked directive.escalatewas re-MINTING, which is a different mechanism that shared the name. Suppressing the re-mint costs no visibility, because the standing row is unacked and the fold surfaces it anyway. The skill prose (skills/fulcra-agent-roles/) carries the same condition, since a hand-written inbox drop would re-create the debt the engine guard removes.
- Role matching is EXACT, never a prefix. A prefix test would let
- The
no-team-internalsCI guard PROVES it can fail before it reports clean.scripts/no-team-internals.shruns--self-testfirst: it stages a fixture carrying a public IP and a session ref, asserts the scan flags both, and only then scans the tree. Its first version used\b, which POSIX ERE does not support, sogit grep -Ematched nothing and the check went green on every PR while structurally unable to find its leak class. Never use\bin agit grep -Epattern. A guard's green is only evidence when its red is reachable. - Environment hermeticity: the suite's answer must not depend on who runs
it.
cli.INHERITED_ENVmaps each ambient variable the suite must neutralise to a representative value (identity:FULCRA_COORD_AGENT,FULCRA_COORD_HUMAN; channel:COORD_RECORDS_TYPE) — ONE mapping, so the fixture that clears the keys and the wall that populates them cannot drift. The coord-engine conftest clears them for every test, andtests/test_env_hermeticity.pyre-runs the affected files under both an empty and a populated environment and requires the same outcome (dozens of tests once failed iff an identity was exported — line one of every agent's wake prompt). A test that needs a specific identity or channel sets it in its own body. A variable belongs inINHERITED_ENVwhen the suite reading it makes the ANSWER depend on who ran it; a variable that legitimately changes behaviour a test is about goes inNOT_YET_WALLEDwith the measurement instead. Measure siblings rather than guessing. - Identity and canonical reads have one authority each. Resolve an agent
identity only through
coord_engine.classifier.resolve_identity: explicit argument →FULCRA_COORD_AGENT→ the per-cwd persistedidentities/<realpath-hash>.jsonstate entry → sanitized host. In particular, never let a host-derived id replace an exported session id: two sessions on one host must remain separate actors. An unreadable persisted identity fails closed rather than falling through to host; an absent file is the only state that permits that fallback. Canonical directory reads go throughcanonical_read; a successful empty listing isEMPTY, adata-updateslifecycle deletion isTOMBSTONED, and unreadable or ambiguous evidence isUNKNOWNrather than absence. An unrecognised input shape (including a listed directory) isUNSUPPORTED, not a clean result.
Coordinate on the bus
Durable work — anything another session or agent must see — lives on the coord
bus (Fulcra Files), driven through coord-engine and the fulcra-agent-*
skills. Subagent-only work stays OFF the bus.
IF YOUR MESSAGE ASKS FOR NOTHING, SEND IT --fyi. tell mints a proposed
row that only the RECIPIENT can close, so a report, an ack or an FYI becomes a
permanent open obligation its assignee cannot discharge — there is nothing to do.
A reply sent
with --closes closes its parent AND mints a fresh open row back at the sender,
so two agents who both behave perfectly still net one open row per exchange.
--fyi delivers identically — same durable ptr doc, same companion event, same
appearance in the recipient's queue — but the row is born closed and never enters
the open pile. This is the sibling of the merge-closes-review ruling (PR #561)
one plane over: closure belongs to the terminal event, not to a separate
discipline step nobody performs, and a notification's terminal event is its
delivery. Use a plain tell when you are genuinely asking for work; use --fyi
for everything else.
First time on the bus, or joining from a remote/sandboxed session (Claude
Code cloud, CI)? Follow docs/coord/GET-ON-THE-BUS.md
— it covers the egress allowlist (fulcra.us.auth0.com, api.fulcradynamics.com),
headless device-flow auth (and the fulcra auth login HTTPS_PROXY caveat), the
human-free token-refresh grant, team bootstrap from zero, the join sequence,
role-takeover continuity (continuity resume at claim time), and the ephemeral-host
doctrine (survival invariant + heartbeat duty for long-lived remote sessions). The canonical invocation is the bare
coord-engine binary after uv tool install — uvx/uv tool run cannot resolve
it (not on PyPI).
- Named identities: personas are a convention for human legibility only; bus routing always uses the functional id, and the roster lives on the team's store.
- Wake router — ships in the engine; evaluate acceptance per deployment.
Scheduled wakes + queue reads are the standing pattern (status notes:
README.mdanddocs/coord/BUS-V3.md). The contract, should you deploy one, iswake-router-SPEC.md+wake-router-PLAN.md; deployment (provisioning adapter scripts, scheduling a poller on a host) is a separate, operator-gated step. Bound and prefetch queue-entry reads so a growing queue does not make the reader exceed its wake cadence. Two pieces of doctrine outlive any deployment:- AN ADAPTER'S SUCCESS PROVES THE ADAPTER RAN — never that the AGENT ran. Axis 1, what success proves: a DIRECT adapter re-enters the model session by its contract; an INDIRECT (queued/alignment) adapter only lands a nudge or aligns a schedule, and is a viable wake chain only when its independent consumer — session loop, Routine, heartbeat — exists AND is verified running; a NOTIFYING adapter shows a human a banner, never a wake. Axis 2, is there an implementation on the named executor: registration and implementation are separate, so a route can look configured, validate, enqueue forever, and never deliver. Classify each axis on its own evidence; never collapse them.
- EVERY HARNESS MUST NAME THE THING THAT RE-ENTERS THE AGENT — the
mechanism that runs the model, never a script beside it (an OS scheduler
job runs shell, not the model; see
docs/coord/HARNESS-MAP.md). And never retire a working wake without naming its replacement and proving the replacement RUNS THE AGENT: a standing session loop was once replaced over two weeks by a notifier that woke a human, a headless invoke that could not authenticate, and a peek that never consumed — none ran the agent, while every layer reported success.
- Durable tooling stash. An agent's operational bundle survives ephemeral
machines via
coord-engine stash push/pull/list: push refreshes amanifest.json(per-file sha256 + exec bit) and runs a fail-closed secrets guard (secret-shaped names and credential-shaped content are refused with the tripped rule named —team/<team>/**is readable by every agent on the bus); pull restores and fails loud on checksum drift. Procedures:fulcra-agent-durable-state. On wake, read your event queue first — bus v3. One bounded
get-recordsquery against the team's coordination annotation. The full read/write contract lives indocs/coord/BUS-V3.md; the agent-actionable core:- Dedupe by record id, keep
v:1payloads addressed to you orall, fetch documents byptr, and fail closed on any error or truncation — an unreadable window is UNKNOWN, never empty. - Zero fresh events is not proof of zero durable work. A successful
text-mode queue read with no event rows and no obligations fold prints a
stderr notice pointing to
coord-engine obligations <team> --agent <you>; run that verb for the terminal durable-work answer. The notice preserves the queue read's rc 0 because its event window was read successfully; an unreadable event window still fails closed as UNKNOWN at rc 3. - Terminal read states are DATA / CLEAR / ABSENT / UNKNOWN / INVALID,
and rc is never inferred: read
state+error_codefrom the single JSON envelope (under--json, success is exactly onequeue-resultobject and every nonzero exit exactly onequeue-errorobject — empty stdout never means anything). INVALID (malformed bytes; human-fixable) is never ABSENT (the engine refuses to auto-recreate over a corrupt document) and never UNKNOWN (*-read-failedmeans retry; a retry never fixes a corrupt file). - A deliberate
queue --consumetakeover of another agent's cursor writes a durable audit doc BEFORE reading and is refused if that write fails; plain reads and--peekwrite nothing. - The read is cheap enough to ride every wake you already have — do not
run a polling loop or resident listener for it. Keep
fulcra-apicurrent whenever you touch coord tooling (same pass, standing rule).
Prove the write path after any install/upgrade — and whenever a recipient says it did not hear you — with
coord-engine doctor <team> --delivery --agent <you>(rc 0: written, ingested, and parsed; rc 2: write refused; rc 3: written but not proven fleet-readable before the deadline). Engine currency. "The pin" (the commit in the store'sadopt-latest.sh— what to install) andcurrent_engine_versionin the bus authority (a SEMVER FLOOR — the minimum engine the fleet accepts, compared at-or-above) are different objects: adoption moves the first and cannot touch the second, so every pin move that ships behavioural change evaluates a floor raise in the same pass, and raising the floor is also what reaches a dark host. Every queue read checks the floor for free and printsqueue: ENGINE STALEwhen the runtime is older. Adoption-script doctrine, each clause earned live: a failed adopt must never leave the host worse than it found it — never force-reinstall a capability that works, self-heal a half-removed install once, and still FAIL when the retry fails; a cached "adopted" marker records what you DID, not what is on disk, so a skip must be bound to the ARTIFACT's own identity (the installed build'sdirect_url.jsonvcs_info.commit_id, PR #598), never a capability every candidate shares, and every unreadable/malformed/absent answer is UNKNOWN and takes the expensive path; when a check reads several evidence sources, define their combined evidence — an UNKNOWN member poisons the whole set; shipped-shell decisions live in functions a test can drive (reading shell proves nothing); and pre-publish acceptance runs on both macOS and Linux, because you cannot know in advance which failures are OS-specific.coord-engine doctor <team> --selfis the currency check on demand and is TRI-STATE: rc 0current; rc 3stale(run the store's adopt-latest, re-run); rc 2unknown(floor unreadable/absent/malformed) — comparison impossible is not current, so never read rc 2 as green; repair only on nonzero.coord-engine briefing <team> --agent <you>remains the fold over durable state — identity, role inboxes, reviews owed — honor every degraded row it prints as UNKNOWN.- Dedupe by record id, keep
- VERIFICATION FAILS DIFFERENTLY FROM CODE, AND IN TWO DISTINCT WAYS. Broken
code usually fails visibly. A broken CHECK hands back an answer that looks
fine, so the failure reads as a clean result rather than as an error — which is
why "verify more carefully" is not the defence. In five logged instances every
agent involved WAS being careful, and each committed the error inside work
whose explicit subject was that error. The two modes need different defences
and neither covers the other:
- A broken INSTRUMENT returns a WELL-FORMED answer. A probe reading the wrong path reports zero rather than erroring; a test harness that collides on its own fixture fails in a way that mimics the bug it hunts; a control that varies an input which short-circuits BEFORE the code under test proves only that the short-circuit works. Defence: check the SHAPE of the result — is this answer plausible at all? — and check it against an earlier, narrower measurement of the same thing. Too clean to believe, or disagreeing with a prior measurement, is the signal; discard the whole run rather than reporting part of it.
- A broken INFERENCE returns a PLAUSIBLE answer. The instrument is fine and the reading is fluent, reasonable, and wrong — "those must be false positives from matching ids against a human-organised document" is the shape. Plausibility cannot catch this, because being plausible is the answer's whole problem. The only defence is going to the SOURCE artifact and reading it. This is the half no heuristic covers, and the half that ships. The trigger is behavioural, not scheduled: the moment you find yourself explaining a result away — reconciling an inconvenient reading with what you expected, ruling a mismatch to be noise, or narrating why a source need not be opened — is the moment to run both defences. That impulse precedes the wrong conclusion in every logged instance, which is what makes it useful: it is available while the answer can still change. Everywhere else a wrong inference is additive and leaves the measurement standing; here it silently deletes the evidence that you were wrong. Corollary for any bug whose subject is a wrong reading: assume your own verification of it carries the same defect, and check the instrument before you trust what it told you.
needs-me --jsonis contract 2: one envelope object, health first. stdout is a SINGLE JSON value —{"contract": 2, "health": DATA|CLEAR|DEGRADED|UNKNOWN, "source", "degraded", "basis", "rows": […]}. Readhealthbefore anything else: UNKNOWN means the authority itself was untrusted and the rows must not be acted on; DEGRADED means rows are a FLOOR (partial coverage — never infer absence); CLEAR is the only health that licenses "nothing for me". rc is a pure function of health (UNKNOWN|DEGRADED → 3, in text mode too). An incomplete parse is UNKNOWN; never truncate an authority read withtail/headand never regex fields out of a cut buffer. Other verbs migrate one PR at a time — a bare array is the contract-1 shape, scan its marker rows as before (docs/coord/OUTPUT-CONTRACT.md).- Class A results flow through the shared v2 outcome spine.
coord_engine.outcome.CommandOutcomeis the internal authority for state, coverage, rows, provenance, and rc; legacy contract-2 envelopes are adapters over that value. A required surface that is not verified isUNKNOWNand therefore rc 3 even when some rows are usable. New Class A folds must build the typed outcome first, then render text or JSON from it; do not recompute health or rc in a serializer. Text coverage lines mark optional surfaces asnon-gating, preserving therequired:falsedistinction carried by JSON. - If your harness truncates output, read the verdict off stderr.
needs-meandbriefingprint their row payload with degraded and source markers inside it, so a truncating reader can lose exactly the part that says whether the read is trustworthy. Both emit one compact envelope line to stderr —needs-me: N item(s), health=…, forge=…, source=…, degraded=N, rc=N— which survives stdout truncation (a courtesy duplicate; the stdout envelope is the authority).needs-me --envelope-onlygives you that verdict with no records at all, same rc. Trust the envelope'shealthandrcover a payload you cannot see the end of;degraded>0orrc=3means UNKNOWN or a floor, never clear. A STATUS YOU PRINT IS NOT A STATUS YOU READ. The same defect the clause above describes shows up in our shell habits, where it is cheaper to commit and harder to see: a script emits a success line without reading the status it claims to report. Three instances in one week, all caught only by looking at the NEXT command's output rather than at the success message itself —
rc=$?after a command substitution containing a pipe, the same after a pipeline, and agit branch -dthat REFUSED while the surrounding script echoedcleanup done(the branch was still there on the next line).Mechanical form: a script that prints an outcome must read the rc it is describing, and where it cannot, it says so rather than asserting. The tell is a success message whose text was decided before the command ran.
The shell mechanics:
rc=$?after a pipeline captures the last stage only —false | trueandfalse | catboth yield0, so the failure is invisible. Same forout=$(cmd | filter).- Capture immediately (
cmd; rc=$?) before any pipe or substitution, or setpipefailfor that stretch. - Our login shell is zsh, where the per-stage array is lowercase
pipestatus— bash'sPIPESTATUSexpands to the empty string here and silently tells you nothing, which is this very rule wearing its own costume. - Prefer
if cmd; then …; else …; fiovercmd; echo done. - When reporting a BATCH, count the artifacts on the store rather than tallying exit codes you did not check.
- Bus-v3 convergence is authority-gated, not a rollout convention. The
shared
_coord/bus-v3/records.jsonatomically declares protocol and cursor schema versions, minimum safe reader/writer engine versions, cursor generation/activation, and the CHANNEL every writer resolves — writers readdata_typefrom it at write time and REFUSE rather than falling back to a name lookup (never resolve a channel by name: a superseded definition can still read as live, so a by-name resolve silently writes where nobody reads).queuewarns on legacy or mixed writer evidence and refuses an unknown/old reader or writer before cursor mutation; cursor v2 is physically isolated from legacy cursors, and after activation legacy activity is a loud health signal, never authoritative coverage. Full authority and activation contract:docs/coord/BUS-V3.md. - Legacy Bus-v3 migration is authority/cursor-only. Run
coord-engine bus-v3 migrate <team> --dry-runfirst, then--applyonly after every cursor isreadable-legacyorabsent; malformed or unreadable state blocks, apply is idempotent and never rewrites legacy cursors, and task/role documents are not a migration target. JSON contract in BUS-V3.md: never branch on rc alone — readstate+error_code, and treatwrites.authority: "ISSUED-BUT-UNPROVEN"as a write whose read-back did not prove the resulting store state. - Cursor v2 is transactional: read → process → commit — commit the token
when the last row is a
queue-delivery. Under an activated schema-v2 authority,queuestages one pending batch and prints aqueue-deliverytoken; it does not advance coverage. Process every surfaced event to a durable terminal classification, then runcoord-engine queue commit <team> --agent <you> --token <token> --result <record-id>=<completed|blocked|superseded|ignored>(repeat--resultfor every staged event; an incomplete or extra set is refused). A crash or missing commit replays the identical token and batch; a stale token is rejected; a repeated successful commit is idempotent. The store transport exposes no conditional write, so schema v2 remains fail-closed until a transport provides a provencompare_and_swap(a write/read-back imitation is not CAS); keep the authority on schema v1 untildoctorproves every active writer compatible and the CAS gate passes. - The Codex safety-net watch checks its literal inbox before briefing
(PR 484): one direct
inbox --jsonread, then the authoritativebriefingread — briefing's inbox subsection is never a substitute for the direct read, and a degraded surface falls back to the documented direct listing before reporting quiet. Deliberate redundancy against a stale or unreadable summaries index. - Retired (2026-07-27, operator-ordered) and REMOVED (2026-08-03, PR #523):
the
listenwatcher as the wake surface — don't hand-roll a replacement. Discovering work by walking the file tree degraded ~9 ticks in 10 at fleet scale and hid work; the v3 queue read (cursored, fail-closed) replaces it. Replies totell/respond/review requestarrive as v3 events on the record queue — read it on your next wake (the send verbs echoreplies:/await verdicts:breadcrumbs; seefulcra-agent-automation§2). Invokinglistenis an argparse error; any survivinglisten-state.jsonshard is historical residue. Presence stays time-dirty rather than feed-cached: each briefing evaluates the roster against the current clock, so an unchanged session shard still becomesLAPSEDwhennow >= until. - Review handshake. Nothing lands without an independent review by a
different agent identity than the author — that review is the control, not
who clicks merge. Where a forge exists the change goes through a PR, never
a direct push to
main. The handshake rides the bus, not the forge:coord-engine review request <team> <slug> --of <artifact> [--head <exact-sha>] --reviewer <role>opens a durable obligation that sits in the reviewer'sneeds-meuntil their verdict file exists at the exact path the command echoes (the required token is the role passed to--reviewer; that token is what the tally credits). The pending row itself carries the artifact: inneeds-me --jsoneveryreview-pendingrow servesofand the exacthead(explicitnullwhen a legacy register genuinely lacks the field), so a reviewer dispatches from the row alone — no second lookup (OUTPUT-CONTRACT OC5). One PR has one review slug (pr-N), across every push: pass the PR URL as--ofand the full 40- or 64-hex commit id as--head; re-requesting the same slug with a NEW head advances the same doc to the next round, verdicts append atverdicts/<head>--<required-token>.md(frontmatter must repeat that exacthead), andreview statusfolds ONLY the active head, ignoring superseded-head verdicts without deleting them. Legacy/non-code reviews may omit--head. A verdict that cannot be counted is REPORTED, never dropped, and the verb exits 3 — a malformed filename, averdict:token outsidereview.accepted_vocabulary(), or a shard whose frontmatter attests a different head each name the rule that skipped them; the failure class is the old affirmativepending_required: [alice]while alice's verdict sat unreadable in the directory. The request is durable-first, not atomic: the doc lands FIRST, then one directive per required reviewer (a verb-opened review fires each reviewer's inbox — never hand-send a review tell); a partial notification failure is loud (rc 1, naming who was and wasn't notified) and re-running the SAME request is idempotent recovery, while a re-request with a differentof/required-set/requester is a loud rc 1 conflict and a present-but-unreadable doc fails closed (never overwritten).coord-engine review status <team> <slug>computes APPROVED/CHANGES/PENDING and gates the merge. The<artifact>is an opaque ref, so the handshake works with any forge or none — a forge-only "Approve" does NOT count (co-located agents often share one forge account); the bus verdict, keyed by agent identity, is the source of truth. The verdict FILE discharges the obligation; the ack is inbox hygiene and targets the review-request directive by its inbox id (review-request-<review-slug>-<hash>), never the bare review slug. Full rules and per-harness wiring:fulcra-agent-reviewandfulcra-agent-automation. - Park for a successor only on pushed-and-verified state. A continuity
checkpoint is a promise: never park asserting repo/artifact state you have
not pushed AND independently verified —
git ls-remotethe exact ref and compare the exact hash (a push--dry-runonly proves write permission, not that the remote has your state; the memory of having pushed proves nothing). If a migration/import is still pending at park time, the snapshot saysIMPORT NOT DONEplus the exact recipe and the access prerequisites; it names ONE canonical home per artifact, never candidates. The parking agent also writes the role doc if it's missing and carries an operator pre-flight checklist (egress, auth tap, repo scoping, write perm) so the successor's setup is one pass, not a serial discovery-by-failure. Full doctrine + checklist template:fulcra-agent-continuity"Parking for a successor"; cloud repo-scoping wall:HARNESS-MAPwall 11. - A lapsed lease is not proof a role is unattended.
roles statusclassifies from lease timestamps alone, so its predicate is "has a lease been renewed" while the alarm reads "is anybody doing this job" — those diverged for four days (a reviewer's lease went stale while it filed verdicts hourly, and the sweep filed a false P1 per role per day). Escalation now takes a TRI-STATEattended: True suppresses it asLEASE LAPSED, ROLE IS BEING SERVED, False escalates asUNATTENDED, and the default None still escalates but must say attendance not checked rather than assert absence. Passroles status --check-attendance(opt-in: one listing per review, budgeted and reported asscanned N/M) before calling any role unattended. The JSONattendancefact distinguishes the unrequestedNOT_RUNstate from a requested, budget-truncatedUNKNOWNscan; that requested incomplete check exits 3 and makes the public-read envelopeUNKNOWN, so automation cannot mistake a nested unknown for a clean role decision.roles statusalso seals lease assignment and holder presence into oneliveness_fact, including both observations and both store-prefix provenance fields. Fresh presence plus a stale lease isLAPSED(orUNKNOWNif the observations cannot be sealed), never confidentlyVACANT. - Park a role, don't mute the sweep by hand. Deliberately leaving a role unattended (a reviewer on leave, seasonal on-call) is an ENGINE fact, not an agent-side convention: set
dormant_until: <ISO>inteam/<team>/roles/<role>.md, and while that date is future the mechanicalescalatesweep suppresses the role's vacancy escalation on every heartbeat host androles statusreportsDORMANT (until <ts>); escalation resumes automatically past the date, a live lease still shows HELD, and a garbagedormant_untilfails OPEN (noted on stderr, escalation still fires) so a typo can't silently mute a role — seefulcra-agent-roles. - Fold text is capped; the task doc is the payload's home. Summaries rows bound
title/descriptiontoCOORD_SUMMARY_TEXT_CAP(default 280 chars, ellipsis-marked), soinbox/briefing/boardshow enough to triage, never the full body of a long directive — read the task doc (team/<team>/task/<slug>.md) before acting on one. Engine surfaces any bus reader must honor. Two invariants a reader lives by:
- Slug dedup + delivery rc. Every directive slug carries a payload hash
(
<title-slug>-<sha256(payload)[:8]>), so identical resends dedupe by construction and distinct messages can never share or clobber a slot: rc 0directive <slug> already deliveredis a deduped identical resend, and rc 1cannot verify delivery, retrymeans the slot was unreadable — never overwritten, safe to retry. - The review/forge legs are projection-first, and they SAY so.
briefing/needs-meserve the reconcile-builtreviews/forgesections of_coord/summaries.jsonin zero extra ops when fresh, and emit a trailingreview-source/forge-sourcerow disclosing it (source: projection+as_of, orsource: raw-scan+ thereason: stale / incomplete / malformed — duplicate slug rows and impossiblesettledcombinations are malformed — / unrecognized). A projection that cannot be served falls back to the full raw scan LOUDLY; it is never silently served as current. Reconcile publishes review + forge as one complete generation: a budget-cut or failed build refuses the compatibility-cache write and leaves the last complete generation current. The publication authority is_coord/projections/current.json: a builder write/read-verifies immutablegenerations/<digest>.jsonfirst, then writes and read-verifies the digest-bound manifest. RequiredUNKNOWN/incomplete sections or an unattested feed frontier stay recovery progress and never advance current; reconcile exits nonzero. Private review/forge recovery is keyed by the content-bearing public projection base, not by a detector watermark or batch digest; positive feed changes invalidate only affected review rows, while forge is rebuilt from current canonical inputs. A transport that proves conditional-write support uses CAS to fence a moved pointer. A transport that explicitly declares CAS unsupported may use one last-writer-wins manifest write only after the complete deterministic immutable generation verifies, and must verify the exact manifest read-back; missing/invalid capability and write/read failure remain nonzero. Because a non-CAS writer can race, the mandatory public-read freshness overlay rejects stale manifests before v2 authority activates.summaries.jsonremains reader compatibility during migration; new readers validate the current generation before use. The shared v2 public-read authority validates the exact current manifest and immutable digest, then obtains one bounded at-least-once feed window over[watermark - epsilon, now - epsilon]. It deduplicates update identities, applies only supported task deltas, and re-reads the mutable pointer before rendering. Unsupported canonical changes, unproven epsilon/feed coverage, a raced pointer, or a skipped overlay are typedUNKNOWN/NOT_RUNand nonzero — never clean. JSON and text name the same generation, source watermark, attested coverage horizon, and sorted surface coverage; JSON is still exactly one value and preserves the domain result beneathresult. Immutable section values are structurally validated before dispatch: inventory records cannot be missing, malformed, outside their canonical namespace, or non-string, and content/frontmatter/type must agree. Presence is exactlypresence/<file>.md; acknowledgments and responses are exactly_coord/acks/<slug>/<file>.mdand_coord/responses/<slug>/<file>.md. Canonical slugs match[a-z0-9]+(?:-[a-z0-9]+)*; canonical leaf names start with an alphanumeric, contain only alphanumerics/_/-, and end in one final.md. Dot/traversal segments, file-shaped intermediate components, hidden leaves, and the legacy singularresponse/namespace are not authoritative coverage.data-updatesrecord counts are detector signals only, never cardinality, a diff, a threshold, or an identity. Live measurements persistently showed2721 -> 9,1444 -> 0, and2737 -> 25count/enumeration pairs. A positive signal therefore requires a bounded attested enumeration with at least one immutable identity; positive-with-none isUNKNOWN/nonzero. A zero signal is not proof of CLEAR: a bounded enumeration must prove the whole outer feed window. The outer feed must attest the exact requestedafter; the record cursor must repeat that boundary and reach or pass the outerthrough. A missing, lagging, mismatched, or incomparable horizon is UNKNOWN, advances no watermark, and leaves freshness overlay NOT_RUN/nonzero. Bootstrap is complete only when an outeraftersupplies its boundary and the record cursor covers the same full frontier. Review projection v3 rows carry the full direct-query tally; one shared validator requiresof/head, unique row slugs, settled invariants, and all three orphan/tombstone slug lists before producer carry, publication, or consumption. V2 carry rows and v1 settled caches are rebuilt before publication. The caller's OWN head is feed-gated too: with a cleandata-updateswindow, only caller-owned slugs named changed since the projection anchor are raw-tallied; unchanged caller-owned slugs are served from the projection. Without positive feed proof, every caller-owned head slug is raw-tallied fail-closed (see the head-budget rule below). No source row at all means the aggregate carries no projection: the pre-projection raw scan. Contract for readers:docs/coord/BUS-V3.md→ "Where a fold's answer came from". Ship-gate: any new projection-served fold emits a source row through the shared renderer. - Honor every degraded row; never read a bounded fold as complete.
briefing/needs-mebound each section underCOORD_BRIEFING_BUDGET(default 60s, cumulative across sections) and emit a{scanned, total, skipped}degraded row per section (review-fold-degraded,forge-degraded,presence-degraded, plus the public-read markers below). On ANY of them, fall back to the section's direct sweep (review statusper slug,forge feedback,presence show— per-section fallbacks infulcra-agent-reviewandfulcra-agent-automation). The review sweep itself fails closed:review statusreturns rc 1 (tally unknown, retry) when the doc, the verdicts listing, or any shard is unreadable, rather than printing a partial APPROVED — a degraded transport can never green-light a merge.
These budgets rest on hard per-op boundedness: every transport subprocess runs in its own process group and is SIGKILLed whole on timeout; the per-op bound is
COORD_TRANSPORT_TIMEOUT(default 30s) — run it TIGHT on a resident bus reader (e.g. 8s). EveryCOORD_*tuning knob, the shared positive-finite parse policy, and theFULCRA_COORD_*legacy-prefix rule are catalogued inpackages/coord-engine/README.md→ Environment / tuning; the mechanics that spend the budgets live incoord_engine/budget.py. Ship-gate: a NEW bounded fan-out usesbudget.Deadlinefor its deadline check (never a hand-rolledtime.monotonic() >= deadline) andbudget.degraded_rowfor its marker, so the whole family keeps one>=boundary and one degraded shape.- Slug dedup + delivery rc. Every directive slug carries a payload hash
(
- Ship-gate: a verb that mutates durable state does not ship on decision-function tests alone.
It ships with at least one test that invokes the ACTUATOR end to end, or with a recorded live dry
run against a real team.
review residueshipped its decision function under thirteen passing tests while the command itself was dead on aNameError—modelis imported locally incli.pyand the verb used it unqualified. Nothing in the suite touched the command, so a green suite sat over a completely broken verb; only running it against the real team found it. A green suite over a broken command is the same false-clear as an empty queue over 257 owed obligations: the instrument answered a question nobody asked. When you add such a test, VERIFY IT DISCRIMINATES — neuter the wiring and watch it fail — because a test that passes either way is the thing it was written to prevent. - The public-read failure contract — UNKNOWN is loud, never a clean-empty. Every aggregate-backed
public read (
status,board,needs-me,search,inbox, theagents/digest/asks/briefingbundles) folds the summaries index via_load_rows_status, whoseokbit is False when the index/listing is UNKNOWN — as distinct from a genuinely-ABSENT index (a fresh team), which is a real, readable empty. A read whoseokis False must NEVER return a clean-empty result: it emits the shared marker_read_degraded_row(reason)={"type": "read-degraded", "reason": …}(inside the one--jsonvalue; a stderr notice in text mode) while retaining any partial rows, andreasonpreserves every independent failure in the pass. The hazard it closes: a silently-empty fold reading "all clear" while a live unacked directive is merely unreadable. Ship-gate: a new aggregate-backed read consumes_load_rows_status(never a fold that drops itsokbit) and surfaces the marker onok is False, with a red-first test asserting no clean-empty under a degraded transport. --jsonpurity: stdout is ALWAYS one parseable value. Under--json, NO prose ever reaches stdout — every degraded/notice line becomes a JSON row or a reserved key, or goes to stderr. Each fold verb's--jsonbranch is exactly onejson.dumpsof the single result;threadsemits a single JSON array (the dropped list + a trailingthreads-degradedelement), NOT JSON-Lines. Ship-gate: a new--jsonpath is onejson.dumps, with a red-first test thatjson.loads(stdout)yields exactly one value on every degraded path. Enforced by PARSER DISCOVERY, not a hand-kept list:test_json_purity.pywalks the real parser for every--jsonpath and fails until each is in_JSON_PINNED(smoke-run under a corrupt index AND squeezed budgets) or_JSON_EXEMPTwith a stated reason —_JSON_EXEMPTis empty today, pinned paths must print SOMETHING, and the widened sweep immediately found a live leak (headroom --jsonprinted prose on its no-accounts early return).- A finished review does not close its request row unless something closes it.
The review store and task board need explicit closure propagation. The DECISION verbs (
review close,review conclude) close their own rows at settle time — best-effort and loud, because the marker is durable truth and bookkeeping must not fail a verified closure, but a silent skip rebuilds the backlog. Thereview residueverb (DRY RUN by default) closes the rest on a schedule. It is permanent infrastructure, not a backfill: a review that settles through the fold's APPROVED cache is settled by a pure build path that must not mutate task state (projection.pycallstransport.writeexactly once in the whole module and never touchestask/), so those rows have no decision verb to hook. Retiring it needs the successor where the cache writers EMIT and reconcile folds the close — and when that lands,review residueis deleted, not kept as a second reader. - Ask
review_gc.TERMINAL_MARKERS, never a marker filename. There are three —.gc-closed,.concluded, and.settled— and.settledis deliberately outside that set because it carries an APPROVED CLAIM that some readers act on rather than merely skipping. Hard-coding names is what hid.gc-closedfor a whole round; it then hid.concludedfrom a residue census written by someone reading the very comment that forbids it. A reader that acts on.settled's claim goes throughreview.settle_shortcircuit; presence alone closes nothing. .settledcarries TWO things and only one of them is disposable.state: APPROVEDis a tally CACHE — cheap to recompute, safe to drop.state: MERGED+merge_shais merge EVIDENCE written byreview close, and nothing recomputes it.review statusdeletes a stale cache but never a MERGED marker; an unreadable marker is left alone, and an unclassifiable one (including an unrecognisedstate:from a future writer) is PRESERVED, reported on stderr, rc 3 — only a POSITIVELY identified cache may be deleted. If you add a writer to a shared marker path, audit every existing deleter of it in the same change.- A cache may only bind to evidence it can actually fingerprint, and EVERY reader applies the same
rule. The
.settledcache carries anevidencedigest over the verdict shard NAMES, recomputed from the current listing before it is honoured — but a name digest cannot see an in-place rewrite of a plain<head>--<reviewer>.mdshard, and this store exposes no etag or content hash in a listing. So a directory holding any plain shard gets no cache at all (folded for real, every time; append-only directories keep the fast path), both writers refuse to stamp a marker no reader may honour, and every reader goes through ONE decision function,review.settle_shortcircuit— the fan-out once skipped on marker PRESENCE alone and hid a pending reviewer's obligation. MERGED markers short-circuit unconditionally. The projection tier ABOVE the readers is a reader too: its zero-op settled carry may only be taken by a row whoseev_bindableis True; everything else demotes to one listing whose fingerprint compares name+size+mtime per shard and refuses any unclosed minute. When you add a validation rule to a reader, enumerate every tier that can answer BEFORE it. escalateattendance: one shared scan, and partial coverage is NOT an incident. The vacancy sweep answers "did a holder file a verdict recently" from ONE_verdict_activity_indexpass built before the role loop, bounded by BOTH a count (budget, 40) and a wall clock (COORD_ATTENDANCE_SCAN_BUDGET, 30s) — a count alone cannot bound time. The review register is far larger than the budget, so coverage is always partial by design: the stderr envelope reportsattendance=N/Mrather than alarming, and rc 3 is reserved for a WALL-CLOCK cut — a real anomaly.- Prior freshness affects fold cost. A STALE prior requires additional reads
and may exhaust the budget. Because forge completeness follows the review fold,
a stale prior can leave both aggregates incomplete. A SMALL unknown remainder is retried
once inside the same pass (
RETRY_UNKNOWN_MAX, bounded by the SAME deadline object); a tolerance that calls one-short complete was explicitly REJECTED — it manufactures the false-clear this file keeps warning about. A fold "stuck" at n-1 of n is usually a transient, not a broken record. - Never hand two builders ONE budget object. A single
Deadlineshared by the review and forge projections let the review fold spend it first, so forge was not slow — it was never built: a section that always runs last inside a shared budget starves deterministically and silently. Each builder opens its own (COORD_PROJECTION_BUILD_BUDGET,COORD_FORGE_BUILD_BUDGET); worst-case pass duration is their SUM, stated rather than hidden. Completeness coupling is different from budget coupling and must not be "fixed" with it — forge'scompletestill follows the review fold's. - A DELIVERY path may never lose coverage to a FORMATTING failure. A queue renderer that raised
on a malformed event once skipped the cursor save, wedging the cursor on the same poison event
forever without an error report. Two layers, because the field fix alone
guards the instance and leaves the class: rendering is PER EVENT and cannot raise — poison renders
as an explicit, COUNTED POISON line (trading a crash for a disappearance is the worse bug) — and
the cursor save lives in a
finally: once a window has been READ, coverage is a fact about what the process RECEIVED.peekstays the one exit that deliberately does not advance. When you add a step between a read and its acknowledgement, ask what happens to the acknowledgement if that step throws. - Head-of-line: a budget cut may only ever truncate the TAIL — never the head. The work-discovery
folds do live per-op transport at query time over an unbounded population; under budget pressure the cut
must land on the lowest-priority tail, so an agent's OWN assigned work and any decision parked on a
human can never be the thing that goes invisible. Two structural heads enforce this:
- Blocked-on-human is the reserved FIRST section, and it is FREE.
briefingandneeds-merender open rows blocked on a human first, computed byquery.blocked_on_humanPURELY from aggregate rows already in memory — zero extra transport ops, and free is what makes it un-starvable.--on-userTYPES the block asblocked_on: user:<name>(additive; legacy plain values resolve against the caller's already-loaded identity set), and ambiguity resolves toward SURFACING — a hidden human-blocked item is the incident, a false positive only noise. - The caller's own reviews are the review-fold head, on a budget earlier legs cannot have spent.
_pending_reviews_forderives the caller-assigned review slugs for free from the review-request directive rows and scans them FIRST under a DEDICATEDdeadline_seconds, NOT the shared briefing budget's drained remainder (the fix for a livescanned 0/N: the leg used to start already expired on a busy board). The tail keeps the shared budget; truncating it is expected and reportsreview-fold-degraded. A head that STILL cannot complete is UNKNOWN and gets its OWN DISTINCT markerreview-head-degraded— on ANY non-complete outcome: a budget cut, an unreadable review doc, a per-slugTransportError, or a caller-directive slug absent from the listing (fail closed — negative membership in a listing is not proof the obligation is gone; missing slugs are named in amissingfield). The two markers carry PHASE-LOCAL counts and never borrow each other's numbers (an UNKNOWN head reads0/1, never0/0or1/1); a HEAD-only incident emitsreview-head-degradedand NOTHING else. Ship-gate: a new bounded work-discovery fold puts blocked-on-human and caller-assigned work at the head (free where the data is already loaded; a dedicated budget where it is not), proves the head completes under a spent shared budget, and gives "head could not complete" a marker distinct from "tail truncated." - Every marker must RENDER, not just exist:
briefingandneeds-metype-dispatch every review row type they can receive through ONE shared helper (_review_row_line), so an identical row type can never diverge between the two verbs. An unknown/typeless row must NEVER reach the generic task line (which prints[ ?] ? Noneon a marker shape); a degraded/UNKNOWN marker is always shown and NEVER counted as a pending item. Ship-gate: a new review row type joins the shared dispatch with a red-first test that both verbs show its real line and that an UNKNOWN marker is not tallied as pending.
- Blocked-on-human is the reserved FIRST section, and it is FREE.
- Role routing is the same contract, one layer in — a role you hold is an address. A directive
assigned to a ROLE is directed at whoever holds a fresh lease on it, so
briefing,inbox, andneeds-meall fold role-routed work into the holder's queue (that is what makes role-based identity outlive a session). ONE resolver:cli._held_roles_for_rows— never resolve roles a second way, or the folds silently disagree about a lease. It returns(held, unresolved), andunresolvedis the load-bearing half: a role whose lease state is UNKNOWN (transport failure, unreadable lease shard, unparseable role doc, an explicitly invalidsla_hours, or a budget cut) is neither held nor not-held — folding it into an empty held-set renders a clean, role-blind queue indistinguishable from "you have no role work". Every caller surfaces it as_role_degraded_row={"type": "role-degraded", "roles": […]}plus the text line. Ship-gate: a new fold that answers "what needs this agent" resolves roles through that one helper and surfacesunresolved, with a red-first test proving a failed lookup is visible. Only a complete, successfully parsed listing is negative membership evidence — a failed read and a failed parse are the same fact, and the rule reaches into the FIELD: an explicitly invalid value is UNKNOWN (a default is never a substitute for a value someone set and got wrong), while an absent/blank optional field means the default IS the stated intent. Fold that distinction ONCE, inroles.py, and let callers fail closed onNone. The ship-gate extends to write paths:continuity parkonce swallowed a failed listing as "you hold no roles", printed "nothing to park", and exited 0 — silently discarding the checkpoint the next session resumes from._held_rolesnow returns(held, ok); onok is Falsepark fails non-zero saying the checkpoint was NOT written, and a complete fold proving zero fresh roles exits rc 2CHECKPOINT NOT WRITTEN— a command that ACTS on the roles you hold refuses to act on UNKNOWN rather than treating it as "nothing to do". The fold's candidate set is the union of role documents and role-lease directories, deduplicated by role; a lease directory whose role document is absent/unreadable is UNKNOWN, not evidence that no role exists. If any selected role snapshot or checkpoint-ref write fails, park exits non-zero after attempting the remaining roles; rc 0 certifies that every selected save completed. The fold's cost is oneroles/listing + a few ops per role the open work references, and it runs under one cumulativeCOORD_ROLE_FOLD_BUDGET(default 20s) — a cut marks every unfinished candidateunresolved, never "not held". - Presence engagement is an additive, defensively-parsed schema. A presence shard MAY carry an
engagementobject with exactly four qualified names:engagement.mode(resident|session|occasional),engagement.until,engagement.state(active|lapsed),engagement.lapsed_at. Absentengagementreads asresident+active— every legacy shard is unchanged, and a beat with no--engagementflag writes NO engagement field (byte-identical legacy shard, pinned).--engagement sessiondefaultsuntilto beat time + 8h;--untilis meaningful ONLY forsession(anything else is rc 2, nothing written). A beat is REFRESH-SAFE and must never manufacture liveness: a session beat reads its own prior shard first — an ABSENT prior (disproven by one parent listing; the transport read is None-on-any-failure, so the listing is the disambiguator) is a fresh session; an UNKNOWN prior (listed-but-unreadable shard, failed listing) FAILS CLOSED at rc 1, so a transient read failure never lets fresh active engagement replace a sweep-marked lapsed session; a readable prior with malformed engagement self-heals as fresh. A continuing session's resolveduntilis PRESERVED (recomputed only for a genuinely new session; an explicit--untilwins) — sliding it forward on every beat would make a session never lapse. The beat never writesengagement.state/engagement.lapsed_atto a non-default value — those two names are written ONLY by the lapse sweep (below), and clearinglapsedtakes an explicit session re-declaration. Every fold PARSES engagement through the ONE defensive seampresence.parse_engagement(fm)— any malformed input (non-dict, unknownmode/state, unparseable timestamps, asessionwith no resolveduntil) degrades to the legacyresident/activedefault AND sets a visible_engagement_degradedmarker, never raises — and only the liveness combiner (below) acts on it; the pureclassifynever consults it. Ship-gate: any engagement read goes throughparse_engagement(never a raw dict-walk); any new bad-input class gets a red-first degrades-with-marker test; no write path but the lapse sweep setsstate/lapsed_at. - Activity implies liveness. Every engine bus WRITE verb refreshes the
actor's presence timestamp, so a working agent is provably live — distinct from a dead session
whose launchd beat still ticks (the liveness combiner consumes this as proof). Membership is a DENYLIST:
every verb refreshes EXCEPT the declared reads (
status/board/search/needs-me/briefing,presence show,review status,queue,health,doctor,obligations,roles status,continuity resume) and the plainpresence beat. It was once an ALLOWLIST of functions, which could not keep this paragraph's promise — a verb added later was simply absent, and absence there is indistinguishable from "this agent is not working". Many write verbs had drifted outside it (review close,escalate,continuity snapshot/park,roles claim/release,answer,bus-v3 send,stash push…), so an agent whose job IS reviewing renderedstale — nudgewhile working. Roster liveness can trigger follow-up work, so active writers must not be omitted from coverage. The work axis. Verb coverage alone cannot see work that never passes through a verb (report docs are written straight to the store), sopresence.livenessalso takeswork_ts(newest work-artifact time, read-derived by the caller) plus a three-valuedwork_scan(NONE|COMPLETE|PARTIAL): NONE → byte-identical legacy behaviour; COMPLETE → absence is a real finding (no work found); PARTIAL (budget ran out, unreadable listing) → no imperative at all, because the refuting artifact may be in the unscanned part —list_dircannot tell an empty directory from an unreadable one, so only a COMPLETED scan licenses an absence reading.presence showandbriefingmeasure, both bounded (COORD_PRESENCE_WORK_BUDGET, default 20s; NBenv_floatis POSITIVE-finite — a0falls back to the default, it does not disable). Scan order is load-bearing: agent reports (a handful of listings) run BEFORE the review sweep (hundreds) — with reviews first, the sweep consumed the whole budget and PARTIAL muted the nudge fleet-wide. The sweep is now the POINTER-LESS FALLBACK only: per-agent work EVENTS (_coord/agents/<agent>/work/<iso>-<digest>.json) answer the read-side question in one listing + one read per agent, and are IMMUTABLE ON PURPOSE — the store has no conditional or versioned write, so a shared mutable pointer cannot be defended (review reproduced an older stamp clobbering a newer one, and a delete-on-failure that could erase another host's fresh write). A writer only CREATES its own event, "newest" is a deterministic fold over ISO-led names, and a failed write leaves prior events intact (slightly stale, never wrong) — NEVER add a delete-on-failure here. Four pinned rules: ONE write site (the activity chokepoint, so a new write verb stamps by default); refusal semantics (stamped only onrc == 0, monotonic, missing/corrupt is UNKNOWN and never "did nothing"); transitional (a pointer-less agent falls back to the sweep); attributable (kind+path). NB the pointer is keyed by the RAW agent name, NOTtasks.agent_key()— the hashed form would file every pointer where no reader lists. The continuity audit deliberately does NOT consume work evidence: "working but not snapshotting" is precisely its finding, and the asymmetry is chosen. Classification is PER-OPERATION, not per-function. Several handlers serve both a read and a write:queue TEAMvsqueue commit TEAM(and--consume, which advances ANOTHER agent's cursor),inbox TEAMvsinbox --ack,digest TEAMvsdigest --store. Keyed on the function alone these were wrong in BOTH directions at once —queue commitrecorded durable classifications without counting as activity, whileinboxanddigestrefreshed presence merely by being VIEWED._MIXED_MODE_ACTIVITYmaps such a handler to a predicate over the PARSED ARGS, and_is_activity_invocation(args)— not the function-only helper — is what dispatch calls. Verdict shards are APPEND-ONLY (standing ruling). Two forms are first-class, permanently:<head>--<reviewer>.md(hand-writers, unchanged) and<head>--<reviewer>--<iso>-<digest>.md(the verb) — the store has no create-if-absent and no versioned write, so writing a SHARED name is check-then-write and cannot protect evidence (a concurrent CHANGES was reproducibly overwritten by APPROVE at rc 0); a unique name touches no existing file. Every register reader folds newest per (head, reviewer), ties break on the name, and supersession is never silent (superseded_verdictsis reported). A correction is a NEW shard, and a new verdict INVALIDATES the settle cache — only the cache (the evidence-binding rules above); astate: MERGEDmarker survives a late verdict. Every reader dates a plain shard the same way: filename ts, then frontmatter ts, then normalized listing mtime.review verdictexists so that filing a verdict IS an engine write (it was the one act with no verb, which left reviewers invisible to every liveness fix). It is SUGAR over the same artifact — it writes the append-only<head>--<reviewer>--<iso>-<digest>.mdform in the round's verdicts directory, and DIRECT shard-writing of the plain form stays valid. It never overwrites: the name is unique, so a second filing is a NEW shard that supersedes the prior one (below), never a replacement of evidence a merge may rest on; a changed head is a new round. Every registered command must be CLASSIFIED, read or write or mixed:tests/test_activity_covers_every_write_verb.pywalks the real argparse tree and fails on any unclassified command (a regex cannot decide this — several verbs persist only through helpers)._ACTIVITY_READ_FUNCSis completed at module end, after the extracted command modules import — assembled earlier, it let view verbs refresh presence merely by being READ, the worse direction because it suppresses the nudge for an agent who really is gone. The hook lives at the single dispatch chokepoint, fires only onrc == 0, and the actor is the WRITER (--from/FULCRA_COORD_AGENT; the anonymous reconcile fallback is not a presence identity). Two pinned constraints: THROTTLE — at most ONE presence write perpresence.ACTIVITY_REFRESH_INTERVAL(60s) per process, via a monotonic-clock memo; and FAILURE ISOLATION — a refresh failure never fails the successful bus write (one stderr note,rcuntouched). The refresh is a TIMESTAMP BUMP, not a beat re-run: it rewrites ONLY the top-leveltimestampline and preserves every other byte verbatim, so it never slides a session'suntiland never writesstate/lapsed_at(sweep-owned). The minimal-beat fallback fires ONLY onlist_dir-CONFIRMED absence and FAILS CLOSED on any UNKNOWN — failure isolation never means destructive fallback. Ship-gate: the throttle memo is process-global state — reset it between tests; a new write verb is activity by default (denylist), a new READ verb joins_ACTIVITY_READ_FUNCS, and a mixed handler joins_MIXED_MODE_ACTIVITY; the preserve-everything-but-timestamp rule stays red-first pinned. - A CHANGES is lifted only by a shard that NAMES it (
supersedes:), never by the clock (2026-09-05, codex-coder, review-winning-envelope r4). Client timestamps cannot carry the correction contract: a CHANGES filed later from a host whose clock is behind sorts EARLIER, the old APPROVE wins, and a ship gate validates withdrawn consent. The fold is now: a shard is RESOLVED when another shard of the same reviewer names it insupersedes:(validated against shards that exist); any UNRESOLVED CHANGES dominates regardless of timestamp; otherwise the newest live shard wins; equal keys and unnamed conflicts fail closed to CHANGES.review verdictnames every prior shard of yours it can list; if the listing is degraded it names NOTHING and says so (your prior CHANGES keeps dominating until you re-file). A hand-written APPROVE must carrysupersedes:itself. Only the STORE can supply causality (r8, both codex reviewers): a name is predictable, and a client-written nonce is editable frontmatter at a mutable path (a plain CHANGES rewritten in place kept its nonce and an old edge still resolved it; a predeclared nonce was matched by a later CHANGES). An edgename@sha256:<digest>is honoured only when the digest matches the target's CURRENT bytes AND the store's server-assigned mtime proves the target strictly earlier than the superseder — same minute or unknown fails closed; a bare legacy name needs the same mtime proof. The verb quotes the content digest of each prior it can list AND read; a prior it cannot read is not named; on a degraded listing it names NOTHING (if you cannot enumerate the priors you cannot claim to supersede them). The randomnonce:also feeds the digest in the shard NAME, so identical same-second filings cannot collide. Invalid edges: a shard can never resolve ITSELF (a self-link let a CHANGES erase its own withdrawal); self-links and names that resolve nothing are reported in the tally asmalformed_supersedes, never folded around silently; a cycle fails closed to CHANGES; a forward edge cannot be forged (the name embeds a content digest). This amends ruling b99fb8da (newest-wins): constraint 5 — a stale CHANGES must not block forever — is satisfied by the link the verb writes, not by the order of the clock. - Same-second verdict shards order by chronology, not digest (2026-09-05, both codex reviewers,
coord-fold round 12). The append-only name has SECOND precision plus a content digest, and the
fold broke same-second ties on the name — so an earlier APPROVE could outrank a later CHANGES from
the same reviewer (reproduced: digest
feb86aeeover058ddb93). Nowreview verdictwrites a microsecondts:in the shard frontmatter and the fold orders every shard byreview.canonical_sort_key— the second from the ACL-controlled NAME (frontmatter can never move a shard across seconds), the fraction from frontmatter only within that second,.000000for shards without one so legacy and new compare in ONE format.review status --jsonnow carrieswinning: {reviewer: {name, verdict, sort_key}}— the exact shard the fold kept. A downstream consumer (a ship gate) readswinning; it never refolds filenames itself. The projection (projection.py) uses the SAME key and recordswinningin each generation row, and the generation-backedreview statusfails closed (rc 3) on a row without it — two canonical readers must not answer differently about one directory. Caveats, pinned by test: two legacy shards with nots:in the same second still tie on the name; the verb samples the clock ONCE for both the name's second and the frontmatter fraction (two samples let a verdict straddle a second and lose to an earlier same-second shard); and the resulting order is client-timestamp order, not a provable arrival chronology — cross-host clock skew is out of the fold's reach, and two shards with equal microseconds tie deterministically on the name. - Engagement-aware liveness is a combiner over two ORTHOGONAL axes.
classify(ts, now)stays PURE — freshness only (live/idle/stale), a function of the timestamp alone. The truth table is layered on top bypresence.liveness(shard, now=…), which returns{state, freshness, annotation, engagement}. STALENESS (timestamp freshness) and DORMANCY (asessionpast itsuntil, boundary-inclusive, OR a durable sweep-writtenengagement.state: lapsed) are INDEPENDENT and rendered as two facts, NEVER a merged label: a dormant shard renders primary state LAPSED — distinct from stale/dead, EXPLAINED, ROLE-RETAINING — with the freshness axis in the annotation (a session overrunning its window while beating is honestly LAPSED+active, a nudge to extend, NEVER silently live). A degraded engagement reads as the legacy default and can never manufacture dormancy; all agent lookups match by EXACT id (no substring/fuzzy). The verdict rides ADDITIVELY: roster rows keepliveness= the pure freshness band (existing callers read it; its meaning must not shift) and gainstate/freshness/annotation.engagement gate <team>is the deterministic mixed-fleet gate: every LIVE roster agent is COVERED iff it beats with well-formedengagementOR appears in the operator map_coord/router/engagement-defaults.json; PASS iff all live agents COVERED. READ-CONTRACT LENS (mandatory):transport.readreturnsNoneon BOTH missing and failure, and alist_dirdegradation must never fold to empty, so a falsy read/listing is NEVER "confirmed absent" on its own — an UNKNOWN on either of the gate's reads (the defaults file, or the presence ROSTER via_presence_shards_status, which preserves degradation instead of swallowing aTransportErrorto[]) is DEGRADED, fail closed — never PASS on unknown coverage (an empty gate passes vacuously, so an UNKNOWN roster must never look confirmed-empty; an unparseable shard is UNKNOWN coverage, never a synthesized phantom row). Only a CONFIRMED enumeration may PASS; a confirmed-EMPTY roster still passes vacuously. The vacancy/escalation SEMANTIC change is gated, and the gate ships dormant by default — enable it explicitly: LAPSED rendering lands unconditionally, but reading a LAPSED session role-holder as EXPLAINED ABSENCE (suppress the vacancy escalation with a note) activates ONLY when_engagement_gate_passes(team); otherwise behavior is today's, verbatim. BOTH branches are red-first pinned. Ship-gate:classifystays pure; any new dormancy/coverage input class gets a red-first test; the gate fails closed on any UNKNOWN; the gated semantic change keeps both branches pinned until the gate is satisfied fleet-wide. - The zero-token lapse sweep writes two fields and nothing else.
coord-engine engagement sweep <team>is a host-tick, model-free pass that marks a session past itsuntilas LAPSED by writing EXACTLYengagement.state: lapsed+engagement.lapsed_atinto the presence shard — the ONE sanctioned exception to agent-owned presence writes, scoped to those two names. MARK predicate (presence.sweep_decision, the pure read-only seam, viaparse_engagement): mark iffmode == sessionANDuntilpresent ANDnow ≥ untilANDstate == activeAND engagement WELL-FORMED; anything else SKIPs (fail-closed — a malformed shard NEVER manufactures a lapse), and an already-lapsed session is an idempotent NOOP. The write preserves everything but the two fields —timestampNOT bumped,untilNOT slid, body verbatim — and NEVER parks, NEVER releases roles (operator decision: park is explicit-only). If enumeration raises, the roster is UNKNOWN and the sweep is DEGRADED — loud, rc 1, never a clean0 marked; a per-shard failed read SKIPs into thedegradedbucket (a failed read must NEVER cause a write); a per-shard write failure is reported and the sweep continues.--dry-runpreviews and writes nothing; rc 0 only on a clean sweep. Downstream consumers (e.g. a deployed router) read the marker for reduced-cadence check-ins;lapsed → activeclears only via an explicit session re-declaration in the beat. Ship-gate: the sweep writes ONLYstate/lapsed_at; the mark predicate stays fail-closed; enumeration-degrade is loud + rc-nonzero; idempotency and the two-field-only / never-park / never-release invariants stay red-first pinned. - The rc / error register a bus reader parses. Machine
typefields ride the degraded fold rows (*-degraded); the single-slug verify paths are prose at rc 1, where the convention is load-bearing: the prose ends in "…, retry" iff the failure is retryable (a transient unknown — e.g.review statustally unknown, retry,roles statuslease state unknown … retry,tellcannot verify delivery, retry) and names a tombstone iff terminal (areview statuson a soft-deleted review — a retry never resurrects it). An UNEXPECTED exception is neither: the top-level guard emits a registered envelopecoord-engine: error: command=<cmd> type=<Exc>: <msg>(rc 1) — theerror:token distinguishes an engine fault from a retryable degrade. Views never lie past the current read — the index-freshness invariant. Two mechanisms keep
status/board/inboxhonest between heartbeats, so a same-minute close or a between-tick directive can't leave a surface stale:- Same-minute-touched docs are reparsed, not reused. The store
file listmtime is minute-granular, so reconcile reuses a prior summaries row only when the doc is unchanged by mtime AND byte size AND its mtime-minute is provably closed before the last reconcile read; a row stamped by an olderROW_SCHEMA_VERSIONis likewise reparsed once, so a projection change self-heals the whole index within one full pass. - A feed delta surfaces new docs THIS read. Healthy-path folds combine the aggregate with
team-filtered
data-updateschanges and read only the changed task docs; on any doubt the legacy freshness overlay lists the task dir once, bounded (COORD_OVERLAY_CAP/COORD_OVERLAY_BUDGET) and degrading theinboxsource visibly when capped — never silent truncation. - Acks are folded change-driven, and reuse needs positive evidence. Reconcile asks the store
what changed since the ack fold's OWN anchor (
acks_folded_through, notgenerated_at) and re-folds only those slugs; a prioracked_byis reused ONLY when the store answered and did not name that slug — every unknown falls back to the full fold and logs why. No false advance: a fold that couldn't read what it meant to leaves the anchor in place, a failed listing preserves the prioracked_byrather than un-acking, and a forced full fold everyCOORD_ACKS_FULL_EVERYpasses (default 72) bounds anything the query could miss. - Reconcile's own pass is a feed delta, not a directory scan. It consumes
data-updatessince a durable cursor (reconcile_cursor— watermark + processed ledger) and reads ONLY the changed shards. The fulllist_dir(task/)scan stays as (a) a scheduled drift self-check (everyCOORD_RECONCILE_FULL_EVERYpasses) whose divergences are logged LOUD and rebuilt from the full scan, never silently absorbed and (b) one named recovery for an established cursor when the outer feed coverage boundary/frontier alone is unavailable or unparseable. Thatdetector-full-scanrecovery is visible in the result/log, rebuilds canonical sections (including absent generation substrate), seals the rebuilt snapshot into generation identity, and preserves the old proven watermark; it fabricates no feed advance. An absent manifest cold-starts exactly one generation; an identical later recovery reuses that generation rather than minting a chain whose only change isprior_generation_id. Every other detector UNKNOWN aborts before listing canonical tasks. An incremental row is stamped byte-identically to a full-scan row. Ship-gate: a new reconcile fast path keeps the periodic drift check, restricts recovery to that exact reason family with a prior proven watermark, and its cursor key is cut frombuild_aggregate's passthrough and recomputed in full every pass. - summaries.json is one shared doc written by many hosts at many versions — a top-level key
added in version N is wiped by any host older than N, which rebuilds the document from the
key set it knows and writes it over everyone else's (this is how
acks_folded_throughkept vanishing while any pre-passthrough host still reconciled).build_aggregatenow carries unknown top-level keys through. A preserving older host that carries the projection-publication fence but cannot mint its section bindings is fail-closed by newer readers; a host older than the passthrough can still remove any fence. A general new top-level key is live only once the whole fleet is upgraded — checkhealthbefore assuming a fold-state key is doing anything, and never rebuild the aggregate from a fixed key set.
Mechanics (stamping, deterministic cut, the reconcile reuse anchor) live with the engine —
fulcra-agent-reconcileandpackages/coord-engine.- Same-minute-touched docs are reparsed, not reused. The store
- Idle-agent parking (standing, operator-set). An agent with 48h of no
work in its queue parks a continuity checkpoint to the bus
(
coord-engine continuity park <team> --agent <self> --objective "<what you watch>" --next "resume on directed wake or new assignment") and drops to a coarse daily check; a directed wake or new assignment resumes it (continuity resume). Dormant watchers must not burn compute indefinitely; the parked checkpoint loses nothing. Applies to every agent, the coordinator included.continuity parkexits rc 2 when no fresh role is held and writes no checkpoint — treat that as "not parked", never as a clean no-op. snapshotis the routine save;parkmeans you are LEAVING. Both write a checkpoint, so it is easy to treat them as interchangeable and reach for the one a rule happens to name. They are not interchangeable:continuity snapshot <team> <agent> <slug>— a PROGRESS save. This is the form forcheckpoint-on-every-wake: you did material work, you are still here, here is the state you left.continuity park <team> --agent <self>— a SESSION-EXIT save (its own help says so): you are going away, so snapshot every held role at once and set thecheckpoint_refs. Use it at genuine handoff, at dormancy (above), and on the wake youroles claimso the new role starts with a checkpoint. Do not park on every wake — it announces a handoff you are not making, repeatedly, and drains the meaning from the one signal that should mean "this agent has stepped away".
- park's rc 2 proves only that NO FRESH HELD ROLE WAS FOUND — nothing more.
That one exit code covers two opposite situations and the fix differs: an
assigned/expected role whose lease lapsed →
roles claim(left unfixed the role sits VACANT past SLA and role-routed work reaches no holder); intentionally role-less (the steady state for most workers) → usecontinuity snapshotfor progress saves, and do NOT fabricate a role merely to makeparksucceed. Checkroles status <team> <role>before concluding which case you are in: rc 2 is a lease diagnostic, not an identity verdict.continuity resumealways reports the checkpoint age (JSONcheckpoint_age_seconds); use--max-age 1hwhen a wake or acceptance run must fail rc 2 on stale state — JSONerror_codeseparates invalid duration, unknown age, and stale; small future clock skew clamps to zero, farther-future checkpoints fail loud. - Delivery rule. The human-visible report is a turn's (or tick's) terminal output — composed last, after every tool call. Text followed by more tool activity may never render ("sent" is not "delivered"), so anything that MUST reach a recipient (human or agent) goes on the bus as a durable artifact (ask, review doc, snapshot), never only in session text.
- Backlog. A "do later" item goes ON THE BUS:
coord-engine later <team> "<title>" -s "<context>"parks it on the@backlogaudience (durable, visible on theboard, spams no inbox); route it later with the ordinary assignment verbs. Backlog in session memory alone dies at compaction. - Intent-capture doctrine — a spoken commitment is filed the SAME turn. When
the operator states an intent to ANY agent ("later today", "I'll enumerate
that list", any commitment they own), that agent captures it immediately with
coord-engine intent <team> "<text>" --for <principal> [--by <when>]— an uncaptured commitment is the drop nobody can see. Two surfaces back this:coord-engine intent <team> "<text>" --for <principal> [--by <when>]— sugar over the directive path (writes anintent:<principal>item,intent_byfrontmatter, hash-slug delivery + read-back inherited). Identity is text + assignee only —--byis EXCLUDED. So an identical restatement dedupes (rc 0intent already captured), while a restatement with a DIFFERENT--byis a verified in-place window update on the same doc (rc 0intent window updated, read-back-checked; unverifiable → rc 1, retry — never a stale deadline, never a forked item). A relative--by(5d/36h/10m) re-resolves from now on each restatement.coord-engine threads <team> --for <principal> [--json]— the dropped-work fold, three mutually-exclusive modes (first match wins): started-then-silent (an item the principal owns/last-touched, quiet past--silence-days, default 3); blocked-on-operator (progress waits on the principal —assignee: <principal>, ablocked-on:<principal>tag, or aneeds:humanblock naming them — surfaced immediately, no aging); intent-never-started (anintent:<principal>item past its window and not followed up). A terminal item (done/abandoned) is NEVER a dropped thread in any mode — the fold refuses it and reads the authoritative status from the task doc, not the summaries index (a same-minute close can leave the index stale). Athreads-degradedrow means the fold saw only PART of the store — sweep or wait, never trust it as complete;--jsonis ONE array, not JSON-Lines. The coordinator role typically runs this fold in its loop and owns the curation/push call.
- Blocked-on-operator doctrine — a harness approval-gate is a bus event (operator order). When work waits on an operator/harness approval that only a human can grant (a "nod before you build", a deploy sign-off, an entered credential, any approval you cannot self-serve), the blocked agent does THREE things the same turn, not one: (1) immediately post a P1 BLOCKED-ON-OPERATOR shard to the coordinator role naming the EXACT approval and the EXACT artifact it gates (PR #, slug, host) — so the block is a visible, routable bus item, not a private wait; (2) continue all non-blocked work — the block scopes to the gated artifact, never to the agent; idle-while-blocked on one item when other work is ready is itself a failure; (3) keep beating — a blocked agent is still live and must stay so. Silence-while-blocked is a protocol violation: never let an operator approval turn into an invisible stall (the failure this codifies). The operator's absence is never approval — surface the block loudly and persistently, and take the other ready work meanwhile.
- ATC (air-traffic control, alpha). On a subscription-cap fleet, consult
coord-engine route <team> --needs <tags>before a dispatch to pick the cheapest model that covers the work, and log the outcome after withcoord-engine usage log; the ledger feeds the headroom fold and demotes a model that keeps failing a task class. Rubric, routing procedure, and the coordinator-join surface (atc harvest, bindings,route --for-role):fulcra-agent-atc. - Timeline projection (opt-in).
coord-engine annotate resolution <team> transitions(defaultoff) makes the heartbeat project task transitions onto your Fulcra timeline model-free, right after each reconcile;annotate status <team>shows the level + cursor. It is the successor to the legacy first-generation annotations writer, which is now retired (see Fulcra platform surface). Projection needs the typed-record writer (fulcra-common) installed beside coord-engine (uv tool install … --with fulcra-common); without it the step is an explicit exit-0 no-op. Setup + install recipe:docs/coord/GET-ON-THE-BUS.mdandfulcra-agent-automation.
Operator knowledge: vault + prefs
Long-running work with the operator accumulates knowledge about them. Store it on Fulcra the turn it is stated (the same capture doctrine that applies to intents), split by kind:
- Facts about the operator's world — people, companies, places, pets,
routines, the semantics of their Fulcra data ("a hike on X road is always a
dog walk") — go in
fulcra-vault: a markdown knowledge vault in Fulcra Files (live today; it also hosts the meeting CRM). Write an owned section under your agent id, add a log line,reindex; give entities their own wikilink-able notes. The CLI works from any authed host. - Preferences — how the operator wants to be served: tone, format, defaults,
per-platform overrides — are
fulcra-prefssignals (typed, decaying, confidence-weighted, deterministically compiled). Iffulcra-prefs capturefails (the layer is alpha), do NOT drop the signal: store the statement as a vault note and queue the signal keys there for capture once the layer is up. - Retrieval, today: both layers inject at session start — vault
install-hooksloadsHOT.md, prefs compiles per-platform docs into the boot context. Beyond the hot set, the convention is judgment-based: when a person, company, place, or project is named in your work, consult the vault (fulcra-vault read MAP.md,backlinks) before asking the operator or guessing. Deeper retrieval (search/MCP) is future work — storage now is what makes it possible later.
Coord-engine 2.0 truthfulness boundary
The separate coord-v5 alpha is the new work-core release track, not an upgrade of the installed Python engine or an activation of the v4 cutover. Its release status separates packaging, usable operations, agent acceptance, and upstream release. Do not change an existing team's authority, schedules, or historical work when trying the alpha. Its Node runtime and explicit enrollment requirements belong to that package only; Collect and the web application are not prerequisites.
For new v5 enrollment, use the package's onboarding guide
and capability-evidenced coord-v5 enrollment plan; keep one native listener
registration per environment/harness. A worker keeps its own native wake until that
environment's listener wake is verified end to end, and keeps it afterwards as a
coarse backstop; never retire a worker wake on registration or delivery evidence
alone (harness guide). Its plan is not an installed schedule or
a membership grant. Current verified event ingress selects native-event without
requiring a schedule/loop when read, publish, checkpoint, dispatch and explicit
unattended opt-in are satisfied; a verified schedule is a backstop. A reporting
listener routes attention to separate workers, while deliberate self-ticking
owned-task execution is a separate opt-in mode. Planner mode is not event-adapter
support or idle-wake proof. enrollment instructions accepts optional
instruction_mode: worker|listener|executor; omitted/explicit worker preserves
the existing block bytes. Apply listener/executor blocks only in their own local/session
instructions, not shared repository-wide worker instructions. The listener reports
its own reads/routes/conflicts/reconciliation, not worker progress/completion or
fabricated receiver acknowledgment. Executor work needs explicit task ownership
and recovery context; a wake is not authority to adopt work. No instruction mode
installs a schedule or grants permissions; self-ticking requires separate authorization.
Generation/CLI tests are not proof of agent obedience. Preserve the distinction between contact, inbox observation,
progress and checkpoint clocks. Role claims survive in annotation history but
are not distributed locks; partial source views cannot authorize exclusive
takeover. Keep private descriptors and managed workspace instructions local.
In v5, current source health can recover after a strictly newer successful read;
historical errors remain in the observation journal and coverage remains partial.
coord-v5 transport read journals failed observations and preserves cached work,
but exits nonzero when the current read is unavailable; clean partial reads remain
nonfatal and never imply absence.
Use checkpoint prepare to obtain normalized checkpoint content and its canonical
digest before publication; raw artifact integrity and canonical body integrity
are separate checks. A receiver can run coord-v5 checkpoint verify --artifact ABS
--publication ABS on private local files to measure exact raw SHA256, normalized
body digest, and scope/identity bindings; this is not remote retrieval, access,
native-wake, or source-completeness proof. Artifact bytes are capped at 256 KiB,
publication JSON at 64 KiB, and validated checkpoint content at 128 KiB.
Native action generation is not evidence of a delivered wake.
The v5 runtime's explicit host-injected dispatchCodexWake supports only scope
harness codex and privately bound desktop thread/host targets. Trusted native
read/send callbacks are required; injection does not prove authority or grants.
It requires exact idle preflight, commits a SQLite claim before sending once,
and retains claimed/uncertain attempts without automatic retry. Each callback
has a bounded observation timeout, not cancellation. Acceptance is not receiver
acknowledgment or work completion; synthetic tests are not live acceptance.
See the Codex dispatcher contract.
The v5 listener's opt-in dispatch-claude command resumes a privately bound
claude-code target {kind:"claude-code",sessionId:UUID,cwd:ABS} using a trusted
absolute operator-supplied executable; pass the prepared action's .arguments
on stdin. It fixes flags requesting full model ID claude-haiku-4-5-20251001
and a $0.25 provider budget, with safe-mode/tool-free/strict-empty-MCP flags.
It claims before spawning and bounds runtime/output. Exact argv does not
guarantee the served model or provider
billing: inspect actual assistant-model telemetry, not auxiliary modelUsage.
The served model may differ from the requested model ID; sub-budget success does
not prove a hard spend ceiling. Only exact native success is accepted,
never acknowledgment or lifecycle proof. Claimed/uncertain invocations never
retry automatically; reconcile exact receipts after confirming the old process
is no longer executing. The same-session fence covers one local journal/scope,
not other processes/journals/scopes. Keep native routes and CWDs private; do not
sign in, create sessions, change credentials or force takeover as dispatch setup.
Synthetic fixture success is not authenticated native acceptance. See the
dispatcher contract.
coord-v5 handoff verification import --config ABS --db ABS --receipt ABS
retains a private, scope-bound operator attestation through restart. The receipt
envelope is {schema:"handoff-verification/1",principal_id,workspace_id,
workstream_id,stream_id,package,verification}; package bytes bind the offer
digest and exact access-requirement set, and referenced ready/offer/publication
events must already be in the authenticated local journal. Views consume valid
retained checks automatically, fail unavailable on tampering, and refuse expired
pending readiness. A historically accepted owner is not revoked merely because
checks expire later: with multiple ready events, preserve only proofs in the
replay-accepted transfer's causal history. Identical authenticated source copies
count once for receipt bindings; differing event content under one ID fails
closed. Import does not independently verify remote artifact bytes,
remote permissions, native wakes, or source completeness; do not describe it as
a verifier adapter or use partial coverage to claim all-clear or takeover.
Current proof validity is its own fact, never merged into handoff state. Every
handoff row carries verification: {state:"valid"|"expired"|"absent"|"unknown",valid_until,
ready_event_id}. An accepted row binds this fact to the exact ready event named
by its accepted event, which may differ from the first retained ready displayed
on the row. Causal acceptance and proof validity are orthogonal: a clock must
never un-accept a causal event, so an accepted handoff whose checks lapsed keeps
state:"accepted", unchanged ownership and no recheck diagnostic, while
reporting verification.state:"expired". Pure replay defaults the verification
clock to asOf; an explicitly malformed verificationAsOf yields unknown
while preserving causal state and ownership. Replay returns early without an
asOf, so no row claims validity without a causal clock. absent means no
retained receipt resolved and only occurs before readiness.
2.0.0 ships the truthfulness spine only: typed command outcomes, exit status
that agrees with the body, deterministic identity precedence, and distinct
empty, tombstoned, unreadable, and unknown states. Those direct canonical-read
paths are the required fleet-adoption target.
Generation-backed public serving is dormant in 2.0.0. Do not run or require
the cancelled epsilon measurement, set public_read_epsilon_verified, treat a
current generation as public authority, or infer that authority from the release version.
Cursor schema 2 remains a separate activation that requires its own fleet
version fence and proven CAS transport.
The 2.0.0 tag set FulcraFileTransport.public_read_v2_enabled to true, so
migrated folds entered the unverified generation wrapper and returned
UNKNOWN before their canonical handlers ran. 2.0.1 and later set it to
false, making dormant serving real; adopt a later release, never 2.0.0.
This is a source fact, not evidence of which build any live host runs.
Fleet adoption is functional, not epsilon-based. Every live host within the
recorded SLA must run the exact released build (with named, evidenced
exclusions), and at least two credentialed hosts must verify queue,
needs-me, review, forge, roles, presence, and reconcile through the direct
canonical paths. Any required UNKNOWN, degraded fallback, or nonzero result
blocks the adoption claim. Release, adoption, generation serving, and cursor-v2
activation are four separate facts; never use one as evidence for another.
Working tree
Prefer a per-agent git worktree, not a shared checkout — concurrent
sessions sharing one working tree clobber each other's index/HEAD
(interleaved commits, orphaned merge conflicts). Each session gets its own tree
(and its own per-cwd identity): git worktree add ../<repo>-<purpose> -b
<vendor>/<purpose> origin/main. Conflict markers or staged files you didn't
create mean you're sharing a checkout — move out before committing.
A worktree does NOT isolate the stash stack. Stashes live in the shared
.git, so git stash in your own worktree reaches into the same stack every
other session uses. A git stash push with a pathspec that matches nothing
succeeds silently and stashes NOTHING — and the git stash pop you pair it with
then pops somebody else's entry into your tree, as a conflict you did not cause.
If that happens: git checkout HEAD -- <their paths> to restore, and CHECK
git stash list afterwards to confirm their entry survived. Prefer a scratch
commit on your own branch over git stash entirely.
Commits
End the commit message with the trailer
Co-Authored-By: <your model> <user@example.com> (e.g.
Co-Authored-By: Claude Opus 4.8 (1M context) <user@example.com>).
Credential custody (bot tokens)
Where a team runs a machine (bot) forge account, its credential custody is team-store material, not repo material. The generic doctrine:
- A bot PAT is read at runtime from a secret store, never embedded — never
in an OS scheduler plist (plaintext at rest) and never in argv (visible in
psand shell history). - Rotation is stage → verify → promote: verify the candidate under a staging name before overwriting the incumbent — a piped empty value can wipe a keychain entry silently and still exit 0, so always paste at the interactive prompt — and rotate EVERY home the credential lives in BEFORE revoking the old token.
- Agents cannot mint tokens — an expiring token needs an armed operator reminder on the team bus. Never let a token value reach argv, stdout, shell history, a repo file, a scheduler plist, a log, or a chat transcript.
Documentation rules (standing, operator-set)
Public documentation uses synthetic identities, account IDs, host names, and data. Keep personal content, team rosters, live measurements, deployment incident records, and private approval history in the team's own storage. Examples must let a new user configure their own team and recipients without inheriting a live account.
Write installation and plugin setup for the person using the tool, including someone who has never opened Terminal. Agent and contributor guides can assume their stated technical context. In both cases, readers should be able to follow the instructions without knowing the maintainer's machine or account.
Standing rules:
- Truth over aspiration. Document live, verified behavior; stamp verification dates and drift headers where the platform moves faster than the repo (the FULCRA-PRIMITIVES pattern). Doc claims get adversarially reviewed like code.
- Exact commands, exact paths, canonical form. Bare
coord-engine, neveruv tool run coord-engine(not on PyPI). One wrong documented filename made role-gated reviews structurally unapprovable (v1.6.4 fix) — path precision is correctness, not style. - No dead or broken references (operator rule, 2026-07-14): relative links must resolve, referenced files/commands/sections must exist, and mentions of real repo things should BE links. Sweep on every docs QA pass.
- Teach fail-loud, never fail-quiet. No documented pattern may swallow errors; if a leg degrades to a no-op without its backend, the doc says so in bold (the silent-writer darkness).
- Docs ship with the change, same PR, dual-green. Docs debt is in scope, never a follow-up. This file is the ship-gate.
- One canonical home per fact; everything else links to it. Scattered version pins and duplicated doctrine are drift bombs.
- Historical docs (proposals/, superseded designs) carry a historical banner instead of being rewritten; broken references get fixed even there.
Writing for upstream (issues & PRs to fulcradynamics/*)
Findings go to Linear, never to GitHub issues (operator rule, 2026-10-01). File findings as Linear tickets on the appropriate board (Platform/PLAT unless clearly another team). Never open GitHub issues on fulcradynamics repos. Why: the engineers triage in Linear, and an issue opened on a product repository lands outside their queue and has to be migrated by hand (fulcra-api-python issue 115 was, on the day this rule was written). This covers every agent and courier on the fleet, whatever account it files under. Pull requests upstream are still allowed where a session has the access; the writing rules below apply to those and to the Linear ticket text.
Upstream reports must be understandable without reading this repository.
- Succinct. First sentence states the bug. Repro, expected, actual, one self-contained piece of evidence (a curl, a traceback). Ten lines.
- Their vocabulary only. No fulcra-tools terms, codenames, or links — evidence must reproduce from their code alone.
- Everything else — discovery story, fleet impact, workarounds — stays here.
Filed by a courier, and it says so. Most sessions cannot reach repos outside the one they were launched against, so upstream work is filed by a session that can — which means the only identity upstream sees belongs to the carrier, not the author. Close that with the last lines of every upstream PR or issue body, above the Claude Code footer:
Filed by `<courier>` on behalf of `<originator>` — automated agents operating on one maintainer's account. Replies reach the originator.One name and no "on behalf of" when they are the same agent. Attribution here is ROUTING, not credit: it tells upstream who can answer and tells us whose work is in that thread. Identities only — no internal paths, task ids, or topology; the rule above still applies to this line.
- Name the access level before promising delivery. Report what the API says — pull/push/maintain/admin — and which of file, merge, approve-CI it permits. Filing from a fork needs read; merging needs write. "I have access" is not an answer.
CI and workspace membership
- macOS CI is path-filtered and bills at 10×, so it only runs on changes
under
packages/**,skills/fulcra-agent-automation/**, the workflow file itself, and the dependency manifests (pyproject.toml,uv.lock) — see.github/workflows/macos.yml;test_ci_trigger_coverage.pyfails if trigger and coverage drift apart. Everything on Linux (uv-workspace.yml) runs on every push/PR tomain. The upshot: for anything outside the macOS trigger set (docs, most skills), the local run is the only pre-merge macOS check — run the relevant suite before you push. - Local verification.
coord-engineis CI-gated on both runners, but still run its pytest suite locally before pushing. - Workspace exclude. Any directory under
packages/*that is NOT a uv member (nopyproject.toml) must be added to[tool.uv.workspace] excludein the rootpyproject.toml, or it breaksuv sync/uv run/uv tool installfor everyone (theuv-workspaceCI guards this).packages/web-ui(a frontend, nopyproject.toml) is excluded for this reason.
Fulcra platform surface & records
FULCRA-PRIMITIVES.md is the field guide to the whole
platform surface (auth, files, annotations, queries, MCP), organized by agent
capability tier — CLI/lib, raw HTTP, or MCP-only. Read it before re-researching
anything about the platform, and check the installed fulcra-api version,
not the repo (the CLI ships ahead of its git main on PyPI).
- Spec-backed raw endpoints are first-class. Anything in the published
Fulcra OpenAPI (
api.fulcradynamics.com) is fair game when it makes the work easier — a documented raw REST call is a legitimate tool, not a last resort. Still prefer thefulcraCLI / Python lib when you have a shell and a verb exists; the MCP server is read-only. - Records have CLI verbs as of 0.1.37 (2026-07-15) —
fulcra record DATA_TYPE [VALUE]andfulcra delete DATA_TYPE [RECORD_ID], both with-f/--fileand JSON/JSONL on stdin for batch;fulcra catalog --recordable-onlylists the types they accept, and the lib gainedrecord_data_type/validate_records. Use them when you have a shell rather than hand-rolling ingest POSTs. The raw ingest endpoints (POST /ingest/v1/record/{data_type}, typed and preferred; the wrappedDataRecordV1legacy path; the unpublished/batch) are still first-class when you need them — the primitives doc covers all three and the custom-typesourcescaveat. - Records are still append-only.
deleteis a tombstone, not an erasure — the CLI implements it by recording aDeletedRecordthrough the same ingest path, and there is no record-delete lib method. There is no hard delete and no update/replace verb, so corrections are modeled as new records, not edits: write a superseding record, or delete-then-re-record. What 0.1.37 changed is availability, not semantics. - Projection is the sole timeline-annotation writer. Use the heartbeat
projection fold (
coord-engine annotate resolution <team> transitions). Its deterministic ids converge because typed ingest upserts matching explicit ids (live-verified 2026-07-14). The retired first-generation writer minted different ids and was removed after causing duplicate-record proliferation.
The daemon (Collect)
- Apple Notes: included in the macOS bundle and registry fallback. Use the wizard for Full Disk Access verification and one-way import. Snapshots use a bounded SQLite online-backup subprocess; entity IDs are resolved from Z_PRIMARYKEY. Preserve unowned Markdown and refuse missing/ambiguous fences. Keep real library metrics and source data out of public code, tests, commits, and reports.
- Bundled runtime: the Briefcase app supports --collect and --fulcra CLI dispatch plus an internal --notes-snapshot worker. Build-generated sibling launchers supply fulcra-collect, fulcra, and fulcra-api without a developer venv. Workers must use the bundled launcher, never Python -m flags on the native app executable. The build installs these before signing.
- AppleScript writeback is experimental: it additionally requires explicit writeback_enabled = true and refuses all attachment types. Do not enable it as part of ordinary Notes setup.
- Setup does not imply sync consent: entering the final wizard step must
never enable or run a plugin. Use its explicit start action, persist the
displayed preview mode before enabling, and fail closed if settings cannot
be saved. Run
node --test packages/web-ui/tests/*.test.cjswhen changing wizard navigation or first-run behavior. - Run it durably as a launchd agent, NOT a backgrounded shell process — a
foreground/
&daemon dies when its terminal or session ends. Install + load:uv run fulcra-collect install, thenlaunchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.fulcra.collect.plist. Restart:launchctl kickstart -k gui/$(id -u)/com.fulcra.collect. Stop:launchctl bootout gui/$(id -u)/com.fulcra.collect. Logs:~/Library/Logs/fulcra-collect/. - Subcommands:
daemon install status run enable disable set-credential set-setting set-interval plugin doctor. There is nostart;doctorruns the pre-flight diagnostic. set-credential(keychain) andset-setting(config.toml) are the headless pair for configuring a plugin without the wizard.set-settingvalidates against the plugin's declaredrequired_settingsand refuses any key declared as aCredential— every mistake it could otherwise make (typo'd plugin id or key, out-of-range enum) writes successfully and is then never read, so it must fail loudly at the CLI or not at all.- Config dir
~/.config/fulcra-collect/:control.sock(the UDS the menu-bar- CLI use),
web-url(defaulthttp://127.0.0.1:9292),web-token(Bearer for the web API).
- CLI use),
- Plugin authors needing independent durable cursors/state use RunContext's
kv_get/kv_set/kv_update/kv_deleteAPI. It is isolated by plugin ID and backed bystate.db; values must be JSON (64 KiB maximum, 256 UTF-8-byte keys). Usekv_updateonly for quick, side-effect-free atomic transforms because it holds SQLite's writer lock while the callback runs.
Freshness: run status cannot tell you a source has died
last_run / last_outcome / consecutive_failures answer did the plugin
run, never did it collect anything — a source whose upstream goes quiet
keeps exiting cleanly with last_outcome="done", so every health signal stays
green while the data stops. freshness.py supplies the missing half from two
independent clocks: last_yield_at (daemon clock — catches "runs fine,
produces nothing") and newest_item_at (source clock, monotonic so a
backfill cannot drag it backwards — catches a plugin that keeps writing while
upstream is frozen). Plugin authors: pass observed_at=<ISO source timestamp>
to ctx.annotation(...) (only the plugin knows when the thing happened
upstream), and opt in with freshness=FreshnessExpectation(max_yield_silence=…,
max_upstream_lag=…) — monitoring is opt-in by design (a bound guessed
from default_interval would cry wolf on legitimately rare sources; set
max_upstream_lag above normal quiet periods). A plugin that has never
yielded reports UNKNOWN — deliberately neither healthy nor stale; collapsing
"we have not looked" into "we looked and it is fine" is what let a four-day
outage read as green.
launchd PATH gotcha
launchd runs the daemon with a restricted PATH
(/usr/bin:/bin:/usr/sbin:/sbin) and does NOT source your shell profile — so
~/.local/bin (where uv tool install fulcra-api puts the fulcra CLI) is
invisible. Any code shelling out to the fulcra CLI must resolve it via
credentials._find_fulcra_cli() (PATH → ~/.local/bin → homebrew), never
bare shutil.which("fulcra").
Second-order gotcha (bit the gmail relay twice): resolving your OWN binary
to an absolute path is not enough if that binary shells out further —
coord-engine itself execs fulcra-api by bare name, so under the daemon's
PATH every relay emit silently no-oped for five days. When you shell out to a
tool that itself shells out, pass an env whose PATH includes the install
dirs (relay._subprocess_env) AND set EnvironmentVariables.PATH in the
daemon's launchd plist; keep both so a plist regeneration can't silently
reintroduce the outage.
Keychain
- User secrets (the Fulcra
bearer-token) live in the OS keychain viakeyring, servicefulcra-collect:user. A read can block on a macOS ACL confirmation dialog;credentials._keyring_gettimes out after 5s and the daemon degrades to "Fulcra not authenticated". - Sign in through the daemon's web wizard (
open "$(cat ~/.config/fulcra-collect/web-url)") so the daemon — not a one-off script — owns the keychain item. If the "Python wants to use your confidential information" prompt repeats, click Always Allow (not "Allow"). If it still repeats, the item is owned by a stale binary:security delete-generic-password -s "fulcra-collect:user" -a "bearer-token", restart the daemon, re-sign-in.
Menu-bar app
- Launch from a GUI (Aqua) session:
uv run --package fulcra-menubar python -m fulcra_menubar. Not from SSH/detached shells, or the status item won't appear. Under Homebrew Python the bundle id isorg.python.python(use that for computer-use / TCC grants, notcom.apple.python3). - It talks ONLY to the daemon over the control socket; it never reads the keychain. Auth state, tracks, and plugin status all come from the daemon — a stale UI usually just needs a relaunch / reopened popover.
- Bundle-requiring macOS APIs (
UNUserNotificationCenter, etc.) raise an uncatchable NSException when run unbundled (python -mfrom a venv) —try/exceptcan't recover it. Guard with_notify_macos.running_in_app_bundle(). The shipped app is bundled via Briefcase.
Sign-in & first run
Full first-run walkthrough + troubleshooting: docs/TESTING.md.
Diagnose a live install with uv run fulcra-collect doctor.
coord-fold — the coord-on-annotations fold engine (packages/coord-fold)
Canonical home for the durable facts about packages/coord-fold (its plan docs/superpowers/plans/2026-09-04-coord-fold.md and spec docs/superpowers/specs/2026-09-04-coord-annotation-bus-design.md exist only on the unmerged coord-fold-plan branch, not on main). Ship-gate rule: every PR touching the package updates this section or states "no change needed".
What it is. A SEPARATE package (not a module inside coord-engine): coord_fold/{events,transport,channel,checkpoint,fold,cli}.py, each owning exactly the symbols the ownership manifest in tests/test_structural.py names. Its import graph never reaches coord_engine; pyproject.toml declares no dependency on it. Dependency direction is one way: coord-engine's old side (Tasks 12–14: seed export, dual-emit, comparator) may import nothing from here and here imports nothing from there.
The reader/writer boundary (spec §3.4, corrected). The transport is a two-method Protocol; CliPointerReader and CliPointerWriter are unrelated classes with disjoint surfaces and NO enumeration method. §3.4's original wording implied that the type "stops os.listdir"; corrected: a type stops a method call, not os.listdir — nothing in a Python type prevents a caller from enumerating. The guarantee that enumeration does not happen is G29, below, not the type.
Six verbs, three exit codes (coord_fold/cli.py): emit, fold, claim, release, close, status. RC_OK=0, RC_REFUSED=2, RC_UNKNOWN=3. Refused means the verb declined on evidence it read; UNKNOWN means a read did not answer and nothing was concluded. A capped fold pass is NOT an error (G25): it applies what it read, advances the cursor to the last applied event, reports unread_events: N and exits 0 — a remainder bounded by new events, not a failure. The only fold error is zero progress while events exist. The string degraded never appears on any output path (G11; tests/test_no_degraded_vocabulary.py enforces it): unreadable_pointers: [slug] is UNKNOWN (exit 3); unread_events: N is a remainder (exit 0). An unknown never reads as clear.
Cursor rules (G26, G31). The cursor is the recorded_at of the last OBSERVED record before the first UNAPPLIED RELEVANT event — never now, never past a gap. Records that are unparseable, foreign-schema, or addressed to someone else are observed and passed, never re-read. Checkable consequence, made a test: re-running a fold from the stored cursor yields the same open set. Lost-update detection, not CAS (G27): the store has no compare-and-swap; the checkpoint carries writer and a monotonic generation, the fold re-reads before writing and refuses by name if the generation moved. No compaction, never delete events (G28).
Relevance rule (RULING 2026-09-05, coord-boss blocker a0927018). An obligation belongs to its ASSIGNEE. An event applies to an agent's fold when it is addressed to that agent or to all, OR when the agent itself sent it and it is a claim/release/close (the assignee's own action on an obligation it holds — those are addressed to the open's sender but performed by the assignee, and the assignee's fold must see them or a closed row would stay open forever). An open or note the agent SENT never opens for the sender: a sender's waiting is bookkeeping, not an obligation. The earlier rule applied every sender event too, so every seed leaked into its senders' folds (coord-boss saw 54 of coord-maintainer's opens, coord-maintainer 137 of coord-boss's) and no coordinator could ever AGREE. Both sides — the old plane's obligations/compare-to-fold and coord-fold — ask the question this way. Checkpoint rows carry to (the recipient) since 2026-09-05 so a divergence classifies from the row alone; the field is ADDITIVE, rows written before it lack the key and stay valid, and SCHEMA_VERSION did not move because a bump makes every existing checkpoint load as corrupt and refuses the fleet's next fold. Two residual edges (coord-boss 6f8121fc, 2026-09-05): a broadcast (to: all) opens for every agent EXCEPT its sender; and the mirror turns a v3 directive into a v4 open only when the task doc it points at names an assignee (read once at write time; an unreadable doc mirrors anyway, over-capture over a silent hole) and never for an FYI, because neither opens an obligation on the old plane. Class C (coord-boss 24d545b0): a row already in a terminal status (model.TERMINAL_STATUSES) when its open is emitted — a DONE report born done — opens nothing either, or it would carry an open with no close forever. A checkpoint computed under the old rule is repaired with coord-fold fold <team> --agent <a> --rebuild: it replays the whole stream under the current rule (events are never deleted, G28) and keeps the generation/writer so a concurrent writer is still refused (G27).
Pointer resolution (coord-boss finding 2026-09-05). Emitters write ptr TEAM-RELATIVE (task/<slug>.md); the store holds team/<team>/task/<slug>.md. The READER resolves: coord_fold/pointers.py::qualify(team, ptr) prefixes team/<team>/ onto a bare pointer and passes an already-qualified one through, and both pointer reads (fold --verify-pointers, close --evidence) go through it. Read verbatim, every open row came back absent (a legitimate answer, so nothing flagged it) and the flag whose job is to prove pointers resolve reported 339 of 339 unreadable. No migration of emitted events; every other consumer of this plane (the Linear bridge already does) must resolve the same way.
Record write shape (G13 drill finding, 2026-09-05). coord-fold's writer invokes the real CLI exactly as the engine's record_write does: record <data_type> --api-version <v> --source <sender> with only {note, recorded_at} on stdin. The first cut passed no positional and five stdin keys; the real CLI refused every write (rc 2, Missing argument 'DATA_TYPE') while the proof's fake accepted it, so every coord-fold emit/claim/release/close on the live store returned UNKNOWN until the drill tried one. The proof's store server now refuses the same shapes the CLI refuses; a fake that accepts what the real thing rejects proves nothing.
The four gate files (CI: the always-on Linux uv-workspace.yml test step, plus macOS pytest packages/; and scripts/materialize_plan.py GATES): tests/test_structural.py (ownership manifest, no enumeration, import graph, two-method Protocol, disjoint reader/writer), tests/test_tripwire.py, tests/test_ship_check.py, tests/test_ci_wiring.py; plus tests/test_file_size_ceiling.py (G8: 400 lines per .py under coord_fold/, recursive; the ceiling is documented in packages/coord-fold/README.md) and tests/test_no_degraded_vocabulary.py.
The tripwire is demoted (G30). tests/test_tripwire.py is a syntactic scan for enumeration identifiers and modules (os.listdir, iterdir, glob, …). It catches the plain spelling and nothing else — an alias, a getattr-built name, or a subprocess escapes it by construction. It is kept because it is cheap and true about what it names; it is NOT the guarantee and a green tripwire proves nothing about behaviour.
THE GUARANTEE, in G29's words. The guarantee is behavioural, OS-enforced, and observed at a process boundary. tests/proof/run_proof.py starts a store server OUTSIDE the sandbox (tests/proof/store_server.py: the corpus lives in that process, loaded from a file the sandbox cannot read; it answers only the five fixed request shapes — file stat, file download, get-records, record, file upload — refuses and logs everything else, and logs each get-records with its channel, its since, and the count returned), then runs the PRODUCTION CliPointerReader/CliPointerWriter through all six verbs INSIDE a macOS seatbelt sandbox that denies at the kernel every network endpoint except the store's socket, every exec except the interpreter, every file read outside the interpreter, the package tree and its own temp dir, and every file write outside that temp dir. Five phases: the clean run asserts the exact request sequence with paths, a path allowlist, per-shape bounds, and that no get-records asks from before the cursor the store held at that moment minus the overlap; the attack battery; a file list mutation; the epoch-rewrite mutation; the point-probe mutation — the last three must be FLAGGED. What it proves and no more: in that run the fold reached no store except through observed requests — these specific capabilities were denied by the kernel and the fold still completed. NOT "the fold ran with no capabilities". What it does not claim: that enumeration is impossible to write, that the fold cannot detect it is under test, or that a Python process can hide anything from code running inside it. The measured profile is allow-default with kernel denies on the capabilities that matter, because deny-default aborts the interpreter at startup on the proof host (measured, rc 134). The driver exits 3 (UNKNOWN) where no OS sandbox exists — never green by absence, never softened to a skip; the final line prints host, platform and UTC time. The proof needs a macOS runner: .github/workflows/coord-fold-proof.yml has two steps — one asserts the host has a sandbox (else it is the wrong host, not a pass), one runs the proof and treats exit 3 as a failed job. Linux CI is UNKNOWN by design. No bwrap profile is written until it can be measured.
Trust model of the ship gate (r34). It defends against the mutable tool environment, PATH/env resolution, and world-writable or cross-user temp locations. It does not defend against a concurrent same-user process on the gate host (which could replace the gate itself), and claims no pathname binding against one. Its temp root is a gate-created 0700 directory under ~/.local/state/coord-fold/tmp (an inherited TMPDIR is ignored); the engine child gets its CLI as an absolute path in FULCRA_CLI_COMMAND with an empty PATH; downloaded bodies are checked for owner, mode and non-link status immediately before being read.
Ship gates (ruling 6bb7fa0f, 2026-09-05). Task 1b (the proof) and Task 16 (scripts/ship_check.py: the engine's folded APPROVED result on the EXACT commit, both required reviewers' winning shards quoting git rev-parse HEAD:packages/coord-fold, an approved+pinned engine attested by the gate's own interpreter through a verified-bytes importer, trust roots stated as absolute paths --git/--fulcra-api) gate SHIPMENT, never the start of work. G24: a plan revision is filed only with Task 0 (scripts/materialize_plan.py) green.
coord bus-v4 bridge — Tasks 12–14 of the coord-fold plan (2026-09-05)
The old bus (bus-v3) and the new annotation-native plane (bus-v4, folded by packages/coord-fold) run in
parallel until cutover. Three engine verbs make the parallel run measurable; none of them changes what the fleet
acts on today.
- Channel. bus-v4 is the data type named in
team/<team>/_coord/bus-v4/records.json(data_type,api_version). No config → nothing mirrors, nothing seeds. Never hardcode it. - Dual-emit (Task 13).
coord_engine/dual_emit.py::mirroris called once at the end ofrecords.emit_event, the engine's single write chokepoint, so every bus write is mirrored without any verb opting in:directive→open,response→close,claim→claim,verdict→note, eight-field payload{v, at, from, to, kind, slug, pri, ptr}. A mirror failure never fails the v3 write. - Seed (Task 12).
obligations <team> --agent <a> --export-openwrites one bus-v4openper slug the old fold says the agent owes AS ASSIGNEE (row assignee is the agent,@agent,*, or a role the agent holds — rows the agent merely sent are not its obligations; ruling a0927018; RULING f9f5823b 2026-09-05: a broadcast, assignee*, is an obligation of EVERY recipient except its owner, so_old_open_setadds open star rows whose owner is not the agent — needs-me never lists them — matching the fold'sto == all and from != agent; RULING 13a58789 2026-09-05: broadcast closes are PER-RECIPIENT — the row's single status is the OWNER's disposition, never a recipient's close, so a broadcast stays open for every non-owner until THAT agent acks it (acked_byon the row, or the ack doc at_coord/acks/<slug>/<agent_key>.md); an unreadable ack reads as no ack; RULING 55b1056b 2026-09-06: the OWNER's terminal status (router.TERMINAL_STATUSES) ends a broadcast for EVERYONE — it is open for nobody, on the old set and on the seed — while a recipient's ack still closes it for that recipient only;respondon a broadcast writes the responder's ack record itself. RULING 316ef7ab 2026-09-06: a broadcast's status moves ONLY by its owner — a non-owner'srespondrecords the shard, writes its own ack, and closes only its own fold (the first recipient's answer had been flipping the row to done and, under 55b1056b(1), discharging every other recipient). Only the OWNER's terminal transition mirrors its v4closetoall(the v3 record still goes to the owner): the old plane drops a terminal broadcast for every recipient, so the new plane must close it in every recipient's fold too (measured 2026-09-06 05:03Z: a close addressed to the owner alone left every other fold reading only_new). DUAL-RUN RULE:coord-fold closeon a broadcast is half a close — coord-fold stays old-plane-free by design, so pair it withcoord-engine inbox <team> --ack <slug> --agent <you>until cutover, or the old plane reads only_old), idempotent via_coord/bus-v4/seeded/<agent>.md(--forcere-seeds). A re-seed RECONCILES: every slug open in the agent's coord-fold checkpoint that the correct set no longer contains gets a bus-v4close(ptr = the seed marker), so a leaked open is retired on the stream rather than deleted (G28); an unreadable checkpoint makes the whole seed UNKNOWN (rc 3), never a silent partial reconcile. Each row the seed would export is CONFIRMED against the doc its pointer names (one pointed read per row, no enumeration; coord-boss 8a280028, 2026-09-06): the needs-me projection lags the doc until reconcile, so a row closed seconds earlier was re-exported open and out-ordered its own close on v4; a terminal doc skips the row (skipped_terminal_docin the marker), an unreadable doc keeps the projection's answer (over-capture). Refuses on an UNKNOWN old fold — a seed from a partial answer would enshrine the gap as absence. Classified as a WRITE. - Comparator (Task 14).
compare-to-fold <team> --agent <a>: the old open set vs the coord-fold checkpoint (team/<team>/member/<agent>/fold/checkpoint.json) as(slug, pri, ptr)tuples; printsAGREE n=korDIVERGE slugs=[…]; appends one JSON line to_coord/bus-v4/compare/<agent>.jsonl. rc 0/2/3 = agree/diverge/ UNKNOWN. A WRITE (it logs). - Cutover check (Task 14).
cutover-ready <team> --agent <a>exits 0 only when the trailing AGREE run is ≥--min-run(24) over ≥--min-hours(24), the open set both grew and shrank within it, the divergence/ recovery drill is recorded at_coord/bus-v4/drill/<agent>.md(G13), and--ship-check-rc 0carries the rc of the runbook'sscripts/ship_check.py fulcra <HEAD> --git <abs> --fulcra-api <abs>. The window flags exist so the operator can compress the window deliberately, never silently. A read. - The flip (coord_engine.cutover, 2026-09-06).
cutover show <team>/cutover set <team> --serve fold|files --reason … --agent <a>read and write ONE switch document,_coord/bus-v4/cutover.json({"v":1,"serve":"fold"|"files","at","by","reason"}).needs-meandobligationsread it FIRST, before any file-plane work, on every invocation (nothing is cached). Three states: absent → files, today's answer, so the flip cannot happen by accident; unreadable or malformed → UNKNOWN (rc 3) and nothing is consulted — a host that cannot read the switch after the flip must not answer from files and report clean (split-brain; codex-reviewer P0, engine-ship-gate-6445cde8);serve: fold→ the agent's coord-fold checkpoint IS the answer and the task index, role resolution and review listing are never invoked (codex-coder P0, same register; sentinel tests prove it); a checkpoint that is absent, unreadable or corrupt is UNKNOWN (rc 3), never CLEAR — an identity that has not seeded its fold does not thereby owe nothing. Under fold,taskscarries every open,directivesthe non-review ones,reviewsthe review-request rows,blocks/reminders/role_dutiesare consulted-and-subsumed (their opens are in the fold), andforge_feedbackis served from the forge PROJECTION section of the summaries document by pointed reads only (one document read, one ack read per item,changed_slugsempty so nothing re-lists a feedback directory); a projection that is absent, stale, incomplete or malformed is UNKNOWN, never a raw scan (codex-coder P0, engine-ship-gate-c4a8410a; alist_dirsentinel in the tests proves the fold path never enumerates). The checkpoint's own health survives the serving boundary:unread_events > 0, a non-emptyunreadable_pointers, or malformed health fields make both public reads UNKNOWN (rc 3) with the known rows retained as partial data (codex-reviewer P0, same register). Rollback is--serve files, one write, fleet-wide.cutoveris MIXED:showis a read,setis activity. - Forge projection cost (ruling 30be1f8e, 2026-09-05).
build_forge_projectionlists the parent_coord/forge/feedback/ONCE and lists per PR only the PRs that appear there; measured on the live store 125 responsible PRs cost ~77 s of per-PR listings that almost all returned empty, against a sub-second parent listing naming two directories. An EMPTY or FAILED parent listing proves nothing (a listing answers identically for a real empty dir and a bad path) and falls back to the per-PR loop unchanged: the pruning only removes work it has positive evidence for.COORD_FORGE_BUILD_BUDGET(default 300 s, raised from 60 on 2026-09-07) is then a ceiling, not a requirement; the reconciling host carries 180 in its launchd plist. - Activity classification.
obligationsis MIXED:--export-open,--repair-unknownand--seed-checkpointeach write (two of those already did while the verb classified as a read).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

