codex-workflow-v2 2.0.0-alpha.6 → 2.0.0-alpha.7
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 +43 -15
- package/dist/src/alpha6/handoff.d.ts +1 -0
- package/dist/src/alpha6/handoff.js +6 -0
- package/dist/src/alpha6/handoff.js.map +1 -1
- package/dist/src/alpha6/milestone.d.ts +3 -0
- package/dist/src/alpha6/milestone.js +57 -3
- package/dist/src/alpha6/milestone.js.map +1 -1
- package/dist/src/alpha6/plan-risk.js +61 -0
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/alpha6/remediation.d.ts +1 -0
- package/dist/src/alpha6/remediation.js +6 -0
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/alpha7/autonomy.d.ts +61 -0
- package/dist/src/alpha7/autonomy.js +256 -0
- package/dist/src/alpha7/autonomy.js.map +1 -0
- package/dist/src/cli.js +24 -3
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +9 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.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 +35 -0
- package/dist/src/workflow.js +342 -23
- package/dist/src/workflow.js.map +1 -1
- package/docs/autonomy-guardrails.md +32 -11
- package/docs/decisions.md +16 -0
- package/docs/delegated-approval.md +12 -5
- package/docs/development-flow.md +12 -7
- package/docs/release.md +4 -2
- package/docs/updating-existing-project.md +10 -0
- package/docs/validation-report.md +51 -46
- package/package.json +1 -1
- package/plugins/codex-workflow-gateway/references/protocol.md +42 -10
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +19 -0
- package/references/state-machine.md +17 -10
- package/roles/delivery-coordinator.md +10 -1
- package/roles/technical-planner.md +3 -0
- package/schemas/milestone-autonomy-event.schema.json +45 -0
- package/schemas/milestone-scope-change-event.schema.json +3 -1
- package/schemas/plan-risk-audit-event.schema.json +21 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://codex-workflow.local/schemas/milestone-autonomy-event.schema.json",
|
|
4
|
+
"title": "Codex Workflow V2 Alpha.7 Milestone Autonomy Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"eventId",
|
|
9
|
+
"previousEventHash",
|
|
10
|
+
"recordedAt",
|
|
11
|
+
"eventHash",
|
|
12
|
+
"eventType",
|
|
13
|
+
"projectId",
|
|
14
|
+
"milestoneId",
|
|
15
|
+
"milestoneRevision",
|
|
16
|
+
"principal",
|
|
17
|
+
"delegate",
|
|
18
|
+
"issuedAt",
|
|
19
|
+
"expiresAt",
|
|
20
|
+
"semanticScopeHash",
|
|
21
|
+
"delegationGrantId",
|
|
22
|
+
"delegationPolicyHash"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"eventId": { "type": "string", "pattern": "^MAC-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
26
|
+
"previousEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
27
|
+
"recordedAt": { "type": "string", "format": "date-time" },
|
|
28
|
+
"eventHash": { "$ref": "#/$defs/hash64" },
|
|
29
|
+
"eventType": { "const": "issued" },
|
|
30
|
+
"projectId": { "type": "string", "minLength": 1 },
|
|
31
|
+
"milestoneId": { "type": "string", "pattern": "^MS-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
32
|
+
"milestoneRevision": { "type": "integer", "minimum": 1 },
|
|
33
|
+
"principal": { "type": "string", "minLength": 1 },
|
|
34
|
+
"delegate": { "type": "string", "pattern": "^agent:.+" },
|
|
35
|
+
"issuedAt": { "type": "string", "format": "date-time" },
|
|
36
|
+
"expiresAt": { "type": "string", "format": "date-time" },
|
|
37
|
+
"semanticScopeHash": { "$ref": "#/$defs/hash64" },
|
|
38
|
+
"delegationGrantId": { "type": "string", "pattern": "^DGR-[0-9A-HJKMNP-TV-Z]{26}$" },
|
|
39
|
+
"delegationPolicyHash": { "$ref": "#/$defs/hash64" }
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"hash64": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
43
|
+
"nullableHash64": { "type": ["string", "null"], "pattern": "^[a-f0-9]{64}$" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://codex-workflow.local/schemas/milestone-scope-change-event.schema.json",
|
|
4
|
-
"title": "Codex Workflow V2 Alpha.
|
|
4
|
+
"title": "Codex Workflow V2 Alpha.7 Milestone Scope Change Event",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": [
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"after": { "$ref": "#/$defs/scopeSnapshot" },
|
|
33
33
|
"actor": { "type": "string", "minLength": 1 },
|
|
34
34
|
"confirmationCodeBindingHash": { "$ref": "#/$defs/hash64" },
|
|
35
|
+
"authorizationMode": { "enum": ["human", "milestone-autonomy"] },
|
|
36
|
+
"autonomyContractEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
35
37
|
"previousEventHash": { "$ref": "#/$defs/nullableHash64" },
|
|
36
38
|
"recordedAt": { "type": "string", "format": "date-time" },
|
|
37
39
|
"eventHash": { "$ref": "#/$defs/hash64" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://codex-workflow.local/schemas/plan-risk-audit-event.schema.json",
|
|
4
|
-
"title": "Codex Workflow V2 Alpha.
|
|
4
|
+
"title": "Codex Workflow V2 Alpha.7 Plan Risk Audit Event",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": [
|
|
@@ -65,7 +65,11 @@
|
|
|
65
65
|
},
|
|
66
66
|
"reviewRequired": { "type": "boolean" },
|
|
67
67
|
"failureModes": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
68
|
-
"requiredEvidence": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
|
|
68
|
+
"requiredEvidence": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
69
|
+
"proofObligations": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": { "$ref": "#/$defs/proofObligation" }
|
|
72
|
+
}
|
|
69
73
|
},
|
|
70
74
|
"oneOf": [
|
|
71
75
|
{
|
|
@@ -73,7 +77,8 @@
|
|
|
73
77
|
"categories": { "maxItems": 0 },
|
|
74
78
|
"reviewRequired": { "const": false },
|
|
75
79
|
"failureModes": { "maxItems": 0 },
|
|
76
|
-
"requiredEvidence": { "maxItems": 0 }
|
|
80
|
+
"requiredEvidence": { "maxItems": 0 },
|
|
81
|
+
"proofObligations": { "maxItems": 0 }
|
|
77
82
|
}
|
|
78
83
|
},
|
|
79
84
|
{
|
|
@@ -81,10 +86,22 @@
|
|
|
81
86
|
"categories": { "minItems": 1 },
|
|
82
87
|
"reviewRequired": { "const": true },
|
|
83
88
|
"failureModes": { "minItems": 1 },
|
|
84
|
-
"requiredEvidence": { "minItems": 1 }
|
|
89
|
+
"requiredEvidence": { "minItems": 1 },
|
|
90
|
+
"proofObligations": { "minItems": 1 }
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
]
|
|
94
|
+
},
|
|
95
|
+
"proofObligation": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["failureMode", "counterexample", "expectedResult", "evidence"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"failureMode": { "type": "string", "minLength": 1 },
|
|
101
|
+
"counterexample": { "type": "string", "minLength": 1 },
|
|
102
|
+
"expectedResult": { "type": "string", "minLength": 1 },
|
|
103
|
+
"evidence": { "type": "string", "minLength": 1 }
|
|
104
|
+
}
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
}
|