codex-workflow-v2 2.0.0-beta.12.8 → 2.0.0-beta.12.9
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 +3 -1
- package/dist/src/alpha6/review.d.ts +6 -0
- package/dist/src/alpha6/review.js +12 -0
- package/dist/src/alpha6/review.js.map +1 -1
- package/dist/src/cli.js +33 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +37 -1
- package/dist/src/dependency-provenance.d.ts +2 -2
- package/dist/src/dependency-provenance.js +21 -5
- package/dist/src/dependency-provenance.js.map +1 -1
- package/dist/src/git.js +1 -0
- package/dist/src/git.js.map +1 -1
- package/dist/src/historical-step-provenance.d.ts +20 -0
- package/dist/src/historical-step-provenance.js +111 -0
- package/dist/src/historical-step-provenance.js.map +1 -0
- package/dist/src/state/corrective-replan-executor.js +5 -0
- package/dist/src/state/corrective-replan-executor.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/workflow.d.ts +6 -1
- package/dist/src/workflow.js +195 -8
- package/dist/src/workflow.js.map +1 -1
- 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/sources/codex-workflow-v2-architecture-ru.md +16 -6
- package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +24 -28
- package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +33 -13
- package/docs/release.md +7 -1
- package/docs/updating-existing-project.md +30 -0
- package/docs/validation-report.md +75 -74
- package/package.json +1 -1
- package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +1 -1
- package/plugins/codex-workflow-gateway/references/protocol.md +9 -0
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +25 -0
- package/schemas/task.schema.json +43 -0
|
@@ -50,6 +50,31 @@ pending/corrupt transaction. After success run sequential `status` then `next` a
|
|
|
50
50
|
returned lifecycle action; Knowledge reconciliation or atomic Task context refresh may legitimately
|
|
51
51
|
be next because the dependency files changed.
|
|
52
52
|
|
|
53
|
+
When beta.12.9 fresh `next` advertises `task historical-step-provenance-recover`, Core has found
|
|
54
|
+
exactly one product commit that a corrective Plan omitted from current Step evidence even though the
|
|
55
|
+
commit still has a complete hash-valid passed strict Step Review chain and a matching prior final
|
|
56
|
+
acceptance. First run the advertised read-only `task historical-step-provenance-preflight --id
|
|
57
|
+
<TASK-ID>` and require `eligible=true`, the exact Task revision/Plan/Brief/HEAD, the advertised
|
|
58
|
+
commit SHA, no lease/transaction/Core operation, and dirty files confined to the one active Step's
|
|
59
|
+
`allowedWrites`. Invoke recovery with that exact commit, actor, and a substantive reason. The
|
|
60
|
+
transition records the commit as invalidated historical Step authority plus an audit record; it does
|
|
61
|
+
not adopt the completed Step into the current Plan and does not create, remove, amend, reset, rebase,
|
|
62
|
+
or merge Git commits. Reject multiple or arbitrary unexpected commits, pending/failed review,
|
|
63
|
+
mismatched final acceptance, unrelated dirty files, or damaged sidecars. After success run
|
|
64
|
+
sequential `status` then `next`; the active corrective Step should resume through its ordinary
|
|
65
|
+
credential and `task step-complete` route.
|
|
66
|
+
|
|
67
|
+
When beta.12.9 must itself be installed while this exact historical Step blocker is active, preserve
|
|
68
|
+
the Task worktree and create only two dependency transport commits: one on the active Milestone base
|
|
69
|
+
and one at Task-branch HEAD, each changing exactly `package.json` and `package-lock.json` to the exact
|
|
70
|
+
beta.12.9 package. Do not switch the dirty Task checkout to update the base; use a separate temporary
|
|
71
|
+
worktree. Install the repository-local target package, then require fresh `next` to advertise
|
|
72
|
+
`update historical-step-dependency-recover`. Run the matching read-only preflight and require the
|
|
73
|
+
exact dependency HEAD/parent, Task revision, active Step/Plan, retained historical SHA, dirty-file
|
|
74
|
+
set and dirty-worktree hash, with no lease or pending operation. The matching recover registers both
|
|
75
|
+
authorities without modifying product bytes or Git. After recovery run sequential `status` and
|
|
76
|
+
`next`; do not substitute ordinary dependency recovery, manual state edits, rebase, reset, or amend.
|
|
77
|
+
|
|
53
78
|
Beta.12.1 permits product-owned manifest/lock fields already present in the exact recorded Task
|
|
54
79
|
history to differ from the Milestone base. Core compares candidate parent to candidate HEAD after
|
|
55
80
|
removing only the Workflow dependency entries, so the dependency commit must preserve every such
|
package/schemas/task.schema.json
CHANGED
|
@@ -60,6 +60,33 @@
|
|
|
60
60
|
"uniqueItems": true,
|
|
61
61
|
"items": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
|
62
62
|
},
|
|
63
|
+
"historicalStepProvenanceRecoveries": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"required": [
|
|
68
|
+
"commitSha",
|
|
69
|
+
"actor",
|
|
70
|
+
"reason",
|
|
71
|
+
"recordedAt",
|
|
72
|
+
"sourceFinalAcceptanceRecordedAt",
|
|
73
|
+
"sourcePlanHash",
|
|
74
|
+
"sourceResultHash",
|
|
75
|
+
"sourceEvidenceHash"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"commitSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
79
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
80
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
81
|
+
"recordedAt": { "type": "string", "format": "date-time" },
|
|
82
|
+
"sourceFinalAcceptanceRecordedAt": { "type": "string", "format": "date-time" },
|
|
83
|
+
"sourcePlanHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
84
|
+
"sourceResultHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
85
|
+
"sourceEvidenceHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
63
90
|
"dependencyProvenanceRecoveries": {
|
|
64
91
|
"type": "array",
|
|
65
92
|
"items": {
|
|
@@ -134,6 +161,22 @@
|
|
|
134
161
|
}
|
|
135
162
|
},
|
|
136
163
|
"additionalProperties": false
|
|
164
|
+
},
|
|
165
|
+
"historicalStepProvenance": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"required": ["activeStepId", "planHash", "dirtyFiles", "dirtyWorktreeHash", "retainedCommitSha"],
|
|
168
|
+
"properties": {
|
|
169
|
+
"activeStepId": { "type": "string", "pattern": "^STEP-[A-Z0-9][A-Z0-9-]{2,63}$" },
|
|
170
|
+
"planHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
171
|
+
"dirtyFiles": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"uniqueItems": true,
|
|
174
|
+
"items": { "type": "string", "minLength": 1 }
|
|
175
|
+
},
|
|
176
|
+
"dirtyWorktreeHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
177
|
+
"retainedCommitSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
|
178
|
+
},
|
|
179
|
+
"additionalProperties": false
|
|
137
180
|
}
|
|
138
181
|
},
|
|
139
182
|
"additionalProperties": false
|