codex-workflow-v2 2.0.0-beta.13.8 → 2.0.0-beta.14
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.
- package/README.md +27 -388
- package/dist/reviewer-runtime-build.json +96 -32
- package/dist/src/alpha6/adoption.d.ts +2 -0
- package/dist/src/alpha6/adoption.js +22 -0
- package/dist/src/alpha6/adoption.js.map +1 -1
- package/dist/src/alpha6/captured-check-evidence.d.ts +51 -0
- package/dist/src/alpha6/captured-check-evidence.js +152 -0
- package/dist/src/alpha6/captured-check-evidence.js.map +1 -0
- package/dist/src/alpha6/component-owner.d.ts +15 -1
- package/dist/src/alpha6/component-owner.js +44 -2
- package/dist/src/alpha6/component-owner.js.map +1 -1
- package/dist/src/alpha6/corrective-decision-boundary.d.ts +4 -0
- package/dist/src/alpha6/corrective-decision-boundary.js +47 -0
- package/dist/src/alpha6/corrective-decision-boundary.js.map +1 -0
- package/dist/src/alpha6/downstream-proof.d.ts +1 -25
- package/dist/src/alpha6/downstream-proof.js +0 -171
- package/dist/src/alpha6/downstream-proof.js.map +1 -1
- package/dist/src/alpha6/failed-step-planning-recovery.d.ts +10 -0
- package/dist/src/alpha6/failed-step-planning-recovery.js +93 -0
- package/dist/src/alpha6/failed-step-planning-recovery.js.map +1 -0
- package/dist/src/alpha6/literal-test-invocation.d.ts +2 -0
- package/dist/src/alpha6/literal-test-invocation.js +106 -0
- package/dist/src/alpha6/literal-test-invocation.js.map +1 -0
- package/dist/src/alpha6/milestone.d.ts +2 -0
- package/dist/src/alpha6/milestone.js +10 -1
- package/dist/src/alpha6/milestone.js.map +1 -1
- package/dist/src/alpha6/navigation-dirty-carryover.d.ts +11 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js +130 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js.map +1 -0
- package/dist/src/alpha6/plan-integrity.js +7 -5
- package/dist/src/alpha6/plan-integrity.js.map +1 -1
- package/dist/src/alpha6/plan-risk.d.ts +2 -0
- package/dist/src/alpha6/plan-risk.js +10 -3
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/alpha6/remediation.d.ts +6 -21
- package/dist/src/alpha6/remediation.js +161 -476
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/alpha6/root-cause-replan-carryover.d.ts +4 -1
- package/dist/src/alpha6/root-cause-replan-carryover.js +29 -5
- package/dist/src/alpha6/root-cause-replan-carryover.js.map +1 -1
- package/dist/src/beta1/project-transaction.d.ts +3 -1
- package/dist/src/beta1/project-transaction.js +6 -2
- package/dist/src/beta1/project-transaction.js.map +1 -1
- package/dist/src/checks/runner.d.ts +26 -0
- package/dist/src/checks/runner.js +223 -0
- package/dist/src/checks/runner.js.map +1 -0
- package/dist/src/checks/task-sync.d.ts +10 -0
- package/dist/src/checks/task-sync.js +41 -0
- package/dist/src/checks/task-sync.js.map +1 -0
- package/dist/src/checks/worker.d.ts +1 -0
- package/dist/src/checks/worker.js +154 -0
- package/dist/src/checks/worker.js.map +1 -0
- package/dist/src/cli-actions.d.ts +2 -2
- package/dist/src/cli-actions.js +3 -15
- package/dist/src/cli-actions.js.map +1 -1
- package/dist/src/cli.js +14 -98
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +35 -32
- package/dist/src/dependency-provenance.d.ts +2 -2
- package/dist/src/dependency-provenance.js +12 -69
- package/dist/src/dependency-provenance.js.map +1 -1
- package/dist/src/domain/base-sync-conflict.d.ts +13 -0
- package/dist/src/domain/base-sync-conflict.js +32 -0
- package/dist/src/domain/base-sync-conflict.js.map +1 -0
- package/dist/src/domain/step-start-admission.d.ts +4 -0
- package/dist/src/domain/step-start-admission.js +9 -0
- package/dist/src/domain/step-start-admission.js.map +1 -0
- package/dist/src/domain/virgin-registration.d.ts +3 -0
- package/dist/src/domain/virgin-registration.js +65 -0
- package/dist/src/domain/virgin-registration.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/gateway-handshake.js +0 -8
- package/dist/src/gateway-handshake.js.map +1 -1
- package/dist/src/git.d.ts +3 -1
- package/dist/src/git.js +41 -14
- package/dist/src/git.js.map +1 -1
- package/dist/src/graph.js +25 -3
- package/dist/src/graph.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lifecycle/corrective-replan.js +3 -3
- package/dist/src/lifecycle/corrective-replan.js.map +1 -1
- package/dist/src/navigation-actions.d.ts +9 -0
- package/dist/src/navigation-actions.js +72 -0
- package/dist/src/navigation-actions.js.map +1 -0
- package/dist/src/navigation-update-artifact.d.ts +5 -0
- package/dist/src/navigation-update-artifact.js +227 -0
- package/dist/src/navigation-update-artifact.js.map +1 -0
- package/dist/src/navigation-update.d.ts +39 -0
- package/dist/src/navigation-update.js +82 -0
- package/dist/src/navigation-update.js.map +1 -0
- package/dist/src/observation.js +52 -29
- package/dist/src/observation.js.map +1 -1
- package/dist/src/observed-routes.js +5 -6
- package/dist/src/observed-routes.js.map +1 -1
- package/dist/src/pending-review-update.d.ts +0 -13
- package/dist/src/pending-review-update.js +1 -6
- package/dist/src/pending-review-update.js.map +1 -1
- package/dist/src/reviewer.d.ts +1 -1
- package/dist/src/reviewer.js +20 -17
- package/dist/src/reviewer.js.map +1 -1
- package/dist/src/runtime.d.ts +3 -0
- package/dist/src/runtime.js +6 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/state/corrective-replan-executor.d.ts +10 -0
- package/dist/src/state/corrective-replan-executor.js +37 -1
- package/dist/src/state/corrective-replan-executor.js.map +1 -1
- package/dist/src/state/corrective-replan-public-schema.js +15 -2
- package/dist/src/state/corrective-replan-public-schema.js.map +1 -1
- package/dist/src/state/corrective-replan-public.js +6 -5
- package/dist/src/state/corrective-replan-public.js.map +1 -1
- package/dist/src/state/corrective-replan-transaction.d.ts +1 -0
- package/dist/src/state/corrective-replan-transaction.js +12 -11
- package/dist/src/state/corrective-replan-transaction.js.map +1 -1
- package/dist/src/state/corrective-yield-executor.js +2 -2
- package/dist/src/state/corrective-yield-executor.js.map +1 -1
- package/dist/src/state/corrective-yield-transaction.d.ts +1 -0
- package/dist/src/state/corrective-yield-transaction.js +11 -10
- package/dist/src/state/corrective-yield-transaction.js.map +1 -1
- package/dist/src/state/lock.d.ts +4 -0
- package/dist/src/state/lock.js +21 -0
- package/dist/src/state/lock.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/src/workflow-blocker-route.d.ts +8 -0
- package/dist/src/workflow-blocker-route.js +106 -0
- package/dist/src/workflow-blocker-route.js.map +1 -0
- package/dist/src/workflow.d.ts +48 -63
- package/dist/src/workflow.js +698 -1470
- package/dist/src/workflow.js.map +1 -1
- package/docs/autonomy-guardrails.md +26 -304
- package/docs/decisions.md +14 -112
- package/docs/development-flow.md +35 -238
- package/docs/project-memory.md +31 -50
- package/docs/release-app-evidence.md +190 -0
- package/docs/release.md +95 -363
- package/docs/updating-existing-project.md +19 -717
- package/package.json +11 -13
- package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +2 -2
- package/plugins/codex-workflow-gateway/references/chat-dispatch.md +73 -197
- package/plugins/codex-workflow-gateway/references/codebase-memory-routing.md +57 -0
- package/plugins/codex-workflow-gateway/references/protocol.md +42 -445
- package/plugins/codex-workflow-gateway/scripts/chat-dispatch.mjs +7 -1
- package/plugins/codex-workflow-gateway/scripts/chat-model-policy.mjs +10 -8
- package/plugins/codex-workflow-gateway/scripts/chat-registry.mjs +23 -5
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +66 -740
- package/references/state-machine.md +4 -4
- package/roles/technical-planner.md +1 -1
- package/schemas/corrective-decision-event.schema.json +3 -1
- package/schemas/project-knowledge-map.schema.json +3 -1
- package/schemas/remediation-event.schema.json +10 -1
- package/schemas/task.schema.json +46 -2
- package/schemas/transition-payloads.schema.json +16 -1
- package/src/alpha6/adoption.ts +1123 -0
- package/src/alpha6/captured-check-evidence.ts +132 -0
- package/src/alpha6/check-support-anchor.ts +128 -0
- package/src/alpha6/component-owner.ts +168 -0
- package/src/alpha6/corrective-decision-boundary.ts +39 -0
- package/src/alpha6/downstream-proof.ts +520 -0
- package/src/alpha6/failed-step-planning-recovery.ts +88 -0
- package/src/alpha6/handoff.ts +1443 -0
- package/src/alpha6/journal.ts +473 -0
- package/src/alpha6/literal-test-invocation.ts +84 -0
- package/src/alpha6/mechanical-feasibility.ts +488 -0
- package/src/alpha6/milestone.ts +2192 -0
- package/src/alpha6/navigation-dirty-carryover.ts +154 -0
- package/src/alpha6/npm-check-contract.ts +47 -0
- package/src/alpha6/plan-integrity.ts +298 -0
- package/src/alpha6/plan-risk.ts +1480 -0
- package/src/alpha6/preexecution-replan.ts +187 -0
- package/src/alpha6/remediation-cause.ts +98 -0
- package/src/alpha6/remediation.ts +2438 -0
- package/src/alpha6/review.ts +1198 -0
- package/src/alpha6/root-cause-replan-carryover.ts +491 -0
- package/src/alpha6/store-sidecars.ts +335 -0
- package/src/alpha7/autonomy.ts +411 -0
- package/src/alpha7/corrective-recovery.ts +1332 -0
- package/src/artifacts.ts +130 -0
- package/src/beta1/project-transaction.ts +355 -0
- package/src/change-explanation.ts +153 -0
- package/src/checks/runner.ts +245 -0
- package/src/checks/task-sync.ts +41 -0
- package/src/checks/worker.ts +149 -0
- package/src/cli-actions.ts +107 -0
- package/src/cli.ts +1457 -0
- package/src/contracts.ts +1494 -0
- package/src/credential-output.ts +89 -0
- package/src/credential-transport.ts +215 -0
- package/src/delegation.ts +190 -0
- package/src/dependency-provenance.ts +472 -0
- package/src/diagnostics.ts +93 -0
- package/src/domain/base-sync-conflict.ts +35 -0
- package/src/domain/completed-step-carryover.ts +76 -0
- package/src/domain/discovery.ts +27 -0
- package/src/domain/plan-semantics.ts +58 -0
- package/src/domain/step-start-admission.ts +10 -0
- package/src/domain/validation.ts +177 -0
- package/src/domain/virgin-registration.ts +46 -0
- package/src/errors.ts +24 -0
- package/src/fs-utils.ts +61 -0
- package/src/gateway-handshake.ts +95 -0
- package/src/git.ts +183 -0
- package/src/graph.ts +342 -0
- package/src/historical-step-provenance.ts +136 -0
- package/src/index.ts +23 -0
- package/src/lifecycle/canonical-hash.ts +28 -0
- package/src/lifecycle/catalog.ts +202 -0
- package/src/lifecycle/compiler-inspection.ts +29 -0
- package/src/lifecycle/core-static-readiness.ts +132 -0
- package/src/lifecycle/corrective-replan-authority.ts +136 -0
- package/src/lifecycle/corrective-replan-binding-manifest.ts +51 -0
- package/src/lifecycle/corrective-replan-credential-core.ts +408 -0
- package/src/lifecycle/corrective-replan-credential-schema.ts +54 -0
- package/src/lifecycle/corrective-replan-credentials.ts +48 -0
- package/src/lifecycle/corrective-replan.ts +843 -0
- package/src/lifecycle/evaluator.ts +48 -0
- package/src/lifecycle/fingerprint.ts +488 -0
- package/src/lifecycle/immutable.ts +8 -0
- package/src/lifecycle/implementation-table.ts +118 -0
- package/src/lifecycle/index.ts +8 -0
- package/src/lifecycle/schema-artifact.ts +263 -0
- package/src/lifecycle/semantic-registry.ts +572 -0
- package/src/lifecycle/types.ts +838 -0
- package/src/memory.ts +273 -0
- package/src/migration.ts +161 -0
- package/src/navigation-actions.ts +70 -0
- package/src/navigation-update-artifact.ts +198 -0
- package/src/navigation-update.ts +121 -0
- package/src/observation.ts +225 -0
- package/src/observed-routes.ts +660 -0
- package/src/operational-contract.ts +125 -0
- package/src/pending-review-update.ts +175 -0
- package/src/repository.ts +99 -0
- package/src/reviewer.ts +1879 -0
- package/src/runtime.ts +6 -0
- package/src/state/corrective-replan-executor.ts +818 -0
- package/src/state/corrective-replan-public-schema.ts +83 -0
- package/src/state/corrective-replan-public.ts +908 -0
- package/src/state/corrective-replan-transaction.ts +949 -0
- package/src/state/corrective-yield-executor.ts +327 -0
- package/src/state/corrective-yield-transaction.ts +730 -0
- package/src/state/lock.ts +902 -0
- package/src/state/store.ts +567 -0
- package/src/transition-core.ts +330 -0
- package/src/ulid.ts +24 -0
- package/src/version.ts +2 -0
- package/src/workflow-blocker-route.ts +109 -0
- package/src/workflow.ts +10172 -0
- package/docs/alpha7.1-implementation-brief.md +0 -268
- package/docs/alpha7.2-corrective-context-refresh-brief.md +0 -484
- package/docs/alpha7.2.1-remediation-recovery-brief.md +0 -86
- package/docs/beta1-stabilization-brief.md +0 -165
- package/docs/beta11-plan-integrity-recovery-brief.md +0 -38
- package/docs/beta13.2-signal-review-recovery.md +0 -38
- package/docs/beta2-initial-assembly-navigation-brief.md +0 -616
- package/docs/change-model.md +0 -118
- package/docs/delegated-approval.md +0 -254
- package/docs/lifecycle/state-machine-stabilization.md +0 -641
- package/docs/pdf/README.md +0 -24
- package/docs/pdf/codex-workflow-v2-architecture-ru.pdf +0 -0
- package/docs/pdf/codex-workflow-v2-chat-only-guide-ru.pdf +0 -0
- package/docs/pdf/codex-workflow-v2-technical-reference-ru.pdf +0 -0
- package/docs/pdf/requirements.txt +0 -1
- package/docs/pdf/sources/codex-workflow-v2-architecture-ru.md +0 -478
- package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +0 -508
- package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +0 -778
- package/docs/pending-review-update.md +0 -15
- package/docs/problem-briefs/01-pre-implementation-integrity.md +0 -482
- package/docs/problem-briefs/02-minimal-step-integrity.md +0 -411
- package/docs/problem-briefs/03-minimal-agent-context-integrity.md +0 -358
- package/docs/problem-briefs/04-task-dependency-and-structural-replacement-integrity.md +0 -573
- package/docs/problem-briefs/BRIEF-TEMPLATE.md +0 -56
- package/docs/problem-briefs/README.md +0 -120
- package/docs/problem-briefs/evidence/p01-mechanical-feasibility-corpus.md +0 -90
- package/docs/problem-briefs/evidence/signal-v4-pre-m3-replay.md +0 -246
- package/docs/split-required-recovery.md +0 -47
- package/docs/stable-release-defect-register.md +0 -730
- package/docs/validation-report.md +0 -182
- package/scripts/generate-pdf-docs.py +0 -524
- package/scripts/run-pdf-docs.mjs +0 -62
|
@@ -6,11 +6,11 @@ to the task commit and Brief, Plan, and evidence hashes. Final acceptance is a s
|
|
|
6
6
|
human event bound to Result, evidence, and commit. Locks expire only diagnostically;
|
|
7
7
|
removing a stale lock is always an explicit repair operation.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
evidence
|
|
11
|
-
|
|
9
|
+
The current execution contract uses `stateSchemaVersion: 2` and protocol 2.
|
|
10
|
+
Existing sidecar evidence is verified by its bound history; it does not enable
|
|
11
|
+
execution through an older package or protocol.
|
|
12
12
|
|
|
13
|
-
Before execution authorization, every
|
|
13
|
+
Before execution authorization, every Task must have a current Plan Risk Audit bound
|
|
14
14
|
to the current Brief, Plan, Knowledge Map, and exact Step set. The audit is required even when
|
|
15
15
|
all Steps are unguarded, must name distinct planner/auditor actors, and must bind guarded
|
|
16
16
|
failure modes to exact Step checks. Each newly recorded guarded failure mode also requires one
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Translate an approved Brief into an execution-ready Plan.
|
|
4
4
|
|
|
5
5
|
- Read the approved knowledge sources relevant to the Task and bind the Plan to the active map revision/hash.
|
|
6
|
-
- Declare `knowledgeImpact`, its reason, targets, and `graphUse
|
|
6
|
+
- Declare `knowledgeImpact`, its reason, targets, and `graphUse: not-applicable` (Product graph is inactive); do not hide missing knowledge as an implementation choice.
|
|
7
7
|
- Every requirement must be covered by at least one `STEP-*`.
|
|
8
8
|
- Each Step declares dependencies, outputs, allowed writes, forbidden scope, and checks.
|
|
9
9
|
- Perform a risk review before `plan-set`. A Plan that touches migrations, concurrent state,
|
|
@@ -234,13 +234,15 @@
|
|
|
234
234
|
"items": {
|
|
235
235
|
"type": "object", "additionalProperties": false,
|
|
236
236
|
"required": ["reasonCode", "command", "runnerPath", "ownerPath", "ownerHash", "importChain", "diagnosticPath", "componentRoot"],
|
|
237
|
+
"allOf": [{ "if": { "required": ["testInvocation"] }, "then": { "properties": { "importChain": { "maxItems": 1 } } }, "else": { "properties": { "importChain": { "minItems": 2 } } } }],
|
|
237
238
|
"properties": {
|
|
238
239
|
"reasonCode": { "const": "FAILED_CHECK_COMPONENT_OWNER_OUTSIDE_ALLOWED_WRITES" },
|
|
239
240
|
"command": { "type": "string", "minLength": 1 },
|
|
240
241
|
"runnerPath": { "type": "string", "minLength": 1 },
|
|
241
242
|
"ownerPath": { "type": "string", "minLength": 1 },
|
|
242
243
|
"ownerHash": { "$ref": "#/$defs/hash64" },
|
|
243
|
-
"importChain": { "$ref": "#/$defs/stringList", "minItems":
|
|
244
|
+
"importChain": { "$ref": "#/$defs/stringList", "minItems": 1 },
|
|
245
|
+
"testInvocation": {"type": "object", "additionalProperties": false, "required": ["kind", "runnerHash", "argv", "migrationOutputs", "catalogNames"], "properties": {"kind": {"const": "literal-vitest-catalog"}, "runnerHash": {"type": "string", "pattern": "^[a-f0-9]{64}$"}, "argv": {"type": "array", "items": {"type": "string"}, "minItems": 3}, "migrationOutputs": {"type": "array", "items": {"type": "string"}, "minItems": 1, "uniqueItems": true}, "catalogNames": {"type": "array", "items": {"type": "string", "pattern": "^[0-9]{4}_[a-z0-9_]+\\.sql$"}, "minItems": 1, "uniqueItems": true}}},
|
|
244
246
|
"diagnosticPath": { "type": "string", "minLength": 1 },
|
|
245
247
|
"componentRoot": { "type": "string", "minLength": 1 }
|
|
246
248
|
}
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
"title": "Codex Workflow V2 Project Knowledge Map",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"required": ["schemaVersion", "revision", "id", "projectId", "kind", "status", "entries", "gaps", "conflicts", "approval"],
|
|
7
|
+
"required": ["schemaVersion", "revision", "id", "projectId", "createdAt", "updatedAt", "kind", "status", "entries", "gaps", "conflicts", "approval"],
|
|
8
8
|
"properties": {
|
|
9
9
|
"schemaVersion": { "const": 2 },
|
|
10
10
|
"revision": { "type": "integer", "minimum": 1 },
|
|
11
11
|
"id": { "const": "PROJECT-KNOWLEDGE-MAP" },
|
|
12
12
|
"projectId": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
|
|
13
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
14
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
13
15
|
"kind": { "const": "knowledge-map" },
|
|
14
16
|
"status": { "enum": ["draft", "awaiting_approval", "active", "stale", "conflicted"] },
|
|
15
17
|
"entries": {
|
|
@@ -33,7 +33,16 @@
|
|
|
33
33
|
"reviewEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
34
34
|
"reviewerAttestationHash": { "$ref": "#/$defs/nullableHash64" },
|
|
35
35
|
"executionTaskRevision": { "type": "integer", "minimum": 1 },
|
|
36
|
-
"dirtyWorktreeHash": { "$ref": "#/$defs/hash64" }
|
|
36
|
+
"dirtyWorktreeHash": { "$ref": "#/$defs/hash64" },
|
|
37
|
+
"unclaimedExecutionBoundary": {
|
|
38
|
+
"type": "object", "additionalProperties": false,
|
|
39
|
+
"required": ["kind", "actor", "priorHandoffEventHash"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"kind": { "const": "native-unclaimed-check-failure" },
|
|
42
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
43
|
+
"priorHandoffEventHash": { "$ref": "#/$defs/nullableHash64" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
37
46
|
}
|
|
38
47
|
},
|
|
39
48
|
"attemptOrdinal": { "type": "integer", "minimum": 1 },
|
package/schemas/task.schema.json
CHANGED
|
@@ -26,6 +26,17 @@
|
|
|
26
26
|
"cancelled"
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
|
+
"pendingBaseSyncValidation": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["baseCommit", "syncCommit", "checksHash", "headCommit"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"baseCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
35
|
+
"syncCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
36
|
+
"headCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
37
|
+
"checksHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
29
40
|
"title": { "type": "string", "minLength": 1 },
|
|
30
41
|
"planObjective": { "type": ["string", "null"] },
|
|
31
42
|
"knowledgeImpact": { "enum": ["none", "update", "create", "retire", null] },
|
|
@@ -197,6 +208,12 @@
|
|
|
197
208
|
"type": "object",
|
|
198
209
|
"required": ["stepId", "planHash", "conflictHash", "dirtyFiles", "dirtyWorktreeHash", "remediationEventIds"],
|
|
199
210
|
"properties": {
|
|
211
|
+
"mode": { "enum": ["failed-step-conflict", "post-rebind-scope-adoption", "post-rebind-dirty-carryover", "navigation-fix-dirty-carryover"] },
|
|
212
|
+
"scopeExtensions": {
|
|
213
|
+
"type": "array",
|
|
214
|
+
"uniqueItems": true,
|
|
215
|
+
"items": { "type": "string", "minLength": 1 }
|
|
216
|
+
},
|
|
200
217
|
"stepId": { "type": "string", "pattern": "^STEP-[A-Z0-9][A-Z0-9-]{2,63}$" },
|
|
201
218
|
"planHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
202
219
|
"conflictHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
@@ -255,8 +272,17 @@
|
|
|
255
272
|
"terminalRemediationEventHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
256
273
|
"terminalExecutionTaskRevision": { "type": "integer", "minimum": 1 },
|
|
257
274
|
"repeatedCauseFingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
258
|
-
"correctiveYieldEventId": { "type": "string", "pattern": "^HOF-[a-f0-9]{64}$" },
|
|
259
|
-
"correctiveYieldEventHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
275
|
+
"correctiveYieldEventId": { "type": ["string", "null"], "pattern": "^HOF-[a-f0-9]{64}$" },
|
|
276
|
+
"correctiveYieldEventHash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" },
|
|
277
|
+
"unclaimedExecutionBoundary": {
|
|
278
|
+
"type": "object", "additionalProperties": false,
|
|
279
|
+
"required": ["kind", "actor", "priorHandoffEventHash"],
|
|
280
|
+
"properties": {
|
|
281
|
+
"kind": { "const": "native-unclaimed-check-failure" },
|
|
282
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
283
|
+
"priorHandoffEventHash": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
|
|
284
|
+
}
|
|
285
|
+
},
|
|
260
286
|
"dirtyFiles": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
261
287
|
"dirtyWorktreeHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
262
288
|
"replacementPlanRiskAuditEventId": { "type": "string", "pattern": "^PRA-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
@@ -269,6 +295,11 @@
|
|
|
269
295
|
"claimant": { "type": "string", "minLength": 1 },
|
|
270
296
|
"compatibilityHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
271
297
|
},
|
|
298
|
+
"allOf": [{
|
|
299
|
+
"if": { "required": ["unclaimedExecutionBoundary"] },
|
|
300
|
+
"then": { "properties": { "correctiveYieldEventId": { "type": "null" }, "correctiveYieldEventHash": { "type": "null" } } },
|
|
301
|
+
"else": { "properties": { "correctiveYieldEventId": { "type": "string" }, "correctiveYieldEventHash": { "type": "string" } } }
|
|
302
|
+
}],
|
|
272
303
|
"additionalProperties": false
|
|
273
304
|
}
|
|
274
305
|
},
|
|
@@ -277,6 +308,19 @@
|
|
|
277
308
|
}
|
|
278
309
|
},
|
|
279
310
|
"allOf": [
|
|
311
|
+
{
|
|
312
|
+
"if": { "required": ["pendingBaseSyncValidation"] },
|
|
313
|
+
"then": {
|
|
314
|
+
"required": ["workspaceOwner", "evidenceHash", "resultHash", "review"],
|
|
315
|
+
"properties": {
|
|
316
|
+
"status": { "const": "validating" },
|
|
317
|
+
"workspaceOwner": { "const": "local" },
|
|
318
|
+
"evidenceHash": { "type": "null" },
|
|
319
|
+
"resultHash": { "type": "null" },
|
|
320
|
+
"review": { "properties": { "status": { "const": "pending" } } }
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
280
324
|
{
|
|
281
325
|
"if": {
|
|
282
326
|
"properties": { "productionEdges": { "minItems": 1 } },
|
|
@@ -20,7 +20,22 @@
|
|
|
20
20
|
"knowledgeMapRevision": { "type": "integer", "minimum": 0 },
|
|
21
21
|
"knowledgeMapHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
22
22
|
"graphUse": { "enum": ["code-aware", "not-applicable"] },
|
|
23
|
-
"steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/planStep" } }
|
|
23
|
+
"steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/planStep" } },
|
|
24
|
+
"requiresProductionEdges": { "type": "boolean" },
|
|
25
|
+
"productionEdges": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"uniqueItems": true,
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["ownerStepId", "consumerStepId", "checkRef"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"ownerStepId": { "type": "string", "pattern": "^STEP-[0-9]{3}(?:-[A-Z0-9-]+)?$" },
|
|
33
|
+
"consumerStepId": { "type": "string", "pattern": "^STEP-[0-9]{3}(?:-[A-Z0-9-]+)?$" },
|
|
34
|
+
"checkRef": { "type": "string", "minLength": 1 }
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
38
|
+
}
|
|
24
39
|
},
|
|
25
40
|
"additionalProperties": false
|
|
26
41
|
},
|