codex-workflow-v2 2.0.0-beta.13.8 → 2.0.0-beta.14
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 +27 -388
- package/dist/reviewer-runtime-build.json +96 -32
- package/dist/src/alpha6/adoption.d.ts +2 -0
- package/dist/src/alpha6/adoption.js +22 -0
- package/dist/src/alpha6/adoption.js.map +1 -1
- package/dist/src/alpha6/captured-check-evidence.d.ts +51 -0
- package/dist/src/alpha6/captured-check-evidence.js +152 -0
- package/dist/src/alpha6/captured-check-evidence.js.map +1 -0
- package/dist/src/alpha6/component-owner.d.ts +15 -1
- package/dist/src/alpha6/component-owner.js +44 -2
- package/dist/src/alpha6/component-owner.js.map +1 -1
- package/dist/src/alpha6/corrective-decision-boundary.d.ts +4 -0
- package/dist/src/alpha6/corrective-decision-boundary.js +47 -0
- package/dist/src/alpha6/corrective-decision-boundary.js.map +1 -0
- package/dist/src/alpha6/downstream-proof.d.ts +1 -25
- package/dist/src/alpha6/downstream-proof.js +0 -171
- package/dist/src/alpha6/downstream-proof.js.map +1 -1
- package/dist/src/alpha6/failed-step-planning-recovery.d.ts +10 -0
- package/dist/src/alpha6/failed-step-planning-recovery.js +93 -0
- package/dist/src/alpha6/failed-step-planning-recovery.js.map +1 -0
- package/dist/src/alpha6/literal-test-invocation.d.ts +2 -0
- package/dist/src/alpha6/literal-test-invocation.js +106 -0
- package/dist/src/alpha6/literal-test-invocation.js.map +1 -0
- package/dist/src/alpha6/milestone.d.ts +2 -0
- package/dist/src/alpha6/milestone.js +10 -1
- package/dist/src/alpha6/milestone.js.map +1 -1
- package/dist/src/alpha6/navigation-dirty-carryover.d.ts +11 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js +130 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js.map +1 -0
- package/dist/src/alpha6/plan-integrity.js +7 -5
- package/dist/src/alpha6/plan-integrity.js.map +1 -1
- package/dist/src/alpha6/plan-risk.d.ts +2 -0
- package/dist/src/alpha6/plan-risk.js +10 -3
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/alpha6/remediation.d.ts +6 -21
- package/dist/src/alpha6/remediation.js +161 -476
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/alpha6/root-cause-replan-carryover.d.ts +4 -1
- package/dist/src/alpha6/root-cause-replan-carryover.js +29 -5
- package/dist/src/alpha6/root-cause-replan-carryover.js.map +1 -1
- package/dist/src/beta1/project-transaction.d.ts +3 -1
- package/dist/src/beta1/project-transaction.js +6 -2
- package/dist/src/beta1/project-transaction.js.map +1 -1
- package/dist/src/checks/runner.d.ts +26 -0
- package/dist/src/checks/runner.js +223 -0
- package/dist/src/checks/runner.js.map +1 -0
- package/dist/src/checks/task-sync.d.ts +10 -0
- package/dist/src/checks/task-sync.js +41 -0
- package/dist/src/checks/task-sync.js.map +1 -0
- package/dist/src/checks/worker.d.ts +1 -0
- package/dist/src/checks/worker.js +154 -0
- package/dist/src/checks/worker.js.map +1 -0
- package/dist/src/cli-actions.d.ts +2 -2
- package/dist/src/cli-actions.js +3 -15
- package/dist/src/cli-actions.js.map +1 -1
- package/dist/src/cli.js +14 -98
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +35 -32
- package/dist/src/dependency-provenance.d.ts +2 -2
- package/dist/src/dependency-provenance.js +12 -69
- package/dist/src/dependency-provenance.js.map +1 -1
- package/dist/src/domain/base-sync-conflict.d.ts +13 -0
- package/dist/src/domain/base-sync-conflict.js +32 -0
- package/dist/src/domain/base-sync-conflict.js.map +1 -0
- package/dist/src/domain/step-start-admission.d.ts +4 -0
- package/dist/src/domain/step-start-admission.js +9 -0
- package/dist/src/domain/step-start-admission.js.map +1 -0
- package/dist/src/domain/virgin-registration.d.ts +3 -0
- package/dist/src/domain/virgin-registration.js +65 -0
- package/dist/src/domain/virgin-registration.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/gateway-handshake.js +0 -8
- package/dist/src/gateway-handshake.js.map +1 -1
- package/dist/src/git.d.ts +3 -1
- package/dist/src/git.js +41 -14
- package/dist/src/git.js.map +1 -1
- package/dist/src/graph.js +25 -3
- package/dist/src/graph.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lifecycle/corrective-replan.js +3 -3
- package/dist/src/lifecycle/corrective-replan.js.map +1 -1
- package/dist/src/navigation-actions.d.ts +9 -0
- package/dist/src/navigation-actions.js +72 -0
- package/dist/src/navigation-actions.js.map +1 -0
- package/dist/src/navigation-update-artifact.d.ts +5 -0
- package/dist/src/navigation-update-artifact.js +227 -0
- package/dist/src/navigation-update-artifact.js.map +1 -0
- package/dist/src/navigation-update.d.ts +39 -0
- package/dist/src/navigation-update.js +82 -0
- package/dist/src/navigation-update.js.map +1 -0
- package/dist/src/observation.js +52 -29
- package/dist/src/observation.js.map +1 -1
- package/dist/src/observed-routes.js +5 -6
- package/dist/src/observed-routes.js.map +1 -1
- package/dist/src/pending-review-update.d.ts +0 -13
- package/dist/src/pending-review-update.js +1 -6
- package/dist/src/pending-review-update.js.map +1 -1
- package/dist/src/reviewer.d.ts +1 -1
- package/dist/src/reviewer.js +20 -17
- package/dist/src/reviewer.js.map +1 -1
- package/dist/src/runtime.d.ts +3 -0
- package/dist/src/runtime.js +6 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/state/corrective-replan-executor.d.ts +10 -0
- package/dist/src/state/corrective-replan-executor.js +37 -1
- package/dist/src/state/corrective-replan-executor.js.map +1 -1
- package/dist/src/state/corrective-replan-public-schema.js +15 -2
- package/dist/src/state/corrective-replan-public-schema.js.map +1 -1
- package/dist/src/state/corrective-replan-public.js +6 -5
- package/dist/src/state/corrective-replan-public.js.map +1 -1
- package/dist/src/state/corrective-replan-transaction.d.ts +1 -0
- package/dist/src/state/corrective-replan-transaction.js +12 -11
- package/dist/src/state/corrective-replan-transaction.js.map +1 -1
- package/dist/src/state/corrective-yield-executor.js +2 -2
- package/dist/src/state/corrective-yield-executor.js.map +1 -1
- package/dist/src/state/corrective-yield-transaction.d.ts +1 -0
- package/dist/src/state/corrective-yield-transaction.js +11 -10
- package/dist/src/state/corrective-yield-transaction.js.map +1 -1
- package/dist/src/state/lock.d.ts +4 -0
- package/dist/src/state/lock.js +21 -0
- package/dist/src/state/lock.js.map +1 -1
- 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-blocker-route.d.ts +8 -0
- package/dist/src/workflow-blocker-route.js +106 -0
- package/dist/src/workflow-blocker-route.js.map +1 -0
- package/dist/src/workflow.d.ts +48 -63
- package/dist/src/workflow.js +698 -1470
- package/dist/src/workflow.js.map +1 -1
- package/docs/autonomy-guardrails.md +26 -304
- package/docs/decisions.md +14 -112
- package/docs/development-flow.md +35 -238
- package/docs/project-memory.md +31 -50
- package/docs/release-app-evidence.md +190 -0
- package/docs/release.md +95 -363
- package/docs/updating-existing-project.md +19 -717
- package/package.json +11 -13
- package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +2 -2
- package/plugins/codex-workflow-gateway/references/chat-dispatch.md +73 -197
- package/plugins/codex-workflow-gateway/references/codebase-memory-routing.md +57 -0
- package/plugins/codex-workflow-gateway/references/protocol.md +42 -445
- package/plugins/codex-workflow-gateway/scripts/chat-dispatch.mjs +7 -1
- package/plugins/codex-workflow-gateway/scripts/chat-model-policy.mjs +10 -8
- package/plugins/codex-workflow-gateway/scripts/chat-registry.mjs +23 -5
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +66 -740
- package/references/state-machine.md +4 -4
- package/roles/technical-planner.md +1 -1
- package/schemas/corrective-decision-event.schema.json +3 -1
- package/schemas/project-knowledge-map.schema.json +3 -1
- package/schemas/remediation-event.schema.json +10 -1
- package/schemas/task.schema.json +46 -2
- package/schemas/transition-payloads.schema.json +16 -1
- package/src/alpha6/adoption.ts +1123 -0
- package/src/alpha6/captured-check-evidence.ts +132 -0
- package/src/alpha6/check-support-anchor.ts +128 -0
- package/src/alpha6/component-owner.ts +168 -0
- package/src/alpha6/corrective-decision-boundary.ts +39 -0
- package/src/alpha6/downstream-proof.ts +520 -0
- package/src/alpha6/failed-step-planning-recovery.ts +88 -0
- package/src/alpha6/handoff.ts +1443 -0
- package/src/alpha6/journal.ts +473 -0
- package/src/alpha6/literal-test-invocation.ts +84 -0
- package/src/alpha6/mechanical-feasibility.ts +488 -0
- package/src/alpha6/milestone.ts +2192 -0
- package/src/alpha6/navigation-dirty-carryover.ts +154 -0
- package/src/alpha6/npm-check-contract.ts +47 -0
- package/src/alpha6/plan-integrity.ts +298 -0
- package/src/alpha6/plan-risk.ts +1480 -0
- package/src/alpha6/preexecution-replan.ts +187 -0
- package/src/alpha6/remediation-cause.ts +98 -0
- package/src/alpha6/remediation.ts +2438 -0
- package/src/alpha6/review.ts +1198 -0
- package/src/alpha6/root-cause-replan-carryover.ts +491 -0
- package/src/alpha6/store-sidecars.ts +335 -0
- package/src/alpha7/autonomy.ts +411 -0
- package/src/alpha7/corrective-recovery.ts +1332 -0
- package/src/artifacts.ts +130 -0
- package/src/beta1/project-transaction.ts +355 -0
- package/src/change-explanation.ts +153 -0
- package/src/checks/runner.ts +245 -0
- package/src/checks/task-sync.ts +41 -0
- package/src/checks/worker.ts +149 -0
- package/src/cli-actions.ts +107 -0
- package/src/cli.ts +1457 -0
- package/src/contracts.ts +1494 -0
- package/src/credential-output.ts +89 -0
- package/src/credential-transport.ts +215 -0
- package/src/delegation.ts +190 -0
- package/src/dependency-provenance.ts +472 -0
- package/src/diagnostics.ts +93 -0
- package/src/domain/base-sync-conflict.ts +35 -0
- package/src/domain/completed-step-carryover.ts +76 -0
- package/src/domain/discovery.ts +27 -0
- package/src/domain/plan-semantics.ts +58 -0
- package/src/domain/step-start-admission.ts +10 -0
- package/src/domain/validation.ts +177 -0
- package/src/domain/virgin-registration.ts +46 -0
- package/src/errors.ts +24 -0
- package/src/fs-utils.ts +61 -0
- package/src/gateway-handshake.ts +95 -0
- package/src/git.ts +183 -0
- package/src/graph.ts +342 -0
- package/src/historical-step-provenance.ts +136 -0
- package/src/index.ts +23 -0
- package/src/lifecycle/canonical-hash.ts +28 -0
- package/src/lifecycle/catalog.ts +202 -0
- package/src/lifecycle/compiler-inspection.ts +29 -0
- package/src/lifecycle/core-static-readiness.ts +132 -0
- package/src/lifecycle/corrective-replan-authority.ts +136 -0
- package/src/lifecycle/corrective-replan-binding-manifest.ts +51 -0
- package/src/lifecycle/corrective-replan-credential-core.ts +408 -0
- package/src/lifecycle/corrective-replan-credential-schema.ts +54 -0
- package/src/lifecycle/corrective-replan-credentials.ts +48 -0
- package/src/lifecycle/corrective-replan.ts +843 -0
- package/src/lifecycle/evaluator.ts +48 -0
- package/src/lifecycle/fingerprint.ts +488 -0
- package/src/lifecycle/immutable.ts +8 -0
- package/src/lifecycle/implementation-table.ts +118 -0
- package/src/lifecycle/index.ts +8 -0
- package/src/lifecycle/schema-artifact.ts +263 -0
- package/src/lifecycle/semantic-registry.ts +572 -0
- package/src/lifecycle/types.ts +838 -0
- package/src/memory.ts +273 -0
- package/src/migration.ts +161 -0
- package/src/navigation-actions.ts +70 -0
- package/src/navigation-update-artifact.ts +198 -0
- package/src/navigation-update.ts +121 -0
- package/src/observation.ts +225 -0
- package/src/observed-routes.ts +660 -0
- package/src/operational-contract.ts +125 -0
- package/src/pending-review-update.ts +175 -0
- package/src/repository.ts +99 -0
- package/src/reviewer.ts +1879 -0
- package/src/runtime.ts +6 -0
- package/src/state/corrective-replan-executor.ts +818 -0
- package/src/state/corrective-replan-public-schema.ts +83 -0
- package/src/state/corrective-replan-public.ts +908 -0
- package/src/state/corrective-replan-transaction.ts +949 -0
- package/src/state/corrective-yield-executor.ts +327 -0
- package/src/state/corrective-yield-transaction.ts +730 -0
- package/src/state/lock.ts +902 -0
- package/src/state/store.ts +567 -0
- package/src/transition-core.ts +330 -0
- package/src/ulid.ts +24 -0
- package/src/version.ts +2 -0
- package/src/workflow-blocker-route.ts +109 -0
- package/src/workflow.ts +10172 -0
- package/docs/alpha7.1-implementation-brief.md +0 -268
- package/docs/alpha7.2-corrective-context-refresh-brief.md +0 -484
- package/docs/alpha7.2.1-remediation-recovery-brief.md +0 -86
- package/docs/beta1-stabilization-brief.md +0 -165
- package/docs/beta11-plan-integrity-recovery-brief.md +0 -38
- package/docs/beta13.2-signal-review-recovery.md +0 -38
- package/docs/beta2-initial-assembly-navigation-brief.md +0 -616
- package/docs/change-model.md +0 -118
- package/docs/delegated-approval.md +0 -254
- package/docs/lifecycle/state-machine-stabilization.md +0 -641
- package/docs/pdf/README.md +0 -24
- 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/requirements.txt +0 -1
- package/docs/pdf/sources/codex-workflow-v2-architecture-ru.md +0 -478
- package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +0 -508
- package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +0 -778
- package/docs/pending-review-update.md +0 -15
- package/docs/problem-briefs/01-pre-implementation-integrity.md +0 -482
- package/docs/problem-briefs/02-minimal-step-integrity.md +0 -411
- package/docs/problem-briefs/03-minimal-agent-context-integrity.md +0 -358
- package/docs/problem-briefs/04-task-dependency-and-structural-replacement-integrity.md +0 -573
- package/docs/problem-briefs/BRIEF-TEMPLATE.md +0 -56
- package/docs/problem-briefs/README.md +0 -120
- package/docs/problem-briefs/evidence/p01-mechanical-feasibility-corpus.md +0 -90
- package/docs/problem-briefs/evidence/signal-v4-pre-m3-replay.md +0 -246
- package/docs/split-required-recovery.md +0 -47
- package/docs/stable-release-defect-register.md +0 -730
- package/docs/validation-report.md +0 -182
- package/scripts/generate-pdf-docs.py +0 -524
- package/scripts/run-pdf-docs.mjs +0 -62
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
# Codex Workflow V2 2.0.0-beta.1 Stabilization Brief
|
|
2
|
-
|
|
3
|
-
Status: implementation complete; release candidate awaiting user authorization for commit/tag/push/publish
|
|
4
|
-
|
|
5
|
-
Baseline: `v2.0.0-alpha.7.2.1` (`1214b4c`)
|
|
6
|
-
|
|
7
|
-
Primary evidence register: [stable-release-defect-register.md](stable-release-defect-register.md)
|
|
8
|
-
|
|
9
|
-
## Objective
|
|
10
|
-
|
|
11
|
-
Produce one feature-frozen beta release that closes every confirmed workflow defect found during
|
|
12
|
-
the `signal_v4` Milestone 3 alpha.7 replay, resolves or evidence-closes the remaining validation
|
|
13
|
-
concurrency investigation, preserves every alpha.7 regression guard, and proves that a real agent can
|
|
14
|
-
recover a terminal `split-required` Task by creating a replacement Task without reviving or rewriting
|
|
15
|
-
the historical Task.
|
|
16
|
-
|
|
17
|
-
No intermediate npm version is published. `signal_v4` and its external workflow state are read-only
|
|
18
|
-
evidence. Workflow V2 is not used to organize this repository's implementation.
|
|
19
|
-
|
|
20
|
-
## Release scope
|
|
21
|
-
|
|
22
|
-
### B1 — Secret-safe lock recovery (`WF-STABLE-001`)
|
|
23
|
-
|
|
24
|
-
- `locks repair` must never expose a plaintext writer token in ordinary CLI JSON, logs, errors, or
|
|
25
|
-
snapshots.
|
|
26
|
-
- A repaired lease may expose only non-authorizing metadata and a token fingerprint.
|
|
27
|
-
- If ownership recovery needs a new credential, it must use an explicit one-time handoff boundary
|
|
28
|
-
rather than a reusable token in general diagnostics.
|
|
29
|
-
|
|
30
|
-
### B2 — Terminal corrective routing and replacement (`WF-STABLE-002/003`)
|
|
31
|
-
|
|
32
|
-
- `split-required` and `stop-escalate` outrank Project Knowledge reconcile, approval, rebind, context
|
|
33
|
-
refresh, authorization, and Task run.
|
|
34
|
-
- `task knowledge-rebind` and `task context-refresh` reject these postures before their first write.
|
|
35
|
-
- A Project Knowledge change cannot detach a terminal corrective decision from its historical Plan.
|
|
36
|
-
- `next` must expose an explicit replacement route for `split-required`; `stop-escalate` remains a
|
|
37
|
-
hard stop.
|
|
38
|
-
- Replacement must be one journal-recoverable transition that:
|
|
39
|
-
- consumes one ready Task Discovery;
|
|
40
|
-
- materializes a new Task with a new ID and the same active Milestone;
|
|
41
|
-
- changes the old membership from `required` to `cancelled` with a reason;
|
|
42
|
-
- adds the replacement as `required` with an explicit relationship reason;
|
|
43
|
-
- marks the old Task `cancelled` without changing its Plan, Steps, review, remediation, corrective,
|
|
44
|
-
result, or evidence history;
|
|
45
|
-
- revokes the cancelled Task's writer lease in the same recoverable transaction;
|
|
46
|
-
- absorbs exact safe Plan-bound Knowledge drift through the active Milestone Autonomy Grant in
|
|
47
|
-
that transaction, so the replacement Task can be planned without a stranded standalone gate;
|
|
48
|
-
- supersedes Milestone execution authorization and increments membership revision;
|
|
49
|
-
- leaves no orphan Task or partial membership state after process interruption;
|
|
50
|
-
- is idempotently recoverable from its journal.
|
|
51
|
-
- Normal standalone Project Knowledge actions must identify a triggering Task only as diagnostic
|
|
52
|
-
provenance, never as implied Task authorization.
|
|
53
|
-
- When an exact delegated atomic context refresh is eligible, `next` must return it as the top-level
|
|
54
|
-
action and standalone reconcile must fail before writing; an agent cannot create an avoidable
|
|
55
|
-
human-approval gap by selecting the nested Project Knowledge sub-transition.
|
|
56
|
-
|
|
57
|
-
### B3 — Update/base diagnostics and canonical recovery guidance (`WF-STABLE-004/005`)
|
|
58
|
-
|
|
59
|
-
- Update diagnostics must distinguish the current checkout from an active Milestone base branch and
|
|
60
|
-
report exact declared, locked, installed, current-branch, and base-branch workflow versions.
|
|
61
|
-
- Divergence must fail closed before lifecycle work continues and must recommend dependency-only
|
|
62
|
-
transport rather than merging product commits.
|
|
63
|
-
- Documentation must include one canonical `split-required` recovery prompt and exact ordering for
|
|
64
|
-
replacement, membership evolution, Milestone reauthorization, new Task planning, and execution.
|
|
65
|
-
|
|
66
|
-
### B4 — Composite context-refresh durability (`WF-STABLE-006`)
|
|
67
|
-
|
|
68
|
-
- Project Knowledge reconcile/approval, Task Plan rebind, rebound risk-audit evidence, and execution
|
|
69
|
-
authorization must use a recoverable multi-file transaction.
|
|
70
|
-
- All semantic and authority checks happen before the first target write.
|
|
71
|
-
- Crash recovery is deterministic and idempotent at every write boundary.
|
|
72
|
-
- `doctor`, `status`, and `next` detect an incomplete transaction and return the exact recovery action;
|
|
73
|
-
no partial refresh is treated as authorized.
|
|
74
|
-
|
|
75
|
-
### B5 — Deterministic maintainer validation (`WF-STABLE-007`)
|
|
76
|
-
|
|
77
|
-
- Reproduce or disprove shared-output contention between full validation commands.
|
|
78
|
-
- If confirmed, serialize destructive build/test output preparation or isolate per-run artifacts.
|
|
79
|
-
- Concurrent invocation must either complete independently or fail immediately with a clear,
|
|
80
|
-
non-secret diagnostic; it must not hang silently.
|
|
81
|
-
- Child processes and temporary resources are cleaned up after interruption.
|
|
82
|
-
|
|
83
|
-
## Required deterministic evidence
|
|
84
|
-
|
|
85
|
-
1. Exact `signal_v4` replay:
|
|
86
|
-
`split-required -> Knowledge Map 169 active -> next replacement -> replacement transaction -> old
|
|
87
|
-
Task immutable/terminal -> new required Task planning`.
|
|
88
|
-
2. Negative rebind/context-refresh tests for `split-required` and `stop-escalate` proving zero writes.
|
|
89
|
-
3. Replacement rejection tests for wrong Task, wrong Milestone, wrong decision, non-ready Discovery,
|
|
90
|
-
semantic Milestone changes, stale revisions, expired/wrong actor autonomy, corrupt sidecars, and
|
|
91
|
-
duplicate retries.
|
|
92
|
-
4. Crash injection before and after every replacement and context-refresh transaction write.
|
|
93
|
-
5. CLI/output scans proving writer tokens are absent.
|
|
94
|
-
6. Base-version divergence tests for clean and dirty repositories and unrelated product commits.
|
|
95
|
-
7. Concurrent validation reproduction with bounded completion.
|
|
96
|
-
8. All existing unit, integration, milestone, alpha.6, alpha.7, packaging, plugin, downstream smoke,
|
|
97
|
-
release, and root regression checks.
|
|
98
|
-
|
|
99
|
-
## Real-agent acceptance
|
|
100
|
-
|
|
101
|
-
Create a fresh disposable downstream project with isolated `CODEX_HOME`, workflow state, plugin root,
|
|
102
|
-
and a locally packed beta candidate. A real Delegate must complete:
|
|
103
|
-
|
|
104
|
-
1. Discovery and initial Milestone assembly.
|
|
105
|
-
2. A guarded Task with three failed strict reviews, `continue-fix`, and a terminal
|
|
106
|
-
`split-required` decision.
|
|
107
|
-
3. A Project Knowledge change and human-style approval boundary.
|
|
108
|
-
4. The exact replacement transition without rebind of the failed Task.
|
|
109
|
-
5. Replacement Task implementation, review, merge, remaining required Task completion, Milestone
|
|
110
|
-
validation, and final acceptance.
|
|
111
|
-
|
|
112
|
-
The E2E is invalid if the harness injects lifecycle failures, edits external state, reuses a stale
|
|
113
|
-
plugin cache, bypasses `next`, or requires a fourth remediation attempt.
|
|
114
|
-
|
|
115
|
-
## Final evidence
|
|
116
|
-
|
|
117
|
-
- Deterministic package suite: all beta.1 transaction, terminal-routing, Knowledge refresh,
|
|
118
|
-
diagnostics, concurrency, alpha.6, alpha.7, integration, Milestone, and workflow regressions pass.
|
|
119
|
-
- Crash replay covers rollback and dead-process roll-forward at every tested write boundary,
|
|
120
|
-
including deletion of the cancelled Task writer lease.
|
|
121
|
-
- Real-agent disposable run:
|
|
122
|
-
`test-runs/2.0.0-beta.1/replacement-e2e-final`.
|
|
123
|
-
- Historical Task `TASK-01M02N276D6AE83VBVRH17RDQY` ended `cancelled` at revision 18 and links to
|
|
124
|
-
replacement Task `TASK-01M02NMZZBVCA4TZKK6WG724RY`.
|
|
125
|
-
- Replacement Task passed its guarded Step review and independent final review, then merged as
|
|
126
|
-
`c8d45be7f3165731cf891a47e88a112f76d0119f`.
|
|
127
|
-
- Milestone `MS-01M02N1M9M1CT8RHYGSZH8ETHC` reached `accepted` revision 7; final `next` returned
|
|
128
|
-
repository `idle`.
|
|
129
|
-
- The run exposed one additional bounded UX defect: local replacement start initially required a
|
|
130
|
-
manual return from the cancelled Task branch to `main`. The final candidate makes local Task start
|
|
131
|
-
create its branch from the exact declared base ref even when another clean Task branch is checked
|
|
132
|
-
out, with a deterministic regression.
|
|
133
|
-
|
|
134
|
-
## Non-goals
|
|
135
|
-
|
|
136
|
-
- Fixing the downstream `signal_v4` NUL validator in this repository.
|
|
137
|
-
- Deleting historical Milestones, Tasks, branches, chats, worktrees, or append-only evidence.
|
|
138
|
-
- Broadening delegated authority or removing human final acceptance.
|
|
139
|
-
- Publishing, tagging, pushing, or modifying `signal_v4` without separate user authorization.
|
|
140
|
-
- Declaring `2.0.0` stable before the new real `signal_v4` Milestone completes successfully.
|
|
141
|
-
|
|
142
|
-
## Release gate
|
|
143
|
-
|
|
144
|
-
`2.0.0-beta.1` is recommended only when all confirmed findings are closed, every investigation is
|
|
145
|
-
resolved with evidence, deterministic and crash replay pass, the real-agent disposable Milestone
|
|
146
|
-
reaches final acceptance, an independent final audit has no unresolved material finding, and the
|
|
147
|
-
release diff contains no downstream product implementation.
|
|
148
|
-
|
|
149
|
-
## Final audit and residual risks
|
|
150
|
-
|
|
151
|
-
No material requirement gap remains in the beta.1 scope. The final source audit confirmed that
|
|
152
|
-
authority checks precede replacement/context-refresh target writes, cancelled Task authority is
|
|
153
|
-
deleted inside the same recoverable transaction, terminal decisions outrank Knowledge navigation,
|
|
154
|
-
and ordinary CLI output contains no reusable writer credential.
|
|
155
|
-
|
|
156
|
-
Residual beta risks are bounded:
|
|
157
|
-
|
|
158
|
-
- the project journal is a local-process/local-filesystem recovery protocol, not a distributed
|
|
159
|
-
cross-host transaction service; cross-machine synchronization remains outside the package
|
|
160
|
-
contract;
|
|
161
|
-
- the final real-agent run encountered and safely recovered the clean-branch start precondition;
|
|
162
|
-
the final candidate fixes that behavior and covers it deterministically, but the entire long E2E
|
|
163
|
-
was not repeated solely for that Git convenience change;
|
|
164
|
-
- `2.0.0` stable remains gated on a successful new real `signal_v4` Milestone, as stated in the
|
|
165
|
-
non-goals.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# V2 beta.11 bounded Plan-integrity recovery
|
|
2
|
-
|
|
3
|
-
## Problem
|
|
4
|
-
|
|
5
|
-
A guarded Step may fail its first Core-owned completion because the approved Plan requires an
|
|
6
|
-
exact root `npm run <script>` command, the script is absent, and the same Step cannot modify
|
|
7
|
-
`package.json`. Re-advertising `task run` cannot succeed and consumes a second ordinary remediation
|
|
8
|
-
attempt only to reach corrective replan.
|
|
9
|
-
|
|
10
|
-
P01-A now rejects this contradiction before a fresh execution authorization when it is already
|
|
11
|
-
provable at the selected evaluation HEAD. The beta.11 route remains necessary for pre-P01-A
|
|
12
|
-
authorizations and contradictions that genuinely become observable only after execution starts.
|
|
13
|
-
|
|
14
|
-
## Decision
|
|
15
|
-
|
|
16
|
-
Add `task plan-integrity-recover` as a narrow explicit repair. Its read-side assessment proves one
|
|
17
|
-
first `checks-failed` event, an absent root npm script, a manifest outside `allowedWrites`, and a
|
|
18
|
-
worktree confined to the guarded Step. The mutation appends a hash-bound `replan-required`
|
|
19
|
-
corrective decision for attempt ordinal 2. Existing C1 yield, corrective-replan Human gate,
|
|
20
|
-
journal, recovery, readback, Plan validation, Risk Audit, and authorization supersession remain
|
|
21
|
-
the only way to publish the replacement Plan.
|
|
22
|
-
|
|
23
|
-
## Non-goals
|
|
24
|
-
|
|
25
|
-
- No generic shell-command diagnosis.
|
|
26
|
-
- No automatic Plan editing or inferred replacement command.
|
|
27
|
-
- No `allowedWrites` expansion.
|
|
28
|
-
- No second synthetic failure.
|
|
29
|
-
- No bypass of C1 ownership, writer credentials, Human confirmation, independent validation, or
|
|
30
|
-
Risk Audit.
|
|
31
|
-
- No recovery when dirty files escape the current Step boundary.
|
|
32
|
-
|
|
33
|
-
## Required evidence
|
|
34
|
-
|
|
35
|
-
The recovery event binds Task revision, Plan hash, failed remediation ID/hash, Step-definition
|
|
36
|
-
hash, Git HEAD, root manifest hash, missing scripts, exact check commands, complete changed-file
|
|
37
|
-
set, and a canonical conflict hash. Legacy corrective-decision events remain valid and retain the
|
|
38
|
-
ordinary minimum of two failed attempts.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# beta.13.2: pending-review recovery
|
|
2
|
-
|
|
3
|
-
## Confirmed failure
|
|
4
|
-
|
|
5
|
-
Signal M04 T01 completed the product changes for STEP-002 on beta.13.1, but its
|
|
6
|
-
required independent Step review could not be prepared. The cumulative Task diff
|
|
7
|
-
was 2,236,058 bytes, exceeding the default synchronous Git output buffer. The
|
|
8
|
-
checkout remained clean and the completion commit remained recorded; review had
|
|
9
|
-
not passed.
|
|
10
|
-
|
|
11
|
-
After the writer lease expired, repository navigation preferred delegated
|
|
12
|
-
Knowledge context refresh over the pending review's credential recovery. The
|
|
13
|
-
context-refresh executor correctly rejected the still-in-progress Step. Thus
|
|
14
|
-
navigation advertised an action its executor could not perform. Ordinary package
|
|
15
|
-
update was also blocked by the in-progress Step.
|
|
16
|
-
|
|
17
|
-
## Required recovery guarantees
|
|
18
|
-
|
|
19
|
-
- Large Step and final Task review inputs are complete or fail explicitly; Git
|
|
20
|
-
errors have bounded diagnostics rather than dumping the input corpus.
|
|
21
|
-
- Pending review and its exact writer credential recovery remain ahead of
|
|
22
|
-
Knowledge refresh. Refresh during a running Step stays forbidden.
|
|
23
|
-
- Installation recovery validates the source version, exact Task/Plan/Step and
|
|
24
|
-
completion commit, clean checkout, recorded Git history, review journal, and
|
|
25
|
-
absence of active ownership or transactions.
|
|
26
|
-
- Dependency transport preserves product bytes and the original reviewed commit.
|
|
27
|
-
Pending review never establishes passed-review provenance.
|
|
28
|
-
- The original required review, delegated context refresh, Task acceptance and
|
|
29
|
-
merge remain mandatory after recovery. Grants are not broadened or renewed.
|
|
30
|
-
|
|
31
|
-
## Release acceptance
|
|
32
|
-
|
|
33
|
-
The package regression suite must cover oversized review inputs and the combined
|
|
34
|
-
pending-review, expired-lease and stale-Knowledge state, including rejection of
|
|
35
|
-
unsafe recovery candidates. Release validation also requires the ordinary package
|
|
36
|
-
and external-review lifecycle gates. Actual Signal recovery must pass the blocked
|
|
37
|
-
Step review and reach a subsequent executable lifecycle boundary; green fixture
|
|
38
|
-
tests alone do not establish that the production Milestone has resumed.
|