@lapxo/bound 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/CITATION.cff +1 -1
  2. package/TARGET.bound +44 -39
  3. package/dist/cli/accept.js +72 -590
  4. package/dist/cli/act-result.js +3 -103
  5. package/dist/cli/args.js +3 -44
  6. package/dist/cli/custodian.js +2 -29
  7. package/dist/cli/host.js +4 -32
  8. package/dist/cli/names.js +1 -12
  9. package/dist/cli/native-descendant.js +1 -19
  10. package/dist/cli/native.js +3 -60
  11. package/dist/cli/observe.js +1 -13
  12. package/dist/cli/owner.js +3 -139
  13. package/dist/cli/pass.js +21 -321
  14. package/dist/cli/place.js +6 -282
  15. package/dist/cli/release-result.js +3 -80
  16. package/dist/cli/retained-judgment.js +1 -25
  17. package/dist/cli/standing-result.js +4 -19
  18. package/dist/cli/takes.js +10 -112
  19. package/dist/cli/verb.d.ts +1 -2
  20. package/dist/cli/verb.js +83 -684
  21. package/dist/engine/computation.js +2 -0
  22. package/dist/engine/conformance.js +4 -0
  23. package/dist/engine/encoding.js +1 -2
  24. package/dist/engine/index.d.ts +1 -13
  25. package/dist/engine/index.js +2 -11
  26. package/dist/engine/object.js +1 -38
  27. package/dist/engine/ports.js +2 -117
  28. package/dist/fold/admission-history.js +1 -17
  29. package/dist/fold/bootstrap-anchor.js +1 -28
  30. package/dist/fold/ceilings.js +1 -142
  31. package/dist/fold/claims.js +2 -132
  32. package/dist/fold/closed.js +24 -235
  33. package/dist/fold/configures.js +1 -25
  34. package/dist/fold/digests.js +10 -226
  35. package/dist/fold/evidence.js +1 -22
  36. package/dist/fold/fold-worker.js +1 -13
  37. package/dist/fold/kept.js +12 -173
  38. package/dist/fold/keys.js +3 -91
  39. package/dist/fold/laid.js +3 -90
  40. package/dist/fold/nos.js +1 -48
  41. package/dist/fold/object.js +1 -2
  42. package/dist/fold/observed.js +27 -534
  43. package/dist/fold/opened.js +1 -33
  44. package/dist/fold/own.js +3 -217
  45. package/dist/fold/paid.js +1 -92
  46. package/dist/fold/place-inputs.js +1 -70
  47. package/dist/fold/places.js +3 -100
  48. package/dist/fold/rank.js +1 -9
  49. package/dist/fold/reach.js +1 -83
  50. package/dist/fold/readers.js +6 -142
  51. package/dist/fold/receipts.js +1 -47
  52. package/dist/fold/region-declarations.js +1 -13
  53. package/dist/fold/region.js +8 -286
  54. package/dist/fold/release-policy.js +1 -101
  55. package/dist/fold/resolved.js +6 -145
  56. package/dist/fold/roles.js +2 -59
  57. package/dist/fold/second.js +4 -71
  58. package/dist/fold/shards.js +12 -100
  59. package/dist/fold/signed.js +3 -81
  60. package/dist/fold/signers.js +1 -54
  61. package/dist/fold/stranger.js +6 -24
  62. package/dist/fold/views.js +1 -66
  63. package/dist/fold/wire.js +1 -46
  64. package/dist/fold/zoom.js +3 -81
  65. package/dist/host/act-cost.js +1 -25
  66. package/dist/host/adapters/keys/ed25519.js +1 -30
  67. package/dist/host/adapters/modules/javascript.js +1 -50
  68. package/dist/host/adapters/transport/http.js +1 -28
  69. package/dist/host/admitted-place.js +1 -35
  70. package/dist/host/archive.js +1 -152
  71. package/dist/host/call-context.js +1 -14
  72. package/dist/host/capsule-process.js +2 -62
  73. package/dist/host/capsule.js +9 -171
  74. package/dist/host/cell-receipts.js +12 -128
  75. package/dist/host/commit-result.js +1 -5
  76. package/dist/host/content-needed.js +1 -8
  77. package/dist/host/content-store.js +1 -31
  78. package/dist/host/contextual-place.js +2 -72
  79. package/dist/host/digest.js +2 -15
  80. package/dist/host/hash.js +1 -9
  81. package/dist/host/host-controls.js +1 -19
  82. package/dist/host/in-process-act.js +3 -84
  83. package/dist/host/in-process-context.js +3 -91
  84. package/dist/host/in-process-root.js +6 -84
  85. package/dist/host/in-process.js +4 -55
  86. package/dist/host/index.d.ts +1 -15
  87. package/dist/host/index.js +1 -7
  88. package/dist/host/io.js +1 -11
  89. package/dist/host/lifetime.js +1 -79
  90. package/dist/host/located.js +6 -105
  91. package/dist/host/native/bounded-file.js +1 -32
  92. package/dist/host/native/command.js +1 -91
  93. package/dist/host/native/control-bridge-worker.js +2 -88
  94. package/dist/host/native/control-bridge.js +1 -110
  95. package/dist/host/native/control-selection.js +1 -32
  96. package/dist/host/native/custody.js +1 -91
  97. package/dist/host/native/deadline.js +1 -28
  98. package/dist/host/native/descendants.js +1 -528
  99. package/dist/host/native/generated-custodian.js +5 -267
  100. package/dist/host/native/generated.js +1 -379
  101. package/dist/host/native/image.js +1 -45
  102. package/dist/host/native/jobs.js +2 -148
  103. package/dist/host/native/loader.js +1 -269
  104. package/dist/host/native/materialize.js +1 -175
  105. package/dist/host/native/module-closure.js +1 -130
  106. package/dist/host/native/module-delivery.d.ts +1 -62
  107. package/dist/host/native/module-delivery.js +1 -151
  108. package/dist/host/native/module-syntax.js +1 -69
  109. package/dist/host/native/native-binary.js +1 -115
  110. package/dist/host/native/native-program.js +1 -72
  111. package/dist/host/native/node-jobs.js +3 -187
  112. package/dist/host/native/node-launch.js +1 -159
  113. package/dist/host/native/preload.js +1 -45
  114. package/dist/host/native/reading.js +1 -249
  115. package/dist/host/native/receipt-environment.js +1 -41
  116. package/dist/host/native/references.js +1 -30
  117. package/dist/host/native/root.js +1 -37
  118. package/dist/host/native/route.js +1 -216
  119. package/dist/host/native/runtime.js +1 -9
  120. package/dist/host/native-reader-context.js +1 -8
  121. package/dist/host/native-receiver.js +1 -25
  122. package/dist/host/objects.js +1 -38
  123. package/dist/host/order.js +1 -2
  124. package/dist/host/place-act-transaction.js +4 -78
  125. package/dist/host/place-clock-selection.js +5 -124
  126. package/dist/host/ports/ingress.js +2 -57
  127. package/dist/host/ports/local-act.js +5 -183
  128. package/dist/host/ports/place-act.js +1 -134
  129. package/dist/host/ports/publication.js +1 -56
  130. package/dist/host/ports/signing.js +1 -74
  131. package/dist/host/ports/store.js +1 -18
  132. package/dist/host/ports/transport.js +1 -48
  133. package/dist/host/process-lifetime.js +1 -17
  134. package/dist/host/provide.js +1 -183
  135. package/dist/host/read-only.js +1 -9
  136. package/dist/host/reading-closures.js +7 -227
  137. package/dist/host/reading-context.js +1 -53
  138. package/dist/host/reading-identity-types.js +0 -0
  139. package/dist/host/reading-identity.js +3 -0
  140. package/dist/host/reading-preparation.js +6 -0
  141. package/dist/host/reference-authenticated.d.ts +1 -40
  142. package/dist/host/reference-authenticated.js +3 -100
  143. package/dist/host/reference-contracts.js +1 -6
  144. package/dist/host/reference-export.js +6 -81
  145. package/dist/host/reference-native-api.d.ts +1 -3
  146. package/dist/host/reference-native-api.js +1 -3
  147. package/dist/host/reference-native.js +1 -74
  148. package/dist/host/reference-profile.js +1 -63
  149. package/dist/host/reference-standing.js +2 -18
  150. package/dist/host/reference.js +1 -24
  151. package/dist/host/refusals.js +2 -43
  152. package/dist/host/release.js +4 -256
  153. package/dist/host/root-clock-source.js +1 -307
  154. package/dist/host/selected-capsules.js +1 -50
  155. package/dist/host/selected-topos.js +1 -80
  156. package/dist/host/signature-era.js +1 -12
  157. package/dist/host/signing.js +2 -48
  158. package/dist/host/source-content.js +2 -111
  159. package/dist/host/standing-carrier.js +1 -18
  160. package/dist/host/standing-projection.js +1 -50
  161. package/dist/host/timing.js +1 -7
  162. package/dist/host/walk.js +20 -193
  163. package/dist/judge/late.js +1 -33
  164. package/dist/judge/take.js +2 -75
  165. package/dist/judge/widening.js +1 -25
  166. package/dist/land/act.js +8 -336
  167. package/dist/land/alias.js +1 -41
  168. package/dist/land/held.js +1 -23
  169. package/dist/land/inert.js +1 -33
  170. package/dist/land/leaving.js +1 -55
  171. package/dist/land/ledger.js +7 -188
  172. package/dist/land/owned.js +4 -66
  173. package/dist/land/sign.js +1 -53
  174. package/dist/land/standing-pin.js +1 -49
  175. package/dist/land/vouched.js +1 -112
  176. package/dist/land/withdraw.js +1 -24
  177. package/dist/observe/files.js +1 -88
  178. package/dist/observe/identity.js +1 -61
  179. package/dist/observe/match.js +1 -8
  180. package/dist/observe/regions.js +7 -306
  181. package/dist/observe/run.js +2 -41
  182. package/dist/observe/runner.js +4 -101
  183. package/dist/public-types.d.ts +1114 -0
  184. package/dist/render/capsule.js +1 -30
  185. package/dist/render/field.js +1 -40
  186. package/dist/render/names.js +1 -4
  187. package/dist/render/open.js +1 -61
  188. package/dist/render/page.js +1 -7
  189. package/dist/render/receipts.js +1 -47
  190. package/dist/render/shape.js +1 -74
  191. package/dist/render/target.js +4 -52
  192. package/dist/render/view.js +7 -197
  193. package/dist/vendor/50086958553b9376d600583f7dff354196bfeb41170fc6d1482ca7bea7c493e2.LICENSE +21 -0
  194. package/dist/vendor/b3e938d28f88a1851af303a40c749e12ebd5a686daac4f0b343b5cdd2e040419.LICENSE +21 -0
  195. package/dist/vendor/bundle.json +1 -0
  196. package/dist/vendor/library11.js +1 -0
  197. package/dist/vendor/object-provider.js +42 -0
  198. package/dist/vendor/runtime.js +38 -0
  199. package/dist/vendor/sources.json +1 -0
  200. package/dist/wasm/adapter.d.ts +1 -51
  201. package/dist/wasm/adapter.js +1 -180
  202. package/dist/wasm/node-worker.js +1 -13
  203. package/dist/wasm/object.js +1 -76
  204. package/dist/wasm/worker.js +1 -7
  205. package/docs/contracts/closure-delivery.md +1 -1
  206. package/docs/contracts/closure-delivery.publication.json +1 -1
  207. package/docs/contracts/conformance.json +142 -0
  208. package/docs/contracts/determinism.bound +9 -0
  209. package/docs/contracts/engine-object-projection.publication.json +1 -1
  210. package/docs/contracts/engine.md +21 -1
  211. package/docs/contracts/native-publication.inventory.json +2 -1
  212. package/docs/contracts/optional-wasm-adapter.publication.json +1 -1
  213. package/docs/contracts/reading-identity.md +37 -0
  214. package/docs/contracts/reading-identity.publication.json +25 -0
  215. package/docs/contracts/refusals.bound +51 -0
  216. package/docs/contracts/refusals.md +18 -3
  217. package/docs/contracts/refusals.publication.json +2 -2
  218. package/docs/contracts/views.md +8 -0
  219. package/docs/reference.md +1 -0
  220. package/package.json +23 -34
  221. package/receipts.bound +11627 -10323
  222. package/samples/reading-identity/no.json +20 -0
  223. package/samples/reading-identity/yes.json +46 -0
  224. package/vectors/native/reading-identity.vector.json +101 -0
  225. package/vectors/native/refusals.vector.json +104 -0
  226. package/vendor/syntax/LICENSE.md +7 -0
  227. package/vendor/syntax/parser.js +1 -0
  228. package/.github/workflows/release.yml +0 -67
  229. package/.github/workflows/test.yml +0 -35
  230. package/dist/engine/object.d.ts +0 -17
  231. package/dist/engine/ports.d.ts +0 -37
  232. package/dist/fold/claims.d.ts +0 -29
  233. package/dist/host/call-context.d.ts +0 -20
  234. package/dist/host/commit-result.d.ts +0 -6
  235. package/dist/host/in-process-act.d.ts +0 -82
  236. package/dist/host/in-process-context.d.ts +0 -46
  237. package/dist/host/in-process-root.d.ts +0 -117
  238. package/dist/host/in-process.d.ts +0 -41
  239. package/dist/host/native/module-closure.d.ts +0 -35
  240. package/dist/host/native-receiver.d.ts +0 -19
  241. package/dist/host/place-act-transaction.d.ts +0 -24
  242. package/dist/host/place-clock-selection.d.ts +0 -55
  243. package/dist/host/ports/local-act.d.ts +0 -44
  244. package/dist/host/ports/place-act.d.ts +0 -49
  245. package/dist/host/ports/publication.d.ts +0 -10
  246. package/dist/host/reference-export.d.ts +0 -33
  247. package/dist/host/reference-native.d.ts +0 -30
  248. package/dist/host/reference-profile.d.ts +0 -23
  249. package/dist/host/refusals.d.ts +0 -14
  250. package/dist/host/root-clock-source.d.ts +0 -86
@@ -0,0 +1,37 @@
1
+ # Public reading identity
2
+
3
+ `prepareNativeReadingIdentity` from `@lapxo/bound/host` prepares the adopted input-projection readings of an authenticated place. `fold --as reading-identity` calls that same operation. This contract covers adopted input-projection readings; other reading forms refuse.
4
+
5
+ The receiver supplies the place, explicit native instrument, optional adopted reader selector, finite resource limits and cancellation signal. The place must declare one interval `0..N` for each of `reading-identity/bytes`, `/files`, `/readings` and `/probes`. Caller limits can reduce these bounds. They count handed UTF-8 input bytes, handed files, projected reading plans and input-projection requests across the selected readers; native image, response and execution limits also remain in force. The projection request is a probe, even when its implementation reuses a valid result. It is separate from final reading execution.
6
+
7
+ A fact contains preparations with ready reading identities or named unpaid receipt dependencies. Each ready entry gives its scope, canonical `reading-context@1` and digest. When a verified existing carrier is available it also gives the `reading-receipt@1` digest. A missing physical input produces `needs`; a dependent reading without its predecessor's verified receipt stays open. No complete digest is invented for an unpaid dependency. These names are supplied by the selected world's projection; application region names are not built into Bound.
8
+
9
+ Preparation uses the same projection, dependency order, contextual framing, transitive instrument inputs, policy, effective environment and carrier verification as execution. It can run the declared input projection under its native port. It never runs the final reading, signs, admits an act, renders public receipts or renews a reading receipt. Operational image/cache maintenance is separate. A subsequent execution under identical inputs and context commits the same identity; preparation does not reserve that identity or authorize a future answer.
10
+
11
+ Instrument, implementation, policy, transitive inputs and the actual environment participate under the existing Topos contracts. Current-answer authorization also retains the existing principal, grant, snapshot and freshness checks when that profile is selected. Retained evidence grants no current authority. Environment values are committed by digest, not exposed as secret strings. Receipt identity and typed-content identity remain distinct.
12
+
13
+ Relevant input or dependency changes produce another identity. Unconsumed maintenance does not. Bytes stored under a digest must verify; altered selected bytes or carriers refuse rather than becoming an alternative identity. The existing execution path may recompute an invalid retained answer; public inspection refuses a corrupt carrier. Missing bytes and failed integrity are different outcomes.
14
+
15
+ Refusals are typed data from the public API: `reading-identity/context`, `/budget`, `/selection`, `/projection`, `/integrity`, `/failed`, and the existing `host/context`, `/budget`, `/cancelled`. A non-projection reader is unsupported, not silently executed. Cancellation and handed-input budgets are checked before the projection; native process budgets remain authoritative during execution. Synchronous projection cannot observe a JavaScript abort callback while it occupies the host thread; its declared native timeout still bounds that work.
16
+
17
+ ## Quartet
18
+
19
+ The native test forms two unrelated disposable admitted places, counts and catalogue. Counts reads a physical file. Catalogue adds a dependent aggregate. Both use receiver-selected native images and the real CLI; a separate consumer imports the compiled public `/host` export. Preparation leaves final reading receipts absent; execution commits the same identity; subsequent preparation verifies existing receipts without changing the public receipt file. Catalogue's aggregate is open until the leaf receipt exists.
20
+
21
+ The negative places retain a receipt but withdraw the current native grant, and alter the archive bytes under their selected digest. Both refuse. Focused vectors also cover missing physical input, changed dependency, stale handed bytes, cancellation, resource exhaustion and unrelated maintenance. Existing environment, authority and descendant-receipt vectors remain applicable and are reused.
22
+
23
+ Two places on this Mac do not establish another-machine portability. L6 stays pending. This quartet neither admits Root's new reader bindings nor certifies the full 0.2.5 release.
24
+
25
+ ## Native lines and evidence
26
+
27
+ `prepareNativeViewIdentity({place, instrument, view, expectedIdentity?})` from `@lapxo/bound/host` prepares the local native `lines` or `evidence` projection. `fold --as reading-identity@lines` and `fold --as reading-identity@evidence` print its identity without the result text. `fold --as reading-identity@lines@<digest>` (or `reading-identity@evidence@<digest>`) returns JSON with `kind`, `view`, `identity` and `text`. The text and identity use the same captured inputs; an obsolete expected identity returns no result. Ordinary views keep their existing output and require no reading-identity budgets.
28
+
29
+ This operation performs configuration authentication and projection, not the region fold, executable readings or source resolution. It takes no Root exclusion and performs no persistent writes. One synchronous committed-journal observation fixes native acts; selected legacy sources are captured by exact bytes and checked again. Changed committed inputs, selected bytes, effective environment or expiration day refuse rather than publishing a mixed result. No lease reserves a later answer: the caller supplies the expected identity when requesting the result.
30
+
31
+ Identity commits the native view, local place, authenticated configuration, selected authority/evidence histories and source bytes (including selected receipt inputs), exact implementation closure and instrument lock, effective runtime/environment, and UTC expiration-policy day. Input names and values are framed; no consumer directory fingerprint is accepted. Unconsumed fold caches, stamp memos and exclusion bookkeeping do not participate. The local execution identity is distinct from portable semantic standing identity.
32
+
33
+ The existing admitted preparation limits remain required for identity requests; inputs and implementation sources count against their byte/file budgets. Preparation does not execute projection probes or final readings. Only unqualified local native lines and a single unshaped native evidence view are supported. Foreign evidence needing an asynchronous transport snapshot and unsupported views refuse by name. No fallback executes their fold.
34
+
35
+ Existing catalog codes apply: `reading-identity/selection` for unsupported selections, `reading-identity/context` for changed or mismatched snapshots, `reading-identity/budget` for missing/exhausted limits, and `reading-identity/failed` for unavailable implementation inputs. Public CLI machine records carry those codes.
36
+
37
+ Seven native vectors cover repeated identity, added evidence, changed configuration, unchanged fold maintenance, distinct places, unsupported selections and identity-to-result binding with a stale refusal. Both unrelated places also answer while a Root writer holds exclusion; complete store comparison verifies no writes. Existing view/landing behavior without identity budgets is retained. These vectors do not establish L6.
@@ -0,0 +1,25 @@
1
+ {
2
+ "scope": "contract/published/reading-identity",
3
+ "members": [
4
+ {
5
+ "role": "contract",
6
+ "path": "docs/contracts/reading-identity.md",
7
+ "digest": "sha256:0db77ff0553ea92ed4f47f587f1a026a59279c3a4abb00a662eefd5952e6de1c"
8
+ },
9
+ {
10
+ "role": "yes",
11
+ "path": "samples/reading-identity/yes.json",
12
+ "digest": "sha256:5b40b3546e99bf7c646a15fc04241400199b6130b5ff35c142d70a4f68bf12fb"
13
+ },
14
+ {
15
+ "role": "vector",
16
+ "path": "vectors/native/reading-identity.vector.json",
17
+ "digest": "sha256:42bac03e64bd525398e9843cb8e8a256c46041a0c22e0d6774f523b1b283cb9d"
18
+ },
19
+ {
20
+ "role": "no",
21
+ "path": "samples/reading-identity/no.json",
22
+ "digest": "sha256:77b63c1eb80a98e66d38cf357698166b178ae1d344939ec2bcaf74e5a2fd96c4"
23
+ }
24
+ ]
25
+ }
@@ -92,3 +92,54 @@ bound-lock/1 at=policy:bound-host-ports by=target form=alphabet measure=next rol
92
92
  bound-lock/1 at=policy:bound-host-ports by=target form=alphabet measure=code role=writes scope=refusal/host-port/response value=host-port/response
93
93
  bound-lock/1 about="A host response has an unsupported shape or shared mutable bytes." at=policy:bound-host-ports by=target form=alphabet measure=class role=writes scope=refusal/host-port/response value=host
94
94
  bound-lock/1 at=policy:bound-host-ports by=target form=alphabet measure=next role=writes scope=refusal/host-port/response value=inspect-host-port
95
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/context value=reading-identity/context
96
+ bound-lock/1 about="The reading lacks its complete declared execution context." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/context value=interpretation
97
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/context value=inspect-reading-context
98
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/budget value=reading-identity/budget
99
+ bound-lock/1 about="The place lacks one finite declared preparation limit." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/budget value=resource
100
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/budget value=inspect-resource-lines
101
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/selection value=reading-identity/selection
102
+ bound-lock/1 about="The requested reader is not adopted by this place." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/selection value=interpretation
103
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/selection value=inspect-reader-selection
104
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/projection value=reading-identity/projection
105
+ bound-lock/1 about="The adopted reader has no supported input projection." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/projection value=interpretation
106
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/projection value=declare-input-projection
107
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/integrity value=reading-identity/integrity
108
+ bound-lock/1 about="Current input or retained carrier bytes differ from their committed bytes." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/integrity value=input
109
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/integrity value=resolve-verified-bytes
110
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=code role=writes scope=refusal/reading-identity/failed value=reading-identity/failed
111
+ bound-lock/1 about="The existing native preparation boundary refused; the diagnostic retains its cause." at=policy:public-reading-identity by=target form=alphabet measure=class role=writes scope=refusal/reading-identity/failed value=operation
112
+ bound-lock/1 at=policy:public-reading-identity by=target form=alphabet measure=next role=writes scope=refusal/reading-identity/failed value=inspect-native-diagnostic
113
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/engine/input value=engine/input
114
+ bound-lock/1 about="The object byte request is not a supported canonical profile." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/engine/input value=input
115
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/engine/input value=inspect-request
116
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/engine/context value=engine/context
117
+ bound-lock/1 about="The receiver-selected context does not admit the requested object history." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/engine/context value=interpretation
118
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/engine/context value=inspect-context
119
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/computation/context value=computation/context
120
+ bound-lock/1 about="The question, implementation, policy, input or result does not match the receiver-selected computation context." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/computation/context value=interpretation
121
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/computation/context value=inspect-context
122
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/computation/budget value=computation/budget
123
+ bound-lock/1 about="The computation lacks or exceeds its declared byte or execution budget." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/computation/budget value=resource
124
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/computation/budget value=inspect-resource-lines
125
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/computation/signature value=computation/signature
126
+ bound-lock/1 about="The computation signature does not verify with the receiver-selected signer." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/computation/signature value=authority
127
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/computation/signature value=inspect-signer
128
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/computation/authority value=computation/authority
129
+ bound-lock/1 about="The selected computation signer is absent, retired or outside coverage." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/computation/authority value=authority
130
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/computation/authority value=inspect-authority
131
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/conformance/context value=conformance/context
132
+ bound-lock/1 about="The receiver supplied missing or invalid suite, implementation or contract identities." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/conformance/context value=interpretation
133
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/conformance/context value=inspect-context
134
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/conformance/budget value=conformance/budget
135
+ bound-lock/1 about="The suite exceeds its declared byte or case budget." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/conformance/budget value=resource
136
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/conformance/budget value=inspect-resource-lines
137
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/conformance/coverage value=conformance/coverage
138
+ bound-lock/1 about="The suite omits a required rule or refusal, or names undeclared coverage." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/conformance/coverage value=interpretation
139
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/conformance/coverage value=complete-suite
140
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/conformance/integrity value=conformance/integrity
141
+ bound-lock/1 about="The supplied suite bytes do not match the digest chosen by the receiver." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/conformance/integrity value=integrity
142
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/conformance/integrity value=verify-suite-bytes
143
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=code role=writes scope=refusal/conformance/suite value=conformance/suite
144
+ bound-lock/1 about="The suite is malformed, empty, duplicated or uses an unsupported byte profile." at=policy:bound/public-operations by=target form=alphabet measure=class role=writes scope=refusal/conformance/suite value=input
145
+ bound-lock/1 at=policy:bound/public-operations by=target form=alphabet measure=next role=writes scope=refusal/conformance/suite value=inspect-suite
@@ -37,11 +37,26 @@ Source of truth: `refusals.bound` (`bound-refusals@1`), read through the existin
37
37
  | host-port/failed | host | A declared host callback failed; no successful result is returned. | inspect-host-port |
38
38
  | host-port/integrity | integrity | Content bytes differ from the requested SHA-256 identity. | resolve-exact-bytes |
39
39
  | host-port/response | host | A host response has an unsupported shape or shared mutable bytes. | inspect-host-port |
40
-
41
- Native quartet: `refusals.publication.json`. `vectors/native/refusals.vector.json` checks the wire catalog, its derived page, duplicate/missing records, and real export/inspection refusals in two places. No failed operation becomes a successful receipt. The captured semantic marker is:
40
+ | reading-identity/context | interpretation | The reading lacks its complete declared execution context. | inspect-reading-context |
41
+ | reading-identity/budget | resource | The place lacks one finite declared preparation limit. | inspect-resource-lines |
42
+ | reading-identity/selection | interpretation | The requested reader is not adopted by this place. | inspect-reader-selection |
43
+ | reading-identity/projection | interpretation | The adopted reader has no supported input projection. | declare-input-projection |
44
+ | reading-identity/integrity | input | Current input or retained carrier bytes differ from their committed bytes. | resolve-verified-bytes |
45
+ | reading-identity/failed | operation | The existing native preparation boundary refused; the diagnostic retains its cause. | inspect-native-diagnostic |
46
+ | engine/input | input | The object byte request is not a supported canonical profile. | inspect-request |
47
+ | engine/context | interpretation | The receiver-selected context does not admit the requested object history. | inspect-context |
48
+ | computation/context | interpretation | The question, implementation, policy, input or result does not match the receiver-selected computation context. | inspect-context |
49
+ | computation/budget | resource | The computation lacks or exceeds its declared byte or execution budget. | inspect-resource-lines |
50
+ | computation/signature | authority | The computation signature does not verify with the receiver-selected signer. | inspect-signer |
51
+ | computation/authority | authority | The selected computation signer is absent, retired or outside coverage. | inspect-authority |
52
+ | conformance/context | interpretation | The receiver supplied missing or invalid suite, implementation or contract identities. | inspect-context |
53
+ | conformance/budget | resource | The suite exceeds its declared byte or case budget. | inspect-resource-lines |
54
+ | conformance/coverage | interpretation | The suite omits a required rule or refusal, or names undeclared coverage. | complete-suite |
55
+ | conformance/integrity | integrity | The supplied suite bytes do not match the digest chosen by the receiver. | verify-suite-bytes |
56
+ | conformance/suite | input | The suite is malformed, empty, duplicated or uses an unsupported byte profile. | inspect-suite |
42
57
 
43
58
  ```text
44
59
  REFUSALS lines · unique codes · exact metadata · duplicate refused
45
60
  ```
46
61
 
47
- Specific producers cover reference syntax, standing query/view, native export usage/source/context/budget/authority/signer/history, and authenticated inspection context/budget/transport/integrity/framing/wire/authority/history/object-context/identity. Numeric CLI usage and uncoded legacy failures use the explicitly generic codes above; diagnostics remain unclassified. B2/B5 may add codes only by changing these versioned contract bytes and their vectors.
62
+ Specific producers cover reference syntax, standing query/view, native export usage/source/context/budget/authority/signer/history, and authenticated inspection context/budget/transport/integrity/framing/wire/authority/history/object-context/identity. Numeric CLI usage and uncoded legacy failures use the explicitly generic codes above; diagnostics remain unclassified. Additional public operations may add codes only by changing these versioned contract bytes and their vectors.
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "role": "contract",
6
6
  "path": "docs/contracts/refusals.md",
7
- "digest": "sha256:ed549322f385e184b0defe705eac62cf546b8617ecb7f9fbe3f727431820f10c"
7
+ "digest": "sha256:2255340c9bad55a9c6b97542840d0efee0f9cecc9d032a0e810b96e5f891c38e"
8
8
  },
9
9
  {
10
10
  "role": "yes",
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "role": "vector",
16
16
  "path": "vectors/native/refusals.vector.json",
17
- "digest": "sha256:2e2833bc6388784e030b50232bd99f84ccb05b0fd6ed86f6db0a5a0b1dc38e05"
17
+ "digest": "sha256:957f2b4a8e97a2dd851c7cdb210579cc9d3ab0822efa9bf18c3a676b92636663"
18
18
  },
19
19
  {
20
20
  "role": "no",
@@ -27,3 +27,11 @@ The programs view asks the selected Topos demand-status projection at resolution
27
27
  # Demand card
28
28
 
29
29
  The declared card view asks the selected Topos demand-card projection at resolution 8. It reads the selected demand coordinates, their explicit dependencies and the handed evidence region under selectors declared by that Topos. It does not infer progress from files or convert a declaration into proof. A requirement without evidence is unread; an unpaid predecessor blocks its dependant. The next coordinate is an unblocked unpaid demand. Deadline is unread when no elapsed receipt is handed; absence is not zero. These labels describe program evidence, not Obligations cell states. The sample pins the implementation member from the published Topos SDK, folds two unrelated places twice with equal stdout and refuses a declared dependency cycle. This sample intentionally has no evidence to close either program; it certifies the projection of absence and order, not stage acceptance.
30
+
31
+ ## Computation statements
32
+
33
+ `fold --as computation --key <key> [--key-file <host-file>]` computes the existing authenticated object projection. It requires an admitted `view/computation=computation@1`, one digest each for `computation/contract` and `computation/numeric-policy`, and explicit `0..N` limits for `computation/bytes` and `computation/milliseconds`. The key must be current and cover `computation`. No implicit key or delivery approval is used.
34
+
35
+ The CLI uses the same `executeComputation` operation exported by `/engine`. Its signer is the existing host-selected file or command mechanism; the original signed history is not modified. The returned `bound-computation-delivery@1` contains the public context, request bytes, signed statement and result bytes. Relevant environment values are committed as digests. Verification must use an independently chosen context and public key, not trust the supplied context merely because it was delivered.
36
+
37
+ The implementation identity covers the native instrument closure and, when selected, the WASM assets. The selected form standings and their executable closures are transitive inputs. A statement names what ran; its signature authenticates that observation, not mathematical correctness, independence, a Root admission or permission to publish.
package/docs/reference.md CHANGED
@@ -22,6 +22,7 @@
22
22
  - [engine](contracts/engine.md)
23
23
  - [evidence-view](contracts/evidence-view.md)
24
24
  - [host-ports](contracts/host-ports.md)
25
+ - [reading-identity](contracts/reading-identity.md)
25
26
  - [reference-backend](contracts/reference-backend.md)
26
27
  - [reference-export](contracts/reference-export.md)
27
28
  - [refusals](contracts/refusals.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapxo/bound",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "Read the bounds you already wrote, fold them, and name the contradictions.",
6
6
  "main": "dist/cli/verb.js",
@@ -36,13 +36,16 @@
36
36
  "./host": {
37
37
  "types": "./dist/host/index.d.ts",
38
38
  "default": "./dist/host/index.js"
39
- }
39
+ },
40
+ "./conformance": "./docs/contracts/conformance.json",
41
+ "./determinism": "./docs/contracts/determinism.bound"
40
42
  },
41
43
  "scripts": {
42
44
  "test": "node --import ./test/setup.ts --test --test-concurrency=2 test/*.test.ts",
43
45
  "clean": "rm -rf dist .tsbuildinfo* tsconfig.tsbuildinfo",
44
46
  "build": "node --experimental-strip-types tools/build.ts",
45
- "prepack": "npm run build"
47
+ "prepack": "npm run build",
48
+ "compact-archive": "node --experimental-strip-types tools/compact-archive.ts"
46
49
  },
47
50
  "files": [
48
51
  "LICENSE",
@@ -51,13 +54,8 @@
51
54
  "dist/**/*.js",
52
55
  "dist/cli/verb.d.ts",
53
56
  "dist/engine/index.d.ts",
54
- "dist/engine/object.d.ts",
55
57
  "dist/host/reference-authenticated.d.ts",
56
- "dist/host/reference-export.d.ts",
57
58
  "dist/host/reference-native-api.d.ts",
58
- "dist/host/reference-native.d.ts",
59
- "dist/host/reference-profile.d.ts",
60
- "dist/host/refusals.d.ts",
61
59
  "dist/wasm/adapter.d.ts",
62
60
  "TARGET.bound",
63
61
  "receipts.bound",
@@ -162,7 +160,6 @@
162
160
  "samples/reference-backend/world-fixture.json",
163
161
  "vectors/native/reference-backend.vector.json",
164
162
  "samples/authenticated-reference/compatibility.json",
165
- "dist/engine/ports.d.ts",
166
163
  "docs/contracts/host-ports.publication.json",
167
164
  "samples/host-ports/yes.json",
168
165
  "samples/host-ports/no.json",
@@ -173,49 +170,41 @@
173
170
  "vectors/native/readme.vector.json",
174
171
  "samples/engine-place/inputs/closure.json",
175
172
  "dist/host/native/module-delivery.d.ts",
176
- "dist/host/native/module-closure.d.ts",
177
173
  "docs/contracts/closure-delivery.md",
178
174
  "docs/contracts/closure-delivery.publication.json",
179
175
  "samples/module-delivery/inputs/delivery.json",
180
176
  "samples/no/module-delivery/delivery.json",
181
177
  "vectors/native/module-delivery.vector.json",
182
178
  "dist/host/index.d.ts",
183
- "dist/host/in-process.d.ts",
184
- "dist/host/in-process-context.d.ts",
185
- "dist/host/in-process-act.d.ts",
186
- "dist/host/in-process-root.d.ts",
187
- "dist/host/native-receiver.d.ts",
188
- "dist/host/call-context.d.ts",
189
- "dist/host/ports/place-act.d.ts",
190
- "dist/host/place-act-transaction.d.ts",
191
- "dist/host/ports/publication.d.ts",
192
- "dist/host/root-clock-source.d.ts",
193
- "dist/fold/claims.d.ts",
194
- "dist/host/ports/local-act.d.ts",
195
- "dist/host/place-clock-selection.d.ts",
196
- "dist/host/commit-result.d.ts",
197
179
  "docs/contracts/native-host.publication.json",
198
180
  "samples/native-host/yes.json",
199
181
  "samples/native-host/no.json",
200
182
  "vectors/native/native-host.vector.json",
201
- ".github/workflows/release.yml",
202
- ".github/workflows/test.yml",
203
183
  "CITATION.cff",
204
184
  "docs/contracts/publication.inventory.json",
205
185
  "docs/guide.md",
206
186
  "docs/reference.md",
207
- "docs/why.md"
187
+ "docs/why.md",
188
+ "docs/contracts/reading-identity.publication.json",
189
+ "samples/reading-identity/yes.json",
190
+ "samples/reading-identity/no.json",
191
+ "vectors/native/reading-identity.vector.json",
192
+ "dist/vendor/",
193
+ "vendor/syntax/parser.js",
194
+ "vendor/syntax/LICENSE.md",
195
+ "dist/public-types.d.ts",
196
+ "docs/contracts/conformance.json",
197
+ "docs/contracts/determinism.bound"
208
198
  ],
209
199
  "author": "Lapxo",
210
200
  "license": "MIT",
211
- "dependencies": {
212
- "@lapxo/obligations": "0.4.3",
213
- "@lapxo/topos": "^0.2.1",
214
- "acorn": "8.19.0"
215
- },
216
201
  "devDependencies": {
217
- "@types/node": "^20.0.0",
218
- "typescript": "^5.0.0"
202
+ "@types/node": "20.19.43",
203
+ "typescript": "5.9.3",
204
+ "@lapxo/topos": "0.2.1",
205
+ "@lapxo/obligations": "0.4.4",
206
+ "esbuild": "0.28.2",
207
+ "dts-bundle-generator": "9.5.1"
219
208
  },
220
209
  "sideEffects": false,
221
210
  "engines": {