Skip to content

Latest commit

 

History

History
2895 lines (2544 loc) · 187 KB

architecture.md

File metadata and controls

2895 lines (2544 loc) · 187 KB
title Architecture layers
summary The boundary between Gitseq's semantic-free kernel and replaceable application profiles.
rests_on
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:0581948abafe7fda01c7e4bcafaae5337297c601
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:65e932f9ddd81331c355d7c87def2de9210300ef
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:8b1f8e0ec38eadfc3fbd798a222d3e310426a1be
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:4b69abf701279b7e30b83e0e539eb26fbc8b8779
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:df626b67d31ee72ba4f7af7d29c8ed4246fc04ec
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:c1912b37f7f0668c7512f9281c6513d2043f69f6
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:a51bf9c28f8fc0c4b0669a80d10d3e7ed9f698e0
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:aa1fb7103f0466394a55535fcd34687358e7a08e
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:0d43258e62f3d48b8a226c084d693237cee1ec5b
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:0f2c5ac05d9e834d7e824680eafa805e43a1c04d
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:617a0446bf89ef5ce8ccff6d095052d602d1dfc7
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:2a044c9520a718683b86f1ed72a19d027b7bdc63
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:54826d805556c6dd81ccc460bf4c5ce80abb4e5b
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:2ef0bb48f6842c8f43f9aaacb6bed75584a77e48
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:2556ced7f27f284fe201240aa7bed7bfc021e0b9
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:66e0e12172925f497f0dde1b910e705b157c08e7
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:fa2ae0e961a4b33c44f69c0bb6d602ba273a3097
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:b2c6b2a03e3c03af9a20985a40f85e09f31ee417
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:aea9521daff999b6b5f6a1ec97f85994cdfea4aa
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:4c4f0d4142bfa057005b09e59bc0a3462980842b
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:7d6f6997c01a89e509dec03f68fc6ba4fb4125fe
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:608be185aaba9343eba9175c04bf10a20a04b015
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:6cb46390f7cc0630f8f7518d79c3031c4b226605
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:109d5eb915643120959d224369327a034f6a5d43
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:87165f1520bdf1a58e390a53b939b310fcd12df9
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:a5ba7c376e9417d6c11f5275f47202179381a30e
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:599960fd61ab6d3288f3977f60ea80a0ae0ca5ea
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:14a05c918ecb152f54bf0eea4848339aba18fdb1
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:fc8a6371f65aee6c713e5ddfe4accbf28d7be6bb
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:494ee033096e8120d62db5f33e853b3b99f82386
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:2198b8aaa2da6921f555c380d24385edaabcb787
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:7452b69266324ba978fe1fd371defb3b658dca49
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:cd7ea9e4bc9d97dd95133d999766029d1bd60cf6
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:0a31c287af5b705b6b0991914cafd64d6ab4d39a
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:982bfe9e7df98bde8c6f8797112498fb300baf4a
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:6f85c910b62d17846463092a668e7af6d19b20fb
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:4db0902514c7bc1af75c364851f7da3c40cfa177
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:adafb7b0046989609ff369efcac5acb605aa403a
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:4c2c9d0ef010bb7227472c4b8ada52a33f4723e5
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:1dee44934842b9277a1125af2e9ea6d01f0ec786
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:6f5ca1c3b34c09a4a1a5f26ac366b94c748e3ca9
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:a3c6d28f602ea92883a8c4aa586c5b71f341b5db
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:0438e5f5a6b2167feceb5a0c8646280a4227794c
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:bd891443ff868623f2ad427b4a5becd32359e5d3
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:52966895e59050b9a39308e6069ddb9ae7bd0c2e
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:f51aec8a375e1a1bcc04b9bc6dcbe04f640c397d
git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:76c6ce3f76b2c7c08e5aca3d4e185b1acc1d53e5

Architecture layers

Gitseq is a signed sequencing kernel on ordinary Git storage. It can host an application, but the application's vocabulary is not built into the kernel. The application shipped in this repository is Workroom. Workroom is the first application profile, not the definition of what every Gitseq sequence must mean.

This distinction is the main architectural contract:

The kernel proves who signed opaque bytes, which sequence admitted them, and where they stand. An application interpreter decides what those bytes mean.

flowchart TB
  Git["Ordinary Git repository and object database"]

  Kernel["Gitseq kernel<br/>signed actor keys · opaque events · total order<br/>payload binding · causal references · verification"]

  Stream["Verified ordered event stream<br/>schema + payload + actor key + rests_on"]

  Host["Application host binding<br/>application name · source commit · fold version<br/>read binding · select interpreter · fold"]

  subgraph Apps["Replaceable application layer"]
    W1["Workroom v1<br/>vocabulary · fold · projection<br/>CLI/MCP · agent skill · UI"]
    W2["Future Workroom v2<br/>different fold and projection<br/>different UI possible"]
    Other["Another application, in its own module<br/>different ontology and workflows<br/>imports the public host API"]
  end

  Git --> Kernel
  Kernel --> Stream
  Stream --> Host
  Host --> W1
  Host --> W2
  Host --> Other
Loading

One verified stream can feed the current Workroom interpreter, a future Workroom interpreter, or an application with no commitment concept at all. Sharing the stream does not make their meanings compatible.

Code, documentation, and reviews must preserve that boundary. A new application can reuse the kernel without inheriting actors by name, roles, commitments, artifacts, or the Workroom user interface.

The layers

Seven layers, numbered from storage upward. Each section below says what its layer owns, what it must never do, and which package holds it.

A higher layer may use the guarantees below it; a lower layer must not import meanings from above it.

1. Ordinary Git storage

What it owns: object formats, commits, trees, refs, compare-and-swap, and reachability.

A durable Gitseq sequence is a chain of ordinary commits under refs/seq/<genesis>. Application files, branches, tags, and worktrees remain ordinary Git content and are not placed inside the sequence.

This layer does not know Gitseq event kinds or application state. internal/gitstore is the adapter to it.

2. Kernel

What it owns: turning signed requests into one verifiable order. Its public facts are deliberately narrower than Workroom's.

The kernel owns:

  • sequence creation, append order, compare-and-swap retry, continuation, and verification;
  • actor-key attribution and verification of the actor's signature over the intent;
  • the sequencer admission boundary and the sequencer's signature over each accepted position;
  • binding an opaque schema name and opaque payload tree to the signed intent;
  • carrying the signed rests_on strings without assigning them application semantics, while refusing at admission a submitted reference that claims a position in this log and does not name one; a verified record's envelope trailers must equal its signed references element by element, in order and with duplicates, so a trailer the actor did not sign is refused even when its value is empty;
  • idempotency namespaces, keys, replay, conflicting-retry detection, and the verified read-only exact-replay check used before mutable client preflight, answered either by a fresh scan or from a reader's own verified dedup index at exactly the head that reader verified;
  • bounds on intent fields, causal-reference counts, envelopes, payloads, and attachments, and the exported form of that same accounting for an act that is not signed yet, so the application can apply the kernel's one measurement before it spends a signature rather than a second formula of its own;
  • verification of history, object shape, signatures, ordering, and payload binding;
  • signed, profile-independent verification checkpoints containing only kernel-verified event material, plus authenticated descendant continuation, with an optional opaque selector supplied by the host; and
  • sequencer key rotation, sealing, and verified continuation.

The kernel does not understand:

  • actor names, membership, or retirement;
  • kinds, roles, governed vocabulary, or authority rules;
  • requests, promises, reports, commitments, or work status;
  • ratification or supersession semantics;
  • artifacts, reviews, retirement, or staleness;
  • connector charters; or
  • CLI, MCP, agent, browser, or other UI workflows.

internal/intent defines and verifies the signed opaque intent. internal/kernel sequences and verifies it. Neither package imports internal/workroom.

What the kernel checks about rests_on

Reference resolvability is the one thing the kernel can check about rests_on without an ontology. A canonical event identifier whose workroom half is the log being submitted to asserts that its event half is a position in that sequence, and Git alone settles whether it is. Admission refuses a submission that asserts it falsely. The sequence is append-only, so a dangling reference admitted once is inherited by every fold and every reader afterwards, and no later act can repair it.

A reference that makes no such assertion — another workroom's identifier, a URL, any other opaque string — is carried unchanged, because the kernel has nothing to resolve it against.

The check gates submission and nothing else. Verification, checkpoints and continuation read history exactly as before, so records sequenced with dangling references before the gate existed remain readable and remain part of the verified order.

Two admission hooks

An application may supply an admission hook. The kernel owns when that hook is enforced and what signed envelope and capability material it may inspect. The application owns the policy. The hook cannot inspect application payload bytes, so it cannot silently turn the kernel into an application interpreter.

A second, generic hook runs later in the same path: the application's post-dedup admission callback. The kernel schedules exactly one call to it after idempotency-replay detection has recognized an exact retry — so a replay never re-judges history — and before any commit is written. The call hands the application the decoded intent, the actor key, the payload bytes and attachments uninterpreted, and the exact pre-sequence head the event would extend.

The kernel learns nothing from what the callback reads and schedules nothing else about it. The callback runs inside the compare-and-swap loop, so a log that moved under a submission makes the application reevaluate the world the event would actually join before the retried commit chains onto it. A refusal leaves nothing sequenced.

Checkpoints and streamed reads

The current compact checkpoint schema is gitseq-checkpoint@3. It authenticates kernel identity and event material but carries no application profile. Readers also accept authenticated JSON @1 and compact @2 checkpoints; their required historical profile field is ignored rather than used as an eligibility key.

A full read may transfer verified events to the selected host interpreter as a bounded stream instead of retaining a second depth-sized event slice. Delivery during a cold audit is provisional until the whole kernel chain succeeds: a later invalid event rejects the read, so callback effects cannot become visible application state. A compact checkpoint candidate and its suffix are fully authenticated before replay. internal/app folds either path into a private folder and publishes the folder and projection together only after kernel verification, complete application folding, frontier persistence and the projection gate all succeed. This changes the transfer shape, not signature, ordering, bounds, compare-and-swap or application-interpretation authority.

One verified read per process

What a reader has verified may be reused inside the process that verified it, at exactly the head it verified, and nowhere else. Nothing here persists: the checkpoint still carries event material only, and every process still verifies every actor signature in what it reads.

  • A reader answers retry lookups and exact-replay checks from its own dedup index, keyed by the same target, actor key, namespace and key that Submit consults, and only while it stands at exactly the head the caller names. The index drops payload bytes, so each matched payload is read again by the payload tree its own signature names, through the audit reader that hashes every object against the identifier asked for. A different signed intent under a held key is the same idempotency conflict Submit refuses.
  • A submitter may start from a copy of a reader's verified frontier, dedup index and positions. The copy is a starting point only: every submission still reads the ref, reuses the copy only at exactly the head it was verified at, verifies any descendant delta, re-reads the whole log for anything else, and keeps the compare-and-swap and the post-dedup callback. The checkpoint material stays with the reader, and a seeded submitter collects none of its own until a full read. When a checkpoint falls due on it, it drops the copy and at once makes that full read — from the checkpoint when one verifies — which rebuilds the material and publishes at that position, so a process that only appends keeps the ordinary checkpoint cadence.
  • A reader verifying commits its own process sequenced uses CatchUp: the same verified delta, publishing no checkpoint, because the submitter that appended those commits publishes for them. A process that signs its own acts and reads each back before the next therefore writes one checkpoint per interval, not one from each cache.
  • A consume-only reader authenticates and uses a signed checkpoint like any other, and writes nothing: no checkpoint, even with the signing key, and no repair of the checkpoint ref or the host pointer.

kernel.VerifiedReads counts the complete verified reads a process begins — a cold scan, or one checkpoint candidate with its suffix — so a test can hold a command to the number it makes. It is reporting only.

3. Nexus and live runtime

What it owns: live coordination that dies with the process.

The nexus is a separate, amnesiac sequence. It carries leased presence, activity, and ephemeral signed conversation. Its cursor and frames die with the process. It does not change the durable sequence and must not pretend that live state survived a restart.

Addressed chat

The Workroom-facing service resolves mentions against the effective roster. The nexus receives opaque actor fingerprints, validates exact reply handles, includes the final sorted recipient list in the actor-signed payload, and retains the conversation for every current matching lease.

It enqueues priority delivery only for leases that registered the versioned inbox protocol. Presence alone does not opt a browser or older adapter into an inbox it cannot consume.

Per-session inboxes and acknowledgements are live attention state, not Workroom authority or durable records. Acknowledgement changes no nexus cursor.

Signing stays outside the runtime

host/live implements this layer as a public, application-neutral runtime. An application prepares an optimistic frame draft, signs the canonical bytes outside the runtime, and submits the public key and signature. The runtime never receives an actor private key.

A draft retains no reservation: its generation, scope, conversation, sequence, or previous hash moving before submission makes it stale, so the application prepares again. For a new conversation, the conversation identifier hashes a genesis envelope that binds the exact scope, runtime generation, and runtime signing key before the actor signs that identifier.

Sessions and challenges

Public-key sessions follow the same custody rule. Preparing a session returns a bounded, expiring challenge and publishes no presence. The client signs the challenge bytes with the named actor key; only a valid proof opens the lease. A challenge is consumed by its first opening attempt and cannot be replayed, even after a failed signature.

Actor names, presence values, lease duration, pending challenges, total sessions, and sessions per actor all have exported limits enforced before open and again on renewal.

The separate OpenTrustedSession entry point is only for an in-process custodial adapter which already authenticated the actor or holds its private key. A public or browser transport must never route to that entry point.

Joining live state to durable state

host/live can wait on a caller-supplied durable reader and its own live observation, but it treats the durable value as opaque and retains a DurableFrontier separately from the process-local live cursor. Bounded polling notices ordinary Git progress written by another process without suggesting that a live cursor orders, authenticates, or survives with the durable sequence. The application host, not the live runtime, chooses and interprets the durable frontier.

The resident in internal/service hosts the same runtime alongside the durable application and supplies Workroom message policy at that composition boundary. Co-location is operational convenience, not a claim that live data has kernel durability.

Host posture

The supported host posture is one trusted operator account, not a partial shared-host authentication system. gs serve discloses that posture on every start, and resolves the configured listener host to loopback only.

Before routing a request, it requires the Host to contain an explicit numeric port and either a literal loopback IP or localhost, compared without case and with one optional trailing dot. It never resolves request hostnames, so an attacker cannot win admission by changing a DNS answer to point at loopback. It also checks every mutation's browser provenance, and every response it gives a browser carries one policy set in one place: a Content-Security-Policy that admits only the service's own origin and denies framing, X-Frame-Options, X-Content-Type-Options: nosniff and a no-referrer policy.

Within that boundary, the resident can open several actor keys, and every process running as the account is trusted to ask it to act as any of them. Direct local gs key access and malicious same-account processes remain outside the resident's protection.

The operator's ambient Git environment is trusted on the same footing. GIT_DIR, GIT_WORK_TREE and GIT_COMMON_DIR, which decide which repository Git resolves; GIT_CONFIG, GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM and the rest of the GIT_CONFIG_* family, which decide what configuration it reads; and HOME and XDG_CONFIG_HOME, which locate several of those files — all are outside the threat model. Gitseq trusts the environment of the operator who runs it, and defending a hostile operator-controlled environment is a non-goal.

The reason a defence there would buy little is worth stating exactly, because the sweeping version of it is false. Some of these variables name a program Git will run: core.fsmonitor, core.pager and diff.external are commands, and an include can reach a configuration file outside the repository. Setting one of those, and then reaching a Git invocation that consults it, gets code run as the operator — which is the account the resident's keys already live in, so such an attacker gains nothing they could not reach another way. Others only route or select configuration, and whether they lead to anything depends on a relevant Git invocation existing at all. So the claim is not that anyone who can set any of these variables can already execute code; it is that this boundary is not where gitseq stops an attacker who is already inside the operator's account.

Two different things follow, and the page keeps them apart because they are not the same kind of claim.

Where the code bounds the environment for determinism, it is not making a security claim: a read that ignores the invoking shell answers for the repository it was pointed at, whoever started the process. internal/app states the environment for the Git commands behind /v0/worktrees on that basis, and that is all it is doing.

internal/gitstore's hermeticGitEnvironment is defence in depth, and a control that exists rather than a convenience. It strips GIT_CONFIG and every GIT_CONFIG_* variable from the inherited environment, then pins GIT_CONFIG_NOSYSTEM, GIT_CONFIG_SYSTEM and GIT_CONFIG_GLOBAL at a location that can hold nothing. It is applied on the paths that sign and verify — SignedCommit and SSH commit verification run through runHermetic — so operator configuration cannot redirect gpg.ssh.program and substitute the program that signs or checks a signature. A test in internal/gitstore sets a hostile gpg.ssh.program through both GIT_CONFIG_GLOBAL and the GIT_CONFIG_COUNT family and asserts that signing and verification are unchanged and the planted program is never invoked. Describing this as determinism would erase a control the code actually provides, and would tell the next maintainer that weakening the signing and verification quarantine is free. It is not.

Live credentials

The resident mints each live credential from 256 bits of system randomness, binds it to one repository and an actor fingerprint derived from that actor's public key, and revokes it on departure, expiry or restart. Browser and MCP clients keep it in process memory and never choose it.

Ordinary status, presence, tool results, logs, diagnostics, durable events and URLs expose only a separate display handle, not the credential. These controls protect the live transport boundary; they do not change kernel verification or Workroom fold semantics.

One resident per repository

Because this layer is per-process, one repository must have one resident. Two would leave the durable sequence correct and still split presence and conversation into two rooms whose participants cannot see each other.

The boundary that prevents it is an ownership claim, separate from the address advertisement:

  • Ownership is the ref refs/gitseq/resident/<genesis>, whose blob holds the served address and a fresh random nonce. It is acquired, transferred and released only by a Git ref update carrying the expected old value — the same compare-and-swap the kernel's own append uses, in the same ref store, so it adds no assumption the durable log does not already make. The nonce makes each claim's object ID unique to one acquisition, so a swap that expects a claim can never match a later one. internal/app owns this; the ref never touches the event log.
  • Advertisement is .git/gitseq/resident.json. It tells clients where to connect and confers nothing. Only a process already holding the claim writes it. gs uses it whenever no --server flag is given, so the resident a repository already runs answers by default. A bounded read whose resident refuses or diverges still falls back to the verified local fold, loudly; a durable act refuses instead, because a silent local fold is a whole-log rebuild the author never asked for and cannot see. --server - always acts locally.

Reading the advertisement answers one of three things, not two: nothing is advertised, a record names this workroom at some address, or a record is there and cannot be trusted. Only a genuinely missing file is absence. Unreadable, larger than the 8 KiB bound, not a record, carrying no address, or naming another workroom are all the third answer, and it carries the reason.

internal/app owns that read, and internal/residentclient owns the routing rule built on it (ResolveServerURL): an explicit loopback URL, - for the local fold, or the advertisement by default, with the third answer turned into a refusal that names --server - as the way out, and RefusedDial wording a resident that is not listening. cmd/gs and cmd/gitseq-github both call that one rule before they read a signing key or build a request, so a durable gs act and a connector observation route the same way and refuse in the same words; the connector never falls back to a local append on its own. cmd/gitseq-mcp refuses the durable call for the same reason and before the same work, while leaving the attachment and the session intact, and still lets a read answer from the verified local fold. It judges the record on every durable act rather than once per session, and again before any fall back to the local fold, so a remembered address never stands in for a record that has since been rewritten — see gs serve.

Ownership authorizes serving; neither a liveness proof nor binding a listener does. A resident first probes any incumbent claim so a service already holding the requested port produces a precise ownership refusal instead of an opaque bind error. It then binds, so a new claim can carry the real address, and may spend the preflight's dead-claim proof only on one compare-and-swap against the exact object it observed. If that position moved, it discards the proof, re-reads and probes normally. It must hold the post-bind claim before handing the listener to the HTTP server, so a claim that appears or moves after preflight is still protected.

The liveness probe is deliberately asymmetric

Liveness is the one part of this that is not a compare-and-swap. A claim is trusted as held unless the address it names refuses a connection outright; a timeout, a silent port, an unparseable answer, or an answer from another workroom all leave the claim standing and refuse the start.

internal/residentclient owns that probe, including the duty to refuse to dial anything but loopback, because a claim is an ordinary repository file and its address is untrusted input. The whole mechanism is coordination between cooperating residents, not a defence against a hostile local process, which already reaches the repository directly.

4. Application host binding

What it owns: selecting one application interpreter for the repository before any application record is folded.

This vocabulary sits above the kernel and below every application profile, because a host must read it without already knowing whether the repository contains Workroom, chess, or another application.

Every host recognizes the fixed binding schema family gitseq/app-binding@0; application profiles cannot rename or extend it.

What a binding records

An effective binding records:

  • the application name;
  • the application's source commit as a format-qualified object ID;
  • the source URL as provenance, never as authority; and
  • the fold-profile version or hash that gives the application's records their exact meaning.

Reading or recording a binding never fetches, builds, or runs application code. The source URL remains inert provenance until a person deliberately uses it outside Gitseq.

Replacing a binding

A replacement additionally records the exact genesis and outgoing fold version. The signed intent already targets that genesis; carrying it in the canonical replacement payload makes the transition legible on its own. The outgoing version is a compare-and-set condition, not commentary: if another replacement has moved the binding before this one can append, admission refuses it instead of silently overwriting the newer choice.

A fold upgrade is therefore a host-binding replacement, not an application statement kind. Its source commit and fold version name the interpreter code, and its position in the sequence is the transition. The initializing key is the binding authority; the host accepts the replacement only when the named application and fold are held by the build that opens the repository. The source URL remains inert provenance and cannot install code.

Replacing a binding authorizes the incoming fold to interpret every existing record; it does not prove that the fold preserves the outgoing fold's judgments. Before publishing a fold-version bump that anyone will migrate across, the application must therefore publish either evidence that both folds produce the same judgments over the existing log, or an enumeration of every difference and why it is acceptable. A checked-in legacy projection fixture, such as internal/workroom/testdata/legacy_projection.golden.json, is one repeatable way to supply equivalence evidence. The replacement operation does not manufacture this proof and must not be presented as doing so.

Who may bind

The binding is effective only in the repository's bootstrap position, or as a later replacement signed by the key that initialized the repository. A record that merely resembles a binding anywhere else has no force.

This authority is a host fact below application roles: retiring an operator inside Workroom does not revoke the initializing key's binding authority, because another application has no Workroom roster to consult.

The bootstrap binding and a later replacement are one rule read once: the binding in force is the last binding record signed by the initializing key, so the newest effective binding wins. A binding-shaped record that is unauthorized, unparseable, or malformed has no force and leaves the previous answer standing. Nobody able to append can therefore make a repository unreadable by recording one, and a host never refuses to interpret a repository because of a record it should have ignored.

The order in which a repository opens

Opening a repository has one fixed order: read the binding, select the named interpreter, then fold. A host must never fold with a guessed interpreter and repair the projection after discovering a mismatch.

The selection is made when the repository is opened and does not change while it stays open: a replacement binding recorded afterwards is read by the next open, so no operation changes meaning because of activity that followed the open. A repository whose log cannot be read has no binding to read and does not open.

If the selected interpreter or fold version is unavailable, kernel verification still stands, but application state is unavailable and the host must report the repository as verifiable but uninterpretable. That report is a claim about a verified repository, so it comes after kernel verification, never before it: an unverifiable chain is reported as an unverifiable chain, and no history an appender controls can present itself as a missing interpreter instead.

A host that verifies first reads the binding out of the exact frontier it verified, and the binding read is told which revision to answer for rather than consulting the ref itself. Asking the ref a second time would leave a gap between the two questions that a concurrent appender can move in, and the opened workspace would come back bound by a frontier nobody checked. A host with no verified frontier yet — one whose audit runs later, when the fold first reads the log — names the ref, and its selection is still fixed at open.

Repositories created before host bindings

They have a permanent compatibility rule: no binding means Workroom at the version shipped by the reader, and the binding authority is the bootstrap operator key in the opening records. This avoids a flag-day backfill while making the legacy choice explicit.

Which packages hold this layer

internal/apphost holds the vocabulary and the repository state around it: what a binding record is, who may record one, which one is in force, and what a checkout must remember to reopen its own log. It imports no application profile, which is what lets a program that has never heard of Workroom read a binding a Workroom build wrote.

Its read is a bounded pre-audit read rather than a verification. It authenticates the initializing actor's signature over an intent that names the genesis and the tree the commit carries, and leaves the sequencer chain to the audit that runs before any record is folded.

internal/app selects this build's interpreter from that vocabulary: it records the binding at init for an application an absent binding does not already name, and reads the binding in force as the workspace opens, before it can fold or append anything.

The public host boundary keeps actor custody and sequencer custody separate. For an actor-held key, Prepare returns the canonical encoded intent without writing or reserving anything. ActorSigningBytes asks internal/intent for the fresh domain-separated bytes the actor signs outside the host, so the public boundary never names or reconstructs the kernel's domain tag. internal/intent.SigningBytes canonical-decodes the intent before returning those bytes, and both local Sign and admission Verify use that one construction. AppendSigned receives only the prepared act, public key and signature. Before submission it verifies the signature and requires the signed sequence, application idempotency namespace, non-host schema and payload tree to match this workspace. A malformed or tampered public submission therefore reaches no Git write. Append remains the local-custody convenience over the same kernel protocol.

Sequencer custody is explicit when an already-fetched clone becomes a writer. OpenAttached takes a public attachment description containing the existing genesis and a local OpenSSH sequencer-key path. It derives the object format from the clone, verifies the existing sequence before interpreting its binding, and creates neither a genesis nor repository configuration. The kernel still checks that key against the verified current sequencer at append. This makes opening an attached writer a different operation from Init, without exposing internal/apphost.Config or changing sequencing semantics.

The detailed product design is recorded in notes/2026-08-13-second-application.md. Its merged historical filing was artifact git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:d5d30c17385f242466e3804a85e1d050a4e30d33; that event is cited here as design history, not as this page's causal basis.

Sequence transport and verified import

cmd/gs fetches remote sequences into refs/remotes/<remote>/seq/*, separate from authoritative refs/seq/*. It removes the two historical direct fetch mappings while preserving other configuration. Tracking refs may follow a remote rewind: they are untrusted observations. Attachment fetches the exact selected genesis, so a deleted remote sequence refuses even if an older tracking value remains locally. Git also updates tracking refs after a push, so their separation protects an append admitted during a successful publication. Non-forcing publication alone does not provide that protection when the fetch destination names the authoritative ref.

The kernel's VerifyAt audits an immutable fetched candidate without moving a ref or assigning application meaning. The application boundary imports only a fully verified candidate that continues both the authoritative ref observed before transport and the saved verified frontier. It compares the saved frontier under the configuration lock, then uses Git compare-and-swap against the original authoritative ref. Rollback, sibling, verification and validation refusals, or a lost comparison, change neither that ref nor saved memory. First attachment remains read-only and creates no signing custody. Exclusive configuration creation precedes the initial CAS: a losing first import can leave that read-only identity with no saved frontier. It never deletes the configuration on failure or overwrites a concurrent creator’s identity; retry uses the actual local ref and stored configuration.

The authoritative ref and configuration are separate stores. If the ref CAS succeeds but checkpoint persistence fails, the operation reports failure with the verified ref installed and the previous checkpoint retained. It never rewinds a ref to compensate: a newer append may already follow the import. After restoring metadata write access, a retry verifies and remembers the installed head; if the local sequence advanced further, reopening and auditing that actual head is safe, while an older remote candidate still refuses. This contract does not promise crash atomicity across the two stores. Kernel signature and history rules, configuration custody and Workroom authority are unchanged; transport/import ordering at the CLI and application boundary changes.

Repository configuration custody

The state a checkout remembers — the repository-private configuration holding the genesis, object format, payload ceiling, sequencer key path, local actor custody, and the last verified frontier — has its own custody contract.

Creating it is exclusive. The content is written and closed at a privately named staging file in the same directory, and only the completed file is then hard-linked to the destination. Of two concurrent creators exactly one wins and the other is refused, so an attach that lost the creation race fails instead of silently answering for a genesis it never stored. Because the link publishes a file that is already whole, a concurrent reader sees the destination as either absent or complete while the system stays up. A crash keeps no such promise: nothing syncs the staging file or its directory before the link, so a power loss can persist the directory entry ahead of the data.

Replacing it is a rename. A temporary file is written and renamed over the destination. That is how an update publishes its result, inside the lock, and it is not a path any caller reaches on its own: initialization creates the first record exclusively, and every later change is an update.

Updating it takes a lock. An update holds an exclusive advisory lock across one whole load-modify-store, reloading the file inside the lock and merging only what the caller declares, so a process holding stale memory cannot erase custody another process recorded meanwhile. Rename-over alone prevents torn reads, not lost updates. The lock lives in a dedicated .config.lock beside the protected file and is never renamed, so a crash cannot leave a lock dangling: the kernel drops it when the process dies. Where no advisory locking exists, updates refuse loudly rather than lose updates silently, while creating a first configuration stays available.

An update never creates the record, and never changes a different one. Where nothing is stored, the update refuses rather than write the caller's in-memory snapshot, which would resurrect whatever custody that snapshot still remembers after a deletion. And before the caller's change runs, every immutable field of the stored file — everything but the actor map and the verified frontier — is compared against the configuration the caller opened. A divergence in any one of them refuses the whole update without changing a stored byte: a workspace holding a different identity is not stale, it opened a different configuration.

Reading it takes the shared side of the same lock. Rename atomicity toward a reader that already opened the old file is not promised on every platform this code runs on, so exclusion, not rename, is what makes a read complete-or-refused everywhere. Shared readers exclude exclusive updaters and not each other. A reader that cannot take the shared lock refuses rather than read uncoordinated.

An update that changes nothing returns what the file holds. The caller declares whether it changed anything; where it did not, no file is rewritten and the configuration returned is a copy taken before the caller's change ran. Anything the caller wrote into its argument and then abandoned is discarded rather than adopted back into memory as if it had been stored.

The lock is one named, application-neutral primitive. Its acquisition is exported and takes a bare lock-file name in the metadata directory. A surface above with its own read-modify-write to serialize — gs publish and its outboxes, or the complete mutating gs merge transaction — takes its own name through the same code rather than growing a second answer to the same crash-safety question. Each name is a separate lock, so a caller holding one may still update its configuration inside it.

The two paths do not accept the same filesystems. Creation requires hard links within the metadata directory — a refused link is reported as the creation's failure, with no rename fallback — so an attach can be refused on a filesystem where an initialization succeeds.

Both ends fail closed. Where exclusive creation, either side of the lock, or the rename is refused, the caller reports the failure and does not proceed. A missing or partially visible file never validates, so a reader refuses to open rather than acting on a configuration nobody stored. On a platform with no lock implementation of its own, both sides of the lock refuse, so no coordinated path runs unlocked there.

In memory, the configuration is copied out and locked inside. A configuration leaves an open workspace only as a copy sharing no mutable state with it. A holder therefore cannot alter the workspace's actor custody or verified frontier through the value it was handed. The live configuration is a private field of the workspace, so the compiler makes that copy the only read path out of the owning package.

Inside the workspace, one in-memory configuration lock serializes every read and write of those two mutable fields, the actor map and the verified frontier. A copy is therefore a consistent observation, and no reader sees either field mid-update.

That lock guards memory only. Persisting a change happens inside the update's load-modify-store under the on-disk advisory lock, with the in-memory lock released across it. Once the store completes, the freshly stored custody fields are adopted back into memory under the in-memory lock. The in-memory lock is distinct from the on-disk advisory lock that serializes separate processes.

The verified frontier is a rollback witness, and refuses only a rollback. Every verification is judged against the witness the stored file holds at that moment, inside the same update transaction, never against the verifying workspace's own memory. A verification that continues the witnessed head advances it. A verification shorter than the witness is judged on the sequence ref as it stands at that moment: where the ref is the witnessed head or continues it, and the shorter verification is an ancestor of the witnessed head at exactly the depth separating them, the read merely finished after another process appended, so it is admitted and the witness is left where that process put it. Where either test fails — the ref itself moved back, or the shorter verification stands on a history the witnessed head never carried, or at a distance its claimed depth does not bear out — it is refused as a rollback, as is a verification whose head does not descend from the witnessed one, and the refusal names the test that failed. The caller of an admitted stale read receives the world it actually verified, which the fold and the resident re-judge on the next append; the marker itself never moves backwards. The accepted limit is that the ref is read once, when the read finishes: a rollback that was restored before that moment is indistinguishable from an ordinary advance, which is no weaker than the witness itself, since the configuration file recording it sits beside the ref under the same local authority.

Attachment keeps the strict rule with no such admission. What separates the two paths is not the age of the read — a fetched candidate can be overtaken while it is verified, exactly as a long local read can — but what the transaction then does with it. Attachment imports a ref: it ends in a compare-and-swap against the head the caller observed before fetching. A candidate shorter than a witness the sequence ref still continues could reach that swap only where the ref had been rolled back to exactly that observed head inside the window, which is the rollback the strict rule refuses before the ref moves. A read updates no ref, so admitting its stale verification changes nothing beyond which verified world its own caller is handed.

Admission is not such a read and never consults the witness. Its private reader leaves the witness where it stands, and when admission judges the session snapshot's fold instead, it uses that fold only at the exact head it judges and never takes the snapshot's refusal as its own. A rewound or sibling world that the witness refuses to a reader is still judged, by the private reader, because the event extends that world whatever a reader would say about the journey there.

Host identity

Identity sits in this layer for the same reason the binding does. An application must not have to invent it, and a host must be able to read it without already holding an application profile, so the vocabulary is fixed here and inherited rather than redefined by each application.

The kernel already answers the only identity question it can answer without meaning: which key signed this record. A key with nothing more than that is a first-class actor, and a repository that never says anything else about it is complete. Everything above that is an upgrade, never a requirement.

The upgrade is an anchor: a record saying that one signing key belongs to a persistent identity, for this repository, within a scope, until an expiry. Three fixed schema families carry it — gitseq/identity-witness@0, gitseq/identity-anchor@0, and gitseq/identity-revoke@0 — and application profiles cannot rename or extend them.

Two axes, reported separately. An anchor is not simply strong or weak, and collapsing the two into one number hides which assumption a reader is making. Vouching says who stands behind the endorsement. Verification says what a reader must trust to check it: a signature carried in the log verifies offline forever, while a claim needing a third party to answer again verifies only while that third party cooperates.

Two vouching rungs are implemented. Witnessed means a deployment's key says a provider said so. Self-signed means the identity's own Nostr key signed the anchor, so nobody beyond that identity has to be trusted for the claim. Both are reachable states produced by the resolver, and self-signed is the stronger value when a delegation reduces the chain to its weakest rung. A published forge signing key remains deferred because its verification would need a live lookup.

Nostr anchors. A Nostr anchor carries a complete NIP-01 signed event, in the shape returned by the standard NIP-07 signEvent browser call. Its content is one deterministic, domain-separated delegation string binding the repository, Gitseq subject key, application-owned scope and expiry. The event uses the fixed ephemeral kind 20000 and an empty tag array, so neither field can silently widen the grant; its created_at participates in the NIP-01 event id but grants no authority and does not govern Gitseq time. The proof is not intended for relay publication. The subject's Ed25519 key also signs the containing Gitseq record, so the persistent root and the session key both accept the binding. The host identity interpreter recomputes the NIP-01 event id and verifies its BIP-340 signature; the kernel continues to verify only its own Ed25519 actor and order and never imports the curve or Nostr vocabulary.

Withdrawal has two paths. The session key that accepted a Nostr anchor may withdraw it through the ordinary host act. The persistent Nostr root may also use the same NIP-07 event envelope to sign a repository-bound withdrawal and let any Gitseq actor submit it. That second path matters when the session key was lost or compromised; the resolver admits it only when the withdrawal proof names the same root as the anchor. A root withdrawal retires the signed NIP-01 grant event id, not merely one Gitseq record that carried it: every earlier or later replay of that exact proof is ineffective from the withdrawal's log position onward. A genuinely fresh root-signed event has a fresh id and can grant again.

Vouching is never claimed in a payload, only derived from signatures the host verifies, so no record can promote itself. A witness declaration is in force only when the key that initialized the repository signed it — the same authority the binding answers to, and for the same reason, since another application has no roster to consult. The last authorized declaration wins, so rotating the witness key is one more record, and it does not reach back: anchors the previous key signed keep the force they had where they stand. A witness is declared for named identity schemes and cannot mint an identity outside them, so adding a provider is a visible act rather than a silent widening.

Delegation inherits, reduced. An endorsement from any other anchored key is a delegation — a new device, or an agent credential. It names no identity and inherits the endorser's, reduced to the weaker value on each axis, because nobody can hand on more than they hold. It cannot outlive the anchor it rests on, and withdrawing that anchor withdraws what it minted, or a revocation would leave standing the keys it was called to stop.

Resolution is the authority, and nothing here gates appending. An identity record that is unauthorized, unparseable, malformed, naming another repository, or claiming an identity its signer cannot hand on is recorded exactly as signed and resolves to nothing, leaving the previous answer standing. So no appender can make a repository's identities unreadable by writing a record, and no admission check has to be trusted to keep one out.

Time comes from the log, not the reader. Anchor, delegation and withdrawal boundaries are judged against verified log position, so records sharing one signed second still follow their immutable order. The public identity boundary resolves an exact record id and fails closed when that id is unknown or changed; it offers no timestamp-only lookup. NotAfter expiry alone is judged against the sequencer's signed timestamp on the record being folded, never against the reader's clock, so two clones resolving one log reach the same answers.

Provider checks stay outside the fold. Verifying a login with the provider that issued it runs outside the fold, and only its result is signed into the log. Replaying a log makes no network request, and a clone with no access to the provider reads exactly the same identities.

That check holds the person's bearer token. The rule that keeps it out of a log is that no byte of provider- or transport-controlled text reaches an error from it. A refusal is reported as the numeric status with this program's own phrase for it. A transport failure or an unreadable answer is reported in fixed words of the package's own. Redaction is not enough, because it removes only the spelling it goes looking for, and the party echoing the credential chooses the spelling.

This is the mechanism, not a login system. It authenticates nobody and authorizes nothing: it says who a key belongs to and leaves what that is worth to the application's fold. The public display helper keeps anchored versus unanchored state and both trust axes visible; applications still decide what that presentation authorizes, if anything. Custody of a witness private key belongs to the deployment under the supported single-operator host posture, in which every process inside the trusted boundary can use every key that deployment holds, this one included. Authenticated shared-host support remains deferred.

5. Application profile and interpreter

What it owns: giving opaque kernel events meaning.

An application profile owns its schema family, payload decoding, governed vocabulary, admission policy, deterministic fold, authority rules, and application decisions. Its interpreter consumes the verified ordered records and produces application state.

An event whose schema or bound interpreter a reader does not hold remains kernel-verifiable: its keys, signatures, position, payload binding, and causal strings can still be checked. It is application-uninterpretable: the reader cannot truthfully say what force it has. Consumers must surface that gap and must not invent fallback meaning from field names, prose, an old fold, or UI expectations.

Inventory lives in its own module

The JSONata inventory experiment has moved to github.com/generalbusiness-ai/gitseq-inventory. Its application sources, record dialect, SQLite adapters, runtime identity and replay evidence belong there. It uses the independently released github.com/generalbusiness-ai/tailapps/jsonataddl module; Gitseq does not embed a JSONata compiler, evaluator, application or corpus copy for it.

The former spike/jsonataddl, spike/cmd/jsonata-inventory and spike/cmd/jsonata-inventory-ui packages are removed, together with Gitseq's unused github.com/jsonata-go/jsonata dependency. This changes the available layer-5 experimental interpreter and its layer-7 command surface. It does not change the kernel, public host APIs, Workroom fold or SQLite query sandbox. Existing records remain kernel-verifiable; their inventory meaning requires the external application with a matching binding and runtime identity.

The delivered external application is still a closed demonstration fixture. Its input admission happens before evaluation or storage; it does not grant production authority to arbitrary JSONata programs. The accepted external corpus and mutation evidence proves the shared core is used: report git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:7c5b57aecd5856a6978d3c350578940d0df57a67, ratified by 3e1cee85879ce216227c0939bfe560f181ffa085, records the delivered Inventory head 12c1687b55a04537ffe063ff50aa3238c9db3684. Gitseq's internal/boundary tests separately check the absence of the removed source trees, packages and module dependency, including test imports, while requiring the unrelated spike/querysandbox package to remain.

One adopted migration remains outstanding: the crash-recovery sweep in spike/jsonataddl/RECOVERY.md and recovery_test.go has not yet moved to Inventory. Both remain in Gitseq history at 3f4c4969ad3afea608be521cf9b6e2422223c04e; their removal here does not retire the obligation to preserve and adapt that evidence. Child request git:sha1:5d2622748872b7e2dec3fe5c59e4be73a35e0bc8#git:sha1:2ed2193734096d89b2a9472c71cfba58935a9f0c tracks the native migration under the adopted design's section 2.11. The old sweep models process death with completed writes preserved in order; it does not establish power-loss durability or current shared-core crash recovery.

Workroom, the current application

internal/workroom is the Workroom profile and interpreter.

Schemas and fold. Workroom owns the workroom/* schemas and governed kind vocabulary, its deterministic fold, and its fold-profile version.

A prospective record may be judged without joining the log. Preview folds a record the log does not hold against a folded state and returns the decision that record would have been given, applying none of its consequences and leaving the projection exactly as it was. Decision reads back the decision a fold already gave one event, so a caller judging a whole chain builds a fold of its own, appends the chain's prospective records to that, and reads each answer: the published fold, which backs every reader's projection, is never appended to by anything but the sequencer. Either way it is the same decision path an append takes — there is no second, friendlier copy of the rules for a write boundary to consult — and the fold at sequencing remains the authority over the world the act actually joins.

Actors. It owns the actor roster, names, membership, roles, and authority.

Commitments: who is waiting on whom. An explicit report closes when its requester ratifies it. A promisor's exact-head artifact acts as the implementation report, and its sealed approved merge closes the commitment.

A report answers exactly one lifecycle claim: the promise that took the work, or — when no promise of the reporter's stands on it — the request itself. What it answers is not the same as what it may cite: a report on a promise may also rest on that promise's governing request as provenance, which is what gs review writes, and any other request is refused.

The direct shape is admitted only from the request's addressee, and refused while that actor holds a live promise on the same request, so one commitment keeps one closure. It projects as claim and complete, with the reporter as performer, no promise, and the requester waiting.

Which claim a report answered is settled when it is folded and read from there afterwards, so a later withdrawal or a later promise cannot move a completion between commitments. Widening the basis reinterprets records already in the log, so it advances the fold profile to workroom-fold@8.

Unclaimed reassignment is a signed request-local compare and swap. The guarded retirement schema names the exact old request and explicitly expects no admitted direct promise or completion. It is effective only while that request is live and fresh. The guarded replacement schema names both the old request and the one effective guarded retirement it follows; it refuses when a promise or completion appeared between the acts. Unrelated records do not matter. The fold reads its admitted dependency and completion facts rather than a projected status word, because a retired request can project as withdrawn while a late direct completion remains in its history.

Both schemas lower to the ordinary supersession and request shapes only after their guards pass, so retirement, staleness, commitment, inspect, and status projections keep one implementation. A fold that does not know the schemas leaves them ineffective instead of treating them as unguarded acts. This semantic change advances the profile to workroom-fold@13; a cache written under @12 is rejected and the same verified history is replayed.

Every projected statement carries the lifecycle it was decided under — the definition bound at that record's own position, not whichever definition of its kind stands now. A reader classifying a historical record by the current vocabulary would disagree with the fold about what that record is, so a redefined kind would silently change the meaning of claims already made. The one place the current vocabulary is right is the statement not yet appended, which has no position and will be decided under the definition standing when it lands.

Carrying the lifecycle changes the exact projection bytes, which is what a projection cache is keyed on, so it advances the profile again to workroom-fold@9: a cache written under @8 is rejected and the history replayed, rather than answered from the old world.

Ratification and supersession. The projection names the ratification in force for a statement, not only that one exists. A reader cannot recover that rule from what the projection hands out: projected acts carry no retirement, so neither the first nor the last effective ratification of a target is reliably the surviving one. A reader that picked either would be rebuilding this layer's retirement rule for itself. The answer is stated here and read everywhere else.

Artifacts and staleness. Workroom owns path-at-commit artifact statements, retirement, succession, reviews, and staleness. Ordinary staleness crosses governed reasoning edges, while the narrower describes_superseded_world fact crosses direct retired-artifact edges and artifact-to-artifact provenance only.

For a stale statement or artifact, the projection also carries a four-hop stale_because explanation: the nearest retired basis reached through the same edges the authoritative staleness pass actually used, with artifact path where applicable and an explicit exhaustion flag. Fewest hops wins, then the original citation order. General provenance remains the top-level side table; the row carries one answer for diagnosis, not a second copy of that graph.

Staleness stops at a refused record: an ineffective basis carries no authority and no staleness, so a retirement underneath it reaches nothing above it. The projection discloses the citation instead of propagating through it. An effective statement or artifact that rests directly on a refused record carries ineffective_bases naming those citations, and the dead-basis classification the filing surfaces and admission share reports such a citation as ineffective, advisory only. The disclosure is direct: it does not walk further, and it grants nothing.

A retirement is read for what its own act rested on. A supersession resting on an artifact covering the same path is succession, and carries no staleness across reasoning edges. One naming no covering successor is condemnation, and propagates as before. Artifact-to-artifact provenance carries the flare either way, so the pages describing an implementation still move when it does.

Review and merge. Workroom owns guarded review and merge semantics, including the merge receipt. That receipt lets the implementer of an approved head retire another actor's predecessors only on the path lineages of the artifacts that approval itself cites, each standing at the approved head and owned by the implementer. The bound exists because the fold is pure over records and can verify no merge head, diff, or tree.

Merge receipts record ordinary reasoning staleness. An approval or artifact that already described a superseded world when the verdict was signed must be re-anchored before merge; one the world moved under afterwards is recorded instead. The explicitly ratified review approval remains a pre-merge requirement, and the same sealed receipt closes the implementation commitment whose reporting artifact it merges.

The cmd/gs composition surface also owns merge authorization. An --authorization names an ordinary ratified Workroom report that closes an authorization request and binds the exact candidate, ratified approval, original implementation request, and measured target head. The CLI identifies the exact implementation and authorization commitments, checks those facts and bindings twice before Git moves, and accepts a newer target only under an explicit disjoint-paths remeasurement whose candidate and target path sets do not intersect.

Who may sign, and whether anything may be signed at all, follows the request. A workroom/state@3 request that is not held needs no authorization: the implementer merges on the ratified exact approval, --authorization is refused, and the receipt carries no authorization fields. A held request is released only by its exact hold owner, whose ratified release report the receipt seals; that release must also state target_repo and target_ref matching both the request's resolved destination and the checkout's measured one. A legacy request, filed before state@3 and unable to carry a hold, keeps the phase-one reading: --authorization is optional, judged by the signer list of original implementation requester, live actor named exactly planner, or live actor carrying ratifier, with the two destination fields optional and checked when present; omission warns.

The same two destination fields are re-resolved when an authorization or release report is filed. gs state and the MCP state tool resolve the report's target_ref in the workroom repository and refuse a target_pre_head the ref no longer holds, unless the report states remeasure=disjoint-paths, where the measured head need only be an ancestor. The merge re-resolves the same ref immediately before it moves HEAD, so a force-push between the measurement and the signature is refused where it happened rather than discovered later. The filing-time reading rides as the act's new-submission precondition, so an exact idempotent retry of an already accepted report replays that event without being measured against a ref that has moved since, while a different act under the same key and a report under a fresh key are both judged. The resident's own /v0/act endpoint, which the browser and other HTTP callers write through, applies the same precondition to the act it signs: the precondition cannot travel in JSON, so every write surface wires it on rather than inheriting it.

The Git receipt seals both the authorization report and its exact sequencer-admitted RatifiedBy event. Embedding that unpredictable event ID in the later Git commit is the temporal witness that the report had force before Git moved. Recovery requires the pair, revalidates the commitments, signer, bindings and target measurement against the sealed pre-head, and appends no durable suffix if the current ratification differs. A receipt with neither field is legacy; one with authorization but no witness fails closed. The durable receipt preserves the same pair, so later ratification cannot rewrite the order in which a merge occurred. This changes no kernel guarantee, Workroom vocabulary, fold rule, projection, or cache profile.

The delivered structured hold is landing=held, with the owner and exact release described below. It is not inferred from prose. The current merge compatibility window records an unreleased hold as a warning; unheld state@3 requests and legacy requests keep their distinct authorization rules.

For an added or modified file, and a rename destination, the merge adapter publishes the successor at the exact changed-file path and selects only live predecessors at that same exact string. A wider artifact covering the landed destination stays live and is sealed in the receipt: it is a separate path lineage, not a predecessor a narrower successor may retire. Removing a rename source or deleted file retires its exact-file artifact with no successor there and changes its covering directories, so in-target directory pointers may be retired and the widest directory successor published.

The receipt also accounts for every other live artifact covered by the first-parent diff without granting authority over it: it seals a wider pointer already current in the target world as carried, or records an outside-world candidate as protected by an unsettled durable commitment or abandoned. A carried pointer has no cleanup duty. Accepting and rendering this class changes the deterministic projection for a fixed log, so it advances the profile from workroom-fold@17 to workroom-fold@18; a cache written under @17 is rejected and history is replayed. The Git and durable receipts also seal the canonical exact old/new path set from the first-parent diff, so the fold can verify coverage without interpreting a Git tree or treating every artifact below a broad successor as changed. The fold verifies the testimony from log facts at the receipt's position and fixes the successor's succession warning there; receipts without the two prospective fields retain the historical moving, current-fold calculation.

Receipt protection is judged on the incoming frontier, before the receipt can settle its own protecting promise. Layer 5 validates the existing exact independent approval and retirement plan, then captures the shared unsettled commitment set once before appending the receipt. Left-live validation consumes that set; it does not run a second interpreter or temporarily remove admitted state. A promise already settled or retired at that frontier cannot protect a claim, and a newer commitment cannot repair historical testimony.

Layer 6 retains the separate current cleanup calculation: a historically verified sibling stops suppressing debt immediately when its named promise settles, including settlement by this receipt. The signed receipt and its retirement authority remain unchanged. This correction changes accounting for existing logs and advances the profile to workroom-fold@20; application caches from @19 are rejected and verified history is replayed. Kernel checkpoints remain profile-independent. Cleanup remains an explicit act by the old artifact's author or a ratifier.

The receipt's cross-author retirement authority stays cut down to the reviewed paths, and the missing-classification accounting no longer reads that cut map as the whole plan. A merge that deletes a file publishes no successor at the deleted path, so the cut can never reach the deleted predecessor even though the receipt maps it to the empty successor in the plan it signs. That explicit empty JSON string, read once from the signed value with its type intact and never normalised or converted, is the deletion shape; a plan entry naming any other string claims a surviving destination and stays visible when the review did not cover it, and a null names no successor and stays visible too; a plan carrying a number, boolean, array or object value is not a plan the fold can read, so that receipt is admitted with no plan, retires nothing and publishes no accounting at all. An explicit deletion entry is reported as accounted for only when the log also records that artifact's retirement by an actor entitled to record it in their own right — the artifact's author, or an actor holding ratifier — and that retirement still stands. A plan entry with no such retirement, a refused one, and an entry naming anything that is not a live covered artifact all stay visible as before, as does a covered artifact the plan never named. The receipt's sealed unaccounted tally is not rewritten; the published cleanup count subtracts only these accounted deletions. No new retirement authority is granted, and cleanup remains an explicit act. This projection change advances the profile to workroom-fold@23; a cache written under @22 is rejected and verified history is replayed.

Before Git moves, the CLI also constructs every signed succession request and applies the kernel's exact genesis-ceiling measure plus the resident JSON transport limit when that surface is selected. Thus the application cannot land a merge whose required durable receipt or later succession act is too large to admit. This projection change advances the profile to workroom-fold@11.

The receipt freshness checkpoint. A sealed prospective receipt is a checkpoint on the single edge from that receipt to a successor the same merge published. Ordinary staleness causes already active at or before the receipt's own position were settled by the merge and do not make that successor stale at birth. A cause arising after the receipt still propagates, direct retirement of the receipt still flares the successor, and the receipt itself stays historically stale: only the successor begins a new current implementation epoch.

The exception is narrow and fail-closed. It needs an authorized retirement plan carrying both merge_left_live and a canonical merge_changed_paths, cited directly by an artifact its own author signed, standing at the receipt's exact merge head, at a path the receipt declared it would publish. A malformed half-pair, a historical receipt without the pair, and a record that merely cites a receipt gain nothing. Whether individual left-live testimony verifies is not read: that testimony is accounting about other actors' candidates and grants no freshness.

Causes are weighed one at a time and dated, because comparing staleness now against staleness as of the receipt cannot separate an old cause from a new one while both are live, and a cause the fold cannot date fails closed. describes_superseded_world is unchanged in every branch.

Ownership is this layer: the rule lives in the fold's staleness computation and projection, not in the kernel and not in gs, which continues only to validate and construct receipts and successors. This projection change advances the profile to workroom-fold@12, so a cache written under @11 is rejected and the history replayed.

The admitted-time authority rule. A ratification is decided by the satisfier on the target kind's definition as that definition stood when the target statement was admitted, never by whichever definition of the kind governs now. The fold has always decided this way: the definition is bound to the record at admission and read back from there. It is the rule lifecycle already follows, for the same reason — a kind redefined later must not change what earlier records mean, or what may be done to them.

What changes here is that the fold now publishes that captured satisfier per statement instead of keeping it to itself. It has to. The value is not recoverable from what a reader is given: the captured definition is not in the projection, and reconstructing it would mean replaying every kind definition and its ratifications in reading order — this layer's authority rule, rebuilt outside this layer. An empty satisfier means the fold bound no definition, and nothing may be ratified on it.

This projection change advances the profile to workroom-fold@14, so a cache written under @13 is rejected and the history replayed. Without that gate a cache predating the field would answer every reader "no satisfier", and every ratification would be silently withheld from actors entitled to make it.

Truthful artifact completion. An explicit report and an implementation artifact have different closing authority, so the fold projects different states. An explicit report is reported and waits on its originating requester, whose ratification can satisfy it. An artifact waits on its performer: its admitted satisfier is none, so the requester cannot ratify it, and only an independently approved exact-head merge, which the performer signs, closes the implementation commitment. The landing obligation below splits that one state into three. The application write boundary reads that same admission-time satisfier before signing a ratification. When it is none, it refuses and names the target kind, the satisfier, and the applicable workflow act, rather than adding an ineffective attempt to the permanent log.

The browser and bounded status/query projections preserve an artifact completion as unfinished work. Naming no waiting party at all, as @15 did, left approved heads in nobody's queue; naming the performer puts each one in the lane of the actor who must sign its merge. Each of those projection changes altered the application projection bytes and lifecycle meaning, so each advanced the profile: @14 to @15, then @15 to workroom-fold@16; a cache written under an older profile is rejected and history is replayed.

A validated merge receipt records delivery for every eligible artifact named by its exact-head approval, including reporting companions. That delivery is independent of the receipt's retirement cut: an empty cut or a carried reporting artifact still closes its implementation commitment. The existing review, signer, ratification, candidate and temporal checks select these artifacts when the receipt is admitted; retirement authority remains a separate check. Delivery and the exposed receipt witness both match the commitment's resolved repository and ref. A later receipt for another destination cannot replace that matching witness or satisfy work addressed elsewhere. This correction advances the profile to workroom-fold@24; earlier cached projections are rebuilt.

Incorporation receipts. A receipt may carry merge_incorporation=prior, which says the approved candidate was already contained in its target when the receipt was signed: the head landed out of band and this receipt reports that rather than performing it. The fold holds no repository and checks no containment claim. It requires the plan to be empty in all four encodings — merge_retirements {}, merge_successors [], and, when present, merge_left_live {} and merge_changed_paths [] — and gives a receipt that says prior with anything else in its plan no authority and no delivery at all. Any other value of the field is refused the same way. An empty plan reaches no path and changes no artifact's liveness, so such a receipt closes exactly the commitment its ratified exact-head approval already named, through the same delivery rule above, and reachability never becomes succession authority. Reading one more receipt field changes what the projection contains for a log carrying one, so it advances the profile to workroom-fold@25; a cache written under @24 is rejected and history replayed.

Rejected-round successor transfer. A ratified changes-requested verdict rejects an implementation head but does not say where its required repair went. The fold recognizes that transfer only from an explicit supersession of the old request. At the supersession's own position it requires one effective child request cited after the target, the same requester on both requests, a direct child-to-parent provenance edge, and a live ratified changes-requested verdict that explicitly names the reporting artifact and its exact commit. The old commitment then closes as superseded and carries successor_request; it is never relabelled satisfied, cancelled, or reneged. The qualification is sealed on the supersession, so retiring or failing the child later changes only the child row. Retiring the supersession itself restores the ordinary parent state.

This also changes projection bytes and lifecycle meaning. It shipped in the same workroom-fold@15 candidate as the empty-waiting-party projection, so that deployed transition was one step from @14 to @15; the later step to @16 names the performer and is described above.

Write-boundary guards. One Workroom admission evaluation serves every state surface — gs state, gs batch, the MCP state and review tools, and the canonical guarded review path. It runs once before signing for early feedback, and authoritatively through the kernel's post-dedup callback against the exact pre-sequence frontier. Both halves judge a verified fold at exactly the head they judge. A head names its whole verified history, so every fold there renders the same projection, and admission uses whichever this process already holds: the projection it last rendered at that head, or the session snapshot's own fold when both that fold and the session reader stand at exactly that head, rendered into a copy admission owns. A fold this process advanced over its own submission stands at the new head before its reader does, and is reused only once a snapshot read has verified that delta. Failing both, it reads its private verified world. That reader starts from a signed checkpoint when one verifies, but publishes none, repairs neither checkpoint selector, and never touches the rollback witness. The authoritative half never takes or waits for a reader snapshot, so it never inherits the rollback witness's refusal, and a rewound or sibling frontier is judged by the private reader. The pre-signing half may take the session snapshot first, so the one verified read a signing command makes is also the world it is judged against. A world is reused only from this process's own verified reads, never from a resident's response or a caller's projection. Guarded retirement and reassignment, whose checks need a fold of their own, always read the private world.

Two further whole-log reads remain, as recorded limits. A chain of two or more acts is judged before signing in a scratch fold that PreflightChain builds from a read of its own. The session fold backs every reader's projection and has no copy operation, and a second fold cannot be built from what the session already holds: the fold keeps no transport records, and the checkpoint material a reader with the sequencer key retains holds payloads and attachments but not the signed intent — actor, rests_on, schema — that a record is folded from. Building it in memory would need either a deep copy of the fold state or every verified event held for the life of the session. And a seeded submitter in a long-lived process makes one full read, from the checkpoint when one verifies, each time a checkpoint falls due, to rebuild the material it publishes from (layer 2). A read-only caller that never takes the session snapshot also still asks the kernel's own fresh scan when the session reader does not stand at the head.

An undefined state kind refuses before signing with no override: command-shaped kinds point at their dedicated commands and tools, and any other absent kind lists the live vocabulary with the ratified kind-def that must establish it. Declared custom kinds stay valid.

A report whose body.verdict or body.status is exactly approved or changes-requested is a review verdict and refuses on generic paths, naming the guarded route. Canonical review paths carry the reserved body.review_path marker, and reserved admission fields are never caller input.

A state resting on an already-retired basis refuses by default until the author asks for the recorded escape (body.dead_basis_override=true), while an effective supersession stays advisory. A basis whose only problem is staleness stands where it stood, so the state is admitted and the boundary stamps the reserved body.stale_bases field with the same one-line staleness note a merge receipt carries. That field is never caller input, and the authoritative half does not trust a signature over it: it computes the same note from the pre-sequence frontier and refuses any act whose signed body.stale_bases is not exactly that, absence included on fresh ground, so a writer that skipped the client surface cannot sign testimony of its own. body.dead_basis_override is deliberately unlike it — a request the author is entitled to make, recorded and granting nothing — and is honoured wherever it is found. Neither the refusal, the override, nor the recorded note removes staleness or grants authority.

The guarded verdict path owns head-news discovery — statements sequenced strictly after the review request that name the reviewed head or lane — exact-set acknowledgment validation, canonical acknowledgment encoding, frontier binding, and act construction, shared by gs review and the MCP review tool so they cannot drift.

Guarded reassignment uses the same exact-frontier admission boundary, but only after kernel idempotency replay detection. A genuinely new act is refused before append when its request-local expectation no longer holds; an exact retry replays without re-judging history that moved afterwards. The fold still enforces both new schemas, so an older or admission-skipping resident cannot grant unguarded force. The expectation is about claims alone — zero admitted promises and zero admitted direct completions. A stale request is reassignable, because a basis moving under it does not claim it.

Admitting reassignment of a stale request changes what the fold decides about existing histories, so it advances the profile again, to workroom-fold@17; a cache written under @16 is rejected and history is replayed. Two fold changes landed in sequence and each took its own step: the waiting party on artifact-completion commitments at @16, and admissible stale bases at @17.

The landing obligation. An implementation request owes a Git artifact to a named destination, and this layer holds that obligation. A workroom/state@3 request must state exactly one result: the target triple target_repo, target_ref and target_head by value; target=inherit; or no_git_artifact=true. None of the three refuses, more than one refuses, and a partial triple refuses. The fold resolves no refs — it has no repository — so it checks only that target_repo is this workroom's own genesis id, that target_ref names a branch under refs/heads/, and that target_head is a full lowercase object id, which is advisory in any case.

target=inherit is resolved by one bounded walk: from the request, over rests_on edges that point at request statements, breadth first in recorded edge order, stopping at depth eight. The nearest value triples are those found at the smallest depth at which any is found, and nothing deeper is read. One triple, or several agreeing, is inherited; several disagreeing refuse; none refuses. A request stating no_git_artifact=true blocks the walk for its own descendants, so a review or authorization request sits under a landing parent without acquiring its obligation.

That one walk resolves the destination and its hold together, under a single invariant: a request inherits a hold, and its owner, only from an ancestor that resolves to the destination it inherited. The destination comes from the nearest value triple; the hold from the nearest ancestor owing that same repository and ref, which may be a request that inherited the triple rather than stated it. Chosen independently the two answers splice two branches — a nearer held ancestor owing some other ref would hand its owner authority over a landing nobody gave them, and their release would move a destination whose own hold stood unlifted — so an ancestor owing elsewhere is not a candidate at all. Where several equally near candidates for the selected destination name different owners, the request refuses with "conflicting hold ownership in target ancestry; restate the hold": citation order is how a request was typed, and it must not decide who may release a landing.

A request that owes a landing may carry landing=held, whose owner is the requester unless hold_owner names another live actor. Only the request that states the hold may name its owner: a request that inherited a hold keeps the owner it inherited, so a child cannot hand the release to its own performer. That naming changes one signing rule, and it is the only signing rule this design changes: a release is admitted from exactly the hold owner and from nobody else. The three-way merge-authorization list of original requester, the actor named planner, and any live ratifier does not reach a held landing; a ratifier who wants the landing anyway supersedes the request, which stays visible as an act of authority.

A release is one durable shape, not a set of body fields. Body fields are free text and any record can carry them, so the fold recognises a release only as a report — a record of kind report whose governing definition gives it the report lifecycle — that is authored by the hold owner, answers a no_git_artifact=true authorization request addressed to that owner and filed by the landing request's own performer, names this request, the approved artifact's exact commit and the ratified approval of that artifact, and is ratified by the actor who opened that authorization commitment. A target_repo or target_ref binding, where present, must equal the request's target. A proposal, an assertion, or any other record naming the same fields is talking about the release rather than performing it; it is admitted, and it lifts nothing.

On a request that owes a landing, an explicit report cannot close the commitment. A plain report and a verdict-carrying report are refused; a report carrying resolution is admitted as nonterminal evidence, projected as latest_resolution, and changes neither the status nor the waiting party nor the completion, so it can never be ratified into satisfied. Completion precedence on such a commitment is therefore a sealed merge receipt, then the newest live reporting artifact at an approved head, then the newest live reporting artifact — no report is in that list. A request that owes no Git artifact keeps the report-and-ratification closure it always had.

The one artifact-completion state becomes three, with no alias for the word they replace, so every enumeration site moves in the same head. awaiting-review is a live reporting artifact no ratified approval names, waiting on the performer. awaiting-authorization is an approved artifact on a held request with no effective release, waiting on the hold owner. awaiting-landing is an approved artifact that is unheld or released, waiting on the performer. abandoned joins the terminal states: it says an approved head was deliberately dropped, which cancelled does not say, and it beats cancelled when a supersession declares it. Superseding a request that holds a live reporting artifact at an approved head is admitted only when a successor request resting on that artifact carries the head, or when the supersession body — a workroom/supersede@1 payload, since a @0 payload has no body — states disposition=abandoned with its reason in the text. Any other such supersession is refused, which makes losing an approved head an explicit act rather than a side effect of refiling.

The writers of that declaration are the application adapter and the surfaces over it. app.Act.Abandon selects workroom/supersede@1 with the fixed body disposition=abandoned; one helper, supersedePayload, builds the schema and payload for both signing and preflight, so the two cannot disagree. gs supersede --abandon and the MCP supersede argument abandon set it. The fold's reason stays the same on every surface; gs adds a fix: line naming --abandon. A plain supersede@0 still carries a head through a successor.

An explicit no_git_artifact=true request owes no Git artifact, so a reporting artifact resting on its claim answers nothing. It is admitted like any other artifact and stays visible, but it is never that commitment's completion and never puts the row in one of the awaiting-* states, which are the states of a landing that has not happened yet; only the newest live explicit report closes such a commitment. This is a fact about what the request stated, not about what its history contains, so it does not reach a request admitted before state@3: one the fold reads as owing nothing because its commitment never carried an artifact keeps its historical reading, in which an artifact could be the completion.

approved_not_landed is projected per commitment relative to the destination, never relative to main: true when a ratified approval names a reporting artifact, the request owes a landing, no sealed receipt names that artifact with a matching target repository and ref, and the commitment is not abandoned. Whether that artifact is still live is not part of the question, and neither is it for the carried-or-abandoned rule. A merge retires the predecessors at the paths it publishes, so an approved head that another actor's merge retired is the ordinary case rather than an edge one; reading liveness there would drop it out of the audit set and let it be superseded without being carried or abandoned. Only the completion in the paragraph above asks which record answers the commitment now, and only that question reads liveness. A receipt carrying neither merge_target_repo nor merge_target_ref reads as refs/heads/main of this workroom's own repository.

Admission is keyed by statement schema, which is what keeps older logs reading as they did: every one of these names on a state@2 or earlier record is opaque body text and confers nothing. Requests admitted under those schemas are read from their own admitted history instead — a commitment that ever carried a reporting artifact owed a landing to refs/heads/main here and says so as legacy, one that never did owed no Git artifact — and that reading changes the status word an artifact completion gets without changing which record completes it or whether it is satisfied. The fold also gains one narrow staleness exception, which does change what it decides about existing logs: when a retirement's successor is the retired request's own rejected-round successor_request, the direct edge from that successor to the retired request does not carry the retirement. It is keyed to that one edge and that one relation, and reaches neither carried nor abandoned successions.

Filling target_head by resolving the ref at filing time, and refusing to file when it does not resolve, is layer-7 work and is described under "Request authoring" below. The receipt fields and the merge refusals are layer-7 work too and are described under gs merge. The delivered status, work, inspect, worktree and browser surfaces are described in layers 6 and 7 below. These admission and projection changes advance the profile to workroom-fold@19; a cache written under @18 is rejected and history replayed.

Two schemas state the section-1 choice: workroom/state@3, and workroom/reassign-if-unclaimed@1, whose payload publishes a replacement request. Every older schema carries the same field names as opaque body text, including workroom/reassign-if-unclaimed@0, so every record already in the log reads exactly as it always did. The body-local half of the judgement — which encoding, whether the triple is complete and well formed, whether the hold is stated coherently — is one exported function this layer and layer 7 both call, so the surface that files a request refuses the same shapes the fold would, in the same words. The ancestry walk and the roster read stay here, because only this layer holds the records they read.

Surfaces and guidance. Workroom also owns its MCP tools and their application meanings; the agent practice in SKILL.md; connector clauses and observations; and the Work board, event railway, artifact views, and other Workroom UI.

What this means precisely. The kernel has no artifact ontology. It stores a signed schema string, payload binding, and causal strings. The Workroom interpreter decodes a Workroom state event, recognizes its governed artifact kind, and projects path@commit, retirement, succession, and staleness. Another application may have no artifacts or may define a different concept under a different schema family.

Live membership is an application-level authority boundary. After the genesis operator seed, a state author must be a live participant, and an originating requester must still be live to ratify a report. A departed actor may still supersede an earlier act they authored; that narrow cleanup exception confers no force on a new state or on a ratification. These are fold rules rather than kernel admission or signature rules: the kernel still accepts the signed record, and the application decides what it means.

An affordance and a signature are different questions, and the browser asks both. What a control offers is drawn from the projection at render time; what may be signed is decided at the moment of signing, from the projection as it stands then. The two answers differ whenever authority moves under an open form — a lease expires, a membership grant is superseded, a target is retired — and the fold judges the record by what is true when it arrives, not by what was true when the button appeared. So the browser guards at the boundary that signs rather than only at the button: signingRefusal in ui/src/lib, asked by doAct in App.tsx and send in Thread.tsx. Publishing is the third durable path and asks publishRefusal at its own boundary.

That guard dispatches by act, because the fold does not apply one rule to all of them, and a browser that pretended otherwise would refuse work the fold accepts. For a ratification the fold settles standing first — a target it has not ruled effective, and a retired target, are refused before any satisfier is consulted — and only then asks who may satisfy the kind. Standing fails closed: a caller that cannot resolve the target's decision is refused, because a guard that cannot see the fact must not vouch for it. Effectiveness is not carried on the statement; it is published per record in decisions, so the boundary must be handed the decision as well as the record.

For a supersession the same guard is narrowed to the ordinary withdraw path the browser actually offers, and fails closed everywhere else. It refuses without a resolved target — decideSupersede refuses an unknown target before it reads anything else — and without a resolved viewer, since every branch past that compares the signer against somebody. The departed own-author exception is held to that ordinary path: decideSupersede sends a roster target through governance first, where the founding seed can never be retired, an operator grant or a membership carrying operator needs operator, and every other roster change needs ratifier, and authorship is not consulted at all. The projection carries a statement row for every state record, roster included, so those records reach the generic row affordance like any other; the browser withholds withdraw from them and refuses them at the boundary rather than restating the governance ladder, which would be a second copy of the fold to keep in step. Excluding is a refusal the fold would not always make, and that is the safe direction: gs supersede files the act and the fold rules on it.

The cost of getting this wrong is not a failed click. Offering an act the fold refuses appends a permanent ineffective row to an append-only log: a durable record that somebody tried to do something they were never allowed to do.

Workroom state schemas are prospectively versioned when admission tightens. workroom/state@0 remains readable with the decisions it historically made. workroom/state@1 refuses whole-repository and comma-joined artifact paths. workroom/state@2 preserves those path rules and removes new in-fold activation authority. workroom/ratify@1 closes the other side of that boundary: it cannot make an older, previously unratified activation take effect after host binding took ownership of upgrades. This preserves the append-only record while preventing new pointers that merge succession cannot maintain. The schema version is Workroom application meaning, not a kernel protocol feature.

The same bridge preserves state@0/state@1 fold-activation history ratified with workroom/ratify@0: the old transition and the uninterpretable seam after it replay exactly as before. fold-activation is absent from the current starter vocabulary, new state@2 records under that name are undefined, and the application refuses a new state@0/state@1 activation or a ratification@0 submitted after the boundary. A ratification@1 of an activation is ineffective even if it bypasses application admission.

New upgrades are binding replacements at the host layer. kind-def remains a finite declarative constraint language; a definition carrying body.fold is uninterpretable and cannot introduce a code pointer.

An application outside this module

An application profile does not have to live in this repository. The host package is the public surface a Go module outside this one imports to run on the kernel, and it is the only gitseq package such a module can import: every other package here is internal/, which the compiler enforces across the module boundary. What that surface exports is therefore the whole contract.

It exports five acts and nothing else:

  • Init creates a sequence and records the first application binding, making that record's signer the initializing key.
  • Open verifies the sequence and then hands it back only to the application and exact fold it is bound to, refusing anything else as verifiable but uninterpretable.
  • ReplaceBinding lets the initializing key record an evidenced transition to another exact fold without weakening that open-time equality.
  • Append signs one application act with a caller's key and gives it a position.
  • Records returns the verified ordered records.

There is no projection in that list, and its absence is the boundary. An outside application holds its own fold and its own state; gitseq gives it authenticated records in order and reads none of their payloads. Nothing registers an outside interpreter inside this build, so internal/app cannot fold those records and does not try: a Workroom build opening such a repository reports it as verifiable but uninterpretable, which is the honest answer.

Two postures differ from Workroom's and are deliberate. The public surface keeps no roster and applies no admission allowlist, because an outside application's actors are keys rather than named members; any well-formed act carrying a good signature is admitted, and the fold decides what force it has. And it keeps no local signed checkpoint, so each process verifies the log from the beginning once at open. Both are the simple posture, not a permanent one: the kernel's bounds still apply, and the signature — never the transport, and never admission — is what says who acted.

6. Projections and queries

What it owns: read models derived from an application interpreter.

A projection is not a kernel fact. Workroom projects decisions, actors, commitments, artifacts, reviews, vocabulary, and staleness. Bounded queries select from that derived state. Live status may be joined to it, but the durable and live cursors remain distinct.

internal/statusview builds Workroom summaries, orientations, bounded work pages, exact-path artifact pages, exact-item inspection, the whole-log review gate, the bounded staleness-wave summary, and the bounded join of a caller's live priority inbox.

It also owns the until filter all three wait paths share: one pure function over the verified snapshot, the cursor asked about, the wait delta and the actor's fingerprint, deciding whether an answer holds something that actor can act on — unacknowledged priority chat, a new event inside one of their own actionable lanes, or a new event resting directly on a live event they signed. The resident applies it inside its own poll for /v0/actor-wait, so a change that is not the caller's leaves the poll ticking rather than crossing the socket; the MCP adapter applies it to its degraded local fold; and gs wait applies it to the sequence ref it watches when no resident answers. actionable therefore means one thing on every surface and no surface re-derives it.

The filter reads the whole range of decisions after the cursor, not the delta's capped list, and reads the actor's lanes from the projection, not from the twenty rows a response carries. A response is bounded because a response must be; a decision about whom to wake is not, and deciding from either capped list lost the one event that was the caller's whenever enough unrelated ones arrived behind it — and then advanced the caller's cursor past it. The range and the view builder are one function each, shared by the delta and the filter. An event the actor signed themself is excluded by all of the rules: their own promise on their own request is inside their own lane row, and waking on it made every act they filed return their own next wait.

A poll that declines under the filter moves its own baseline past what it judged, because a change it has judged is a change it has seen. That is what keeps the cost of a declining poll flat: without it the same change was found on every one of the four ticks a second — refiltered each time, and, when it was a live change, re-reading the verified durable snapshot each time as well, which is one Git process per tick for a poll that was never going to answer.

The wait request gains one optional until field, and a wait answer two optional fields: changed, saying whether the filter accepted or the deadline passed, and accepted, the events it let through. A caller sending none of them gets exactly the behaviour it had before.

The named commitment populations a reader counts work in — open, completed, closed-not-completed, stale, with the open lifecycle breakdown and the commitment total — have exactly one owner, workroom.WorkOf. It sits beside the lifecycle words it groups, and it is derived on demand from the projected commitments rather than projected as a field: the snapshot shape, the fold profile and the cached projection contract are unchanged by it. Every surface reads that one result and none re-derives it: the bounded status page and summary totals, the complete status page and its JSON, the resident's complete status, and the MCP status and wait totals, which state scope because they are workroom-wide beside lanes that are not. The lifecycle counts stay beside the populations, because the lifecycle word open and the population named open are different numbers and a reader needs both. approved_not_landed is that owner's landing-audit count, read from it rather than totalled a second time.

The resident and MCP artifact contract remains the live exact-path page. A separate CLI selection asks the same page-building core for one of four lifecycle states — live, retired, succeeded, all — or for artifacts whose chain of artifact bases reaches an anchor path transitively.

The review gate is a fixed answer rather than a composable filter. It reports review requests awaiting a first verdict, references that resolve to no live artifact, and the approved heads still worth asking Git about. Whether those heads have landed is a Git question and is answered by the surface that can ask, not by the projection.

Work and status rows include the request, report, exact-head, and latest-review facts needed for routine action. Write surfaces return the fold decision after an append rather than previewing application force.

Landing rows copy the fold's resolved target, hold, approval, resolution and terminal fields. approved_not_landed is counted across all commitments, including legacy closed rows; an explicit work lane selects the performer or hold owner without changing the waiting party. Work filters bind that boolean and the exact target ref into the existing cursor. landing_receipt exposes the already validated matching receipt from the fold's merge index. It changes no admission or lifecycle rule. The shared presentation joins that witness to its sealed head and explicit compatibility warning; it never discovers a receipt by searching assertion text. See Landing observations for the common status, work, inspect and worktree shape. The additive Commitment.landing_receipt witness advances the fold profile to workroom-fold@21; cached projections from earlier profiles replay from the verified event checkpoint so historical receipts gain the witness without rewriting signed records.

workroom/reassign-if-unclaimed@1 advances it again, to workroom-fold@22. A fold that does not know that schema cannot decode the record at all and rules it ineffective, so an @21 projection at the same frontier holds no replacement request and no commitment for it. A cache written under @21 is therefore rejected and replayed from the verified event checkpoint, which is what gives the replacement its request row and the destination it stated.

Pending ratification is a separate attention lane, not a commitment state. internal/statusview selects effective, unratified, live proposals whose captured role:<name> satisfier is held by the actor being viewed. It reads the satisfier projected on each statement, never the current vocabulary, because the fold admits a ratification under the definition captured with that statement. Ratification, proposal supersession, or a standing effective direct dissent removes the row; ordinary staleness remains a qualifier on it. Status, wait, and work expose the same bounded selection. Work uses an event field for these rows and leaves request empty, so the query does not manufacture a request, performer, promise, or waiting party around a proposal. The browser's awaiting-ratification population applies the same standing and captured-role rules to the full projection.

internal/app opens a repository, joins the kernel records to the interpreter the repository is bound to, and exposes the resulting durable snapshot. Readers must report an unbound or unavailable interpreter instead of presenting a partial projection as authoritative. In particular, a degraded client marks priority chat unavailable; it does not invent an empty live inbox.

Its read-only snapshot path is separate from the resident snapshot cache. It verifies and folds the complete signed sequence without publishing a checkpoint, advancing the persisted verified-frontier witness, or changing the workspace's in-memory reader state. A diagnostic surface whose contract includes no local mutation uses that path even when a normal snapshot could repair useful acceleration state.

The merge plan has one builder for each path. gs merge-plan and the MCP merge_plan tool are diagnostic surfaces and build the plan from the read-only snapshot, so each call pays a complete fold. gs merge and gs land are about to write and read the normal snapshot before and after planning, so their plan reads that same cached snapshot: a landing at an unmoved frontier folds the log once. Both builders compute the same plan from the same frontier.

Staleness is held apart from lifecycle

The bounded views hold a record's staleness apart from its lifecycle, and the omission rules that follow are part of the projection contract rather than presentation detail.

Ordinary reasoning staleness qualifies a status; it does not reopen a finished commitment. Status omits superseded, satisfied, withdrawn and abandoned commitments from its bounded lanes and retains them in the per-status counts. Work queries keep approved-artifact landing debt even after source closure; absent that debt, the default query also omits those closed rows. Ordinary staleness alone does not bring them back.

For claimed work with no live completion, the current fold can replace promised with stale while retaining its waiting party. The query classifies that lifecycle as not_actionable. Unclaimed stale intake remains available. These are current attention rules, not evidence that a claim was withdrawn.

The staleness policy on a work query is a named value and not an absence: an omitted policy means summary, which is not include, and the explicit include, only and exclude policies each return what they always returned. Naming any lifecycle status also overrides the summary.

A page reports what the summary left out in closed_stale_omitted, which is omitted when it is zero. Retirement and a superseded world remain individually visible wherever they occur and are counted apart from ordinary staleness in retired_artifacts and world_stale_artifacts, both always present, because one figure covering every non-current artifact answers nothing in a workroom of any age.

A superseded world carries its date

world_superseded_at on a statement and on an artifact is the log position of the earliest retirement still accounting for that moved world, and the fold is the only layer that computes it.

A reader deciding whether a judgement was made before or after the world moved needs that position, and cannot recover it from the acts alone: the acts say a supersession happened, not whether its own supersession has since withdrawn it. Two retirements can account for one moved world, and withdrawing the earlier leaves the later as the only live cause, which moves the date forward.

The date is taken across every basis a record cites, not the first one carrying the flag. Stopping at the first would let the order a signer wrote its citations in decide the date, hiding an older cause behind a newer one, and that date gates an irreversible merge. Deriving the same rule a second time outside the fold means a second copy of it, and the copy is what drifts.

The field is zero when the fold finds no active cause. For a record that describes a superseded world that is a fact to fail closed on, never permission: gs merge refuses an undated superseded world rather than reading the absence as "after the verdict", because a projection it cannot date is not a projection it may merge on. This carries the fold profile to workroom-fold@10, since the published projection bytes change.

The pending-decision read adds no projected field

The checkout cleanup advice in layer 7 reads two facts from this layer that nothing read before: a proposal's structural rests_on edge to an artifact, and the lifecycle of the commitment for the request that artifact was filed under. Both are already projected. This layer gains no field, no statement kind, no admission rule and no fold profile advance, and the projection bytes are unchanged.

What the read holds is that four lifecycle facts stay distinct. Request lifecycle, candidate retirement, decision adoption and checkout removal are four separate things: none is evidence for another and none substitutes for another. So a retired artifact statement is still the subject of a proposal that cites it, an unratified proposal is still a decision waiting to be taken, and a request the fold has marked stale is still a request whose work is owed. Staleness qualifies a status here as it does everywhere else in this layer; it never settles a commitment, and a bounded actionable page that omits a row is a page, not the record.

The settled word list this read uses is the deny list layer 7 already applies to checkouts, so a lifecycle word this client has never heard of protects rather than settles.

7. CLI, MCP, skills, connectors, and UI

A signing CLI command asks the fold what it would decide before it signs. The act is built as submission would build it, judged by layer 5 against the projection this process last verified, and refused with the fold's own reason and one line of advice when the answer is not effective — before a private key is read and before anything reaches the log. A chain is judged whole, in order, in a fold built for the question and thrown away, so an act citing one the chain has yet to mint is judged against the act that will exist. The judgement is advisory: it reads the local verified log, so an act bound for a resident is judged only while that resident stands exactly where this checkout does. It is also skipped for a retry — an idempotency key this actor already holds means the sequencer replays the accepted event or refuses the key, and judging it against today's world would refuse a recovery. In a chain that is decided per act: an accepted act is left to the sequencer and taken as part of the world, with its label naming the event the log holds, while every new act of the same chain is judged against that world. A resumed chain is the ordinary case, and one accepted key standing the whole check down let a malformed new act through behind a replayed prefix. --no-preflight files any act as written. An act the check admits is signed exactly as it would have been, and no rule lives here that the fold does not already hold.

A command given --server takes the projection it judges against from that resident instead of folding the whole log again, through one opener shared by gs promise, gs artifact, gs review-request, gs land, gs work --next and the reference resolution of gs state, gs batch, gs ratify and gs supersede. What the CLI accepts from the resident is the projection itself: the fold's rows for the records at one frontier. What it still checks locally, before any of it is used, is everything that says the answer is about this world — the workroom's own genesis; the sequence ref, read before the request and again after it, so the head the resident names is this checkout's head and did not move under the read; the fold profile, so a projection produced by another interpreter is refused however current its frontier is; and the decision count against the frontier depth, so a truncated answer is not read as a world in which the missing records never happened. Whatever fails is named on standard error and answered by the local audit. Without --server the verified local log remains the only source. The reading commands — gs status --all and --json, gs artifacts with its CLI-only selectors, gs reviews — read the same endpoint under the frontier check gs status documents, and are unchanged by this.

gs wait is the one reading command that blocks. The actor-scoped wait route answers only a session, so it opens a presence session of its own — the same announce the MCP adapter sends, carrying the advisory status waiting, renewed between polls and departed on every exit path including an interrupt. It loops the resident's capped poll under its own deadline, so one invocation is one wake rather than one call every half minute, and keeps its cursor in a per-actor file under .git/gitseq so the next call resumes rather than replaying. Its exit status, not its output, separates a change from a deadline.

The three things a resident says that are not answers are recovered from inside that deadline rather than reported, because each has one obvious repair: a full wait budget is waited out and retried, a lapsed credential is re-announced, and a resident that stops answering is replaced by the local watch — the sequence ref, with one verified local audit per move, which is the path that survives a resident restart.

Those checks bind the frontier, and only the frontier. The head is proved against this checkout's own ref; the rows folded at that head are the resident's word for what the log says, and nothing local re-derives them. Two limits are worth naming with them. The complete answer is as large as the log, so it has no byte ceiling; who is answering is settled before it is read instead. The command first reads the resident's bounded summary, under the 64 KiB limit gs status uses and a ten-second deadline, and goes on only if that names this workroom's genesis and this checkout's head, unmoved across the read. A listener serving another workroom, or a resident behind this checkout, is refused there, before anything large is read. The complete answer is then decoded as it streams, with no deadline on the whole read: it is abandoned only when ten seconds pass with no byte arriving. The frontier is checked again after it. A fixed 64 MiB ceiling was crossed on 2026-10-16 by the artroom answer, 71 MB at depth 43,744; a ceiling scaled by depth was refused in review by a legal history of large records at shallow depth, 79 MB at depth 151. And the profile is a hash of the application name and the workroom.ProfileVersion constant, which is advanced by hand when the fold changes, so two builds that share the constant compare equal however their folds behave; it catches a declared change of interpreter, not an undeclared one.

What reading without a ceiling costs is memory, and it is stated, not bounded. The client holds the decoder's copy of the answer and the decoded projection at once, and decoded memory is not bounded by the answer's size. A long string costs about its own bytes; a list of small objects can cost far more than its JSON, as when 20,000 empty artifact objects, 60 KB of JSON, decode into a 4.2 MB array. The measured peak for the real 71 MB artroom answer was 335 MB. A larger log costs proportionally more. The read is admitted only from the address this checkout was given or advertises, and only once the listener there has named this workroom's current frontier: that is the trusted-process boundary layer 3 and gs serve describe. A process outside it that can read this repository and take that address can make this client spend memory and time, and nothing more, because the frontier, profile and decision checks still decide what is accepted.

Two things do not move with it. The fold preview reads the local verified log, and so do the admission that builds the act and the custody that signs it: the fields admission writes onto a body are recomputed from the local audit and never taken from a resident, and a command that reaches either pays for the audit whatever its projection came from. What a resident does reach is the act's composition: the text a default is written from, the citations a short reference resolves to, and the body fields a step command derives from commitment rows. Every citation among them is named on standard error before anything is signed, and every basis described there; the words a default text is composed from are not echoed, so a resident's account of a request reaches the promise that quotes it without a second reader.

The resident gains no authority it did not have, and the reason is the one layer 3 already states: it opens several actor keys, and every process running as the trusted operator account may ask it to act as any of them. A projection it serves for a command to compose and judge against is therefore inside the boundary it already stood in, and the frontier check is what keeps a stale, foreign, truncated or unreachable resident out of it. The one place a durable signature is taken from resident-derived inputs before anything local re-derives them is gs land: the approved head it lands and the ratification it files for the approval both come from the session projection, and the ratification is signed before any of it is re-derived. What follows is re-read locally — mergeplan.Build and its approval validation fold this checkout's own verified log — so the head Git merges is never the resident's word alone.

A malformed invocation is answered the same way everywhere: the command's own flags and one worked example on standard error, and a non-zero exit with nothing touched. That covers an undefined flag, a missing required flag or argument, a subject offered as a flag where the command takes a positional argument, and an event reference that names nothing here. Every required argument is settled before a repository is opened or a key is read, so a caller is never told about a missing key file when what was missing was a flag.

The reading UI includes a Notes view selected from declared render: note kinds, independently of request and approval populations. Exact record-number lookup spans all verified durable decisions. A reusable preview keeps the owning record and exact Git revision in the address and dialog; raw and percent-encoded record/focus links name the same records.

POST /v0/preview extends the layer-7 read contract. It resolves source heads only from the selected record or directly cited artifacts, and evidence only from that signed event's attachment tree. Ambiguity requires an explicit cited head; absence never falls back to main or the worktree. Layer 1 supplies bounded, hash-verified immutable commit/tree/blob reads, without Git replacements, filters, symbolic links or submodules. The endpoint admits only records in the resident's verified projection, applies same-origin JSON checks and bounded input, concurrency, time, metadata, text and listing limits. Text is answered in windows: the layer-1 read budget (4 MiB of one verified blob) is separate from what one answer carries (at most 400 lines and 64 KiB, lines cut at 4 KiB); windows are a fixed partition of the file, the window is the one holding the cited line or an explicit start, and a partial answer says so with its real line range and neighbours. React renders Markdown and source as inert text with safe links. These additions change no kernel, fold, custody, signing or completion authority. Reading notes, source files, and evidence specifies the read limits and navigation.

Landing observations are layer-7 Git facts, separate from the layer-6 receipt witness. A bounded batch captures immutable ref heads and computes local and remote-tracking ancestry; unavailable objects, shallow history or inspection limits yield unknown, never absence. When no witnessed merge head was supplied, the observation also says unknown and gives that reason: the read has not established that no receipt exists. Both ancestry booleans remain nullable; measured non-membership alone yields false. No fetch runs and no observation changes the fold's satisfied state. The worktree endpoint maps all named commitment heads, protects unsettled and approved-not-landed rows, refreshes cached branch tips, and publishes conservative deletion advice without deleting anything. If the durable read fails, local checkout facts remain visible with unknown classification. A shared 65,536-step budget bounds statement/provenance association work, ancestry propagation, membership joins and ranked output selection. A single statement pass joins selected receipts and indexes every named head and branch. Checkout membership propagates through the shared immutable graph once. Rows with identical match ranks share a bounded newest-row list and an exact total; distinct promises and all protected heads remain represented. Object inputs are deduplicated before the Git batch. Cancellation or budget exhaustion discards all deletion advice and clears partial results to unknown. Landing observations states the wire fields, limits, remote-selection policy and cleanup preconditions.

Step commands. gs promise, gs artifact, gs review-request and gs land each compose one step of the working cycle out of the layer-6 act paths and layer-1 Git reads already described. They add no fold rule, kind or field, and every refusal they make is a refusal the fold, the review guard or the merge would make later; making it earlier moves it to where nothing has been appended. Three properties are layer-7 contract.

An act signed on the actor's behalf stays inside an explicit guard. gs land ratifies an approval only when the review commitment it answers names the signing actor as its requester — the same rule the fold applies — and only after the read-only checkout refusals, so a run that refuses over a wrong or dirty checkout appends nothing. The merge itself is gs merge's locked transaction unchanged, including its authorization and hold rules; a workroom frontier that moved between planning and landing is replanned once, because that refusal leaves nothing behind. gs artifact signs the retirements a republish owes rather than making the author type them, and their reach is bounded before it signs and never inferred from the head alone: only artifacts this same actor authored, only those resting on the named promise, only those standing at a head other than the one being published, retired bare only where the head no longer changes that path — with the whole plan disclosed on standard error and the whole chain judged by the fold before a private key is read.

Destructive Git cleanup is leased, never inferred. A worktree and branch are removed only after merge-base --is-ancestor says the candidate is in the target, only for the single local branch pointing at the candidate, as a compare-and-swap against the tip just measured locally and under --force-with-lease on the remote; a remote tip that is not the landed head is kept and reported, because it carries commits this repository may not have. No deletion follows from a durable act having succeeded.

Executable next-action output is a formatter over a bounded query, with no authority of its own. gs work --next prints one runnable line per row of the same work selection, chooses the act from the row's own performer and requester, quotes data, leaves the holes a reader must fill visibly unquoted, and never writes a flag the named subcommand does not define.

Git observation stays separate from durable completion throughout. What these commands measure in Git — containment, ref tips, checkout cleanliness — gates their own next step and never stands in for the fold's satisfied state, which only the sealed receipt establishes.

The worktree endpoint also reports a bounded read-only reverse association: which durable record the implementing commits on each branch tip and each unbranched checkout head claim, and whether authenticated durable evidence corroborates the claim. It derives the table from Git and the verified projection and writes nothing, anywhere.

A claim is graded, never believed. An implementing source commit's Rests-On: is ordinary message text that nobody signs and nothing verifies, unlike the kernel's own event envelope trailer, which the sequencer compares byte for byte with the signed intent. A source trailer naming a record this workroom holds is claimed. It becomes corroborated only when a standing artifact statement names that exact commit and the review guard's own owned edge ties the actor its signature names to the same governing record, or, for self-initiated work, to the adopted decision recognised by the same rule. A trailer naming no record here, or more than one, is unresolved and carries the resolver's typed refusal and its candidate list verbatim; a canonical identifier of another genesis is foreign and is never resolved locally. No Git author ident is read, matched or mapped, and no second actor identity system exists: an author ident is committer-controlled, so a forged trailer under a copied ident stays claimed. Corroboration attaches to a commit and never to a branch, so a tip past the commit somebody signed for is claimed and the corroborated commit is named beside it.

The association bounds are the ref inventory, tip and object limits, the shared 65,536-step budget and the three-second deadline that already bound classification, plus 512 first-parent commits per tip and the existing one-mebibyte cap on a commit object. Every commit it reads a trailer from is re-verified against its own hash by the same NUL-framed scan the railway uses. Results cache under the captured read: the durable frontier, a digest of the captured ref inventory and a digest of the captured checkout listing. All three are inputs the table is derived from: a branch that moves, is renamed or is deleted, and a checkout that is added, removed, renamed or moved to another detached head, each change the answer without any of the others changing, and a cache keyed on less than its inputs stays wrong rather than going stale.

Every bound reports incomplete rather than a shorter answer that looks finished. More branches and unbranched checkout heads than the tip limit reads, a first-parent lineage longer than the per-tip limit reads, a captured tip whose object this repository does not hold, budget exhaustion, a cancelled read and an unavailable ref inventory all discard the whole table, give a reason and leave every checkout unknown. An unborn repository, which holds no commits at all, stays a complete answer of nothing and is not confused with a tip that has gone. Completion is decided in one place and the annotation step refuses to run on an incomplete table, so an early unknown cannot be overwritten to blank; unknown never proves a negative.

One captured read answers the whole request. The endpoint captures the checkout listing once, reads the bounded ref inventory once, resolves the remote once, and opens one three-second deadline and one 65,536-step budget; both the cleanup classification and the reverse association then read and spend from that single capture. Reading the refs or the listing a second time would answer about a different repository whenever a branch or a checkout moved in between, and two budgets would each bound their own judgment while saying nothing about what the request costs. The bound is therefore on the request: whichever judgment spends the budget spends it for the other, and the other reports unknown rather than answering from an allowance nobody counted.

One question is then asked of the pair: did either judgment finish under the conditions it was given. The answer is no when the shared budget or deadline is spent, and equally when the association stopped at a bound of its own, whether that is the tip limit, the per-tip depth limit or a captured tip this repository does not hold. All of those are the same kind of fact, a read that did not finish, so all of them withhold the whole response rather than the judgment that happened to notice: no candidate is offered, every checkout reads unknown for both its classification and its grade, and both carry the reason that names the bound. A classification computed before the bound was reached is still an answer derived from a read that never finished. The step can only turn an answer into unknown. It is the one response-disposition step, and the worktrees endpoint obtains its pair only through it; the two judgments stay separately callable for tests.

What is shared is the observation and the bound, never the conclusion. The two judgments stay two: the classifier reads no association and no grade, and the association reads no classification. Which durable record a checkout claims and whether that work is finished are different questions, and an unsigned source trailer is not something a deletion decision may stand on. The checkout listing keeps its own eight-second cache; the association keeps its own, keyed on the captured read.

Cleanup advice gains four reports over that captured read. Two checkouts at one head are reported at inventory time and nothing is refused for it. A head no ref in this repository points at is reported and protects. A checkout whose resolved path is outside the checkout root, or whose registered entry is itself a symbolic link, is reported and protects. A checkout still holding the commit an artifact names, while a live unratified proposal rests on that artifact by a structural provenance edge and the artifact's own parent request is unsettled, is protected and names the proposal. The checkout root is derived as the directory holding the served checkout, because no configured root exists in this source; a root that is too narrow can only protect a checkout that did not need it.

What this does not add: no gs worktree command, no per-checkout record, no refs/gitseq/lanes ref, and no branch field on any durable kind. Nothing here widens the deletable set, authorises a signature, moves a merge or licenses a deletion, and the association is not an input to any admission decision.

What it owns: presenting one application to people and programs.

  • cmd/gs combines storage and kernel operations with Workroom authoring, projection, query, review, merge, and resident commands. Its bounded query commands reuse the internal/statusview filtering and page builders used by the remote surfaces. CLI-only selector request types keep additional reach from widening the resident HTTP or MCP contracts as a side effect. Where a query needs a fact Git holds rather than the projection — whether an approved head is an ancestor of a branch — that join happens here, because Git remains outside the Workroom interpreter.

    Event reference input. Every input of cmd/gs and cmd/gitseq-mcp that carries a durable event reference accepts three forms: the canonical identifier, the #N record number the displays print, and an unambiguous prefix or suffix of one event hash. One resolver in internal/eventref answers all of them, at the tool boundary and nowhere else. Its input is the selector and the verified durable event set of the selected workroom — the decisions of one projection, which is the one index that names every record, statements and acts alike — and its output is a canonical identifier or a refusal. The searched population is that event set and never Git's object database, so a hexadecimal fragment cannot name a blob, a tree or an ordinary commit. Resolution is scoped to one workroom: a number or a fragment never names another room's event, and an explicit canonical identifier of another genesis is a cross-workroom citation, preserved as typed. A statement body is an open map, so a named list of fields is resolved and nothing else: the ones a consumer reads as exactly one durable event — artifact, authorizes_request, authorizes_approval and the three merge_ receipt bindings — derived from those consumers rather than from the shape of a value, and applied wherever a body is written. Actor fingerprints, implementation heads, ephemeral handles, batch labels, free prose and already-signed records are carried through unreinterpreted; gs merge --candidate, body.commit, authorizes_candidate and the receipt's own head fields name Git commits and are not resolved. The whole of one act resolves against one event set before it is signed, the set is read at most once and only when something typed needs it, and the signed payload carries the full canonical identifier and never a fragment. Ambiguity and no match refuse with bounded candidates and append nothing; that refusal is human input validation and is distinct from the fold's contract that a signed citation resolving to nothing is admitted in silence. Because the log only grows, a later append can turn a unique short reference ambiguous, which refuses, but can never make one name a different event: numbers are fixed at their record's position, and a hash fragment gains matches without losing the one it had. gs names each resolution on standard error, keeping standard output the single identifier of the new act; the MCP tools return the same sentences in the result. This adds no kernel, fold, custody, signing or completion authority.

    Basis disclosure. The filing surfaces — gs state, gs supersede, gs reassign-if-unclaimed, gs publish, gs batch and the MCP state, supersede and reassign_if_unclaimed tools — say what each rests_on value means before they sign: a string that is no identifier connects the act to nothing, this workroom's identifier naming no event is the claim the kernel refuses, and another workroom's identifier is admitted as a citation this room cannot verify. The predicate is the kernel's, not the fold's: the workroom's genesis is in the log the kernel resolves against and is not an application record, so it is admitted in silence while the fold's own membership answer, which the projection notes report from, still holds no record for it. The three are distinguished, they describe rather than refuse, and they grant nothing. Two references are outside it and are named here rather than left to be noticed: an intra-batch $label names an act the same chain has yet to mint and so is no citation this boundary can describe, and gs review and the MCP review tool build their citation list in internal/reviewguard, which judges every one of them against the projection and refuses what does not stand — a second, weaker description beside that judgement would be noise. The kernel's refusal, the signed staleness testimony, the retired-basis override, the effective-supersession advisory and the ineffective-support disclosure are unchanged; after an act lands, the classification workroom.DeadBases already holds is reported as it was.

    Implementation binding. Before a review is signed, and again wherever its approval is consumed, one pure resolver in internal/reviewguard classifies what the explicitly examined set of artifacts at an exact head is: assigned, when a projected commitment reports the primary by exact Commitment.Report equality and further implementation reports are found only inside the examined set, every one of them included whether or not a selector disambiguated a report's lifecycle; self-initiated, when the reviewer names the adopted decision the primary rests on directly and no commitment claims it; or evidence-only, when the primary's author filed it against a request that owes no Git artifact. It reads one hop of the primary's own provenance and the projected commitment, target and hold facts layer 6 already resolved; it walks no ancestry, parses no prose, and sweeps no other artifacts at the head, and an empty report lookup is never independence. gs review and the MCP review tool resolve it at each of the three confirming reads and record the kind and its witnesses in the verdict body; admission re-resolves it at sequencing; gs merge, merge authorization and merge_plan re-resolve it from the approval's own citations and selectors, so a verdict filed before bindings were recorded is reclassified from its actual primary. An evidence-only approval never lands. The optional read-only --prepare form runs the same resolver and signs nothing.

    Request authoring. Filing a request is where layer 5's landing obligation meets the repository, and one path in internal/app does it for every surface: gs state, a gs batch entry, the MCP state tool, the resident's POST /v0/act, and the guarded replacement of reassign-if-unclaimed. A request-lifecycle state is signed as workroom/state@3 — the guarded replacement as workroom/reassign-if-unclaimed@1 — and must state exactly one result. This layer resolves the by-value case: the caller names target_ref, and the boundary fills target_repo with this workroom's genesis id and reads target_head from that ref with git show-ref --verify, refusing a ref that does not resolve. A caller-supplied target_repo or target_head is refused outright rather than compared, because a hand-written measurement is either a guess or one taken elsewhere; that field is also distinct from a release report's target_pre_head, which is the signer's own measurement and is checked on the report path. Every refusal here happens before the request is signed, so the frontier is unchanged.

    Size is measured before the signature. The one place internal/app signs a submission measures the act against the ceiling this workroom records, using the kernel's exported accounting for an unsigned act, and refuses with the kernel's own diagnostic before any signature exists. It encodes the intent, measures those bytes, and signs the same bytes through internal/intent.SignEncoded, so what was measured is what is signed. This covers every surface at once, and no surface carries a size check of its own. A refused act has no signature and therefore no act under its retry key, so the key may be used again. The ceiling is the one genesis records, and the local configuration is a mirror of it: a workroom whose record carries none, such as a read-only attachment or a configuration written before the field existed, is answered from genesis rather than skipped, so the boundary holds on every supported workroom. The kernel reads the same descriptor and enforces the same bound at admission; this is the early half of that one bound, never a second one.

    The measurement is taken per filing, and a retry is answered before any of it happens. The retry identity the kernel indexes — target log, actor key, idempotency namespace, idempotency key — needs nothing measured, so an act already accepted under this caller's key is recovered from the log first; the request is rebuilt as that act was written and is used only when it is byte for byte the accepted one. No ref is read on that path, so an exact retry replays after the branch it named has moved or been deleted outright. Only the server-derived half of the triple is recovered: target_ref stays whatever the caller sent, so a reused key naming a different branch rebuilds a different act and is refused as a reused key, with no fresh measurement taken in its name, rather than answered with the request filed against the old destination. That classification — nothing held under the key, the accepted act rebuilt byte for byte, or something else — is made once, by one function, for the signing path and for every preflight in front of it. A fresh filing naming a ref that does not resolve is refused.

    The accepted act's schema is recovered with it, and is what the rebuild is signed under: workroom/state@2 or workroom/reassign-if-unclaimed@0 for a record written before the obligation existed, state@3 or reassign-if-unclaimed@1 for one written after. This is what makes an existing workroom retryable. A legacy request may state no result, so re-signing it as state@3 would refuse it for stating none — the one answer a caller who already holds the act must never get. A legacy reproduction reads its body as the opaque text it was, and the gate for the whole recovery is the idempotency key plus a request-lifecycle state or the reassignment verb, never a field of the body, because the body of a legacy request says nothing about whether one exists.

    The guarded reassignment is two acts in order — the retirement, then the replacement — so the same authoring rules run once before the pair begins and again when the replacement is signed. Everything the replacement's own body earns a refusal for is knowable before either act, and learning it after the first one is what would leave the old request withdrawn with no successor and the frontier moved. The preflight decides nothing: it is the same code, over the whole replacement the surface will file — old request, words, bases and body, less the retirement it cannot yet name — and it classifies a held key exactly as the signing path does, so a landed pair resumes without reading a ref, and a key spent on some other act is refused before a retirement is appended in its name. A fresh replacement resolves its addresses through current custody like every other new request, so a performer who has been retired is refused there too; only the byte-for-byte retry of a landed pair may fall back to the durable roster entry retirement keeps, because that comparison is what stops the fallback naming anyone new. The guard itself — no admitted promise, no direct completion — is not knowable then and stays at append, against the frontier each act joins.

    A mutating merge is where the landing obligation of layer 5 meets Git. The destination is measured in the governed checkout — never read from a signed field — as the workroom genesis id of that checkout's repository, the branch ref from git symbolic-ref HEAD, and the commit that ref held. All three are sealed twice: in the durable receipt as merge_target_repo, merge_target_ref and merge_target_pre_head, and on the merge commit as Gitseq-Target-Repo, Gitseq-Target-Ref and Gitseq-Target-Pre-Head. The duplication is what makes recovery possible after local refs are lost, and what makes tampering visible: only the Git copy can be rewritten afterwards, so recovery reads both and refuses a durable receipt that disagrees with the trailers it sits behind.

    Every merge, with or without --authorization, refuses a detached checkout, a checkout whose branch is not the implementation request's resolved target ref, and a checkout whose repository is not that request's target repository. The resolution is the fold's — stated triple, inherited triple, or the pre-state@3 reading of refs/heads/main here — and this layer compares against it rather than deriving it again. Under state@3 a request that is not held refuses --authorization outright, and a held one whose release is not in force for this candidate and approval lands with a warning recorded as merge_hold_warning for the length of the stated compatibility window. A held request whose release is in force seals exactly that release as the receipt's authorization and its ratification witness, and refuses an --authorization naming anything else. That release is signed by exactly the hold owner, who must still be a live roster actor when the merge reads the delegation, and it states the destination it was measured against; the phase-one signer list applies only to legacy lanes. A held request with no release in force and an --authorization naming some other report is refused: the window lets such a landing proceed unauthorized and warned, not under an authority its hold never granted.

    The request is found through the commitment lane that reports the approved artifact, so an approval whose artifact reports no lane receives no destination check at all. That is the case for independently reviewed self-initiated work, which has no commitment row; it is also the case for an artifact published against a request that stated no_git_artifact=true, because the fold never makes such an artifact that commitment's report. The second is a gap rather than a design choice, and closing it is separate work.

    The landing is bound to that measurement rather than measured again before it. git commit resolves HEAD as it writes, so no check taken beforehand can say where a merge lands — a repository hook that retargets HEAD moves the merge to another branch while the receipt names the measured one. This layer therefore does not commit through HEAD: it writes the staged tree, builds the merge commit with git commit-tree against the sealed pre-head and the candidate, and advances the sealed ref by compare-and-swap from that pre-head. There is no window between measurement and landing; a ref that moved keeps its move and the unreferenced commit object is unreachable. That swap is the only branch ref the merge writes: afterwards the checkout only forgets its in-progress merge state, and a HEAD retargeted or a target that moved on is reported, never repaired. Two consequences are part of the contract: commit hooks do not run for a merge, and the receipt message is the exact bytes this layer composed rather than what git commit cleanup would have left. Whether a landed head is still contained in its ref afterwards, and whether a remote carries it, are repository-derived advisory facts that no receipt claims and no fold satisfaction reads.

    An approved candidate the target already contains has landed without a receipt, and refusing it left the commitment with no admissible closer. The same command records the truth instead: with containment measured by git merge-base --is-ancestor — no flag, and no claim taken from a signer — the merge plan reports mode incorporate and the command appends one durable receipt carrying merge_incorporation=prior, merge_head equal to the candidate, and the empty succession. It writes nothing to Git: no commit object, no receipt ref, no branch advance, no index or working-tree change. Having nothing to hold an approval across, it takes no Git reservation either; the durable append is the only act, and the deterministic receipt key makes a racing second attempt replay the first or refuse as an idempotency conflict, so exactly one receipt exists. Containment is about commits, so a squashed or rebased landing is not contained and gets no incorporation.

    A receipt carrying neither target field predates them: it reads as refs/heads/main of this workroom's own repository, is flagged legacy, and resumes without acquiring fields its author never signed. One carrying half the pair proves nothing and is refused. The same legacy reading governs a pre-state@3 request, which therefore lands only into refs/heads/main of the workroom's repository: a repository whose default branch is not main cannot merge work filed under the older schema until that work restates its target under state@3.

    Its shared merge-plan evaluator adds one prospective surface rule the fold does not hold: a reviewed path bounds cross-author retirement at itself and beneath it, never above it. That rule is checked once for a fresh merge, before Git reserves the receipt ref. The evaluator stages the exact candidate in a disposable clone, while the governed target, refs, index, verified-frontier witness, and checkpoint remain unchanged.

    Succession recording never re-applies that guard. Resuming an already-sealed receipt appends only the missing acts in its sealed suffix without replanning, so the symmetric lineage rule of layer 5 keeps judging everything already admitted. The shared evaluator matches effective acts by merger, words, body and ordered citations, resolving earlier batch labels to their recorded event identifiers. Automatic historical staleness testimony is not recomputed for acts already recorded. Missing acts retain their deterministic keys and pass ordinary admission. A retired receipt or ambiguous matching acts refuse. The plan reports resume only while acts remain, and complete when all are recorded; repeating a completed merge at its sealed target and head changes neither Git nor the durable log. A successor retired after delivery is not recreated by that retry.

    A mutating merge holds .merge.lock in the repository-shared metadata directory before it looks for an existing receipt or validates and plans a fresh one. It keeps that operating-system lock through target and frontier remeasurement, approval reservation, the tentative merge, commit, receipt publication, durable succession, and all returned-error cleanup. Linked worktrees therefore serialize on the same boundary. The merge lock is outermost and may enter .config.lock while a snapshot or append updates custody. It never enters .publication.lock; publication likewise never enters .merge.lock, though publication may independently enter .config.lock. A process death releases the advisory lock, while any Git or receipt state it left still fails closed for inspection. Direct Git commands do not cooperate with this boundary.

    reassign-if-unclaimed composes the two guarded schemas and derives stable per-act idempotency keys from one required key. Batch exposes the same two verbs and lets its labels carry the exact retirement into the replacement. Both paths can resume after the first act without weakening the guard. The retirement's signed cited_ok is an explicit checkout/admission escape carried across remote sequencing and replay; it is not part of the UnclaimedExpectation compare-and-swap tuple and grants no fold authority.

    Its publication adapter joins two facts that deliberately live in different layers: the exact head an ordinary Git remote already accepted, and the repository-owned watch globs read from the tracked .gitseq at that head. It records no artifact. Merge succession above already lands an artifact at every changed path, so a second live artifact minted per push at a source path would be an accounting row the merger did not create and often cannot lawfully retire. What it records instead is an app-validated assert per changed watched path, carrying the path, the accepted head and the remote under publication_-prefixed fields, which no governed kind requires and this surface therefore validates itself. Asserts never enter the artifact map, so publication changes nothing about succession or left-live accounting. The adapter holds one operating-system-released advisory lock across the repository-wide remote/ref frontier and the actor-specific durable outboxes, queues the derived acts before submission, and verifies each against the decision of the sequencer that accepted it — never against a different frontier. This is a CLI reconciliation contract: it adds no file meaning to the kernel and no Git or outbox access to the Workroom fold.

  • cmd/gitseq-mcp exposes Workroom tools and live coordination over an MCP transport. The MCP protocol is a surface contract, not the Workroom fold. The work tool's stale enum admits summary, include, only and exclude, and summary is what a call that names no policy receives. The tool schema is the surface contract for that default; the selection it names belongs to the projection above. Every tool call may select repo and agent; omitted values use startup defaults. The pair selects a repository and an existing accessible actor key. It never creates a key or grants an identity, and a missing key, fingerprint mismatch, absent roster actor or unavailable repository refuses instead of falling back to either default. This is custody routing, not a new trust grant: the development key model still derives keys from actor names, so access becomes a real boundary only when deployments protect actor keys as secrets.

    The adapter holds one resident-minted credential per validated repository and actor selection, renews or replaces it internally, and never returns it through MCP. A configuration or roster change invalidates the old lease; cached repository state cannot turn an obsolete selector into signing authority. Its reassign_if_unclaimed tool owns the same guarded pair and retry choreography as the CLI, rather than asking callers to construct a commitment expectation from generic state and supersede tools. The tool inputs that carry an event reference are one table in this package, read by the shared resolver above before any tool runs; a tool that acquires such an input and does not join that table resolves nothing.

  • SKILL.md is the normative operating contract for an agent participating in the Workroom application.

  • internal/connector/github and cmd/gitseq-github translate admitted tracker material into Workroom observations. They do not extend the kernel.

  • internal/service composes repository access, the kernel-backed Workroom application, nexus, HTTP projections and queries, and the browser assets. It publishes the trusted-process posture in resident status and rejects unsafe mutation hosts before a route can act.

    /v0/worktrees carries an optional remote alongside the served path. It is local Git state, never durable projection, and it is the one value this surface emits that a browser will navigate to. Three properties are the contract, not implementation detail. It comes from the repository this resident was pointed at, and from that repository's own configuration: two bounds, because they answer different questions and neither implies the other. git config --local --no-includes bounds the scope, so no outer configuration scope can name a remote the repository never configured, and the read consults exactly one file. The flag pins a Git default rather than changing this answer: git config documents --includes as off when a scope is named, and that was checked on git 2.50. The cost, unchanged by the flag, is that a repository reaching its remotes through an include, or through worktree configuration, reports no remote and gets no link. The environment of every Git command this layer runs is stated rather than filtered for known-bad names: it inherits nothing whatever from the process that started the resident, and this layer names every variable itself. On Unix, which is where this is exercised, that stated set is the whole of the child's environment, so a variable nobody here has heard of is absent by construction. That shape is the correction of four rounds in which a denied set was escaped — by command-scope injection, which needs no file; by a variable naming a configuration file, whose contents name programs Git runs, so that admitting such a variable by name bounds nothing at all; by HOME reaching ~/.gitconfig with no such variable set; and finally by HOME reached from inside the one scope that has to stay admitted, because a repository-local include.path = ~/attack.cfg expands its tilde. HOME and XDG_CONFIG_HOME are therefore pointed at a location that can hold nothing, which is what makes ~/.gitconfig, the default ignore and attributes files Git reads through those two variables without any scope rule mentioning them, their $HOME/.config fallbacks, and any tilde inside an admitted scope resolve to nothing rather than to the caller's files. The system and global scopes are pinned by this layer rather than forwarded from whoever started the process, and the variables that decide which repository Git resolves — GIT_DIR, GIT_COMMON_DIR, GIT_WORK_TREE and their family — are absent along with everything else unnamed, because those redirect the repository before any scope rule applies, and a strictly local read of the wrong repository is still the wrong repository. What remains admitted is a scope rather than a file: the repository's own configuration, its worktree configuration at $GIT_DIR/config.worktree where the repository sets extensions.worktreeConfig, and whatever an include.path or an includeIf condition inside either of those names, by absolute or relative path. All of it is executable — core.fsmonitor set in any of those five places was measured running a program of its author's choosing during an ordinary git status under this stated environment — and it stays admitted because reading the repository this resident was pointed at is what the answers are made of. PATH is not forwarded either. os/exec resolves git against the starting process's PATH and records the absolute result before any child environment exists, so which binary named git runs was settled before this bound applied, and forwarding PATH would not have changed that while additionally letting the caller name the programs Git resolves for itself. Choosing that binary is a deployment trust boundary this layer does not close and cannot; closing it takes an absolute path to a trusted git, named by whoever deploys the resident. Windows is a second boundary this layer does not state. The package builds for it, nothing here has been exercised on it, and the closed-environment property is false there: Go's os/exec adds SYSTEMROOT from the starting process to what the child receives when the stated set carries no such name. The contract above is a Unix contract. The cost is stated rather than hidden. Two ownership allowances Git would otherwise take from the environment do not reach these commands: safe.directory, which Git honours only from protected configuration and so only from the scopes now pinned, and the widening Git applies when it runs as root under sudo, where it reads SUDO_UID and trusts that uid's repositories as well as root's. Running these reads under sudo therefore refuses repositories it would once have read. The refusal is a visible error rather than a wrong answer. The same mechanism belongs in internal/gitstore, which bounds its own Git environment separately and closes less of this; sharing one statement of what Git may see is a separate change. The guard that refuses a retirement the documentation still cites states a property rather than a list of what it defends against: it refuses whenever it cannot positively confirm that no live document cites the target. A lookup that does not run at all — a broken Git, a resource limit, a setting anywhere in the repository's own configuration scope — yields a refusal, never a silent pass. Bounding the environment narrows how such a lookup is reached; it is not what makes the answer safe, and no enumeration of variables, admitted or denied, is what the guard rests on. The remote read is bounded in size and in count, and a repository past either bound reports no remote rather than a partial one. It is admitted by an allowlist: http and https only, never userinfo, a query, or a fragment — including the empty ? and #, which are tested on the remote as configured rather than on the parsed form, since one parser records an empty fragment and another does not. Each can carry a credential, and declining keeps it out of the response body rather than trusting later rendering to drop it. Refused means absent: the field is omitted, and the reader is told nothing about why.

  • ui/ renders Workroom projections and live state, keeps its private resident credential only in tab memory, and displays the trust boundary before actor selection; it does not define durable meaning.

    It navigates to that remote, which is the only place a string from local Git configuration becomes an href. Being the site where the attribute is written, it applies the same allowlist again to the value it received rather than trusting the field: an older resident, a stale embed, or any future caller gets the same answer. A refused remote renders byte-for-byte as a repository with no remote does, so the page never distinguishes the two.

    The board's layer-seven outcome map is a pure read over the existing Workroom projection. It uses the same commitment-boundary thread identity as the table and collapses only exact cross-thread rests on, ratified by, and superseded relations. Every line retains all contributing event identifiers and both direction readings. It does not parse conditions prose, synthesize blocking, infer replacement chains, or change a server or fold contract.

    Table remains the default board presentation. The board-level Table | Graph control gives both presentations the same selected population after the same search; table sorting does not change graph membership or placement. Context cards remain outside the population count. The graph lays direct bases to the left of dependents, pans and zooms as one drawing, exposes each complete relation to pointer, keyboard, and touch users, and opens the existing full thread from a selected card. It presents waiting_on only when the fold projected that field and distinguishes a root of this view from missing or out-of-view bases.

    Target and delivery labels use the same projected commitment fields in the table, graph card and thread spine. An explicit approved-not-landed population includes historical closed or satisfied lifecycles without relabelling them; its membership never changes the projected waiting party. Target refs are shortened only for display, with the full repository/ref available and a legacy badge when the fold says so. Opening either presentation preserves the selected promise or report within its existing thread. An absent projected destination says "No target recorded"; it does not claim that a historical request explicitly chose no Git artifact.

    The thread inspects that exact lifecycle through /v0/inspect. Only the fold's selected landing_receipt makes a sealed landing station; current bounded Git membership is a separate station. Missing refs, unknown ancestry, removal after landing and unavailable reads never erase the receipt or prove a negative. An inspection must match the selected event, target, candidate and receipt before it is displayed. The active thread refreshes the read every ten seconds, including when no durable record has changed, and cancels the previous read on navigation. It displays a compatibility hold warning only from the receipt's explicit warning field.

    The request composer requires an explicit result: a named target, inherited request target, or no Git artifact. A named target sends the operator-entered branch ref; the service resolves its repository ID and filing-time head. The loaded repository ID is display context only. The browser supplies neither measurement nor defaults a branch. A selected hold requires a roster owner. Prose that asks for a hold without those fields prompts a warning, not an inferred hold. An unchanged retry retains its input and idempotency key; editing its result creates a new intent. The shared producer remains responsible for target resolution, exact replay and admission before signing.

    Rendering is deterministic and bounded. A view admits at most 160 thread cards, including at most 96 direct-context cards, 160 complete relation groups, 64 exact contributors per group, and 20 warnings. Applying a bound omits a whole context card or relation group and reports the omission; it never leaves an orphan card, partial line, or line whose exact contributors are unavailable. Malformed input and cycles produce bounded warnings and a usable graph.

These surfaces may evolve or be replaced without changing kernel validity. They must not infer application force that the selected interpreter did not produce.

Layer 5 and layer 7: what the browser may derive

"It does not define durable meaning" needs a boundary, because the browser plainly does derive things: it sorts rows, counts a queue, and picks which button a row offers. The line is not "derives nothing". It is this.

Layer 7 may read any field layer 5 projects and combine those fields for presentation. It may not name a relation that layer 5 does not project and then treat that relation as a fact about the workroom.

Adoption is the case that fixed the wording. docs/how-to/keep-decision-records.md describes a decision file as adopted once a proposal citing its artifact is ratified, and describes that adoption as standing across later revisions of the same file. The Workroom fold projects none of that. It projects proposals, ratifications, artifacts, paths and citation edges; it projects no relation between a proposal and a decision record, and no notion of an adoption that stands. A browser that joined those fields into "the decision at this path is adopted" would be inventing an application fact, and every screen reading it would present that invention as the workroom's answer. Projecting adoption is a layer 5 change: a fold rule, a projected field, and a fold version to carry the changed projection bytes. Until that exists, the browser does not have the fact and must not act as though it does.

Three consequences follow, and all of them are visible in ui/:

  • No affordance is gated on adoption. An artifact row offers both the proposal and the review request, and the operator chooses which the decision needs. Choosing for them would require the fact the fold does not project.
  • Prefilled citations are a convenience, not a claim. Where a record the browser offers to file would otherwise need an identifier copied by hand, the browser may fill the causal references from projected provenance alone: the records resting directly on the record on screen, filtered only by projected fields, ordered by the fold's own sequence so the result never depends on serialization order, and bounded by a fixed limit so no screen can drive a record past the kernel's causal-reference ceiling or make several contradictory records appear to govern one act. The operator reads the citation in the composer before signing, and the fold judges it afterwards.
  • A citation the operator names is not one the browser derived. The revision case in docs/how-to/keep-decision-records.md needs a review request to rest on the proposal that adopted the decision, and that proposal rests on the earlier artifact at that path. No projected edge connects it to the revision, and joining the two would be the adoption relation this layer does not project. So the browser does not join them. The operator names the record — by the ticket number the screen already shows, or by the whole event identifier a record's detail offers to copy — and the browser resolves that name against the projection and no further: a name the projection does not carry is refused at the composer rather than filed as a dangling reference. What is added joins the same disclosed list, carries a control to remove it again, and counts against one bound for the whole list, so an operator's additions can no more outrun the reader than a prefill can. Because a withdrawal names the record it retires rather than a basis, it takes no operator citation at all.

Counting is the case where reading and combining is not enough on its own. The browser's populations are a lawful layer 7 combination of projected lifecycle fields, and for as long as they were only that, the board and the command line printed different numbers for one frontier and neither was wrong. The relation is now named at layer 5 by workroom.WorkOf and published on the status answers. The browser still selects its own rows, because a tab count must be exactly the rows that tab renders under the current search, which is a presentation question layer 5 cannot answer. What it may not do is disagree: internal/wireparity/work_populations_test.go and ui/test/work-populations.test.mjs count one frozen projection with the Go owner and with the browser's own selector and require the same answer, with controls that drop a member and regroup one surface and watch the comparison fail. A scoped count says it is scoped rather than being compared with a workroom-wide one.

An affordance is also bounded by authority. The browser offers a ratification only when the fold's own published rule says this actor may make it: the satisfier projected on the target statement, which is the one admitted with that statement, checked against the projected roster. It is not the satisfier the live vocabulary publishes for that kind now. The two are the same value until a kind is redefined and different afterwards, and the difference is the whole point — layer 5 decides ratifications on the admitted value, so a screen reading the live one disagrees with the fold in both directions:

  • Narrowed since admission. The screen hides an act the fold would accept, and says nothing. An actor entitled to ratify is silently denied, with no error to notice and nothing on screen to appeal to.
  • Widened since admission. The screen offers an act the fold refuses. Pressing it appends a durable record judged ineffective, which stays in an append-only log forever, saying somebody tried to do something they were never allowed to do — and they were told the act was available.

The hazard is not only a coding error. A page that states the live-vocabulary rule and a browser that implements it agree with each other and both diverge from the fold, which is the shape of contradiction a reader has no way to detect: two layers describing one rule, neither of them the layer that decides it. Layer 7 derives no authority of its own. It reads the value layer 5 publishes for this exact record, and where layer 5 publishes none it offers nothing rather than guessing.

The citation rule above is enforced the same way. "The operator reads the citation in the composer before signing" is a claim about rendered output, so it is asserted on rendered output: the composer names every event it will put in rests_on before its send control can be used. Prefilling a causal reference and never showing it is not a convenience, it is signing on somebody else's behalf.

Compatibility has six axes

"Compatible with Gitseq" is too broad to be useful. State which contract is compatible:

Axis What must agree Current marker or example
Kernel protocol Genesis, intent and envelope encodings; sequence and signature rules; bounds; rotation and continuation Kernel and intent version fields and wire markers
Host binding Application name, pinned source commit, fold version, binding authority, and interpreter-selection order gitseq/app-binding@0; legacy absence selects shipped Workroom
Application family Schema family and governance bootstrap interpreted after host selection workroom/*
Interpreter or fold The exact deterministic meaning assigned to the application record workroom.ProfileVersion and the projected fold binding
Projection contract Names, types, limits, cursor behavior, and omission rules of derived read models Workroom status, summary, work-query, and inspect shapes
Surface or UI Commands, flags, MCP protocol/tool schemas, the exported Go API an outside application imports, connector behavior, browser routes and presentation gs, the MCP protocol version, the exported surface of host and host/identity, connector flags, and the committed UI build

A change on one axis does not automatically change the others. For example, a new browser layout may preserve the projection and fold; a fold change may preserve the kernel sequence; and a new application family may reuse the kernel while sharing none of Workroom's tools.

Consumers negotiate or pin the axes they depend on. They must not use surface similarity as evidence that an interpreter is available or that two folds give the same result.

The inventory spike removal affects the interpreter and surface axes: the local JSONata interpreter and inventory commands are no longer shipped here. It introduces no replacement Gitseq command or automatic binding migration.

Current package boundaries and coupling

Package or surface Layer Present coupling and intended boundary
internal/gitstore Ordinary Git storage Implements object and ref operations, including plain history questions such as whether a branch already carries a commit. It must remain ignorant of application schemas, and it reports "cannot tell" separately from "no" so a failed query is never read as a negative.
internal/intent Kernel Owns canonical signed intents and actor-key fingerprints. Schema and rests_on are bounded opaque strings.
internal/kernel Kernel Uses only Git storage, intents, and an optional host interface that loads or stores an opaque checkpoint object ID. It performs no local checkpoint filesystem I/O. Its pre-append admission callback receives envelope facts, not payload meaning; its scheduled post-dedup application admission hook is handed the payload bytes and attachments uninterpreted so the application can judge the submission that would extend the log, and still assigns no meaning to them. A checkpoint caches only kernel-verified events and kernel identity (schema, object format, genesis, and authenticated sequencer-key lineage), never projection state or an application profile; every candidate is verified from those kernel facts.
internal/custody Example application interpreter Folds opaque offer, acceptance and settlement records into asset-custody state. It manages no local signing keys and defines no kernel policy.
host/live Live runtime, public surface Owns the single process-local coordination runtime. It opens public-key leases only after an expiring single-use possession proof, exposes a separate trusted-only custodial entry point, prepares deterministic application-neutral frame drafts, verifies actor signatures made outside the runtime, binds conversations to exact scopes, supplies runtime ordering, and retains bounded live state. Its optional composition helper keeps caller-owned durable frontiers separate from live cursors. It imports no application profile and is independent of the durable Workroom fold.
internal/workroom Application profile and interpreter Owns Workroom schemas, vocabulary, fold, authority, commitments, artifacts, reviews, and staleness, and the one derivation of the named commitment populations every surface counts work with. It knows nothing about Git storage, HTTP, or MCP.
internal/apphost Application host binding Defines the application identity, pinned source, fold version, initializing-key authority, and the binding in force shared by every host, together with the repository configuration a checkout needs to reopen its own log, and the one advisory-lock primitive that serializes a read-modify-write on a named file in that directory. It imports no application profile and has no application ontology.
host Durable application host, public surface Exports binding at init, configured and attached-clone opening against a declared application, local-custody append, prepare/submit for externally actor-signed acts, and the verified record stream — and no projection, because the outside application owns its fold. It delegates canonical signing-byte construction to internal/intent, so no public host API names the kernel's domain tag. Attached opening receives a genesis and sequencer-key path through public fields, verifies before interpreting, and never initializes or exposes internal/apphost.Config. It depends on the kernel and internal/apphost, never on an application profile.
host/identity Application host, public surface Holds the host identity vocabulary an application inherits rather than reinvents: witness declarations, witnessed GitHub and self-signed Nostr anchors, withdrawal, and two-axis resolution with a plain display at an exact verified record position. It imports host and no application profile, gates no append, and reads no clock. Nostr BIP-340 verification stays in this host interpreter, outside the Ed25519 kernel. The provider check that turns a GitHub login into an identity runs outside the fold, and only its result is recorded. Endorsement has two entry points over one validation and encoding site: Endorse signs with a held actor key, and PrepareEndorsement fills the genesis, validates the anchor, BIP-340-verifies any carried Nostr proof, and returns a host.PreparedAct for an actor to sign outside the process, taking and retaining no actor private key and writing nothing.
internal/app Application host and boundary adapter The deliberate coupling point: it opens the repository's configured actor and sequencer key custody, builds Workroom payloads and signed kernel requests, applies application admission, owns the bounded repository-private checkpoint pointer and off switch, reads kernel events, and runs the fold. It also selects one interpreter from the recorded binding as a workspace opens, reports kernel verification ahead of any refusal to interpret, reuses the profile-independent authenticated kernel prefix across fold changes, and gates its separate projection cache on the selected application and fold version. Workroom is the one interpreter this build holds. The trusted resident may invoke this local custody for several actors; the nexus credential does not alter key files, kernel verification or fold authority.
internal/mergeplan Application workflow evaluation Owns the typed, read-only Workroom merge preflight shared by CLI, MCP, and the mutating merge path: exact approval and implementer checks, isolated prospective Git merge, reviewed scope, live-artifact classification and succession, and prospective admission of the canonical durable suffix. It may read ordinary Git and Workroom state, but it does not append acts or write the source repository. The resident's request-size ceiling is a function the composing command supplies, so this package stays below the transport rather than importing it.
internal/eventref Surface Reads what a person can type where an event reference is expected — the canonical identifier, a #N record number, or a prefix or suffix of one event hash — against the verified durable event set of one workroom, and answers with a canonical identifier or a bounded refusal. It reads no Git objects, holds no cache and signs nothing, so no surface can resolve a reference that the projection it was handed does not already contain.
internal/statusview Projection and query Reads Workroom application state, and optionally nexus state, into bounded public views. It does not establish durable meaning.
internal/service Composition and transport Hosts app, nexus, projections, queries, and UI over HTTP. It must preserve the distinctions between kernel refusal, application interpretation, durable state, live state, and ordinary Git history. A browser may ask whether named commits are on the mainline; it names commits, never the ref, which this layer resolves. Every status and every rebuild report names the fold profile the process interprets with, an opaque identifier fixed for the life of the binary, so a reader that kept a status across a rebuild can tell a same-profile re-audit, where the retained status stays and is qualified, from a profile change, where it is dropped because the projection was produced under a contract this process does not implement; a profile missing on either side is unverifiable and drops it too.
cmd/gs Surface and composition Contains both kernel-level administration and Workroom-level commands today. Its step commands compose one working-cycle step each out of the act paths below them, adding no fold rule, kind or field: an act signed on the actor's behalf stays inside an explicit guard, destructive Git cleanup is leased against a just-measured tip, and executable next-action output is a formatter over a bounded query, as "Step commands" in layer 7 states. It reads Git's first-parent merge diff, validates optional structured merge authorization and target-path remeasurement, composes the Workroom receipt, successor artifacts, and retirements, and asks Git whether an approved head is already an ancestor of a branch; Git remains outside the Workroom interpreter. Its publication adapter reads the head an ordinary remote accepted and the watch globs tracked at that head, and records app-validated publication asserts — never artifacts, which merge succession alone mints at source paths. The read-only merge-plan surface stages the prospective merge only in a disposable clone and exposes the same typed approval, classification, succession, and reviewed-scope evaluator that merge consumes. Command grouping must not move Workroom concepts into the kernel packages.
cmd/gitseq-mcp Surface Adapts MCP calls, including read-only merge planning, to Workroom and nexus operations. Per-call repo and agent values select an existing accessible key and effective roster actor, fail closed without changing either startup default, and keep resident leases scoped to that validated pair. Protocol compatibility and fold compatibility are separate.
internal/connector/github, cmd/gitseq-github Application connector Applies Workroom charters and emits Workroom observations. It is replaceable and outside the kernel.
AGENTS.md Repository policy Carries what this repository adds on top of SKILL.md, and names the few rules it deliberately repeats. The three review conclusions live in SKILL.md. It does not define Workroom behavior.
SKILL.md Application guidance Governs agent conduct in Workroom, including the three conclusions every implementation review records before approval: architecture, security and simplification. It is not a kernel protocol specification.
ui/, internal/service/uidist Surface and UI Renders current Workroom projections, live runtime state, and the Git history facts the service exposes as two screens: a board and one thread drawn as a commitment spine. Table remains the default board presentation. Its read-only `Table

The important existing dependency direction is real: internal/kernel does not import internal/workroom; internal/workroom does not import Git, HTTP, or MCP; and internal/app joins them. The host binding belongs at that seam, not in either lower package or inside a particular application. New code should keep application meaning above it.

host, host/identity, host/live and internal/apphost sit at that seam and must stay free of any application profile: a public surface that imported the Workroom-coupled adapter would put layer 4 on top of layer 5, and an outside application would inherit meanings it never asked for.

Where cmd/gs and internal/service currently compose several layers, treat that as explicit integration, not permission to make the lower layers understand Workroom.

Review rule

Every implementation review identifies the affected layers in this page and states whether the exact head preserves or changes their contract. If the contract changes, that same head must update this page and re-anchor its artifact. A reviewer must request changes when a contract-changing head does not do both. The architecture conclusion is one of three that SKILL.md requires before approval; the other two are security across the affected boundaries, and any opportunity to achieve the same result more simply. SKILL.md carries all three, because they are how any workroom reviews an implementation. AGENTS.md carries only what is local to this repository.