codex-workflow-v2 2.0.0-beta.1 → 2.0.0-beta.11

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 (187) hide show
  1. package/README.md +94 -12
  2. package/dist/src/alpha6/adoption.js +13 -3
  3. package/dist/src/alpha6/adoption.js.map +1 -1
  4. package/dist/src/alpha6/handoff.d.ts +26 -2
  5. package/dist/src/alpha6/handoff.js +277 -29
  6. package/dist/src/alpha6/handoff.js.map +1 -1
  7. package/dist/src/alpha6/mechanical-feasibility.d.ts +7 -0
  8. package/dist/src/alpha6/mechanical-feasibility.js +303 -0
  9. package/dist/src/alpha6/mechanical-feasibility.js.map +1 -0
  10. package/dist/src/alpha6/milestone.d.ts +37 -2
  11. package/dist/src/alpha6/milestone.js +472 -33
  12. package/dist/src/alpha6/milestone.js.map +1 -1
  13. package/dist/src/alpha6/plan-integrity.d.ts +14 -0
  14. package/dist/src/alpha6/plan-integrity.js +127 -0
  15. package/dist/src/alpha6/plan-integrity.js.map +1 -0
  16. package/dist/src/alpha6/plan-risk.d.ts +1 -0
  17. package/dist/src/alpha6/plan-risk.js +15 -7
  18. package/dist/src/alpha6/plan-risk.js.map +1 -1
  19. package/dist/src/alpha6/remediation.d.ts +2 -1
  20. package/dist/src/alpha6/remediation.js +186 -9
  21. package/dist/src/alpha6/remediation.js.map +1 -1
  22. package/dist/src/alpha6/review.d.ts +3 -0
  23. package/dist/src/alpha6/review.js +24 -0
  24. package/dist/src/alpha6/review.js.map +1 -1
  25. package/dist/src/cli.js +486 -46
  26. package/dist/src/cli.js.map +1 -1
  27. package/dist/src/contracts.d.ts +238 -6
  28. package/dist/src/contracts.js +1 -1
  29. package/dist/src/credential-output.d.ts +10 -0
  30. package/dist/src/credential-output.js +73 -0
  31. package/dist/src/credential-output.js.map +1 -0
  32. package/dist/src/dependency-provenance.d.ts +19 -0
  33. package/dist/src/dependency-provenance.js +185 -0
  34. package/dist/src/dependency-provenance.js.map +1 -0
  35. package/dist/src/errors.d.ts +1 -1
  36. package/dist/src/errors.js.map +1 -1
  37. package/dist/src/git.d.ts +1 -1
  38. package/dist/src/git.js +13 -5
  39. package/dist/src/git.js.map +1 -1
  40. package/dist/src/index.d.ts +2 -1
  41. package/dist/src/index.js +2 -1
  42. package/dist/src/index.js.map +1 -1
  43. package/dist/src/lifecycle/canonical-hash.d.ts +6 -0
  44. package/dist/src/lifecycle/canonical-hash.js +24 -0
  45. package/dist/src/lifecycle/canonical-hash.js.map +1 -0
  46. package/dist/src/lifecycle/catalog.d.ts +26 -0
  47. package/dist/src/lifecycle/catalog.js +208 -0
  48. package/dist/src/lifecycle/catalog.js.map +1 -0
  49. package/dist/src/lifecycle/compiler-inspection.d.ts +48 -0
  50. package/dist/src/lifecycle/compiler-inspection.js +29 -0
  51. package/dist/src/lifecycle/compiler-inspection.js.map +1 -0
  52. package/dist/src/lifecycle/core-static-readiness.d.ts +6 -0
  53. package/dist/src/lifecycle/core-static-readiness.js +130 -0
  54. package/dist/src/lifecycle/core-static-readiness.js.map +1 -0
  55. package/dist/src/lifecycle/corrective-replan-authority.d.ts +53 -0
  56. package/dist/src/lifecycle/corrective-replan-authority.js +139 -0
  57. package/dist/src/lifecycle/corrective-replan-authority.js.map +1 -0
  58. package/dist/src/lifecycle/corrective-replan-binding-manifest.d.ts +21 -0
  59. package/dist/src/lifecycle/corrective-replan-binding-manifest.js +35 -0
  60. package/dist/src/lifecycle/corrective-replan-binding-manifest.js.map +1 -0
  61. package/dist/src/lifecycle/corrective-replan-credential-core.d.ts +86 -0
  62. package/dist/src/lifecycle/corrective-replan-credential-core.js +563 -0
  63. package/dist/src/lifecycle/corrective-replan-credential-core.js.map +1 -0
  64. package/dist/src/lifecycle/corrective-replan-credential-schema.d.ts +17 -0
  65. package/dist/src/lifecycle/corrective-replan-credential-schema.js +44 -0
  66. package/dist/src/lifecycle/corrective-replan-credential-schema.js.map +1 -0
  67. package/dist/src/lifecycle/corrective-replan-credentials.d.ts +47 -0
  68. package/dist/src/lifecycle/corrective-replan-credentials.js +103 -0
  69. package/dist/src/lifecycle/corrective-replan-credentials.js.map +1 -0
  70. package/dist/src/lifecycle/corrective-replan.d.ts +64 -0
  71. package/dist/src/lifecycle/corrective-replan.js +553 -0
  72. package/dist/src/lifecycle/corrective-replan.js.map +1 -0
  73. package/dist/src/lifecycle/evaluator.d.ts +2 -0
  74. package/dist/src/lifecycle/evaluator.js +35 -0
  75. package/dist/src/lifecycle/evaluator.js.map +1 -0
  76. package/dist/src/lifecycle/fingerprint.d.ts +31 -0
  77. package/dist/src/lifecycle/fingerprint.js +388 -0
  78. package/dist/src/lifecycle/fingerprint.js.map +1 -0
  79. package/dist/src/lifecycle/immutable.d.ts +1 -0
  80. package/dist/src/lifecycle/immutable.js +10 -0
  81. package/dist/src/lifecycle/immutable.js.map +1 -0
  82. package/dist/src/lifecycle/implementation-table.d.ts +29 -0
  83. package/dist/src/lifecycle/implementation-table.js +87 -0
  84. package/dist/src/lifecycle/implementation-table.js.map +1 -0
  85. package/dist/src/lifecycle/index.d.ts +4 -0
  86. package/dist/src/lifecycle/index.js +5 -0
  87. package/dist/src/lifecycle/index.js.map +1 -0
  88. package/dist/src/lifecycle/schema-artifact.d.ts +12 -0
  89. package/dist/src/lifecycle/schema-artifact.js +214 -0
  90. package/dist/src/lifecycle/schema-artifact.js.map +1 -0
  91. package/dist/src/lifecycle/semantic-registry.d.ts +6 -0
  92. package/dist/src/lifecycle/semantic-registry.js +489 -0
  93. package/dist/src/lifecycle/semantic-registry.js.map +1 -0
  94. package/dist/src/lifecycle/types.d.ts +718 -0
  95. package/dist/src/lifecycle/types.js +4 -0
  96. package/dist/src/lifecycle/types.js.map +1 -0
  97. package/dist/src/observation.d.ts +20 -0
  98. package/dist/src/observation.js +171 -0
  99. package/dist/src/observation.js.map +1 -0
  100. package/dist/src/reviewer.d.ts +43 -1
  101. package/dist/src/reviewer.js +203 -50
  102. package/dist/src/reviewer.js.map +1 -1
  103. package/dist/src/state/corrective-replan-executor.d.ts +64 -0
  104. package/dist/src/state/corrective-replan-executor.js +608 -0
  105. package/dist/src/state/corrective-replan-executor.js.map +1 -0
  106. package/dist/src/state/corrective-replan-public-schema.d.ts +3 -0
  107. package/dist/src/state/corrective-replan-public-schema.js +43 -0
  108. package/dist/src/state/corrective-replan-public-schema.js.map +1 -0
  109. package/dist/src/state/corrective-replan-public.d.ts +95 -0
  110. package/dist/src/state/corrective-replan-public.js +665 -0
  111. package/dist/src/state/corrective-replan-public.js.map +1 -0
  112. package/dist/src/state/corrective-replan-transaction.d.ts +160 -0
  113. package/dist/src/state/corrective-replan-transaction.js +730 -0
  114. package/dist/src/state/corrective-replan-transaction.js.map +1 -0
  115. package/dist/src/state/corrective-yield-executor.d.ts +31 -0
  116. package/dist/src/state/corrective-yield-executor.js +236 -0
  117. package/dist/src/state/corrective-yield-executor.js.map +1 -0
  118. package/dist/src/state/corrective-yield-transaction.d.ts +97 -0
  119. package/dist/src/state/corrective-yield-transaction.js +591 -0
  120. package/dist/src/state/corrective-yield-transaction.js.map +1 -0
  121. package/dist/src/state/lock.d.ts +76 -3
  122. package/dist/src/state/lock.js +611 -30
  123. package/dist/src/state/lock.js.map +1 -1
  124. package/dist/src/state/store.d.ts +3 -0
  125. package/dist/src/state/store.js +65 -12
  126. package/dist/src/state/store.js.map +1 -1
  127. package/dist/src/transition-core.d.ts +67 -0
  128. package/dist/src/transition-core.js +318 -0
  129. package/dist/src/transition-core.js.map +1 -0
  130. package/dist/src/version.d.ts +1 -1
  131. package/dist/src/version.js +1 -1
  132. package/dist/src/version.js.map +1 -1
  133. package/dist/src/workflow.d.ts +88 -24
  134. package/dist/src/workflow.js +1647 -270
  135. package/dist/src/workflow.js.map +1 -1
  136. package/docs/autonomy-guardrails.md +61 -1
  137. package/docs/beta11-plan-integrity-recovery-brief.md +38 -0
  138. package/docs/beta2-initial-assembly-navigation-brief.md +616 -0
  139. package/docs/delegated-approval.md +26 -1
  140. package/docs/development-flow.md +63 -8
  141. package/docs/lifecycle/state-machine-stabilization.md +641 -0
  142. package/docs/pdf/README.md +24 -0
  143. package/docs/pdf/codex-workflow-v2-architecture-ru.pdf +0 -0
  144. package/docs/pdf/codex-workflow-v2-chat-only-guide-ru.pdf +0 -0
  145. package/docs/pdf/codex-workflow-v2-technical-reference-ru.pdf +0 -0
  146. package/docs/pdf/requirements.txt +1 -0
  147. package/docs/pdf/sources/codex-workflow-v2-architecture-ru.md +234 -0
  148. package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +334 -0
  149. package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +413 -0
  150. package/docs/problem-briefs/01-pre-implementation-integrity.md +478 -0
  151. package/docs/problem-briefs/02-minimal-step-integrity.md +411 -0
  152. package/docs/problem-briefs/03-minimal-agent-context-integrity.md +358 -0
  153. package/docs/problem-briefs/04-task-dependency-and-structural-replacement-integrity.md +566 -0
  154. package/docs/problem-briefs/BRIEF-TEMPLATE.md +56 -0
  155. package/docs/problem-briefs/README.md +120 -0
  156. package/docs/problem-briefs/evidence/p01-mechanical-feasibility-corpus.md +90 -0
  157. package/docs/problem-briefs/evidence/signal-v4-pre-m3-replay.md +246 -0
  158. package/docs/release.md +30 -6
  159. package/docs/split-required-recovery.md +19 -25
  160. package/docs/stable-release-defect-register.md +465 -3
  161. package/docs/updating-existing-project.md +59 -4
  162. package/docs/validation-report.md +124 -56
  163. package/package.json +9 -1
  164. package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +10 -3
  165. package/plugins/codex-workflow-gateway/references/protocol.md +92 -4
  166. package/plugins/codex-workflow-gateway/scripts/chat-registry.mjs +376 -0
  167. package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +263 -4
  168. package/references/state-machine.md +13 -6
  169. package/roles/delivery-coordinator.md +39 -0
  170. package/schemas/adoption-posture-event.schema.json +1 -1
  171. package/schemas/authorization-event.schema.json +64 -1
  172. package/schemas/context-envelope.schema.json +1 -1
  173. package/schemas/corrective-decision-event.schema.json +48 -3
  174. package/schemas/corrective-replan-credentials.private.schema.json +98 -0
  175. package/schemas/corrective-replan-execution-event.private.schema.json +53 -0
  176. package/schemas/corrective-replan-public.schema.json +142 -0
  177. package/schemas/corrective-replan-task-transaction.private.schema.json +151 -0
  178. package/schemas/corrective-yield-task-transaction.private.schema.json +98 -0
  179. package/schemas/milestone-scope-change-event.schema.json +6 -1
  180. package/schemas/milestone.schema.json +6 -1
  181. package/schemas/remediation-event.schema.json +11 -1
  182. package/schemas/task-handoff-event.schema.json +19 -3
  183. package/schemas/task.schema.json +24 -1
  184. package/schemas/transition-definition.schema.json +2609 -0
  185. package/schemas/transition-payloads.schema.json +140 -0
  186. package/scripts/generate-pdf-docs.py +512 -0
  187. package/scripts/run-pdf-docs.mjs +62 -0
@@ -0,0 +1,489 @@
1
+ import { deepFreeze } from './immutable.js';
2
+ import { correctiveReplanBindingManifest } from './corrective-replan-binding-manifest.js';
3
+ const v1 = (id) => ({ id, version: 1 });
4
+ const correctiveSnapshotRef = v1('projection.corrective-replan.snapshot');
5
+ const correctiveBindingRef = v1('projection.corrective-replan.bindings');
6
+ export const exactTransitionCoverageProfileRef = v1('coverage-profile.exact-transition');
7
+ export const exactMutationReleaseProfileRef = v1('release-profile.exact-mutation');
8
+ const schemas = [
9
+ schema('schema.corrective-replan-bindings', 'object', 'Exact corrective transition bindings.'),
10
+ schema('schema.corrective-replan-snapshot', 'object', 'Current corrective transition snapshot.'),
11
+ schema('schema.corrective-replan-binding', 'object', 'Exact state-bound receipt binding.'),
12
+ schema('schema.corrective-replan-plan-validation-attestation', 'object', 'Passed independent Plan Validation attestation.'),
13
+ schema('schema.corrective-replan-receipt', 'object', 'Human-confirmed execution receipt.'),
14
+ schema('schema.corrective-replan-task-transaction', 'object', 'Retained corrective-replan Task transaction journal.'),
15
+ schema('schema.expected-revision', 'integer', 'Expected Task revision.'),
16
+ schema('schema.plan-risk-audit-input', 'object', 'Replacement Plan Risk Audit input.'),
17
+ schema('schema.task-id', 'string', 'Task identity.'),
18
+ schema('schema.task-plan-input', 'object', 'Materialized replacement Task Plan input.'),
19
+ schema('schema.task-state-readback', 'object', 'Task state readback after Plan replacement.'),
20
+ ];
21
+ const manifestFields = correctiveReplanBindingManifest.rows.map(({ projection: _projection, ...entry }) => entry.fieldId);
22
+ const manifestProjectionFields = (projectionId) => correctiveReplanBindingManifest.rows
23
+ .filter((entry) => entry.projection.id === projectionId)
24
+ .map((entry) => entry.fieldId);
25
+ const executionKeyFields = correctiveReplanBindingManifest.rows.map(({ projection, fieldId }) => ({ projection, fieldId }));
26
+ const projections = [
27
+ projection('projection.corrective-replan.bindings', 'schema.corrective-replan-bindings', [
28
+ 'field.candidate-plan-hash',
29
+ 'field.candidate-step-ids',
30
+ 'field.corrective-decision-event-id',
31
+ 'field.current-plan-hash',
32
+ 'field.expected-revision',
33
+ 'field.step-id',
34
+ 'field.task-id',
35
+ ], 'Current navigation and candidate execution bindings.'),
36
+ projection('projection.corrective-replan.protocol', 'schema.corrective-replan-binding', manifestProjectionFields('projection.corrective-replan.protocol'), 'Protocol and catalog receipt bindings.'),
37
+ projection('projection.corrective-replan.state', 'schema.corrective-replan-binding', manifestProjectionFields('projection.corrective-replan.state'), 'Current Task, Knowledge, Git, and corrective posture bindings.'),
38
+ projection('projection.corrective-replan.candidate', 'schema.corrective-replan-binding', manifestProjectionFields('projection.corrective-replan.candidate'), 'Candidate Plan, Validation, and Risk Audit bindings.'),
39
+ projection('projection.corrective-replan.authority', 'schema.corrective-replan-binding', manifestProjectionFields('projection.corrective-replan.authority'), 'Actor, Human principal, and capability bindings.'),
40
+ projection('projection.corrective-replan.execution-receipt', 'schema.corrective-replan-receipt', manifestFields, 'Exact 28-field execution receipt binding.'),
41
+ projection('projection.corrective-replan.snapshot', 'schema.corrective-replan-snapshot', [
42
+ 'field.candidate-plan-hash',
43
+ 'field.candidate-step-ids',
44
+ 'field.corrective-decision-decision',
45
+ 'field.corrective-decision-event-id',
46
+ 'field.corrective-decision-plan-hash',
47
+ 'field.corrective-decision-step-id',
48
+ 'field.corrective-decision-triggering-attempt-count',
49
+ 'field.corrective-posture',
50
+ 'field.current-plan-hash',
51
+ 'field.in-progress-step-ids',
52
+ 'field.remediation-attempt-count',
53
+ 'field.step-id',
54
+ 'field.step-status',
55
+ 'field.task-id',
56
+ 'field.task-revision',
57
+ 'field.task-status',
58
+ 'field.actor-role-eligible',
59
+ 'field.c1-claim-absent',
60
+ 'field.writer-lease-absent',
61
+ 'field.plan-validation-passed',
62
+ 'field.receipt-valid',
63
+ 'field.risk-audit-passed',
64
+ ], 'Current mutation-free corrective evaluator snapshot.'),
65
+ projection('projection.input.expected-revision', 'schema.expected-revision', [
66
+ 'field.expected-revision',
67
+ ], 'Expected revision input.'),
68
+ projection('projection.input.plan-risk-audit', 'schema.plan-risk-audit-input', [
69
+ 'field.risk-audit-hash',
70
+ 'field.risk-auditor-identity-hash',
71
+ ], 'Replacement Plan Risk Audit input.'),
72
+ projection('projection.input.plan-validation', 'schema.corrective-replan-plan-validation-attestation', [
73
+ 'field.plan-validation-hash', 'field.plan-validator-identity-hash',
74
+ ], 'Independent candidate-bound Plan Validation input.'),
75
+ projection('projection.input.execution-receipt', 'schema.corrective-replan-receipt', manifestFields, 'Explicit state-bound corrective-replan receipt.'),
76
+ projection('projection.input.replacement-plan', 'schema.task-plan-input', [
77
+ 'field.candidate-plan-hash',
78
+ 'field.candidate-step-ids',
79
+ 'field.candidate-step-set-hash',
80
+ ], 'Prepared replacement Plan input.'),
81
+ projection('projection.input.task-id', 'schema.task-id', [
82
+ 'field.task-id',
83
+ ], 'Task identity input.'),
84
+ projection('projection.task-state.readback', 'schema.task-state-readback', [
85
+ 'field.task-id',
86
+ 'field.task-plan-hash',
87
+ 'field.task-revision',
88
+ 'field.task-status',
89
+ ], 'Task state post-effect readback projection.'),
90
+ projection('projection.corrective-replan.terminal-readback', 'schema.task-state-readback', [
91
+ 'field.task-id', 'field.task-revision', 'field.task-status', 'field.current-plan-hash',
92
+ 'field.plan-validation-hash', 'field.risk-audit-hash', 'field.runtime-fingerprint', 'field.catalog-hash',
93
+ ], 'Domain and retained-terminal-journal readback projection.'),
94
+ ];
95
+ const inputs = [
96
+ input('input.corrective-plan-risk-audit', 'operator-input', 'risk-audit-file', 'schema.plan-risk-audit-input', 'projection.input.plan-risk-audit', 'hash-policy.canonical-json-sha256', 'Replacement Plan Risk Audit.'),
97
+ input('input.corrective-plan-validation', 'operator-input', 'validation-file', 'schema.corrective-replan-plan-validation-attestation', 'projection.input.plan-validation', 'hash-policy.canonical-json-sha256', 'Independent passed Plan Validation.'),
98
+ input('input.corrective-execution-receipt', 'credential', 'credential-file', 'schema.corrective-replan-receipt', 'projection.input.execution-receipt', 'hash-policy.canonical-json-sha256', 'Human-confirmed exact execution receipt.'),
99
+ input('input.corrective-replacement-plan', 'operator-input', 'file', 'schema.task-plan-input', 'projection.input.replacement-plan', 'hash-policy.raw-sha256', 'Replacement Plan.'),
100
+ input('input.expected-revision', 'binding', 'expected-revision', 'schema.expected-revision', 'projection.input.expected-revision', null, 'Expected Task revision.'),
101
+ input('input.task-id', 'binding', 'id', 'schema.task-id', 'projection.input.task-id', null, 'Task identity.'),
102
+ ];
103
+ const identities = [
104
+ identity('identity.actor', { kind: 'projection', field: field('projection.corrective-replan.authority', 'field.actor-identity-hash') }, 'Receipt-bound executing actor.'),
105
+ identity('identity.human-principal', { kind: 'projection', field: field('projection.corrective-replan.authority', 'field.human-principal-identity-hash') }, 'Human confirmation principal.'),
106
+ identity('identity.plan-author', { kind: 'projection', field: field('projection.corrective-replan.candidate', 'field.plan-author-identity-hash') }, 'Replacement Plan author.'),
107
+ identity('identity.plan-validator', { kind: 'projection', field: field('projection.corrective-replan.candidate', 'field.plan-validator-identity-hash') }, 'Independent Plan validator.'),
108
+ identity('identity.risk-auditor', { kind: 'projection', field: field('projection.corrective-replan.candidate', 'field.risk-auditor-identity-hash') }, 'Replacement Plan risk auditor.'),
109
+ identity('identity.workflow-core', { kind: 'workflow-core' }, 'Workflow Core audit identity.'),
110
+ ];
111
+ const identityComparators = [
112
+ comparator('identity-comparator.corrective-replan.author-validator', 'sod.plan-author-plan-validator-distinct', 'identity.plan-author', 'identity.plan-validator', 'distinct'),
113
+ comparator('identity-comparator.corrective-replan.author-risk-auditor', 'sod.plan-author-risk-auditor-distinct', 'identity.plan-author', 'identity.risk-auditor', 'distinct'),
114
+ comparator('identity-comparator.corrective-replan.author-human-principal', 'forbidden.plan-author-human-principal-self-authorize', 'identity.plan-author', 'identity.human-principal', 'cannot-authorize'),
115
+ ];
116
+ const guardEvaluators = [
117
+ guardEvaluator('active-decision', [], 'Active corrective decision evaluator.'),
118
+ guardEvaluator('attempt-threshold', [], 'Corrective remediation threshold evaluator.'),
119
+ guardEvaluator('bindings-current', ['input.expected-revision', 'input.task-id'], 'Exact binding freshness evaluator.'),
120
+ guardEvaluator('guarded-step-retained', ['input.corrective-replacement-plan'], 'Candidate guarded Step retention evaluator.'),
121
+ guardEvaluator('no-step-in-progress', [], 'Running Step exclusion evaluator.'),
122
+ guardEvaluator('semantic-plan-change', ['input.corrective-replacement-plan'], 'Candidate Plan semantic change evaluator.'),
123
+ guardEvaluator('source-posture', [], 'Task and guarded Step source posture evaluator.'),
124
+ guardEvaluator('actor-role-eligible', ['input.corrective-execution-receipt'], 'Exact actor-role eligibility evaluator.'),
125
+ guardEvaluator('no-c1-claim', ['input.corrective-execution-receipt'], 'C1 claim absence under the Task operation lock.'),
126
+ guardEvaluator('no-writer-lease', ['input.corrective-execution-receipt'], 'Writer lease absence under the Task operation lock.'),
127
+ guardEvaluator('plan-validation-passed', ['input.corrective-plan-validation'], 'Exact Plan Validation attestation verifier.'),
128
+ guardEvaluator('receipt-valid', ['input.corrective-execution-receipt'], 'State-bound execution receipt verifier.'),
129
+ guardEvaluator('risk-audit-passed', ['input.corrective-plan-risk-audit'], 'Exact candidate-bound Risk Audit verifier.'),
130
+ ];
131
+ const limitations = [
132
+ limitation('limitation.release-profile.verified-evidence-external', 'accepted', 'Package release evidence is verified outside runtime static readiness.'),
133
+ ];
134
+ const coverageProfiles = [{
135
+ id: exactTransitionCoverageProfileRef.id,
136
+ version: exactTransitionCoverageProfileRef.version,
137
+ description: 'Exact transition positive, hostile, replay, recovery, and postcondition evidence.',
138
+ requiredEvidenceKinds: [
139
+ 'conditional-effect-false',
140
+ 'conditional-effect-true',
141
+ 'guard-negative',
142
+ 'guard-positive',
143
+ 'journal-phase',
144
+ 'postcondition',
145
+ 'recovery-phase',
146
+ 'replay-conflicting',
147
+ 'replay-identical-completed',
148
+ 'replay-identical-in-progress',
149
+ ],
150
+ }];
151
+ const readinessRuleIds = [
152
+ 'readiness.atomicity.journal-required',
153
+ 'readiness.atomicity.replay-incomplete',
154
+ 'readiness.authority.actor-unbound',
155
+ 'readiness.authority.exact-capability-missing',
156
+ 'readiness.authority.state-bound-receipt-missing',
157
+ 'readiness.catalog.coverage-profile-empty',
158
+ 'readiness.catalog.coverage-report-invalid',
159
+ 'readiness.catalog.coverage-report-missing',
160
+ 'readiness.catalog.empty',
161
+ 'readiness.definition.limitation-blocked',
162
+ 'readiness.effect.narrow-lock-missing',
163
+ 'readiness.effect.race-revalidation-incomplete',
164
+ 'readiness.evidence.coverage-incomplete',
165
+ 'readiness.guard.enforcement-incomplete',
166
+ 'readiness.input.required-not-guarded',
167
+ 'readiness.readback.postcondition-incomplete',
168
+ ];
169
+ const semanticRules = [
170
+ { id: 'semantic-rule.definition-integrity', version: 1, description: 'Definition limitations and static integrity.', obligationIds: ['obligation.definition-integrity'] },
171
+ { id: 'semantic-rule.exact-authority', version: 1, description: 'Exact actor, capability, credential, and SoD authority.', obligationIds: ['obligation.exact-authority'] },
172
+ { id: 'semantic-rule.required-inputs', version: 1, description: 'Required exact mutation inputs and guard coverage.', obligationIds: ['obligation.required-inputs'] },
173
+ { id: 'semantic-rule.admission-boundary', version: 1, description: 'Exclusive lock and under-lock race revalidation.', obligationIds: ['obligation.admission-boundary'] },
174
+ { id: 'semantic-rule.reliable-effects', version: 1, description: 'Journal, replay, recovery, and readback completeness.', obligationIds: ['obligation.reliable-effects'] },
175
+ ];
176
+ const releaseProfiles = [{
177
+ id: exactMutationReleaseProfileRef.id,
178
+ version: exactMutationReleaseProfileRef.version,
179
+ description: 'Fail-closed exact mutating transition release profile.',
180
+ coverageProfile: exactTransitionCoverageProfileRef,
181
+ allowedLimitations: [v1('limitation.release-profile.verified-evidence-external')],
182
+ requiredRules: semanticRules.map(({ id, version }) => ({ id, version })),
183
+ requireExactAuthority: true,
184
+ requireExclusiveLockForMutation: true,
185
+ requireJournalForMultiWrite: true,
186
+ }];
187
+ export const transitionSemanticRegistry = deepFreeze(validateSemanticRegistry({
188
+ inputs,
189
+ schemas,
190
+ projections,
191
+ hashPolicies: [
192
+ { id: 'hash-policy.canonical-json-sha256', version: 1, description: 'Canonical JSON SHA-256.', algorithm: 'sha256', canonicalization: 'canonical-json' },
193
+ { id: 'hash-policy.raw-sha256', version: 1, description: 'Raw byte SHA-256.', algorithm: 'sha256', canonicalization: 'raw-bytes' },
194
+ ],
195
+ identities,
196
+ identityComparators,
197
+ principalBases: [
198
+ { id: 'principal-basis.human-confirmation', version: 1, description: 'Exact Human confirmation authority basis.', principalKind: 'human', authoritySource: 'human-confirmation' },
199
+ ],
200
+ capabilities: [{
201
+ id: 'capability.task.corrective-replan', version: 1, description: 'Human-issued capability for one exact replacement candidate.',
202
+ transitionId: 'task.plan.corrective-replan', issuer: v1('identity.human-principal'),
203
+ scope: v1('projection.corrective-replan.execution-receipt'), exactCandidateBound: true,
204
+ }],
205
+ credentialPolicies: [{
206
+ id: 'credential-policy.corrective-execution-receipt', version: 1, description: 'Exact state-bound Human-confirmed receipt.',
207
+ credentialKind: 'execution-receipt', schema: v1('schema.corrective-replan-receipt'),
208
+ verifier: v1('credential-verifier.corrective-replan.receipt'), issuer: v1('identity.human-principal'),
209
+ presentation: { mode: 'explicit-input', input: v1('input.corrective-execution-receipt') },
210
+ validity: { mode: 'bounded-ttl', clock: v1('clock.workflow-core-utc'), maxTtlMs: 900_000, skewMs: 30_000, expiryFailureCode: 'CREDENTIAL_EXPIRED' },
211
+ replay: { mode: 'execution-key-bound', executionKeyPolicy: v1('execution-key-policy.corrective-replan-exact') },
212
+ binding: { projection: v1('projection.corrective-replan.execution-receipt'), fieldIds: manifestFields },
213
+ }],
214
+ credentialVerifiers: [{ id: 'credential-verifier.corrective-replan.receipt', version: 1, description: 'The invoked Core credential kernel recomputes receipt and all current bindings.', verifierKind: 'state-bound-sha256' }],
215
+ clocks: [{ id: 'clock.workflow-core-utc', version: 1, description: 'Workflow Core injected UTC clock.', clockKind: 'workflow-core-utc' }],
216
+ delegationPolicies: [
217
+ { id: 'delegation.forbidden', version: 1, description: 'Delegation is forbidden.', mode: 'forbidden', scopeBound: false, expiryRequired: false, redelegationAllowed: false },
218
+ ],
219
+ ownershipPolicies: [
220
+ { id: 'ownership.corrective-replan-clear', version: 1, description: 'No C1 claim or Writer lease may remain at replan admission.', c1Ownership: 'forbidden', writerLease: 'forbidden', ownerBinding: 'actor' },
221
+ ],
222
+ guardEvaluators,
223
+ effectAdapters: [
224
+ { id: 'effect-adapter.journaled-corrective-replan', version: 1, description: 'Receipt-bound five-target corrective-replan executor.', adapterKind: 'journaled-corrective-replan' },
225
+ ],
226
+ resources: [
227
+ { id: 'resource.plan-artifact', version: 1, description: 'Published Task Plan artifact.', resourceKind: 'artifact' },
228
+ { id: 'resource.plan-validation-sidecar', version: 1, description: 'Plan Validation evidence sidecar.', resourceKind: 'sidecar' },
229
+ { id: 'resource.plan-risk-audit-sidecar', version: 1, description: 'Plan Risk Audit sidecar.', resourceKind: 'sidecar' },
230
+ { id: 'resource.corrective-replan-execution-sidecar', version: 1, description: 'Corrective-replan execution evidence sidecar.', resourceKind: 'sidecar' },
231
+ { id: 'resource.corrective-replan-journal', version: 1, description: 'Retained Task corrective-replan journal.', resourceKind: 'journal' },
232
+ { id: 'resource.task-state', version: 1, description: 'Task state.', resourceKind: 'task-state' },
233
+ ],
234
+ lockPolicies: [
235
+ { id: 'lock-policy.corrective-replan-task-exclusive', version: 1, description: 'Same-slot exclusive Task operation lock.', lockKind: 'exclusive-task', scope: slice('projection.corrective-replan.state', ['field.task-id']) },
236
+ ],
237
+ executionKeyPolicies: [
238
+ { id: 'execution-key-policy.corrective-replan-exact', version: 1, description: 'Exact AD-16 28-field execution key.', requiredFields: executionKeyFields },
239
+ ],
240
+ journalSchemas: [{ id: 'journal-schema.corrective-replan-task', version: 1, description: 'Closed retained Task transaction journal.', schema: v1('schema.corrective-replan-task-transaction') }],
241
+ journalAdapters: [{ id: 'journal-adapter.corrective-replan-task', version: 1, description: 'Durable exact-target Task journal.', compatibleEffectAdapters: [v1('effect-adapter.journaled-corrective-replan')] }],
242
+ recoveryAdapters: [{ id: 'recovery-adapter.corrective-replan-roll-forward', version: 1, description: 'Explicit apply-or-confirm roll-forward.', compatibleJournalAdapters: [v1('journal-adapter.corrective-replan-task')] }],
243
+ readbackAdapters: [
244
+ {
245
+ id: 'readback-adapter.corrective-replan-terminal',
246
+ version: 1,
247
+ description: 'Domain readback before completion and retained-journal readback after terminal.',
248
+ compatibleEffectAdapters: [v1('effect-adapter.journaled-corrective-replan')],
249
+ wiring: 'invoked-post-effect',
250
+ implementationResult: 'projected-readback',
251
+ validationProjection: v1('projection.corrective-replan.terminal-readback'),
252
+ projectionWiring: 'invoked',
253
+ },
254
+ ],
255
+ limitations,
256
+ releaseProfiles,
257
+ coverageProfiles,
258
+ coverageProducers: [],
259
+ semanticRules,
260
+ readinessRuleIds: [...readinessRuleIds],
261
+ }));
262
+ export function validateSemanticRegistry(registry) {
263
+ const categories = [
264
+ registry.inputs,
265
+ registry.schemas,
266
+ registry.projections,
267
+ registry.hashPolicies,
268
+ registry.identities,
269
+ registry.identityComparators,
270
+ registry.principalBases,
271
+ registry.capabilities,
272
+ registry.credentialPolicies,
273
+ registry.credentialVerifiers,
274
+ registry.clocks,
275
+ registry.delegationPolicies,
276
+ registry.ownershipPolicies,
277
+ registry.guardEvaluators,
278
+ registry.effectAdapters,
279
+ registry.resources,
280
+ registry.lockPolicies,
281
+ registry.executionKeyPolicies,
282
+ registry.journalSchemas,
283
+ registry.journalAdapters,
284
+ registry.recoveryAdapters,
285
+ registry.readbackAdapters,
286
+ registry.limitations,
287
+ registry.releaseProfiles,
288
+ registry.coverageProfiles,
289
+ registry.coverageProducers,
290
+ registry.semanticRules,
291
+ ];
292
+ for (const entries of categories)
293
+ assertUniqueRegisteredEntries(entries);
294
+ assertUniqueStrings(registry.readinessRuleIds, 'readiness rule IDs');
295
+ for (const projectionEntry of registry.projections) {
296
+ resolveRegistryEntry(registry.schemas, projectionEntry.schema, 'schema');
297
+ assertUniqueStrings(projectionEntry.fieldIds, `${projectionEntry.id} fields`);
298
+ }
299
+ for (const inputEntry of registry.inputs) {
300
+ resolveRegistryEntry(registry.schemas, inputEntry.schema, 'schema');
301
+ resolveRegistryEntry(registry.projections, inputEntry.projection, 'projection');
302
+ if (inputEntry.hashPolicy)
303
+ resolveRegistryEntry(registry.hashPolicies, inputEntry.hashPolicy, 'hash policy');
304
+ }
305
+ for (const identityEntry of registry.identities) {
306
+ if (identityEntry.normalization) {
307
+ resolveRegistryEntry(registry.hashPolicies, identityEntry.normalization, 'hash policy');
308
+ }
309
+ if (identityEntry.provider.kind === 'projection')
310
+ assertProjectionField(registry, identityEntry.provider.field);
311
+ }
312
+ for (const comparator of registry.identityComparators) {
313
+ if (comparator.operands.length < 2)
314
+ throw new TypeError(`Identity comparator ${comparator.id} has fewer than two operands.`);
315
+ assertUniqueStrings(comparator.operands.map((operand) => `${operand.id}@${operand.version}`), `${comparator.id} operands`);
316
+ for (const operand of comparator.operands)
317
+ resolveRegistryEntry(registry.identities, operand, 'identity comparator operand');
318
+ }
319
+ for (const capabilityEntry of registry.capabilities) {
320
+ resolveRegistryEntry(registry.identities, capabilityEntry.issuer, 'identity');
321
+ resolveRegistryEntry(registry.projections, capabilityEntry.scope, 'projection');
322
+ }
323
+ for (const credentialEntry of registry.credentialPolicies)
324
+ validateCredentialPolicy(registry, credentialEntry);
325
+ for (const evaluator of registry.guardEvaluators) {
326
+ resolveRegistryEntry(registry.projections, evaluator.snapshot, 'projection');
327
+ resolveRegistryEntry(registry.projections, evaluator.binding, 'projection');
328
+ for (const inputRef of evaluator.allowedInputs)
329
+ resolveRegistryEntry(registry.inputs, inputRef, 'input');
330
+ }
331
+ for (const profile of registry.coverageProfiles) {
332
+ if (profile.requiredEvidenceKinds.length === 0)
333
+ throw new TypeError(`Coverage profile ${profile.id} is empty.`);
334
+ assertUniqueStrings(profile.requiredEvidenceKinds, `${profile.id} evidence kinds`);
335
+ }
336
+ for (const profile of registry.releaseProfiles)
337
+ validateReleaseProfile(registry, profile);
338
+ for (const policy of registry.executionKeyPolicies) {
339
+ if (policy.requiredFields.length === 0)
340
+ throw new TypeError(`Execution key policy ${policy.id} is empty.`);
341
+ assertUniqueStrings(policy.requiredFields.map(projectionFieldKey), `${policy.id} required fields`);
342
+ for (const requiredField of policy.requiredFields)
343
+ assertProjectionField(registry, requiredField);
344
+ }
345
+ for (const policy of registry.lockPolicies) {
346
+ if (policy.lockKind === 'none' && policy.scope !== null)
347
+ throw new TypeError(`Lock policy ${policy.id} cannot declare a scope.`);
348
+ if (policy.lockKind !== 'none' && policy.scope === null)
349
+ throw new TypeError(`Lock policy ${policy.id} requires a scope.`);
350
+ if (policy.scope)
351
+ assertProjectionSlice(registry, policy.scope);
352
+ }
353
+ for (const adapter of registry.readbackAdapters) {
354
+ resolveRegistryEntry(registry.projections, adapter.validationProjection, 'readback validation projection');
355
+ if (adapter.implementationResult === 'raw-task-state' && adapter.projectionWiring !== 'unimplemented') {
356
+ throw new TypeError(`Readback adapter ${adapter.id} cannot claim projected validation for a raw TaskState result.`);
357
+ }
358
+ }
359
+ return registry;
360
+ }
361
+ export function resolveRegistryEntry(entries, ref, label) {
362
+ const match = entries.find((entry) => entry.id === ref.id && entry.version === ref.version);
363
+ if (!match)
364
+ throw new TypeError(`Unknown registered ${label} ${ref.id}@${ref.version}.`);
365
+ return match;
366
+ }
367
+ function validateCredentialPolicy(registry, policy) {
368
+ resolveRegistryEntry(registry.schemas, policy.schema, 'credential schema');
369
+ resolveRegistryEntry(registry.credentialVerifiers, policy.verifier, 'credential verifier');
370
+ resolveRegistryEntry(registry.identities, policy.issuer, 'credential issuer');
371
+ assertProjectionSlice(registry, policy.binding);
372
+ if (policy.presentation.mode === 'explicit-input')
373
+ resolveRegistryEntry(registry.inputs, policy.presentation.input, 'credential input');
374
+ if (policy.validity.mode === 'bounded-ttl') {
375
+ resolveRegistryEntry(registry.clocks, policy.validity.clock, 'clock');
376
+ if (!Number.isInteger(policy.validity.maxTtlMs) || policy.validity.maxTtlMs <= 0) {
377
+ throw new TypeError(`Credential policy ${policy.id} has invalid maxTtlMs.`);
378
+ }
379
+ if (!Number.isInteger(policy.validity.skewMs) || policy.validity.skewMs < 0) {
380
+ throw new TypeError(`Credential policy ${policy.id} has invalid skewMs.`);
381
+ }
382
+ }
383
+ if (policy.replay.mode === 'execution-key-bound') {
384
+ resolveRegistryEntry(registry.executionKeyPolicies, policy.replay.executionKeyPolicy, 'execution key policy');
385
+ }
386
+ if (policy.id === 'credential-policy.corrective-execution-receipt' && policy.version === 1) {
387
+ const exactProjection = resolveRegistryEntry(registry.projections, v1('projection.corrective-replan.execution-receipt'), 'exact corrective receipt projection');
388
+ if (policy.binding.projection.id !== exactProjection.id
389
+ || policy.binding.projection.version !== exactProjection.version
390
+ || policy.binding.fieldIds.length !== exactProjection.fieldIds.length
391
+ || exactProjection.fieldIds.some((fieldId) => !policy.binding.fieldIds.includes(fieldId))) {
392
+ throw new TypeError('Exact corrective receipt policy must bind every registered receipt field exactly once.');
393
+ }
394
+ if (policy.presentation.mode !== 'explicit-input'
395
+ || policy.presentation.input.id !== 'input.corrective-execution-receipt'
396
+ || policy.validity.mode !== 'bounded-ttl'
397
+ || policy.replay.mode !== 'execution-key-bound'
398
+ || policy.verifier.id !== 'credential-verifier.corrective-replan.receipt') {
399
+ throw new TypeError('Exact corrective receipt policy has incomplete presentation, TTL, replay, or verifier semantics.');
400
+ }
401
+ }
402
+ }
403
+ function validateReleaseProfile(registry, profile) {
404
+ resolveRegistryEntry(registry.coverageProfiles, profile.coverageProfile, 'coverage profile');
405
+ assertUniqueStrings(profile.requiredRules.map((rule) => `${rule.id}@${rule.version}`), `${profile.id} semantic rules`);
406
+ for (const ruleRef of profile.requiredRules) {
407
+ resolveRegistryEntry(registry.semanticRules, ruleRef, 'semantic rule');
408
+ }
409
+ for (const limitationRef of profile.allowedLimitations) {
410
+ const limitationEntry = resolveRegistryEntry(registry.limitations, limitationRef, 'limitation');
411
+ if (limitationEntry.disposition !== 'accepted') {
412
+ throw new TypeError(`Release profile ${profile.id} cannot allow unresolved limitation ${limitationRef.id}@${limitationRef.version}.`);
413
+ }
414
+ }
415
+ }
416
+ function assertProjectionField(registry, field) {
417
+ const projectionEntry = resolveRegistryEntry(registry.projections, field.projection, 'projection');
418
+ if (!projectionEntry.fieldIds.includes(field.fieldId)) {
419
+ throw new TypeError(`Projection ${field.projection.id}@${field.projection.version} has no field ${field.fieldId}.`);
420
+ }
421
+ }
422
+ function assertProjectionSlice(registry, slice) {
423
+ const projectionEntry = resolveRegistryEntry(registry.projections, slice.projection, 'projection');
424
+ assertUniqueStrings(slice.fieldIds, `${slice.projection.id} slice fields`);
425
+ for (const fieldId of slice.fieldIds) {
426
+ if (!projectionEntry.fieldIds.includes(fieldId))
427
+ throw new TypeError(`Projection ${slice.projection.id} has no field ${fieldId}.`);
428
+ }
429
+ }
430
+ function assertUniqueRegisteredEntries(entries) {
431
+ assertUniqueStrings(entries.map((entry) => `${entry.id}@${entry.version}`), 'registered ID/version pairs');
432
+ }
433
+ function assertUniqueStrings(values, label) {
434
+ if (new Set(values).size !== values.length)
435
+ throw new TypeError(`Duplicate ${label}.`);
436
+ }
437
+ function schema(id, valueKind, description) {
438
+ return { id, version: 1, description, valueKind };
439
+ }
440
+ function projection(id, schemaId, fieldIds, description) {
441
+ return { id, version: 1, description, schema: v1(schemaId), fieldIds };
442
+ }
443
+ function input(id, source, cliName, schemaId, projectionId, hashPolicyId, description) {
444
+ return {
445
+ id,
446
+ version: 1,
447
+ description,
448
+ source,
449
+ cliName,
450
+ schema: v1(schemaId),
451
+ projection: v1(projectionId),
452
+ hashPolicy: hashPolicyId ? v1(hashPolicyId) : null,
453
+ };
454
+ }
455
+ function identity(id, provider, description) {
456
+ return { id, version: 1, description, provider, normalization: null };
457
+ }
458
+ function comparator(id, constraintId, left, right, relation) {
459
+ return {
460
+ id, version: 1, description: `Exact ${constraintId} identity comparison.`,
461
+ transitionId: 'task.plan.corrective-replan', constraintId,
462
+ operands: [v1(left), v1(right)], relation, missingIdentity: 'block',
463
+ };
464
+ }
465
+ function guardEvaluator(suffix, allowedInputIds, description) {
466
+ return {
467
+ id: `guard-evaluator.task.corrective-replan.${suffix}`,
468
+ version: 1,
469
+ description,
470
+ transitionId: 'task.plan.corrective-replan',
471
+ guardId: `task.corrective-replan.${suffix}`,
472
+ snapshot: correctiveSnapshotRef,
473
+ binding: correctiveBindingRef,
474
+ allowedInputs: allowedInputIds.map(v1),
475
+ };
476
+ }
477
+ function limitation(id, disposition, description) {
478
+ return { id, version: 1, description, disposition };
479
+ }
480
+ function field(projectionId, fieldId) {
481
+ return { projection: v1(projectionId), fieldId };
482
+ }
483
+ function slice(projectionId, fieldIds) {
484
+ return { projection: v1(projectionId), fieldIds };
485
+ }
486
+ function projectionFieldKey(value) {
487
+ return `${value.projection.id}@${value.projection.version}:${value.fieldId}`;
488
+ }
489
+ //# sourceMappingURL=semantic-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semantic-registry.js","sourceRoot":"","sources":["../../../src/lifecycle/semantic-registry.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,MAAM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