@yunhozz/arc 0.5.6 → 0.5.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/MANIFEST.sha256 +69 -60
- package/claude/agents/arc-implementer.md +2 -2
- package/claude/agents/arc-planner.md +1 -1
- package/claude/agents/arc-reviewer.md +1 -1
- package/claude/agents/arc-scouter.md +1 -1
- package/claude/agents/arc-tester.md +1 -1
- package/claude/skill/SKILL.md +2 -2
- package/claude/skill/references/arc-visual-companion.md +2 -21
- package/claude/skill/references/commit.md +3 -30
- package/claude/skill/references/coordination.md +20 -126
- package/claude/skill/references/git-recovery.md +3 -3
- package/claude/skill/references/handoff-prep.md +7 -22
- package/claude/skill/references/handoff.md +19 -108
- package/claude/skill/references/limits.md +4 -15
- package/claude/skill/references/planning.md +22 -109
- package/claude/skill/references/verification.md +16 -118
- package/claude/skill/references/worktree-creation.md +1 -1
- package/codex/agents/arc-implementer.toml +3 -1
- package/codex/agents/arc-planner.toml +4 -0
- package/codex/agents/arc-reviewer.toml +6 -0
- package/codex/agents/arc-scouter.toml +6 -0
- package/codex/agents/arc-tester.toml +6 -0
- package/codex/skill/SKILL.md +2 -2
- package/codex/skill/references/arc-visual-companion.md +3 -27
- package/codex/skill/references/commit.md +3 -30
- package/codex/skill/references/coordination.md +19 -126
- package/codex/skill/references/git-recovery.md +2 -7
- package/codex/skill/references/handoff-prep.md +7 -22
- package/codex/skill/references/handoff.md +18 -107
- package/codex/skill/references/limits.md +5 -16
- package/codex/skill/references/planning.md +22 -109
- package/codex/skill/references/verification.md +15 -117
- package/gemini/agents/arc-implementer.md +1 -1
- package/gemini/skill/SKILL.md +2 -2
- package/gemini/skill/references/arc-visual-companion.md +2 -21
- package/gemini/skill/references/commit.md +3 -30
- package/gemini/skill/references/coordination.md +23 -129
- package/gemini/skill/references/git-recovery.md +3 -3
- package/gemini/skill/references/handoff-prep.md +7 -22
- package/gemini/skill/references/handoff.md +19 -108
- package/gemini/skill/references/limits.md +4 -15
- package/gemini/skill/references/planning.md +22 -109
- package/gemini/skill/references/verification.md +16 -118
- package/grok/agents/arc-implementer.md +1 -1
- package/grok/skill/SKILL.md +1 -1
- package/grok/skill/references/arc-visual-companion.md +2 -21
- package/grok/skill/references/commit.md +3 -30
- package/grok/skill/references/coordination.md +21 -127
- package/grok/skill/references/git-recovery.md +3 -3
- package/grok/skill/references/handoff-prep.md +7 -22
- package/grok/skill/references/handoff.md +19 -108
- package/grok/skill/references/limits.md +4 -15
- package/grok/skill/references/planning.md +22 -109
- package/grok/skill/references/verification.md +16 -118
- package/lib/policy/role-policy.json +1 -1
- package/lib/prompts/agent-fragments.json +19 -8
- package/lib/prompts/render.mjs +16 -5
- package/lib/runtime/adapters/codex.mjs +1 -1
- package/package.json +1 -1
- package/shared/skill/references/arc-visual-companion-common.md +39 -0
- package/shared/skill/references/commit-common.md +45 -0
- package/shared/skill/references/coordination-common.md +193 -0
- package/shared/skill/references/git-recovery-common.md +15 -0
- package/shared/skill/references/handoff-common.md +182 -0
- package/shared/skill/references/handoff-prep-common.md +53 -0
- package/shared/skill/references/limits-common.md +34 -0
- package/shared/skill/references/planning-common.md +185 -0
- package/shared/skill/references/verification-common.md +170 -0
- package/shared/skill/runtime/adapters/codex.mjs +1 -1
- package/shared/skill/runtime/role-policy.json +1 -1
|
@@ -6,44 +6,22 @@ Read before depth judgments, spec or plan drafting and approval, and first saves
|
|
|
6
6
|
<a id="authorization-and-scope"></a>
|
|
7
7
|
## Authorization and scope
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
An explicit execution request authorizes only sufficiently specified scope from that request or a description the user explicitly references. Confirm intent/outcome/constraints/document depth/verification risk and no unresolved material behavior/method/risk decision. Record approval evidence, scope, criteria, constraints and depth. Orchestrator MAY choose routine execution/check details, not unapproved product behavior/material scope. Restating/handoff/restart of unchanged scope needs no new approval.
|
|
12
|
-
|
|
13
|
-
Silence, ambiguous assent, other-work approval and vague blanket improvements are insufficient. Planner's new material choices are not automatically approved. Request missing decisions through Orchestrator. Required specs/plans retain separate ordered approval.
|
|
14
|
-
|
|
15
|
-
Hold affected work for material changes to scope, method or risk, and report the missing decision, evidence and remaining scope. Target change, unclear ownership, unexpected state, unresolved failure or missing inputs also hold under [handoff](handoff.md)/[recovery](git-recovery.md). Distinguish new authorization from existing-scope execution issues; routine correction/reverification needs no duplicate approval. Revalidate after resolution.
|
|
9
|
+
Shared text for this section: [planning-common.md#authorization-and-scope](planning-common.md#authorization-and-scope). It applies here exactly as if written in place.
|
|
16
10
|
|
|
17
11
|
<a id="probe-scope"></a>
|
|
18
12
|
### Probe scope
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
If explicitly requested probe+implementation is fully specified, classify the whole scope. Under Bounded conditions, probing is internal with no new report-time approval boundary. Unknown implementation is not blanket authorization. Materially changed scope/method/risk or new decisions hold implementation for reassessment and required design/spec/plan approvals. Probe-only remains separate.
|
|
14
|
+
Shared text for this section: [planning-common.md#probe-scope](planning-common.md#probe-scope). It applies here exactly as if written in place.
|
|
23
15
|
|
|
24
16
|
<a id="formal-drafting-boundary"></a>
|
|
25
17
|
## Formal drafting boundary
|
|
26
18
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Small-task direct edits follow only [handoff](handoff.md#orchestrator-direct-path-for-small-tasks), stopping/reclassifying changed scope/risk. Otherwise follow this reference. `brainstorming`/`writing-plans` instruct existing roles, not extra agents; ARC routing/approval overrides alternate executors. Missing required skills block their stage. Integration includes saving, reviewing and directly revising the same spec or plan after the complete Planner first draft; design/brainstorming retain their Planner drafting path.
|
|
30
|
-
|
|
31
|
-
For Korean requests and briefs, Planner uses Korean titles and prose unless another language is requested, preserving identifiers, skill/API names, code, paths, commands and literals. Orchestrator preserves agreed language when saving.
|
|
19
|
+
Shared text for this section: [planning-common.md#formal-drafting-boundary](planning-common.md#formal-drafting-boundary). It applies here exactly as if written in place.
|
|
32
20
|
|
|
33
21
|
<a id="planner-drafting-preparation-and-consolidated-feedback"></a>
|
|
34
22
|
## Planner drafting preparation and consolidated feedback
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Orchestrator can read a few already identified files directly; route material research and broad static exploration to Scouter.
|
|
39
|
-
|
|
40
|
-
1. Preflight relevant policy/references/profiles/tests/parity/manifest/conflicts. Apply formal-target and coordination provenance/input/local-skill gates, including required paths, approved bounded read alternatives and return conditions. Missing inputs/conflicts hold drafting. Read recovery grants no preparation/check/write/approval authority.
|
|
41
|
-
2. Maintain a compact ledger of original requirements/IDs, approved/open decisions, exclusions and scope deltas. Consolidate intervening user changes into one brief delta. Separate approvals, path/line-verified facts, assumptions and open decisions.
|
|
42
|
-
3. NEVER reuse a Planner instance across stages, except the Architectural continuation below. Within the design/brainstorming stage, reuse one Planner instance for every [design conversation](#design-conversation) response, the final design, its consolidated correction and any eligible further call while role, context and source remain valid; within a spec or plan stage, reuse that stage's Planner only for a budget-hold delta. On the Architectural path, the design Planner returns the start summary instead of a final design and, after [start confirmation](#architectural-start-confirmation), continues as the spec Planner through a spec-stage delta brief while role, context and source remain valid. Every plan stage, and an Architectural spec stage without that continuation, uses a fresh Planner; its initial brief contains every required field plus saved document paths and approved versions (for the Architectural plan stage, the reviewed spec path, version and SHA-256), and cites a prior brief only when that brief is an accessible file. Send one complete stage-specific initial brief. Include verified source/HEAD/ownership, selected target intent and planned paths (or prepared target for later stages), and scope/exclusions/depth/dependencies/shared contracts/criteria/checks/evidence/holds. Include preceding approved versions and paths, current behavior and connected source/generated/runtime/installer/docs, policy conflicts/resolution direction and exact deliverable. Visual work includes approved sources/versions/criteria/open interpretations. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields; inaccessible conversations or hashes alone cannot replace required inputs. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose, approval scope and accessible context. When source, target or scope changed, reconfirm affected inputs.
|
|
43
|
-
4. Planner returns the complete proportional first draft and self-review. Bounded plan density follows the Planner profile's ARC adaptation (per task ID/title, goal/scope/files, predecessors, criteria and required checks; short self-review checklist), while Architectural plans keep full writing-plans.md density. Briefs carry the Read/Grep exploration budget and MAY set a handback size limit. A return that stops at the exploration budget with a Scouter request is an input hold, not a missing or failed first draft; resend the stage brief as a delta with the Scouter evidence to the same stage Planner. In the design stage, [design conversation](#design-conversation) responses are expected returns and use no correction opportunity. Orchestrator saves and reviews it against the fixed checklist: scope/evidence; targets/ownership/paths; policy/conflicts; task boundaries/dependencies/criteria; checks/evidence/holds; roles/approval/commit boundaries; completeness; inventory/scope notation (final design, Architectural start summary and Architectural spec: complete [decision inventory](#decision-inventory); every document: every file or contract marked change or no change (reason), no ambiguous scope wording). For spec or plan, Orchestrator directly revises the same document, including substantive omissions, before requesting approval. New product decisions outside approved scope require user input first; Orchestrator then revises the document. Missing or failed first drafts stop the stage and do not transfer initial authorship.
|
|
44
|
-
5. For design and brainstorming, finish the checklist on the final design before one consolidated correction covering every substantive omission with criterion/defect/evidence/expected fix. Use deltas/`unchanged`; NEVER split by omission. Further calls after correction need approved material scope/evidence changes or concrete unmet checklist items plus meaningful new input/criterion progress. State changed input/target criterion/expected artifact/progress. Existing-scope omissions need no renewed scope approval. Repeated unmet criteria without new input/evidence/progress hold the stage; report criterion/observation/exact unblock decision. DO NOT repeat resolved questions or count rewording/agent replacement as progress.
|
|
45
|
-
|
|
46
|
-
For design and brainstorming, converse under [design conversation](#design-conversation) and allow one consolidated correction on the final design. On the Architectural path the conversation ends with the start summary instead of a final design; the summary receives no consolidated correction, and Orchestrator's review and direct revision apply to the spec draft. Orchestrator handles reformatting, re-expression, save and patch errors without Planner calls. Separate substantive work uses normal gates. Design, spec and plan stages remain separately ordered: Architectural plan drafting starts only after the spec is saved, reviewed and revised and its reviewed path, version and SHA-256 are fixed; NEVER draft spec and plan concurrently. Add no fixed call cap/profile count condition or incomplete-draft acceptance.
|
|
24
|
+
Shared text for this section: [planning-common.md#planner-drafting-preparation-and-consolidated-feedback](planning-common.md#planner-drafting-preparation-and-consolidated-feedback). It applies here exactly as if written in place.
|
|
47
25
|
|
|
48
26
|
<a id="design-conversation"></a>
|
|
49
27
|
### Design conversation
|
|
@@ -53,7 +31,7 @@ These rules apply to feature/design/behavior design and brainstorming. Spike, th
|
|
|
53
31
|
1. Response shape: each design Planner response is exactly one of: one question; 2–3 approaches with a recommendation and a selection question; one design section with a confirmation question; or the final design (Architectural: the start summary). Planner splits each response into a user message and Orchestrator notes; Orchestrator relays the user message unchanged.
|
|
54
32
|
2. When to ask: ask one question at a time, only when the answer changes the outcome and neither the sources nor the conversation already answer it. Otherwise state "my judgment" with its reason so the user can correct it.
|
|
55
33
|
3. Reason first: when the user's reason is unknown, first ask one open question without options; offer options only after hearing the reason.
|
|
56
|
-
4. Short path and opt-out: when the request is clear enough, the first response
|
|
34
|
+
4. Short path and opt-out: when the request is clear enough, the first response MAY carry a short design and ask for approval (Architectural: a short start summary and ask for start confirmation). When the user says to just proceed, stop asking, decide the remaining items as author judgments and list them in the final design or start summary.
|
|
57
35
|
5. Relay: Orchestrator relays each user answer verbatim to the same design Planner and marks any interpretation it adds separately.
|
|
58
36
|
6. No spinning: every call carries a new user answer or new evidence. DO NOT repeat a question without progress; without progress, report the blocked criterion, observed facts and the decision needed to unblock, and hold.
|
|
59
37
|
7. Reuse and correction: reuse the same design Planner while role, context and source remain valid. Conversation responses are expected returns, not missing or failed drafts, and use no correction opportunity. Orchestrator's fixed-checklist review and one consolidated correction apply to the final design. On the Architectural path the consolidated correction does not apply to the start summary; Orchestrator checks its decision inventory and scope notation before presenting it, and the spec draft takes Orchestrator's review and direct revision.
|
|
@@ -62,17 +40,12 @@ These rules apply to feature/design/behavior design and brainstorming. Spike, th
|
|
|
62
40
|
<a id="architectural-start-confirmation"></a>
|
|
63
41
|
### Architectural start confirmation
|
|
64
42
|
|
|
65
|
-
|
|
66
|
-
2. Start summary: when the [design conversation](#design-conversation) ends, the design Planner returns a short start summary instead of a final design: scope to change, user decisions, author judgments, already-answered items, open checks, path/depth/risk judgment, document set with planned relative paths, and every file or contract marked change or no change (reason). It carries the [decision inventory](#decision-inventory).
|
|
67
|
-
3. Confirmation: Orchestrator checks the summary's decision inventory and scope notation, presents it and, in one confirmation, obtains the user's scope confirmation and explicit target choice under [handoff](handoff.md). The summary is neither saved nor committed. The confirmed summary supplies the approved scope/depth/document set and explicit choice required by the [formal drafting boundary](#formal-drafting-boundary).
|
|
68
|
-
4. Continuation: Orchestrator sends the same Planner a spec-stage delta brief with verified source/branch/HEAD/ownership, the target choice, confirmed scope/depth, document set, planned paths and exploration budget; that Planner returns the complete first spec draft and self-review. If that Planner is unavailable or its role, context or source is no longer valid, assign a fresh spec Planner with a complete initial brief.
|
|
69
|
-
5. Records: the spec records the conversation's user decisions and author judgments; later author judgments join the same list. A genuinely new decision during spec or plan drafting goes to the user; Orchestrator records the answer in the spec, rechecks spec↔plan consistency and redrafts affected documents. No design approval is requested.
|
|
70
|
-
6. Full Auto: under [Full Auto](#full-auto-run-mode), scope confirmation within the original request may be auto-decided; target choice follows the Execution-target choice row; [approval.run-mode] limits apply unchanged.
|
|
43
|
+
Shared text for this section: [planning-common.md#architectural-start-confirmation](planning-common.md#architectural-start-confirmation). It applies here exactly as if written in place.
|
|
71
44
|
|
|
72
45
|
<a id="decision-inventory"></a>
|
|
73
46
|
### Decision inventory and question classification
|
|
74
47
|
|
|
75
|
-
1. Decision inventory: before returning the final design or Architectural start summary, Planner lists what spec and plan drafting
|
|
48
|
+
1. Decision inventory: before returning the final design or Architectural start summary, Planner lists what spec and plan drafting MUST decide, such as changed files, data formats, table notation, tests and generated artifacts, and classifies each item as a user decision (asked in the conversation; the answer is recorded in the design, or for Architectural in the start summary and then the spec), an author judgment (a minor item that does not change the deliverable; record "my judgment" and the reason) or already answered (cite the existing source or conversation). Bounded short designs carry a proportional inventory of a few lines; the per-file scope notation stays mandatory.
|
|
76
49
|
2. Scope notation: designs, specs and plans mark every file or contract "change" or "no change (reason)". DO NOT use ambiguous scope wording such as "review only" or "if needed".
|
|
77
50
|
3. Final design: the final design and its design approval request attach the author-judgment list. On the Architectural path the start summary and its start-confirmation request attach it, and the spec records the user decisions and author judgments.
|
|
78
51
|
4. Spec and plan questions: spec and plan Planners classify each question raised while drafting. Answered by the design (Architectural: the confirmed start summary): follow it and cite the basis. Minor: decide it as an author judgment and record it in the document's author-judgment list with ID, judgment and reason; it is not an open decision. Genuinely new decision (changes the deliverable and is absent from the design or confirmed start summary): return it as an open decision with why the design review or start confirmation missed it; Orchestrator routes it to the user.
|
|
@@ -83,17 +56,7 @@ These rules apply to feature/design/behavior design and brainstorming. Spike, th
|
|
|
83
56
|
<a id="design-path-and-plan-depth"></a>
|
|
84
57
|
## Design path and plan depth
|
|
85
58
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
1. Before feature/design/behavior work, assign brief/evidence/local `brainstorming` to Planner. Planner proposes context/path/options/tradeoffs/criteria/assumptions/questions; Orchestrator selects path, integrates, announces scope, routes revisions and obtains approval. NEVER run drafting skills itself. Direct path uses scope record only.
|
|
89
|
-
2. Spike distinguishes probe-only from specific combined scope. Bounded approves short design before Implementer; direct edits use approved scope record. Architectural replaces design approval with one [start confirmation](#architectural-start-confirmation), then complete Planner spec/self-review and Orchestrator save/review/revision without a separate spec approval request; a fresh plan Planner then drafts from the reviewed spec, and the spec and every plan receive one [combined approval](#architectural-combined-approval). Planner is read-only and requests no approval.
|
|
90
|
-
3. Assess plan depth after design approval (Architectural: start confirmation) and before Implementer, separately from files/LOC/Bounded label. Architectural always uses `writing-plans` and the combined spec+plan approval regardless of size/locality/risk. Bounded skips only for one local change, no dependent stages/cross-component shared state/lifecycle/integration-order concerns and one verification path. Otherwise require a plan. Labels/no-plan requests do not bypass judgment.
|
|
91
|
-
4. Record dependencies/depth reasons; also post the design path, depth and risk judgments in the SKILL.md Pre-action gate record. Planner returns complete plan/assumptions/open decisions/checks/self-review. Orchestrator saves/reviews/obtains approval before Implementer at user path or `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`. Default spec path is `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`.
|
|
92
|
-
5. Every Implementer first start/restart needs applicable approvals/artifacts/brief/findings and full handoff. Non-behavior docs/config omit only inapplicable stages. Direct edits need approved scope record and same first-edit gates.
|
|
93
|
-
|
|
94
|
-
Bounded has no spec stage, spec approval or spec-necessity record. If Bounded work appears to need a spec-level document, do not write one inside Bounded: reassess the design path as Architectural, inform the user and obtain the path-change approval required by existing rules before dependent drafting. Required plans alone imply no written spec.
|
|
95
|
-
|
|
96
|
-
Only Planner authors the first complete spec or plan draft and self-review. Orchestrator reviews and directly revises the same document before approval. Unavailable/failed Planner stops first drafting rather than transferring authorship. Design approval or start confirmation does not transfer initial authorship.
|
|
59
|
+
Shared text for this section: [planning-common.md#design-path-and-plan-depth](planning-common.md#design-path-and-plan-depth). It applies here exactly as if written in place.
|
|
97
60
|
|
|
98
61
|
<a id="architectural-combined-approval"></a>
|
|
99
62
|
## Architectural combined approval
|
|
@@ -106,98 +69,59 @@ Only Planner authors the first complete spec or plan draft and self-review. Orch
|
|
|
106
69
|
6. Rework (R5): If spec rejection requires substantive plan rework, use a fresh plan Planner under the normal Planner gate; Orchestrator handles formatting, re-expression, save and patch errors.
|
|
107
70
|
7. Commit and Implementer (R6): Before combined approval, commit no planning document and start no Implementer. After it, make one planning-document commit under [handoff-prep](handoff-prep.md#planning-document-commit).
|
|
108
71
|
|
|
109
|
-
|
|
72
|
+
Shared text for this section: [planning-common.md#architectural-combined-approval](planning-common.md#architectural-combined-approval). It applies here exactly as if written in place.
|
|
110
73
|
|
|
111
74
|
<a id="top-level-plan-tasks"></a>
|
|
112
75
|
## Top-level plan tasks
|
|
113
76
|
|
|
114
|
-
|
|
77
|
+
Shared text for this section: [planning-common.md#top-level-plan-tasks](planning-common.md#top-level-plan-tasks). It applies here exactly as if written in place.
|
|
115
78
|
|
|
116
79
|
Substeps/checkboxes/RED-GREEN/commands are not commits. One top-level task becomes one focused commit after acceptance; [commit](commit.md) governs no-change/hold/resume. Reviewer is never a per-task check. Final whole verification has separate scope/timing; significant work lists one Reviewer after all task acceptances/risk checks and concluded final-mode Tester work. Task boundaries alone add no Tester. Apply only to required plans; omission paths gain no plan obligation. Plans list per-task related tests with reasons and a final verification section per [verification](verification.md#test-scope-and-result-comparison).
|
|
117
80
|
|
|
118
|
-
|
|
81
|
+
Shared text for this section: [planning-common.md#top-level-plan-tasks-2](planning-common.md#top-level-plan-tasks-2). It applies here exactly as if written in place.
|
|
119
82
|
|
|
120
83
|
<a id="dependency-and-readiness-record"></a>
|
|
121
84
|
## Dependency and readiness record
|
|
122
85
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Ready requires approvals/preparation, settled inputs/contracts, predecessor checks/Orchestrator acceptance/verified commits or accepted no-change, nonconflicting ownership/resources, available checks/Tester and slots under both full-tree ARC and lower actual runtime limits. Read [limits](limits.md); report runtime constraints without claiming capability. Start ready independent tasks concurrently with fresh Implementers within capacity. Record holds/serialization rather than silently following order. Preserve risk/Tester/Reviewer/target gates.
|
|
126
|
-
|
|
127
|
-
Update on reports/checks/acceptance/commit/slot return/conflicts. Completion alone releases no dependent. Immediately reassess newly ready tasks without waiting for unrelated batches. Failed/uncertain predecessors hold only their chains. Refresh handoff each dispatch; shared Git follows commit rules. This map cannot rewrite approved boundaries or waive approval.
|
|
128
|
-
|
|
129
|
-
Example: with A → B → C, independent D and two slots, start A/D. After A's checks/acceptance/verified commit, B may start while D continues. A failure holds B/C, not unaffected D.
|
|
86
|
+
Shared text for this section: [planning-common.md#dependency-and-readiness-record](planning-common.md#dependency-and-readiness-record). It applies here exactly as if written in place.
|
|
130
87
|
|
|
131
88
|
<a id="document-save-evidence-gates"></a>
|
|
132
89
|
## Document-save evidence gates
|
|
133
90
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
| Save | Required evidence |
|
|
137
|
-
|---|---|
|
|
138
|
-
| Spec | Confirmed start scope/evidence ([start confirmation](#architectural-start-confirmation)), complete Planner draft/self-review, Orchestrator integration/save/review ownership and absolute path. Architectural only |
|
|
139
|
-
| Plan | Bounded: approved design; Architectural: confirmed start scope and the reviewed spec path/version/SHA-256 and review evidence; depth judgment, plan list/dependencies, complete Planner draft/self-review, ownership and absolute path |
|
|
140
|
-
|
|
141
|
-
Saving for review requires no prior document approval, but does require valid target choice/actual preparation. The reviewed Architectural spec enters the document set before dependent planning; approval follows once for the full set. NEVER call uncommitted files committed. Missing or mismatched evidence stops the affected save.
|
|
91
|
+
Shared text for this section: [planning-common.md#document-save-evidence-gates](planning-common.md#document-save-evidence-gates). It applies here exactly as if written in place.
|
|
142
92
|
|
|
143
93
|
<a id="complete-planning-document-set"></a>
|
|
144
94
|
## Complete planning-document set
|
|
145
95
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
A required plan implies no spec. Spec stages cover Architectural only; plan stages cover required plans only. Add no spec duty to Spike/plan-skip/non-behavior paths.
|
|
149
|
-
|
|
150
|
-
Order: initial design approval → explicit target and source snapshot → first required draft/self-review → focused preparation gate → actual preparation/comparison → save/review/revision → Architectural: dependent plan drafting/save/review/revision → spec↔plan consistency check → one combined approval; Bounded: plan approval → full set → verify existing commits/batch remaining approvals → final Git → Implementer. On the Architectural path, [start confirmation](#architectural-start-confirmation) takes the place of initial design approval in this order and carries the explicit target choice. Omission skips only inapplicable documents with rationale. Complete documents precede staging/commit/handoff, not initial preparation/choice request. Partial approvals authorize no early implementation.
|
|
151
|
-
|
|
152
|
-
Defer local `brainstorming`'s early spec commit: save/self-review/review the uncommitted spec, draft/save/review all plans, obtain the combined approval, then final batch. Modify no external skill. `writing-plans` implementation commits grant neither planning-document commits nor early Implementer.
|
|
153
|
-
|
|
154
|
-
| Path | Approval/preparation |
|
|
155
|
-
|---|---|
|
|
156
|
-
| Spike | Approve question/method/scope/criteria/constraints; no forced unknown-implementation docs. Implementer probes require handoff; read-only Orchestrator/Planner probes without Implementer do not trigger it |
|
|
157
|
-
| Bounded, plan skipped | Approve short design; record omission conditions. Complete approvals, target choice, actual docs or valid absence, then handoff |
|
|
158
|
-
| Bounded, plan required | Approve design and all required plans; no spec. Draft the first required plan before target preparation; complete set before batch/handoff |
|
|
159
|
-
| Architectural | Start confirmation → reviewed written spec → all `writing-plans` plans → one combined spec+plan approval. First spec draft before target preparation; full set before batch/final checks/handoff |
|
|
160
|
-
| Non-behavior docs/config | Record scope/criteria/inapplicability. Preserve target/Git/docs-or-absence/handoff |
|
|
161
|
-
|
|
162
|
-
New planning scope requires list/depth/dependency reassessment and approvals before dependent drafting/commit. Approved-body changes need revised approval except task progress records below. New implementation scope holds execution until docs/approvals/preparation complete. Running Implementer stops before newly dependent edits; inspect actual changes/Git without retrospective preparation claims. Reflect approved versions through pending revisions below. Unchanged-document restarts follow handoff lifetime.
|
|
96
|
+
Shared text for this section: [planning-common.md#complete-planning-document-set](planning-common.md#complete-planning-document-set). It applies here exactly as if written in place.
|
|
163
97
|
|
|
164
98
|
<a id="plan-updates-during-execution"></a>
|
|
165
99
|
## Plan updates during execution
|
|
166
100
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Changes to goals, task boundaries, scope, criteria, method, risk, dependencies or checks require revised approval before affected work. Hold, obtain the applicable design approval (Bounded; Architectural records the new decision in the revised spec) and document approvals below and prepare target/ownership/checks/handoff. Other body corrections follow version approval; classify typos/paths/commands/explanations by semantic effect. Every non-progress content change, including a mechanical correction, is a plan revision requiring applicable approval/preparation. A contract revision requires a fresh Implementer for remaining work.
|
|
170
|
-
|
|
171
|
-
Execution-time document revisions take this approval: a spec change with affected plans needs one combined revision approval for the spec and those plans; a plan-only change needs plan approval; a spec-only change needs spec approval after Orchestrator records why no plan is affected. Partial approvals never carry over.
|
|
172
|
-
|
|
173
|
-
After approval Orchestrator edits the same file, appends a revision-history row and leaves the revision uncommitted. Apply cumulative revisions to that file and append another row. At document end use `Version | Approval time | Classification | Affected tasks | Reason`; keep rows append-only, with no SHA. Add v1 at the first revision using the actual initial approval time. Preserve actual approval chronology, not retroactive authorization; later committed content proves no earlier approval.
|
|
174
|
-
|
|
175
|
-
Keep all approved spec/plan revisions pending for the accepted commit of the first top-level task executed or reconfirmed against the revised version. Otherwise include them in a current task acceptance or final Reviewer follow-up commit. Only when no implementation work remains before overall completion MAY Orchestrator make one standalone `docs(plan)` closing commit: record that evidence canonically, include all pending revisions/trailers and no implementation files. No separate docs/fixup commit is allowed outside this sole closing exception. Plan-level progress records alone never trigger it. Overall completion requires no pending revisions. Exclude revision hunks from independent tasks accepted on a prior version; hold that commit if safe separation is impossible.
|
|
176
|
-
|
|
177
|
-
NEVER amend planning or implementation commits, reset, replay or rewrite their history. Preserve canonical pending revisions, approved content copies, versions/hashes, approval references/actual times, classification/reason, affected tasks and hold/preparation/resume evidence under [preparation](handoff-prep.md#execution-time-plan-revision). NEVER overwrite old approvals/content. Follow [commit](commit.md#execution-time-plan-document-updates) and [verification](verification.md#evidence-after-plan-revision-commit). Add no Git automation/runtime enforcement/authority/check exemptions.
|
|
101
|
+
Shared text for this section: [planning-common.md#plan-updates-during-execution](planning-common.md#plan-updates-during-execution). It applies here exactly as if written in place.
|
|
178
102
|
|
|
179
103
|
<a id="evidence-refresh-and-limits"></a>
|
|
180
104
|
## Evidence refresh and limits
|
|
181
105
|
|
|
182
|
-
|
|
106
|
+
Shared text for this section: [planning-common.md#evidence-refresh-and-limits](planning-common.md#evidence-refresh-and-limits). It applies here exactly as if written in place.
|
|
183
107
|
|
|
184
108
|
NEVER retroactively call early saves/commits compliant or approved. Record actual order/gaps. Structure proves authored contracts only; absent role/approval/save/Git execution records leave runtime compliance unverified. Add no runtime infrastructure or external-skill changes for checks. Only the narrow cooperative exception below applies.
|
|
185
109
|
|
|
186
110
|
<a id="local-planning-references"></a>
|
|
187
111
|
## Local planning references
|
|
188
112
|
|
|
189
|
-
|
|
113
|
+
Shared text for this section: [planning-common.md#local-planning-references](planning-common.md#local-planning-references). It applies here exactly as if written in place.
|
|
190
114
|
|
|
191
115
|
<a id="instruction-and-input-provenance"></a>
|
|
192
116
|
## Instruction and input provenance
|
|
193
117
|
|
|
194
|
-
|
|
118
|
+
Shared text for this section: [planning-common.md#instruction-and-input-provenance](planning-common.md#instruction-and-input-provenance). It applies here exactly as if written in place.
|
|
195
119
|
|
|
196
120
|
|
|
197
121
|
<a id="managed-worktree-preparation"></a>
|
|
198
122
|
### Managed worktree preparation
|
|
199
123
|
|
|
200
|
-
|
|
124
|
+
Shared text for this section: [planning-common.md#managed-worktree-preparation](planning-common.md#managed-worktree-preparation). It applies here exactly as if written in place.
|
|
201
125
|
|
|
202
126
|
[ARC role policy: contract begin]
|
|
203
127
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
@@ -207,18 +131,14 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
207
131
|
- [review.significant-plan] Significant/high-risk plan work follows Implementer → required fresh Tester → Orchestrator acceptance and focused commit for each task. After all tasks are accepted and required Tester is complete, Reviewer reviews the final full change once. Reviewer is not a per-task or per-commit gate. Preserve required checks and necessary finding rechecks.
|
|
208
132
|
- [review.final-plan-recheck] Complete required Tester, Tester failure rechecks and final-mode Tester work before the initial final overall Reviewer review; final-mode Tester work concludes when its report is delivered, its new failures are resolved through Implementer → Tester recheck, its new-failure and intermittent candidates are dispositioned, any approved full regression is complete and every undeterminable-scope item is dispositioned. Once that review begins on plan work, every final Reviewer finding, including behavior, follows Implementer → Reviewer without Tester reassignment until resolved. Keep corrections uncommitted through Reviewer rechecks, then accept and create one focused follow-up commit. Tester findings and new failures from final verification follow Implementer → Tester before that review begins. Preserve required Tester outside this final Reviewer exception.
|
|
209
133
|
- [planning.plan-revision] Task progress records (checkboxes, notes, results, evidence and status) preserving the approved contract need no new user approval; Orchestrator includes the completed task's own records in its accepted implementation commit and records classification, reason and actual time as applicable. Plan-level progress records preserving the approved contract also need no new user approval and alone never trigger the standalone docs(plan) closing commit. All other spec/plan content changes, contract or mechanical, require applicable approval and preparation; changes to goals, scope, criteria, method, risk, dependencies or required verification need revised-version approval, preparation and holds on affected work before it continues, with a fresh Implementer for remaining work. After approval Orchestrator edits the same document, appends a revision-history row and leaves it uncommitted as an Orchestrator-owned pending revision, recording version, content hash, approval reference, actual time, classification, reason, affected tasks and the full approved content in the canonical handoff record. Orchestrator includes all pending revisions with Plan-Revision, Plan-Approved-At and Plan-Reason trailers in the accepted commit of the first top-level task executed or reconfirmed against the revised version, otherwise in a current task or final Reviewer follow-up commit; only when no implementation work remains before overall completion MAY it make one standalone docs(plan) closing commit without implementation files. Exclude revision hunks from commits of independent tasks accepted on a prior version, or hold that commit when separation is unsafe. NEVER amend or rewrite planning or implementation commits, create any other docs/fixup commit or authorize past work retroactively. After commit verify the committed document content matches the latest approved content apart from classified progress records of that commit's task or committed for other tasks after approval, or plan-level progress records carried by that commit, and that no pending revision remains. Follow planning, handoff-prep, commit and verification for the full contract.
|
|
210
|
-
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid, except that on the Architectural path that Planner continues as the spec Planner after start confirmation through a spec-stage delta brief; use a fresh Planner instance for each plan stage, and for an Architectural spec stage when that Planner is unavailable or its role, context or source is no longer valid, whose initial brief contains every required field, saved document paths and approved versions (for the Architectural plan stage, the reviewed spec path, version and SHA-256). Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context.
|
|
134
|
+
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid, except that on the Architectural path that Planner continues as the spec Planner after start confirmation through a spec-stage delta brief; use a fresh Planner instance for each plan stage, and for an Architectural spec stage when that Planner is unavailable or its role, context or source is no longer valid, whose initial brief contains every required field, saved document paths and approved versions (for the Architectural plan stage, the reviewed spec path, version and SHA-256). Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. Reconfirm affected inputs when source, target or scope changed. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, follow planning.md's design conversation: each Planner response is exactly one of one question, 2–3 approaches with a recommendation and a selection question, one design section with a confirmation question, or the final design (Architectural: the start summary). Ask one question at a time only when the answer changes the outcome and is not already answered; otherwise state the judgment and its reason. Ask an open question about the user's reason before offering options. For a clear request, Planner MAY return a short design for approval at once; when the user says to proceed, stop asking and list the remaining author judgments in the final design or start summary. Relay user answers verbatim and mark added interpretation separately. Every call needs a new user answer or new evidence; without progress, report the blocked criterion, observed facts and needed decision, and hold. Conversation responses use no correction opportunity. Orchestrator reviews the final design once with the fixed checklist, including decision-inventory completeness and no ambiguous scope wording, and sends one consolidated correction using changed fields only. On the Architectural path the start summary receives no consolidated correction; Orchestrator checks its decision inventory and scope notation before presenting it, and the spec draft takes Orchestrator's review and direct revision. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. DO NOT split omissions, repeat resolved items or count rewording/agent replacement as progress. DO NOT invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. For Bounded work, obtain design approval before plan drafting. For Architectural work, obtain one start confirmation (scope and explicit target; no design document or design approval) before spec drafting, let the design Planner continue as the spec Planner (a fresh spec Planner when it is unavailable or invalid), then draft the plan with a fresh Planner, assigning the plan Planner only after the spec is saved and reviewed and its path, version and SHA-256 are fixed; NEVER draft them concurrently; then obtain one combined spec+plan approval. Bounded work has no spec stage; required plans keep their own approval. Add no fixed call cap or profile call-count conditions, and NEVER accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.
|
|
211
135
|
- [platform.codex] Role restrictions are prompt-level contracts, not a filesystem sandbox. ARC supplies no native observer hook or role-specific Git guard. Existing shell capabilities are retained because static read access after shell reduction has not been verified; Implementer and Tester need shell for approved checks.
|
|
212
136
|
[ARC role policy: contract end]
|
|
213
137
|
|
|
214
138
|
<a id="approved-cooperative-execution-path-within-the-repository"></a>
|
|
215
139
|
## Approved cooperative execution path within the repository
|
|
216
140
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
Entry updates migrate no state/renew no approvals; drift requires current evidence. Scope is repository cooperative decisions/records, not native hook/provider/installer installation or blocking direct tools. `no-plan`/omission stays unsupported through Phases 2/3, implying neither policy violation nor new document duty.
|
|
220
|
-
|
|
221
|
-
Record approved planning-document SHA-256 (Architectural spec and plans; Bounded plans), shared docs-only commit and document/approval versions. CLI verifies exact Git-object paths/current bytes before assignment intent. New workflows/late commits prove no past compliance. Prior history/outside execution stays unverified. Approval/native results are `operator-attested`; agent IDs are not authenticated identity.
|
|
141
|
+
Shared text for this section: [planning-common.md#approved-cooperative-execution-path-within-the-repository](planning-common.md#approved-cooperative-execution-path-within-the-repository). It applies here exactly as if written in place.
|
|
222
142
|
|
|
223
143
|
<a id="full-auto-run-mode"></a>
|
|
224
144
|
## Full Auto run mode
|
|
@@ -248,11 +168,4 @@ Applies only when the installed SKILL.md contains `**Run mode:** Full Auto.` and
|
|
|
248
168
|
| Unknown slot or exhausted capacity | user | — |
|
|
249
169
|
| Plan depth, local commit, Tester, Reviewer, acceptance | unchanged | — |
|
|
250
170
|
|
|
251
|
-
|
|
252
|
-
- Each auto decision: user-visible progress message `auto-decided (Full Auto): <gate> → <choice>; reason; alternatives; evidence`, plus the same entry in the canonical handoff record.
|
|
253
|
-
- Pre-action gate record: `run` field (`supervised` or `full-auto`).
|
|
254
|
-
- Revision-history `Approval time`: `auto-approved (Full Auto) <time>`.
|
|
255
|
-
- Runtime `approvalRef` (free text): `full-auto:<doc>@<version>`.
|
|
256
|
-
- Completion report: list every auto decision.
|
|
257
|
-
|
|
258
|
-
Stopping: a user request in this chat to stop or switch to Supervised overrides the installed default and applies from the next gate; earlier auto decisions remain recorded.
|
|
171
|
+
Shared text for this section: [planning-common.md#full-auto-run-mode](planning-common.md#full-auto-run-mode). It applies here exactly as if written in place.
|
|
@@ -10,61 +10,19 @@ Read before verification design, Tester/Reviewer assignment, correction rechecks
|
|
|
10
10
|
|
|
11
11
|
Each criterion needs the exact approved source, version, approval and access state; IDs, properties and comparison method; and a link between output and revision. Implementer reporting does not replace fresh Tester. Record pass/mismatch/unverified and connect to criterion verdicts; pass needs accessible supporting evidence. Missing linkage is unverified; visible difference is mismatch, separately, without inferring current branch UI. Hold comparison when materials are inaccessible or interpretation approval is missing.
|
|
12
12
|
|
|
13
|
-
Policy, generated-file and manifest checks prove structure, not role behavior, installed builds,
|
|
13
|
+
Policy, generated-file and manifest checks prove structure, not role behavior, installed builds, platform CLI compliance or fidelity. Report changes, exclusions, checks run and omitted, criterion evidence and limits, and platform availability. Report baseline failures separately; independent progress does not relax checks.
|
|
14
14
|
|
|
15
15
|
<a id="test-scope-and-result-comparison"></a>
|
|
16
16
|
## Test scope and result comparison
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
**Task mode** assigns a fresh Tester for each top-level task requiring Tester verification. Task checks and rechecks verify uncommitted work and run only tests related to the change: test files that directly exercise a changed module, contract tests that the change requires updating, and the matching check scripts. The brief lists the minimum set; executors MAY add only items in these three categories, each with a reason. Other additions need Orchestrator authorization. Report every selected item and why. Read only to confirm the brief and identify tests in those categories. In task mode, never run full regression or substitute checks. In task mode, do not search reverse dependencies. Failures follow Implementer → Tester recheck, reusing the current Tester for the same task. This rule takes precedence over the upstream TDD per-task project-suite instruction; upstream text is unchanged. Report every failure observed in any run by name.
|
|
21
|
-
|
|
22
|
-
**Final mode** runs once after all tasks are accepted and committed, as one fresh Tester assignment at the verified HEAD of the execution target worktree. Run (1) all contract tests, (2) all check scripts, (3) the related tests of re-changed files and (4) substitute checks for applicable triggers. Final mode does not rerun the union of tests that task Tester already passed. A re-changed file is a file that a task's Tester verified, as a changed file or a related test file it ran, and that a later commit changed after that task's focused commit (`git diff --name-only <task commit> HEAD`), plus every non-documentation file changed in base..HEAD by a commit that no task Tester verified. Orchestrator computes the list and cites it in the brief; Tester cross-checks it with read-only `git diff`, MAY add items only within the three categories above with reasons, and reports the reason when the list is empty. Tester records `git status --porcelain` at start and end; a state that is not clean is an environment block that holds final verification. While it runs, neither Orchestrator nor any Implementer writes in that workspace. A new failure from final verification follows Implementer → Tester. The final Reviewer starts only after final-mode Tester work concludes: the final Tester report is delivered, every new failure is resolved through Implementer → Tester recheck, every new-failure candidate and intermittent candidate is dispositioned, any approved full regression is complete and every undeterminable-scope item is dispositioned under **Undeterminable scope** below. Reviewer output produced before that point is not the initial final review.
|
|
23
|
-
|
|
24
|
-
**Command execution:** Implementer and Tester briefs MUST NOT prescribe detached execution such as `&`, `nohup` or `setsid`; they require long commands to run in the foreground and be waited on in the same session until an exit code. Orchestrator does not run a Tester's assigned suites in its place unless Tester reports an environment block with evidence and the user chooses that run.
|
|
25
|
-
|
|
26
|
-
**Suite parallelism:** A Tester runs each multi-file suite command with the test runner's built-in parallel mode inside that one foreground command; a parallel mode that needs a package or plugin not already installed counts as no parallel mode. It runs a suite sequentially only when its tests are known to interfere with each other or the runner has no parallel mode, and reports the reason. Briefs MUST NOT split a suite into sequential groups for any other reason; splitting across Testers follows **Full regression shards** below. This changes how a command runs, not which tests run.
|
|
27
|
-
|
|
28
|
-
Read-only reverse dependency search is allowed in final mode. Use the project's affected tool only in list or dry-run form with no writes, installs or cache generation; otherwise report an environment block and continue with the next step of the impact procedure.
|
|
29
|
-
|
|
30
|
-
**Trigger substitute checks** run in final mode for each applicable trigger: (1) the change modifies a shared module; (2) changes made by others were integrated after the approved base, by merge, rebase onto a newer base or cherry-pick; (3) the change modifies dependency manifests or lockfiles, language or runtime versions, or build or test configuration; (4) the change removes, renames or changes the signature of a public interface such as an exported function, CLI option or configuration key. A shared module is code, configuration, schema, data or generator input that more than one task, role, component or execution or delivery path imports, loads or renders at run time, including its mirrors and generated outputs; documentation read only by people and modules used by a single component are not shared. Decide from actual consumers; when they cannot be determined, treat the module as shared.
|
|
31
|
-
|
|
32
|
-
Planner records a provisional trigger judgment with the substitute-check list and reasons in the plan. Orchestrator cites its provisional judgment and reasons in the final-mode Tester brief. Tester independently checks triggers (1), (3) and (4) from the base..HEAD diff and log and checks trigger (2) using the integration history cited by Orchestrator. If trigger applicability is undeterminable, report it as unverified. If no trigger applies, omit substitute checks and report the reason. Change size, risk level alone and out-of-scope failures seen during task checks are not triggers; report such failures as findings.
|
|
33
|
-
|
|
34
|
-
| Trigger | Substitute check | Undeterminable when |
|
|
35
|
-
| --- | --- | --- |
|
|
36
|
-
| (1) Shared module | Trace reverse dependencies transitively and run tests reached. Include static import, require, load and path-string references, including mirrors and generated outputs. If the set cannot be determined, expand once to the nearest package manifest directory, otherwise the test directory. | A suspected dynamic reference. |
|
|
37
|
-
| (2) Integrated changes | Add incoming changes and conflict-resolution files to the changed set and apply the same impact procedure. Reuse external CI or verification evidence only for the same commit or tree hash. | An uncertain integration history. |
|
|
38
|
-
| (3) Dependencies | Use the lockfile diff to find packages whose resolved version changed, including transitive dependencies. Run tests for modules that import those packages. | A missing or unreadable lockfile. |
|
|
39
|
-
| (3) Language, runtime, build or test configuration | Run one representative test per package or test directory. Use project-declared smoke tests first, otherwise select the lexicographically first test file per directory, and record why each test was selected. | An unidentifiable package or test layout. |
|
|
40
|
-
| (4) Public interface | Search for in-repository callers by identifiers, CLI option strings and configuration keys and run their tests. Final mode already runs all contract tests. Report that consumers outside the repository are unverified because they are outside this search scope. | A suspected dynamic reference. |
|
|
41
|
-
|
|
42
|
-
Select substitute checks in this impact procedure order:
|
|
43
|
-
|
|
44
|
-
1. Reuse evidence for the same commit or tree hash and record the basis.
|
|
45
|
-
2. Use the project's affected tool under the final-mode conditions above.
|
|
46
|
-
3. Trace reverse dependencies and record why steps 1 and 2 were not used.
|
|
47
|
-
4. If the affected set remains unclear, expand the boundary one step to the nearest package manifest directory, otherwise the test directory.
|
|
48
|
-
5. If the scope still cannot be determined, report as undeterminable (unverified).
|
|
49
|
-
|
|
50
|
-
A suspected dynamic reference goes directly to step 5.
|
|
51
|
-
|
|
52
|
-
**Undeterminable scope** requires Tester to report each item, cause, substitute checks run and remaining unverified scope. Orchestrator asks the user to (i) approve full regression, (ii) substitute the project CI full test results, or (iii) disposition as unverified. Until the user decides, final acceptance and the final Reviewer are held, while independent work continues. Resolution of unknown state is never auto-decided in Full Auto. A disposition as unverified does not turn a criterion into proven.
|
|
53
|
-
|
|
54
|
-
**Approved full regression** requires explicit user approval, and the current final-mode Tester runs it as a follow-up; no new Tester is assigned except shard Testers under **Full regression shards** below. On resume, bridge resumes the same dispatch and native continues the same assignment. For bridge, each segment starts a new lease.timeoutMinutes timer. When resuming either route, if the same assignment cannot continue, report an environment block and hold; the user decides whether to assign a new Tester. Approval is valid only for that workflow and HEAD and expires when HEAD changes. If HEAD changes before the final Reviewer starts, an expired approval needs re-approval and a rerun at the new HEAD, or a fresh disposition under **Undeterminable scope**, before the Reviewer starts. The approved full regression runs once per approval. Approved full regression failures follow the base check below.
|
|
55
|
-
|
|
56
|
-
**Full regression shards:** Orchestrator MAY split an approved full regression into shards only when, from recorded prior run times, it is likely to exceed one Tester's time limit for its route, such as the bridge `arc_tester` 60-minute lease, or when independent suites, such as a sequential Python suite and a Node suite, can run at the same time; it records the reason. A shard is one whole suite command or a set of whole test files, never a subset of test names. Before dispatch Orchestrator lists every test file and suite command of the approved full regression at the verified HEAD as the inventory and writes a shard manifest that assigns each item to exactly one shard, so that the shards do not overlap and their union equals the inventory. Tests known to share state, such as fixed ports, the same temporary or workspace paths, the git common directory or global configuration, go in one shard. The current final-mode Tester runs one shard as its follow-up; each other shard goes to a fresh Tester whose `mode: final` brief adds `shard: <id> of <n>`, the shard's files or command and the manifest. The current final-mode Tester's follow-up brief also adds `shard: <id> of <n>` and its shard's files or command. Each shard Tester runs only its shard with no other final-mode checks, reports the files it actually ran and classifies failures only by the static check under **Baseline** below. All shards run at the same verified HEAD in the same workspace; each Tester records `git status --porcelain` at start and end, and no one writes in that workspace until every shard ends. Orchestrator reserves the whole shard batch under [limits](limits.md#counting-and-reservations) and serializes shards that do not fit; each shard Tester is a created and active instance, and the follow-up adds none. When the runner has a parallelism option, Orchestrator sets it per shard so that the combined workers stay within the host's available parallelism. After every shard has reported, Orchestrator sends the shard failures that need a base run to the current final-mode Tester, which reruns each alone at HEAD, with no other test command running in that workspace, up to the brief's isolated rerun limit; a pass alone is an intermittent candidate, and a failure alone follows the base check below; this rerun classifies the failure and is not the intermittency check under **Result comparison**. A rerun at HEAD that the environment blocks leaves that failure a new-failure candidate for Orchestrator disposition. Orchestrator merges the shard results and verifies that every inventory item has complete results exactly once; an item without complete results is a new-failure candidate and leaves the run incomplete. A blocked or timed-out shard follows the resume rule above; its items stay unverified, and the user decides whether a new Tester runs only the items without complete results. Sharding splits the one approved run and adds no run. The approved full regression is complete only when every shard has reported, coverage is verified and every shard failure is classified or dispositioned. Record the reason, inventory, manifest, Tester IDs and per-shard results with the approved full regression record.
|
|
57
|
-
|
|
58
|
-
**CI substitution** requires results for the same commit SHA as the verified HEAD or a matching tree hash with evidence, all jobs completed, accessible per-test-name results, results collected read-only by Orchestrator and cited in the brief, and an explicit user approval record. Use CI results as evidence only for the tests and scope they cover when every condition is met; otherwise a new-failure candidate or unverified is the applicable classification. This collection grants no external action authority.
|
|
59
|
-
|
|
60
|
-
**Baseline:** No baseline run is recorded in advance, and no base worktree is prepared in advance. Tester classifies each failure in two steps. First, a static check against the approved base: task Tester, which verifies uncommitted work, uses read-only `git diff --name-only <approved base>` plus the untracked files from `git status --porcelain`; final verification Tester uses `git diff --name-only <approved base> HEAD`. Tester checks whether the test file, the modules it directly imports or loads, the fixtures or data it reads, or its test configuration changed. If none changed, it is an unrelated failure: report it separately with that evidence; it is not a finding, and Orchestrator dispositions it. Because it rests on the diff, not a run, NEVER report it as a baseline failure. If any changed, or the check cannot decide (for example a dynamic import, a failure without a test name, or a file-level load failure), report the failure as needing a base run, with the changed paths. Second, only for those failures, Orchestrator prepares a clean detached worktree of the approved base revision at `<git-common-dir>/arc/base/<workflow>`, never under a managed worktree directory (such as `.claude/worktrees/`) or inside the execution target worktree, reuses it for that workflow, runs no tests there, and sends its path and prerequisite state (prepared, or not prepared with the needed commands) to the current Tester. After all final dispositions Orchestrator removes it only if it is still clean; this ARC-owned base worktree is the only exception to the Preservation rule's worktree-deletion ban, and any other state holds removal for the user. Tester runs only those test names alone in the base worktree, for example with Node `--test-name-pattern` or a Python node id. A failure under the same name at base is a baseline failure; a pass at base, or a test or file absent at base, makes it a new failure; a base run that was not performed, was blocked by the environment, failed to load or lacks the name makes it a new-failure candidate. NEVER absorb a candidate as a baseline failure. Check a file-level load or collection failure by loading the same file at base; an identical load failure at base stays a new-failure candidate (same at base) for Orchestrator disposition. If base needs prerequisites or the sandbox prevents running there, Tester installs or generates nothing and reports an environment block; Orchestrator then prepares the prerequisites or assigns a separate Tester whose workspace is the base worktree. If both are blocked, those failures stay new-failure candidates for Orchestrator disposition. Static checks and base reruns classify failures; they are not intermittency diagnosis.
|
|
18
|
+
Shared text for this section: [verification-common.md#test-scope-and-result-comparison](verification-common.md#test-scope-and-result-comparison). It applies here exactly as if written in place.
|
|
61
19
|
|
|
62
20
|
**Result comparison:** Compare failures by test name; only new failures are findings, and unrelated failures and new-failure candidates need Orchestrator disposition. Report baseline and unrelated failures separately. Identify tests by name from structured results such as JUnit XML, TAP or a declared line pattern; a failure without a test name, or in a command or file whose results are incomplete, is a new-failure candidate, never a baseline failure. Report intermittent candidates, tests whose outcomes differ across runs with the same inputs, separately from baseline and new failures. Report the slowest files and tests (default ten) for information only. If a failure looks intermittent, rerun only that test in isolation at HEAD, up to three times unless the brief sets another limit. This is diagnosis, not an automatic retry. Report "passes in isolation: yes/no" and the rerun count. A pass in isolation never erases the original failure; Orchestrator dispositions it. A failure in isolation is a new-failure finding. For each failure report the test name and file, HEAD command and result, static-check result (changed related paths, or none), base revision, command and result (pass, fail, absent, load-fail or not-run) when a base run was needed, verdict, isolated rerun count and outcome, and environment limits.
|
|
63
21
|
|
|
64
22
|
<a id="risk-scaled-execution"></a>
|
|
65
23
|
## Risk-scaled execution
|
|
66
24
|
|
|
67
|
-
|
|
25
|
+
Shared text for this section: [verification-common.md#risk-scaled-execution](verification-common.md#risk-scaled-execution). It applies here exactly as if written in place.
|
|
68
26
|
|
|
69
27
|
Edits belong to Implementer except the [small direct path](handoff.md#orchestrator-direct-path-for-small-tasks). Orchestrator determines behavior, risk and minimum meaningful checks.
|
|
70
28
|
|
|
@@ -75,99 +33,58 @@ Edits belong to Implementer except the [small direct path](handoff.md#orchestrat
|
|
|
75
33
|
| Significant/high risk, no plan | Implementer → Tester/rechecks → final full-change Reviewer → acceptance |
|
|
76
34
|
| Significant/high risk, plan | Per task Implementer → required fresh Tester → acceptance/commit; final independent whole-change Reviewer once after all accepted tasks/required checks/rechecks and concluded final-mode Tester work |
|
|
77
35
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
- Task boundaries alone add no Tester/review. Reviewer is never a plan-task/commit prerequisite. Plans review once at final relevant state after task acceptances/checks and concluded final-mode Tester work; no-plan Reviewer follows Tester before acceptance.
|
|
81
|
-
- Preserve specific commitments. Risky unverified dependencies need Tester/resolved or explicitly dispositioned findings before implementation.
|
|
82
|
-
- Reuse evidence only for matching scope/state/independence/freshness/flow position. Changes/failures/missing-conflicting evidence invalidate affected reuse.
|
|
83
|
-
- Tester independently checks without edits. Reviewer performs no Tester/planning/editing/delegation/completion decisions. Orchestrator routes fixes to Implementer and required Tester rechecks; direct-check failures return to normal flow. Accept after findings/gaps resolved or dispositioned.
|
|
84
|
-
- Fresh-per-task applies to Implementer/Tester, not Reviewer. Reuse Reviewer only with independence, valid context and refreshed scope/target/evidence, never an old verdict or waived timing/coverage.
|
|
85
|
-
|
|
86
|
-
Record which risk/instruction/approved obligations each check satisfies. DO NOT automatically assign Tester/Reviewer for clear low-risk scope with sufficient evidence and no requirement. Metadata counts alone prove no significance; one permission/loss rule may. Vague file deletion is not low-risk evidence; reclassify installer/manifest impacts. Confirm cleanup targets unused, required materials intact, ignore patterns scoped and diff approved before focused-check-only acceptance.
|
|
87
|
-
|
|
88
|
-
Distinguish environment failures from code failures and report exact limits and gaps. Use Planner/Scouter only for unresolved planning/discovery. Reviewer covers substantial correctness/factual/security/data/interface risks. Orchestrator assigns support as needed. Claim only verified outputs. Read cited `references/test-driven-development.md`, preserving exceptions.
|
|
36
|
+
Shared text for this section: [verification-common.md#risk-scaled-execution-2](verification-common.md#risk-scaled-execution-2). It applies here exactly as if written in place.
|
|
89
37
|
|
|
90
38
|
<a id="final-plan-reviewer-correction-loop"></a>
|
|
91
39
|
### Final plan Reviewer correction loop
|
|
92
40
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Expanded scope/separate obligations/gaps hold affected work for resolution/approval. Orchestrator assigns/accepts; Reviewer stays read-only without Tester/acceptance. NEVER present old Tester as post-fix execution. Report actual actor/target/check/result/limits only.
|
|
41
|
+
Shared text for this section: [verification-common.md#final-plan-reviewer-correction-loop](verification-common.md#final-plan-reviewer-correction-loop). It applies here exactly as if written in place.
|
|
96
42
|
|
|
97
43
|
<a id="evidence-after-plan-revision-commit"></a>
|
|
98
44
|
## Evidence after plan revision commit
|
|
99
45
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Existing commit evidence links remain valid because history is unchanged. For a contract revision, affected checks and rechecks MUST be rerun against the revised version. Stale evidence from plan-file changes requires refresh under existing rules. Preserve exact-HEAD/document/policy/fingerprint requirements; NEVER rewrite old fingerprints to suggest execution at a new state. Refresh briefs/gates before dependencies. Structure proves no live compliance.
|
|
46
|
+
Shared text for this section: [verification-common.md#evidence-after-plan-revision-commit](verification-common.md#evidence-after-plan-revision-commit). It applies here exactly as if written in place.
|
|
103
47
|
|
|
104
48
|
<a id="task-acceptance-and-final-plan-acceptance"></a>
|
|
105
49
|
<a id="reviewer-timing-and-task-acceptance"></a>
|
|
106
50
|
## Task acceptance and final plan acceptance
|
|
107
51
|
|
|
108
|
-
|
|
52
|
+
Shared text for this section: [verification-common.md#reviewer-timing-and-task-acceptance](verification-common.md#reviewer-timing-and-task-acceptance). It applies here exactly as if written in place.
|
|
109
53
|
|
|
110
54
|
DO NOT delay independently acceptable tasks solely for final-only checks or defer currently required checks to accept early. State final integration scope/timing separately. Whole-plan Reviewer is part of final verification; task commits prove no unperformed final checks. Orchestrator decides final acceptance with Tester/Reviewer/integration evidence/findings and unverified/disposition records. Shared evidence MUST satisfy all reuse rules. Before the overall completion report and any push, PR or merge authorization request, Orchestrator verifies that plan-level progress records are carried by the verified next commit of the plan or, when none follows, recorded only in the canonical handoff record with the plan document unchanged and a clean working tree. While a user decision on a non-blocking final Reviewer finding is pending, hold overall completion; a fix decision follows plan revision and a new task whose accepted commit carries the records, and a no-fix disposition stays canonical only when no later commit follows.
|
|
111
55
|
|
|
112
56
|
Committed-plan final Reviewer findings need a follow-up task/planning/approvals. Keep corrections uncommitted; refresh committed state plus uncommitted diff/files in Reviewer artifacts/briefs. Reuse/assign independent Reviewer and repeat Implementer → Reviewer until resolved, then accept/commit one focused follow-up. Final-mode Tester findings use Implementer → Tester and conclude before the initial final review. No automatic amend/reset/duplicate originals; scope growth retains planning/approvals.
|
|
113
57
|
|
|
114
|
-
|
|
58
|
+
Shared text for this section: [verification-common.md#reviewer-timing-and-task-acceptance-2](verification-common.md#reviewer-timing-and-task-acceptance-2). It applies here exactly as if written in place.
|
|
115
59
|
|
|
116
60
|
<a id="ui-browser-acceptance-checks"></a>
|
|
117
61
|
### UI browser acceptance checks
|
|
118
62
|
|
|
119
|
-
With assigned criteria/cited prerequisites, Tester
|
|
63
|
+
With assigned criteria/cited prerequisites, Tester uses browser tools its platform actually provides; without one, it launches/exercises apps/URLs through the shell only, following installed browser-skill CLI guidance.
|
|
120
64
|
|
|
121
|
-
|
|
65
|
+
Shared text for this section: [verification-common.md#ui-browser-acceptance-checks](verification-common.md#ui-browser-acceptance-checks). It applies here exactly as if written in place.
|
|
122
66
|
|
|
123
67
|
For each criterion record command/URL, test state/viewport or inapplicability, interactions, expected/observed results and evidence. Startup/page-load/static checks alone prove no complete UI. Clean only Tester-created processes/sessions; preserve shared services/sessions.
|
|
124
68
|
|
|
125
69
|
<a id="criterion-evidence-and-finding-handoff"></a>
|
|
126
70
|
### Criterion evidence and finding handoff
|
|
127
71
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Current-task failures/unmet criteria default to current Implementer/current Tester under coordination context/boundary/amendment rules; findings alone create no task. Before Reviewer, rerun reproduction/invalidated checks, reporting actor/target/results/limits and prior finding resolved/unresolved/unverified with evidence. Repeat Implementer→Tester if unresolved; Tester reuse is no stale-evidence reuse. Environment/missing/out-of-scope are gaps, not presumed code defects; Reviewer cannot replace Tester.
|
|
131
|
-
|
|
132
|
-
Reviewer behavior findings report criterion/expectation/problem/source/reproduction/evidence, separating source inference/execution. No Tester execution. Outside final-plan exception route Implementer→Tester; other Reviewer rechecks depend on scope/independence. Continue source review of structure/design/facts/security; observable security/interfaces may need both Tester/Reviewer.
|
|
133
|
-
|
|
134
|
-
Accept from criterion verdicts/findings/rechecks/gaps, not overall run status. Disposition never proves unverified. Low-risk work also links each criterion to focused evidence.
|
|
72
|
+
Shared text for this section: [verification-common.md#criterion-evidence-and-finding-handoff](verification-common.md#criterion-evidence-and-finding-handoff). It applies here exactly as if written in place.
|
|
135
73
|
|
|
136
74
|
<a id="completion-continuity"></a>
|
|
137
75
|
## Completion continuity
|
|
138
76
|
|
|
139
|
-
|
|
77
|
+
Shared text for this section: [verification-common.md#completion-continuity](verification-common.md#completion-continuity). It applies here exactly as if written in place.
|
|
140
78
|
|
|
141
79
|
<a id="verification-lifecycle-in-the-cooperative-cli"></a>
|
|
142
80
|
## Verification lifecycle in the cooperative CLI
|
|
143
81
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
1. Orchestrator (`actor.role: "orchestrator"`) registers through `record`/`acceptance-evidence` with `data: {kind: "task", task: {...}}`. Task includes `id`, absolute `paths`, `criteria`, `requiredChecks`, `dependencies`, `approvalRef`, `approvalVersion`, `documentVersion`, `scopeVersion`, `targetVersion`. Pending-only registration is not acceptance/commit. Descriptor: `{executable, args, cwd, env, outputs}`; executable/cwd/outputs absolute, cwd/outputs inside workspace. No Reviewer in task checks.
|
|
147
|
-
2. `status` observes `changeFingerprints.tasks[taskId]`/`changeFingerprints.final` independently from read-only Git inventory/index and current regular-file bytes/modes/deletions. Task covers owned paths, final the repository. Symlinks/submodules/unmerged indexes hold. This is no atomic observation/execution sandbox. RuntimeHash drift stays stale/hold without automatic stored-version update/migration/reapproval.
|
|
148
|
-
3. Check preparation: `operation: "check"`, `taskId`, `arguments: {scope: "task", actor: {id, role: "tester"}, descriptor, changeFingerprint, findingIds?}`. Tester identity attestation MUST differ from Implementer/Orchestrator; cross-task Tester/Implementer reuse is rejected. Descriptor exactly matches registration. After durable intent, execute only existing authorized scope.
|
|
149
|
-
4. `result`/`reconcile` records `intentId`, `{status, messageRef, data}` with same actor/descriptor/scope, taskId where applicable, fingerprint and `verdict: "proven" | "unmet" | "unverified"`. Even succeeded/proven applies only to that version. It replaces neither semantic proof nor acceptance. Failed/unknown/mismatch/unverified is not passing evidence. Preserve history.
|
|
150
|
-
|
|
151
|
-
Failed checks/reviews leave findings. Open separately via `data: {action: "open", id, checkId, message}`. After fixes record `data: {action: "resolve", id, actor: {id, role: "implementer"}, changeFingerprint}` plus evidence messageRef. Actor MUST be assigned to the task or relevant overall task. Resolved becomes closed only after later prepare `findingIds` and same-version successful revalidation. Prior Tester failures retain Implementer→Tester.
|
|
152
|
-
|
|
153
|
-
Final-mode Tester results are not cooperative checks; record them in the plan-level progress record and the canonical handoff record. Record undeterminable dispositions, approved full regression and CI substitution there as well.
|
|
154
|
-
|
|
155
|
-
Final review uses `operation: "review"`, `scope: "final"`, `actor.role: "reviewer"`, `descriptor: {kind: "source-review", paths: [...]}` without taskId. Initial final review needs all tasks accepted/current required Tester/concluded final-mode Tester work, never task acceptance/commit prerequisite. Plan-final findings repeat Implementer resolution→Reviewer without Tester reassignment; old Tester is not subsequent-fix execution. Separate unresolved Tester remains.
|
|
156
|
-
|
|
157
|
-
Scope/document/approval records preserve history. `data.affectedTaskIds` invalidates those tasks/dependents and task/check/acceptance evidence; omitted IDs hold all. Final evidence becomes stale. Preserve unaffected independent evidence. Orchestrator determines semantic impact. Affected tasks need new current-scope approval/contracts before preparation, not revived old approvals; fresh checks/reviews/revalidation too. Current evidence supersedes failures without deletion. Acceptance/commit/completion stay Orchestrator decisions.
|
|
82
|
+
Shared text for this section: [verification-common.md#verification-lifecycle-in-the-cooperative-cli](verification-common.md#verification-lifecycle-in-the-cooperative-cli). It applies here exactly as if written in place.
|
|
158
83
|
|
|
159
84
|
<a id="task-acceptance-and-focused-commit-reconciliation-in-the-cooperative-cli"></a>
|
|
160
85
|
### Task acceptance and focused commit reconciliation in the cooperative CLI
|
|
161
86
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
Acceptance pins actual index tree/staged diff/paths/fingerprint. Stage approved paths beforehand and confirm Tester for that index. Unrelated/other-task paths or in-scope unstaged/untracked changes hold. Code cannot identify semantically unrelated same-file hunks; Orchestrator reads diff.
|
|
165
|
-
|
|
166
|
-
Commit preparation references `arguments: {"acceptanceId": "acceptance requestId"}`. Check current approval/contract/Tester/findings/index match acceptance and persist expected parent/tree/paths/residual paths. CLI stages/commits nothing. Orchestrator makes one matching focused commit.
|
|
167
|
-
|
|
168
|
-
Submit intentId/`actor.role: "orchestrator"` and `result: {"status": "succeeded", "messageRef": "actual result evidence", "data": {"commit": "full OID"}}` through reconcile/result. CLI rereads local object/parent/tree/paths/HEAD/index/residual changes. Only complete match updates target HEAD/committed. Preserve failed/unknown/mismatch/history; never arbitrary target updates. Same request/completed intent permits no repeated effect. Inspect/resolve/reconcile existing intent after failure.
|
|
169
|
-
|
|
170
|
-
NEVER rewrite Tester fingerprints after commit. Separate post-commit observations detect changes. Final review needs current task evidence/final fingerprint. RuntimeHash drift keeps existing stale/hold without automatic version update.
|
|
87
|
+
Shared text for this section: [verification-common.md#task-acceptance-and-focused-commit-reconciliation-in-the-cooperative-cli](verification-common.md#task-acceptance-and-focused-commit-reconciliation-in-the-cooperative-cli). It applies here exactly as if written in place.
|
|
171
88
|
|
|
172
89
|
[ARC role policy: contract begin]
|
|
173
90
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
@@ -182,23 +99,4 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
182
99
|
<a id="external-operations-and-recovery-in-the-cooperative-cli"></a>
|
|
183
100
|
## External operations and recovery in the cooperative CLI
|
|
184
101
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Operator-confirmed approvals/results are `operator-attested`, `nativeVerified: false`, `remoteVerified: false`; no outside-call blocking or independent remote verification.
|
|
188
|
-
|
|
189
|
-
Record already confirmed external approval using `evidence: {kind: "external-approval", messageRef, data: {operation, scope, descriptor}}`. `scope` is unique absolute checkout paths. Local commit approval grants no external approval. Record exact action/scope/target and all descriptor fields:
|
|
190
|
-
|
|
191
|
-
| operation | descriptor fields |
|
|
192
|
-
|---|---|
|
|
193
|
-
| push | repository, destination, refspec, sourceOid, expectedRemoteOid |
|
|
194
|
-
| merge | repository, changeRef, targetRef, expectedTargetOid |
|
|
195
|
-
| deploy | service, project, environment, artifactId, destination |
|
|
196
|
-
| publish | service, namespace, name, version, artifactHash, destination |
|
|
197
|
-
|
|
198
|
-
Git OIDs are full lowercase 40/64-character hex; artifactHash is `sha256:<64-hex>`. Without remote observation OIDs are asserted expectations, not verified state. Destination is secret-free. No URL userinfo/query/fragment/password/token/credentials. Recognized secrets are rejected before persistence, but arbitrary-string secrecy cannot be guaranteed.
|
|
199
|
-
|
|
200
|
-
`prepare` accepts `{requestId, expectedRevision, actor: {id, role: "orchestrator"}, operation, arguments: {approvalRef, scope, descriptor}}`; approvalRef matches external approval messageRef. Persist only exact approval/scope/target/runtime versions with no unresolved effects. After `allow`/`persisted: true`, Orchestrator executes separately approved scope; CLI expands no authority.
|
|
201
|
-
|
|
202
|
-
`result`/`reconcile` accept `{requestId, expectedRevision, actor, intentId, result: {status, messageRef, data: {operation, scope, descriptor}}}`, with prepare requestId as intentId. Mismatch/unknown/stale outcomes hold while preserving attestations. After interruption inspect intent/`state.requests`/`state.audit`/`state.results` through `status` and investigate actual effects. Reconcile that same intent, not fresh preparation or replayed approvals.
|
|
203
|
-
|
|
204
|
-
Cancellation also requires `notExecutedEvidence: {messageRef}`; approval remains consumed. No automatic update/migration/renewed permission to fix drift. Report holds. Succeeded results remain attestations, not remote proof. `audit` links request→decision→intent→result→resolution but is locally editable, not tamper-proof. NEVER retry uncertain external outcomes.
|
|
102
|
+
Shared text for this section: [verification-common.md#external-operations-and-recovery-in-the-cooperative-cli](verification-common.md#external-operations-and-recovery-in-the-cooperative-cli). It applies here exactly as if written in place.
|