@inventarch/runtime 3.5.0 → 3.6.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.
Files changed (45) hide show
  1. package/SPEC.md +8 -2
  2. package/dist/door.d.ts.map +1 -1
  3. package/dist/door.js +7 -9
  4. package/dist/door.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/machine-protocol.js +2 -2
  10. package/dist/machine-protocol.js.map +1 -1
  11. package/dist/mandate-guard.d.ts +2 -0
  12. package/dist/mandate-guard.d.ts.map +1 -1
  13. package/dist/mandate-guard.js +3 -2
  14. package/dist/mandate-guard.js.map +1 -1
  15. package/dist/mandate-modes.d.ts +23 -4
  16. package/dist/mandate-modes.d.ts.map +1 -1
  17. package/dist/mandate-modes.js +65 -13
  18. package/dist/mandate-modes.js.map +1 -1
  19. package/dist/method/errors.d.ts +5 -1
  20. package/dist/method/errors.d.ts.map +1 -1
  21. package/dist/method/errors.js +5 -1
  22. package/dist/method/errors.js.map +1 -1
  23. package/dist/method/index.d.ts +2 -2
  24. package/dist/method/index.d.ts.map +1 -1
  25. package/dist/method/index.js +1 -1
  26. package/dist/method/index.js.map +1 -1
  27. package/dist/method/kits.d.ts +27 -0
  28. package/dist/method/kits.d.ts.map +1 -1
  29. package/dist/method/kits.js +43 -0
  30. package/dist/method/kits.js.map +1 -1
  31. package/dist/method/resolve.d.ts.map +1 -1
  32. package/dist/method/resolve.js +32 -3
  33. package/dist/method/resolve.js.map +1 -1
  34. package/dist/method/root.d.ts.map +1 -1
  35. package/dist/method/root.js +2 -3
  36. package/dist/method/root.js.map +1 -1
  37. package/dist/position.d.ts +7 -2
  38. package/dist/position.d.ts.map +1 -1
  39. package/dist/position.js +32 -8
  40. package/dist/position.js.map +1 -1
  41. package/dist/scope-key.d.ts +6 -0
  42. package/dist/scope-key.d.ts.map +1 -1
  43. package/dist/scope-key.js +7 -1
  44. package/dist/scope-key.js.map +1 -1
  45. package/package.json +4 -4
package/SPEC.md CHANGED
@@ -6,7 +6,9 @@
6
6
 
7
7
  `@inventarch/runtime/method` is the shared method resolver the MCP door reads kits through, in process. It reads kit folders (`.ia/release.json`, `.ia/src`, the lock, `releases.json` in format 1 or format 2 with `releases/<version>.json`, and the `checks.json`, `delivery.json`, `bindings.json` and `onwrite.json` sidecars) from a bundled folder and then `<IA home>/kits/<folder>/<version>/`; selects a repository's binding from `.ia/bindings.json` (exact, wildcard, default, then precedence); keeps task pins (format 3, format 1 read as format 3) under `<IA home>/work-v1/<project>/<task>/`; retains exact method bytes under the closure store; restores kit read roots under `<IA home>/kit-roots-v1/` unless the caller names a cache; and assembles the packet with the digest over its sorted-key canonical form, the envelope and binding excluded. `resolveMethod` follows the `ia` plugin's `resolve.mjs` step for step, reading position bodies, records, inbound rows and cell bodies through db and this package instead of the CLI. Its caller supplies the native restore that installs a kit's language base into the kit's read root, so this package gains no distribution dependency. `laneCatalogue`, `openSession`, `readRegistry`, `registerWorkspace` and `checkRoot` serve the door's catalogue, session log, workspace registry (format `ia-workspace-locations-2`, reading `personal-workspace-locations-1` and Studio's format 1, writing format 2 only) and per-root mandate check. Lanes, keys, words and phases are closed tokens; a subject is carried as the caller gives it and never reaches a position.
8
8
 
9
- Installed kits (2026-10-31, contract C7b, ia-kb `dec-133` and `dec-117`): a workspace lock's `package` entries (`lockedPackageKits`) name kit releases the engine installs as ordinary releases in `.ia/distributions/store/<archive>/`; npm is transport only, and no kit is read from an npm package folder. `installedPackageKits` reads each from the store: its `distribution.json` must hash to the manifest digest the lock pins and name that release, and its pinned files are copied, each checked against its SHA-256, into `<IA home>/installed-kits-v1/<archive>/` with a format 1 `releases.json` of its one release and a `.ia/distributions.lock.json` that pins its dependencies exactly as the workspace lock does, so retention, read roots and the door's restore treat it as any kit folder (origin `installed`). `workspaceKits` lists a workspace's kits: the bundled ones, each installed kit, then the home's; a kit an entry names is taken from no other source, so `resolveMethod` refuses a binding to one the store lacks `IA-CORE-KIT-RESTORE-REQUIRED` ("run ia restore"; a pinned task may still read its retained bytes), and a kit no source provides still refuses `IA-CORE-KIT-UNKNOWN`. `installedKit` counts an entry kit as installed, so its packet's laws are the repository's position's and `envelope.kitInstalled` is true. `openSession` takes the kits the store lacks and adds `restore: {kits, message}` and a "Kits not restored" briefing line. `checkRoot` keeps the installation's refusal reason (`restore-required`, `lock-drift`) on its error. A lock without entries changes none of this.
9
+ Installed kits (2026-10-31, contract C7b): a workspace lock's `package` entries (`lockedPackageKits`) name kit releases the engine installs as ordinary releases in `.ia/distributions/store/<archive>/`; npm is transport only, and no kit is read from an npm package folder. `installedPackageKits` reads each from the store: its `distribution.json` must hash to the manifest digest the lock pins and name that release, and its pinned files are copied, each checked against its SHA-256, into `<IA home>/installed-kits-v1/<archive>/` with a format 1 `releases.json` of its one release and a `.ia/distributions.lock.json` that pins its dependencies exactly as the workspace lock does, so retention, read roots and the door's restore treat it as any kit folder (origin `installed`). `workspaceKits` lists a workspace's kits: the bundled ones, each installed kit, then the home's; a kit an entry names is taken from no other source, so `resolveMethod` refuses a binding to one the store lacks `IA-CORE-KIT-RESTORE-REQUIRED` ("run ia restore"; a pinned task may still read its retained bytes), and a kit no source provides still refuses `IA-CORE-KIT-UNKNOWN`. `installedKit` counts an entry kit as installed, so its packet's laws are the repository's position's and `envelope.kitInstalled` is true. `openSession` takes the kits the store lacks and adds `restore: {kits, message}` and a "Kits not restored" briefing line. `checkRoot` keeps the installation's refusal reason (`restore-required`, `lock-drift`) on its error. A lock without entries changes none of this.
10
+
11
+ Installation requirement (2026-11-03): a repository-bound method runs a kit only while the repository's own lock installs it. `resolveMethod` calls `requireKitInstalled(root, { id })` as soon as the binding is chosen and the task pin is read, for a first resolve, a pinned key and `--rebind` alike, before the kit is found, retained or restored and before any pin is written. A bound kit that no lock row names, whether a `packages` row or a kit row of a `package` carrier in `entries`, at any version and archive, refuses with `IA-CORE-KIT-NOT-INSTALLED` (`kit <id> is bound by this repository but its lock does not install it; run ia install <id> (or kit.mjs add <id>), then resolve again`), a code distinct from `IA-CORE-PIN-UNAVAILABLE`, and no bundled, IA-home or retained copy stands in for the missing row. Presence ignores version and archive, so a task pin older than the installed version keeps running from its retained bytes. `kitInstallation(root, id)` reports the lock's row and where it came from (`package` or `entry`), and `kitInstallMatches(root, { id, version, archive })` is the separate, pure question of whether the row is exactly that release; the resolver does not call it. The unbound route (outside a workspace, `--kit` with `--capability`) needs no row. A binding may name a kit by its folder (as `findKit` reads it): the lock is asked about the kit's canonical id. The refusal carries the kit as a field, `{ error: { code, message, kit } }` (`MethodError.kit`, written by `methodRefusal`). `kitInstallMatches` never throws: a lock that cannot be read or parsed matches nothing. `requireKitInstalled` still propagates an unreadable or corrupt lock as its own error, not as not installed.
10
12
 
11
13
  ## Optional topical context assembly
12
14
 
@@ -72,7 +74,7 @@ R13. Steward-write evaluation is a bounded pure consumer over admitted compiled
72
74
 
73
75
  R14. Scope key. `src/scope-key.ts` holds it: the package root exports `K0`, `SCOPE_KEY_CAPS`, `normalizeScopeKey`, `resolveScopeKey` and `rootRelative` with the `ScopeKey`, `ResolvedSeat` and `ResolvedScopeKey` types, and the `./internal/scope-key` subpath carries the module; `scopeCoordinate` (R01) is in `src/coordinate.ts`, on the `./internal/coordinate` subpath only. `ScopeKey` is K = (seat, shape, phase, depth, budget, word), with an optional primitive override: `shape` one of the five SHAPE_ROWS shapes, `phase` one of the four phases, `depth` an integer in 0..2, `budget` an integer in 0..64 and `word` optional; `SCOPE_KEY_CAPS` exports the two caps, and `K0` is the frozen key (no seat, context, orient, 0, 0, no word). Three seat notions are kept apart, each named once here. The key's `seat` is what a caller names: absent for the repository's own `@workspace`, a record identity, or `{path}` for a location. The resolved seat (`ResolvedSeat`) is what that names once read through the scope: `{kind, identity?, path?, unknown?}`, kind `workspace` for no seat (identity the repository's `@workspace`), `record` for an identity (identity that record) and `location` for a path (path its canonical workspace-relative path; a location is not a record and has no identity). The database's `SeatResolution.seat` (db D02b) is the record a path is declared at, a `@system` or `@workspace`; it stays in the result's `resolution` with the rule `by` and the path's claimants, and is never a location's resolved seat. `normalizeScopeKey(partial?)` completes a partial key with its defaults, the one place every host applies them: a partial that names no part (a part whose value is undefined is not named) is K0; otherwise `shape` defaults to context, `phase` to the anchor of the explicit primitive or the shape's primitive, PRIMITIVE_ANCHORS[primitive ?? SHAPE_ROWS[shape].primitive] (context orient, governance plan, execution act, sequence plan, learning learn), `depth` to 1 and `budget` to 16, and a seat, word or primitive override stays absent unless named. It reads nothing, so it checks the key's form and leaves the word and the seat to resolution. `resolveScopeKey(handle, within, key)` requires a scope token like every runtime read, checks a complete key and returns a frozen `{key, seat, resolution?, coordinate}`: `key` copies the validated parts in K order, a location as the canonical path it resolved to, so a key never carries the root; `seat` is the resolved seat; `resolution` is the database's resolution of the repository root `''` or of the path, for a workspace or location seat; and `coordinate` is scopeCoordinate's (R01), shape and phase declared, category derived, primitive declared when supplied and otherwise derived. Every key refusal is IA-RUNTIME-REQUEST-INVALID naming the closed set or bound: an unknown part, a shape, phase or primitive outside its closed set, a depth or budget outside its cap or not an integer, a seat that is neither an identity nor `{path}`, a word the read's view does not register for its admitted systems (db D09a `words`), the refusal listing those it does, an identity that is not an admitted record in the scope, and a path outside the workspace root or escaping it. The key's parts, closed sets, caps and seat form are checked before any read, so a key malformed in them is refused whatever the token. An absolute path reads by `rootRelative(root, path)`, the one absolute-path rule, which `ia read` also reads the path of a `<path>:<line>` locator with (2026-10-08, which gave the two one rule): the path from the handle's root that Node's `path.relative` gives (on Windows without case, with either separator), `/`-separated, and the root itself, however it is spelled, as `''`, the location that `.` also names (`ia read`, whose line locator needs a path, spells it `.`). It names no path inside the root, so it is undefined and the path goes on as given, refused below, when that path's first segment is `..`, a check made segment by segment, so an in-root name that only begins with `..`, such as `..cache`, is inside the root whichever way it is spelled, or when the path is on another drive, which has no path from the root. A relative path goes as given to the database's `resolveSeat` (db D02b), as does the path `rootRelative` reads, and the database canonicalises it segment by segment and names one that escapes the workspace `outside`, refused here: a `..` segment escapes. No seat takes the seat the database resolves for `''`: the `@workspace` declaring a `sources` root of the whole repository, else the repository's own `@workspace` as D02b decides it. When no admitted record in the scope is declared at a workspace or location seat, the resolved seat names `unknown: 'undeclared'`, and a workspace seat then has no identity: K0 is the empty composition with the unknown named, never a refusal (db D02b). Database token failures (SCOPE-UNAVAILABLE, STALE, CLOSED) keep their IA-DB codes on every read the resolution makes: the word's, the identity's and the path's. This row types, completes, validates and resolves the key; R15 assembles the body a resolved key gives (seeding, pointers to 48 then tallies, the word's restriction of seeds and tallies, blockers reserved outside the budget), and `position` (R16) completes, resolves and assembles a key with its digest and host note. The Door's `position` operation reads a key (R12 refinement, position); the nine version 1 Door routes, `context` and `select` included, and `ia scope` neither read nor accept one, and the consumer verb is `ia position`. Each key refusal's `RuntimeError` carries `next`, the one command to run: the closed set of a shape or phase, the cap of a depth or budget, `ia vocabulary` for a word, and `ia position`, K0, for a key that is no object or names an unknown part and for a seat of another form, outside the scope or outside the workspace. `RuntimeError` gains the optional `next` for it, absent from every other refusal. `tests/scope-key.test.ts` pins the caps and K0; the defaults, an empty partial being K0 and every shape's anchor phase; a key naming only a shape resolved, and depth 3 and budget 65 refused; a key completed from shape and phase alone for every shape and phase; the unchanged version 1 refusal bytes of a context or select request that declares only shape and phase; the closed sets, caps and seat form refused by both functions, an unknown part and a key that is no object naming `ia position` as `next`, and the key's form refused before a forged token is read; the token on every seat form and the word, a forged, stale or closed one keeping its database code; the registered word checked in the scope's own view; each seat form and a location pruned by a narrower scope; absolute paths inside the root, in native, forward and mixed separators (and on Windows with the drive letter in either case), read as the relative path, the root in every spelling as the location `''`, an in-root name beginning with `..` read alike in both spellings, and absolute paths outside the root (a sibling whose name extends the root's among them), escaping paths and another drive refused; `rootRelative` itself on each of those spellings, a relative path returned as given; K0 seated by a workspace that declares the whole repository as a root; and K0 with the repository workspace undecided.
74
76
 
75
- R15. Position body (2026-10-08): `src/position.ts`, exported from the package root and the `./internal/position` subpath, publishes `positionBody(handle, within, resolved)` with the `PositionBody`, `LoadedEntry`, `LoadedPlace`, `LoadedRecord`, `PositionRecord`, `PositionPointer`, `PositionVia`, `PointerTally`, `FrontierTally`, `PositionUnknown`, `PositionCounts` and `PositionWidening` types. `resolved` is what resolveScopeKey (R14) returned for the same scope token `within`. Every read carries that token: the snapshot and its D02a membership rows, directed views (db D09), the declared roots (db D02c `roots`) and the seat of `''` (D02b); a missing token is IA-RUNTIME-REQUEST-INVALID, and an unknown, stale or closed one keeps its database code, and a resolved seat identity the token does not admit (a key resolved through another token) is IA-RUNTIME-REQUEST-INVALID, `The seat '<identity>' is not an admitted record in this scope`, naming as its `next` `ia position`, the position without that seat, as R14 names it for a seat outside the scope. body(K) is a pure function of the key and the admitted records the token reads, and only a whole-workspace token (db `isCompleteScope`, PT5) also reads the admission findings it alone may disclose: it carries no root path, token, time, request text, capture state or record body (a body is read on demand by `ia read`; R17's cells carry a playbook cell's text, not its record's body), and nothing is written. A record at runtime placement (band 0) is no part of a body (2026-10-08: runtime-band evidence is admitted below authored, where it must not move what agents are given): the body reads the scope's records without those records and without every directed-view row and claimant that names one, so none is composition, a seed, a hop or waypoint, loaded, in `rules`, a pointer, tallied or frontier, none primes, reaches or names the steward of another record, and none claims a location or is the record one is declared at, so a location whose declarer and claimants are all at runtime placement names the `seat` unknown it would name without them; a seat at runtime placement, whether the key names it or it is the repository's own `@workspace` (K0 included), is IA-RUNTIME-REQUEST-INVALID, `The seat '<identity>' is at runtime placement (band 0), which no position body enters`, whose `next` (2026-10-08, moved here from the Door) is `ia inspect`, the overview, when the seat is the one K0 takes, the repository's own `@workspace` (`resolveSeat('')`), whether the key names it or not, since K0 is refused alike, and `ia position`, the position without it, for any other seat. Two inputs still read every placement, so a runtime-band record appearing can still move the body. The database's own decisions: a runtime-band `@workspace` or `@system` can move the D02a membership roots, the D02c declared roots, the D02b seat of a path and the repository's own `@workspace` that the closure is built from, and a location's resolved `seat` (R14) then names no `unknown` while `unknowns` names the seat. Admission's findings, which resolve every reference against every placement: a runtime-band record that an edge or field reference of an authored loaded record names resolves it, so that record's IA-GRAPH-TARGET-MISSING or IA-COMP-FIELD-REF-MISSING `finding` leaves `unknowns`, and the row to it, naming a band-0 record, is dropped, so the body names that relation neither as a pointer nor as an unknown. The body's `revision` is not one of them: it is the authored revision of the view the scope reads (db D05a), which no runtime-band source moves (R16). It is `{format: 'ia.position-body.v1', revision, key, seat, loaded, rules, pointers, pointerTallies, appliesByWord, appliesByWordTallies, cells, mandates, frontier, unknowns, counts, widening}`, `key` and `seat` being the resolved key and seat and the four sections after `pointerTallies` R17's. The seat's workspace is the seat when it is a `@workspace`; else, of the repository's own `@workspace`, the one D02b seats `''` at, and the workspace of the first declared root, in D02c order, that contains the D02a membership root of the seat record (for a location, of the record it is declared at), the first whose closure holds that record; else no workspace holds the seat. A floor or adopted record, an installed one included, is in every closure, so it is seated in the repository's own workspace with the records the repository authors, even when the installed or adopted `@workspace` that ships it declares the root it sits in, as the bundled base's language-workspace declares `.ia/src @authored` in the store (2026-10-08: the floor, the adopted records and the repository's own roots); the workspace whose root holds the record is taken for an authored record of another workspace's root. A workspace's closure is every floor (band 10) and adopted (band 90) record, plus the members of its own declared roots or, while it declares none, every record whose membership root no workspace declares; when no workspace holds the seat, the closure is that fallback. Reading the closure as the declared members alone would leave a repository without a declared root (the conformance corpus, and every repository an earlier `ia init` made, which declared none) unable to reach any record of its own; and falling back to the repository's workspace whatever its roots would, when none of them holds the seat record, leave the seat outside its own closure (the seat S always resolves inside it) and its own system's blocking governance out of `rules`. Both fallbacks are named under `unknowns`. A record outside the closure is never entered: it is a pointer that names, as `workspace`, the `@workspace` whose declared root holds it, when one does. The composition C0, at cost 0 and one level from the seat, is the seat's field references both ways (directed-view `field-ref` rows); a `@workspace` seat's capture members, the membership rows under its own declared roots; a `@system` seat's word members, the admitted records whose owner system it is; and a location's declared-at record and claimants from `resolution`. A location is no record and has no fields, and a workspace seat no record declares has an empty composition. The first class that reaches a C0 record is its `via`, unless a hop reaches it (below): `field` (`from`, `field`, `direction`, read from `from`'s side), `membership` (`root`), `word` (`system`), `declared-at` (`rule`) or `claim` (`matches`); C0 counts only what the closure admits, a composition record a hop reaches included. The seeds Σ are the seat and the C0 records whose kind is in SHAPE_ROWS[shape].kinds or whose lane, graph `laneOf` (G05), is in its lanes. Hops 1..depth start from Σ and follow directed-view edge rows only, declared or derived inverse, in either direction, whose predicate is in SHAPE_ROWS[shape].predicates, never leaving the closure; each record other than the seat and the seeds that a hop reaches, a C0 record among them, keeps the first row that reaches it, from the seat, then the seeds and each later hop in identity order, as `via: {by: 'row', from, predicate, spelling, declaredBy}`, and is in C. A row that carries a condition is a row of the body only where its condition holds at the key's coordinate (2026-10-08): graph `conditionHolds` over the coordinate R14's scopeCoordinate builds, the key's shape and phase with the derived category and selected primitive, the condition's subject being the record that states the row (its `declaredOn`, the author graph G06 keeps as an edge's condition subject), so the body agrees with graph traversal for the same coordinate. A row that does not hold is not followed and its counterpart is not reached through it: it is no hop, primes no record, names no out-of-focus pointer and counts in no frontier, while a field reference carries no condition. The phase can so change the loaded set; a body whose rows carry no condition is unchanged by it. The conformance corpus's fixture law `enforced-by @check instance-schema-check when phase is act and severity is blocking` reaches the check at act only. With `word` set (the word restricts seeds and tallies inside the body, and blockers are reserved outside n), C0, the seeds, the hop-reached records that load, the pointers, their tallies and the frontier are records of that word only; a record of another word that a hop reaches is a waypoint, followed but never loaded or listed; the seat loads whatever its word. The word never filters `rules` (2026-10-08: a word must not hide a blocking rule that governs what it loads, as one claiming a location seat or applying by its subject-word to a record of the word would be hidden if R were read under the word): R is taken from the candidates of the walk without the word, each with the row or class that reaches it there, so `rules` under a word is the body's without it, and R17's applies-by-word section with its tallies, its cells and the mandates are not filtered either. The order keys are total: governance (prime ↑, band ↓, hop ↑, sev ↑, identity ↑) and every other shape (band ↓, hop ↑, lane ↑, identity ↑). prime is the least index in SHAPE_ROWS.governance.priming (govern, constrain, forbid, enforce, implement) of an edge row incident to the record, else 5; sev is the rank of graph `effectiveSeverity` in [blocking, advisory, informational], a record with none last; lane is its index in the shape's lanes, else their count; hop is 0 for Σ and for a C0 record no hop reaches, else the first hop that reached it. The candidates K = {S} ∪ C0 ∪ Σ ∪ C, C the hop-reached records, are taken before any truncation and before the word filter, and `rules` is R, the governance-kind candidates other than the seat whose effective severity is blocking, with the blocking rules that apply by word to a candidate (R17), in the governance order and never counted against the budget, so a blocking law that claims a location only through `subject.covers` is in `rules` at budget 0. `loaded` is the seat, then the first `budget` records of ((Σ \ {S}) ∪ C) \ R in the shape's order. A record seat loads as a `LoadedRecord`; a location, or a workspace seat no record declares, as the `LoadedPlace` `{path}` of its canonical path (`''` for the latter). A `LoadedRecord`, and each entry of `rules`, is the pointer tuple plus the record's G13 `digest`. `pointers` are the C0 and hop-reached records outside `loaded` and `rules`, those the budget truncated among them; the records outside the closure that composition or a hop reached; and the counterparts of each loaded record's out-of-focus edge rows and field references, at that record's hop. Each is listed once, by the first that reaches it, in the shape's order, as the pointer 9-tuple `{identity, word, kind, lane, system, steward?, band, hop, via}`, `system` being the owner system and `steward` the `head.steward` field reference of its `@system` record (`floor/definition/system/<name>`) when the scope admits it, read without the registry. The first 48 are listed, and the rest are tallied per (word, owner system) as `{system, word, steward?, count}`, sorted by system then word. `frontier` tallies per (owner system, kind), as `{system, kind, steward?, count}`, the counterparts of the in-focus rows of the loaded records at hop `depth` that the body neither lists nor reached, never entered. `unknowns` are `{kind, subject?, code?, path?, line?, message}`: `seat` for a location no admitted record is declared at, a location that nothing claims and none is declared at (`no record claims '<path>' and none is declared at it; widening key: the workspace`, or on a narrowed scope, which prunes the claimants it does not admit, `no record in this scope claims '<path>' and none in it is declared at it; widening key: the workspace`), or the repository root no `@workspace` is declared at; `sources` when the seat's workspace declares no sources (`workspace declares no sources: …`) or no workspace holds the seat; `finding`, read only on a whole-workspace scope (db PT5, as R18 reads admission findings), each IA-GRAPH-TARGET-MISSING, IA-GRAPH-TARGET-AMBIGUOUS, IA-GRAPH-EDGE-UNCONSENTED and IA-COMP-FIELD-REF-MISSING report finding on the source span of a loaded record, the innermost one, with its code, path, line and message; and `unread` on a narrowed scope, which reads none. `counts` are `{composition: |C0|, seeds: |Σ| with the seat, loaded: |L| with the seat, rules, pointers (listed and tallied), appliesByWord (R17), frontier, truncatedLoaded, truncatedPointers, truncatedAppliesByWord}`. `widening` is `{deeper: the key at depth + 1, absent at depth 2; reseat: {shape, phase, primitive?, depth: 1, budget: 16}}`, to be seated at any pointer, no seat being the repository's workspace. `position` (R16) returns the body with its digest and host note; R17 adds the applies-by-word section, the playbook cells and the mandates; and the Door's version-2 `position` operation and the MCP tool `ia_position` serve it (R12), as does the `ia position` CLI verb (apps/cli/SPEC.md). `tests/position.test.ts` pins, over the conformance corpus, golden bodies of K0, governance at the fixture law (at plan, where its conditional `enforced-by` row does not hold, and at act, where it does), sequence at depth 2 from the workspace and the word law at the governance-system seat, in `tests/golden/` with the revision masked and asserted apart (only `node packages/runtime/tests/golden/write.mjs` regenerates them); K0's single loaded seat, five system pointer lines from `composition.systems`, frontier and named missing sources; byte-equal bodies for equal keys through every whole-workspace token and handle of one revision, and a token selecting every admitted identity differing only by the `unread` note; hops in either direction, out-of-focus pointers and a seed a later hop reaches keeping hop 0; each order key deciding in turn (band, then hop, then lane in the other shapes; prime, then band, an adopted record against a local one, then hop, then sev in governance) and two blocking laws in `rules` in the governance order under governance and context; seeds picked by kind and by lane (an authority-facet contract); the counts of a budget below |Σ ∪ C| and one tally past 48 per word and owner system; the word law loading the seat and only laws, waypoints and only-law pointers, tallies and frontier; a location seat claimed only through `subject.covers` by a blocking law at budget 0, the law in `rules`, not a pointer, the seat alone loaded; a location nothing claims, and one claimed but declared at no record; a record of another workspace's root never entered and named as a pointer, whether a hop or the seat's `composition.systems` reaches it, and not listed under a word it is not of; a location in that root's system folder, closed in that workspace; an adopted `@system` seated in the repository's workspace though its adopted `@workspace` declares the root it sits in, the repository's own blocking law of its word reserved; a conditional row followed at each phase exactly where graph traversal follows it for the key's coordinate, from either side and with its severity term read from the record that states it, and a task reached through a conditional requirement only at the phase it names; the narrowed location unknown; K0 with the repository workspace undecided; a seat no declared root holds, under the fallback closure and named, its blocking law still in `rules`; on a whole-workspace scope, missing targets, unconsented rows and missing field references named on the loaded record whose span holds them, never on an earlier record of the file or on a pointer, and the `unread` note on a narrowed one; and the token. `tests/purity.test.ts` pins the runtime-placement rule (R16). The conformance corpus places no source at runtime, so the rule leaves the golden bodies unchanged.
77
+ R15. Position body (2026-10-08): `src/position.ts`, exported from the package root and the `./internal/position` subpath, publishes `positionBody(handle, within, resolved)` with the `PositionBody`, `LoadedEntry`, `LoadedPlace`, `LoadedRecord`, `PositionRecord`, `PositionPointer`, `PositionVia`, `PointerTally`, `FrontierTally`, `PositionUnknown`, `PositionCounts` and `PositionWidening` types. `resolved` is what resolveScopeKey (R14) returned for the same scope token `within`. Every read carries that token: the snapshot and its D02a membership rows, directed views (db D09), the declared roots (db D02c `roots`) and the seat of `''` (D02b); a missing token is IA-RUNTIME-REQUEST-INVALID, and an unknown, stale or closed one keeps its database code, and a resolved seat identity the token does not admit (a key resolved through another token) is IA-RUNTIME-REQUEST-INVALID, `The seat '<identity>' is not an admitted record in this scope`, naming as its `next` `ia position`, the position without that seat, as R14 names it for a seat outside the scope. body(K) is a pure function of the key and the admitted records the token reads, and only a whole-workspace token (db `isCompleteScope`, PT5) also reads the admission findings it alone may disclose: it carries no root path, token, time, request text, capture state or record body (a body is read on demand by `ia read`; R17's cells carry a playbook cell's text, not its record's body), and nothing is written. A record at runtime placement (band 0) is no part of a body (2026-10-08: runtime-band evidence is admitted below authored, where it must not move what agents are given): the body reads the scope's records without those records and without every directed-view row and claimant that names one, so none is composition, a seed, a hop or waypoint, loaded, in `rules`, a pointer, tallied or frontier, none primes, reaches or names the steward of another record, and none claims a location or is the record one is declared at, so a location whose declarer and claimants are all at runtime placement names the `seat` unknown it would name without them; a seat at runtime placement, whether the key names it or it is the repository's own `@workspace` (K0 included), is IA-RUNTIME-REQUEST-INVALID, `The seat '<identity>' is at runtime placement (band 0), which no position body enters`, whose `next` (2026-10-08, moved here from the Door) is `ia inspect`, the overview, when the seat is the one K0 takes, the repository's own `@workspace` (`resolveSeat('')`), whether the key names it or not, since K0 is refused alike, and `ia position`, the position without it, for any other seat. Two inputs still read every placement, so a runtime-band record appearing can still move the body. The database's own decisions: a runtime-band `@workspace` or `@system` can move the D02a membership roots, the D02c declared roots, the D02b seat of a path and the repository's own `@workspace` that the closure is built from, and a location's resolved `seat` (R14) then names no `unknown` while `unknowns` names the seat. Admission's findings, which resolve every reference against every placement: a runtime-band record that an edge or field reference of an authored loaded record names resolves it, so that record's IA-GRAPH-TARGET-MISSING or IA-COMP-FIELD-REF-MISSING `finding` leaves `unknowns`, and the row to it, naming a band-0 record, is dropped, so the body names that relation neither as a pointer nor as an unknown. The body's `revision` is not one of them: it is the authored revision of the view the scope reads (db D05a), which no runtime-band source moves (R16). It is `{format: 'ia.position-body.v1', revision, key, seat, loaded, rules, pointers, pointerTallies, appliesByWord, appliesByWordTallies, cells, mandates, frontier, unknowns, counts, widening}`, `key` and `seat` being the resolved key and seat and the four sections after `pointerTallies` R17's. The seat's workspace is the seat when it is a `@workspace`; else, of the repository's own `@workspace`, the one D02b seats `''` at, and the workspace of the first declared root, in D02c order, that contains the D02a membership root of the seat record (for a location, of the record it is declared at), the first whose closure holds that record; else no workspace holds the seat. A floor or adopted record, an installed one included, is in every closure, so it is seated in the repository's own workspace with the records the repository authors, even when the installed or adopted `@workspace` that ships it declares the root it sits in, as the bundled base's language-workspace declares `.ia/src @authored` in the store (2026-10-08: the floor, the adopted records and the repository's own roots); the workspace whose root holds the record is taken for an authored record of another workspace's root. D02b's unique init entry point keeps the repository seat decidable when local domain workspaces declare sources; this does not widen a closure. A repository and a domain that need the same local records must both declare those membership roots explicitly, and private domain roots remain outside other closures. A workspace's closure is every floor (band 10) and adopted (band 90) record, plus the members of its own declared roots or, while it declares none, every record whose membership root no workspace declares; when no workspace holds the seat, the closure is that fallback. Reading the closure as the declared members alone would leave a repository without a declared root (the conformance corpus, and every repository an earlier `ia init` made, which declared none) unable to reach any record of its own; and falling back to the repository's workspace whatever its roots would, when none of them holds the seat record, leave the seat outside its own closure (the seat S always resolves inside it) and its own system's blocking governance out of `rules`. Both fallbacks are named under `unknowns`. A record outside the closure is never entered: it is a pointer that names, as `workspace`, the `@workspace` whose declared root holds it, when one does. The composition C0, at cost 0 and one level from the seat, is the seat's field references both ways (directed-view `field-ref` rows); a `@workspace` seat's capture members, the membership rows under its own declared roots; a `@system` seat's word members, the admitted records whose owner system it is; and a location's declared-at record and claimants from `resolution`. A location is no record and has no fields, and a workspace seat no record declares has an empty composition. The first class that reaches a C0 record is its `via`, unless a hop reaches it (below): `field` (`from`, `field`, `direction`, read from `from`'s side), `membership` (`root`), `word` (`system`), `declared-at` (`rule`) or `claim` (`matches`); C0 counts only what the closure admits, a composition record a hop reaches included. The seeds Σ are the seat and the C0 records whose kind is in SHAPE_ROWS[shape].kinds or whose lane, graph `laneOf` (G05), is in its lanes. Hops 1..depth start from Σ and follow directed-view edge rows only, declared or derived inverse, in either direction, whose predicate is in SHAPE_ROWS[shape].predicates, never leaving the closure; each record other than the seat and the seeds that a hop reaches, a C0 record among them, keeps the first row that reaches it, from the seat, then the seeds and each later hop in identity order, as `via: {by: 'row', from, predicate, spelling, declaredBy}`, and is in C. A row that carries a condition is a row of the body only where its condition holds at the key's coordinate (2026-10-08): graph `conditionHolds` over the coordinate R14's scopeCoordinate builds, the key's shape and phase with the derived category and selected primitive, the condition's subject being the record that states the row (its `declaredOn`, the author graph G06 keeps as an edge's condition subject), so the body agrees with graph traversal for the same coordinate. A row that does not hold is not followed and its counterpart is not reached through it: it is no hop, primes no record, names no out-of-focus pointer and counts in no frontier, while a field reference carries no condition. The phase can so change the loaded set; a body whose rows carry no condition is unchanged by it. The conformance corpus's fixture law `enforced-by @check instance-schema-check when phase is act and severity is blocking` reaches the check at act only. With `word` set (the word restricts seeds and tallies inside the body, and blockers are reserved outside n), C0, the seeds, the hop-reached records that load, the pointers, their tallies and the frontier are records of that word only; a record of another word that a hop reaches is a waypoint, followed but never loaded or listed; the seat loads whatever its word. The word never filters `rules` (2026-10-08: a word must not hide a blocking rule that governs what it loads, as one claiming a location seat or applying by its subject-word to a record of the word would be hidden if R were read under the word): R is taken from the candidates of the walk without the word, each with the row or class that reaches it there, so `rules` under a word is the body's without it, and R17's applies-by-word section with its tallies, its cells and the mandates are not filtered either. The order keys are total: governance (prime ↑, band ↓, hop ↑, sev ↑, identity ↑) and every other shape (band ↓, hop ↑, lane ↑, identity ↑). prime is the least index in SHAPE_ROWS.governance.priming (govern, constrain, forbid, enforce, implement) of an edge row incident to the record, else 5; sev is the rank of graph `effectiveSeverity` in [blocking, advisory, informational], a record with none last; lane is its index in the shape's lanes, else their count; hop is 0 for Σ and for a C0 record no hop reaches, else the first hop that reached it. The candidates K = {S} ∪ C0 ∪ Σ ∪ C, C the hop-reached records, are taken before any truncation and before the word filter, and `rules` is R, the governance-kind candidates other than the seat whose effective severity is blocking, with the blocking rules that apply by word to a candidate (R17), in the governance order and never counted against the budget, so a blocking law that claims a location only through `subject.covers` is in `rules` at budget 0. `loaded` is the seat, then the first `budget` records of ((Σ \ {S}) ∪ C) \ R in the shape's order. A record seat loads as a `LoadedRecord`; a location, or a workspace seat no record declares, as the `LoadedPlace` `{path}` of its canonical path (`''` for the latter). A `LoadedRecord`, and each entry of `rules`, is the pointer tuple plus the record's G13 `digest`. `pointers` are the C0 and hop-reached records outside `loaded` and `rules`, those the budget truncated among them; the records outside the closure that composition or a hop reached; and the counterparts of each loaded record's out-of-focus edge rows and field references, at that record's hop. Each is listed once, by the first that reaches it, in the shape's order, as the pointer 9-tuple `{identity, word, kind, lane, system, steward?, band, hop, via}`, `system` being the owner system and `steward` the `head.steward` field reference of its `@system` record (`floor/definition/system/<name>`) when the scope admits it, read without the registry. The first 48 are listed, and the rest are tallied per (word, owner system) as `{system, word, steward?, count}`, sorted by system then word. `frontier` tallies per (owner system, kind), as `{system, kind, steward?, count}`, the counterparts of the in-focus rows of the loaded records at hop `depth` that the body neither lists nor reached, never entered. `unknowns` are `{kind, subject?, code?, path?, line?, message}`: `seat` for a location no admitted record is declared at, a location that nothing claims and none is declared at (`no record claims '<path>' and none is declared at it; widening key: the workspace`, or on a narrowed scope, which prunes the claimants it does not admit, `no record in this scope claims '<path>' and none in it is declared at it; widening key: the workspace`), or the repository root no `@workspace` is declared at; `sources` when the seat's workspace declares no sources (`workspace declares no sources: …`) or no workspace holds the seat; `finding`, read only on a whole-workspace scope (db PT5, as R18 reads admission findings), each IA-GRAPH-TARGET-MISSING, IA-GRAPH-TARGET-AMBIGUOUS, IA-GRAPH-EDGE-UNCONSENTED and IA-COMP-FIELD-REF-MISSING report finding on the source span of a loaded record, the innermost one, with its code, path, line and message; and `unread` on a narrowed scope, which reads none. `counts` are `{composition: |C0|, seeds: |Σ| with the seat, loaded: |L| with the seat, rules, pointers (listed and tallied), appliesByWord (R17), frontier, truncatedLoaded, truncatedPointers, truncatedAppliesByWord}`. `widening` is `{deeper: the key at depth + 1, absent at depth 2; reseat: {shape, phase, primitive?, depth: 1, budget: 16}}`, to be seated at any pointer, no seat being the repository's workspace. `position` (R16) returns the body with its digest and host note; R17 adds the applies-by-word section, the playbook cells and the mandates; and the Door's version-2 `position` operation and the MCP tool `ia_position` serve it (R12), as does the `ia position` CLI verb (apps/cli/SPEC.md). `tests/position.test.ts` pins, over the conformance corpus, golden bodies of K0, governance at the fixture law (at plan, where its conditional `enforced-by` row does not hold, and at act, where it does), sequence at depth 2 from the workspace and the word law at the governance-system seat, in `tests/golden/` with the revision masked and asserted apart (only `node packages/runtime/tests/golden/write.mjs` regenerates them); K0's single loaded seat, five system pointer lines from `composition.systems`, frontier and named missing sources; byte-equal bodies for equal keys through every whole-workspace token and handle of one revision, and a token selecting every admitted identity differing only by the `unread` note; hops in either direction, out-of-focus pointers and a seed a later hop reaches keeping hop 0; each order key deciding in turn (band, then hop, then lane in the other shapes; prime, then band, an adopted record against a local one, then hop, then sev in governance) and two blocking laws in `rules` in the governance order under governance and context; seeds picked by kind and by lane (an authority-facet contract); the counts of a budget below |Σ ∪ C| and one tally past 48 per word and owner system; the word law loading the seat and only laws, waypoints and only-law pointers, tallies and frontier; a location seat claimed only through `subject.covers` by a blocking law at budget 0, the law in `rules`, not a pointer, the seat alone loaded; a location nothing claims, and one claimed but declared at no record; a record of another workspace's root never entered and named as a pointer, whether a hop or the seat's `composition.systems` reaches it, and not listed under a word it is not of; a location in that root's system folder, closed in that workspace; an adopted `@system` seated in the repository's workspace though its adopted `@workspace` declares the root it sits in, the repository's own blocking law of its word reserved; a conditional row followed at each phase exactly where graph traversal follows it for the key's coordinate, from either side and with its severity term read from the record that states it, and a task reached through a conditional requirement only at the phase it names; the narrowed location unknown; K0 with the repository workspace undecided; a seat no declared root holds, under the fallback closure and named, its blocking law still in `rules`; on a whole-workspace scope, missing targets, unconsented rows and missing field references named on the loaded record whose span holds them, never on an earlier record of the file or on a pointer, and the `unread` note on a narrowed one; and the token. `tests/purity.test.ts` pins the runtime-placement rule (R16). The conformance corpus places no source at runtime, so the rule leaves the golden bodies unchanged.
76
78
 
77
79
  R16. Position and host note (2026-10-08): `src/position.ts`, on the package root and the `./internal/position` subpath, also publishes `position(handle, within, partial?)` with the `PositionOutput`, `HostNote` and `Freshness` types. It completes `partial` with normalizeScopeKey (R14), resolves the key with resolveScopeKey through the scope token `within`, assembles the body with positionBody (R15) and returns the frozen `{body, digest, hostNote}`, the two outputs of a position, printed together and never merged. `digest` is graph's codec `digest` of the body, the SHA-256 of its canonical JSON text, and the note carries none. Purity: the body is a function of the key and the admitted revision alone. A key's parts are closed (R14), so a partial naming `text`, `token`, `within` or any other part is an unknown part, IA-RUNTIME-REQUEST-INVALID, and nothing text-driven runs, no classifier, search or text ranking; the version 1 `context` and `select` operations stay text-driven and unchanged. The body names no root path (a location seat spelled as an absolute path enters it as its root-relative path), no scope token, no time, no request text and no capture: one key over two copies of a corpus at different roots gives byte-equal bodies and equal digests, a `context` call with any text on the same handle and token leaves both unchanged, and so does writing a capture. The host note is host state, never claimed identical across hosts or working trees: `{revision, capturedRevision?, previousRevision?, freshness, key}`. `revision` is the handle's authored revision (`handle.authoredRevision`, db D05a); `capturedRevision` the authored revision of the capture at `.ia/work/snapshot/current.json` (db D08a) and `previousRevision` the authored revision of the previous root snapshot the handle retains (db D08), each absent when there is none; `freshness` is `current` when the capture is at `revision`, `stale` when it is at another and `no-capture` when there is none; and `key` is the key used, the partial normalizeScopeKey completed, a location as the caller spelled it, while the body's `key` is the resolved one. The handle reads the capture pair once per state, on first use, so a capture written while it is open shows after its `refresh`, the scope token still valid. A position does not require a capture: the body is computed over the live admitted revision, and freshness is a note, never a refusal. The note reports no installed state per command, no CLI or adapter id@version and no classification rule number. Records at runtime placement are no part of the body (R15), so a runtime-band record appearing that no authored record names and that decides no database seat or root leaves it, its `revision` (the authored revision), its digest and the host note byte-equal. Only `handle.revision`, the graph revision that hashes every source at its placement (graph revisionOf), moves. The note compares authored revisions, so a capture taken before stays `current`. A runtime-band record that an authored loaded record's edge or field reference names moves `unknowns` too (R15): admission resolves the reference against every placement, so the record's missing-target or missing-field-reference finding leaves the body. That is the evidence flow itself, an observation an `ia validate` writes at runtime placement that a task's `work.exit-evidence` names. Such evidence can still move body(K) and its digest through `unknowns`, while it leaves the body's `revision` and a capture's freshness unchanged. Refusals are those of the three steps: the key's (R14), the token's (a missing one IA-RUNTIME-REQUEST-INVALID, an unknown, stale or closed one its database code) and a seat at runtime placement (R15), each refusal of the key or its seat carrying `next`. The Door serves it as the `position` operation (R12 refinement, position), the MCP door as `ia_position` and the CLI as the consumer verb `ia position` (apps/cli/SPEC.md). `tests/purity.test.ts` pins, for K0 and seven other keys (two locations among them), byte-equal bodies and digests at two roots, and the digest the codec digest of the body; an absolute location seat root-free in the body and as spelled in the note, with no token in the body; a capture that moves only the note: `no-capture`, then `current` after a refresh with the same token and on a new handle, then `stale` after an edit, the earlier revision captured and previous, which the body names neither; `text`, `token` and `within` refused as key parts, and the token refusals; bodies and digests unchanged by two `context` calls with text, in both rankings; runtime-band records (a blocking law that the check enforces and that claims two paths, and observations of the workspace and of the law) leaving each body, its revision and its digest unchanged while `handle.revision` moves, and a capture current across them, while the same records authored change every one, and a seat at runtime placement refused, a named one and K0's with the repository's own `@workspace` placed so; a location whose only declarer is a runtime-band `@system` naming the seat unknown, its body differing from the body without that `@system` in the resolved seat's `unknown` alone; the limit pinned: a runtime-band check and observation that an authored law's `enforced-by` and a task's `work.exit-evidence` name removing exactly those two findings from the bodies seated at the law and the task; and a key resolved through a whole-workspace token refused through a narrower one that does not admit its seat.
78
80
 
@@ -86,6 +88,8 @@ Entry contract (2026-09-24): `/entry` exports `isEntry(argv1, moduleUrl)`, which
86
88
 
87
89
  Machine protocol description (2026-09-29, the R12 Door protocol): `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. 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.
88
90
 
91
+ R12 held scopes (2026-10-30; db D08c): a door keeps no list of its tokens, which would grow for as long as it serves. Its handle is its own, so what the handle issued is what the door issued, and the door asks it (`isIssuedScope`): a token it did not issue answers IA-DB-SCOPE-UNAVAILABLE `Token was not issued by this door`, as it always has. A token whose scope the handle has evicted was issued, so every operation that takes `within` answers it IA-DB-STALE and reads nothing, and the client issues another scope. The door pins its initial scope, since a client that always names a token never reads it and every later call that omits `within` needs it. That one pin sits outside the bound, so it takes no ordinary place, and it is the door's only one: a client cannot pin, as `scope` admits no such parameter. The frozen version 1 rows keep their refusals and their text, so the protocol's `flow` and its `differences` name IA-DB-STALE, beside the lifetime of a token; neither is in the golden, which holds the operation rows. `tests/select-door.test.ts` pins IA-DB-STALE from each of the eleven operations that take a token, the initial boundary and a kept token still reading after the eviction with no call having read the initial scope, 4,096 ordinary tokens fitting beside the pin, `pinned` refused as a parameter, and the published refusal for a forged token and another door's.
92
+
89
93
  R12 protocol version 2 refinement (2026-10-08): the Door also accepts `read`, its params `{within?, locator, includeRuntime?}` closed as every operation's are, and answers `{ok: true, result}` with the `ReadBody` `readBody` returns, or that function's refusal. It always reads through a token, the initial one when `within` is omitted, and passes it to `readBody` as `ReadBodyOptions.within`, so every lookup (`get` and `records`) is in that scope and the boundary is by identity: an identity, a fragment or a `path:line` that no admitted record in the scope answers, whether its record is outside the scope, refused by admission or absent, is, through a token narrower than the whole workspace, one plain IA-RUNTIME-READ-UNADMITTED, `{ok: false, code, message: 'The locator is not in this scope'}`, which names no path, line, identity or refused record. Through a whole-workspace token (db `isCompleteScope`, PT5: one whose scope, and every scope it was issued under, is at the workspace root with no `phase` or `identities`, such as the initial token of a door opened without a `boundary`, or with one that sets none of them, and a token `scope` issues from such a token without setting them; a root below the workspace root, a phase or identities make a token narrower), which reads what the root view reads, a miss is the root view's refusal: an identity a source holds whose record admission refused reads `in this workspace's sources, but admission refused it` with that record's path, line, `file` `refused` and the `reason` admission gives, any other identity `not in this workspace's sources`, and a line what the workspace's sources hold in its file (2026-10-08: one disclosure rule for the version 2 operations, the one `next` follows, R18). Without `within`, `readBody` reads in the root view as before, its refused-identity refusal now also carrying that `reason`, and `ia read`, which prints no `reason`, is unchanged. A record in the scope reads as `readBody` reads it, its fragment, placement and unreachable refusals included. The Door reads a document through `DoorOptions.read`, by default db `readWorkspaceBytes` (D01a) over its root bounded at the CLI workspace file reader's 4 MiB, which admits the paths that reader's portable rule admits. The default reader's refusals name a document by its workspace-relative path and never the server's root: those of `readWorkspaceBytes` already do (a link or junction, a nonportable path, an irregular, missing or oversized file), `readBody` refuses a document path outside the workspace before any read, and a root that can no longer be opened, as when the workspace moves while the door serves, which db names by the root, is refused IA-RUNTIME-READ-UNREACHABLE, as every failure of the reader is, its message carrying the reader's IA-DB-ROOT-INVALID, `The workspace can no longer be opened to read <path>`, which names the document alone; the CLI's own reader names a link by its absolute local path. It binds adopted mounts once, when it opens, from db `adoptedBindings` over the manifest `open` has just read, as `ia read` binds them when its session opens, so they match the handle's snapshot and a manifest rewritten while the door serves changes no read; a door opened with explicit `adopted` captures, which name no directory, binds none. `includeRuntime` must be a boolean, and a locator that spells no form is IA-RUNTIME-REQUEST-INVALID. `DoorOptions.protocol` is the `MACHINE_PROTOCOL` version the door serves, by default the table's, and one that is not an integer from 1 to it is a TypeError: a door at version 1 refuses `read` before reading its params, as the unknown operation 1.1.0's door refused it, byte for byte, and binds no mounts. An unknown operation's refusal lists the operations the door serves in table order, `read` after the version 1 operations from version 2. `MACHINE_PROTOCOL` is version 2: `ProtocolOperation` gains an optional `since`, absent on the nine version 1 rows, whose JSON stays byte-identical to what tag v1.1.0 exported (`tests/golden/machine-protocol-v1.json`; `src/machine-protocol.ts` was unchanged since the tag when it was taken), and the `read` row is appended with `since: 2` and `mcp: 'ia_read'`, with one flow line saying so. The version 1 parameter digest is still over the nine rows, and version 2's is over every row. The CLI's machine routes stay the version 1 operations: `runCli`, which the `ia` binary's nine routes, `@inventarch/cli/internal/main` and the host launcher's `door` mode run, opens its door at protocol version 1, and `LEGACY_OPERATIONS`, the usage line and `ia <operation> --help` and `--schema`, which describe the routes at version 1 as 1.1.0 did, are unchanged; `ia read` remains the consumer verb, which returns the Door's body and digest and refuses a document the Door refuses with the same code. The MCP door serves `ia_read` from the row. `tests/door-read.test.ts` pins in-scope reads, the plain refusal for each locator form outside a narrowed boundary with no path named, the whole workspace's token answering a refused record with its path, line and reason, an identity no source holds and a line as `readBody` answers them in the root view, as do tokens `scope` issues with `{}`, `{root: ''}` and `{phase: null}` and the initial token of a door opened with `boundary: {}`, while tokens `scope` issues with `identities` admitting every admitted record, a phase or a root below the workspace root, and a door opened with that `identities` boundary, answer each with the plain refusal, a link, an escape and a moved root refused with no spelling of the server's root or the link's target, one source holding an in-scope, an out-of-scope and a refused record, a token narrowing reads in one door, the db reader's link and hard-link refusals, an injected reader, a mount bound from the manifest when the door opens, which a manifest rewritten later does not change, and none for explicit captures, and the `read` row's example on the loop fixture, its required parameter and its refusals proven both ways; `tests/select-door.test.ts` the golden, both digests and a version 1 door's operations and refusal; `apps/cli/tests/cli.test.ts` that `runCli` refuses `read` and an unknown operation with 1.1.0's bytes; `apps/cli/tests/read.test.ts` that the Door and `ia read --json` agree on body and digest for corpus locators, an adopted document and a document of exactly the 4 MiB bound, and refuse a link, a decomposed (NFD) name, a colon and a document one byte over the bound with the same code, for the same record and document path and with the same reason up to each reader's own words, while a runtime-placement refusal is compared with `readBody` under the CLI's own `readOptions` on a handle opened with the placement, since the session `ia read` opens places no source at runtime; and tools/compliance runs a boundary fixture per read code through the Door.
90
94
 
91
95
  R12 protocol version 2 refinement, next (2026-10-08): the Door also accepts `next`, its params `{within?, seat?}` closed as every operation's are, `seat` a string, and answers `{ok: true, result}` with the `DeliveryView` `deliveryView` (R18) returns, or that function's refusal. It always reads through a token, the initial one when `within` is omitted, so a narrowed scope lists only what it admits and reads what it leaves out as unknown, and only a whole-workspace token (db `isCompleteScope`, the rule `read` follows), such as the initial one of a door opened without a `boundary`, also names the work records and files admission refused, as db PT5 permits a complete scope to. Refusal envelopes: a version 1 operation's refusal keeps 1.1.0's shape, `{ok: false, code, message}` with the escalation fields of `context` and `select`, and so does every refusal the Door itself raises for any operation (a parameter that is unknown or of the wrong type, a token it did not issue, an unknown operation). A version 2 operation answers with the refusal its runtime function returns as a value, which may carry more: `read` the `ReadRefusal` fields, and `next` the `NextRefusal`'s `next`, the one command to run, with `plans` (IA-RUNTIME-NEXT-AMBIGUOUS) or `cycle` (IA-RUNTIME-NEXT-CYCLE). `DoorResponse` is unchanged, as each such refusal is a `Refusal`. A door serving version 1 refuses `next` before reading its params, as the unknown operation 1.1.0's door refused it, byte for byte, and an unknown operation's refusal on a door serving version 2 lists `read`, then `next`, after the version 1 operations it serves. The `next` row is appended to `MACHINE_PROTOCOL` with `since: 2` and `mcp: 'ia_next'`, after `read`, with one flow line; its refusals are IA-RUNTIME-REQUEST-INVALID, IA-DB-SCOPE-UNAVAILABLE and the four NEXT_CODES, each saying what the refusal carries; and its example, `{}`, reads `tests/fixtures/delivery/base` and is refused IA-RUNTIME-NEXT-NO-PLAN on the loop fixture, which authors no plan. The version 1 rows, their golden and the version 1 parameter digest are unchanged, and version 2's parameter digest, over all eleven rows, is pinned again. The CLI's machine routes stay the version 1 operations: `runCli` refuses `next` with 1.1.0's bytes, and `ia next` is the consumer verb, which prints the Door's view and names its own next command for each refusal (apps/cli/SPEC.md). The MCP door serves `ia_next` from the row, eleven tools in all. `tests/next.test.ts` pins the Door's view equal to `deliveryView`'s through the same scope, from every seat of the plan (the plan, each milestone and each task of `tests/fixtures/delivery/base`) and through a token `scope` issued; a refused `@task` named as a review item on the initial token of a door opened without a `boundary`, and on neither a token `scope` issued with `identities` nor the initial token of a door opened with such a `boundary`, though each admits every record the workspace admits; the refusal of each fixture equal to `deliveryView`'s value, `next`, `plans` and `cycle` included; the three-key shape of a version 1 refusal and of the Door's own refusals of `next` (a forged token, a non-string seat, an unknown parameter); that the door writes nothing; a version 1 door's refusal; and the row's example, its required parameters and its refusals proven both ways; `tests/select-door.test.ts` both digests and the golden; `apps/mcp-door/tests` `ia_next` in-process and over stdio, and that it names a refused `@task` on the initial scope and not through a token `ia_scope` issued with `identities`; and tools/compliance runs a boundary fixture per NEXT code through the Door.
@@ -102,6 +106,8 @@ Mandate authority (2026-10-06): `src/mandate-modes.ts`, exported from the packag
102
106
 
103
107
  R21. Mandate resolution (2026-10-09): `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 (R22). 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: 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 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. The participant, the scope and the covers are not read 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 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 2026-10-12, 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`, the actor a mandate-gated command acts as when none is named, 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 (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, 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, 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.
104
108
 
109
+ R14, R15, R21 shared roots (2026-11-04, inventarch/ia#194). A path under a root several admitted `@workspace` records declare resolves as db D02b `shared`, with its `declarers` and no seat, and belongs to each declarer equally; no reader picks one of them by identity. R14: a location seat, and a workspace seat whose repository root `''` resolves so, carry `declarers`, every declarer in identity order, and no identity. R15: such a seat has no home workspace; its closure is the union of every declarer's closure; its composition holds each declarer by `declared-at` with rule `shared`, none of them the record it is declared at; its loaded place carries the same `declarers`; its mandates are its claimants and the mandates whose `authority.scope` names every declarer (a mandate scoped to only some of them is no mandate of the seat); and it states no `seat` or `sources` unknown, since its declarers declare it. A declarer at runtime placement is in `declarers` but no part of the body, so a scope need not name it. R21 (narrow, per inventarch/ia#228): at a root several workspaces declare, only two kinds of mandate govern, on every route: one whose `authority.scope` names every declarer, and one whose `authority.covers` selects the path. The closure read is every declarer's, whatever `workspace` names, so one declarer's grant, scoped to that declarer alone, never opens a shared root, however many moves it allows and however the declarers sort. The routes agree: a `path` (with or without `workspace`); `workspace` alone, which reads the repository root `''` when that resolves so and the workspace is one of its declarers (any other workspace keeps its own closure); and neither, which reads `''` for the repository root. A path read that names no workspace is claims-only, as for any path. A mandate that states neither `scope` nor `covers` is located by its participant elsewhere and governs a shared root on no route. When no mandate qualifies, the root is ungoverned and the guard's rule for an ungoverned location applies (nothing is restricted, `governed` is false): that is the consequence of the rule, not an exception, and a mandate scoped to the repository workspace alone does not govern a root it shares with a department. A declarer at runtime placement is no part of the read, so a scope need not name it, and with none left the path reads as the workspace's. The listings that consume `governingMandates` without a workspace (the doctor source-protection check, the generated agent-profile fallback, the default position) therefore list at a shared root only those mandates. `seatedWorkspace` gives, for such a path, the repository's own `@workspace` (db `repositoryWorkspace`) when it is a declarer, so the edit guard's main session acts as its default actor, and none otherwise; `governingWorkspace` gives it or, with none, a declarer, which the guard's governing lookup takes, so a mandate scoped to every declarer governs an edit there whoever acts (with no default actor, one that names a participant refuses as IA-HOOK-IDENTITY-UNAVAILABLE). `rootWorkspace(handle, read)`, on the package root, is the workspace that answers for the repository root, for the mandate read, position, the CLI's profile and method `checkRoot`: the record `''` seats at, when it is a `@workspace`; at a shared `''`, the repository's own when it is a declarer, and none otherwise, so a shared root keeps its repository workspace and a workspace declaring no part of the root does not answer for it. A scope that prunes the declarers to one seats the path at that one by `root`, and every rule above reads it as before. `tests/mandate-resolution.test.ts` pins a root the repository's `@workspace` shares with a department: the claimant governing a path alone, the mandate scoped to both governing with either workspace and the ones scoped to one not, the department keeping its own mandates away from the shared root, the seated workspace and its actor's profile, the position seat, loaded place and mandates, and a scope pruning the declarers to the department; a department's own mandate, held in its private root and scoped to it alone, pins that it governs no route to the shared root, and a repository root shared by two workspaces pins `checkRoot` refusing with the repository's workspace and with a repository workspace absent or no declarer when a mandate names both declarers, one declarer's all-moves grant scoped to it alone (either declarer order) opening nothing and leaving the root ungoverned, the path route and the workspace route agreeing, a default position composed as its explicit path is, and a runtime-placed declarer. `apps/steward-hook/tests/mandate-guard.test.ts` pins the guard refusing there, and `apps/cli/tests/preview.test.ts` `ia validate`, `ia capture --preview` and `ia preview`.
110
+
105
111
  R22. Mandate guard (2026-10-11): `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, 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: 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 (R21), 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, R21'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.
106
112
 
107
113
  R23. Refused mandates fail closed (2026-10-12: 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). 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` (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 the identity db D15 gives each header), 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) 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. 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. 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` (otherwise a refused steward or participant would switch the default actor to a looser participant, and a refused workspace would leave 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; an occurrence db lists with no word needs no dependency 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, 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 (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, 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. 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; 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; a line the token scan reads as a mandate counted once; and a mandate db identifies named before an unidentified record; refused dependencies through an `@agent` tie, a `@workspace` tie and a participant `@agent` authored only as a header a file refused whole shows; 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 participant, scope and steward dependency 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.
@@ -1 +1 @@
1
- {"version":3,"file":"door.d.ts","sourceRoot":"","sources":["../src/door.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,WAAW,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAW5F,OAAO,KAAK,EAA0B,OAAO,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;AAuDrF,qBAAa,IAAI;;gBASH,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;IAoEnD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;IA0KrC,KAAK,IAAI,IAAI;CAKd"}
1
+ {"version":3,"file":"door.d.ts","sourceRoot":"","sources":["../src/door.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,WAAW,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAW5F,OAAO,KAAK,EAA0B,OAAO,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;AAuDrF,qBAAa,IAAI;;gBAQH,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;IAuEnD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;IAuKrC,KAAK,IAAI,IAAI;CAId"}
package/dist/door.js CHANGED
@@ -69,7 +69,6 @@ const versionOne = ({ digest: _digest, ...record }) => record;
69
69
  export class Door {
70
70
  #handle;
71
71
  #initial;
72
- #tokens = new Set();
73
72
  #allowReport;
74
73
  #protocol;
75
74
  #read;
@@ -80,8 +79,8 @@ export class Door {
80
79
  if (!Number.isSafeInteger(protocol) || protocol < 1 || protocol > MACHINE_PROTOCOL.version)
81
80
  throw new TypeError(`A door serves a MACHINE_PROTOCOL version from 1 to ${MACHINE_PROTOCOL.version}`);
82
81
  this.#handle = open(root, options);
83
- this.#initial = this.#handle.resolveScope(options.boundary);
84
- this.#tokens.add(this.#initial.token);
82
+ // Pinned: a call that names a token does not read this one, and every later call without `within` needs it (db D08c).
83
+ this.#initial = this.#handle.resolveScope({ ...options.boundary, pinned: true });
85
84
  this.#allowReport = options.allowReport ?? false;
86
85
  this.#protocol = protocol;
87
86
  const canonical = this.#handle.root;
@@ -113,9 +112,12 @@ export class Door {
113
112
  #unknown(operation) {
114
113
  return invalid(`Unknown operation '${operation}'; admitted: scope, context, select, get, records, resolve, search, traverse${this.#allowReport ? ', report' : ''}${this.#protocol >= 2 ? ', read, next, position' : ''}`);
115
114
  }
115
+ /** The handle is this door's alone, so what it issued is what this door issued, with no list of tokens to grow. */
116
116
  #within(params) {
117
- const token = params['within'] === undefined ? this.#initial.token : string(params['within'], 'within');
118
- if (!this.#tokens.has(token))
117
+ if (params['within'] === undefined)
118
+ return this.#initial.token;
119
+ const token = string(params['within'], 'within');
120
+ if (!this.#handle.isIssuedScope(token))
119
121
  throw new DbError('IA-DB-SCOPE-UNAVAILABLE', 'Token was not issued by this door');
120
122
  return token;
121
123
  }
@@ -157,7 +159,6 @@ export class Door {
157
159
  ...this.#bindings(params),
158
160
  ...(params['identities'] === undefined ? {} : { identities: strings(params['identities'], 'identities') }),
159
161
  });
160
- this.#tokens.add(scope.token);
161
162
  result = scope;
162
163
  break;
163
164
  }
@@ -173,7 +174,6 @@ export class Door {
173
174
  });
174
175
  if (!got.ok)
175
176
  return got;
176
- this.#tokens.add(got.packet.scope.token);
177
177
  result = got.packet;
178
178
  break;
179
179
  }
@@ -186,7 +186,6 @@ export class Door {
186
186
  });
187
187
  if (!got.ok)
188
188
  return got;
189
- this.#tokens.add(got.selection.scope.token);
190
189
  result = got.selection;
191
190
  break;
192
191
  }
@@ -317,7 +316,6 @@ export class Door {
317
316
  }
318
317
  close() {
319
318
  this.#closed = true;
320
- this.#tokens.clear();
321
319
  this.#handle.close();
322
320
  }
323
321
  }
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,CAAC,KAAc,EAAE,KAAa;IAC3C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,GAAG,KAAK,oBAAoB,CAAC,CAAC;IACtH,OAAO,K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AAK;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export type { CandidateEnvelope, CandidateScope, CandidateValidation } from './c
32
32
  export { PUBLICATION_CODES, PublicationError, portableDraftPath, qualifyPublicationRoot, preparePublication, inspectPublication, } from './publication.js';
33
33
  export type { PublicationFile, PreparedPublication, PublicationStatus } from './publication.js';
34
34
  export { isEntry } from './entry.js';
35
- export { MANDATE_CODES, MODES, MODE_MOVES, MOVES, defaultActor, governingMandates, isAdmissionRefusal, isMode, mandateAuthorityOf, mandateRefusal, profileRefusal, refusedDependencies, refusedMandates, requireMandatesAdmitted, seatedWorkspace, } from './mandate-modes.js';
35
+ export { MANDATE_CODES, MODES, MODE_MOVES, MOVES, defaultActor, governingMandates, isAdmissionRefusal, isMode, mandateAuthorityOf, mandateRefusal, profileRefusal, refusedDependencies, refusedMandates, requireMandatesAdmitted, rootWorkspace, seatedWorkspace, } from './mandate-modes.js';
36
36
  export type { DefaultActor, GoverningMandate, GoverningOptions, MandateAuthority, MandateCode, MandateRefusal, Mode, Move, ProfileMandate, ProfileVerdict, RefusedDependency, RefusedMandate, } from './mandate-modes.js';
37
37
  export { READ_CODES, SOURCE_LOCATORS, parseLocator, readBody } from './locator.js';
38
38
  export type { Locator, ReadBody, ReadBodyOptions, ReadCode, ReadRefusal, ReadResult } from './locator.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/E,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACzE,YAAY,E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,EACR,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAU,EACV,cAAc,EACd,SAAS,GACV,MAAM,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ export { admissionReport, inertCommandRoot, evaluateMandateGuard, mandateGuardSe
16
16
  export { validateCandidate } from './candidate.js';
17
17
  export { PUBLICATION_CODES, PublicationError, portableDraftPath, qualifyPublicationRoot, preparePublication, inspectPublication, } from './publication.js';
18
18
  export { isEntry } from './entry.js';
19
- export { MANDATE_CODES, MODES, MODE_MOVES, MOVES, defaultActor, governingMandates, isAdmissionRefusal, isMode, mandateAuthorityOf, mandateRefusal, profileRefusal, refusedDependencies, refusedMandates, requireMandatesAdmitted, seatedWorkspace, } from './mandate-modes.js';
19
+ export { MANDATE_CODES, MODES, MODE_MOVES, MOVES, defaultActor, governingMandates, isAdmissionRefusal, isMode, mandateAuthorityOf, mandateRefusal, profileRefusal, refusedDependencies, refusedMandates, requireMandatesAdmitted, rootWorkspace, seatedWorkspace, } from './mandate-modes.js';
20
20
  // The markdown and fragment helpers stay on the ./internal/locator subpath; the root names the reader and its terms.
21
21
  export { READ_CODES, SOURCE_LOCATORS, parseLocator, readBody } from './locator.js';
22
22
  export { NEXT_CODES, deliveryView } from './next.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAExE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAA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E,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EACL,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,EACN,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAe5B,qHAAqH;AACrH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
@@ -132,7 +132,7 @@ export const MACHINE_PROTOCOL = freeze({
132
132
  'scope issues a token that bounds later reads by phase or identities, and by root only where sources declare a reach. It is optional: without within, a call reads the initial boundary.',
133
133
  'context delivers the cited procedure cells and governance that apply to a coordinate; select chooses exactly one binding among candidates, or refuses.',
134
134
  'get, records, resolve, search and traverse read admitted records inside the scope; pass within to stay inside a narrowed one.',
135
- 'A token lives as long as the process that issued it: one CLI invocation, or the MCP server process. A CLI invocation performs one operation, so its reads always cover the initial boundary; narrowing takes scope, then within, in one MCP session.',
135
+ 'A token lives at most as long as the process that issued it: one CLI invocation, or the MCP server process. A CLI invocation performs one operation, so its reads always cover the initial boundary; narrowing takes scope, then within, in one MCP session. A process holds the 4,096 scopes most recently issued or read: a token left unread past that refuses with IA-DB-STALE, reads nothing, and is replaced by issuing another scope.',
136
136
  "report is privileged inspection of the whole workspace's admission, served by the CLI only.",
137
137
  'Version 2 adds read: the body behind one locator inside the scope, with its digest. The Door and the MCP door serve it; on the CLI the consumer verb ia read returns the same body and digest, and the machine routes stay the version 1 operations.',
138
138
  "Version 2 also adds next: one plan's delivery view inside the scope, its tasks in prerequisite order with their verdicts, computed per call and never stored. The Door and the MCP door serve it, and on the CLI the consumer verb ia next prints the same view. Its refusals carry next, the one command to run, and the plans or the cycle they name.",
@@ -460,7 +460,7 @@ export const MACHINE_PROTOCOL = freeze({
460
460
  {
461
461
  topic: 'Token lifetime',
462
462
  cli: 'One invocation: a token printed by one run cannot be passed to the next, so every CLI read covers the initial boundary.',
463
- mcp: 'The server process: a token stays valid across calls until the server exits.',
463
+ mcp: 'At most the server process, and a token can expire within it: the server holds the 4,096 scopes most recently issued or read, so one left unread past that refuses with IA-DB-STALE and reads nothing. Call ia_scope for a new token, with the same narrowing.',
464
464
  },
465
465
  {
466
466
  topic: 'Workspace',
@@ -1 +1 @@
1
- {"version":3,"file":"machine-protocol.js","sourceRoot":"","sources":["../src/machine-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAwCpC,MAAM,IAAI,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;AACxE,MAAM,OAAO,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;AACrG,MAAM,MAAM,GAAG,CAAC,UAAmC,EAAE,WAA8B,EAAE,EAAE,WAAoB,EAAE,EAAE,CAAC,CAAC;IAC/G,IAAI,EAAE,QAAQ;IACd,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,C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aACF,CAAC;YACF,MAAM,EACJ,waAAwa;YAC1a,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,4BAA4B;oBAClC,IAAI,EAAE,8VAA8V;oBACpW,IAAI,EAAE,0MAA0M;iBACjN;gBACD,iBAAiB;aAClB;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE;YACxD,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,CAAC;YACR,WAAW,EAAE,CAAC;SACf;KACF;IACD,WAAW,EAAE;QACX;YACE,KAAK,EAAE,QAAQ;YACf,GAAG,EAAE,mDAAmD;YACxD,GAAG,EAAE,iDAAiD;SACvD;QACD;YACE,KAAK,EAAE,YAAY;YACnB,GAAG,EAAE,4EAA4E;YACjF,GAAG,EAAE,qDAAqD;SAC3D;QACD;YACE,KAAK,EAAE,gBAAgB;YACvB,GAAG,EAAE,yHAAyH;YAC9H,GAAG,EAAE,gQAAgQ;SACtQ;QACD;YACE,KAAK,EAAE,WAAW;YAClB,GAAG,EAAE,sEAAsE;YAC3E,GAAG,EAAE,0DAA0D;SAChE;QACD;YACE,KAAK,EAAE,gBAAgB;YACvB,GAAG,EAAE,uCAAuC;YAC5C,GAAG,EAAE,0EAA0E;SAChF;QACD;YACE,KAAK,EAAE,UAAU;YACjB,GAAG,EAAE,yMAAyM;YAC9M,GAAG,EAAE,wGAAwG;SAC9G;KACF;CACF,CAAC,CAAC"}
@@ -18,6 +18,8 @@ import type { HookCode } from './steward.js';
18
18
  * `composition.steward`, else its only participant) of the workspace position seats the path in.
19
19
  * - The mandates that govern a decided edit are `governingMandates` for the path and that workspace, so a mandate
20
20
  * scoped to the workspace governs every path a hook selects in it, beside those whose `authority.covers` claims the path.
21
+ * Under a root several workspaces share, which may seat the main session in none, the lookup takes a declarer, so a
22
+ * mandate scoped to every declarer governs there whoever acts.
21
23
  * With none, an established actor (and the main session) is allowed: a mandate only adds restrictions.
22
24
  * - The edit is allowed when `profileRefusal` allows the author mode (Synthesis) for that actor: a governing mandate
23
25
  * that binds it (its participant, or one that names no participant, which binds every established actor) grants
@@ -1 +1 @@
1
- {"version":3,"file":"mandate-guard.d.ts","sourceRoot":"","sources":["../src/mandate-guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAShD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IACrF,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,qEAAqE;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,uHAAuH;IACvH,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,oCAAoC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,OAAO,EA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MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAKvG"}
@@ -1,10 +1,11 @@
1
1
  import { selects } from '@inventarch/graph';
2
2
  import { RuntimeError } from './errors.js';
3
- import { defaultActor, governingMandates, isAdmissionRefusal, profileRefusal, seatedWorkspace, } from './mandate-modes.js';
3
+ import { defaultActor, governingMandates, governingWorkspace, isAdmissionRefusal, profileRefusal, seatedWorkspace, } from './mandate-modes.js';
4
4
  import { freeze } from './types.js';
5
5
  const LIMIT = 512;
6
6
  const governance = (seat) => `ia position --seat ${seat} --shape governance`;
7
7
  const order = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
8
+ const withWorkspace = (workspace) => (workspace === undefined ? {} : { workspace });
8
9
  /** Whether the hook decides the edit: its tools name the tool and its paths select a spelling of the file. */
9
10
  export function mandateGuardSelects(request) {
10
11
  const fold = request.fold ?? ((text) => text);
@@ -79,7 +80,7 @@ export function evaluateMandateGuard(reader, within, request) {
79
80
  for (const path of paths)
80
81
  for (const mandate of governingMandates(reader, within, {
81
82
  path,
82
- ...(workspace === undefined ? {} : { workspace }),
83
+ ...withWorkspace(workspace ?? governingWorkspace(reader, within, path)),
83
84
  ...(request.fold === undefined ? {} : { fold: request.fold }),
84
85
  ...(actor === undefined ? {} : { actor }),
85
86
  }))