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,123 @@
1
+ {
2
+ "description": "One inert report or packet stored by the Phase Lab.",
3
+ "properties": {
4
+ "accepted": {
5
+ "default": false,
6
+ "title": "Accepted",
7
+ "type": "boolean"
8
+ },
9
+ "candidate_only": {
10
+ "default": true,
11
+ "title": "Candidate Only",
12
+ "type": "boolean"
13
+ },
14
+ "candidate_only_reasons": {
15
+ "items": {
16
+ "type": "string"
17
+ },
18
+ "title": "Candidate Only Reasons",
19
+ "type": "array"
20
+ },
21
+ "content_digest": {
22
+ "title": "Content Digest",
23
+ "type": "string"
24
+ },
25
+ "event_id": {
26
+ "title": "Event Id",
27
+ "type": "string"
28
+ },
29
+ "missing_obligations": {
30
+ "items": {
31
+ "type": "string"
32
+ },
33
+ "title": "Missing Obligations",
34
+ "type": "array"
35
+ },
36
+ "operationally_usable": {
37
+ "default": false,
38
+ "title": "Operationally Usable",
39
+ "type": "boolean"
40
+ },
41
+ "payload": {
42
+ "additionalProperties": true,
43
+ "title": "Payload",
44
+ "type": "object"
45
+ },
46
+ "positive_contribution_allowed": {
47
+ "default": false,
48
+ "title": "Positive Contribution Allowed",
49
+ "type": "boolean"
50
+ },
51
+ "reasons": {
52
+ "items": {
53
+ "type": "string"
54
+ },
55
+ "title": "Reasons",
56
+ "type": "array"
57
+ },
58
+ "residual_summary": {
59
+ "additionalProperties": {
60
+ "type": "number"
61
+ },
62
+ "title": "Residual Summary",
63
+ "type": "object"
64
+ },
65
+ "safety_boundary": {
66
+ "items": {
67
+ "type": "string"
68
+ },
69
+ "title": "Safety Boundary",
70
+ "type": "array"
71
+ },
72
+ "schema_hint": {
73
+ "default": "unknown",
74
+ "title": "Schema Hint",
75
+ "type": "string"
76
+ },
77
+ "settled": {
78
+ "default": false,
79
+ "title": "Settled",
80
+ "type": "boolean"
81
+ },
82
+ "settled_blockers": {
83
+ "items": {
84
+ "type": "string"
85
+ },
86
+ "title": "Settled Blockers",
87
+ "type": "array"
88
+ },
89
+ "source_kind": {
90
+ "default": "unknown-report",
91
+ "title": "Source Kind",
92
+ "type": "string"
93
+ },
94
+ "source_path": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "type": "null"
101
+ }
102
+ ],
103
+ "default": null,
104
+ "title": "Source Path"
105
+ },
106
+ "window_id": {
107
+ "title": "Window Id",
108
+ "type": "string"
109
+ },
110
+ "workflow_usable": {
111
+ "default": false,
112
+ "title": "Workflow Usable",
113
+ "type": "boolean"
114
+ }
115
+ },
116
+ "required": [
117
+ "event_id",
118
+ "window_id",
119
+ "content_digest"
120
+ ],
121
+ "title": "PhaseLabEvent",
122
+ "type": "object"
123
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "$defs": {
3
+ "PhaseLabStoreManifest": {
4
+ "description": "Local Phase Lab store metadata.",
5
+ "properties": {
6
+ "accepted": {
7
+ "default": true,
8
+ "title": "Accepted",
9
+ "type": "boolean"
10
+ },
11
+ "database_path": {
12
+ "default": "",
13
+ "title": "Database Path",
14
+ "type": "string"
15
+ },
16
+ "event_count": {
17
+ "default": 0,
18
+ "title": "Event Count",
19
+ "type": "integer"
20
+ },
21
+ "latest_window_id": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "null"
28
+ }
29
+ ],
30
+ "default": null,
31
+ "title": "Latest Window Id"
32
+ },
33
+ "reasons": {
34
+ "items": {
35
+ "type": "string"
36
+ },
37
+ "title": "Reasons",
38
+ "type": "array"
39
+ },
40
+ "safety_invariants": {
41
+ "items": {
42
+ "type": "string"
43
+ },
44
+ "title": "Safety Invariants",
45
+ "type": "array"
46
+ },
47
+ "schema_version": {
48
+ "default": "phase-lab-store-v1",
49
+ "title": "Schema Version",
50
+ "type": "string"
51
+ },
52
+ "settled": {
53
+ "default": false,
54
+ "title": "Settled",
55
+ "type": "boolean"
56
+ },
57
+ "store_id": {
58
+ "default": "phase-lab-store",
59
+ "title": "Store Id",
60
+ "type": "string"
61
+ },
62
+ "store_path": {
63
+ "default": "",
64
+ "title": "Store Path",
65
+ "type": "string"
66
+ },
67
+ "window_count": {
68
+ "default": 0,
69
+ "title": "Window Count",
70
+ "type": "integer"
71
+ }
72
+ },
73
+ "title": "PhaseLabStoreManifest",
74
+ "type": "object"
75
+ }
76
+ },
77
+ "description": "Manifest for a deterministic local Phase Lab export.",
78
+ "properties": {
79
+ "absolute_paths_sanitized": {
80
+ "default": true,
81
+ "title": "Absolute Paths Sanitized",
82
+ "type": "boolean"
83
+ },
84
+ "accepted": {
85
+ "default": true,
86
+ "title": "Accepted",
87
+ "type": "boolean"
88
+ },
89
+ "export_id": {
90
+ "default": "phase-lab-export",
91
+ "title": "Export Id",
92
+ "type": "string"
93
+ },
94
+ "files": {
95
+ "items": {
96
+ "type": "string"
97
+ },
98
+ "title": "Files",
99
+ "type": "array"
100
+ },
101
+ "output_dir": {
102
+ "default": "",
103
+ "title": "Output Dir",
104
+ "type": "string"
105
+ },
106
+ "reasons": {
107
+ "items": {
108
+ "type": "string"
109
+ },
110
+ "title": "Reasons",
111
+ "type": "array"
112
+ },
113
+ "settled": {
114
+ "default": false,
115
+ "title": "Settled",
116
+ "type": "boolean"
117
+ },
118
+ "store_manifest": {
119
+ "$ref": "#/$defs/PhaseLabStoreManifest"
120
+ }
121
+ },
122
+ "required": [
123
+ "store_manifest"
124
+ ],
125
+ "title": "PhaseLabExportManifest",
126
+ "type": "object"
127
+ }
@@ -0,0 +1,344 @@
1
+ {
2
+ "$defs": {
3
+ "PhaseLabEvent": {
4
+ "description": "One inert report or packet stored by the Phase Lab.",
5
+ "properties": {
6
+ "accepted": {
7
+ "default": false,
8
+ "title": "Accepted",
9
+ "type": "boolean"
10
+ },
11
+ "candidate_only": {
12
+ "default": true,
13
+ "title": "Candidate Only",
14
+ "type": "boolean"
15
+ },
16
+ "candidate_only_reasons": {
17
+ "items": {
18
+ "type": "string"
19
+ },
20
+ "title": "Candidate Only Reasons",
21
+ "type": "array"
22
+ },
23
+ "content_digest": {
24
+ "title": "Content Digest",
25
+ "type": "string"
26
+ },
27
+ "event_id": {
28
+ "title": "Event Id",
29
+ "type": "string"
30
+ },
31
+ "missing_obligations": {
32
+ "items": {
33
+ "type": "string"
34
+ },
35
+ "title": "Missing Obligations",
36
+ "type": "array"
37
+ },
38
+ "operationally_usable": {
39
+ "default": false,
40
+ "title": "Operationally Usable",
41
+ "type": "boolean"
42
+ },
43
+ "payload": {
44
+ "additionalProperties": true,
45
+ "title": "Payload",
46
+ "type": "object"
47
+ },
48
+ "positive_contribution_allowed": {
49
+ "default": false,
50
+ "title": "Positive Contribution Allowed",
51
+ "type": "boolean"
52
+ },
53
+ "reasons": {
54
+ "items": {
55
+ "type": "string"
56
+ },
57
+ "title": "Reasons",
58
+ "type": "array"
59
+ },
60
+ "residual_summary": {
61
+ "additionalProperties": {
62
+ "type": "number"
63
+ },
64
+ "title": "Residual Summary",
65
+ "type": "object"
66
+ },
67
+ "safety_boundary": {
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "title": "Safety Boundary",
72
+ "type": "array"
73
+ },
74
+ "schema_hint": {
75
+ "default": "unknown",
76
+ "title": "Schema Hint",
77
+ "type": "string"
78
+ },
79
+ "settled": {
80
+ "default": false,
81
+ "title": "Settled",
82
+ "type": "boolean"
83
+ },
84
+ "settled_blockers": {
85
+ "items": {
86
+ "type": "string"
87
+ },
88
+ "title": "Settled Blockers",
89
+ "type": "array"
90
+ },
91
+ "source_kind": {
92
+ "default": "unknown-report",
93
+ "title": "Source Kind",
94
+ "type": "string"
95
+ },
96
+ "source_path": {
97
+ "anyOf": [
98
+ {
99
+ "type": "string"
100
+ },
101
+ {
102
+ "type": "null"
103
+ }
104
+ ],
105
+ "default": null,
106
+ "title": "Source Path"
107
+ },
108
+ "window_id": {
109
+ "title": "Window Id",
110
+ "type": "string"
111
+ },
112
+ "workflow_usable": {
113
+ "default": false,
114
+ "title": "Workflow Usable",
115
+ "type": "boolean"
116
+ }
117
+ },
118
+ "required": [
119
+ "event_id",
120
+ "window_id",
121
+ "content_digest"
122
+ ],
123
+ "title": "PhaseLabEvent",
124
+ "type": "object"
125
+ },
126
+ "PhaseLabStoreManifest": {
127
+ "description": "Local Phase Lab store metadata.",
128
+ "properties": {
129
+ "accepted": {
130
+ "default": true,
131
+ "title": "Accepted",
132
+ "type": "boolean"
133
+ },
134
+ "database_path": {
135
+ "default": "",
136
+ "title": "Database Path",
137
+ "type": "string"
138
+ },
139
+ "event_count": {
140
+ "default": 0,
141
+ "title": "Event Count",
142
+ "type": "integer"
143
+ },
144
+ "latest_window_id": {
145
+ "anyOf": [
146
+ {
147
+ "type": "string"
148
+ },
149
+ {
150
+ "type": "null"
151
+ }
152
+ ],
153
+ "default": null,
154
+ "title": "Latest Window Id"
155
+ },
156
+ "reasons": {
157
+ "items": {
158
+ "type": "string"
159
+ },
160
+ "title": "Reasons",
161
+ "type": "array"
162
+ },
163
+ "safety_invariants": {
164
+ "items": {
165
+ "type": "string"
166
+ },
167
+ "title": "Safety Invariants",
168
+ "type": "array"
169
+ },
170
+ "schema_version": {
171
+ "default": "phase-lab-store-v1",
172
+ "title": "Schema Version",
173
+ "type": "string"
174
+ },
175
+ "settled": {
176
+ "default": false,
177
+ "title": "Settled",
178
+ "type": "boolean"
179
+ },
180
+ "store_id": {
181
+ "default": "phase-lab-store",
182
+ "title": "Store Id",
183
+ "type": "string"
184
+ },
185
+ "store_path": {
186
+ "default": "",
187
+ "title": "Store Path",
188
+ "type": "string"
189
+ },
190
+ "window_count": {
191
+ "default": 0,
192
+ "title": "Window Count",
193
+ "type": "integer"
194
+ }
195
+ },
196
+ "title": "PhaseLabStoreManifest",
197
+ "type": "object"
198
+ },
199
+ "PhaseLabWindowIndex": {
200
+ "description": "Index entry for one deterministic ingest window.",
201
+ "properties": {
202
+ "accepted": {
203
+ "default": true,
204
+ "title": "Accepted",
205
+ "type": "boolean"
206
+ },
207
+ "accepted_event_count": {
208
+ "default": 0,
209
+ "title": "Accepted Event Count",
210
+ "type": "integer"
211
+ },
212
+ "candidate_only_event_count": {
213
+ "default": 0,
214
+ "title": "Candidate Only Event Count",
215
+ "type": "integer"
216
+ },
217
+ "event_count": {
218
+ "default": 0,
219
+ "title": "Event Count",
220
+ "type": "integer"
221
+ },
222
+ "event_ids": {
223
+ "items": {
224
+ "type": "string"
225
+ },
226
+ "title": "Event Ids",
227
+ "type": "array"
228
+ },
229
+ "missing_obligation_count": {
230
+ "default": 0,
231
+ "title": "Missing Obligation Count",
232
+ "type": "integer"
233
+ },
234
+ "positive_contribution_event_count": {
235
+ "default": 0,
236
+ "title": "Positive Contribution Event Count",
237
+ "type": "integer"
238
+ },
239
+ "reasons": {
240
+ "items": {
241
+ "type": "string"
242
+ },
243
+ "title": "Reasons",
244
+ "type": "array"
245
+ },
246
+ "residual_debt": {
247
+ "default": 0.0,
248
+ "title": "Residual Debt",
249
+ "type": "number"
250
+ },
251
+ "sequence": {
252
+ "title": "Sequence",
253
+ "type": "integer"
254
+ },
255
+ "settled": {
256
+ "default": false,
257
+ "title": "Settled",
258
+ "type": "boolean"
259
+ },
260
+ "settled_event_count": {
261
+ "default": 0,
262
+ "title": "Settled Event Count",
263
+ "type": "integer"
264
+ },
265
+ "window_id": {
266
+ "title": "Window Id",
267
+ "type": "string"
268
+ }
269
+ },
270
+ "required": [
271
+ "window_id",
272
+ "sequence"
273
+ ],
274
+ "title": "PhaseLabWindowIndex",
275
+ "type": "object"
276
+ }
277
+ },
278
+ "description": "Report emitted after ingesting inert files into a Phase Lab store.",
279
+ "properties": {
280
+ "accepted": {
281
+ "default": false,
282
+ "title": "Accepted",
283
+ "type": "boolean"
284
+ },
285
+ "content_treated_as_data": {
286
+ "default": true,
287
+ "title": "Content Treated As Data",
288
+ "type": "boolean"
289
+ },
290
+ "executed_command_count": {
291
+ "default": 0,
292
+ "title": "Executed Command Count",
293
+ "type": "integer"
294
+ },
295
+ "ingested_events": {
296
+ "items": {
297
+ "$ref": "#/$defs/PhaseLabEvent"
298
+ },
299
+ "title": "Ingested Events",
300
+ "type": "array"
301
+ },
302
+ "reasons": {
303
+ "items": {
304
+ "type": "string"
305
+ },
306
+ "title": "Reasons",
307
+ "type": "array"
308
+ },
309
+ "rejected_paths": {
310
+ "items": {
311
+ "type": "string"
312
+ },
313
+ "title": "Rejected Paths",
314
+ "type": "array"
315
+ },
316
+ "report_id": {
317
+ "title": "Report Id",
318
+ "type": "string"
319
+ },
320
+ "settled": {
321
+ "default": false,
322
+ "title": "Settled",
323
+ "type": "boolean"
324
+ },
325
+ "store_manifest": {
326
+ "$ref": "#/$defs/PhaseLabStoreManifest"
327
+ },
328
+ "window": {
329
+ "$ref": "#/$defs/PhaseLabWindowIndex"
330
+ },
331
+ "workflow_usable": {
332
+ "default": true,
333
+ "title": "Workflow Usable",
334
+ "type": "boolean"
335
+ }
336
+ },
337
+ "required": [
338
+ "report_id",
339
+ "store_manifest",
340
+ "window"
341
+ ],
342
+ "title": "PhaseLabIngestReport",
343
+ "type": "object"
344
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "description": "Local Phase Lab store metadata.",
3
+ "properties": {
4
+ "accepted": {
5
+ "default": true,
6
+ "title": "Accepted",
7
+ "type": "boolean"
8
+ },
9
+ "database_path": {
10
+ "default": "",
11
+ "title": "Database Path",
12
+ "type": "string"
13
+ },
14
+ "event_count": {
15
+ "default": 0,
16
+ "title": "Event Count",
17
+ "type": "integer"
18
+ },
19
+ "latest_window_id": {
20
+ "anyOf": [
21
+ {
22
+ "type": "string"
23
+ },
24
+ {
25
+ "type": "null"
26
+ }
27
+ ],
28
+ "default": null,
29
+ "title": "Latest Window Id"
30
+ },
31
+ "reasons": {
32
+ "items": {
33
+ "type": "string"
34
+ },
35
+ "title": "Reasons",
36
+ "type": "array"
37
+ },
38
+ "safety_invariants": {
39
+ "items": {
40
+ "type": "string"
41
+ },
42
+ "title": "Safety Invariants",
43
+ "type": "array"
44
+ },
45
+ "schema_version": {
46
+ "default": "phase-lab-store-v1",
47
+ "title": "Schema Version",
48
+ "type": "string"
49
+ },
50
+ "settled": {
51
+ "default": false,
52
+ "title": "Settled",
53
+ "type": "boolean"
54
+ },
55
+ "store_id": {
56
+ "default": "phase-lab-store",
57
+ "title": "Store Id",
58
+ "type": "string"
59
+ },
60
+ "store_path": {
61
+ "default": "",
62
+ "title": "Store Path",
63
+ "type": "string"
64
+ },
65
+ "window_count": {
66
+ "default": 0,
67
+ "title": "Window Count",
68
+ "type": "integer"
69
+ }
70
+ },
71
+ "title": "PhaseLabStoreManifest",
72
+ "type": "object"
73
+ }