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,10 @@
1
+ {
2
+ "artifact_key": "alt",
3
+ "canonical_manifest_schema_version": "canonical-manifest-2.0",
4
+ "canonical_sha256": "768d3737b5c466315da2491a96013f9fc01a474b76524c692437ff5615b14116",
5
+ "doi_matches": true,
6
+ "legacy_md5_matches": true,
7
+ "snapshot_is_derived_metadata": true,
8
+ "snapshot_schema_version": "theory-snapshot-1.0",
9
+ "valid": true
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "artifact_key": "bit",
3
+ "canonical_manifest_schema_version": "canonical-manifest-2.0",
4
+ "canonical_sha256": "078a4c55eb51bd7b2a4c07533bdff3ba9ed94ae604e2985ea81a26662a005ac2",
5
+ "doi_matches": true,
6
+ "legacy_md5_matches": true,
7
+ "snapshot_is_derived_metadata": true,
8
+ "snapshot_schema_version": "theory-snapshot-1.0",
9
+ "valid": true
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "artifact_key": "ecpt",
3
+ "canonical_manifest_schema_version": "canonical-manifest-2.0",
4
+ "canonical_sha256": "0a45e52c65112a93086b302e3642c85f24ca65b2f5638a1a66eac68afd4d3c7b",
5
+ "doi_matches": true,
6
+ "legacy_md5_matches": true,
7
+ "snapshot_is_derived_metadata": true,
8
+ "snapshot_schema_version": "theory-snapshot-1.0",
9
+ "valid": true
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "artifact_key": "sqot",
3
+ "canonical_manifest_schema_version": "canonical-manifest-2.0",
4
+ "canonical_sha256": "73d3448d09b6e72ce7600c136b86b8064d8f71010f4cc8e9a2383d4c6e714958",
5
+ "doi_matches": true,
6
+ "legacy_md5_matches": true,
7
+ "snapshot_is_derived_metadata": true,
8
+ "snapshot_schema_version": "theory-snapshot-1.0",
9
+ "valid": true
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "artifact_key": "trc",
3
+ "canonical_manifest_schema_version": "canonical-manifest-2.0",
4
+ "canonical_sha256": "cd236045dd7d6608bbf031878d6c4083c8209ebdba60916ec6d550858f6bf79e",
5
+ "doi_matches": true,
6
+ "legacy_md5_matches": true,
7
+ "snapshot_is_derived_metadata": true,
8
+ "snapshot_schema_version": "theory-snapshot-1.0",
9
+ "valid": true
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "percolation-inversion-compiler-ts",
3
- "version": "0.4.5",
4
- "description": "TypeScript-compatible port of the Python v0.4.4 public JSON, CLI, schema, conformance, and safety semantics for npm and JS agent runtimes.",
3
+ "version": "0.5.0",
4
+ "description": "TypeScript-compatible port of the Python v0.5.0 public JSON, CLI, schema, conformance, and safety semantics, including Phase Ecology Lab records for npm and JavaScript agent runtimes.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "author": "K. Takahashi",
@@ -53,6 +53,26 @@
53
53
  "./packet": {
54
54
  "types": "./dist/packet/index.d.ts",
55
55
  "import": "./dist/packet/index.js"
56
+ },
57
+ "./phase-lab": {
58
+ "types": "./dist/phase_lab/index.d.ts",
59
+ "import": "./dist/phase_lab/index.js"
60
+ },
61
+ "./bit-engine": {
62
+ "types": "./dist/bit_engine/index.d.ts",
63
+ "import": "./dist/bit_engine/index.js"
64
+ },
65
+ "./sqot-controller": {
66
+ "types": "./dist/sqot_controller/index.d.ts",
67
+ "import": "./dist/sqot_controller/index.js"
68
+ },
69
+ "./alt-lift": {
70
+ "types": "./dist/alt_lift/index.d.ts",
71
+ "import": "./dist/alt_lift/index.js"
72
+ },
73
+ "./trc-adapter": {
74
+ "types": "./dist/trc_adapter/index.d.ts",
75
+ "import": "./dist/trc_adapter/index.js"
56
76
  }
57
77
  },
58
78
  "types": "./dist/index.d.ts",
@@ -67,6 +87,21 @@
67
87
  "packet": [
68
88
  "dist/packet/index.d.ts"
69
89
  ],
90
+ "phase-lab": [
91
+ "dist/phase_lab/index.d.ts"
92
+ ],
93
+ "bit-engine": [
94
+ "dist/bit_engine/index.d.ts"
95
+ ],
96
+ "sqot-controller": [
97
+ "dist/sqot_controller/index.d.ts"
98
+ ],
99
+ "alt-lift": [
100
+ "dist/alt_lift/index.d.ts"
101
+ ],
102
+ "trc-adapter": [
103
+ "dist/trc_adapter/index.d.ts"
104
+ ],
70
105
  "*": [
71
106
  "dist/index.d.ts"
72
107
  ]
@@ -79,6 +114,13 @@
79
114
  "fixtures/python_v044_cli/",
80
115
  "fixtures/python_v044_demo/",
81
116
  "fixtures/python_v044_snapshots/",
117
+ "fixtures/python_v050_cli/",
118
+ "fixtures/python_v050_demo/",
119
+ "fixtures/python_v050_snapshots/",
120
+ "fixtures/portability_conformance_v050/",
121
+ "examples/",
122
+ "docs/",
123
+ "agent-manifest.json",
82
124
  "CHANGELOG.md",
83
125
  "README.md",
84
126
  "LICENSE",
@@ -90,7 +132,7 @@
90
132
  "lint": "eslint .",
91
133
  "format:check": "prettier --check .",
92
134
  "test": "npm run build && vitest run",
93
- "conformance": "npm run build && vitest run test/portability.test.ts test/cli.test.ts",
135
+ "conformance": "npm run build && vitest run test/portability.test.ts test/cli.test.ts test/v050-readiness.test.ts test/v050-subsystems.test.ts",
94
136
  "publish:safety": "node scripts/check-publish-safety.mjs",
95
137
  "pack:check": "npm run publish:safety",
96
138
  "installed:smoke": "node scripts/check-installed-smoke.mjs",
@@ -0,0 +1,72 @@
1
+ {
2
+ "description": "Protocol-relative finite threshold specification for ASI-proxy diagnostics.",
3
+ "properties": {
4
+ "maximum_false_liquidity_load": {
5
+ "default": 0.5,
6
+ "title": "Maximum False Liquidity Load",
7
+ "type": "number"
8
+ },
9
+ "maximum_residual_debt": {
10
+ "default": 0.0,
11
+ "title": "Maximum Residual Debt",
12
+ "type": "number"
13
+ },
14
+ "maximum_salience_obstruction": {
15
+ "default": 0.5,
16
+ "title": "Maximum Salience Obstruction",
17
+ "type": "number"
18
+ },
19
+ "minimum_accepted_packet_count": {
20
+ "default": 1,
21
+ "title": "Minimum Accepted Packet Count",
22
+ "type": "integer"
23
+ },
24
+ "minimum_alt_to_ecpt_lift_count": {
25
+ "default": 0,
26
+ "title": "Minimum Alt To Ecpt Lift Count",
27
+ "type": "integer"
28
+ },
29
+ "minimum_closure_witness_count": {
30
+ "default": 1,
31
+ "title": "Minimum Closure Witness Count",
32
+ "type": "integer"
33
+ },
34
+ "minimum_effective_edge_count": {
35
+ "default": 1,
36
+ "title": "Minimum Effective Edge Count",
37
+ "type": "integer"
38
+ },
39
+ "minimum_execution_available_path_density": {
40
+ "default": 0.1,
41
+ "title": "Minimum Execution Available Path Density",
42
+ "type": "number"
43
+ },
44
+ "minimum_verification_throughput": {
45
+ "default": 0.1,
46
+ "title": "Minimum Verification Throughput",
47
+ "type": "number"
48
+ },
49
+ "required_authority_status": {
50
+ "default": "explicit-scope-bounded",
51
+ "title": "Required Authority Status",
52
+ "type": "string"
53
+ },
54
+ "required_identity_mode": {
55
+ "default": "declared",
56
+ "title": "Required Identity Mode",
57
+ "type": "string"
58
+ },
59
+ "required_rollback_availability": {
60
+ "default": true,
61
+ "title": "Required Rollback Availability",
62
+ "type": "boolean"
63
+ },
64
+ "threshold_id": {
65
+ "default": "asi-proxy-development",
66
+ "title": "Threshold Id",
67
+ "type": "string"
68
+ }
69
+ },
70
+ "title": "ASIProxyThresholdSpec",
71
+ "type": "object"
72
+ }