codex-workflow-v2 2.0.0-beta.1 → 2.0.0-beta.4
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 +47 -3
- package/dist/src/alpha6/adoption.js +13 -3
- package/dist/src/alpha6/adoption.js.map +1 -1
- package/dist/src/alpha6/handoff.d.ts +21 -0
- package/dist/src/alpha6/handoff.js +100 -19
- package/dist/src/alpha6/handoff.js.map +1 -1
- package/dist/src/alpha6/milestone.d.ts +12 -0
- package/dist/src/alpha6/milestone.js +113 -1
- package/dist/src/alpha6/milestone.js.map +1 -1
- package/dist/src/alpha6/plan-risk.d.ts +1 -0
- package/dist/src/alpha6/plan-risk.js +6 -0
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/cli.js +383 -43
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +111 -5
- package/dist/src/contracts.js +1 -1
- package/dist/src/credential-output.d.ts +10 -0
- package/dist/src/credential-output.js +73 -0
- package/dist/src/credential-output.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lifecycle/canonical-hash.d.ts +6 -0
- package/dist/src/lifecycle/canonical-hash.js +24 -0
- package/dist/src/lifecycle/canonical-hash.js.map +1 -0
- package/dist/src/lifecycle/catalog.d.ts +26 -0
- package/dist/src/lifecycle/catalog.js +208 -0
- package/dist/src/lifecycle/catalog.js.map +1 -0
- package/dist/src/lifecycle/compiler-inspection.d.ts +48 -0
- package/dist/src/lifecycle/compiler-inspection.js +29 -0
- package/dist/src/lifecycle/compiler-inspection.js.map +1 -0
- package/dist/src/lifecycle/core-static-readiness.d.ts +6 -0
- package/dist/src/lifecycle/core-static-readiness.js +130 -0
- package/dist/src/lifecycle/core-static-readiness.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan-authority.d.ts +53 -0
- package/dist/src/lifecycle/corrective-replan-authority.js +139 -0
- package/dist/src/lifecycle/corrective-replan-authority.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan-binding-manifest.d.ts +21 -0
- package/dist/src/lifecycle/corrective-replan-binding-manifest.js +35 -0
- package/dist/src/lifecycle/corrective-replan-binding-manifest.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan-credential-core.d.ts +86 -0
- package/dist/src/lifecycle/corrective-replan-credential-core.js +534 -0
- package/dist/src/lifecycle/corrective-replan-credential-core.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan-credential-schema.d.ts +17 -0
- package/dist/src/lifecycle/corrective-replan-credential-schema.js +44 -0
- package/dist/src/lifecycle/corrective-replan-credential-schema.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan-credentials.d.ts +47 -0
- package/dist/src/lifecycle/corrective-replan-credentials.js +103 -0
- package/dist/src/lifecycle/corrective-replan-credentials.js.map +1 -0
- package/dist/src/lifecycle/corrective-replan.d.ts +64 -0
- package/dist/src/lifecycle/corrective-replan.js +548 -0
- package/dist/src/lifecycle/corrective-replan.js.map +1 -0
- package/dist/src/lifecycle/evaluator.d.ts +2 -0
- package/dist/src/lifecycle/evaluator.js +35 -0
- package/dist/src/lifecycle/evaluator.js.map +1 -0
- package/dist/src/lifecycle/fingerprint.d.ts +31 -0
- package/dist/src/lifecycle/fingerprint.js +388 -0
- package/dist/src/lifecycle/fingerprint.js.map +1 -0
- package/dist/src/lifecycle/immutable.d.ts +1 -0
- package/dist/src/lifecycle/immutable.js +10 -0
- package/dist/src/lifecycle/immutable.js.map +1 -0
- package/dist/src/lifecycle/implementation-table.d.ts +29 -0
- package/dist/src/lifecycle/implementation-table.js +87 -0
- package/dist/src/lifecycle/implementation-table.js.map +1 -0
- package/dist/src/lifecycle/index.d.ts +4 -0
- package/dist/src/lifecycle/index.js +5 -0
- package/dist/src/lifecycle/index.js.map +1 -0
- package/dist/src/lifecycle/schema-artifact.d.ts +12 -0
- package/dist/src/lifecycle/schema-artifact.js +214 -0
- package/dist/src/lifecycle/schema-artifact.js.map +1 -0
- package/dist/src/lifecycle/semantic-registry.d.ts +6 -0
- package/dist/src/lifecycle/semantic-registry.js +489 -0
- package/dist/src/lifecycle/semantic-registry.js.map +1 -0
- package/dist/src/lifecycle/types.d.ts +718 -0
- package/dist/src/lifecycle/types.js +4 -0
- package/dist/src/lifecycle/types.js.map +1 -0
- package/dist/src/observation.d.ts +20 -0
- package/dist/src/observation.js +171 -0
- package/dist/src/observation.js.map +1 -0
- package/dist/src/reviewer.d.ts +4 -0
- package/dist/src/reviewer.js +24 -7
- package/dist/src/reviewer.js.map +1 -1
- package/dist/src/state/corrective-replan-executor.d.ts +64 -0
- package/dist/src/state/corrective-replan-executor.js +598 -0
- package/dist/src/state/corrective-replan-executor.js.map +1 -0
- package/dist/src/state/corrective-replan-public-schema.d.ts +3 -0
- package/dist/src/state/corrective-replan-public-schema.js +43 -0
- package/dist/src/state/corrective-replan-public-schema.js.map +1 -0
- package/dist/src/state/corrective-replan-public.d.ts +95 -0
- package/dist/src/state/corrective-replan-public.js +618 -0
- package/dist/src/state/corrective-replan-public.js.map +1 -0
- package/dist/src/state/corrective-replan-transaction.d.ts +158 -0
- package/dist/src/state/corrective-replan-transaction.js +723 -0
- package/dist/src/state/corrective-replan-transaction.js.map +1 -0
- package/dist/src/state/corrective-yield-executor.d.ts +31 -0
- package/dist/src/state/corrective-yield-executor.js +236 -0
- package/dist/src/state/corrective-yield-executor.js.map +1 -0
- package/dist/src/state/corrective-yield-transaction.d.ts +97 -0
- package/dist/src/state/corrective-yield-transaction.js +591 -0
- package/dist/src/state/corrective-yield-transaction.js.map +1 -0
- package/dist/src/state/lock.d.ts +75 -3
- package/dist/src/state/lock.js +582 -30
- package/dist/src/state/lock.js.map +1 -1
- package/dist/src/state/store.d.ts +3 -0
- package/dist/src/state/store.js +65 -12
- package/dist/src/state/store.js.map +1 -1
- package/dist/src/transition-core.d.ts +67 -0
- package/dist/src/transition-core.js +318 -0
- package/dist/src/transition-core.js.map +1 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/workflow.d.ts +51 -21
- package/dist/src/workflow.js +667 -144
- package/dist/src/workflow.js.map +1 -1
- package/docs/autonomy-guardrails.md +8 -1
- package/docs/beta2-initial-assembly-navigation-brief.md +616 -0
- package/docs/development-flow.md +17 -2
- package/docs/lifecycle/state-machine-stabilization.md +641 -0
- package/docs/release.md +11 -2
- package/docs/split-required-recovery.md +5 -4
- package/docs/stable-release-defect-register.md +330 -1
- package/docs/updating-existing-project.md +11 -0
- package/package.json +4 -1
- package/plugins/codex-workflow-gateway/references/protocol.md +56 -1
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +44 -0
- package/references/state-machine.md +4 -1
- package/schemas/adoption-posture-event.schema.json +1 -1
- package/schemas/context-envelope.schema.json +1 -1
- package/schemas/corrective-replan-credentials.private.schema.json +98 -0
- package/schemas/corrective-replan-execution-event.private.schema.json +53 -0
- package/schemas/corrective-replan-public.schema.json +142 -0
- package/schemas/corrective-replan-task-transaction.private.schema.json +151 -0
- package/schemas/corrective-yield-task-transaction.private.schema.json +98 -0
- package/schemas/remediation-event.schema.json +11 -1
- package/schemas/task-handoff-event.schema.json +1 -1
- package/schemas/transition-definition.schema.json +2609 -0
- package/schemas/transition-payloads.schema.json +140 -0
package/docs/development-flow.md
CHANGED
|
@@ -40,6 +40,11 @@ failed checks, or any manual/unrecorded Worker commit block completion.
|
|
|
40
40
|
If the current Plan Risk Audit marks the Step for strict review, the atomic commit is still
|
|
41
41
|
created by core, but the Step remains non-terminal and `next` routes to `task step-review`
|
|
42
42
|
until commit-bound strict review and reviewer attestation pass.
|
|
43
|
+
Use the exact claimant or required actor from `next` as `--actor`; the independent reviewer
|
|
44
|
+
runs inside Core and is not supplied as the CLI actor.
|
|
45
|
+
When `next` includes `gitMutationPolicy`, obtain bounded permission for that exact Git-writing
|
|
46
|
+
transition before the first call instead of probing and retrying after a `.git/index.lock`
|
|
47
|
+
failure. For `task start`, this applies only when invoking `--workspace-owner local`.
|
|
43
48
|
|
|
44
49
|
After a Step changes approved project knowledge, the Delivery Coordinator reconciles and
|
|
45
50
|
reapproves the Project Knowledge Map, then runs `task knowledge-rebind` between Steps. The
|
|
@@ -58,7 +63,9 @@ additions under Milestone autonomy; every unsafe source-set, category, scope, au
|
|
|
58
63
|
conflict change is rejected.
|
|
59
64
|
|
|
60
65
|
Submission requires a clean, auditable Task history and records evidence for the exact
|
|
61
|
-
Task head. `task review-launch` starts a separate read-only reviewer
|
|
66
|
+
Task head. `task review-launch` starts a separate read-only reviewer and atomically records its
|
|
67
|
+
result. If C1 handoff is active, keep `--actor` equal to the current claimant or required actor
|
|
68
|
+
from `next`; the reviewer identity remains internal to the compound route. A passing fresh review
|
|
62
69
|
permits Result creation. Human final acceptance binds Brief, Plan, Result, evidence, and
|
|
63
70
|
the accepted head. Base advancement forces synchronization, checks, review, and acceptance
|
|
64
71
|
to be repeated before merge.
|
|
@@ -97,7 +104,12 @@ may finish while an amendment awaits authorization.
|
|
|
97
104
|
|
|
98
105
|
During initial planning, all linked Tasks may be materialized before one complete
|
|
99
106
|
`milestone plan-set`; no execution is available until the Plan classifies every reverse
|
|
100
|
-
membership.
|
|
107
|
+
membership. Repository `next` returns `milestone initial-assembly` both before Task 1 and between
|
|
108
|
+
linked Tasks. Its `linked-task-assembly` option explicitly permits `discovery start` and
|
|
109
|
+
`discovery materialize`; after the first linked Task exists, its closing option permits one
|
|
110
|
+
complete `milestone plan-set`. A failed
|
|
111
|
+
`status` or `next` is not permission to call the closing command directly. After that boundary,
|
|
112
|
+
semantic changes use human-only
|
|
101
113
|
`milestone scope-change-prepare` and `milestone scope-change-apply`. A previously issued
|
|
102
114
|
Milestone Autonomy Contract may instead use `milestone autonomy-evolve` for membership-only
|
|
103
115
|
changes while the outcome, success signal, acceptance, checks, discovery, and base branch
|
|
@@ -128,6 +140,9 @@ With an eligible `milestone.final_accept` grant, `next` additionally returns
|
|
|
128
140
|
`delegatedApprovalOptions`. The delegate may then use the current `MSA-*` code in the same
|
|
129
141
|
turn because the earlier grant-issuance turn is the controlling user decision. Without such
|
|
130
142
|
an option, the ordinary later-message human gate remains mandatory.
|
|
143
|
+
Pass `--delegation-grant` only when the same `next` response exposes an exact eligible
|
|
144
|
+
`delegatedApprovalOptions` entry for that transition. Ordinary C1 handoff, claim, run,
|
|
145
|
+
step-complete, step-review, merge, and sync-base do not consume a Milestone approval grant.
|
|
131
146
|
|
|
132
147
|
The Milestone coordinator keeps implementation out of its long-lived context: every required
|
|
133
148
|
Task runs in a dedicated user-visible Task chat. The Milestone chat owns ordering, exact
|