@inventarch/runtime 3.7.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SPEC.md +8 -4
- package/dist/activation.d.ts +18 -0
- package/dist/activation.d.ts.map +1 -0
- package/dist/activation.js +20 -0
- package/dist/activation.js.map +1 -0
- package/dist/collect.d.ts.map +1 -1
- package/dist/collect.js +2 -4
- package/dist/collect.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/method/index.d.ts +4 -2
- package/dist/method/index.d.ts.map +1 -1
- package/dist/method/index.js +2 -1
- package/dist/method/index.js.map +1 -1
- package/dist/method/installed-kits.d.ts +1 -0
- package/dist/method/installed-kits.d.ts.map +1 -1
- package/dist/method/installed-kits.js +3 -2
- package/dist/method/installed-kits.js.map +1 -1
- package/dist/method/kit-base.d.ts +60 -0
- package/dist/method/kit-base.d.ts.map +1 -0
- package/dist/method/kit-base.js +93 -0
- package/dist/method/kit-base.js.map +1 -0
- package/dist/method/kit-root.d.ts +24 -8
- package/dist/method/kit-root.d.ts.map +1 -1
- package/dist/method/kit-root.js +34 -11
- package/dist/method/kit-root.js.map +1 -1
- package/dist/method/kits.d.ts +18 -0
- package/dist/method/kits.d.ts.map +1 -1
- package/dist/method/kits.js +28 -1
- package/dist/method/kits.js.map +1 -1
- package/dist/method/packet.d.ts +7 -2
- package/dist/method/packet.d.ts.map +1 -1
- package/dist/method/packet.js +2 -1
- package/dist/method/packet.js.map +1 -1
- package/dist/method/pin.js +2 -2
- package/dist/method/pin.js.map +1 -1
- package/dist/method/resolve.d.ts.map +1 -1
- package/dist/method/resolve.js +14 -6
- package/dist/method/resolve.js.map +1 -1
- package/dist/method/retained.d.ts.map +1 -1
- package/dist/method/retained.js +2 -2
- package/dist/method/retained.js.map +1 -1
- package/dist/method/session.d.ts +1 -0
- package/dist/method/session.d.ts.map +1 -1
- package/dist/method/session.js +4 -2
- package/dist/method/session.js.map +1 -1
- package/dist/position.d.ts +19 -2
- package/dist/position.d.ts.map +1 -1
- package/dist/position.js +21 -3
- package/dist/position.js.map +1 -1
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +18 -4
- package/dist/publication.js.map +1 -1
- package/package.json +4 -4
package/SPEC.md
CHANGED
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
The [kit runtime specification](../../docs/specs/kit-runtime/README.md) is normative for the kit layout, `bindings.json`, the check, delivery and on-write sidecars, lanes and the door contract; this section keeps the package-specific detail and defers to it on any disagreement.
|
|
8
8
|
|
|
9
|
-
`@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.
|
|
9
|
+
`@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. `selectKitBase` chooses that base from the bases the caller carries: the kit's locked archive when carried (exact, by digest, whatever its label says); otherwise the newest carried base when it is the same major, not a downgrade, and admitted by the range in `.ia/release.json` and the lock's `requests` range (`^<locked version>` when neither is present) (compatible); otherwise `IA-CORE-CLI-UNSUPPORTED` naming what is needed. `lockOnBase` rewrites the language row of the lock a read root is restored with, `kit-root.ts` keys read roots by the effective base and verifies the whole lock on reuse, and the packet's `envelope.base` is `{locked, effective, mode}` with its digests unchanged. `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.
|
|
10
|
+
|
|
11
|
+
Home folders (first release): the IA home holds five folders the runtime reads and writes: `work` (task pins), `sessions` (session logs), `kit-roots` (read-root cache), `installed-kits` (materialized store kits) and `method-closures` (retained bytes). Each is today a `*-v1` folder (`work-v1`, `sessions-v1`, `kit-roots-v1`, `installed-kits-v1`, `method-closures-v1`). `homeFolder(home, kind)` is the one resolver: the authoritative folder of a kind is the plain folder `<home>/<kind>` when it holds a file named `authoritative` (`AUTHORITATIVE_MARKER`), and otherwise `<home>/<kind>-v1`. Every read and write of a kind goes through it, so a marker in one kind changes only that kind, and a pin, log, cache or closure left in the other folder is neither read nor written. On a machine with no marker every path is exactly the one it was. This release creates neither the plain folder nor the marker and moves nothing; a later release performs the cutover (copy, verify, write the marker, then remove the `*-v1` folder) once every participant that writes these homes, this runtime and CLI and the `ia` plugin, understands the marker. `IA_CORE_CLOSURES_DIR` still overrides the closure store, and `<IA home>/workspace-locations.json` and the `kits` folder are unchanged.
|
|
10
12
|
|
|
11
13
|
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.
|
|
12
14
|
|
|
13
|
-
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;
|
|
15
|
+
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; install the npm package that carries it with ia install --package <name> --apply --yes (the public kits ship in @inventarch/public-kits), or ia install <id> --apply --yes where a registry serves it, or kit.mjs add <id> --apply; then resolve again`; the package route leads because `ia install <id>` reaches only a registry release and refuses the public kits, issue #301), 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, and the task's retained pin is read under that id too. The reference is read as the resolver serves it: an exact id first (`findKit` tries every id before any folder), then a folder in `workspaceKits`' order, bundled, then the lock's entry rows (lock order, the first row wins when several share a folder, whether or not the store holds it yet), then IA home. A bundled kit sharing the folder is therefore the kit asked about, and it refuses without its own row rather than passing on another kit's. A carried copy of a kit the entries name yields its folder to those rows, as `workspaceKits` drops it, and names that kit only when nothing else has the folder. The guard is deliberately stricter than the resolver in one case: when the first entries row sharing a folder is missing from the store, the guard asks about that row and refuses as a restore, where `findKit` would serve the next row; do not align it with the resolver. 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.
|
|
14
16
|
|
|
15
17
|
## Optional topical context assembly
|
|
16
18
|
|
|
@@ -76,11 +78,11 @@ R13. Steward-write evaluation is a bounded pure consumer over admitted compiled
|
|
|
76
78
|
|
|
77
79
|
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.
|
|
78
80
|
|
|
79
|
-
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.
|
|
81
|
+
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, omittedRules, 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 and whose reserved rules state no `activation` is unchanged by it, and one whose reserved rules state an `activation` can move a rule between `rules` and `omittedRules` (the R15, R17 rule activation addendum). 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 R is 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), all reserved outside the budget; `rules` is the members of R whose activation admits the key's coordinate (the R15, R17 rule activation addendum), in the governance order and never counted against the budget, and `omittedRules` names the rest, 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 R, an activation-omitted rule included, 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.
|
|
80
82
|
|
|
81
83
|
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.
|
|
82
84
|
|
|
83
|
-
R17. Applies by word, playbook cells and mandates (2026-10-08): `src/position.ts`, on the package root and the `./internal/position` subpath, also publishes the `AppliesByWord`, `PositionCell` and `SubjectMatch` types, and `PositionVia` gains `subject`. positionBody (R15) adds four sections to `ia.position-body.v1`, whose format name is unchanged: `appliesByWord`, `appliesByWordTallies`, `cells` and `mandates`, after `pointerTallies`; it reserves blocking rules by word in `rules` too, and `counts` gains `appliesByWord` and `truncatedAppliesByWord`. The subjects are the `@law`, `@convention`, `@principle` and `@playbook` records of the seat's closure (R15), of every word whatever `word` is (R15: the word never filters these sections), that state `subject.subject-word` or `subject.subject-kind` unconditionally. Those fields exist on all four schemas, and nothing read them before. An `@agent`'s `governance.applies` is not read, since it is no field match against the loaded set (it feeds COMP-STEWARD), and a `@mandate`, which declares no subject field, is no subject. A subject applies by word to a record when its `subject-word` is the record's word or its `subject-kind` the record's kind. That is a field match, not a row: it costs no hop, follows nothing and claims no relation or consent. It enters the body at hop 0 as `via: {by: 'subject', label: 'field match, not a row', matches}`, each match `{field, value, record}` naming the field, the word or kind it states and the first record that answers it. `appliesByWord` lists the subjects outside `rules` that apply by word to a record of `loaded`, the seat included, or to a blocking candidate
|
|
85
|
+
R17. Applies by word, playbook cells and mandates (2026-10-08): `src/position.ts`, on the package root and the `./internal/position` subpath, also publishes the `AppliesByWord`, `PositionCell` and `SubjectMatch` types, and `PositionVia` gains `subject`. positionBody (R15) adds four sections to `ia.position-body.v1`, whose format name is unchanged: `appliesByWord`, `appliesByWordTallies`, `cells` and `mandates`, after `pointerTallies`; it reserves blocking rules by word in `rules` too, and `counts` gains `appliesByWord` and `truncatedAppliesByWord`. The subjects are the `@law`, `@convention`, `@principle` and `@playbook` records of the seat's closure (R15), of every word whatever `word` is (R15: the word never filters these sections), that state `subject.subject-word` or `subject.subject-kind` unconditionally. Those fields exist on all four schemas, and nothing read them before. An `@agent`'s `governance.applies` is not read, since it is no field match against the loaded set (it feeds COMP-STEWARD), and a `@mandate`, which declares no subject field, is no subject. A subject applies by word to a record when its `subject-word` is the record's word or its `subject-kind` the record's kind. That is a field match, not a row: it costs no hop, follows nothing and claims no relation or consent. It enters the body at hop 0 as `via: {by: 'subject', label: 'field match, not a row', matches}`, each match `{field, value, record}` naming the field, the word or kind it states and the first record that answers it. `appliesByWord` lists the subjects outside `rules` that apply by word to a record of `loaded`, the seat included, or to a blocking candidate in `rules` (R15). The body delivers `rules` in full, as it does `loaded`, so making a rule blocking keeps what applies to it while its activation admits the coordinate, and an entry's match names the first answering record in `loaded` order, then `rules` order. A rule that `rules` holds by word alone is itself a field match, not a record of L or a candidate of K, and nothing applies by word to it, so matches never chain. Each entry is listed once, whichever of its fields match and however many records answer them, ranked by band ↓ then identity ↑, as claimants and cells are ranked, since a field match has no row or hop to rank by. The first 48 are listed as `AppliesByWord`: the pointer tuple with that `via`, and `reseat`, the re-seat key (x, H, P, 1, 16, no word) as a full key `{seat, shape, phase, depth, budget}`. The rest are tallied per (word, owner system) in `appliesByWordTallies`, as `pointerTallies` are. A subject may also be loaded or a pointer: non-blocking governance stays where R15 places it. R (R15) includes every blocking subject other than the seat, of governance kind (`@law`, `@convention` or `@principle`), that applies by word to a candidate of K = {S} ∪ C0 ∪ Σ ∪ C, the candidates before the budget truncates any or the word leaves any out (blockers are reserved outside n). Its matches name the first answering candidate, the seat first and then by identity. A blocking subject that is itself a candidate is already in R, by its claim, its composition class or its row, and keeps that `via`. `rules`, the members of R whose activation admits the coordinate (the R15, R17 rule activation addendum), stays in the governance order and outside the budget, and no member of R, omitted or not, is in `appliesByWord`, `pointers` or the frontier. So a blocking rule its activation admits survives budget 0 whether it applies by claim, by row or by word: one whose subject-kind is the kind of a candidate the budget truncated to a pointer is in `rules`. An advisory or informational subject applies by word to `loaded` and `rules` only, never to a candidate the budget truncated or a rule activation leaves out. `cells` holds, for each `@playbook` of `appliesByWord` in its order, up to c = 4 (a rendering constant), its cell at (P, primitive): P the key's phase, and primitive the explicit override or SHAPE_ROWS[shape].primitive. A playbook with a cell there gives `{playbook, address, text}`: `address` is `<identity>#<phase>/<Primitive>` and `text` what `ia read` reads at that address (`fragmentText`, every cell of the record at it in source order, a cell's condition unevaluated), so the cell is delivered while the record's body is not. A playbook with none there gives `{playbook, missing, nearest?, message}`: `nearest` is the phase other than P with a cell of that primitive at the least distance in the cycle orient, plan, act, learn, a tie going to the phase that order lists first (from learn, orient before act), and `message` reads `no cell; nearest phase with a cell: <phase>`, or `no cell; no phase has a cell at <Primitive>` when no phase has one. Besides deciding a conditional relation row, which R15 follows only where it holds at the key's coordinate (R15), and a reserved rule's activation, which places it in `rules` or `omittedRules` (the R15, R17 rule activation addendum), the key's phase changes only `cells` and the keys spelled with it. `mandates` lists the `@mandate` records of the closure, whatever `word` is, that claim a location seat, from its `resolution` claimants (`via: {by: 'claim', matches}`), or whose `authority.scope` names the seat's workspace (R15), read as a field reference from the workspace's side (`via: {by: 'field', from: <workspace>, field: 'authority.scope', direction: 'in'}`), each once, a mandate that does both keeping its claim `via`, all ranked by band ↓ then identity ↑ whichever way they govern, as pointer tuples at hop 0. A body matches no participant: the position packet selects its participants over body(K0)'s mandates (R19), and body(K) is unchanged. No record at runtime placement is a subject, a match, a cell or a mandate (R15). `tests/applies.test.ts` pins: the fixture playbook's plan cell at phase plan under governance, equal to what `readBody` reads at its address, and Attention's under context, the phase moving only the cells where no conditional row bears on the body; the nearest phase by distance, the cycle wrapping, a tie going to the phase the order lists first, no phase with the primitive, and c = 4; a local playbook before an adopted one; the blocking fixture law in `rules` at budget 0 through a claim and through a subject-kind match on a contract the budget truncated, and taken out of the pointers at the check by its subject-word and out of the frontier under governance, never in `appliesByWord` or `pointers`, while an advisory rule that matches only a truncated candidate is in neither section; a convention and a playbook naming the word law applying to the blocking fixture law in `rules` as they do while it is advisory and loaded, the playbook's cell delivered, and to no rule `rules` holds by word alone; `rules` in the governance order across a claimed rule and a word-reserved one, a blocking candidate that also matches by word listed once with its own `via`, a blocking seat whose subject matches itself not reserved, and a word-reserved rule's matches on both fields, each naming the first answering candidate, the seat first and then by identity; no subject or mandate of another workspace's root applying, reserved or governing; the sample convention (subject-word and subject-kind contract) applying once with both matches while a `@contract` is loaded and not while it is only a pointer, its re-seat key seating a body at it, a loaded principle also applying, and each of 51 entries listed once with 48 listed and 3 tallied; the mandates of a workspace, a record and a location seat, none scoped to another workspace, one that both claims and scopes listed once by its claim, and a local mandate before an adopted one; under four words, `rules`, `cells` and `mandates` equal to the body's without the word and `appliesByWord` listing the same entries, a match naming the first answering record of what loads under the word, the blocking convention a `@system` seat's word member reserved under every word, one reserved by its subject-kind alone kept under its own word and another, and the playbook's cell delivered under `word: playbook`, where no playbook loads; a blocking law reserved under the word contract by its claim on a location, nothing loaded or listed, and by its subject-word on the contract that loads at hop 1 under that word, as without the word and at budget 0; and runtime-band subjects and mandates left out of K0. The golden bodies of R15 carry the sections.
|
|
84
86
|
|
|
85
87
|
The public `/authoring` boundary also owns chat-turn, chat-reply and conversation-summary contracts. A turn discloses one user message/current source snapshot and names its conversation/previous run; the service owns accumulated history and agent-selected targets. Nested proposals remain bound to that turn's exact message/context/base, fixed agent attestation and the existing proposal decoder. No API database, provider SDK or chat session lifecycle is imported into runtime.
|
|
86
88
|
|
|
@@ -129,3 +131,5 @@ R20 authored-generation refinement (2026-10-11): `PacketReceipt` gains five opti
|
|
|
129
131
|
Authored revision: position, packet rendering and host freshness use the authored revision, excluding runtime sources; the full revision remains available to database consumers. Capture records both revisions and retains authored membership independently of runtime evidence.
|
|
130
132
|
|
|
131
133
|
R14–R17 additive primitive selection (2026-10-18). A scope key may additionally state `primitive`, one of the six canonical kernel primitives. Omitted or undefined, the part stays absent: K0, default keys and existing position bodies retain their shape-derived behavior. Supplied, it is retained in the key, its coordinate source is declared, and a missing phase defaults to that primitive's anchor; an explicit phase wins. Even when the explicit primitive equals the shape-derived value, the keys and body digests differ because declared and derived provenance differ. Compare runner and CLI digests only for the same complete key, including the explicit primitive. The internal scope-key module supplies ordered display parts to both CLI and packet renderers; each renderer retains its own escaping. Shape still determines category, focus and ordering. Cells, nearest-cell advice and relation conditions use the selected primitive. Both widening keys and applies-by-word re-seat keys retain an explicit override. Invalid primitives refuse before reads with the closed set and `ia position --primitive` as next. The version 3 Door position schema admits this optional part (`since: 2`, `paramsSince: 3`); an explicitly version 2 Door retains its original whitelist and unknown-parameter refusal. Version 1 context/select coordinates and wire behavior remain unchanged. Published operation-schema/help renderers use the current parameter revision, while the CLI machine routes remain version 1. The packet guidance lists the optional primitive; its changed prose intentionally changes the packet digest, without changing body(K0). Tests in scope-key, applies, door-position and purity cover all primitives, conditions, widening, default compatibility and cross-root determinism.
|
|
134
|
+
|
|
135
|
+
R15, R17 rule activation (2026-11-11, inventarch/ia#281). positionBody reserves a blocking rule in `rules` only where its activation admits the key's coordinate, as R04 has `ia context` deliver it: graph `selectors` over the coordinate scopeCoordinate builds (shape, category, phase and primitive bound; move, kind, lane, predicate and artifact-set unbound). A matched rule, or one with no `activation`, applies and its row is unchanged. A rule no group decides, because a group names an axis the key does not bind and none is contradicted, stays in `rules` and its row (`RuleRecord`, on the package root) gains `activation`: the undecided groups, each `axis is value and ...` in canonical axis order, joined by ` or `. A rule every group contradicts leaves `rules` for `omittedRules`, a new section of `ia.position-body.v1` after `rules` whose format name is unchanged: `{ identity, detail }` (`OmittedRule`), `detail` the contradictory terms as `ia context` reports them (`axis is value, request is other`, joined by `; `), sorted by identity. R (R15) is so the reserved set and `rules` its members that activation admits, a subset of R. Both blocking candidates and rules reserved by word (R17) are tested. An omitted rule is still reserved: it is never loaded, pointed to, on the frontier, or listed as applying by word. Blocking by-word reservation (R17) matches against every candidate, activation-omitted ones included, and may name an omitted candidate as its match: activation decides a rule's own force, not whether it is a candidate of its word, and skipping it would let a filter hide a blocker (R15). Advisory and informational matches are taken against delivered rules only, applying and conditional ones, and so exclude omitted ones, as they exclude a candidate the budget truncated. `counts.rules` counts `rules`. The CLI text view prints `applies only when` under a conditional rule and a `Rules left out by activation` section when one is omitted. The contradiction text is shared with `ia context` (`src/activation.ts`). `tests/position.test.ts` pins a blocking candidate applying, conditional and omitted by phase; `tests/applies.test.ts` pins a blocker kept in `rules` with an omitted law as its only match, a blocker reserved by word alone moving to `omittedRules` when its own activation is contradicted and carrying `activation` when undecided, and an advisory playbook whose only match is omitted absent from `appliesByWord` and `cells`, and present with its cell at the phase where that rule applies.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Coordinate, Node } from '@inventarch/graph';
|
|
2
|
+
/**
|
|
3
|
+
* A record's activation at a coordinate, read as graph `selectors` reads it (R04): `applying` when a group matches or
|
|
4
|
+
* the record states none, `conditional` when no group is contradicted but none is decided because an axis it names is
|
|
5
|
+
* unbound, `omitted` when every group is contradicted. `detail` names the undecided groups (`axis is value and ...`,
|
|
6
|
+
* groups joined by `or`) for `conditional`, and the contradictory terms (`axis is value, request is other`) for
|
|
7
|
+
* `omitted`.
|
|
8
|
+
*/
|
|
9
|
+
export type Activation = {
|
|
10
|
+
readonly status: 'applying';
|
|
11
|
+
} | {
|
|
12
|
+
readonly status: 'conditional' | 'omitted';
|
|
13
|
+
readonly detail: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function activationAt(node: Node, values: Coordinate): Activation;
|
|
16
|
+
/** The selector terms the coordinate contradicts, once each: `axis is value, request is other`, joined by `; `. */
|
|
17
|
+
export declare function contradictions(node: Node, values: Coordinate): string;
|
|
18
|
+
//# sourceMappingURL=activation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activation.d.ts","sourceRoot":"","sources":["../src/activation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAQvE;AAED,mHAAmH;AACnH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAOrE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { selectors } from '@inventarch/graph';
|
|
2
|
+
export function activationAt(node, values) {
|
|
3
|
+
const match = selectors(node, values);
|
|
4
|
+
if (match.status === 'matched' || node.selectors.length === 0)
|
|
5
|
+
return { status: 'applying' };
|
|
6
|
+
if (match.status === 'disqualified')
|
|
7
|
+
return { status: 'omitted', detail: contradictions(node, values) };
|
|
8
|
+
const open = node.selectors
|
|
9
|
+
.filter((group) => !group.some((t) => values[t.axis] !== undefined && values[t.axis] !== t.value))
|
|
10
|
+
.map((group) => group.map((t) => `${t.axis} is ${t.value}`).join(' and '));
|
|
11
|
+
return { status: 'conditional', detail: [...new Set(open)].join(' or ') };
|
|
12
|
+
}
|
|
13
|
+
/** The selector terms the coordinate contradicts, once each: `axis is value, request is other`, joined by `; `. */
|
|
14
|
+
export function contradictions(node, values) {
|
|
15
|
+
const terms = node.selectors.flatMap((group) => group
|
|
16
|
+
.filter((t) => values[t.axis] !== undefined && values[t.axis] !== t.value)
|
|
17
|
+
.map((t) => `${t.axis} is ${t.value}, request is ${values[t.axis]}`));
|
|
18
|
+
return [...new Set(terms)].join('; ');
|
|
19
|
+
}
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;AACnH,MAAM,UAAU,cAAc,CAAC,IAAU,EAAE,MAAkB;IAC3D,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAC7C,KAAK;SACF,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;SACzE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,KAAK,gBAAgB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CACvE,CAAC;IACF,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/collect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../src/collect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../src/collect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAI3F,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AACD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;CACvC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAQrD;AACD,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAwHjH"}
|
package/dist/collect.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GraphUsageError, cell, effectiveSeverity, selectors, variants } from '@inventarch/graph';
|
|
2
|
+
import { contradictions } from './activation.js';
|
|
2
3
|
import { prepareCoordinate } from './coordinate.js';
|
|
3
4
|
import { mentions, resolveMention, subjectMention } from './mentions.js';
|
|
4
5
|
import { clausesOf, purposeOf, recordText } from './render.js';
|
|
@@ -52,10 +53,7 @@ export function collect(handle, request, options) {
|
|
|
52
53
|
for (const node of nodes) {
|
|
53
54
|
const match = selectors(node, values);
|
|
54
55
|
if (match.status === 'disqualified') {
|
|
55
|
-
|
|
56
|
-
.filter((t) => values[t.axis] !== undefined && values[t.axis] !== t.value)
|
|
57
|
-
.map((t) => `${t.axis} is ${t.value}, request is ${values[t.axis]}`));
|
|
58
|
-
omitted.push({ address: node.identity, reason: 'disqualified', detail: [...new Set(contradictions)].join('; ') });
|
|
56
|
+
omitted.push({ address: node.identity, reason: 'disqualified', detail: contradictions(node, values) });
|
|
59
57
|
continue;
|
|
60
58
|
}
|
|
61
59
|
const selected = variants(node, values);
|
package/dist/collect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collect.js","sourceRoot":"","sources":["../src/collect.ts"],"names":[],"mappings":"AACA,O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,KAAK,CAAC;oBACR,CAAC,CAAC,6BAA6B,KAAK,CAAC,WAAW,SAAS;oBACzD,CAAC,CAAC,IAAI,KAAK,CAAC;wBACV,CAAC,CAAC,gCAAgC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;wBAChE,CAAC,CAAC,2BAA2B;gBACnC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;gBACvC,SAAS,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;gBACxB,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;aAC7C;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACxD,MAAM,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACnG,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;AACrE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { PreparedCoordinate, CoordinateOptions, AxisSource } from './coordi
|
|
|
7
7
|
export { K0, SCOPE_KEY_CAPS, normalizeScopeKey, resolveScopeKey, rootRelative } from './scope-key.js';
|
|
8
8
|
export type { ResolvedScopeKey, ResolvedSeat, ScopeKey } from './scope-key.js';
|
|
9
9
|
export { position, positionBody } from './position.js';
|
|
10
|
-
export type { AppliesByWord, Freshness, FrontierTally, HostNote, LoadedEntry, LoadedPlace, LoadedRecord, PointerTally, PositionBody, PositionCell, PositionCounts, PositionOutput, PositionPointer, PositionRecord, PositionUnknown, PositionVia, PositionWidening, SubjectMatch, } from './position.js';
|
|
10
|
+
export type { AppliesByWord, Freshness, FrontierTally, HostNote, LoadedEntry, LoadedPlace, LoadedRecord, OmittedRule, PointerTally, PositionBody, PositionCell, PositionCounts, PositionOutput, PositionPointer, PositionRecord, PositionUnknown, PositionVia, PositionWidening, RuleRecord, SubjectMatch, } from './position.js';
|
|
11
11
|
export { entryCount, renderPacket } from './packet.js';
|
|
12
12
|
export type { PacketCatalogRow, PacketHostNote, PacketIntent, PacketMandate, PacketOutput, PacketParticipant, PacketPhase, PacketProvenance, PacketSeat, PacketSystem, PacketTally, PositionPacket, } from './packet.js';
|
|
13
13
|
export { PACKET_MARKER, renderHost } from './packet-host.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACtG,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAA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,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChG,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;AAC5B,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnF,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1G,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrD,YAAY,EACV,QAAQ,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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,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AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElH,OAAO,EAAE,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"}
|
package/dist/method/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { MethodError, methodRefusal } from './errors.js';
|
|
|
2
2
|
export type { MethodRefusal } from './errors.js';
|
|
3
3
|
export { RELEASES_FORMAT, checkFile, checkIndex, compareVersions, expandIndex, expandReleases, readReleases, releaseFile, releaseRecords, } from './releases.js';
|
|
4
4
|
export type { ReleaseIndex, ReleaseRow } from './releases.js';
|
|
5
|
-
export { SIDECARS, assertPinnedKit, canonicalKitId, carrierOf, declaredAssets, findKit, folderKits, homeKits, iaHome, identityOf, implementationDigest, installedKit, kitBindings, kitChecks, kitDelivery, kitInstallMatches, kitInstallation, kitRecordNames, listKits, readDescriptor, readLock, requireKitInstalled, sourcesDigest, } from './kits.js';
|
|
6
|
-
export type { Kit, KitCheck, KitInstallation, KitOrigin, KitRecordName, KitSources, LockedPackage, Recommendation, } from './kits.js';
|
|
5
|
+
export { SIDECARS, assertPinnedKit, canonicalKitId, carrierOf, declaredAssets, findKit, folderKits, homeKits, iaHome, homeFolder, HOME_FOLDERS, AUTHORITATIVE_MARKER, identityOf, implementationDigest, installedKit, kitBindings, kitChecks, kitDelivery, kitInstallMatches, kitInstallation, kitRecordNames, listKits, readDescriptor, readLock, requireKitInstalled, sourcesDigest, } from './kits.js';
|
|
6
|
+
export type { HomeFolderKind, Kit, KitCheck, KitInstallation, KitOrigin, KitRecordName, KitSources, LockedPackage, Recommendation, } from './kits.js';
|
|
7
7
|
export { INSTALLED_KITS_DIRECTORY, RESTORE_NEEDED, STORE, installedPackageKits, lockedPackageKits, packagedKit, restoreRefusal, workspaceKits, } from './installed-kits.js';
|
|
8
8
|
export type { InstalledKits, LockedKit } from './installed-kits.js';
|
|
9
9
|
export { ENTRIES, PHASES, RENAMED, SCOPE_KEYS, SHAPES, bindingsPath, findWorkspace, readBindings, renamedMessage, scopeKey, selectBinding, } from './bindings.js';
|
|
@@ -15,6 +15,8 @@ export type { MethodPacket } from './packet.js';
|
|
|
15
15
|
export { closureStore, retainKit, retainedKit } from './retained.js';
|
|
16
16
|
export { assertReadable, kitCache, kitReadRoot, userCache } from './kit-root.js';
|
|
17
17
|
export type { KitRestore } from './kit-root.js';
|
|
18
|
+
export { lockOnBase, selectKitBase } from './kit-base.js';
|
|
19
|
+
export type { BasePin, KitBaseLock, KitBaseUse } from './kit-base.js';
|
|
18
20
|
export { WorkspaceReader } from './reader.js';
|
|
19
21
|
export type { JsonRecord, PositionAnswer } from './reader.js';
|
|
20
22
|
export { RESOLVER, resolveMethod } from './resolve.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/method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,cAAc,CAAC;AACtB,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/method/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,cAAc,EACd,GAAG,EACH,QAAQ,EACR,eAAe,EACf,SAAS,EACT,aAAa,EACb,UAAU,EACV,aAAa,EACb,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,aAAa,EAAE,SAAS,E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pB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACvG,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EACL,cAAc,EACd,KAAK,EACL,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,WAAW,EACX,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/method/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export { MethodError, methodRefusal } from './errors.js';
|
|
2
2
|
export { RELEASES_FORMAT, checkFile, checkIndex, compareVersions, expandIndex, expandReleases, readReleases, releaseFile, releaseRecords, } from './releases.js';
|
|
3
|
-
export { SIDECARS, assertPinnedKit, canonicalKitId, carrierOf, declaredAssets, findKit, folderKits, homeKits, iaHome, identityOf, implementationDigest, installedKit, kitBindings, kitChecks, kitDelivery, kitInstallMatches, kitInstallation, kitRecordNames, listKits, readDescriptor, readLock, requireKitInstalled, sourcesDigest, } from './kits.js';
|
|
3
|
+
export { SIDECARS, assertPinnedKit, canonicalKitId, carrierOf, declaredAssets, findKit, folderKits, homeKits, iaHome, homeFolder, HOME_FOLDERS, AUTHORITATIVE_MARKER, identityOf, implementationDigest, installedKit, kitBindings, kitChecks, kitDelivery, kitInstallMatches, kitInstallation, kitRecordNames, listKits, readDescriptor, readLock, requireKitInstalled, sourcesDigest, } from './kits.js';
|
|
4
4
|
export { INSTALLED_KITS_DIRECTORY, RESTORE_NEEDED, STORE, installedPackageKits, lockedPackageKits, packagedKit, restoreRefusal, workspaceKits, } from './installed-kits.js';
|
|
5
5
|
export { ENTRIES, PHASES, RENAMED, SCOPE_KEYS, SHAPES, bindingsPath, findWorkspace, readBindings, renamedMessage, scopeKey, selectBinding, } from './bindings.js';
|
|
6
6
|
export { PIN_FORMAT, kitUpdate, pinRootFor, projectOf, readPin, writePin } from './pin.js';
|
|
7
7
|
export { DIGESTED, EVIDENCE_STATES, PACKET_CONTRACT, assemblePacket, canonical, packetDigest } from './packet.js';
|
|
8
8
|
export { closureStore, retainKit, retainedKit } from './retained.js';
|
|
9
9
|
export { assertReadable, kitCache, kitReadRoot, userCache } from './kit-root.js';
|
|
10
|
+
export { lockOnBase, selectKitBase } from './kit-base.js';
|
|
10
11
|
export { WorkspaceReader } from './reader.js';
|
|
11
12
|
export { RESOLVER, resolveMethod } from './resolve.js';
|
|
12
13
|
export { REGISTRY_FILE, REGISTRY_FORMAT, defaultWorkspaceRoot, readRegistry, registerWorkspace, registryPath, samePath, writeRegistry, } from './registry.js';
|
package/dist/method/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/method/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,aAAa,GACd,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/method/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,aAAa,GACd,MAAM,WAAW,CAAC;AAYnB,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,EACV,MAAM,EACN,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAElH,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EACL,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EACL,cAAc,EACd,KAAK,EACL,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,WAAW,EACX,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -10,6 +10,7 @@ import type { Kit, KitSources } from './kits.js';
|
|
|
10
10
|
* `.ia/distributions.lock.json` pinning its dependencies exactly as the workspace lock does. A kit the lock names that
|
|
11
11
|
* the store lacks is not installed yet: a fresh clone runs `ia restore`.
|
|
12
12
|
*/
|
|
13
|
+
/** The legacy folder name; the authoritative folder is `homeFolder(home, 'installed-kits')`. */
|
|
13
14
|
export declare const INSTALLED_KITS_DIRECTORY = "installed-kits-v1";
|
|
14
15
|
export declare const STORE: string;
|
|
15
16
|
/** What a session and a refusal say when the lock names kits the store lacks. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installed-kits.d.ts","sourceRoot":"","sources":["../../src/method/installed-kits.ts"],"names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S,SAAS,EAAE,CAAC;CACxC;AACD,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,aAAa,CAgBtG;AAED,4DAA4D;AAC5D,eAAO,MAAM,cAAc,GAAI,KAAK,SAAS,KAAG,WAI7C,CAAC;AAEJ;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,GACtB;IAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,SAAS,EAAE,CAAA;CAAE,CAelE"}
|
|
@@ -2,7 +2,7 @@ import { createHash } from 'node:crypto';
|
|
|
2
2
|
import { existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
4
|
import { MethodError, objectAt } from './errors.js';
|
|
5
|
-
import { iaHome, kitAt, listKits, readLock } from './kits.js';
|
|
5
|
+
import { homeFolder, iaHome, kitAt, listKits, readLock } from './kits.js';
|
|
6
6
|
/**
|
|
7
7
|
* Kits a workspace installs from an npm package of kits (contract C7b, ia-kb `dec-133`). The lock's `package` entry
|
|
8
8
|
* names each kit's IA release by id, version, archive and manifest digest; the engine installs it like any release,
|
|
@@ -13,6 +13,7 @@ import { iaHome, kitAt, listKits, readLock } from './kits.js';
|
|
|
13
13
|
* `.ia/distributions.lock.json` pinning its dependencies exactly as the workspace lock does. A kit the lock names that
|
|
14
14
|
* the store lacks is not installed yet: a fresh clone runs `ia restore`.
|
|
15
15
|
*/
|
|
16
|
+
/** The legacy folder name; the authoritative folder is `homeFolder(home, 'installed-kits')`. */
|
|
16
17
|
export const INSTALLED_KITS_DIRECTORY = 'installed-kits-v1';
|
|
17
18
|
export const STORE = join('.ia', 'distributions', 'store');
|
|
18
19
|
/** What a session and a refusal say when the lock names kits the store lacks. */
|
|
@@ -111,7 +112,7 @@ function materialize(root, kit, home) {
|
|
|
111
112
|
if (manifest['id'] !== kit.id || manifest['version'] !== kit.version)
|
|
112
113
|
throw new MethodError(`installed kit ${kit.id}: its manifest names another release`, 'IA-CORE-CLOSURE-INTEGRITY');
|
|
113
114
|
const pins = pinsOf(manifest);
|
|
114
|
-
const parent =
|
|
115
|
+
const parent = homeFolder(home, 'installed-kits');
|
|
115
116
|
const target = join(parent, kit.archive);
|
|
116
117
|
const intact = (dir) => existsSync(join(dir, COMPLETE)) &&
|
|
117
118
|
pins.every((pin) => existsSync(join(dir, pin.path)) && sha256(readFileSync(join(dir, pin.path))) === pin.sha256);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installed-kits.js","sourceRoot":"","sources":["../../src/method/installed-kits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,MAAM,EACN,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"installed-kits.js","sourceRoot":"","sources":["../../src/method/installed-kits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,MAAM,EACN,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OA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ACD,OAAO,EAAE,SAAS,CAAC,OAAO;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The language base a reader restores a kit's read root with. A reader carries a set of published bases (the door's
|
|
3
|
+
* `assets/bases.json`); a kit's lock pins one by archive digest. One rule chooses: the locked archive when the reader
|
|
4
|
+
* carries it, else the reader's newest base when it is the same major, not older than the lock, and admitted by the
|
|
5
|
+
* kit's language range. The kit's own folder is never changed; only its read root is restored on the chosen base.
|
|
6
|
+
*/
|
|
7
|
+
export interface BasePin {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly version: string;
|
|
10
|
+
readonly archive: string;
|
|
11
|
+
readonly manifest: string;
|
|
12
|
+
}
|
|
13
|
+
/** Which base a read root was restored with, against the one its lock pins: the packet's `envelope.base`. */
|
|
14
|
+
export interface KitBaseUse {
|
|
15
|
+
readonly locked: {
|
|
16
|
+
readonly version: string;
|
|
17
|
+
readonly archive: string;
|
|
18
|
+
};
|
|
19
|
+
readonly effective: {
|
|
20
|
+
readonly version: string;
|
|
21
|
+
readonly archive: string;
|
|
22
|
+
};
|
|
23
|
+
readonly mode: 'exact' | 'compatible';
|
|
24
|
+
}
|
|
25
|
+
/** The parts of a kit's `.ia/distributions.lock.json` the rule reads. */
|
|
26
|
+
export interface KitBaseLock {
|
|
27
|
+
readonly packages?: readonly {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly version: string;
|
|
30
|
+
readonly archive: string;
|
|
31
|
+
}[];
|
|
32
|
+
readonly requests?: readonly {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly range: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Chooses the base for a kit whose lock is `lock`, whose `.ia/release.json` declares `declaredRange` for the language
|
|
39
|
+
* (undefined when it declares none), from the `carried` bases (ascending; the last is the newest). In order:
|
|
40
|
+
*
|
|
41
|
+
* 1. the locked archive, when carried, whatever its version label says (`exact`);
|
|
42
|
+
* 2. another major than the newest carried refuses;
|
|
43
|
+
* 3. a locked version above the newest carried refuses: the reader needs an upgrade, never the kit a downgrade;
|
|
44
|
+
* 4. the newest carried base must satisfy the declared range and the lock's language request, each when present, or
|
|
45
|
+
* `^<locked version>` when neither is; otherwise it refuses;
|
|
46
|
+
* 5. otherwise the newest carried base (`compatible`).
|
|
47
|
+
*
|
|
48
|
+
* Every refusal is `IA-CORE-CLI-UNSUPPORTED`; `kit` names the kit in it (`<id> <version>`).
|
|
49
|
+
*/
|
|
50
|
+
export declare function selectKitBase(lock: KitBaseLock, declaredRange: string | undefined, carried: readonly BasePin[], kit?: string): {
|
|
51
|
+
base: BasePin;
|
|
52
|
+
use: KitBaseUse;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The lock a read root restored on `base` holds: a copy of the kit's `lock` whose `base.id` row names `base` (archive,
|
|
56
|
+
* location `sha256:<archive>`, manifest, version) and nothing else changed; a row that already says so is left as it
|
|
57
|
+
* is. The restore writes it and the read-root check expects it, so the two cannot drift.
|
|
58
|
+
*/
|
|
59
|
+
export declare function lockOnBase<T>(lock: T, base: BasePin): T;
|
|
60
|
+
//# sourceMappingURL=kit-base.d.ts.map
|