codex-workflow-v2 2.0.0-beta.13.13 → 2.0.0-beta.13.15
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 +17 -0
- package/dist/reviewer-runtime-build.json +19 -7
- package/dist/src/alpha6/captured-check-evidence.d.ts +49 -0
- package/dist/src/alpha6/captured-check-evidence.js +146 -0
- package/dist/src/alpha6/captured-check-evidence.js.map +1 -0
- 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/root-cause-replan-carryover.d.ts +3 -1
- package/dist/src/alpha6/root-cause-replan-carryover.js +4 -0
- package/dist/src/alpha6/root-cause-replan-carryover.js.map +1 -1
- package/dist/src/contracts.d.ts +5 -1
- package/dist/src/dependency-provenance.js +10 -0
- package/dist/src/dependency-provenance.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +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 +1 -0
- package/dist/src/workflow.js +140 -18
- package/dist/src/workflow.js.map +1 -1
- 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/sources/codex-workflow-v2-architecture-ru.md +11 -1
- package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +12 -2
- package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +12 -2
- package/docs/release.md +63 -0
- package/docs/stable-release-defect-register.md +16 -0
- package/docs/updating-existing-project.md +9 -0
- package/package.json +1 -1
- package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +1 -1
- package/plugins/codex-workflow-gateway/references/chat-dispatch.md +40 -11
- package/plugins/codex-workflow-gateway/references/codebase-memory-routing.md +52 -0
- 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 +84 -13
|
@@ -15,6 +15,13 @@ repository.
|
|
|
15
15
|
Never use a global workflow package, a mutable npm range, `latest`, V1 overlay
|
|
16
16
|
files, or MCP ADR storage as a fallback.
|
|
17
17
|
|
|
18
|
+
Read this skill once per chat/package revision; do not reopen it merely to recover details already
|
|
19
|
+
captured in the current task context. For code discovery, first read
|
|
20
|
+
`../../references/codebase-memory-routing.md` and follow its exact-source-root gate. Knowledge Map
|
|
21
|
+
approval is not an MCP index. Use `codebase-memory-mcp` before filesystem code search, select the
|
|
22
|
+
graph from fresh Core `graph status`, by exact `sourceRoot`, and record the documented fallback
|
|
23
|
+
reason whenever direct code search is unavoidable.
|
|
24
|
+
|
|
18
25
|
## Resolve The Active Package
|
|
19
26
|
|
|
20
27
|
1. Resolve the active Git root with `git rev-parse --show-toplevel`.
|
|
@@ -92,7 +99,7 @@ active writer token when the C1 contract requires it. The recovery records only
|
|
|
92
99
|
`task run` merely to manufacture the second failure, and never invoke this recovery for a generic
|
|
93
100
|
test failure, a writable manifest, or unconfined changes.
|
|
94
101
|
|
|
95
|
-
For beta.13.13, the exact published target runner may perform only read-only
|
|
102
|
+
For beta.13.13 and beta.13.14, the exact published target runner may perform only read-only
|
|
96
103
|
`update plan-integrity-update-preflight --id <TASK-ID>` against a coherent beta.13
|
|
97
104
|
source from beta.13.11 with a strictly newer target and a freshly proved V4 literal
|
|
98
105
|
test invocation conflict. Require eligible=true, exact Task/Plan/HEAD and dirty
|
|
@@ -109,6 +116,11 @@ classification changes, changed dirty bytes or unavailable authority block this
|
|
|
109
116
|
route. Do not refresh source context first to conceal the failed-Step boundary,
|
|
110
117
|
edit state, or apply the extra test patch before Core grants its bounded scope.
|
|
111
118
|
|
|
119
|
+
In beta.13.14, historical root-cause carryover is assessed only for a planned
|
|
120
|
+
replacement Step, matching execution. It must not mask current failed-Step scope
|
|
121
|
+
recovery. Preserve the original C1 claimant; delegated context refresh does not
|
|
122
|
+
issue or renew a writer credential. Follow fresh navigation for credential recovery.
|
|
123
|
+
|
|
112
124
|
When fresh `next` includes `preExecutionReplanOption.state=eligible`, an independent Plan auditor
|
|
113
125
|
may stop a `ready` Task before its next Step because the current implementation Plan is obstructed.
|
|
114
126
|
Use only `task preexecution-replan` with the exact advertised Task revision, Brief hash, Plan hash,
|
|
@@ -491,8 +503,8 @@ Task details, other Task Plans, unrelated repository analysis, reasoning traces,
|
|
|
491
503
|
credentials. The new Task chat may read repository files and its own Workflow Task/Brief/Plan; it
|
|
492
504
|
must not rely on the parent conversation as evidence or authority.
|
|
493
505
|
|
|
494
|
-
Every automatically created Coordinator, Task, Step Review, Final Review, Corrective Audit,
|
|
495
|
-
|
|
506
|
+
Every automatically created Coordinator, Task, Step Review, Final Review, Corrective Audit, Plan
|
|
507
|
+
Audit, and Workflow Blocker chat must use the project registry/title builder at
|
|
496
508
|
`../../scripts/chat-registry.mjs`. Before `create_thread`, call `allocate` with exact `projectId`,
|
|
497
509
|
chat type, Milestone/Task/Step membership ordinals, semantic title, authoritative entity ID, and
|
|
498
510
|
review attempt. Use returned `requestedTitle` verbatim. Never derive its prefix from
|
|
@@ -524,6 +536,7 @@ The builder owns these compact title families; callers must not hand-compose var
|
|
|
524
536
|
#NNN · M<NN>/T<NN> · Final Review A<N> · <Task title> · <TASK-ID>
|
|
525
537
|
#NNN · M<NN>/T<NN>/S<NN> · Corrective A<N> · <Step title> · <TASK-ID>
|
|
526
538
|
#NNN · M<NN>/T<NN> · Plan Audit A<N> · <Task title> · <TASK-ID>
|
|
539
|
+
<exact next beta patch version> # Workflow Blocker
|
|
527
540
|
```
|
|
528
541
|
|
|
529
542
|
When the Milestone ID is known, allocate and bind the coordinator chat before dispatch. During
|
|
@@ -613,20 +626,62 @@ transcripts. No chat may wait indefinitely for a child after ending its own turn
|
|
|
613
626
|
cross-restart background orchestration requires a separate app wakeup/automation facility and is
|
|
614
627
|
not implied by this skill.
|
|
615
628
|
|
|
629
|
+
|
|
630
|
+
## Workflow Blocker Incident Route
|
|
631
|
+
|
|
632
|
+
Core only describes this route. It does not create a chat, authorize repository changes, run a
|
|
633
|
+
release, publish a package, update a downstream project, or message another chat. The originating
|
|
634
|
+
Coordinator owns incident initiation and verifies that the new chat received its closed instructions.
|
|
635
|
+
The patch chat in `codex-workflow-v2` owns diagnosis, implementation, verification, publication,
|
|
636
|
+
and the callback to the Coordinator.
|
|
637
|
+
|
|
638
|
+
Treat `next.workflowBlockerRoute.state=gateway-confirmation-required` as a candidate incident, not
|
|
639
|
+
as an executable Core transition. Refresh `status` and `next` sequentially without mutation and
|
|
640
|
+
continue this route only when the same `blockerId` remains, no executable Core action, repair
|
|
641
|
+
transition, or Human gate exists, and the responsible product chat is not progressing the blocked
|
|
642
|
+
action. If an ordinary route appears, use it and do not create a patch chat.
|
|
643
|
+
|
|
644
|
+
For a confirmed incident, the Coordinator must:
|
|
645
|
+
|
|
646
|
+
1. Resolve the exact `codex-workflow-v2` App project with `list_projects`; never hardcode an App
|
|
647
|
+
project ID or create the patch chat in the product project.
|
|
648
|
+
2. Build the closed incident packet from the descriptor's `requiredPacketFields`, fresh status and
|
|
649
|
+
next hashes, bounded repository state, and the expected product continuation. Exclude bearer
|
|
650
|
+
credentials, confirmation codes, transcripts, and reasoning traces.
|
|
651
|
+
3. Allocate `type=workflow-blocker` with `entityId=<blockerId>` and
|
|
652
|
+
`semanticTitle=<dispatch.title>`. This type has no Milestone/Task membership and its sole title
|
|
653
|
+
candidate is the exact beta version. Run the normal `dispatch-begin -> create_thread ->
|
|
654
|
+
dispatch-result -> dispatch-observe -> readback -> bind` sequence. Use the policy-selected
|
|
655
|
+
explicit model and effort; never inherit the Coordinator settings.
|
|
656
|
+
4. Confirm once with `read_thread` that the created patch chat received the exact closed incident
|
|
657
|
+
packet and has started it. Do not poll, wait on, or supervise this chat. The patch chat must run
|
|
658
|
+
every remaining step autonomously and use `send_message_to_thread` to deliver the closed callback
|
|
659
|
+
to the originating Coordinator after the exact patch is published.
|
|
660
|
+
5. When that callback arrives, verify the published artifact, follow the advertised downstream update route in the product
|
|
661
|
+
repository, rerun fresh `status -> next`, and continue the existing responsible product chat
|
|
662
|
+
with only that route and changed bindings. Do not replace the Coord or product chat solely
|
|
663
|
+
because a workflow incident occurred.
|
|
664
|
+
|
|
665
|
+
The incident descriptor grants no Core mutation or publication authority. A callback claim does
|
|
666
|
+
not replace package readback or fresh product navigation.
|
|
667
|
+
|
|
616
668
|
## Product Or Workflow Graph Refresh
|
|
617
669
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
670
|
+
Follow `../../references/codebase-memory-routing.md`. In particular, select only the MCP project
|
|
671
|
+
whose normalized root exactly equals the fresh Core request's `sourceRoot`; never choose by name,
|
|
672
|
+
repository generation, or Knowledge Map membership.
|
|
673
|
+
|
|
674
|
+
1. Run `graph refresh-request --kind product|workflow --mode moderate|full` for the intended code.
|
|
675
|
+
2. Use `codebase-memory-mcp` to list projects and exact-match the request source root.
|
|
676
|
+
3. Check `index_status`; call `index_repository` with the request source root,
|
|
677
|
+
requested mode, and `persistence: false` when missing or stale.
|
|
678
|
+
4. Build evidence exactly as specified in `../../references/protocol.md`.
|
|
679
|
+
5. Pipe `{ "request": ..., "evidence": ... }` to `graph bind --stdin`, passing
|
|
625
680
|
the current binding revision when one exists.
|
|
626
681
|
|
|
627
|
-
When MCP is unavailable
|
|
628
|
-
|
|
629
|
-
|
|
682
|
+
When MCP is unavailable after its normal retry boundary, run
|
|
683
|
+
`graph fallback --kind ... --reason ...`. Only then use direct filesystem code discovery, while Git,
|
|
684
|
+
exact package resolution, named authority artifacts, and configured tests retain their normal tools.
|
|
630
685
|
|
|
631
686
|
## Role Use
|
|
632
687
|
|
|
@@ -787,6 +842,22 @@ returns `safe=true` with a clean checkout, no running Step, and no active writer
|
|
|
787
842
|
|
|
788
843
|
## Explain an implementation change before escalating
|
|
789
844
|
|
|
845
|
+
For registry `step-review`, `final-review`, `corrective-audit`, and `plan-audit` roles, inspect
|
|
846
|
+
only the canonical repository and immutable commit/packet/seal or audit-request evidence. Verify
|
|
847
|
+
those bindings before reading and returning the result. A detached or different App branch does
|
|
848
|
+
not require Task-branch reconciliation for read-only review. Do not change product files, Git
|
|
849
|
+
history or Workflow state, or invoke lifecycle mutations. Save an explicitly requested report only
|
|
850
|
+
outside repository checkouts under actual filesystem permissions; the dispatch prompt grants no
|
|
851
|
+
access. This review boundary does not apply to a Worker merely using a review-phase model.
|
|
852
|
+
|
|
853
|
+
Read-only Workflow diagnostics are not necessarily write-free: `next` can prepare an external
|
|
854
|
+
reviewer runtime cache and write/remove `.write-probe`. Check actual cache permissions for normal
|
|
855
|
+
review diagnostics. When the user explicitly prohibits every write, reuse current bound receipts
|
|
856
|
+
and the prior successful same-session handshake, read immutable evidence directly, and avoid
|
|
857
|
+
runtime-preflight APIs. Do not rerun `next` or save an artifact under that prohibition; report any
|
|
858
|
+
unverified current binding. The user's zero-write instruction controls. See
|
|
859
|
+
`../../references/chat-dispatch.md` for the distinction.
|
|
860
|
+
|
|
790
861
|
Before a product write by a tracked Worker, run the packaged registry `dispatch-context-check`
|
|
791
862
|
using fresh App readback, the actual write root and the branch from the current Task. Resolve
|
|
792
863
|
checkout mismatch without duplicate dispatch or silent canonical-checkout writes. A matching
|