codex-workflow-v2 2.0.0-alpha.7.1 → 2.0.0-alpha.7.2.1
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 +12 -2
- package/dist/src/alpha6/plan-risk.d.ts +1 -0
- package/dist/src/alpha6/plan-risk.js +2 -2
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/alpha6/remediation.d.ts +19 -2
- package/dist/src/alpha6/remediation.js +473 -11
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/alpha7/corrective-recovery.d.ts +26 -0
- package/dist/src/alpha7/corrective-recovery.js +593 -0
- package/dist/src/alpha7/corrective-recovery.js.map +1 -0
- package/dist/src/cli.js +8 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +44 -0
- 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.d.ts +2 -0
- package/dist/src/workflow.js +111 -11
- package/dist/src/workflow.js.map +1 -1
- package/docs/alpha7.2-corrective-context-refresh-brief.md +484 -0
- package/docs/alpha7.2.1-remediation-recovery-brief.md +86 -0
- package/package.json +1 -1
- package/schemas/corrective-decision-recovery-event.schema.json +71 -0
- package/schemas/remediation-mode-recovery-event.schema.json +42 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://codex-workflow.local/schemas/remediation-mode-recovery-event.schema.json",
|
|
4
|
+
"title": "Codex Workflow V2 Remediation Mode Recovery Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"eventId", "taskId", "stepId", "taskRevision", "remediationEventId",
|
|
9
|
+
"remediationEventHash", "correctiveDecisionEventId", "correctiveDecisionEventHash",
|
|
10
|
+
"correctiveDecisionRecoveryEventId", "correctiveDecisionRecoveryEventHash",
|
|
11
|
+
"attemptOrdinal", "planHash", "actor", "c1ClaimEventHash",
|
|
12
|
+
"writerLeaseTokenHash", "fromMode", "toMode", "reason",
|
|
13
|
+
"previousEventHash", "recordedAt", "eventHash"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"eventId": { "type": "string", "pattern": "^RMR-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
17
|
+
"taskId": { "type": "string", "pattern": "^TASK-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
18
|
+
"stepId": { "type": "string", "pattern": "^STEP-[0-9]{3}(?:-[A-Z0-9-]+)?$" },
|
|
19
|
+
"taskRevision": { "type": "integer", "minimum": 1 },
|
|
20
|
+
"remediationEventId": { "type": "string", "pattern": "^RME-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
21
|
+
"remediationEventHash": { "$ref": "#/$defs/hash64" },
|
|
22
|
+
"correctiveDecisionEventId": { "type": "string", "pattern": "^CRD-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
23
|
+
"correctiveDecisionEventHash": { "$ref": "#/$defs/hash64" },
|
|
24
|
+
"correctiveDecisionRecoveryEventId": { "type": "string", "pattern": "^CDR-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
25
|
+
"correctiveDecisionRecoveryEventHash": { "$ref": "#/$defs/hash64" },
|
|
26
|
+
"attemptOrdinal": { "const": 3 },
|
|
27
|
+
"planHash": { "$ref": "#/$defs/hash64" },
|
|
28
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
29
|
+
"c1ClaimEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
30
|
+
"writerLeaseTokenHash": { "$ref": "#/$defs/nullableHash64" },
|
|
31
|
+
"fromMode": { "const": "ordinary" },
|
|
32
|
+
"toMode": { "const": "corrective" },
|
|
33
|
+
"reason": { "const": "alpha7.2-recovered-continue-fix-mode-omission" },
|
|
34
|
+
"previousEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
35
|
+
"recordedAt": { "type": "string", "format": "date-time" },
|
|
36
|
+
"eventHash": { "$ref": "#/$defs/hash64" }
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"hash64": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
40
|
+
"nullableHash64": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
|
|
41
|
+
}
|
|
42
|
+
}
|