@inventarch/runtime 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/LANGUAGE.md +56 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +4 -0
  4. package/README.md +11 -2
  5. package/SPEC.md +77 -0
  6. package/dist/authoring/index.d.ts +159 -0
  7. package/dist/authoring/index.d.ts.map +1 -0
  8. package/dist/authoring/index.js +416 -0
  9. package/dist/authoring/index.js.map +1 -0
  10. package/dist/authoring-execution/execution.d.ts +12 -0
  11. package/dist/authoring-execution/execution.d.ts.map +1 -0
  12. package/dist/authoring-execution/execution.js +73 -0
  13. package/dist/authoring-execution/execution.js.map +1 -0
  14. package/dist/authoring-execution/index.d.ts +6 -0
  15. package/dist/authoring-execution/index.d.ts.map +1 -0
  16. package/dist/authoring-execution/index.js +6 -0
  17. package/dist/authoring-execution/index.js.map +1 -0
  18. package/dist/authoring-execution/inventory.d.ts +5 -0
  19. package/dist/authoring-execution/inventory.d.ts.map +1 -0
  20. package/dist/authoring-execution/inventory.js +46 -0
  21. package/dist/authoring-execution/inventory.js.map +1 -0
  22. package/dist/authoring-execution/shared.d.ts +22 -0
  23. package/dist/authoring-execution/shared.d.ts.map +1 -0
  24. package/dist/authoring-execution/shared.js +101 -0
  25. package/dist/authoring-execution/shared.js.map +1 -0
  26. package/dist/authoring-execution/types.d.ts +43 -0
  27. package/dist/authoring-execution/types.d.ts.map +1 -0
  28. package/dist/authoring-execution/types.js +21 -0
  29. package/dist/authoring-execution/types.js.map +1 -0
  30. package/dist/candidate.d.ts +49 -0
  31. package/dist/candidate.d.ts.map +1 -0
  32. package/dist/candidate.js +158 -0
  33. package/dist/candidate.js.map +1 -0
  34. package/dist/classify.d.ts +12 -0
  35. package/dist/classify.d.ts.map +1 -0
  36. package/dist/classify.js +21 -0
  37. package/dist/classify.js.map +1 -0
  38. package/dist/collect.d.ts +16 -0
  39. package/dist/collect.d.ts.map +1 -0
  40. package/dist/collect.js +133 -0
  41. package/dist/collect.js.map +1 -0
  42. package/dist/context.d.ts +5 -0
  43. package/dist/context.d.ts.map +1 -0
  44. package/dist/context.js +124 -0
  45. package/dist/context.js.map +1 -0
  46. package/dist/coordinate.d.ts +21 -0
  47. package/dist/coordinate.d.ts.map +1 -0
  48. package/dist/coordinate.js +40 -0
  49. package/dist/coordinate.js.map +1 -0
  50. package/dist/door.d.ts +17 -0
  51. package/dist/door.d.ts.map +1 -0
  52. package/dist/door.js +217 -0
  53. package/dist/door.js.map +1 -0
  54. package/dist/editor/index.d.ts +5 -0
  55. package/dist/editor/index.d.ts.map +1 -0
  56. package/dist/editor/index.js +4 -0
  57. package/dist/editor/index.js.map +1 -0
  58. package/dist/editor/types.d.ts +226 -0
  59. package/dist/editor/types.d.ts.map +1 -0
  60. package/dist/editor/types.js +2 -0
  61. package/dist/editor/types.js.map +1 -0
  62. package/dist/editor/workspace.d.ts +46 -0
  63. package/dist/editor/workspace.d.ts.map +1 -0
  64. package/dist/editor/workspace.js +903 -0
  65. package/dist/editor/workspace.js.map +1 -0
  66. package/dist/entry.d.ts +9 -0
  67. package/dist/entry.d.ts.map +1 -0
  68. package/dist/entry.js +26 -0
  69. package/dist/entry.js.map +1 -0
  70. package/dist/errors.d.ts +8 -0
  71. package/dist/errors.d.ts.map +1 -0
  72. package/dist/errors.js +15 -0
  73. package/dist/errors.js.map +1 -0
  74. package/dist/index.d.ts +25 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +14 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/machine-protocol.d.ts +33 -0
  79. package/dist/machine-protocol.d.ts.map +1 -0
  80. package/dist/machine-protocol.js +339 -0
  81. package/dist/machine-protocol.js.map +1 -0
  82. package/dist/mentions.d.ts +20 -0
  83. package/dist/mentions.d.ts.map +1 -0
  84. package/dist/mentions.js +79 -0
  85. package/dist/mentions.js.map +1 -0
  86. package/dist/publication.d.ts +22 -0
  87. package/dist/publication.d.ts.map +1 -0
  88. package/dist/publication.js +275 -0
  89. package/dist/publication.js.map +1 -0
  90. package/dist/render.d.ts +9 -0
  91. package/dist/render.d.ts.map +1 -0
  92. package/dist/render.js +78 -0
  93. package/dist/render.js.map +1 -0
  94. package/dist/select.d.ts +16 -0
  95. package/dist/select.d.ts.map +1 -0
  96. package/dist/select.js +55 -0
  97. package/dist/select.js.map +1 -0
  98. package/dist/steward.d.ts +22 -0
  99. package/dist/steward.d.ts.map +1 -0
  100. package/dist/steward.js +45 -0
  101. package/dist/steward.js.map +1 -0
  102. package/dist/types.d.ts +97 -0
  103. package/dist/types.d.ts.map +1 -0
  104. package/dist/types.js +10 -0
  105. package/dist/types.js.map +1 -0
  106. package/package.json +162 -3
package/LANGUAGE.md ADDED
@@ -0,0 +1,56 @@
1
+ # Public IA language
2
+
3
+ IA records declare typed identities, fields and relationships. Owning canonical schemas define the structural contract; language syntax and reference resolution preserve those declarations.
4
+
5
+ The selected vocabulary below is shared by this release. Use `ia vocabulary --json` for its attributed catalogue and `ia vocabulary --schema` for canonical field schemas. `ia validate` reports structural and evaluated evidence separately. An admitted declaration does not establish semantic quality or grant execution authority.
6
+
7
+ Spec source locators do not load documents. Resource capture and disclosure require explicit selection, matching pins and a host-owned disclosure boundary. Model, operation, evaluator and authority callbacks belong to the application host.
8
+
9
+ | Word | Owner | Meaning |
10
+ | --- | --- | --- |
11
+ | @agent | agent-system | Names a participant and the vocabulary to which its governance applies. It does not grant host permissions. |
12
+ | @agent-profile | agent-composition-system | Composes an agent, capabilities, optional mandate/voice/delegates and installed execution contracts. |
13
+ | @artifact-set | taxonomy | Defines a closed grouping of artifact genres. |
14
+ | @authoring-guide | authoring-system | Associates a vocabulary owner and schema with an authoring reference and usage guidance. |
15
+ | @axis | taxonomy | Defines a closed coordinate axis for selection. |
16
+ | @capability | agent-composition-system | Groups operations, procedures, templates, checks and included capabilities with declared execution bounds. |
17
+ | @cardinality | taxonomy | Defines relationship multiplicity constraints. |
18
+ | @case | compliance-system | Declares scenario inputs, expected behavior and evaluator attribution. A declaration is not an observed test result. |
19
+ | @category | taxonomy | Defines a closed concept classification used by record shapes and contextual selection. |
20
+ | @check | compliance-system | Names a check implementation and scope. Declaring an implementation name does not install or execute it. |
21
+ | @contract | compliance-system | Names versioned requirements that may be adopted by other records. Requirements need explicit evaluation evidence. |
22
+ | @convention | governance-system | Declares a convention in the shared governance shape. |
23
+ | @decision | work-system | Represents a choice that is needed or has been made: the question, options and decider, and once made, the choice and rationale. |
24
+ | @dimension | taxonomy | Defines a supported record dimension used by conditions and lookup. |
25
+ | @distribution | workspace-system | Declares root records from which a distributable closure is selected. |
26
+ | @execution-binding | agent-composition-system | Connects a native target to a host-installed entry or operation descriptor. |
27
+ | @harness | agent-composition-system | Composes profiles and execution bindings in a workspace under a host contract. |
28
+ | @hook | hook-authoring-system | Represents a host event, tool/path selection and guard message. Registration and executing a guard require a host adapter. |
29
+ | @improvement | learning-system | Represents a proposed change, review metadata and publication metadata. It does not authorize or apply the proposal. |
30
+ | @intent-shape | taxonomy | Defines a request framing and its retrieval defaults. |
31
+ | @kind | taxonomy | Defines a closed semantic role for records; lowering determines the role of each registered word. |
32
+ | @lane | taxonomy | Defines a retrieval lane associated with record kinds. |
33
+ | @law | governance-system | Declares a rule with severity. Structural admission cannot establish the truth or suitability of its prose. |
34
+ | @mandate | agent-system | States bounded authority and conditions for a participant. Host authorization remains independent. |
35
+ | @milestone | work-system | Represents an outcome with an exit criterion inside exactly one plan; it names a condition, not the work toward it. |
36
+ | @move | taxonomy | Defines the closed classification of an agent action or activity. |
37
+ | @observation | learning-system | Represents an attributed evidence account with interpretation and retention metadata. Evidence claims are not verified by field typing. |
38
+ | @operation | authoring-system | Binds a declared operation to an implementation/input/output/effect contract; the host installs implementations. |
39
+ | @phase | taxonomy | Defines a cognitive phase coordinate: orient, plan, act or learn. |
40
+ | @placement | taxonomy | Defines source authority and reach metadata. |
41
+ | @plan | work-system | Represents an arrangement of milestones toward an intent; it heads the work hierarchy and has no parent. Plans do not nest. |
42
+ | @playbook | governance-system | Represents a procedure as phase/primitive cells. Cell delivery is generic; the authored method belongs to its author. |
43
+ | @predicate | taxonomy | Defines a directed relationship and its inverse spelling. |
44
+ | @primitive | taxonomy | Defines a cognitive primitive coordinate; a cell is selected using its phase and primitive. |
45
+ | @principle | governance-system | Declares a governing rationale in the shared governance shape. |
46
+ | @run | session-system | Represents a governed run identity, declared phase, status and owner. Declaration does not start execution. |
47
+ | @schema | floor | Declares the structural contract for exactly one registered discriminator. |
48
+ | @spec | work-system | Represents a maintained specification with explicit status and at most one same-word supersession. Contents and document membership belong to its author; a source locator does not load a body or prove semantic quality. |
49
+ | @system | floor | Registers vocabulary, direct system dependencies, a local steward and consent for relationships. |
50
+ | @task | work-system | Represents one owner's action toward exactly one milestone. Whether it is ready to start is computed by a work evaluator, never stored on the record. |
51
+ | @template | template-system | Represents bounded rendering inputs and output structure. Rendering does not publish or install output. |
52
+ | @value-type | taxonomy | Defines the field types that schemas may require. |
53
+ | @voice | agent-composition-system | Declares communication attributes separate from authority and procedure. |
54
+ | @workspace | workspace-system | Groups systems into an explicit work boundary; relationships can describe dependencies between boundaries. |
55
+
56
+ This guide describes the selected structural vocabulary. Private expert procedures, live provider behavior and unobserved platform qualification are separate from the installed public contract.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ InventArch
2
+ Copyright (c) 2026 InventArch contributors
3
+
4
+ Licensed under the Apache License, Version 2.0. See LICENSE.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # @inventarch/runtime
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Coordinate-based procedure and governance delivery over scoped database reads. [SPEC.md](SPEC.md) owns the behavior and runtime/hosts plan owns delivery.
4
+
5
+ The initial classifier and coordinate preparation API validate the native axes, retain declared/profile/derived/absent provenance, and keep shape focus lists separate from scalar selector constraints. Hosts must explicitly declare phase and primitive. Use `context(handle, {within, text, coordinate}, {tokens, records})` for scoped cell/governance/selector/subject/text delivery. It returns a packet or an explicit refusal, reserves blocking governance before optional entries, and reports text-estimator usage and separate envelope overhead. `select` applies the same ranking to explicit candidates and refuses ties or missing selector axes. `Door` exposes validated JSON read operations over a private scope issuer; privileged reports require host opt-in. CLI/MCP transports now expose that door. evaluateSteward resolves a system's typed native owner and evaluates an explicitly trusted actor; the steward-hook app owns host identity/path interpretation. Model execution and capability dispatch have separate owners. `@inventarch/runtime/entry` exports `isEntry`, which the `ia`, `ia-mcp-door` and `ia-mcp-service` binaries use to run when a link such as npm's `.bin` entry reaches them.
6
+ # Editor and authoring consumers
7
+
8
+ `@inventarch/runtime/editor` exposes `EditorWorkspace`: cache-free local source capture, versioned overlays, diagnostics, completion, source actions, inspector/graph projection, schema-backed drafting and create-only candidate validation. `ViewStamp` binds opaque source actions to one root owner and generation; refresh/update invalidates prior actions. This is a privileged local facade, not a replacement for scoped remote Door APIs. It performs no file creation or network requests.
9
+
10
+ `@inventarch/runtime/authoring` owns protocol-1 disclosure/request/proposal/receipt/event validation, digests and bounded same-origin HTTPS transport for separately configured account services. Applications own auth tokens, service state, model calls and effects. The extension and separate API use these same contracts; no native brief/spec/plan vocabulary is introduced.
11
+
12
+ See Workbench evidence and the [VS Code guide](../../apps/vscode/README.md) for actual consumers and qualification limits.
package/SPEC.md ADDED
@@ -0,0 +1,77 @@
1
+ # Runtime specification
2
+
3
+ ## Optional topical context assembly
4
+
5
+ `context` accepts `ContextOptions.ranking` and the Door accepts `params.ranking`: `native` (default) preserves the existing procedure-first order; `topical` reserves all applicable blocking governance first, then orders other admitted candidates by the existing scoped text-search score, using native entry order for ties. Packets identify this opt-in mode with `ranking: "topical"`. It changes neither candidate eligibility, scope, coordinate validation, blocker overflow refusal nor exclusive execution selection. It is a retrieval option, not a semantic accuracy guarantee.
6
+
7
+ ## P3 managed publication contract
8
+
9
+ `preparePublication` and `inspectPublication` own the local create-only draft primitive; the upper composition package supplies engine authorization and exact review/provenance. Outputs are bounded UTF-8 files under one host-selected `.ia/work/generated/<id>` directory, never `.ia/src`. Portable paths, case-folded collisions, reserved `result.json`, parent/leaf aliases and unsupported filesystems refuse. The first qualified profile is a local Windows NTFS volume, verified through the installed fixed volume probe; other filesystems/platforms refuse until separately qualified.
10
+
11
+ P4 exports the same read-only `qualifyPublicationRoot` check so a host can reject an unsupported or aliased root before starting an artifact task. It returns the canonical supported root without creating draft, lock or session files. Publication and inspection repeat this check at their actual boundary; host qualification is not a reusable grant.
12
+
13
+ A separate per-destination SQLite transaction lock is held from staging through publication or inspection, across sessions. No PID/time-based lock stealing. Staged files and metadata are flushed, the destination is claimed with exclusive directory creation, files are linked create-only, and `result.json` is linked last as the completion marker. Existing destinations are never replaced, including empty directories. Inspecting under the same lock establishes quiescence for cooperating publishers, then checks the exact manifest bytes, complete file inventory and every content digest. Absent, applied, partial and conflicting/unknown results remain distinct. Partial outputs are retained for remediation; automatic repair/overwrite and abandoned-stage garbage collection are outside this packet.
14
+
15
+ The host owns the workspace and managed area; other users cannot mutate ancestors, lock databases or draft files. This is protection against competing cooperating processes and process death, not a sandbox against malicious same-user filesystem mutation. File flushes and process-kill tests do not establish hardware power-loss durability. The shared primitive is also consumed by the existing Stage E publisher while preserving its output paths and result format.
16
+
17
+ P2 candidate admission: `validateCandidate(input, candidate, scope)` validates an exact source-set/base vector, intended system/discriminator, bounded UTF-8 files with SHA-256 digests and cited source ranges. The trusted host supplies only the source closure disclosed to this run, permitted systems and exact candidate paths. Runtime builds admission views from those bytes without filesystem reads/writes, refuses authority changes, existing paths, shadowing, bad references and invalid citations, and returns bounded diagnostic codes with candidate-only locations. This is a read, distinct from generation, managed publication and source application. The upper composition package exposes its engine adapter; foundation packages gain no reverse dependency.
18
+
19
+ Editor extension contract (2026-09-18): public `/editor` composes language projections and database memory readers. It owns disposable per-root owner sessions, monotonic generations, saved/view revisions, occurrence-aware action handles, bounded graph/inspection projections and candidate validation. It exposes no cloud credentials or workspace execution. Host foundation imports go through this facade; semantic interpretation, discovery and admission remain with their existing owners.
20
+
21
+ Remote authoring client contract: `/authoring` owns the portable version-1 request, proposal, capabilities, event and chat schemas, their digest and limit checks, and a bounded HTTPS client, with loopback HTTP for development, that refuses redirects and requests outside its configured origin. A separately configured service implements authentication, authorization, persisted runs, events, cancellation and model execution. The extension owns credential storage, disclosure, review and local file effects. This package contains the client contract and transport; it does not include a hosted service or model credentials.
22
+
23
+ Platform M1 transport refinement: failed JSON responses preserve a string service `code`, or the standard OAuth string `error` when `code` is absent, as `AuthoringError.code`; status remains separate. OAuth `error_description` is not copied into error messages. Credential invalidation belongs to the authenticated client and requires a conclusive refresh-grant error, not an arbitrary transport failure.
24
+
25
+ Implementation contract for runtime/hosts plan, shared graph sections6-12/15 and systems section12. Depends only on language, graph and db. Implemented through runtime plan Task5, including coordinates, context/select, the scoped door and pure steward evaluation. Task paragraphs below are historical delivery evidence; their next-task statements do not describe the current implementation.
26
+
27
+ R01. Request coordinates use graph's closed axes and canonical values. Runtime accepts text, explicit axes, optional subject/follow and a database within token. Validate declared/profile/classifier values; never silently ignore an unknown axis. prepareCoordinate returns values plus declared/profile/derived/absent for every ConditionAxis and native shape focus lists. Declared values win over a supplied profile, which wins over derivation; phase and primitive must be declared by the request and cannot come from profile or classifier. Derive only shape and category; shape-row kind/lane/predicate arrays remain explicit focus hints, not scalar selector constraints. Profile cannot impersonate declared phase/primitive. Category gloss fields on records are never read for matching.
28
+
29
+ R02. classify(text) is a deterministic replaceable keyword seam over request prose only. Port the donor matrix/classify signals, select greatest signal count then native SHAPE_ROWS tiePrecedence, use context for no signal. Unknown custom output is COORDINATE-VALUE-UNKNOWN, not a fallback. A custom classifier is called only when shape is absent from request/profile. Mark supplied shape declared/profile and inferred shape derived. Explicit primitive and move participate unchanged in graph selector matching.
30
+
31
+ R03. context(handle, request, budget, options?) derives a phase-bound child of request.within and reads only through that token. Missing declared phase or primitive returns coordinate-incomplete; source token failures retain database codes. No hidden graph/registry/diagnostics are fetched for ranking. Packet records revision, child scope, coordinate provenance, included/omitted entries, followed/gated/dangling edges and measured limits. All public products are immutable. The opaque child token may differ between equivalent calls; semantic payload/order is deterministic.
32
+
33
+ R04. Admission steps are exact cell, separate primary fallback, applicable governance, satisfied selector, explicit subject/identity mention, then scoped BM25. Use graph.cell/selectors/variants/conditionHolds/effectiveSeverity and db.search/traverse. Selector disqualification excludes all ordinary retrieval and is reported with contradictory terms; blocking governance is evaluated only when its selectors admit the coordinate. A partial uncontradicted selector group stays eligible for topical/subject retrieval but cannot establish step4. Do not infer selectors from gloss fields. A node contributes its selected cell once at step1/2; governance obligations may contribute an additional step3 entry. Steps4-6 never dump the remaining body of a node already delivered at an earlier step.
34
+
35
+ R05. Steps1/2 order by descending band then identity; steps4-6 by selector specificity plus normalized scoped BM25, then descending band and identity. Step3 orders by band/identity. Selected governance text includes only applicable maximum-specificity clauses, with effective severity and each clause's key/condition/source span retained. No losing clause is delivered through generic body rendering. Generic bodies use already decoded compiled values and applicable semantic products; no consumer parses authored when words. Preserve source citations for every delivered cell/clause/body. Cell addresses use the language's phase/Primitive fragments. Governance and generic entries use the record identity with separate clause metadata, not invented resolvable fragments.
36
+
37
+ R06. A subject is a canonical identity, sigil ref or unambiguous exact name in the allowed pool. Request prose mentions may be typed sigils, canonical four-slot identities or kind/name forms; resolve against allowed records with exact cardinality, never first-match. Unresolved/ambiguous subjects/mentions produce attributable omission observations, not hidden-corpus queries. Request mention recognition is not IA source parsing. An explicit subject cell/requirement fragment is validated against the admitted node; missing fragments refuse the requested address.
38
+
39
+ R07. Budget tokens measure the sum of delivered text using an injectable named count(text); a cell entry's purpose (its record's says and answers) is delivered text only when the caller asks for it, and is then counted with the cell; default byte-estimate is ceil(UTF8 bytes/4), minimum1 for nonempty text, zero for empty. Budget records count distinct identities, not entries. Limits expose budgets, used text tokens, identity count, estimator name and serialized-envelope byte estimate separately. These are text estimates; host/model wrappers own their extra overhead. Negative/noninteger budgets or invalid estimator counts are IA-RUNTIME-BUDGET-INVALID. Reserve every applicable governance entry whose effective severity is blocking before optional admission. If blockers alone overflow, return IA-GRAPH-BUDGET-BLOCKING-OVERFLOW with minimum required budgets and the smallest number of blocking identities whose removal would fit; calculate that suggestion by descending per-identity token total, identity tie-break. This suggestion grants no permission to drop obligations. Fill remaining budget greedily in semantic order; omitted entries name budget as the cause. Display included entries in semantic order after reservation.
40
+
41
+ R08. Follow from included identities at depth1, scoped by the same token and request coordinate. Explicit follow overrides native shape predicate focus, including an empty list. Convert each native predicate focus to its language-table active verb phrase; do not invent suffixes. Return graph's followed/gated/dangling products with deduplication and total order. Traversed neighbours are evidence, not automatically delivered text or execution grants.
42
+
43
+ R09. select uses the same unbudgeted steps and scores over an explicit caller-supplied candidate identity set intersected with the scope. Phase and primitive are always required; caller may additionally require closed axes. A candidate whose nonempty selector groups remain partial with no fully matched group also requires its missing, uncontradicted selector axes before exclusive selection. Neutral topical eligibility cannot grant execution selection. Absence produces coordinate-incomplete; no eligible result no-candidate; equal leading step/score/band deny-wins-tie. Lower-step or lower-score ties do not block a stronger winner. Return identity/address plus revision/scope and evidence. A selected binding does not execute anything or confer permission.
44
+
45
+ R10. The door is a structured adapter over scope/context/select/get/search/traverse and privileged local report inspection. Hosts validate requests, hold the issuer Handle and root boundary, and return named errors from their owning namespace. Unknown operation/malformed request is IA-RUNTIME-REQUEST-INVALID. No source writes, model calls, sessions or capability dispatch occur. The implemented MCP/CLI hosts own transport policy; agent-runner session/model dispatch is a separate native-package consumer, not an added door operation.
46
+
47
+ R11. Runtime exports its refusal inventory, including the shared specification's IA-GRAPH-BUDGET-BLOCKING-OVERFLOW and coordinate-incomplete/deny-wins-tie/no-candidate escalation results. Every outcome gets native fixture success/refusal evidence. Full loop acceptance includes database admission/schema restoration/cache/identity, exact and primary cells, advisory law variants and conditional inverse edges, declared category, gloss independence, selection ties/incomplete coordinate, coverage/fragments and the separately owned steward hook. All package tests/typecheck/build and built consumer evidence are required before R closure.
48
+
49
+ Historical scope checkpoint, before Task1: no runtime code had been delivered. All R01–R13 clauses are now implemented; the readiness guide maps the completed loop and host evidence.
50
+
51
+ Task1 delivered: replaceable donor keyword classifier with native tie precedence; closed coordinate validation, declared/profile/derived/absent marks for every axis and separate native focus lists. Required phase/primitive never come from profile or derivation. Fourteen tests cover all shapes, precedence, custom/malformed outputs, unknown axes and immutable copied results.1534workspace tests/57files, typecheck/build/kernel/dependencies pass. Task2 scoped packet assembly and budget semantics next.
52
+
53
+ Task2 delivered: scoped phase-child packet collection, native exact/primary/governance/selector/subject/text ordering, decoded body rendering without losing clauses, source citations, condition-aware one-hop traversal and text-budget blocker reservation. Eleven native-corpus tests cover advisory severity raising, no gloss matching, partial selectors, scoped mentions, phase-before-band authority, immutable deterministic payloads and minimum-count blocker reductions.1545workspace tests/58files,typecheck/build/kernel/dependencies pass. Selection, door and complete loop fixtures remain Task3.
54
+
55
+ R12. Door(root, options) owns a database handle and an initial host-configured read boundary (default corpus root). request({operation, params}) accepts scope/context/select/get/records/resolve/search/traverse; within defaults to the initial token and supplied tokens must belong to this door. Scope issuance always descends from an existing token. Context uses params.text/coordinate/subject/follow/revision/budget, with default budget4000text tokens/50identities, and asks for each cell entry's purpose (R07), which counts against that budget; select does not ask. Select additionally requires candidates and optionally requiredAxes. Params reject unknown keys and malformed values before dispatch. Responses are {ok:true,result} or the existing named Refusal; result/refusal products are immutable. report is available only when the host explicitly enables allowReport, since it is privileged unscoped admission evidence. No remote refresh/write operation exists; close ends the handle. Unexpected errors become IA-RUNTIME-REQUEST-INVALID rather than escaping a transport. Hosts may use exported openDatabase/Handle types for trusted composition; that is not an exposed remote operation.
56
+
57
+ Task3 pre-implementation review: refuse exclusive choice on missing axes in a partial candidate selector, not just missing phase/primitive; context may still retrieve that neutral candidate topically. A door owns its issuer and an explicit token set so scope boundaries cannot be bypassed with another locally issued token. The loop fixture is a copied native input tree with documented additions/mutations, not a substitute vocabulary provider. Admission failures remain report evidence while runtime reads only admitted records.
58
+
59
+ Task3 delivered: exclusive selection refuses equal leading choices and missing host/partial-selector axes; the strict structured door owns its handle/token boundary and preserves typed failures. Native loop fixture158admitted records plus one deliberately foreign refusal covers all non-hook acceptance rows. Six actual door refusal fixtures now extend COMP-FIXTURES coverage (176language+40boundary fixtures).1555workspace tests/60files,typecheck/build/kernel/dependencies/full compliance and emitted-declaration/built-runtime consumer pass. CLI/MCP hosts are Task4; hook/projections and its remaining loop row are Task5.
60
+
61
+ R12 host metadata refinement: COORDINATE_DOMAINS exports immutable copied native axis domains for host input schemas, so transports do not maintain duplicate closed vocabulary tables.
62
+
63
+ R13. Steward-write evaluation is a bounded pure consumer over admitted compiled records. Given a canonical system name and a trusted actor (operator or agent identity), resolve the direct @system declaration's typed steward reference to one admitted @agent inside that system folder. Missing/ambiguous owners refuse; only that identity or an explicitly trusted operator passes. Return expected steward identity/name and owner source attribution. No source parsing, filesystem write or tool execution occurs. The Claude host adapter owns input trust and never treats a default/missing agent as operator. Hook refusal codes are exported for fixture coverage and preserve the IA-HOOK namespace.
64
+
65
+ 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.
66
+
67
+ The public `/editor` `EditorWorkspace.composition(stamp)` projection describes available captured adoptions by qualified source prefix, exact revision, source/record counts and systems. It reports direct adopted schema, registration and typed-reference uses for admitted local records using the shared registry/resolver; refused occurrences remain in the ordinary view. Source links and the projection use the existing owner/generation stamp. `localRevision` hashes ordered local non-floor `{path,text}` bytes using the adoption digest contract, including unsaved overlays, solely for host navigation matching. This neither merges identities nor mounts/replaces source, grants writes, performs remote discovery or describes transitive governance. Hosted publication requires the separate publication/access contract.
68
+
69
+ Entry contract (2026-09-24): `/entry` exports `isEntry(argv1, moduleUrl)`, which a package binary calls with `process.argv[1]` and `import.meta.url` to decide whether it is the process entry. The invoked path is compared first and real paths only when it misses, because npm's `.bin` entries, global installs and pnpm's store links reach an entry through a link while Node loads it from its real path. A path that names no file (missing, through a file, or with a name too long) is not the entry; any other failure to resolve one throws rather than answering "not the entry". An argument Node resolves further, such as an extensionless path or a package directory, names no file itself, so a binary started that way does not recognise itself as the entry and exits 0 having done nothing. It imports only Node built-ins, and the root index re-exports it. `@inventarch/folio`, which may import only `@inventarch/language`, repeats it.
70
+
71
+ Machine protocol description (2026-09-29, spec-0012): `MACHINE_PROTOCOL` (`src/machine-protocol.ts`, exported from the package root) describes the nine Door operations. For each it records a summary, a description, the parameter JSON Schema, the result, the refusals with their next action, an example that returns `ok: true` on `packages/compliance/fixtures/loop`, and the MCP tool that serves it. CLI help and the MCP door's `tools/list` project it, and in this source tree so does the generated `docs/reference/cli/machine-protocol.md`, which the public candidate does not carry. It is data and never validates; the Door keeps its own checks. `tests/select-door.test.ts` fails when the table's operation names or parameter keys, nested ones included, differ from the ones the Door names when it refuses an unknown key.
72
+
73
+ ## Neutral authoring execution boundary
74
+
75
+ `@inventarch/runtime/authoring-execution` owns shared authoring operation context/errors, input and artifact helpers, and guarded dispatch. A trusted host supplies its fixed catalog; no decoded request may supply handlers or widen effects. Dispatch preserves exact admitted operation/source identity, declared handler/input/output/effects, steward authorization, safe unique artifact paths, read-only output refusal and final source freshness. This factors the existing tools/systems mechanics without a private catalog, architecture packet, quality codec or queue dependency. Existing tools imports remain compatibility wrappers. This API does not authenticate arbitrary catalogs or authorize filesystem publication; each host owns its selected catalog and grants.
76
+
77
+ This boundary also owns the neutral repository inventory helpers used by existing documentation and private review consumers. `gitFiles` executes only the fixed local `git ls-files --cached --others --exclude-standard -z` query, deduplicates/sorts the result and refuses subprocess/output limits (10 seconds,16MiB). `ownerOf` preserves the existing root/package/app/tool/example/distribution/native owner path mapping exactly; it selects no catalogue, executable, quality policy or queue. Tool imports remain compatibility exports. Consumer source capture must still validate file bytes, aliases and scope; a path listing is not source admission or authority. Status (LKI-01, implemented at 22cc1d8d, not qualified): `ownerOf` names its root-owned top-level directories by stem, so no runtime source or test carries the CI-configuration directory as a path segment and the cache-safety invariant in `tools/testing/inventory.test.ts` (only tools tasks read CI configuration) holds again; the mapping and both exports are unchanged. Evidence: `tools/testing/inventory.test.ts` failed at 3f0e9853 (`runtime:test` classified as a CI-configuration reader) and passes at 22cc1d8d.
@@ -0,0 +1,159 @@
1
+ export declare const AUTHORING_PROTOCOL: 1;
2
+ export declare const AUTHORING_LIMITS: Readonly<{
3
+ contextFiles: 20;
4
+ contextBytes: number;
5
+ outputFiles: 10;
6
+ outputFileBytes: number;
7
+ outputBytes: number;
8
+ }>;
9
+ export interface ContextFile {
10
+ readonly path: string;
11
+ readonly digest: string;
12
+ readonly text: string;
13
+ readonly citations: readonly string[];
14
+ }
15
+ export interface AuthoringRequestV1 {
16
+ readonly protocol: 1;
17
+ readonly idempotencyKey: string;
18
+ readonly languageVersion: '1.0';
19
+ readonly intent: string;
20
+ readonly target: {
21
+ readonly system: string;
22
+ readonly discriminator: string;
23
+ readonly paths: readonly string[];
24
+ };
25
+ readonly expectedSteward: string;
26
+ readonly base: {
27
+ readonly viewRevision: string;
28
+ readonly manifestDigest: string;
29
+ };
30
+ readonly context: readonly ContextFile[];
31
+ }
32
+ export interface AuthoringProposalV1 {
33
+ readonly protocol: 1;
34
+ readonly runId: string;
35
+ readonly requestDigest: string;
36
+ readonly agent: {
37
+ readonly id: string;
38
+ readonly version: string;
39
+ readonly steward: string;
40
+ };
41
+ readonly files: readonly {
42
+ readonly path: string;
43
+ readonly operation: 'create';
44
+ readonly content: string;
45
+ readonly digest: string;
46
+ }[];
47
+ readonly summary: string;
48
+ readonly citations: readonly {
49
+ readonly path: string;
50
+ readonly digest: string;
51
+ readonly line: number;
52
+ readonly endLine: number;
53
+ }[];
54
+ }
55
+ export type RunState = 'queued' | 'running' | 'cancel-requested' | 'completed' | 'cancelled' | 'failed';
56
+ export interface RunReceipt {
57
+ readonly runId: string;
58
+ readonly requestDigest: string;
59
+ readonly state: RunState;
60
+ readonly cursor: number;
61
+ readonly createdAt: string;
62
+ readonly expiresAt: string;
63
+ readonly usage: {
64
+ readonly inputTokens: number | null;
65
+ readonly outputTokens: number | null;
66
+ readonly state: 'reported' | 'unknown';
67
+ };
68
+ readonly error?: string;
69
+ }
70
+ export interface AuthoringEvent {
71
+ readonly runId: string;
72
+ readonly sequence: number;
73
+ readonly type: 'status' | 'usage' | 'completed' | 'cancelled' | 'failed';
74
+ readonly state: RunState;
75
+ readonly message: string;
76
+ readonly at: string;
77
+ }
78
+ export interface Capabilities {
79
+ readonly protocol: 1;
80
+ readonly languageVersions: readonly string[];
81
+ readonly account: {
82
+ readonly id: string;
83
+ readonly label: string;
84
+ };
85
+ readonly entitlement: 'enabled' | 'disabled';
86
+ readonly authoringAvailable: boolean;
87
+ readonly agent: {
88
+ readonly id: string;
89
+ readonly version: string;
90
+ };
91
+ readonly limits: typeof AUTHORING_LIMITS;
92
+ readonly retentionDays: number;
93
+ readonly chatAvailable?: boolean;
94
+ }
95
+ export declare const CHAT_LIMITS: Readonly<{
96
+ turns: 20;
97
+ messageBytes: 8192;
98
+ replyBytes: 16384;
99
+ historyBytes: number;
100
+ }>;
101
+ export interface ChatTurnRequest {
102
+ readonly protocol: 1;
103
+ readonly kind: 'chat';
104
+ readonly languageVersion: '1.0';
105
+ readonly idempotencyKey: string;
106
+ readonly conversationId: string;
107
+ readonly parentRunId: string | null;
108
+ readonly message: string;
109
+ readonly base: AuthoringRequestV1['base'];
110
+ readonly context: readonly ContextFile[];
111
+ }
112
+ export interface ChatReply {
113
+ readonly protocol: 1;
114
+ readonly conversationId: string;
115
+ readonly runId: string;
116
+ readonly requestDigest: string;
117
+ readonly agent: Capabilities['agent'];
118
+ readonly message: string;
119
+ readonly proposal: {
120
+ readonly request: AuthoringRequestV1;
121
+ readonly proposal: AuthoringProposalV1;
122
+ } | null;
123
+ }
124
+ export interface ChatConversation {
125
+ readonly protocol: 1;
126
+ readonly id: string;
127
+ readonly expiresAt: string;
128
+ readonly turns: readonly {
129
+ readonly receipt: RunReceipt;
130
+ readonly parentRunId: string | null;
131
+ readonly userMessage: string;
132
+ readonly assistantMessage: string | null;
133
+ readonly hasProposal: boolean;
134
+ }[];
135
+ }
136
+ export declare class AuthoringError extends Error {
137
+ readonly code: string;
138
+ readonly status: number;
139
+ constructor(code: string, message: string, status?: number);
140
+ }
141
+ export declare const digestText: (text: string) => string;
142
+ export declare const digestValue: (value: unknown) => string;
143
+ export declare const manifestDigest: (context: readonly ContextFile[]) => string;
144
+ export declare function sourcePath(path: string): boolean;
145
+ export declare function parseAuthoringRequest(value: unknown): AuthoringRequestV1;
146
+ export declare function parseChatTurn(value: unknown): ChatTurnRequest;
147
+ export declare function parseChatReply(value: unknown, request: ChatTurnRequest, runId: string, expectedAgent: Capabilities['agent']): ChatReply;
148
+ export declare function parseConversation(value: unknown, id: string): ChatConversation;
149
+ export declare function parseAuthoringProposal(value: unknown, request: AuthoringRequestV1, runId: string, agent: Capabilities['agent']): AuthoringProposalV1;
150
+ export declare function parseCapabilities(value: unknown): Capabilities;
151
+ export declare function parseReceipt(value: unknown, expectedDigest?: string): RunReceipt;
152
+ export declare function parseEvents(value: unknown, runId: string, digest: string, after: number): {
153
+ receipt: RunReceipt;
154
+ events: readonly AuthoringEvent[];
155
+ };
156
+ export declare function serviceOrigin(value: string): URL;
157
+ /** Bounded, non-redirecting transport. Access tokens remain in the host supplying this client. */
158
+ export declare function serviceJson(base: string, route: string, init?: RequestInit): Promise<unknown>;
159
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/authoring/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,EAAG,CAAU,CAAC;AAC7C,eAAO,MAAM,gBAAg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