percolation-inversion-compiler-ts 0.4.5 → 0.5.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 (197) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +77 -22
  3. package/agent-manifest.json +50 -0
  4. package/dist/alt_lift/index.d.ts +7 -0
  5. package/dist/alt_lift/index.js +101 -0
  6. package/dist/bit_engine/index.d.ts +8 -0
  7. package/dist/bit_engine/index.js +213 -0
  8. package/dist/cli/main.js +2106 -162
  9. package/dist/index.d.ts +5 -0
  10. package/dist/index.js +1611 -16
  11. package/dist/phase_lab/index.d.ts +26 -0
  12. package/dist/phase_lab/index.js +1124 -0
  13. package/dist/sqot_controller/index.d.ts +8 -0
  14. package/dist/sqot_controller/index.js +141 -0
  15. package/dist/trc_adapter/index.d.ts +6 -0
  16. package/dist/trc_adapter/index.js +86 -0
  17. package/docs/alt-ecpt-lift.md +32 -0
  18. package/docs/bit-inversion-engine.md +32 -0
  19. package/docs/cli-reference.md +68 -0
  20. package/docs/effective-packet-graph.md +35 -0
  21. package/docs/for-agents.md +44 -0
  22. package/docs/phase-ecology-lab.md +46 -0
  23. package/docs/sqot-queue-sovereignty.md +31 -0
  24. package/docs/threshold-certificates.md +30 -0
  25. package/docs/trc-trace-adapter.md +30 -0
  26. package/docs/v050-audit.md +126 -0
  27. package/examples/alt_lift/alt_ecpt_lift.example.json +27 -0
  28. package/examples/bit_engine/bottlenecks.example.json +38 -0
  29. package/examples/bit_engine/inversion_candidates.example.json +55 -0
  30. package/examples/packet_exchange/packet_envelope.example.json +51 -0
  31. package/examples/packet_exchange/packet_merge_report.example.json +60 -0
  32. package/examples/phase_lab/certificate_abstain.example.json +39 -0
  33. package/examples/phase_lab/closure_report.example.json +41 -0
  34. package/examples/phase_lab/effective_graph.example.json +112 -0
  35. package/examples/phase_lab/executable_paths.example.json +20 -0
  36. package/examples/phase_lab/phase_window_observation.example.json +61 -0
  37. package/examples/phase_lab/runtime_report_1.json +19 -0
  38. package/examples/phase_lab/runtime_report_2.json +16 -0
  39. package/examples/phase_lab/threshold_status.example.json +31 -0
  40. package/examples/sqot_controller/queue_report.example.json +30 -0
  41. package/examples/sqot_controller/rebalance_plan.example.json +14 -0
  42. package/examples/thresholds/asi_proxy_development.json +15 -0
  43. package/examples/trc_adapter/tool_trace_input.example.json +17 -0
  44. package/examples/trc_adapter/typed_trace.example.json +64 -0
  45. package/fixtures/portability_conformance_v050/certificate_abstain.example.json +39 -0
  46. package/fixtures/portability_conformance_v050/closure_report.example.json +39 -0
  47. package/fixtures/portability_conformance_v050/effective_graph.example.json +112 -0
  48. package/fixtures/portability_conformance_v050/executable_paths.example.json +20 -0
  49. package/fixtures/portability_conformance_v050/manifest.json +55 -0
  50. package/fixtures/portability_conformance_v050/phase_lab_event_1.json +51 -0
  51. package/fixtures/portability_conformance_v050/phase_lab_event_2.json +55 -0
  52. package/fixtures/portability_conformance_v050/phase_window_observation.example.json +61 -0
  53. package/fixtures/portability_conformance_v050/runtime_report_1.json +19 -0
  54. package/fixtures/portability_conformance_v050/runtime_report_2.json +14 -0
  55. package/fixtures/portability_conformance_v050/threshold_status.example.json +29 -0
  56. package/fixtures/python_v044_cli/agent_autonomy_audit.json +4 -3
  57. package/fixtures/python_v044_cli/agent_manifest.json +2 -1
  58. package/fixtures/python_v044_cli/agent_runbook.json +2 -1
  59. package/fixtures/python_v044_cli/demo_installed_smoke.json +86 -86
  60. package/fixtures/python_v044_demo/manifest.json +2 -1
  61. package/fixtures/python_v050_cli/alt_capital_impact.json +30 -0
  62. package/fixtures/python_v050_cli/alt_ecpt_lift.json +85 -0
  63. package/fixtures/python_v050_cli/alt_liquidity_to_paths.json +85 -0
  64. package/fixtures/python_v050_cli/alt_receiver_lift.json +15 -0
  65. package/fixtures/python_v050_cli/bit_certificate.json +15 -0
  66. package/fixtures/python_v050_cli/bit_compare_baseline.json +24 -0
  67. package/fixtures/python_v050_cli/bit_diagnose.json +95 -0
  68. package/fixtures/python_v050_cli/bit_invert.json +235 -0
  69. package/fixtures/python_v050_cli/bit_mec.json +18 -0
  70. package/fixtures/python_v050_cli/ecology_effective_graph.json +178 -0
  71. package/fixtures/python_v050_cli/ecology_execution_available_paths.json +88 -0
  72. package/fixtures/python_v050_cli/manifest.json +48 -0
  73. package/fixtures/python_v050_cli/phase_lab_certify.json +443 -0
  74. package/fixtures/python_v050_cli/phase_lab_closure.json +85 -0
  75. package/fixtures/python_v050_cli/phase_lab_compare_window.json +24 -0
  76. package/fixtures/python_v050_cli/phase_lab_executable_paths.json +88 -0
  77. package/fixtures/python_v050_cli/phase_lab_graph.json +178 -0
  78. package/fixtures/python_v050_cli/phase_lab_ingest_1.json +105 -0
  79. package/fixtures/python_v050_cli/phase_lab_ingest_2.json +109 -0
  80. package/fixtures/python_v050_cli/phase_lab_init.json +20 -0
  81. package/fixtures/python_v050_cli/phase_lab_list_windows.json +63 -0
  82. package/fixtures/python_v050_cli/phase_lab_observe.json +108 -0
  83. package/fixtures/python_v050_cli/phase_lab_threshold_status.json +164 -0
  84. package/fixtures/python_v050_cli/sqot_diagnose_queue.json +38 -0
  85. package/fixtures/python_v050_cli/sqot_quarantine.json +7 -0
  86. package/fixtures/python_v050_cli/sqot_rebalance.json +19 -0
  87. package/fixtures/python_v050_cli/sqot_reserve_check.json +20 -0
  88. package/fixtures/python_v050_cli/sqot_salience_obstruction.json +19 -0
  89. package/fixtures/python_v050_cli/trc_action_boundary.json +451 -0
  90. package/fixtures/python_v050_cli/trc_tool_trace.json +221 -0
  91. package/fixtures/python_v050_cli/trc_trace_adapter.json +221 -0
  92. package/fixtures/python_v050_demo/asi_proxy_development.json +15 -0
  93. package/fixtures/python_v050_demo/certificate_abstain.example.json +39 -0
  94. package/fixtures/python_v050_demo/closure_report.example.json +39 -0
  95. package/fixtures/python_v050_demo/effective_graph.example.json +112 -0
  96. package/fixtures/python_v050_demo/executable_paths.example.json +20 -0
  97. package/fixtures/python_v050_demo/phase_window_observation.example.json +61 -0
  98. package/fixtures/python_v050_demo/runtime_report_1.json +19 -0
  99. package/fixtures/python_v050_demo/runtime_report_2.json +14 -0
  100. package/fixtures/python_v050_demo/threshold_status.example.json +29 -0
  101. package/fixtures/python_v050_snapshots/manifest.json +39 -0
  102. package/fixtures/python_v050_snapshots/snapshot_list.json +112 -0
  103. package/fixtures/python_v050_snapshots/snapshot_routes.json +926 -0
  104. package/fixtures/python_v050_snapshots/snapshot_show_alt.json +6830 -0
  105. package/fixtures/python_v050_snapshots/snapshot_show_bit.json +594 -0
  106. package/fixtures/python_v050_snapshots/snapshot_show_ecpt.json +2894 -0
  107. package/fixtures/python_v050_snapshots/snapshot_show_sqot.json +2392 -0
  108. package/fixtures/python_v050_snapshots/snapshot_show_trc.json +3037 -0
  109. package/fixtures/python_v050_snapshots/snapshot_verify_alt.json +10 -0
  110. package/fixtures/python_v050_snapshots/snapshot_verify_bit.json +10 -0
  111. package/fixtures/python_v050_snapshots/snapshot_verify_ecpt.json +10 -0
  112. package/fixtures/python_v050_snapshots/snapshot_verify_sqot.json +10 -0
  113. package/fixtures/python_v050_snapshots/snapshot_verify_trc.json +10 -0
  114. package/package.json +45 -3
  115. package/schemas/ASIProxyThresholdSpec.schema.json +72 -0
  116. package/schemas/ASIProxyThresholdStatus.schema.json +512 -0
  117. package/schemas/ActionBoundaryRequirement.schema.json +28 -0
  118. package/schemas/ActivationGainEstimate.schema.json +41 -0
  119. package/schemas/AltEcptLiftReport.schema.json +400 -0
  120. package/schemas/AltLiftBlocker.schema.json +34 -0
  121. package/schemas/AttentionBudgetLedger.schema.json +41 -0
  122. package/schemas/AutocatalyticClosureReport.schema.json +408 -0
  123. package/schemas/AutocatalyticClosureWitness.schema.json +22 -139
  124. package/schemas/BasinReachabilityProxy.schema.json +21 -0
  125. package/schemas/BottleneckClassDiagnosis.schema.json +115 -0
  126. package/schemas/BottleneckInversionCandidate.schema.json +249 -0
  127. package/schemas/BottleneckInversionReport.schema.json +499 -0
  128. package/schemas/CapabilityExpressionPath.schema.json +45 -0
  129. package/schemas/CapitalToPathContribution.schema.json +53 -0
  130. package/schemas/ClosureAbstentionReason.schema.json +25 -0
  131. package/schemas/ClosureCertificateCandidate.schema.json +109 -0
  132. package/schemas/ClosureDefect.schema.json +28 -0
  133. package/schemas/ClosureSupportHyperpath.schema.json +44 -0
  134. package/schemas/CollectivePhaseAbstentionReport.schema.json +591 -0
  135. package/schemas/CollectivePhaseCertificateCandidate.schema.json +688 -0
  136. package/schemas/CrossContextTransferWitness.schema.json +46 -0
  137. package/schemas/DiagnosticReserveReport.schema.json +87 -0
  138. package/schemas/DownstreamSearchCostDelta.schema.json +46 -0
  139. package/schemas/EcologyAutocatalyticClosureWitness.schema.json +187 -0
  140. package/schemas/EffectiveGraphResidualSummary.schema.json +38 -0
  141. package/schemas/EffectivePacketEdge.schema.json +135 -0
  142. package/schemas/EffectivePacketEligibility.schema.json +84 -0
  143. package/schemas/EffectivePacketGraph.schema.json +461 -0
  144. package/schemas/EffectivePacketGraphBuildReport.schema.json +521 -0
  145. package/schemas/EffectivePacketNode.schema.json +199 -0
  146. package/schemas/ExecutableClosureWitness.schema.json +47 -0
  147. package/schemas/ExecutablePathDensityReport.schema.json +314 -0
  148. package/schemas/ExecutionAuthorityStatus.schema.json +28 -0
  149. package/schemas/ExecutionAvailableHyperpath.schema.json +201 -0
  150. package/schemas/ExecutionPathDefect.schema.json +28 -0
  151. package/schemas/ExecutionPathWitness.schema.json +44 -0
  152. package/schemas/FalseLiquidityLoad.schema.json +21 -0
  153. package/schemas/GeneralIntakePolicy.schema.json +1 -1
  154. package/schemas/InversionCertificate.schema.json +56 -0
  155. package/schemas/LiquidityToClosureContribution.schema.json +53 -0
  156. package/schemas/MinimalEnablingCondition.schema.json +48 -0
  157. package/schemas/PacketContributionStatus.schema.json +32 -0
  158. package/schemas/PacketQuarantineDecision.schema.json +50 -0
  159. package/schemas/PhaseCertificateDefect.schema.json +33 -0
  160. package/schemas/PhaseComponentObservation.schema.json +39 -0
  161. package/schemas/PhaseLabEvent.schema.json +123 -0
  162. package/schemas/PhaseLabExportManifest.schema.json +127 -0
  163. package/schemas/PhaseLabIngestReport.schema.json +344 -0
  164. package/schemas/PhaseLabStoreManifest.schema.json +73 -0
  165. package/schemas/PhaseLabWindowIndex.schema.json +78 -0
  166. package/schemas/PhaseThresholdStatus.schema.json +51 -0
  167. package/schemas/PhaseWindow.schema.json +31 -0
  168. package/schemas/PhaseWindowComparison.schema.json +67 -0
  169. package/schemas/PhaseWindowObservation.schema.json +353 -0
  170. package/schemas/PostInversionAuditPlan.schema.json +38 -0
  171. package/schemas/ProductiveClosureWitness.schema.json +49 -0
  172. package/schemas/ProvenanceManifest.schema.json +1 -1
  173. package/schemas/QueueOccupationReport.schema.json +156 -0
  174. package/schemas/QueueRebalancePlan.schema.json +114 -0
  175. package/schemas/ReceiverContextSupport.schema.json +23 -0
  176. package/schemas/ReceiverLiquidityLift.schema.json +58 -0
  177. package/schemas/ReleaseArtifactManifest.schema.json +1 -1
  178. package/schemas/ReversibleSalienceSovereigntyCertificate.schema.json +53 -0
  179. package/schemas/RollbackOrDeactivationPlan.schema.json +38 -0
  180. package/schemas/SBOMManifest.schema.json +1 -1
  181. package/schemas/SalienceObstructionDiagnosis.schema.json +55 -0
  182. package/schemas/SalienceObstructionLoad.schema.json +21 -0
  183. package/schemas/SemanticEdgeEvidence.schema.json +40 -0
  184. package/schemas/TraceAdapterReport.schema.json +405 -0
  185. package/schemas/TraceFrontierDebt.schema.json +43 -0
  186. package/schemas/TraceNormalForm.schema.json +181 -0
  187. package/schemas/TraceToleranceLedger.schema.json +29 -0
  188. package/schemas/TypedActionBoundary.schema.json +58 -0
  189. package/schemas/TypedAgentTrace.schema.json +328 -0
  190. package/schemas/TypedToolCallTrace.schema.json +76 -0
  191. package/schemas/VerificationQueuePressure.schema.json +41 -0
  192. package/schemas/VerificationThroughputWindow.schema.json +21 -0
  193. package/schemas/WasteLoad.schema.json +21 -0
  194. package/schemas/WebFetchPolicy.schema.json +1 -1
  195. package/schemas/bundle.schema.json +11854 -2075
  196. package/schemas/index.json +445 -0
  197. package/schemas/schema-digest.json +733 -289
@@ -0,0 +1,405 @@
1
+ {
2
+ "$defs": {
3
+ "TraceFrontierDebt": {
4
+ "description": "Unresolved physical/oracle/domain trace obligations.",
5
+ "properties": {
6
+ "debt_id": {
7
+ "default": "trace-frontier-debt",
8
+ "title": "Debt Id",
9
+ "type": "string"
10
+ },
11
+ "missing_domain_obligations": {
12
+ "items": {
13
+ "type": "string"
14
+ },
15
+ "title": "Missing Domain Obligations",
16
+ "type": "array"
17
+ },
18
+ "missing_oracle_obligations": {
19
+ "items": {
20
+ "type": "string"
21
+ },
22
+ "title": "Missing Oracle Obligations",
23
+ "type": "array"
24
+ },
25
+ "missing_physical_obligations": {
26
+ "items": {
27
+ "type": "string"
28
+ },
29
+ "title": "Missing Physical Obligations",
30
+ "type": "array"
31
+ },
32
+ "residual_preserved": {
33
+ "default": true,
34
+ "title": "Residual Preserved",
35
+ "type": "boolean"
36
+ },
37
+ "settled": {
38
+ "default": false,
39
+ "title": "Settled",
40
+ "type": "boolean"
41
+ }
42
+ },
43
+ "title": "TraceFrontierDebt",
44
+ "type": "object"
45
+ },
46
+ "TraceNormalForm": {
47
+ "description": "Normalized word and typed records for an adapted trace.",
48
+ "properties": {
49
+ "action_boundaries": {
50
+ "items": {
51
+ "$ref": "#/$defs/TypedActionBoundary"
52
+ },
53
+ "title": "Action Boundaries",
54
+ "type": "array"
55
+ },
56
+ "content_treated_as_data": {
57
+ "default": true,
58
+ "title": "Content Treated As Data",
59
+ "type": "boolean"
60
+ },
61
+ "normal_form_id": {
62
+ "title": "Normal Form Id",
63
+ "type": "string"
64
+ },
65
+ "normalized_word": {
66
+ "items": {
67
+ "type": "string"
68
+ },
69
+ "title": "Normalized Word",
70
+ "type": "array"
71
+ },
72
+ "settled": {
73
+ "default": false,
74
+ "title": "Settled",
75
+ "type": "boolean"
76
+ },
77
+ "tool_calls": {
78
+ "items": {
79
+ "$ref": "#/$defs/TypedToolCallTrace"
80
+ },
81
+ "title": "Tool Calls",
82
+ "type": "array"
83
+ }
84
+ },
85
+ "required": [
86
+ "normal_form_id"
87
+ ],
88
+ "title": "TraceNormalForm",
89
+ "type": "object"
90
+ },
91
+ "TraceToleranceLedger": {
92
+ "description": "TRC tolerance ledger for adapted agent traces.",
93
+ "properties": {
94
+ "ledger_id": {
95
+ "default": "trace-tolerance-ledger",
96
+ "title": "Ledger Id",
97
+ "type": "string"
98
+ },
99
+ "residual_charge": {
100
+ "default": 0.0,
101
+ "title": "Residual Charge",
102
+ "type": "number"
103
+ },
104
+ "settled": {
105
+ "default": false,
106
+ "title": "Settled",
107
+ "type": "boolean"
108
+ },
109
+ "tolerance_coordinates": {
110
+ "additionalProperties": {
111
+ "type": "number"
112
+ },
113
+ "title": "Tolerance Coordinates",
114
+ "type": "object"
115
+ }
116
+ },
117
+ "title": "TraceToleranceLedger",
118
+ "type": "object"
119
+ },
120
+ "TypedActionBoundary": {
121
+ "description": "Boundary conditions around an agent/tool action trace.",
122
+ "properties": {
123
+ "action_kind": {
124
+ "default": "tool-call",
125
+ "title": "Action Kind",
126
+ "type": "string"
127
+ },
128
+ "authority_explicit": {
129
+ "default": false,
130
+ "title": "Authority Explicit",
131
+ "type": "boolean"
132
+ },
133
+ "boundary_id": {
134
+ "title": "Boundary Id",
135
+ "type": "string"
136
+ },
137
+ "external_result_verified": {
138
+ "default": false,
139
+ "title": "External Result Verified",
140
+ "type": "boolean"
141
+ },
142
+ "missing_obligations": {
143
+ "items": {
144
+ "type": "string"
145
+ },
146
+ "title": "Missing Obligations",
147
+ "type": "array"
148
+ },
149
+ "rollback_available": {
150
+ "default": false,
151
+ "title": "Rollback Available",
152
+ "type": "boolean"
153
+ },
154
+ "scope_bounded": {
155
+ "default": false,
156
+ "title": "Scope Bounded",
157
+ "type": "boolean"
158
+ },
159
+ "settled": {
160
+ "default": false,
161
+ "title": "Settled",
162
+ "type": "boolean"
163
+ },
164
+ "trace_ids": {
165
+ "items": {
166
+ "type": "string"
167
+ },
168
+ "title": "Trace Ids",
169
+ "type": "array"
170
+ }
171
+ },
172
+ "required": [
173
+ "boundary_id"
174
+ ],
175
+ "title": "TypedActionBoundary",
176
+ "type": "object"
177
+ },
178
+ "TypedAgentTrace": {
179
+ "description": "Normalized typed agent trace.",
180
+ "properties": {
181
+ "accepted": {
182
+ "default": false,
183
+ "title": "Accepted",
184
+ "type": "boolean"
185
+ },
186
+ "action_boundaries": {
187
+ "items": {
188
+ "$ref": "#/$defs/TypedActionBoundary"
189
+ },
190
+ "title": "Action Boundaries",
191
+ "type": "array"
192
+ },
193
+ "content_treated_as_data": {
194
+ "default": true,
195
+ "title": "Content Treated As Data",
196
+ "type": "boolean"
197
+ },
198
+ "frontier_debt": {
199
+ "$ref": "#/$defs/TraceFrontierDebt"
200
+ },
201
+ "normal_form": {
202
+ "$ref": "#/$defs/TraceNormalForm"
203
+ },
204
+ "protocol_relative_only": {
205
+ "default": true,
206
+ "title": "Protocol Relative Only",
207
+ "type": "boolean"
208
+ },
209
+ "proves_physical_truth": {
210
+ "default": false,
211
+ "title": "Proves Physical Truth",
212
+ "type": "boolean"
213
+ },
214
+ "reasons": {
215
+ "items": {
216
+ "type": "string"
217
+ },
218
+ "title": "Reasons",
219
+ "type": "array"
220
+ },
221
+ "settled": {
222
+ "default": false,
223
+ "title": "Settled",
224
+ "type": "boolean"
225
+ },
226
+ "tolerance_ledger": {
227
+ "$ref": "#/$defs/TraceToleranceLedger"
228
+ },
229
+ "tool_calls": {
230
+ "items": {
231
+ "$ref": "#/$defs/TypedToolCallTrace"
232
+ },
233
+ "title": "Tool Calls",
234
+ "type": "array"
235
+ },
236
+ "trace_id": {
237
+ "default": "typed-agent-trace",
238
+ "title": "Trace Id",
239
+ "type": "string"
240
+ },
241
+ "workflow_usable": {
242
+ "default": true,
243
+ "title": "Workflow Usable",
244
+ "type": "boolean"
245
+ }
246
+ },
247
+ "required": [
248
+ "normal_form"
249
+ ],
250
+ "title": "TypedAgentTrace",
251
+ "type": "object"
252
+ },
253
+ "TypedToolCallTrace": {
254
+ "description": "Typed data record for one observed agent tool call.",
255
+ "properties": {
256
+ "action_kind": {
257
+ "default": "tool-call",
258
+ "title": "Action Kind",
259
+ "type": "string"
260
+ },
261
+ "authority_status": {
262
+ "default": "not-granted",
263
+ "title": "Authority Status",
264
+ "type": "string"
265
+ },
266
+ "content_treated_as_data": {
267
+ "default": true,
268
+ "title": "Content Treated As Data",
269
+ "type": "boolean"
270
+ },
271
+ "evidence_refs": {
272
+ "items": {
273
+ "type": "string"
274
+ },
275
+ "title": "Evidence Refs",
276
+ "type": "array"
277
+ },
278
+ "execution_success_claim_verified": {
279
+ "default": false,
280
+ "title": "Execution Success Claim Verified",
281
+ "type": "boolean"
282
+ },
283
+ "input_digest": {
284
+ "default": "",
285
+ "title": "Input Digest",
286
+ "type": "string"
287
+ },
288
+ "output_digest": {
289
+ "default": "",
290
+ "title": "Output Digest",
291
+ "type": "string"
292
+ },
293
+ "receiver": {
294
+ "default": "tool",
295
+ "title": "Receiver",
296
+ "type": "string"
297
+ },
298
+ "rollback_status": {
299
+ "default": "unknown",
300
+ "title": "Rollback Status",
301
+ "type": "string"
302
+ },
303
+ "settled": {
304
+ "default": false,
305
+ "title": "Settled",
306
+ "type": "boolean"
307
+ },
308
+ "source": {
309
+ "default": "agent",
310
+ "title": "Source",
311
+ "type": "string"
312
+ },
313
+ "tool_name": {
314
+ "default": "unknown",
315
+ "title": "Tool Name",
316
+ "type": "string"
317
+ },
318
+ "trace_id": {
319
+ "title": "Trace Id",
320
+ "type": "string"
321
+ }
322
+ },
323
+ "required": [
324
+ "trace_id"
325
+ ],
326
+ "title": "TypedToolCallTrace",
327
+ "type": "object"
328
+ }
329
+ },
330
+ "description": "Report emitted by the practical TRC trace adapter.",
331
+ "properties": {
332
+ "accepted": {
333
+ "default": false,
334
+ "title": "Accepted",
335
+ "type": "boolean"
336
+ },
337
+ "action_boundaries": {
338
+ "items": {
339
+ "$ref": "#/$defs/TypedActionBoundary"
340
+ },
341
+ "title": "Action Boundaries",
342
+ "type": "array"
343
+ },
344
+ "content_treated_as_data": {
345
+ "default": true,
346
+ "title": "Content Treated As Data",
347
+ "type": "boolean"
348
+ },
349
+ "executed_action_count": {
350
+ "default": 0,
351
+ "title": "Executed Action Count",
352
+ "type": "integer"
353
+ },
354
+ "frontier_debt": {
355
+ "$ref": "#/$defs/TraceFrontierDebt"
356
+ },
357
+ "protocol_relative_only": {
358
+ "default": true,
359
+ "title": "Protocol Relative Only",
360
+ "type": "boolean"
361
+ },
362
+ "proves_physical_truth": {
363
+ "default": false,
364
+ "title": "Proves Physical Truth",
365
+ "type": "boolean"
366
+ },
367
+ "reasons": {
368
+ "items": {
369
+ "type": "string"
370
+ },
371
+ "title": "Reasons",
372
+ "type": "array"
373
+ },
374
+ "report_id": {
375
+ "default": "trc-trace-adapter",
376
+ "title": "Report Id",
377
+ "type": "string"
378
+ },
379
+ "settled": {
380
+ "default": false,
381
+ "title": "Settled",
382
+ "type": "boolean"
383
+ },
384
+ "tolerance_ledger": {
385
+ "$ref": "#/$defs/TraceToleranceLedger"
386
+ },
387
+ "trace_normal_form": {
388
+ "$ref": "#/$defs/TraceNormalForm"
389
+ },
390
+ "typed_trace": {
391
+ "$ref": "#/$defs/TypedAgentTrace"
392
+ },
393
+ "workflow_usable": {
394
+ "default": true,
395
+ "title": "Workflow Usable",
396
+ "type": "boolean"
397
+ }
398
+ },
399
+ "required": [
400
+ "typed_trace",
401
+ "trace_normal_form"
402
+ ],
403
+ "title": "TraceAdapterReport",
404
+ "type": "object"
405
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "description": "Unresolved physical/oracle/domain trace obligations.",
3
+ "properties": {
4
+ "debt_id": {
5
+ "default": "trace-frontier-debt",
6
+ "title": "Debt Id",
7
+ "type": "string"
8
+ },
9
+ "missing_domain_obligations": {
10
+ "items": {
11
+ "type": "string"
12
+ },
13
+ "title": "Missing Domain Obligations",
14
+ "type": "array"
15
+ },
16
+ "missing_oracle_obligations": {
17
+ "items": {
18
+ "type": "string"
19
+ },
20
+ "title": "Missing Oracle Obligations",
21
+ "type": "array"
22
+ },
23
+ "missing_physical_obligations": {
24
+ "items": {
25
+ "type": "string"
26
+ },
27
+ "title": "Missing Physical Obligations",
28
+ "type": "array"
29
+ },
30
+ "residual_preserved": {
31
+ "default": true,
32
+ "title": "Residual Preserved",
33
+ "type": "boolean"
34
+ },
35
+ "settled": {
36
+ "default": false,
37
+ "title": "Settled",
38
+ "type": "boolean"
39
+ }
40
+ },
41
+ "title": "TraceFrontierDebt",
42
+ "type": "object"
43
+ }
@@ -0,0 +1,181 @@
1
+ {
2
+ "$defs": {
3
+ "TypedActionBoundary": {
4
+ "description": "Boundary conditions around an agent/tool action trace.",
5
+ "properties": {
6
+ "action_kind": {
7
+ "default": "tool-call",
8
+ "title": "Action Kind",
9
+ "type": "string"
10
+ },
11
+ "authority_explicit": {
12
+ "default": false,
13
+ "title": "Authority Explicit",
14
+ "type": "boolean"
15
+ },
16
+ "boundary_id": {
17
+ "title": "Boundary Id",
18
+ "type": "string"
19
+ },
20
+ "external_result_verified": {
21
+ "default": false,
22
+ "title": "External Result Verified",
23
+ "type": "boolean"
24
+ },
25
+ "missing_obligations": {
26
+ "items": {
27
+ "type": "string"
28
+ },
29
+ "title": "Missing Obligations",
30
+ "type": "array"
31
+ },
32
+ "rollback_available": {
33
+ "default": false,
34
+ "title": "Rollback Available",
35
+ "type": "boolean"
36
+ },
37
+ "scope_bounded": {
38
+ "default": false,
39
+ "title": "Scope Bounded",
40
+ "type": "boolean"
41
+ },
42
+ "settled": {
43
+ "default": false,
44
+ "title": "Settled",
45
+ "type": "boolean"
46
+ },
47
+ "trace_ids": {
48
+ "items": {
49
+ "type": "string"
50
+ },
51
+ "title": "Trace Ids",
52
+ "type": "array"
53
+ }
54
+ },
55
+ "required": [
56
+ "boundary_id"
57
+ ],
58
+ "title": "TypedActionBoundary",
59
+ "type": "object"
60
+ },
61
+ "TypedToolCallTrace": {
62
+ "description": "Typed data record for one observed agent tool call.",
63
+ "properties": {
64
+ "action_kind": {
65
+ "default": "tool-call",
66
+ "title": "Action Kind",
67
+ "type": "string"
68
+ },
69
+ "authority_status": {
70
+ "default": "not-granted",
71
+ "title": "Authority Status",
72
+ "type": "string"
73
+ },
74
+ "content_treated_as_data": {
75
+ "default": true,
76
+ "title": "Content Treated As Data",
77
+ "type": "boolean"
78
+ },
79
+ "evidence_refs": {
80
+ "items": {
81
+ "type": "string"
82
+ },
83
+ "title": "Evidence Refs",
84
+ "type": "array"
85
+ },
86
+ "execution_success_claim_verified": {
87
+ "default": false,
88
+ "title": "Execution Success Claim Verified",
89
+ "type": "boolean"
90
+ },
91
+ "input_digest": {
92
+ "default": "",
93
+ "title": "Input Digest",
94
+ "type": "string"
95
+ },
96
+ "output_digest": {
97
+ "default": "",
98
+ "title": "Output Digest",
99
+ "type": "string"
100
+ },
101
+ "receiver": {
102
+ "default": "tool",
103
+ "title": "Receiver",
104
+ "type": "string"
105
+ },
106
+ "rollback_status": {
107
+ "default": "unknown",
108
+ "title": "Rollback Status",
109
+ "type": "string"
110
+ },
111
+ "settled": {
112
+ "default": false,
113
+ "title": "Settled",
114
+ "type": "boolean"
115
+ },
116
+ "source": {
117
+ "default": "agent",
118
+ "title": "Source",
119
+ "type": "string"
120
+ },
121
+ "tool_name": {
122
+ "default": "unknown",
123
+ "title": "Tool Name",
124
+ "type": "string"
125
+ },
126
+ "trace_id": {
127
+ "title": "Trace Id",
128
+ "type": "string"
129
+ }
130
+ },
131
+ "required": [
132
+ "trace_id"
133
+ ],
134
+ "title": "TypedToolCallTrace",
135
+ "type": "object"
136
+ }
137
+ },
138
+ "description": "Normalized word and typed records for an adapted trace.",
139
+ "properties": {
140
+ "action_boundaries": {
141
+ "items": {
142
+ "$ref": "#/$defs/TypedActionBoundary"
143
+ },
144
+ "title": "Action Boundaries",
145
+ "type": "array"
146
+ },
147
+ "content_treated_as_data": {
148
+ "default": true,
149
+ "title": "Content Treated As Data",
150
+ "type": "boolean"
151
+ },
152
+ "normal_form_id": {
153
+ "title": "Normal Form Id",
154
+ "type": "string"
155
+ },
156
+ "normalized_word": {
157
+ "items": {
158
+ "type": "string"
159
+ },
160
+ "title": "Normalized Word",
161
+ "type": "array"
162
+ },
163
+ "settled": {
164
+ "default": false,
165
+ "title": "Settled",
166
+ "type": "boolean"
167
+ },
168
+ "tool_calls": {
169
+ "items": {
170
+ "$ref": "#/$defs/TypedToolCallTrace"
171
+ },
172
+ "title": "Tool Calls",
173
+ "type": "array"
174
+ }
175
+ },
176
+ "required": [
177
+ "normal_form_id"
178
+ ],
179
+ "title": "TraceNormalForm",
180
+ "type": "object"
181
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "description": "TRC tolerance ledger for adapted agent traces.",
3
+ "properties": {
4
+ "ledger_id": {
5
+ "default": "trace-tolerance-ledger",
6
+ "title": "Ledger Id",
7
+ "type": "string"
8
+ },
9
+ "residual_charge": {
10
+ "default": 0.0,
11
+ "title": "Residual Charge",
12
+ "type": "number"
13
+ },
14
+ "settled": {
15
+ "default": false,
16
+ "title": "Settled",
17
+ "type": "boolean"
18
+ },
19
+ "tolerance_coordinates": {
20
+ "additionalProperties": {
21
+ "type": "number"
22
+ },
23
+ "title": "Tolerance Coordinates",
24
+ "type": "object"
25
+ }
26
+ },
27
+ "title": "TraceToleranceLedger",
28
+ "type": "object"
29
+ }