codex-workflow-v2 2.0.0-alpha.6.2 → 2.0.0-alpha.7.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.
Files changed (48) hide show
  1. package/README.md +43 -71
  2. package/dist/src/alpha6/handoff.d.ts +1 -0
  3. package/dist/src/alpha6/handoff.js +6 -0
  4. package/dist/src/alpha6/handoff.js.map +1 -1
  5. package/dist/src/alpha6/milestone.d.ts +3 -0
  6. package/dist/src/alpha6/milestone.js +57 -3
  7. package/dist/src/alpha6/milestone.js.map +1 -1
  8. package/dist/src/alpha6/plan-risk.js +61 -0
  9. package/dist/src/alpha6/plan-risk.js.map +1 -1
  10. package/dist/src/alpha6/remediation.d.ts +4 -20
  11. package/dist/src/alpha6/remediation.js +73 -150
  12. package/dist/src/alpha6/remediation.js.map +1 -1
  13. package/dist/src/alpha7/autonomy.d.ts +61 -0
  14. package/dist/src/alpha7/autonomy.js +256 -0
  15. package/dist/src/alpha7/autonomy.js.map +1 -0
  16. package/dist/src/cli.js +23 -16
  17. package/dist/src/cli.js.map +1 -1
  18. package/dist/src/contracts.d.ts +11 -6
  19. package/dist/src/index.d.ts +3 -0
  20. package/dist/src/index.js +3 -0
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/state/lock.d.ts +1 -3
  23. package/dist/src/state/lock.js +2 -5
  24. package/dist/src/state/lock.js.map +1 -1
  25. package/dist/src/version.d.ts +1 -1
  26. package/dist/src/version.js +1 -1
  27. package/dist/src/workflow.d.ts +21 -65
  28. package/dist/src/workflow.js +548 -657
  29. package/dist/src/workflow.js.map +1 -1
  30. package/docs/alpha7.1-implementation-brief.md +268 -0
  31. package/docs/autonomy-guardrails.md +56 -20
  32. package/docs/decisions.md +16 -4
  33. package/docs/delegated-approval.md +12 -5
  34. package/docs/development-flow.md +12 -7
  35. package/docs/release.md +4 -6
  36. package/docs/updating-existing-project.md +9 -39
  37. package/docs/validation-report.md +50 -63
  38. package/package.json +2 -2
  39. package/plugins/codex-workflow-gateway/references/protocol.md +53 -17
  40. package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +33 -9
  41. package/references/state-machine.md +31 -13
  42. package/roles/delivery-coordinator.md +10 -1
  43. package/roles/technical-planner.md +3 -0
  44. package/schemas/context-envelope.schema.json +0 -10
  45. package/schemas/milestone-autonomy-event.schema.json +45 -0
  46. package/schemas/milestone-scope-change-event.schema.json +3 -1
  47. package/schemas/plan-risk-audit-event.schema.json +21 -4
  48. package/schemas/corrective-plan-audit-record.schema.json +0 -47
@@ -1,47 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://codex-workflow.local/schemas/corrective-plan-audit-record.schema.json",
4
- "title": "Codex Workflow V2 Alpha.6 Corrective Plan Audit Binding",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": [
8
- "recordedAt",
9
- "taskId",
10
- "taskRevision",
11
- "stepId",
12
- "triggeringAttemptCount",
13
- "decisionEventId",
14
- "decisionPlanHash",
15
- "previousPlanHash",
16
- "correctivePlanHash",
17
- "failedReviewAttempts",
18
- "auditor",
19
- "summary",
20
- "decision",
21
- "reviewedFindingIds"
22
- ],
23
- "properties": {
24
- "recordedAt": { "type": "string", "format": "date-time" },
25
- "taskId": { "type": "string", "pattern": "^TASK-[0-9A-HJKMNP-TV-Z]{26}$" },
26
- "taskRevision": { "type": "integer", "minimum": 0 },
27
- "stepId": { "type": "string", "pattern": "^STEP-[0-9]{3}(?:-[A-Z0-9-]+)?$" },
28
- "triggeringAttemptCount": { "const": 3 },
29
- "decisionEventId": { "type": "string", "minLength": 1 },
30
- "decisionPlanHash": { "$ref": "#/$defs/hash64" },
31
- "previousPlanHash": { "$ref": "#/$defs/hash64" },
32
- "correctivePlanHash": { "$ref": "#/$defs/hash64" },
33
- "failedReviewAttempts": { "const": 2 },
34
- "auditor": { "type": "string", "minLength": 1 },
35
- "summary": { "type": "string", "minLength": 1 },
36
- "decision": { "const": "continue-fix" },
37
- "reviewedFindingIds": {
38
- "type": "array",
39
- "minItems": 1,
40
- "uniqueItems": true,
41
- "items": { "type": "string", "minLength": 1 }
42
- }
43
- },
44
- "$defs": {
45
- "hash64": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
46
- }
47
- }