@inventarch/runtime 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/SPEC.md +18 -4
- package/dist/authoring-execution/execution.d.ts.map +1 -1
- package/dist/authoring-execution/execution.js +4 -2
- package/dist/authoring-execution/execution.js.map +1 -1
- package/dist/authoring-execution/inventory.d.ts.map +1 -1
- package/dist/authoring-execution/inventory.js +2 -0
- package/dist/authoring-execution/inventory.js.map +1 -1
- package/dist/authoring-execution/types.d.ts +2 -0
- package/dist/authoring-execution/types.d.ts.map +1 -1
- package/dist/door.d.ts.map +1 -1
- package/dist/door.js +3 -2
- package/dist/door.js.map +1 -1
- package/dist/editor/index.d.ts +3 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +4 -1
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/workspace.d.ts.map +1 -1
- package/dist/editor/workspace.js +11 -2
- package/dist/editor/workspace.js.map +1 -1
- package/dist/errors.d.ts +18 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +10 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/machine-protocol.js +1 -1
- package/dist/mandate-guard.d.ts +91 -0
- package/dist/mandate-guard.d.ts.map +1 -0
- package/dist/mandate-guard.js +160 -0
- package/dist/mandate-guard.js.map +1 -0
- package/dist/mandate-modes.d.ts +251 -4
- package/dist/mandate-modes.d.ts.map +1 -1
- package/dist/mandate-modes.js +426 -18
- package/dist/mandate-modes.js.map +1 -1
- package/dist/next.d.ts +4 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +1 -1
- package/dist/next.js.map +1 -1
- package/dist/packet-host.d.ts +124 -4
- package/dist/packet-host.d.ts.map +1 -1
- package/dist/packet-host.js +11 -6
- package/dist/packet-host.js.map +1 -1
- package/dist/packet.d.ts +17 -2
- package/dist/packet.d.ts.map +1 -1
- package/dist/packet.js +9 -5
- package/dist/packet.js.map +1 -1
- package/dist/position.d.ts +18 -9
- package/dist/position.d.ts.map +1 -1
- package/dist/position.js +4 -3
- package/dist/position.js.map +1 -1
- package/dist/steward.d.ts +8 -1
- package/dist/steward.d.ts.map +1 -1
- package/dist/steward.js +10 -0
- package/dist/steward.js.map +1 -1
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@ The initial classifier and coordinate preparation API validate the native axes,
|
|
|
6
6
|
|
|
7
7
|
`positionBody(handle, within, resolved)` (also on `@inventarch/runtime/internal/position`) returns body(K), `ia.position-body.v1`, for a key `resolveScopeKey` resolved through the same scope token, and writes nothing: the seat; the composition one level from it at cost 0 (its field references both ways, a workspace seat's capture members, a `@system` seat's word members, a location's declared-at record and claimants); the seeds the shape's kind or lane focus picks from it; the records reached by up to `depth` hops along the shape's predicate focus in either direction, never inside another workspace's declared root, a row that carries a condition followed only where it holds at the key's coordinate, as graph traversal follows it; the blocking governance among those candidates, reserved in `rules` outside the budget; `loaded`, the seat and the first `budget` of the rest in the design's total order; the pointers (the 9-tuple id, word, kind, lane, owner system, steward, band, hop and reaching row or field), 48 listed and the rest tallied per word and owner system; the frontier one hop past `loaded`, tallied per owner system and kind; the unknowns, such as a workspace that declares no sources; the counts; and the two widening keys. The `@law`, `@convention`, `@principle` and `@playbook` records whose `subject.subject-word` or `subject.subject-kind` names the word or kind of a loaded record, or of a blocking candidate reserved in `rules`, are listed in `appliesByWord` as a field match, not a row, each once with its re-seat key (48 listed, the rest tallied); the first four such playbooks give `cells`, each its cell at the key's phase and the shape's primitive as `ia read` reads that address, or the nearest phase with one; a blocking rule that applies by word to any candidate, whatever the budget truncates, is reserved in `rules`; and `mandates` lists the `@mandate` records that claim a location seat or whose `authority.scope` names the seat's workspace (SPEC R17). With a `word`, only records of that word load (the seat loads whatever its word), are pointers or are tallied, and a record of another word a hop reaches is only a waypoint; the word never filters `rules`, `appliesByWord`, `cells` or `mandates`, so it hides no blocking rule that governs what loads. It is a pure function of the key and the admitted records the token reads, and only a whole-workspace token also reads the admission findings it alone may disclose (a narrowed one names that it reads none), with no root path, token, time, capture state or record body in it, only the playbook cells it delivers (SPEC R15). A record at runtime placement (band 0) is no part of it: never composition, a seed, a hop, loaded, a rule, a pointer, a tally or frontier, nor a location's declarer or claimant, and a seat at runtime placement is refused.
|
|
8
8
|
|
|
9
|
-
`position(handle, within, partial?)` (on the package root and the same subpath) is the call a host makes: it completes the partial key with `normalizeScopeKey`, resolves it, assembles the body and returns `{body, digest, hostNote}`, `digest` being graph's codec digest of the body and `hostNote` the undigested host state `{revision, capturedRevision?, previousRevision?, freshness, key}`, where freshness is `current`, `stale` or `no-capture` against the capture `ia capture` last wrote and `key` is the key used. Request text and tokens are refused as key parts, so nothing text-driven runs; two roots give one body and digest, and writing a capture moves only the note. The body's revision
|
|
9
|
+
`position(handle, within, partial?)` (on the package root and the same subpath) is the call a host makes: it completes the partial key with `normalizeScopeKey`, resolves it, assembles the body and returns `{body, digest, hostNote}`, `digest` being graph's codec digest of the body and `hostNote` the undigested host state `{revision, capturedRevision?, previousRevision?, freshness, key}`, whose revisions are authored ones (db `authoredRevision`, `capturedAuthoredRevision`, `previousAuthoredRevision`), where freshness is `current`, `stale` or `no-capture` against the capture `ia capture` last wrote and `key` is the key used. Request text and tokens are refused as key parts, so nothing text-driven runs; two roots give one body and digest, and writing a capture moves only the note. The body's revision is the authored revision of the view the scope reads (db `Snapshot.authoredRevision`), which leaves runtime-placed sources out, so one appearing moves neither it, the digest nor the note's freshness, while the handle's `revision` moves, unless it moves an input that revision keeps: a system folder it adds or a `@system` or `@schema` it declares (db SPEC D05a); `ia.position-body.v1` keeps its name. A runtime-band record that changes which authored records admission admits (one repeating an authored requirement id refuses both) leaves the capture untrusted, `no-capture`, until the next `ia capture` (db SPEC D08). Admission's findings and the database's seat and root decisions still read every placement too, so a runtime-band record that an authored loaded record's reference names also takes that reference's missing-target or missing-field-reference finding out of the body's unknowns (SPEC R15, R16). Installed state is not reported yet. The `Door`'s `position` operation serves a position (below), and `ia position` prints one.
|
|
10
10
|
|
|
11
|
-
`deliveryView(handle, within, seat?)` (also on `@inventarch/runtime/internal/next`) reads one plan's delivery view through a scope token and writes nothing: its tasks in one prerequisites-first order (ties by milestone, then task), each with the basis lines of its own and its milestone's requirements, a verdict (`exit evidence recorded (…)`, `no declared blocker` or `blocked (…)`) and the five state lines, plus review items and `next`, the `ia position` command for the first task with no declared blocker. What the scope does not read never counts as met: a requirement whose answer lies outside it blocks as unknown, and no milestone is satisfied through its tasks while one may go unread (a narrowed scope, or a refused `@task` or file, which a whole-workspace scope lists as review items). A relation row that carries a condition counts only where it holds at the coordinate the scope binds, as graph traversal decides it: the record that states it decides a provenance or artifact-set term, and a severity term where its own severity decides it at every coordinate; a term on an axis the scope binds no value for (the phase on the whole-workspace scope `ia next` reads, the severity on every scope) leaves it conditional with an unknown basis, never met, and an intent such a row could change is unknown, while one it cannot change at any coordinate reads as it does everywhere. A seat that is no plan, milestone or task, a missing or ambiguous plan and a require cycle are refusals (`NEXT_CODES`), each naming one next command. The `Door`'s `next` operation serves it.
|
|
11
|
+
`deliveryView(handle, within, seat?)` (also on `@inventarch/runtime/internal/next`) reads one plan's delivery view through a scope token and writes nothing: its tasks in one prerequisites-first order (ties by milestone, then task), each with the basis lines of its own and its milestone's requirements, a verdict (`exit evidence recorded (…)`, `no declared blocker` or `blocked (…)`) and the five state lines, plus review items and `next`, the `ia position` command for the first task with no declared blocker; its `revision` is the authored revision, so exit evidence at runtime placement moves verdicts, never the revision. What the scope does not read never counts as met: a requirement whose answer lies outside it blocks as unknown, and no milestone is satisfied through its tasks while one may go unread (a narrowed scope, or a refused `@task` or file, which a whole-workspace scope lists as review items). A relation row that carries a condition counts only where it holds at the coordinate the scope binds, as graph traversal decides it: the record that states it decides a provenance or artifact-set term, and a severity term where its own severity decides it at every coordinate; a term on an axis the scope binds no value for (the phase on the whole-workspace scope `ia next` reads, the severity on every scope) leaves it conditional with an unknown basis, never met, and an intent such a row could change is unknown, while one it cannot change at any coordinate reads as it does everywhere. A seat that is no plan, milestone or task, a missing or ambiguous plan and a require cycle are refusals (`NEXT_CODES`), each naming one next command. The `Door`'s `next` operation serves it.
|
|
12
12
|
|
|
13
13
|
The `Door`'s `read` operation, which `MACHINE_PROTOCOL` version 2 appends with `since: 2` and the MCP tool `ia_read`, serves `readBody` through the door's scope token: `ReadBodyOptions.within` binds every lookup to that scope, and in a scope narrower than the whole workspace a locator no admitted record in it answers is one plain `IA-RUNTIME-READ-UNADMITTED` that names nothing beyond it. A whole-workspace token, one whose scope is at the workspace root with no `phase` or `identities` and was issued under no narrower one (db `isCompleteScope`), such as the initial one of a door opened without a `boundary` or one `scope` issues from it without narrowing it, reads what the root view reads, so its refusal says what the workspace's sources hold, a record admission refused named with its path, line and `reason`, as `next` names one. The door's reader names a document by its workspace-relative path, never by where the server keeps the workspace. The door reads documents through `DoorOptions.read`, by default db `readWorkspaceBytes`, which admits the paths the CLI's workspace file reader admits, within the same 4 MiB, and binds adopted mounts once, when it opens, from the `.ia/workspace.json` bindings, as `ia read` does; so `ia read` returns the Door's body and digest, and refuses a document the Door refuses with the same code. The nine version 1 rows are byte-identical to 1.1.0's. `DoorOptions.protocol` is the protocol version a door serves, by default the table's: a door at version 1 refuses `read` as the unknown operation 1.1.0 refused, and the CLI's machine routes open theirs at version 1, so they stay those nine; on the CLI `ia read` reads a body.
|
|
14
14
|
|
|
@@ -16,12 +16,12 @@ The `Door`'s `next` operation, which `MACHINE_PROTOCOL` version 2 appends with `
|
|
|
16
16
|
|
|
17
17
|
The `Door`'s `position` operation, which `MACHINE_PROTOCOL` version 2 appends with `since: 2` and the MCP tool `ia_position`, takes `{within?, seat?, shape?, phase?, depth?, budget?, word?}` and answers with `{body, digest, hostNote}`, exactly what `position` returns for that partial key through the door's scope token: no params is K0, and the parts take `normalizeScopeKey`'s defaults, so one key gives one body and digest wherever the workspace is. The params are closed, so request text is refused and nothing text-driven runs. A refusal of the key carries `next`, the one command to run, which the `RuntimeError` that `position` throws also carries: the closed set of a shape or phase, the cap of a depth or budget, `ia vocabulary` for a word, or the position without a seat the scope does not hold or one at runtime placement (the overview, when that seat is the repository's own `@workspace`). The Door's own refusals keep 1.1.0's shape, and a door serving version 1 refuses `position` as an unknown operation; on the CLI `ia position` prints a position.
|
|
18
18
|
|
|
19
|
-
`renderPacket(handle, within, catalog)` (also on `@inventarch/runtime/internal/packet`) returns `{packet, digest, hostNote}`: the host-neutral position packet a host adapter renders, `ia.position-packet.v1`, its graph codec digest, and position's host note with `installed: 'unknown (no join checked here)'`, never digested. It calls `position` once at K0 and reads the rest through the same scope token: `body` is body(K0)'s digest; `seat` is the repository's `@workspace` with its sources, its system count and its steward; `mandates` are the authored `@mandate` records body(K0) lists whose `authority.participant` is an authored `@agent`, their authority fields as authored, and `participants` those `@agent` records, each once; none is no refusal (the seat line then says so), and no admitted mandate is refused; `systems` holds one pointer line per `composition.systems` reference, each with the words its registration lowers, band, steward and `ia position --seat <identity>`, or `unresolved`; `tallies` counts the authored records per word under the seat's own declared roots, none while it declares none; `intents` and `phases` are the five-shape and four-phase tables, each shape with the registered words it seeds; `commands` is the `catalog` passed in, in its order (apps/cli's `packetCatalog` builds one from its tagged COMMANDS rows); `lines` are the three SPEC lines; and `provenance` is the revision and the workspace's name. Its refusals are `position`'s. It names no absolute path, token, time, capture state or CLI version, so two roots give one packet and digest and a capture moves only the note. `entryCount(packet)` counts its entries by design §4's formula (SPEC R19). `renderHost` renders it for a host (below); nothing writes a file.
|
|
19
|
+
`renderPacket(handle, within, catalog)` (also on `@inventarch/runtime/internal/packet`) returns `{packet, digest, hostNote}`: the host-neutral position packet a host adapter renders, `ia.position-packet.v1`, its graph codec digest, and position's host note with `installed: 'unknown (no join checked here)'`, never digested. It calls `position` once at K0 and reads the rest through the same scope token: `body` is body(K0)'s digest; `seat` is the repository's `@workspace` with its sources, its system count and its steward; `mandates` are the authored `@mandate` records body(K0) lists whose `authority.participant` is an authored `@agent`, their authority fields as authored, and `participants` those `@agent` records, each once; none is no refusal (the seat line then says so), and no admitted mandate is refused; `systems` holds one pointer line per `composition.systems` reference, each with the words its registration lowers, band, steward and `ia position --seat <identity>`, or `unresolved`; `tallies` counts the authored records per word under the seat's own declared roots, none while it declares none; `intents` and `phases` are the five-shape and four-phase tables, each shape with the registered words it seeds; `commands` is the `catalog` passed in, in its order (apps/cli's `packetCatalog` builds one from its tagged COMMANDS rows); `lines` are the three SPEC lines; and `provenance` is the revision, body(K0)'s authored one, and the workspace's name. Its refusals are `position`'s. It names no absolute path, token, time, capture state or CLI version, so two roots give one packet and digest and a capture moves only the note. `entryCount(packet)` counts its entries by design §4's formula (SPEC R19). `renderHost` renders it for a host (below); nothing writes a file.
|
|
20
20
|
|
|
21
|
-
`renderHost(host, packet, digest, hostNote, target)` (also on `@inventarch/runtime/internal/packet-host`) renders that packet, with the digest and host note `renderPacket` returned, for the `claude` or `codex` host and returns the frozen `HostOutput` `{files, receipt}`; it writes nothing. No host gets an agent file: claude's `consumer` files are `.claude/rules/ia-workspace.md` and `.claude/skills/ia-authoring/SKILL.md`, its `repository` files `CLAUDE.md` and both `ia-authoring` skills, `.claude/skills/` and `.agents/skills/`; codex's are `AGENTS.md` and `.agents/skills/ia-authoring/SKILL.md`. Every file carries `PACKET_MARKER`, first in the entry file and after a skill's YAML frontmatter and a blank line, and each skill keeps the text compliance's retired 1.x renderers wrote for its target. The entry file holds the packet's sections in its field order (seat, participants, mandates, system pointer lines, captured-record tallies, intent table, phase table, command catalog, SPEC lines), under a title naming the provenance slug, one entry per list item or table row, so it renders `entryCount(packet)` entries, byte-identical for both hosts; each bare IA word token in free text, such as `@workspace`, is a code span, and an authored code span is kept as written with any token in it, so no rendered file shows a GitHub mention unless its author wrote the token touching a backtick; then the line `ia-generated <revision> <packet digest> <adapter>`, the adapter naming its version (`ia-claude@<version>`) only in the `consumer` target, so a committed repository file does not move with a release; then, in the `consumer` target only, the host note. The receipt, `ia.packet-receipt.v1`, names the host, the adapter with its version, the revision, the packet's provenance slug, the packet and body digests, the entry count, each file's path and SHA-256, the host note, and the participant and mandate identities; its `cli`, `removed`, `foreign`, `guard` and `writtenAt` are left for the caller that writes the files to set (`@inventarch/cli`'s `applyHostProjection`). An unknown host or target, or a digest that is not the packet's, is refused (SPEC R20).
|
|
21
|
+
`renderHost(host, packet, digest, hostNote, target)` (also on `@inventarch/runtime/internal/packet-host`) renders that packet, with the digest and host note `renderPacket` returned, for the `claude` or `codex` host and returns the frozen `HostOutput` `{files, receipt}`; it writes nothing. No host gets an agent file: claude's `consumer` files are `.claude/rules/ia-workspace.md` and `.claude/skills/ia-authoring/SKILL.md`, its `repository` files `CLAUDE.md` and both `ia-authoring` skills, `.claude/skills/` and `.agents/skills/`; codex's are `AGENTS.md` and `.agents/skills/ia-authoring/SKILL.md`. Every file carries `PACKET_MARKER`, first in the entry file and after a skill's YAML frontmatter and a blank line, and each skill keeps the text compliance's retired 1.x renderers wrote for its target. The entry file holds the packet's sections in its field order (seat, participants, mandates, system pointer lines, captured-record tallies, intent table, phase table, command catalog, SPEC lines), under a title naming the provenance slug, one entry per list item or table row, so it renders `entryCount(packet)` entries, byte-identical for both hosts; each bare IA word token in free text, such as `@workspace`, is a code span, and an authored code span is kept as written with any token in it, so no rendered file shows a GitHub mention unless its author wrote the token touching a backtick; then the line `ia-generated <revision> <packet digest> <adapter>`, the adapter naming its version (`ia-claude@<version>`) only in the `consumer` target, so a committed repository file does not move with a release; then, in the `consumer` target only, the host note. The receipt, `ia.packet-receipt.v1`, names the host, the adapter with its version, the revision, the packet's provenance slug, the packet and body digests, the entry count, each file's path and SHA-256, the host note, and the participant and mandate identities; its `cli`, `removed`, `foreign`, `guard` and `writtenAt` are left for the caller that writes the files to set (`@inventarch/cli`'s `applyHostProjection`). An unknown host or target, or a digest that is not the packet's, is refused (SPEC R20). The receipt may also carry the optional authored-generation sections, `generated`, `definitions` (typed `PacketDefinition` rows: an `OperationDefinition` or a `HarnessDefinition`), `hooks` (`HostHookDeclaration` rows) and `unsupported` (an authored agent profile, playbook or hook the host does not render, with the reason), and `HostOutput` an optional `hooks`; `renderHost` fills none of them, and a receipt without them is a receipt from before authored generation. The `./internal/packet-host` subpath also exports `inline`, `code` and `prose`, the line helpers the packet writes free text with, for workspace-runtime's host generators.
|
|
22
22
|
# Editor and authoring consumers
|
|
23
23
|
|
|
24
|
-
`@inventarch/runtime/editor` exposes `EditorWorkspace`: cache-free local source capture, versioned overlays, diagnostics, completion, source actions, inspector/graph projection, schema-backed drafting and create-only candidate validation. `ViewStamp` binds opaque source actions to one root owner and generation; refresh/update invalidates prior actions. This is a privileged local facade, not a replacement for scoped remote Door APIs. It performs no file creation or network requests.
|
|
24
|
+
`@inventarch/runtime/editor` exposes `EditorWorkspace`: cache-free local source capture, versioned overlays, diagnostics, completion, source actions, inspector/graph projection, schema-backed drafting and create-only candidate validation. It also re-exports language's schema-aware source edits (`draftSource`, `draftValue`, `encodeValue`, `appendRecord`, `addRelationship`, `setField`, `annotateRecord`, `relationshipConsent`, `SourceEditError`) and `VERB_PHRASES`, for hosts that may not import the language package; `EditorWorkspace.draft` reports a form value `draftSource` refuses with `SourceEditError` (one that would add a condition or a comment, or open a string, prose or list it does not close) as `EditorError` 'invalid'. `ViewStamp` binds opaque source actions to one root owner and generation; refresh/update invalidates prior actions. This is a privileged local facade, not a replacement for scoped remote Door APIs. It performs no file creation or network requests.
|
|
25
25
|
|
|
26
26
|
`@inventarch/runtime/authoring` owns protocol-1 disclosure/request/proposal/receipt/event validation, digests and bounded same-origin HTTPS transport for separately configured account services. Applications own auth tokens, service state, model calls and effects. The extension and separate API use these same contracts; no native brief/spec/plan vocabulary is introduced.
|
|
27
27
|
|
package/SPEC.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Runtime specification
|
|
2
2
|
|
|
3
|
+
`inertCommandRoot(root)` identifies roots whose letters, numbers, spaces and `._-/:` punctuation can be repeated in a shell command, with spaces double-quoted. Windows path separators are accepted on Windows except a UNC backslash prefix, whose JSON quoting does not preserve its path meaning across native shells. Other characters require a caller to omit the root and explicitly request execution from the workspace directory. This helper supplies no authority and changes no mandate decision. `admissionReport` retains its stricter unquoted-root contract.
|
|
4
|
+
|
|
3
5
|
## Optional topical context assembly
|
|
4
6
|
|
|
5
7
|
`context` accepts `ContextOptions.ranking` and the Door accepts `params.ranking`: `native` (default) preserves the existing procedure-first order; `topical` reserves all applicable blocking governance first, then orders other admitted candidates by the existing scoped text-search score, using native entry order for ties. Packets identify this opt-in mode with `ranking: "topical"`. It changes neither candidate eligibility, scope, coordinate validation, blocker overflow refusal nor exclusive execution selection. It is a retrieval option, not a semantic accuracy guarantee.
|
|
@@ -74,7 +76,7 @@ The public `/authoring` boundary also owns chat-turn, chat-reply and conversatio
|
|
|
74
76
|
|
|
75
77
|
The public `/editor` `EditorWorkspace.composition(stamp)` projection describes available captured adoptions by qualified source prefix, exact revision, source/record counts and systems. It reports direct adopted schema, registration and typed-reference uses for admitted local records using the shared registry/resolver; refused occurrences remain in the ordinary view. Source links and the projection use the existing owner/generation stamp. `localRevision` hashes ordered local non-floor `{path,text}` bytes using the adoption digest contract, including unsaved overlays, solely for host navigation matching. This neither merges identities nor mounts/replaces source, grants writes, performs remote discovery or describes transitive governance. Hosted publication requires the separate publication/access contract.
|
|
76
78
|
|
|
77
|
-
Entry contract (2026-09-24): `/entry` exports `isEntry(argv1, moduleUrl)`, which a package binary calls with `process.argv[1]` and `import.meta.url` to decide whether it is the process entry. The invoked path is compared first and real paths only when it misses, because npm's `.bin` entries, global installs and pnpm's store links reach an entry through a link while Node loads it from its real path. A path that names no file (missing, through a file, or with a name too long) is not the entry; any other failure to resolve one throws rather than answering "not the entry". An argument Node resolves further, such as an extensionless path or a package directory, names no file itself, so a binary started that way does not recognise itself as the entry and exits 0 having done nothing. It imports only Node built-ins, and the root index re-exports it.
|
|
79
|
+
Entry contract (2026-09-24): `/entry` exports `isEntry(argv1, moduleUrl)`, which a package binary calls with `process.argv[1]` and `import.meta.url` to decide whether it is the process entry. The invoked path is compared first and real paths only when it misses, because npm's `.bin` entries, global installs and pnpm's store links reach an entry through a link while Node loads it from its real path. A path that names no file (missing, through a file, or with a name too long) is not the entry; any other failure to resolve one throws rather than answering "not the entry". An argument Node resolves further, such as an extensionless path or a package directory, names no file itself, so a binary started that way does not recognise itself as the entry and exits 0 having done nothing. It imports only Node built-ins, and the root index re-exports it. `tools/entry/is-entry.mjs` repeats it without package dependencies and its parity test compares their complete function bodies.
|
|
78
80
|
|
|
79
81
|
Machine protocol description (2026-09-29, spec-0012): `MACHINE_PROTOCOL` (`src/machine-protocol.ts`, exported from the package root) describes the Door operations: the nine of version 1, and since version 2 `read`, `next` and `position` (R12 version 2 refinements below). For each it records a summary, a description, the parameter JSON Schema, the result, the refusals with their next action, an example that returns `ok: true` on `packages/compliance/fixtures/loop` (for `next`, which that fixture's records give no plan to read, on `tests/fixtures/delivery/base` laid over the conformance corpus), and the MCP tool that serves it. CLI help and the MCP door's `tools/list` project it, and in this source tree so does the generated `docs/reference/cli/machine-protocol.md`, which the public candidate does not carry. It is data and never validates; the Door keeps its own checks. `tests/select-door.test.ts` fails when the table's operation names or parameter keys, nested ones included, differ from the ones the Door names when it refuses an unknown key.
|
|
80
82
|
|
|
@@ -90,12 +92,24 @@ R12 protocol version 2 refinement, position (2026-10-08, door-position-operation
|
|
|
90
92
|
|
|
91
93
|
This boundary also owns the neutral repository inventory helpers used by existing documentation and private review consumers. `gitFiles` executes only the fixed local `git ls-files --cached --others --exclude-standard -z` query, deduplicates/sorts the result and refuses subprocess/output limits (10 seconds,16MiB). `ownerOf` preserves the existing root/package/app/tool/example/distribution/native owner path mapping exactly; it selects no catalogue, executable, quality policy or queue. Tool imports remain compatibility exports. Consumer source capture must still validate file bytes, aliases and scope; a path listing is not source admission or authority. Status (LKI-01, implemented at 22cc1d8d, not qualified): `ownerOf` names its root-owned top-level directories by stem, so no runtime source or test carries the CI-configuration directory as a path segment and the cache-safety invariant in `tools/testing/inventory.test.ts` (only tools tasks read CI configuration) holds again; the mapping and both exports are unchanged. Evidence: `tools/testing/inventory.test.ts` failed at 3f0e9853 (`runtime:test` classified as a CI-configuration reader) and passes at 22cc1d8d.
|
|
92
94
|
|
|
93
|
-
Mandate authority (2026-10-06, position-and-projection items 2c and 13): `src/mandate-modes.ts`, exported from the package root, publishes `MOVES` (the five kernel moves in kernel order), the frozen `MODE_MOVES` table (read→Observation, validate→Verification, author→Synthesis, effect→Execution, re-seat→Delegation), `mandateAuthorityOf(record)`, which reads a compiled `@mandate`'s `authority` section (participant, moves, scope, excluded-words, covers) and refuses a non-mandate or a malformed field with IA-RUNTIME-REQUEST-INVALID, and `mandateRefusal(mandate, mode, words)`, which returns undefined when the mandate permits the mode for the words and otherwise `{code, message, next}`: IA-RUNTIME-MANDATE-MOVE when the mode's move is not among the declared moves, IA-RUNTIME-MANDATE-WORD when a word is excluded, and `next` exactly one catalog command, `ia inspect <mandate identity> --edges both`. A mandate without `authority.moves` restricts no move; a declared list admits only the moves it lists and must name at least one (an authored `moves []`
|
|
95
|
+
Mandate authority (2026-10-06, position-and-projection items 2c and 13): `src/mandate-modes.ts`, exported from the package root, publishes `MOVES` (the five kernel moves in kernel order), the frozen `MODE_MOVES` table (read→Observation, validate→Verification, author→Synthesis, effect→Execution, re-seat→Delegation), `mandateAuthorityOf(record)`, which reads a compiled `@mandate`'s `authority` section (participant, moves, scope, excluded-words, covers) and refuses a non-mandate or a malformed field with IA-RUNTIME-REQUEST-INVALID, and `mandateRefusal(mandate, mode, words)`, which returns undefined when the mandate permits the mode for the words and otherwise `{code, message, next}`: IA-RUNTIME-MANDATE-MOVE when the mode's move is not among the declared moves, IA-RUNTIME-MANDATE-WORD when a word is excluded, and `next` exactly one catalog command, `ia inspect <mandate identity> --edges both`. A mandate without `authority.moves` restricts no move; a declared list admits only the moves it lists and must name at least one (admission refuses an authored `moves []` since lane D, compliance C05; one handed in all the same is IA-RUNTIME-REQUEST-INVALID here, never a lockout); excluded words are refused whatever the moves; the move is judged before the words. Both codes are registered in RUNTIME_CODES and covered by the compliance runtime fixtures over the conformance sample-mandate. No CLI command consults a mandate yet: the authoring verbs land in a later milestone, and a mandate adds closed restrictions only; it never grants host permissions.
|
|
96
|
+
|
|
97
|
+
R21. Mandate resolution (2026-10-09, position-and-projection §5, §11 and items 2c, 13 and 17; plan amendments A8, C1, C2 and C10; operator decisions OD1 and OD2): `src/mandate-modes.ts`, on the package root and the `./internal/mandate-modes` subpath, publishes `governingMandates(handle, within, options?)`, `defaultActor(handle, within, workspace)` and `profileRefusal(mandates, mode, words?)` with the `GoverningOptions`, `GoverningMandate`, `DefaultActor`, `ProfileMandate` and `ProfileVerdict` types: the one answer to which `@mandate` governs an actor here, for the CLI's mandate profile and the re-keyed edit guard of milestone generation-binding. Every read goes through the scope token `within` (the snapshot and its membership, the declared roots, directed views and db `resolveSeat`), so a narrowed scope resolves only what it admits; a record at runtime placement (band 0) is never read, and only authored mandates (band 100) govern, so an adopted or floor mandate never does, whatever it claims. Only the workspace's closure is read, as position reads it (A8): the floor and adopted bands and the members of the workspace's own declared roots, or, while it declares none, of the roots no workspace declares, so a mandate under another workspace's root never governs or names a participant there. None requires a clean scope: a workspace with admission errors resolves the records admission admitted, except that while an authored `@mandate` fails admission every resolver that reads a handle fails closed (R23). Nothing is written, and every result is frozen. A missing token is IA-RUNTIME-REQUEST-INVALID, and an unknown, stale or closed one keeps its database code. `governingMandates` returns the governing mandates by identity (each of band 100, so in C1's band-then-identity order), each `{identity, band: 100, participant?, binds?, moves?, scope, covers?, excludedWords?}`: its authority as `mandateAuthorityOf` reads it, `participant` the `@agent` identity its `authority.participant` field reference resolves to (the reference as authored, `@agent <name>`, when no admitted record answers it), `scope` the `@workspace` identity each `authority.scope` reference resolves to, each once, or the reference as authored, and `moves`, `covers` and `excludedWords` present exactly when the record states the key (a declared empty list is stated), so that, `band` and `binds` aside, an entry for a workspace equals the position packet's entry for the same mandate. Its `options` are `{actor?, path?, workspace?, fold?}` (`fold`, the key applied to a path and each `authority.covers` selection before they are matched, is R22's); `workspace`, an admitted `@workspace` identity, also names the closure read. Without it the closure is the one position reads for the same location seat: with `path`, that of the workspace position seats the path in (the `@workspace` the path is declared at, else, of the repository's own `@workspace` and the one whose declared root holds the record the path is declared at, the first whose closure holds that record), so that the closure is the one position reads even where two workspaces declare roots and the repository has none of its own (only the closure: a path's governing mandates are those that claim it, not every mandate scoped to the seated workspace that position's location-seat governance also lists); with neither, the repository's own `@workspace`'s. With `workspace` or `path`, a workspace-relative path, a mandate governs when its `authority.scope` names the workspace or its `authority.covers` selects the path (db D02b claimants, graph G06c's selection dialect), either one sufficing; a mandate that states neither key with a value (a declared empty `scope []` or `covers []` locates nothing, so an empty list never lifts a restriction) is located by its participant alone and governs wherever that participant acts, with `actor` when its participant is the actor and without one whenever it names a participant, so one that names no participant either governs only where no location is asked. With neither, every authored mandate of the closure governs. `actor`, an admitted `@agent` identity, drops no mandate that governs the workspace or path: each entry then carries `binds`, true when its participant resolves to the actor or it names none (a mandate naming no participant binds whoever acts), false when it binds another participant. C1 lists the participant, the scope and the covers as alternatives; the resolver reads the scope and the covers as where a mandate governs and the participant as whom it binds, so one participant's mandate never grants another a move, a mandate naming no participant or no location is never dropped, and an actor that none of the mandates governing here binds is refused (C10) rather than read as ungoverned. An `actor` or `workspace` that is not an admitted record of its word is IA-RUNTIME-REQUEST-INVALID, as is a governing mandate whose authority `mandateAuthorityOf` refuses (a child under an authority field, or a conditional or fragment-bearing one; a declared `moves []` too, which admission refuses since lane D, compliance C05, so the reader refuses it only as defence in depth), the error's `where` locating the record (R23); a mandate that does not govern is never read. `defaultActor` (OD1) returns `{actor?, by?, participants, actors, reason?, refusal?}`: `participants` the authored `@agent` records that an authored mandate of the workspace's closure whose `authority.scope` names the workspace names as participant, each once, by identity, as the position packet lists them when K0 seats at the workspace; `actor` the `@agent` the workspace's `composition.steward` resolves to when that is an authored (band 100) record (`by: 'steward'`, a participant or not; ia init names its participant there), else the only participant (`by: 'participant'`): an installed steward names no actor, as if none were stated (milestone 6 review C2-R1, so the CLI's profile and the edit guard give one answer); `actors` the identities a command may be told to act as, sorted, the participants and the authored steward. With several participants and no steward there is no actor: `reason` names the participants and the choice, the workspace's `composition.steward`, and `refusal` is `{code: IA-RUNTIME-MANDATE-ACTOR, message: reason, next: 'ia position --seat <workspace> --shape governance'}`, which a mandate-gated command returns. With no participant and no steward there is no actor and a `reason` but no refusal: the command's profile is resolved without an actor, every mandate that governs there is judged, and the command runs unrestricted, with profileRefusal's notice, only when none governs. Each reason says whether the workspace states no `composition.steward`, one that resolves to no admitted `@agent`, or one that is no authored `@agent`. A workspace that is not an admitted `@workspace` of the scope is IA-RUNTIME-REQUEST-INVALID. `profileRefusal` judges `mode` and its target `words` against the governing mandates, each a `GoverningMandate`, a `MandateAuthority` or a compiled `@mandate` it reads through `mandateAuthorityOf`, and returns the `ProfileVerdict` `{refusal?, notice?}`, the mode allowed exactly when it holds no refusal. A mandate whose `binds` is false is left out of the judgement; when every one is, no mandate here binds the actor, and the verdict is IA-RUNTIME-MANDATE-ACTOR, naming each mandate with the participant it binds. The rest are never pooled across participants: when they name more than one participant, the verdict is IA-RUNTIME-MANDATE-ACTOR too, naming each with its participant. Every remaining mandate that names a participant requires an established actor binding (`binds: true`); a named participant with `binds` absent refuses every mode as IA-RUNTIME-MANDATE-ACTOR, even when it is the only participant. A path-only mandate therefore cannot supply grants to an unidentified CLI actor. Participantless mandates retain their existing move restrictions. Callers passing a compiled mandate or a plain `MandateAuthority` must establish the actor binding before judging a named participant's grants. Then the move is judged: the mode is allowed when any remaining mandate grants its move, by listing it or by declaring no moves, else IA-RUNTIME-MANDATE-MOVE, whose message gives each one's moves and the move the mode needs. Then, only when words are given, a word any of them excludes is IA-RUNTIME-MANDATE-WORD, naming each excluding mandate with the words it excludes. Each refusal's `next` is exactly one command, `ia position --seat <mandate identity> --shape governance` for the first mandate it names (design §11, `ia scope` read as `ia position`), not `mandateRefusal`'s `ia inspect`, which is unchanged. That next command, like `defaultActor`'s, is a read, which a command gated on the profile must leave ungated so that the refusal can be followed: an actor that no governing mandate binds is refused every mode, read included. No governing mandate restricts nothing: the verdict is `{notice}`, which says a mandate only adds restrictions, whatever the mode and words. An unknown mode, or a declared empty move list on any mandate, bound or not, is IA-RUNTIME-REQUEST-INVALID. IA-RUNTIME-MANDATE-ACTOR joins RUNTIME_CODES and MANDATE_CODES, and the compliance runtime fixtures observe it and both profile refusals over a copy of the conformance corpus that gives the foundation workspace two participants. This repository's `language-mandate` (`.ia/src/participant.ia`) grants all five moves (C2, OD2), so `ia capture`, `ia project` and `pnpm projections:generate`, effect commands (Execution), pass the profile here; its `CLAUDE.md` mandate entry lists the five. `tests/mandate-resolution.test.ts` pins: a fresh init's steward participant as the default actor, its mandate governing, every mode allowed and its entries and participants the packet's, and its only participant as the actor without a steward however many mandates name it; a mandate without Execution refusing effect with its governance position, whose key resolves; `authority.covers` claiming a path, an adopted claimant left out, each governing mandate saying whether it binds the actor and each actor held to its own, a workspace and a path either sufficing, and a mandate that only covers paths not governing without one; a steward that no governing mandate binds refused in every mode with IA-RUNTIME-MANDATE-ACTOR, and nothing restricted where no mandate claims the path; a mandate under another workspace's root neither governing nor naming a participant, as position lists the governance; a path alone read in the closure of the workspace position seats it in, where two workspaces declare roots and the repository has none of its own; a mandate stating neither scope nor covers governing wherever its participant acts, with or without a steward; two participants' mandates refused rather than pooled without an actor, and each actor held to its own; a mandate naming no participant binding the steward and governing without an actor, whatever its participant resolves to; several participants without a steward naming no actor and refusing with the choice, a steward that resolves to no admitted `@agent` reported as such, and no mandate naming no actor and refusing nothing; only the authored participants of authored mandates counted; no mandate restricting nothing, with the notice; a workspace with admission errors resolving, an unresolved participant kept as authored; excluded words judged only when given, after the move, and declared empty lists and repeated or unresolved scope references rendered as the packet renders them; any one of several mandates granting a move and any one excluding a word, the first named next, a mandate binding another left out, two participants' mandates never pooled and every move list judged; reads through the token alone, runtime placement left out for a mandate and a steward, an unknown token keeping its database code, and the refusals; and this repository's participant as its default actor with all five moves. The CLI's mandate profile consults `governingMandates`, `defaultActor` and `profileRefusal` for its gated commands, and the edit guard (`evaluateMandateGuard`, R22, which steward-hook's `--hook` mode calls) consults all three for each edit an authored `@hook` selects, both keying a target path and each `authority.covers` selection with db `pathKey` (`GoverningOptions.fold`, R22), which folds case on win32 and darwin whatever the volume, so there a covers entry claims a path in any letter case and, on a case-sensitive directory, also a sibling spelled in another case, while on other platforms case is significant; agent-profile generation reads `governingMandates` for a profile that names no mandate; no Door operation does, and a mandate grants no host permission.
|
|
98
|
+
|
|
99
|
+
R22. Mandate guard (2026-10-11, revised after the guard reviews; milestone generation-binding plan amendments C9 and C10; operator decision OD4): `src/mandate-guard.ts`, on the package root, publishes `evaluateMandateGuard(handle, within, request)` and `mandateGuardSelects(request)` with the `MandateGuardRequest` and `MandateGuardDecision` types, the decision steward-hook's `--hook` mode asks for one edit an authored `@hook` may select; `src/mandate-modes.ts` adds `seatedWorkspace(handle, within, path)`, the workspace position seats a path in. The request carries the hook as hook generation declares it (identity, tools, paths, message), the event's tool, the edited file's workspace-relative spellings, the event's `agent_id` and `agent_type` as received, and an optional `fold`. The hook decides an edit only when its `hook.paths` select a spelling of the file and its `hook.tools` name the tool (C10 as accepted), in the G06c dialect, where only `*`, `?` and `/` are special; any other edit is allowed. A workspace guards its governing records (the `.ia/src` sources of its hooks, mandates and profiles) by selecting them in a hook, such as `paths [".ia/src/**"]`; nothing selects them automatically. The actor is resolved first (OD4): an event that carries `agent_id` is a subagent, acting as the `composition.agent` of the one authored `@agent-profile` named exactly its `agent_type`, and a subagent no such profile names, a malformed `agent_id` or a missing `agent_type` is refused with IA-HOOK-IDENTITY-UNAVAILABLE at every path the hook selects, governed or not; any other event, a main session launched with `--agent` included, acts as `defaultActor` of the workspace position seats the path in. The mandates that govern a decided edit are `governingMandates` for the path and that workspace (C1), so a mandate scoped to the workspace governs every path a hook selects in it, beside those whose `authority.covers` claims the path; with none, an established actor and the main session are allowed. The edit is allowed when `profileRefusal` allows the author mode (Synthesis) for that actor: a governing mandate that binds it, its participant or one naming no participant (which binds every established actor, C1's `binds`), grants Synthesis; otherwise the decision is IA-HOOK-NOT-MANDATED with the profile's one next command, `ia position --seat <mandate> --shape governance`. An ambiguous default actor (several participants, no steward) is IA-HOOK-IDENTITY-UNAVAILABLE naming the workspace's governance position, and a main session with no default actor under a mandate that names a participant is IA-HOOK-IDENTITY-UNAVAILABLE; a governing mandate whose authority `mandateAuthorityOf` refuses is IA-HOOK-MANDATE-UNAVAILABLE, naming that admitted mandate's governance position; and while an authored `@mandate`, or a record a mandate resolution reads, fails admission (R23) every edit the hook selects, whoever acts, is IA-HOOK-MANDATE-UNAVAILABLE, naming the refused record's `path:line` and admission finding and `admissionReport(request.root)` (steward-hook passes the registration's root, printed only when inert unquoted, else the command is run from the workspace root), since `ia validate` and every other mandate-gated command refuse in that state and a position cannot seat at a refused record; it branches on the refusal's marked cause (`isAdmissionRefusal`), and the decision then carries the error's `where`. An edit the hook does not select is still allowed. Each refusal's message opens with the hook's message. Excluded words are not judged here. `HOOK_CODES` gains IA-HOOK-DECLARATION-UNAVAILABLE, IA-HOOK-MANDATE-UNAVAILABLE and IA-HOOK-NOT-MANDATED. `GoverningOptions.fold`, a key applied to the path and each `authority.covers` selection before they are matched (db `pathKey`, which folds case on win32 and darwin whatever the volume, so on a case-sensitive directory there a sibling spelled in another case is claimed too), makes a mandate claim every spelling the key folds alike; without it the claims stay db's case-sensitive G06c claimants.
|
|
100
|
+
|
|
101
|
+
R23. Refused mandates fail closed (2026-10-12, milestone generation-binding lane D; operator ruling: fail closed for any `@mandate` that fails admission, reject `moves []` in the schema, the refusal names the record, `ia position` and hand edits still work; D9, the lead's ruling on the D8 probes; revised after the lane D review and its rechecks, D2-R2, D2-N1, D2-N2 and F1-F3). Admission drops a record it refuses from the graph, so a resolver that read only admitted records read a mandate that failed admission as absent and its restrictions as lifted. `src/mandate-modes.ts`, on the package root and the `./internal/mandate-modes` subpath, publishes `refusedMandates(handle)` with the `RefusedMandate` type: every `@mandate` of the workspace's own authored sources (band 100) that failed admission, frozen, by path then line, each `{identity?, path, line, code, message, unidentified?}`, read from db's `unadmitted` (db D15), whose own admission finding gives `code` and `message` (review D-N5: no finding is matched back from the report): (a) one admission refused, as db's `refused` names it; (b) both occurrences of a mandate identity that ties at band 100; (c) one a file refused whole declares, by a language error or a duplicate requirement id, as db's own parse of the file reads its headers (with spec 3.1's identity), as its captured text shows a header the parse could not read (a line opening `@mandate`, inside a parsed record too), or as a `@mandate` token on a line no parsed record spans that the language scanner does not read as a whole-line comment (db D15's readings, with no identity; the comment classification correction below); and (d) review D2-R2, every occurrence db lists with no word, a line of a file refused whole that may declare a record db cannot identify and so may be a mandate, marked `unidentified: true`, except at a line db also lists a mandate at, which counts once, as that mandate (review D2 recheck F3). The principle: an authored file refused whole whose records db cannot all identify fails closed, as far as db's readings of its text reach; db D15 states exactly which lines they read and the one shape they still miss, an at sign behind another character inside a parsed record's lines. A record is a mandate when its word is `mandate` or its identity's facet is, or when db names no word. An error inside the lines of a record db identifies stays that record's, so an error inside a parsed `@agent` adds no possible mandate. The band is the one db reads from the source's placement, as capture membership and `governingMandates` read it, so a mandate refused in an installed base (band 90) is never one: it never governs. D9: it also publishes `refusedDependencies(handle)` with the `RefusedDependency` type, every admitted authored (band 100) record whose resolution a refused authored record would change, frozen, by dependent, field, path and line, each `{dependent, field, reference, identity?, path, line, code, message}`: a `@mandate` whose `authority.participant` names a refused `@agent` or whose `authority.scope` names a refused `@workspace`, and a `@workspace` whose `composition.steward` names a refused `@agent` (the probes showed a refused steward or participant switching the default actor to a looser participant, and a refused workspace leaving a scope-only mandate governing nowhere). The reference is matched as authored, by word and name lowercased, against db's `unadmitted` entries of band 100 that carry a name, so a schema refusal, a tie and a file refused whole all count, the last through its parsed headers and through every line opening `@agent <name>` or `@workspace <name>`, inside a parsed record too (review D2-N2); an occurrence db lists with no word needs no D9 reading, since (d) already fails every resolver closed on it, before any dependency is named; a reference no authored record answers at all, one to a record refused in an installed base, and a refused `@agent` or `@workspace` that no admitted mandate or workspace names are none, and keep today's reading. `requireMandatesAdmitted(handle, within)` raises, while either returns anything, IA-RUNTIME-REQUEST-INVALID marked `admission: 'refused'` on the error (`isAdmissionRefusal(error)` reads it, the one test callers branch on; review D-R2: never `reader.get` of the located identity, which for a refused authored record shadowing an admitted one of another band would find that one). The decision reads db's root view, whatever `within` binds, since a refused record belongs to no scope and its scope, covers and participant cannot be trusted, so the fail-closed is workspace-wide; what the error discloses follows the token (review D-N4, db PT5): through a whole-workspace token (`isCompleteScope`) it names the first refused mandate db identifies, else the first `unidentified` one, as "an unidentified record at `path:line`, possibly a @mandate", counting the rest by kind (review D2-R2), else the first dependency (the dependent record, its field and reference), with the refused record's identity, `path:line`, admission code and message and how many more failed, and locates the refused record as `where`; through a narrowed token it names no path, record or finding and carries no `where`. An unknown token keeps its database code. `governingMandates`, `seatedWorkspace` and `defaultActor` call it first. `profileRefusal` and `mandateRefusal` read no handle and keep their own empty-move-list refusal as defence in depth. `RuntimeError` gains optional fourth and fifth constructor arguments, a frozen `where` `{path, line, identity?}` (the `RuntimeWhere` type), which this refusal and every `mandateAuthorityOf` refusal carry, so the CLI and the guard locate the record without reading the message, and `admission`. `src/mandate-guard.ts` publishes `admissionReport(root?)`, the admission report command (`ia report`, the version 1 machine route no mandate gates) for a workspace root: `ia report --root <root>`, with forward slashes on win32, only when every character of the root is inert unquoted in sh, PowerShell and cmd (letters, digits, `.`, `_`, `-`, `/`, `:`), else `ia report` with `fromRoot`, run from the workspace root, so no root is printed with a shell-active character and none is wrapped in double quotes, where `$` and backticks stay live (review D-R1, D-N2). The edit guard branches on `isAdmissionRefusal`: a refused record names `admissionReport(request.root)`, an admitted mandate whose authority the resolver cannot read its governance position. Position, `body(K)`, the packet renderer and every Door operation never call these resolvers, so they keep running and simply render no mandate for a refused record. `tests/mandate-resolution.test.ts` pins (a), (b) and (c); (d) for a header spelled `@ mandate`, a full-width at sign, UTF-16LE text without a byte-order mark and a stray top-level line, each failing closed located at its line, a spaced or joined header after a named first header with no pragma, a spaced header indented inside a parsed record and a full-width one inside a prose value left open (recheck F1); none for an error inside a parsed `@agent`, an empty file or a file of comments alone, but one for a malformed header after a comment (F2); a line the token scan reads as a mandate counted once (F3); and a mandate db identifies named before an unidentified record; D9 through an `@agent` tie, a `@workspace` tie and a participant `@agent` authored only as a header a file refused whole shows (review D2-N1); a parse error in a file declaring no mandate and a mandate refused in the installed base finding none, every resolver failing closed through a whole token with the first mandate located and the cause marked, a narrowed token disclosing nothing, the facet test, the shadowing override, the D9 participant, scope and steward cases, both dependencies of one agent and their order after a refused mandate, no fail-closed for an unrelated refused `@agent`, a never-authored participant or a refused installed `@agent`, and `admissionReport` over roots holding `&`, `(`, `$`, a backtick, a space, a quote and a non-ASCII letter; `tests/mandate-modes.test.ts` pins `where` on `mandateAuthorityOf`'s refusals.
|
|
102
|
+
|
|
103
|
+
R23 comment classification correction (2026-10-13, revised after its review): a genuine full-line attribution comment is not a declaration and does not supply a refused mandate through db D15's raw-token reading. The guard itself is unchanged. Unidentified lines, including conflict markers and disguised declarations, still fail closed across the workspace, as do refused mandate identity facets and agent/workspace resolution dependencies. A parse error anywhere in the attributed file, the attributed record included, continues to appear in admission findings without fabricating a mandate from its attribution. Where db D15 still lists the comment's `@mandate`, a genuine attribution still fails the workspace closed: in a file that holds a bare CR anywhere, inside `"""` prose (as after a `"""` no line closes), and on line 1 after a byte-order mark in a file with no pragma. `tests/mandate-resolution.test.ts` verifies the original restrictive profile remains effective, and that the unidentified/dependency refusals survive a preceding attribution comment and name the record after it, never the comment.
|
|
94
104
|
|
|
95
105
|
Body reader (2026-10-07, position-and-projection §5, item 23 and constraint IM-43): `src/locator.ts` reads the body behind a locator for `ia read`; the package root exports `parseLocator`, `readBody`, `SOURCE_LOCATORS` and `READ_CODES` with the `Locator`, `ReadBody`, `ReadBodyOptions`, `ReadCode`, `ReadRefusal` and `ReadResult` types, and the `./internal/locator` subpath also carries `fragmentText`, `markdownSection` and `headingAnchor`. `parseLocator(text)` returns the locator a text spells, or undefined: `<identity>` (a canonical `system/kind/facet/name` identity), `<identity>#<phase>/<Primitive>` (a cell address of the closed phases and primitives), `<identity>#<REQ-ID>` (a requirement id), or `<path>:<line>` (the last colon splitting the path from a positive safe-integer line). `readBody(handle, locator, {read, mounts?, includeRuntime?, within?})` reads in the handle's root view, or in the scope `within` names (R12 version 2 refinement), and returns `{ok: true, body: {locator, identity, kind, path?, digest, body, certified: false}}` or one `{ok: false, code, message, identity?, path?, line?, file?, reason?}` refusal; a locator that spells no form throws IA-RUNTIME-REQUEST-INVALID. A line locator reads the innermost admitted record whose source span holds the line. A cell or requirement locator reads the record, never its document: `fragmentText`, the text of the record's cells at that address in source order, or of its requirement with that id; `resolveMention` checks a request mention's fragment with the same function, so its refusal is unchanged. Otherwise a record whose word carries a source locator (`SOURCE_LOCATORS`: `work.source` for `@plan`, `@spec`, `@milestone`, `@task` and `@decision`, `reference.document` for `@authoring-guide`, `template.resource` for `@template`, each a text field its schema declares) and states it unconditionally reads the document it names, kind `document`, and any other record reads its own body (`bodyOf` in `src/render.ts`), kind `record`: the part of what recordText renders that the record states rather than structures, its `meaning.says`, a `@system`'s head `describes`, and nothing for a `@schema`. All five work schemas declare `work.source`, and each word reads it as a locator (decision work-source-locator, 2026-10-08, widening row 2d from `@plan` and `@spec`), since a plan's records name their sections of its document with it. A document path is canonicalized and must stay inside the record's tree, db `sourceTree` (D02a): the workspace root for the workspace's own `.ia/src`, and a package's or an installed store's directory as it is. An adopted mount's sources carry the `.ia/adopted/<id>/<revision>` label of a directory that does not exist, so its documents are read from the directory `mounts` binds that label to, which a host builds from db `adoptedBindings`; a record of an adopted mount `mounts` does not bind has an unreachable document. A document is outside an adopted mount's revision pin, which covers only the mount's `.ia/src` sources. The host supplies `read(path)`, which returns one workspace file's bytes at its canonical workspace-relative path and throws for a path it does not admit, as R10's hosts hold the root boundary; runtime itself reads no file. The bytes must be UTF-8. A `#<anchor>` on the locator of a `.md` or `.markdown` file, in any case, selects `markdownSection`: from the ATX heading whose `headingAnchor` equals it, to the next heading of the same or a higher level, a repeated anchor numbered `-1`, `-2` in document order. `headingAnchor` slugs a plain-text heading as GitHub's slugger does: an inline link keeps its text, letters are lowercased, characters other than letters, marks, decimal and letter numbers, connector punctuation, `-` and space are dropped, and spaces become `-`. The heading is not rendered first, so underscore emphasis, entity and character references, inline HTML and reference links keep their markup, and such a heading may have another anchor on GitHub. A leading byte order mark is not part of the first heading and stays in the section. Headings in fenced code are ignored, and setext headings and headings in list items or block quotes are not read. A document is read in time linear in its length, up to a logarithmic factor in how deeply its containers nest (2026-10-08, milestone critique): a 4 MiB document read on the long-lived MCP door must not stall it, as the regular expressions these scanners replaced did on a long run of spaces or unclosed brackets in a heading and the per-marker reread did on one line of nested list markers or on blank lines inside deeply nested items. Each line is scanned once from its end (its last character that is not a space, its last terminator, where a thematic break may start); a line is read as an ATX heading, and a heading's inline links as their text, in time linear in its length; each list or quote marker a line opens or continues is read in time linear in its own width; and a line left blank after its container prefixes continues every open list item up to the first block quote or empty item, the only containers a blank line ends (an empty item is always the innermost), found by a binary search over the open quotes. `tests/locator.test.ts` checks the growth ratio rather than a time, at sizes a quadratic reader still finishes in seconds, so a regression fails instead of stalling the suite. `digest` is the SHA-256 of the body's UTF-8 bytes, so a whole document's digest is its file's. A read never certifies its body. The refusal codes, registered in RUNTIME_CODES as `READ_CODES` and covered by compliance boundary fixtures: IA-RUNTIME-READ-UNADMITTED when no admitted record answers the locator, which for an identity a source holds whose record admission refused reads `in this workspace's sources, but admission refused it` with that record's path and line, `file` `refused` and the `reason` admission gives (db `refused`), for any other identity is `not in this workspace's sources`, and for a line names what the workspace's sources hold in its file (`file` `refused` when admission refused records there, else `admitted` when admitted records there span other lines, absent when no record of the sources is in it, a path that is absolute or escapes the workspace reads as one that is not relative to the workspace root, and the workspace root itself, `.` or another spelling of it, reads as a directory and no source); IA-RUNTIME-READ-PLACEMENT for a record at runtime placement (band 0) unless `includeRuntime` is set, judged before any fragment; IA-RUNTIME-READ-FRAGMENT when the record has no cell or requirement at the fragment; and IA-RUNTIME-READ-UNREACHABLE when the document path names no file, is a URL (a read fetches nothing, and a URL is never canonicalized into a path) or is outside the workspace or the record's tree, the record is in an adopted mount `mounts` does not bind, the host's reader throws, the bytes are not UTF-8, an anchor names a file that is not markdown, or no heading has the anchor. The Door's `read` operation (R12 version 2 refinement) reads a body through a scope.
|
|
96
106
|
|
|
97
|
-
R18. Delivery view (2026-10-08, position-and-projection §9 step 2, §10 and rows 20 to 22; plan amendments A5 to A7): `src/next.ts`, exported from the package root and the `./internal/next` subpath, publishes `deliveryView(handle, within, seat?)` and `NEXT_CODES` with the `CycleRow`, `DeliveryMilestone`, `DeliveryResult`, `DeliveryTask`, `DeliveryView`, `ExitEvidence`, `NextCode`, `NextRefusal`, `Prerequisite`, `ReviewItem`, `StateDimension` and `StateLine` types. It is a pure function of the admitted records the scope token `within` reads: every read (the snapshot, directed views, one traversal, readiness) carries that token, so a narrowed scope lists only what it admits and prunes rows to it (db D09), and only a whole-workspace token (db `isCompleteScope`, PT5) also reads the admission findings it alone may disclose, `refused` and the report's COMP-PARSE findings; the view is computed per call, never stored, and nothing is written, the capture pair that `readiness` reads included; an unknown, stale or closed token keeps its database error. It returns `{ok: true, view}` or one refusal `{ok: false, code, message, next, plans?, cycle?}` whose `next` is exactly one command (design row 27), as `readBody` returns its refusals as values. The plan is the seat's when a seat is given: a `@plan`, the plan a `@milestone`'s `work.plan` names, or that of a `@task`'s `work.milestone`; without one, the only admitted `@plan` at band 100. IA-RUNTIME-NEXT-SEAT refuses a seat the scope does not admit (next the view without a seat that runs: `ia next` while the scope admits one `@plan` at band 100, `ia next --seat <the first of them>` while it admits several, which `ia next` alone refuses, and `ia next --help` while it admits none) or that is not a `@plan`, `@milestone` or `@task` (next `ia position --seat <seat>`); IA-RUNTIME-NEXT-NO-PLAN a seat that belongs to no admitted plan, or no seat and no plan at band 100 (next `ia next --help`); IA-RUNTIME-NEXT-AMBIGUOUS no seat and several plans at band 100, listed in the message and in `plans` (next `ia next --seat <the first of them>`); IA-RUNTIME-NEXT-CYCLE `require` rows that form a cycle among the plan's tasks, milestones or both, listed in `cycle` as declared rows `{from, to, declaredOn, path, line}`, each `from` requiring its `to` (next `ia position --seat <the cycle's first task, else its first milestone> --shape sequence`). Design §11 names `ia preview plan` and `ia preview --set` for the second and fourth; those verbs arrive later, so each refusal names a command of this milestone. The plan's milestones are the `@milestone` records whose `work.plan` names it, and its tasks the `@task` records whose `work.milestone` names one of them (the reverse field index). Order: one topological sort, Kahn's algorithm, over the tasks and two vertices per milestone, its start (its prerequisites met) and its end (satisfied). A milestone's tasks follow its start and precede its end, its start precedes its end, and each declared `require` row between two records of the plan, in either spelling, makes the requiring record (a task, or a milestone's start) follow the required one (a task, or a milestone's end). Ready milestone vertices are emitted first and ready tasks by (milestone identity, task identity), so tasks come prerequisites first with ties by milestone then task: the order Kahn's algorithm gives over the task-level expansion (a task follows each task it requires, each task of a milestone it requires, and each prerequisite task of its milestone, required directly or through a required milestone's tasks), and a required milestone with no task still passes on its own prerequisites, so a cycle through it is refused too. Requirements outside the plan order nothing and remain basis lines. A relation row that carries a condition (decision conditional-relations-in-delivery, 2026-10-08), such as `requires @task guide when phase is act` or `grounds @task guide when phase is act`, counts only where its condition holds at the coordinate the scope binds, decided as graph traversal decides it: the coordinate is the phase db `resolveScope` binds the token to, or none (a scope binds no other condition axis), and graph `conditionHolds` decides each term, the condition's subject being the record that states the row (its `declaredOn`, the author graph G06 keeps as the edge's condition subject). A condition is decided where every coordinate the bound one may still be completed to (each axis it binds no value for absent, or set to each of its values) reads it alike, and undecided where two of them differ: `conditionHolds` reads provenance and artifact set from the subject alone, so the subject decides those terms; it reads severity as graph `effectiveSeverity`, the stronger of the subject's and the coordinate's (G08), so a severity term is decided only where the subject's own severity decides it at every coordinate (`when severity is blocking` on a blocking record holds everywhere, `when severity is advisory` on one fails everywhere) and is undecided otherwise, as on a record that states no severity, such as a `@task`; and a term on any other axis the scope binds no value for, such as the phase on a whole-workspace scope, is undecided. A row whose condition fails is no row: it orders nothing, is no requirement, grounding or supersession, and its declared line is not read as unanswered either. A row the scope does not decide, as one conditional on a phase on the whole-workspace scope `ia next` reads, or on a severity on any scope, is conditional with an unknown basis and is never satisfied: a conditional requirement orders nothing and is an unsatisfied prerequisite whatever its target's state, its basis `<word> <target>: conditional on <terms>, which the scope binds no <axes> to decide (unknown)`, the axes being those the bound coordinate leaves open, and one no admitted record answers reads `no admitted record answers it, conditional on …`. Intent is read at the bound coordinate with each undecided row read as no row; when that reading reads an undecided row that could change it (a grounding of the task, or of a supersedor, a supersession between two decisions grounding either, or a supersession of the task by a record that is or may be accepted), it is read again at each completion of the bound coordinate on the axes those rows leave open, where every row is decided, a record that a row holding at the bound coordinate names read before one only a conditional row names. The line that reads the same, value and basis, at every completion is the intent, since no binding the scope could take changes it and the conditional row is never read as satisfied: a decision with no choice that grounds the task only at act, beside one that grounds it with no condition and is accepted, leaves it `accepted`, and a supersession that holds, by a record one decision accepts at every completion, leaves it `superseded`. Else intent is `unknown`, its basis the first such row, `<record> grounds it conditional on …` or `<record> supersedes it conditional on …`, as it stays when the axes those rows leave open have more than 256 completions. Review items read rows that hold only. Of two rows to one counterpart the one that holds is read before a conditional one, and of two lines for one target a decided one before a conditional one. Field references carry no condition, so exit evidence, milestones, plans and owner-agents are read as before. Admission refuses a record that states a conditional `supersede` of a work record (each work-system word's supersede rule has cardinality one, which a condition would leave undecided: IA-COMP-EDGE-UNRESOLVED), so such a row is rare; one that reaches the view is read as above. A task's effective prerequisites are its own `require` targets, then its milestone's, each target once, an inherited one marked `via` that milestone. work-system consents `require` to a `@task`, `@milestone` or `@decision` target only (a `@task` that requires a `@spec` is refused at admission, IA-GRAPH-EDGE-UNCONSENTED), so no required-spec line arises; a requirement no admitted record answers, an admission warning with no row, is read from the traversal's dangling rows and is never satisfied; and a `require` the task or its milestone itself declares that gives neither a row nor a dangling edge in the scope, as when its answer is outside it (D09 prunes the row, and the traversal never crosses the scope), is never satisfied either, its state unknown. A requirement declared only on a record outside the scope is not read. A record's exit evidence is the first `@observation`, by identity, that its `work.exit-evidence` names or whose `evidence.subject` names it, whose `evidence.verdict` is success and whose `evidence.subject-revision` reads `current` under `readiness` (db D08) for that record; its evaluator is `evidence.evaluator`, and its `attribution` is `self` when that equals the identity the task's `work.owner-agent` names (decision task-owner-and-agent-description), `unknown` when the task states an owner-agent that no admitted `@agent` in the scope answers or the observation records no evaluator for a task that names one, else `other`. Basis lines: `decision <d>: choice made` or `no choice` (`decision.choice` stated or not); `task <t>: exit evidence <o>` or `no exit evidence`; `milestone <m>: exit evidence <o>` (its own), `every task has exit evidence`, `exit evidence missing for <n> of <k> tasks`, `no task and no exit evidence`, or `every task the view reads has exit evidence; records outside this scope are unknown` (a narrowed scope) or `…; records admission refused are unknown` (a whole-workspace scope while admission refuses a `@task`, whose `work.milestone` the view cannot read, or a file a language error refuses whole, db D03), neither of which satisfies it; `<reference>: no admitted record answers it`; `<reference>: no record in this scope answers it (unknown)`; each with ` (via <milestone>)` when inherited. The verdict `line` is `exit evidence recorded (<o>, evaluator <e>[, self-attributed | , self-attribution unknown])`, else `no declared blocker` when every effective prerequisite is satisfied, else `blocked (<each unsatisfied basis>; …)`; a record's `work.status` is printed as `status <value> (self-declared)` and is never a basis. The five state lines of each task (design §10): intent `superseded` when a record that supersedes the task is grounded by a live `@decision` stating `decision.choice` and `decision.effective-revision`, `accepted` when the task itself is, else `unknown`, naming the first live grounding decision's missing choice or effective revision, or that none grounds it (in this scope, on a narrowed one), the live decisions grounding a record being those no other of them supersedes, unless the two supersede each other through a cycle, which removes neither (revisions are compared by equality only, never ordered); definition `admitted` at the record's per-record digest, as every listed task is an admitted winner, so the plan's `rejected` cannot arise on a listed task: a `@task` admission refused has no record to list, and a whole-workspace view names it as an `admission` review item instead; realizable and realized `not applicable` (a task binds nothing and no effect owner realizes one); worked `observed success` or `observed refusal` for an observation at the current digest, `stale` for one whose subject-revision is the previous snapshot's digest, `unknown` for one at neither (or with no subject-revision, or another verdict), and `unobserved` when no observation names the task, `unknown` on a narrowed scope. Review items, each naming as owner the `head.steward` of the `@system` of the record it is about when the scope admits that system: `grounding`, two or more live `@decision` records grounding the plan or one of its milestones or tasks, the message naming those that supersede one another in a cycle; `currency`, two `@spec` records whose `work.status` is accepted, one superseding the other with no `work.replaced-scope` (a partial supersession keeps both live, and a draft or superseded spec is not current); and, on a whole-workspace scope only, `admission`, each `@plan`, `@milestone` or `@task` record admission refused that no admitted occurrence answers, with its path, line and reason, and each file a COMP-PARSE error refuses whole, without an owner, both naming `ia validate`. `next` is `ia position --seat <task> --shape sequence` for the first task in order whose verdict is `no declared blocker`, so tasks with exit evidence are skipped; it is null when every task has exit evidence or every other task is blocked, and `summary` says which, its every-task line reading `every task the view reads has exit evidence (<n> of <n>); <why>` while a task may go unread as above or admission refuses a `@milestone`, whose tasks the view then cannot list. The view is `{format: 'ia.delivery-view.v1', revision, plan, milestones, tasks, review, next, summary}`, milestones in the order their starts are emitted. `tests/next.test.ts` pins every refusal (from a `@task` seat with no admitted milestone too), the order (a cross-milestone requirement no milestone states, and a task a satisfied milestone releases ranked against tasks already ready), each verdict, refusal and inconclusive observations that are never exit evidence, stale evidence and each attribution, the later milestone's task blocked through its milestone and never recommended, an inherited requirement no admitted record answers and a target the task and its milestone both require listed once, a milestone-level cycle, skipped evidenced tasks, the all-evidenced, all-blocked and empty-plan summaries, review items (a supersede cycle, a superseded decision as no basis of intent, draft and superseded specs), a refused `@task` and a file a language error refuses, the band-100 rule, narrowed scopes (an out-of-scope requirement, task, observation, decision and owner-agent read as unknown, never met; plans and seats outside the scope neither counted nor read) that a view writes nothing, exit evidence at runtime placement (band 0) counted as authored evidence is (decision evidence-placement), a conditional grounding and requirement read at orient, at act and with no phase bound, against graph traversal for the same scope and coordinate; a severity term on a record that states no severity read as traversal reads it, conditional and blocking at every phase, and provenance terms the stating record decides; a row that holds read before a conditional one, and a conditional supersession refused at admission; an intent a conditional grounding cannot change read as it reads at every phase (accepted beside the conditional grounding of a decision with no choice, or of an accepted decision earlier by identity, and superseded through a supersedor whose acceptance a conditional grounding cannot change), and one it changes read as unknown; a conditional requirement no admitted record answers, and one whose answer a narrowed scope leaves out, read only where it holds; a milestone's unconditional requirement of a target read before the task's conditional one, and satisfied once the target is evidenced; and the Door through a token `scope` binds to a phase, over `tests/fixtures/delivery/` laid over the conformance corpus, which carries no work records (A6); tools/compliance runs one boundary fixture per code, once through `deliveryView` and once through the Door. The Door's `next` operation serves the view and its refusals unchanged (R12 version 2 refinement, next), the MCP door as `ia_next`, and the CLI as the consumer verb `ia next` (apps/cli/SPEC.md); `ia position`, which `next` and two refusals name, is a CLI verb too.
|
|
107
|
+
R18. Delivery view (2026-10-08, position-and-projection §9 step 2, §10 and rows 20 to 22; plan amendments A5 to A7): `src/next.ts`, exported from the package root and the `./internal/next` subpath, publishes `deliveryView(handle, within, seat?)` and `NEXT_CODES` with the `CycleRow`, `DeliveryMilestone`, `DeliveryResult`, `DeliveryTask`, `DeliveryView`, `ExitEvidence`, `NextCode`, `NextRefusal`, `Prerequisite`, `ReviewItem`, `StateDimension` and `StateLine` types. It is a pure function of the admitted records the scope token `within` reads: every read (the snapshot, directed views, one traversal, readiness) carries that token, so a narrowed scope lists only what it admits and prunes rows to it (db D09), and only a whole-workspace token (db `isCompleteScope`, PT5) also reads the admission findings it alone may disclose, `refused` and the report's COMP-PARSE findings; the view is computed per call, never stored, and nothing is written, the capture pair that `readiness` reads included; an unknown, stale or closed token keeps its database error. It returns `{ok: true, view}` or one refusal `{ok: false, code, message, next, plans?, cycle?}` whose `next` is exactly one command (design row 27), as `readBody` returns its refusals as values. The plan is the seat's when a seat is given: a `@plan`, the plan a `@milestone`'s `work.plan` names, or that of a `@task`'s `work.milestone`; without one, the only admitted `@plan` at band 100. IA-RUNTIME-NEXT-SEAT refuses a seat the scope does not admit (next the view without a seat that runs: `ia next` while the scope admits one `@plan` at band 100, `ia next --seat <the first of them>` while it admits several, which `ia next` alone refuses, and `ia next --help` while it admits none) or that is not a `@plan`, `@milestone` or `@task` (next `ia position --seat <seat>`); IA-RUNTIME-NEXT-NO-PLAN a seat that belongs to no admitted plan, or no seat and no plan at band 100 (next `ia next --help`); IA-RUNTIME-NEXT-AMBIGUOUS no seat and several plans at band 100, listed in the message and in `plans` (next `ia next --seat <the first of them>`); IA-RUNTIME-NEXT-CYCLE `require` rows that form a cycle among the plan's tasks, milestones or both, listed in `cycle` as declared rows `{from, to, declaredOn, path, line}`, each `from` requiring its `to` (next `ia position --seat <the cycle's first task, else its first milestone> --shape sequence`). Design §11 names `ia preview plan` and `ia preview --set` for the second and fourth. The runtime's own `next` keeps the commands above, which the Door and MCP callers receive; the consumer `ia next` builds its own next action (milestone generation-binding: it names `ia preview plan` for a workspace that registers `@plan` and authors none, when the acting participant's mandate profile allows Verification and the word, and otherwise a command that profile allows). The plan's milestones are the `@milestone` records whose `work.plan` names it, and its tasks the `@task` records whose `work.milestone` names one of them (the reverse field index). Order: one topological sort, Kahn's algorithm, over the tasks and two vertices per milestone, its start (its prerequisites met) and its end (satisfied). A milestone's tasks follow its start and precede its end, its start precedes its end, and each declared `require` row between two records of the plan, in either spelling, makes the requiring record (a task, or a milestone's start) follow the required one (a task, or a milestone's end). Ready milestone vertices are emitted first and ready tasks by (milestone identity, task identity), so tasks come prerequisites first with ties by milestone then task: the order Kahn's algorithm gives over the task-level expansion (a task follows each task it requires, each task of a milestone it requires, and each prerequisite task of its milestone, required directly or through a required milestone's tasks), and a required milestone with no task still passes on its own prerequisites, so a cycle through it is refused too. Requirements outside the plan order nothing and remain basis lines. A relation row that carries a condition (decision conditional-relations-in-delivery, 2026-10-08), such as `requires @task guide when phase is act` or `grounds @task guide when phase is act`, counts only where its condition holds at the coordinate the scope binds, decided as graph traversal decides it: the coordinate is the phase db `resolveScope` binds the token to, or none (a scope binds no other condition axis), and graph `conditionHolds` decides each term, the condition's subject being the record that states the row (its `declaredOn`, the author graph G06 keeps as the edge's condition subject). A condition is decided where every coordinate the bound one may still be completed to (each axis it binds no value for absent, or set to each of its values) reads it alike, and undecided where two of them differ: `conditionHolds` reads provenance and artifact set from the subject alone, so the subject decides those terms; it reads severity as graph `effectiveSeverity`, the stronger of the subject's and the coordinate's (G08), so a severity term is decided only where the subject's own severity decides it at every coordinate (`when severity is blocking` on a blocking record holds everywhere, `when severity is advisory` on one fails everywhere) and is undecided otherwise, as on a record that states no severity, such as a `@task`; and a term on any other axis the scope binds no value for, such as the phase on a whole-workspace scope, is undecided. A row whose condition fails is no row: it orders nothing, is no requirement, grounding or supersession, and its declared line is not read as unanswered either. A row the scope does not decide, as one conditional on a phase on the whole-workspace scope `ia next` reads, or on a severity on any scope, is conditional with an unknown basis and is never satisfied: a conditional requirement orders nothing and is an unsatisfied prerequisite whatever its target's state, its basis `<word> <target>: conditional on <terms>, which the scope binds no <axes> to decide (unknown)`, the axes being those the bound coordinate leaves open, and one no admitted record answers reads `no admitted record answers it, conditional on …`. Intent is read at the bound coordinate with each undecided row read as no row; when that reading reads an undecided row that could change it (a grounding of the task, or of a supersedor, a supersession between two decisions grounding either, or a supersession of the task by a record that is or may be accepted), it is read again at each completion of the bound coordinate on the axes those rows leave open, where every row is decided, a record that a row holding at the bound coordinate names read before one only a conditional row names. The line that reads the same, value and basis, at every completion is the intent, since no binding the scope could take changes it and the conditional row is never read as satisfied: a decision with no choice that grounds the task only at act, beside one that grounds it with no condition and is accepted, leaves it `accepted`, and a supersession that holds, by a record one decision accepts at every completion, leaves it `superseded`. Else intent is `unknown`, its basis the first such row, `<record> grounds it conditional on …` or `<record> supersedes it conditional on …`, as it stays when the axes those rows leave open have more than 256 completions. Review items read rows that hold only. Of two rows to one counterpart the one that holds is read before a conditional one, and of two lines for one target a decided one before a conditional one. Field references carry no condition, so exit evidence, milestones, plans and owner-agents are read as before. Admission refuses a record that states a conditional `supersede` of a work record (each work-system word's supersede rule has cardinality one, which a condition would leave undecided: IA-COMP-EDGE-UNRESOLVED), so such a row is rare; one that reaches the view is read as above. A task's effective prerequisites are its own `require` targets, then its milestone's, each target once, an inherited one marked `via` that milestone. work-system consents `require` to a `@task`, `@milestone` or `@decision` target only (a `@task` that requires a `@spec` is refused at admission, IA-GRAPH-EDGE-UNCONSENTED), so no required-spec line arises; a requirement no admitted record answers, an admission warning with no row, is read from the traversal's dangling rows and is never satisfied; and a `require` the task or its milestone itself declares that gives neither a row nor a dangling edge in the scope, as when its answer is outside it (D09 prunes the row, and the traversal never crosses the scope), is never satisfied either, its state unknown. A requirement declared only on a record outside the scope is not read. A record's exit evidence is the first `@observation`, by identity, that its `work.exit-evidence` names or whose `evidence.subject` names it, whose `evidence.verdict` is success and whose `evidence.subject-revision` reads `current` under `readiness` (db D08) for that record; its evaluator is `evidence.evaluator`, and its `attribution` is `self` when that equals the identity the task's `work.owner-agent` names (decision task-owner-and-agent-description), `unknown` when the task states an owner-agent that no admitted `@agent` in the scope answers or the observation records no evaluator for a task that names one, else `other`. Basis lines: `decision <d>: choice made` or `no choice` (`decision.choice` stated or not); `task <t>: exit evidence <o>` or `no exit evidence`; `milestone <m>: exit evidence <o>` (its own), `every task has exit evidence`, `exit evidence missing for <n> of <k> tasks`, `no task and no exit evidence`, or `every task the view reads has exit evidence; records outside this scope are unknown` (a narrowed scope) or `…; records admission refused are unknown` (a whole-workspace scope while admission refuses a `@task`, whose `work.milestone` the view cannot read, or a file a language error refuses whole, db D03), neither of which satisfies it; `<reference>: no admitted record answers it`; `<reference>: no record in this scope answers it (unknown)`; each with ` (via <milestone>)` when inherited. The verdict `line` is `exit evidence recorded (<o>, evaluator <e>[, self-attributed | , self-attribution unknown])`, else `no declared blocker` when every effective prerequisite is satisfied, else `blocked (<each unsatisfied basis>; …)`; a record's `work.status` is printed as `status <value> (self-declared)` and is never a basis. The five state lines of each task (design §10): intent `superseded` when a record that supersedes the task is grounded by a live `@decision` stating `decision.choice` and `decision.effective-revision`, `accepted` when the task itself is, else `unknown`, naming the first live grounding decision's missing choice or effective revision, or that none grounds it (in this scope, on a narrowed one), the live decisions grounding a record being those no other of them supersedes, unless the two supersede each other through a cycle, which removes neither (revisions are compared by equality only, never ordered); definition `admitted` at the record's per-record digest, as every listed task is an admitted winner, so the plan's `rejected` cannot arise on a listed task: a `@task` admission refused has no record to list, and a whole-workspace view names it as an `admission` review item instead; realizable and realized `not applicable` (a task binds nothing and no effect owner realizes one); worked `observed success` or `observed refusal` for an observation at the current digest, `stale` for one whose subject-revision is the previous snapshot's digest, `unknown` for one at neither (or with no subject-revision, or another verdict), and `unobserved` when no observation names the task, `unknown` on a narrowed scope. Review items, each naming as owner the `head.steward` of the `@system` of the record it is about when the scope admits that system: `grounding`, two or more live `@decision` records grounding the plan or one of its milestones or tasks, the message naming those that supersede one another in a cycle; `currency`, two `@spec` records whose `work.status` is accepted, one superseding the other with no `work.replaced-scope` (a partial supersession keeps both live, and a draft or superseded spec is not current); and, on a whole-workspace scope only, `admission`, each `@plan`, `@milestone` or `@task` record admission refused that no admitted occurrence answers, with its path, line and reason, and each file a COMP-PARSE error refuses whole, without an owner, both naming `ia validate`. `next` is `ia position --seat <task> --shape sequence` for the first task in order whose verdict is `no declared blocker`, so tasks with exit evidence are skipped; it is null when every task has exit evidence or every other task is blocked, and `summary` says which, its every-task line reading `every task the view reads has exit evidence (<n> of <n>); <why>` while a task may go unread as above or admission refuses a `@milestone`, whose tasks the view then cannot list. The view is `{format: 'ia.delivery-view.v1', revision, plan, milestones, tasks, review, next, summary}`, milestones in the order their starts are emitted. `tests/next.test.ts` pins every refusal (from a `@task` seat with no admitted milestone too), the order (a cross-milestone requirement no milestone states, and a task a satisfied milestone releases ranked against tasks already ready), each verdict, refusal and inconclusive observations that are never exit evidence, stale evidence and each attribution, the later milestone's task blocked through its milestone and never recommended, an inherited requirement no admitted record answers and a target the task and its milestone both require listed once, a milestone-level cycle, skipped evidenced tasks, the all-evidenced, all-blocked and empty-plan summaries, review items (a supersede cycle, a superseded decision as no basis of intent, draft and superseded specs), a refused `@task` and a file a language error refuses, the band-100 rule, narrowed scopes (an out-of-scope requirement, task, observation, decision and owner-agent read as unknown, never met; plans and seats outside the scope neither counted nor read) that a view writes nothing, exit evidence at runtime placement (band 0) counted as authored evidence is (decision evidence-placement), a conditional grounding and requirement read at orient, at act and with no phase bound, against graph traversal for the same scope and coordinate; a severity term on a record that states no severity read as traversal reads it, conditional and blocking at every phase, and provenance terms the stating record decides; a row that holds read before a conditional one, and a conditional supersession refused at admission; an intent a conditional grounding cannot change read as it reads at every phase (accepted beside the conditional grounding of a decision with no choice, or of an accepted decision earlier by identity, and superseded through a supersedor whose acceptance a conditional grounding cannot change), and one it changes read as unknown; a conditional requirement no admitted record answers, and one whose answer a narrowed scope leaves out, read only where it holds; a milestone's unconditional requirement of a target read before the task's conditional one, and satisfied once the target is evidenced; and the Door through a token `scope` binds to a phase, over `tests/fixtures/delivery/` laid over the conformance corpus, which carries no work records (A6); tools/compliance runs one boundary fixture per code, once through `deliveryView` and once through the Door. The Door's `next` operation serves the view and its refusals unchanged (R12 version 2 refinement, next), the MCP door as `ia_next`, and the CLI as the consumer verb `ia next` (apps/cli/SPEC.md); `ia position`, which `next` and two refusals name, is a CLI verb too.
|
|
98
108
|
|
|
99
|
-
R19. Position packet (2026-10-08, position-and-projection §4 and items 11 and 12; plan amendments B1 to B5 and B8; decisions cli-commands-as-operations and identity-namespace): `src/packet.ts`, exported from the package root and the `./internal/packet` subpath, publishes `renderPacket(handle, within, catalog)` and `entryCount(packet)` with the `PositionPacket`, `PacketCatalogRow`, `PacketSeat`, `PacketParticipant`, `PacketMandate`, `PacketSystem`, `PacketTally`, `PacketIntent`, `PacketPhase`, `PacketProvenance`, `PacketHostNote` and `PacketOutput` types; the root's `Packet` stays R03's context packet, so the position packet's type is `PositionPacket`. The packet is the one host-neutral thing a host adapter renders (design §4: an adapter may change file names, file count and markup, never content, ordering or numbers). `renderPacket` calls `position(handle, within)` (R16) once, at K0, and reads everything else through the same scope token: the snapshot and its D02a membership rows, directed views (db D09), the declared roots (db D02c) and the registered words (db D09a). A missing token is IA-RUNTIME-REQUEST-INVALID, an unknown, stale or closed one keeps its database code, and every other refusal is position's: the packet renders the records admission admitted and gates none of them (design §4, LS-30), so an admitted mandate that `mandateAuthorityOf` would refuse, one
|
|
109
|
+
R19. Position packet (2026-10-08, position-and-projection §4 and items 11 and 12; plan amendments B1 to B5 and B8; decisions cli-commands-as-operations and identity-namespace): `src/packet.ts`, exported from the package root and the `./internal/packet` subpath, publishes `renderPacket(handle, within, catalog)` and `entryCount(packet)` with the `PositionPacket`, `PacketCatalogRow`, `PacketSeat`, `PacketParticipant`, `PacketMandate`, `PacketSystem`, `PacketTally`, `PacketIntent`, `PacketPhase`, `PacketProvenance`, `PacketHostNote` and `PacketOutput` types; the root's `Packet` stays R03's context packet, so the position packet's type is `PositionPacket`. The packet is the one host-neutral thing a host adapter renders (design §4: an adapter may change file names, file count and markup, never content, ordering or numbers). `renderPacket` calls `position(handle, within)` (R16) once, at K0, and reads everything else through the same scope token: the snapshot and its D02a membership rows, directed views (db D09), the declared roots (db D02c) and the registered words (db D09a). A missing token is IA-RUNTIME-REQUEST-INVALID, an unknown, stale or closed one keeps its database code, and every other refusal is position's: the packet renders the records admission admitted and gates none of them (design §4, LS-30), so an admitted mandate that `mandateAuthorityOf` would refuse, one with a child under an authority field or naming its participant or a scope with a fragment reference, renders as authored, and a mandate admission refuses, one declaring `moves []` among them since lane D (compliance C05), renders as no mandate, never as a refusal. It returns the frozen `{packet, digest, hostNote}`, never merged: `digest` is graph's codec `digest` of the packet, and the host note is position's note `{revision, capturedRevision?, previousRevision?, freshness, key}` with `installed: 'unknown (no join checked here)'` (design row 9; no installed-implementation catalog exists before milestone generation-binding), which carries no digest. The packet is `{format: 'ia.position-packet.v1', revision, body, seat, participants, mandates, systems, tallies, intents, phases, commands, lines, provenance}`. `revision` is the K0 body's and `body` position(K0)'s digest. `seat` is K0's seat, the repository's own `@workspace`: `{identity?, sources, systems, steward?, participants?}`, `identity` absent when no admitted `@workspace` is declared at the repository root (R14), `sources` its `composition.sources` entries as authored, `systems` N, `steward` its `composition.steward` reference, and `participants` the text `none (no authored @mandate names an @agent)` exactly when no participant is rendered. A reference the packet prints is the identity of the admitted record its typed field reference resolves to, or, when none does, the reference as authored (`@<word> <name>`). `mandates` (B3) are the entries of body(K0)'s `mandates` (R17) at band 100 whose `authority.participant` resolves to an admitted `@agent` at band 100, by identity, each `{identity, participant, moves?, scope, excludedWords?, covers?}`: `moves`, `excludedWords` and `covers` are its unconditional `authority.moves`, `authority.excluded-words` and `authority.covers` as authored, each present exactly when the record states the key (a declared `moves []` would be `moves: []`, but admission refuses it since lane D; `moves` absent restricts no move), and `scope` its `authority.scope` references. `participants` are those agents, each once, by identity, as `{identity, says?}` with its `meaning.says`; `composition.steward` names no participant, and P = 0 is a packet, not a refusal (the `ia author agent` the kb task names arrives in milestone generation-binding). `systems` (B4) holds one pointer line per `composition.systems` reference of the seat, by identity: for an admitted record `{identity, words, band, steward?, reach}`, `words` the words its `discriminators` rows (`<word> lowers to <kind>`) register, sorted, `steward` its `head.steward` when that resolves, and `reach` `ia position --seat <identity>` (decision scope-verb-dispatch; a `@system` carries no source locator, so `ia read` gives only its head `describes`, not its words or steward); for a reference no admitted record answers `{identity: <the reference as authored>, words: 'unresolved', steward: 'unresolved'}`. `tallies` are `{word, count}` by word: the band-100 records whose capture membership root is one of the seat's own declared roots, R15's capture members of a workspace seat. A seat that declares no root has no tally, as body(K0)'s `sources` unknown says: its fallback closure is what a position may enter, not what the workspace captures. A fresh init's tallies so count what it authors under `.ia/src @authored` (workspace, agent and mandate, the installed base being band 90), and the conformance corpus, which declares no root, has none. `intents` are the five SHAPE_ROWS shapes in table order, `{shape, category, primitive, phase, kinds, lanes, predicates, priming, words}`: `phase` is the primitive's PRIMITIVE_ANCHORS phase, and `words` the registered words whose lowering has its kind in the shape's kinds or, over the kind and each of its facets, a graph `laneOf` lane in its lanes, as R15 seeds a record. The lowerings are read from the floor's two registrations and the admitted `@system` records' `discriminators` rows, the first by identity should two lower one word. `phases` are the four phases in cycle order, `{phase, primitives, changes}`: `primitives` are those PRIMITIVE_ANCHORS anchors at the phase, and `changes` the fixed line `--phase selects the playbook cell delivered and decides conditional relation rows (decision conditional-relations-in-delivery)`. `commands` are the `catalog` rows the caller passes, in its order, each copied as its five fields `{command, mode, move, refuses, next}` (B5). The CLI's catalog is the COMMANDS rows it tags, which `packetCatalog` in apps/cli builds for its caller to pass, since this package may not import that app (B2): apps/cli's `renderProjectionFor` passes it for `ia host`, `ia project`, `ia doctor` and the install, update and remove refresh, and `tools/projections/generate.ts` for this repository (task replace-renderers). LEGACY_OPERATIONS are no catalog rows. `lines` are design §4's three SPEC-owned lines with `ia scope` read as `ia position`, without markup and without their `source: <CLI SPEC>@<version>` suffix, which would put a CLI version in the packet. `provenance` is `{revision, slug?}`, `slug` the seat's name: decision identity-namespace keeps identities as they are and carries the repository slug only here. The packet names no absolute path, scope token, time, capture state or CLI version, and no record at runtime placement is part of it (R15). Two roots so give byte-equal packets and digests, and a capture moves only the host note. `entryCount(packet)` is B1's formula, which replaces the kb task's constant 28 + N: P participants + M mandates + 1 seat + N system lines + T tallies + 5 intent rows + 4 phase rows + C catalog rows + 1 provenance + 3 SPEC lines, the host note no entry. A fresh init (P = M = 1, T = 3) has 19 + C + N entries: B1's 26 + N with the CLI's seven catalog rows, `ia project` the seventh (task ia-project-verb), and 28 + N with `ia preview` and `ia author` the eighth and ninth (milestone generation-binding plan amendment C3). `tests/packet.test.ts` pins a golden packet in `tests/golden/` (revision and body digest masked and asserted apart; only `node packages/runtime/tests/golden/write.mjs` regenerates it) for the three records of plan T6 step 1 (`tests/fixtures/packet/workspace.ia`) over the conformance corpus adopted at band 90, with 39 entries under a nine-row catalog fixture. It also pins the formula on that fixture, on the conformance corpus and on this repository's own records, its terms counted from the admitted records (N from the seat's `composition.systems`, T from the words of the band-100 membership rows under the seat's own declared roots, P and M from the band-100 mandates scoped to the seat whose participant is a band-100 agent) rather than from the packet, and pins B1's counts under the nine-row fixture: 28 on the conformance corpus and 53 on this repository after separating neutral examples from its live corpus, which its committed `CLAUDE.md` renders too; no participant and no refusal on the conformance corpus and for a mandate whose participant is adopted; two participants named by three mandates, each agent once and both by identity, with a mandate's excluded words and covers; a mandate declaring `moves []` refused by admission and rendered as no mandate, with position still running, and an admitted one with fragment references rendered with no refusal; an adopted mandate scoped to the seat left out; the tallies of a declared root narrower than the corpus, and none for a seat that declares no root; a narrowed scope token, which leaves out an @agent and a @system it does not admit (the system line `unresolved`, no participant or mandate, the steward as authored, no tally of the left-out word); a `@system` at runtime placement read as unresolved; a repository root no admitted `@workspace` is declared at, with no seat identity, system line, tally or slug; the frozen output, its intent rows copies of the kernel's; byte-equal packets and digests at two roots, naming neither root nor token; `body` equal to position(K0)'s digest; a capture moving the host note and neither the packet nor its digest; an unresolved `composition.systems` reference and system lines authored out of identity order; and the intent and phase tables, a word with an authority facet seeded under governance by its lane. apps/cli pins its catalog rows, each command's mode and move, a one-line refusal and one next command of COMMANDS.
|
|
100
110
|
|
|
101
111
|
R20. Host adapters (2026-10-09, position-and-projection §4, the host adapter contract, and items 11, 12 and 14; plan amendments B9, B10 and B12; decision packet-tracking-policy): `src/packet-host.ts`, exported from the package root and the `./internal/packet-host` subpath, publishes `renderHost(host, packet, digest, hostNote, target)` and `PACKET_MARKER` with the `PacketHost` (`claude` or `codex`), `PacketTarget` (`repository` or `consumer`), `HostFile`, `PacketReceipt` and `HostOutput` types. It renders one R19 packet, with the digest and host note `renderPacket` returned beside it, as the host's files and returns the frozen `HostOutput` `{files, receipt}`, each file `{path, text}` with a workspace-relative path. It is a pure function of its arguments and the package's own version, which it reads from its manifest: it reads no workspace and writes, deletes and plans no file, which the caller that applies does: apps/cli's `applyHostProjection` for a consumer workspace and `tools/projections/generate.ts` for this repository (milestone position-packet task replace-renderers). An unknown host or target, or a `digest` that is not graph's codec digest of `packet`, is IA-RUNTIME-REQUEST-INVALID. No host is rendered an agent file (design §4: the system stewards are pointer lines, never agent definitions). The files by host and target: claude `consumer` `.claude/rules/ia-workspace.md` and `.claude/skills/ia-authoring/SKILL.md`; claude `repository` `CLAUDE.md`, `.claude/skills/ia-authoring/SKILL.md` and `.agents/skills/ia-authoring/SKILL.md`, the files this repository commits, which since task replace-renderers hold no steward agent; codex `AGENTS.md` and `.agents/skills/ia-authoring/SKILL.md` in either target, the `repository` entry file without the host note. Every file carries `PACKET_MARKER`, `<!-- Generated by ia project; edit the cited native records. -->` (B9): first in the entry file, and in each `SKILL.md` after its YAML frontmatter and a blank line. The one generic `ia-authoring` skill per host stays (B10; design §4 renders no skill per system or playbook), its text chosen by target, not host, byte for byte as compliance's 1.x renderers wrote it but for the marker line: the `repository` skill is renderHostArtifacts' and the `consumer` skill renderWorkspaceProjection's, its `Source revision` the packet's revision (both renderers were retired by task replace-renderers, compliance SPEC C22–C24). The entry file is the marker; then the packet's sections under the title `# IA position packet: <provenance slug>` (`# IA position packet` when the packet has no slug), in the packet's field order: the seat line, the participants, the mandates, the system pointer lines, the captured-record tallies, the intent table, the phase table, the command catalog and the SPEC lines, each an `## ` heading over its entries, one entry per list item or table body row, a section with no entry left out with its heading; then one provenance line `ia-generated <revision> <packet digest> <adapter>`, `<adapter>` being `ia-claude` or `ia-codex`, followed by `@<the package version>` in the `consumer` target only, so this repository's committed `CLAUDE.md` does not move when a release bumps the version; then, in the `consumer` target only, the section `## Host note (not part of the packet)` with the note's freshness, installed state and key, the key as `ia position` prints it (a location seat `''` as `.`). The entry file so renders exactly `entryCount(packet)` entries, the provenance line among them and the host note none. The rendering is markup only (design §4: an adapter changes file names, file count and markup, never content, ordering or numbers): every section value is printed in the packet's field order, except that the title prints the provenance slug, and `format`, `revision` and `body` are not printed apart, since the provenance line's revision and packet digest cover them and the receipt carries `body` as `bodyDigest`; identities, references, sources, covers paths and commands are code spans, each fenced past the backticks it holds; each bare IA word token in free text (an `@` and a word as the language spells one, `[a-z][a-z0-9-]*`, with no letter, digit, `_`, `.`, `-`, `/`, `@` or backtick before it and no word character, `-`, `/`, `@` or backtick after it, so neither an address, a scoped package such as `@inventarch/db` nor a token touching a backtick, which no fence could wrap without joining that run, and outside every authored code span, found as CommonMark finds one: a whole backtick run, its text and the next run of the same length) is a code span too, its fence one backtick or, when the value holds a backtick run no span closes, longer than every such run, and the authored span is kept as written whatever tokens it holds, so neither the committed `CLAUDE.md` nor a consumer file renders `@workspace` or `@plan` as a GitHub mention unless the author wrote it touching a backtick, the packet's values and entries unchanged; a line break in a value is printed as one space, so an entry stays one line; line folding scans in linear time even when long space/tab runs have no following line break, retaining all other bytes and the existing whitespace boundaries; a pipe in a table cell is escaped; an empty list prints `none`; and a seat without an identity prints `workspace undeclared`. The sections are byte-identical for both hosts and both targets: in one target the claude and codex entry files differ only in the adapter the provenance line names. The receipt (B12) is `{format: 'ia.packet-receipt.v1', host, cli, adapter, revision, slug, packetDigest, bodyDigest, entries, files, removed, foreign, guard, hostNote, participants, mandates, writtenAt}`: `adapter` the adapter id with the package version in either target, `revision` the packet's, `slug` the packet's provenance slug or null when it has none (decision identity-namespace keeps the repository slug in provenance and receipts), `packetDigest` the digest passed, `bodyDigest` the packet's `body`, `entries` entryCount(packet), `files` each rendered file as `{path, sha256}` in render order with the SHA-256 of its UTF-8 text, `hostNote` a copy of the note, and `participants` and `mandates` the packet's identities (design item 14). renderHost leaves `removed` and `foreign` empty, `guard` `none`, and `cli` and `writtenAt` null: the caller that applies the files sets them to the owned legacy files it deleted (each `{path, sha256}`), the files it left in place as foreign, `retired` when it retired a steward-guard registration first, its own id@version (design item 12: only the applying CLI knows it) and the time it wrote, and writes the receipt beside the projection state (apps/cli `applyHostProjection`, task replace-renderers). The receipt carries no source digests and no consumer id@version per command invoked, which design item 12 also names. `tests/packet-host.test.ts` pins both hosts and both targets on R19's fresh-init fixture packet and on this repository's own records: the file paths, none under `.claude/agents`; the title naming the slug; the marker first in each entry file and after each skill's frontmatter and a blank line; `entryCount(packet)` rendered entries with the sections in the packet's field order; byte-equal sections across hosts and targets; and each receipt's file digests. It also pins the repository skills equal to this repository's committed files, which `pnpm projections:generate` renders with this adapter and runtime:test hashes as inputs (tools/testing's `host-adapters` input profile); this repository's one participant and one mandate entry; on a fresh init, the consumer skill's text, the adapter version and the host note in the consumer target alone, and the receipt's adapter version in both; a hand-built packet rendered to exact text, with an unresolved system line, a multi-line non-ASCII `says`, a backtick in a path and a pipe in a catalog row, and one with no participant, seat identity, system line, tally or command; the host note's key with an identity seat and a word and with two location seats, the root printed `.`, and a code span a backtick starts or ends padded inside its fence; frozen output, byte-equal at two fresh-init roots and naming neither, the caller's note left unfrozen; each bare IA word token in a participant's `says`, a catalog row's refusal and a SPEC line rendered as a code span in every host and target, an address, a scoped package and a token already in an authored code span, opening it, after a space or a `[` inside it or beside another token in a double-backtick span, left as they are with the span, a token after a backtick no run closes fenced past it, and one touching such a backtick left as authored, no bare token left in the seat line of a packet without a participant or in this repository's packet, the entry count and the packet unchanged, and the receipt's slug null for a packet without one; and the three refusals.
|
|
112
|
+
|
|
113
|
+
R20 authored-generation refinement (2026-10-11, milestone generation-binding plan amendments C4, C9 and C11; review findings A-R2, A-R5 and N1): `PacketReceipt` gains five optional sections, `generated` (`GeneratedRow`: identity, word `agent-profile` or `playbook`, path and SHA-256 of each generated file), `definitions` (`PacketDefinition`, a union of `{word: 'operation', definition: OperationDefinition}` and `{word: 'harness', definition: HarnessDefinition}`, whose registration rows are `RegistrationRow` and `HostHookDeclaration`), `hooks` (`HookGroupRow`: each registered group's `@hook` identity, the tools that hook declares and the SHA-256 of the group as written), `removedHooks` (`RemovedHookRow`: each group the apply removed, by `@hook` and the SHA-256 of the group as last registered; review finding H-R5) and `unsupported` (`UnsupportedRow`: identity, word `agent-profile`, `playbook` or `hook`, and reason), and `HostOutput` an optional `hooks` (`HostHookDeclaration`: identity, `PreToolUse`, the edit tools, the path selections and the message, from which a registration derives a fixed command and never authored shell text); the word unions (`GeneratedFileWord`, `GeneratedRecordWord`, `DefinitionWord`, `HookToolName`) are stated once, and the types are exported from the package root. `renderHost` fills none of them and its output is unchanged; ownership stays the projection state, and the CLI's projection writer, which applies the generated set, fills them (task host-consumes-generated-set); `removed` then also lists the generated files it deleted. The `./internal/packet-host` subpath exports `inline`, `code` and `prose`, the linear line folding, code span and IA-word code span helpers the entry file is written with, which workspace-runtime's host generators reuse so generated files write free text as the packet does.
|
|
114
|
+
|
|
115
|
+
Milestone 6 authored revision: position, packet rendering and host freshness use the authored revision, excluding runtime sources; the full revision remains available to database consumers. Capture records both revisions and retains authored membership independently of runtime evidence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/authoring-execution/execution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGpE,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC,CACtG,CAAC;AACF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/authoring-execution/execution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGpE,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC,CACtG,CAAC;AACF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAiD/G;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAc5G;AACD,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAS9C"}
|
|
@@ -19,7 +19,9 @@ export function executeOwned(context, name, input, catalog) {
|
|
|
19
19
|
const owner = evaluateSteward(context.records, binding.owner, { kind: 'operator' });
|
|
20
20
|
if (!owner.allowed || !owner.steward)
|
|
21
21
|
throw new ExecutionError('IA-EXEC-BINDING-MISMATCH', owner.message);
|
|
22
|
-
|
|
22
|
+
// The base is the authored revision (db `authoredRevision`), so runtime-band evidence written during the run does
|
|
23
|
+
// not refuse it; an authored change does.
|
|
24
|
+
const baseRevision = context.db.authoredRevision, product = binding.run(context, input), seen = new Set();
|
|
23
25
|
for (const artifact of product.artifacts) {
|
|
24
26
|
const path = portablePath(artifact.path), key = path.toLowerCase();
|
|
25
27
|
if (seen.has(key))
|
|
@@ -28,7 +30,7 @@ export function executeOwned(context, name, input, catalog) {
|
|
|
28
30
|
}
|
|
29
31
|
if (binding.effects === 'read-only' && product.artifacts.length)
|
|
30
32
|
throw new ExecutionError('IA-EXEC-BINDING-MISMATCH', 'Read-only handler returned draft effects');
|
|
31
|
-
if (context.db.refresh().
|
|
33
|
+
if (context.db.refresh().authoredRevision !== baseRevision)
|
|
32
34
|
throw new ExecutionError('IA-EXEC-SOURCE-CHANGED', 'Native inputs changed during execution');
|
|
33
35
|
const candidateRevision = product.preview?.revision ?? product.candidateRevision;
|
|
34
36
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.js","sourceRoot":"","sources":["../../src/authoring-execution/execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAM5D,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,IAAY,EAAE,KAAc,EAAE,OAAyB;IACpG,EAAE,CAAC,IAAI,CAAC,CAAC;IACT,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,WAAW,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IACrG,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QACzB,MAAM,IAAI,cAAc,CAAC,+BAA+B,EAAE,iCAAiC,IAAI,EAAE,CAAC,CAAC;IACrG,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAE,EAC9B,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACrE,IACE,CAAC,OAAO;QACR,SAAS,CAAC,QAAQ,KAAK,sCAAsC,IAAI,EAAE;QACnE,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,mBAAmB,OAAO,CAAC,KAAK,eAAe,IAAI,KAAK;QAClF,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW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AC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YAC/D,WAAW,EAAE,EAAE;SAChB,CAAC;AACR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../src/authoring-execution/inventory.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAepD;AAaD,4FAA4F;AAC5F,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../src/authoring-execution/inventory.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAepD;AAaD,4FAA4F;AAC5F,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAWxD"}
|
|
@@ -39,6 +39,8 @@ export function ownerOf(path) {
|
|
|
39
39
|
return '.ia/src/floor';
|
|
40
40
|
if (path.startsWith('.ia/src/systems/') && parts.length >= 5)
|
|
41
41
|
return parts.slice(0, 4).join('/');
|
|
42
|
+
if (path.startsWith('.ia/src/records/') || path.startsWith('.ia/src/releases/'))
|
|
43
|
+
return '.';
|
|
42
44
|
if (parts[0] === '.ia' && (parts.length === 2 || (parts.length === 3 && parts[1] === 'src')))
|
|
43
45
|
return '.';
|
|
44
46
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../src/authoring-execution/inventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,0GAA0G;AAC1G,MAAM,UAAU,QAAQ,CAAC,SAAiB;IACxC,OAAO;QACL,GAAG,IAAI,GAAG,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AC;QAAE,OAAO,GAAG,CAAC;IACzG,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -27,7 +27,9 @@ export interface Success {
|
|
|
27
27
|
readonly operation: string;
|
|
28
28
|
readonly owner: string;
|
|
29
29
|
readonly steward: string;
|
|
30
|
+
/** The authored revision (db `authoredRevision`) the run read and rechecked after its handler. */
|
|
30
31
|
readonly baseRevision: string;
|
|
32
|
+
/** The revision of the handler's draft preview (db `DraftPreview.revision`), or the one the handler names. */
|
|
31
33
|
readonly candidateRevision?: string;
|
|
32
34
|
readonly effects: 'read-only' | 'draft-only';
|
|
33
35
|
readonly artifacts: readonly Artifact[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/authoring-execution/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,UAAU,sOASb,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,qBAAa,cAAe,SAAQ,KAAK;IAErC,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAEvB,QAAQ,CAAC,WAAW,EAAE,SAAS,OAAO,EAAE;gBAF/B,IAAI,EAAE,QAAQ,EACvB,OAAO,EAAE,MAAM,EACN,WAAW,GAAE,SAAS,OAAO,EAAO;CAKhD;AACD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,SAAS,IAAI,EAA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door {
|
|
|
197
197
|
}
|
|
198
198
|
case 'records': {
|
|
199
199
|
keys(params, BINDINGS);
|
|
200
|
-
// Database D02a membership
|
|
201
|
-
|
|
200
|
+
// Database D02a membership and the authored revision are read through the handle; the version 1 snapshot
|
|
201
|
+
// keeps its four fields, its revision the full one the scope binds.
|
|
202
|
+
const { membership: _membership, authoredRevision: _authored, ...snapshot } = this.#handle.snapshot(this.#bindings(params));
|
|
202
203
|
result = { ...snapshot, records: snapshot.records.map(versionOne) };
|
|
203
204
|
break;
|
|
204
205
|
}
|
package/dist/door.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"door.js","sourceRoot":"","sources":["../src/door.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AA0BpC,SAAS,OAAO,CAAC,OAAe;IAC9B,MAAM,IAAI,YAAY,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAChE,CAAC;AACD,SAAS,MAAM,CAA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BAC3F,CAAC,CAAC,KAAK,CAAC,IAAI;oBACZ,CAAC,CAAC,4BAA4B;gBAClC,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB;aACpE,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,KAAK;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { EditorWorkspace, EditorError } from './workspace.js';
|
|
2
2
|
export type * from './types.js';
|
|
3
|
-
export { PHASES, PRIMITIVES } from '@inventarch/language';
|
|
3
|
+
export { PHASES, PRIMITIVES, VERB_PHRASES } from '@inventarch/language';
|
|
4
4
|
export { cursorContext, projectSource, lineRange } from '@inventarch/language/editor';
|
|
5
|
+
export { addRelationship, annotateRecord, appendRecord, draftSource, draftValue, encodeValue, relationshipConsent, setField, SourceEditError, } from '@inventarch/language/editor';
|
|
6
|
+
export type { DraftField, DraftSchema, RelationshipConsent, SourceEditReason } from '@inventarch/language/editor';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGtF,OAAO,EACL,eAAe,EACf,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/editor/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { EditorWorkspace, EditorError } from './workspace.js';
|
|
2
|
-
export { PHASES, PRIMITIVES } from '@inventarch/language';
|
|
2
|
+
export { PHASES, PRIMITIVES, VERB_PHRASES } from '@inventarch/language';
|
|
3
3
|
export { cursorContext, projectSource, lineRange } from '@inventarch/language/editor';
|
|
4
|
+
// Milestone generation-binding plan amendment C18: language's schema-aware source edits, for hosts that may not import
|
|
5
|
+
// the language package (the CLI's `ia preview`).
|
|
6
|
+
export { addRelationship, annotateRecord, appendRecord, draftSource, draftValue, encodeValue, relationshipConsent, setField, SourceEditError, } from '@inventarch/language/editor';
|
|
4
7
|
//# sourceMappingURL=index.js.map
|
package/dist/editor/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACtF,uHAAuH;AACvH,iDAAiD;AACjD,OAAO,EACL,eAAe,EACf,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,eAAe,GAChB,MAAM,6BAA6B,CAAC"}
|