@yunhozz/arc 0.5.5 → 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 +83 -74
- 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 +3 -3
- 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 +9 -24
- package/claude/skill/references/handoff.md +19 -108
- package/claude/skill/references/limits.md +4 -15
- package/claude/skill/references/planning.md +56 -95
- 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 +3 -3
- 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 +9 -24
- package/codex/skill/references/handoff.md +18 -107
- package/codex/skill/references/limits.md +5 -16
- package/codex/skill/references/planning.md +56 -95
- package/codex/skill/references/verification.md +15 -117
- package/gemini/agents/arc-implementer.md +1 -1
- package/gemini/skill/SKILL.md +3 -3
- 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 +9 -24
- package/gemini/skill/references/handoff.md +19 -108
- package/gemini/skill/references/limits.md +4 -15
- package/gemini/skill/references/planning.md +56 -95
- package/gemini/skill/references/verification.md +16 -118
- package/grok/agents/arc-implementer.md +1 -1
- package/grok/skill/SKILL.md +2 -2
- 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 +9 -24
- package/grok/skill/references/handoff.md +19 -108
- package/grok/skill/references/limits.md +4 -15
- package/grok/skill/references/planning.md +56 -95
- package/grok/skill/references/verification.md +16 -118
- package/lib/policy/role-policy.json +1 -1
- package/lib/prompts/agent-fragments.json +20 -9
- package/lib/prompts/render.mjs +16 -5
- package/lib/runtime/adapters/codex.mjs +1 -1
- package/lib/runtime/assignment.mjs +3 -2
- package/lib/runtime/cooperative.mjs +36 -3
- package/lib/runtime/evaluate.mjs +21 -6
- package/lib/runtime/gate.mjs +2 -1
- package/lib/runtime/schema.mjs +16 -0
- package/lib/runtime/target-preparation.mjs +7 -2
- package/lib/runtime/verification.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/assignment.mjs +3 -2
- package/shared/skill/runtime/cooperative.mjs +36 -3
- package/shared/skill/runtime/evaluate.mjs +21 -6
- package/shared/skill/runtime/gate.mjs +2 -1
- package/shared/skill/runtime/role-policy.json +1 -1
- package/shared/skill/runtime/schema.mjs +16 -0
- package/shared/skill/runtime/target-preparation.mjs +7 -2
- package/shared/skill/runtime/verification.mjs +1 -1
|
@@ -4,150 +4,121 @@
|
|
|
4
4
|
<a id="authorization-and-scope"></a>
|
|
5
5
|
## Authorization and scope
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
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.
|
|
10
|
-
|
|
11
|
-
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.
|
|
12
|
-
|
|
13
|
-
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.
|
|
7
|
+
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.
|
|
14
8
|
|
|
15
9
|
<a id="probe-scope"></a>
|
|
16
10
|
### Probe scope
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
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.
|
|
12
|
+
Shared text for this section: [planning-common.md#probe-scope](planning-common.md#probe-scope). It applies here exactly as if written in place.
|
|
21
13
|
|
|
22
14
|
<a id="formal-drafting-boundary"></a>
|
|
23
15
|
## Formal drafting boundary
|
|
24
16
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
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.
|
|
28
|
-
|
|
29
|
-
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.
|
|
17
|
+
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.
|
|
30
18
|
|
|
31
19
|
<a id="planner-drafting-preparation-and-consolidated-feedback"></a>
|
|
32
20
|
## Planner drafting preparation and consolidated feedback
|
|
33
21
|
|
|
34
|
-
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
<a id="design-conversation"></a>
|
|
25
|
+
### Design conversation
|
|
35
26
|
|
|
36
|
-
|
|
27
|
+
These rules apply to feature/design/behavior design and brainstorming. Spike, the direct path (F1–F8) and non-behavior paths keep their existing rules and need no conversation. Planner never talks to the user directly: Planner → Orchestrator → user → Orchestrator → the same design Planner.
|
|
37
28
|
|
|
38
|
-
1.
|
|
39
|
-
2.
|
|
40
|
-
3.
|
|
41
|
-
4.
|
|
42
|
-
5.
|
|
29
|
+
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.
|
|
30
|
+
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.
|
|
31
|
+
3. Reason first: when the user's reason is unknown, first ask one open question without options; offer options only after hearing the reason.
|
|
32
|
+
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.
|
|
33
|
+
5. Relay: Orchestrator relays each user answer verbatim to the same design Planner and marks any interpretation it adds separately.
|
|
34
|
+
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.
|
|
35
|
+
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.
|
|
36
|
+
8. Full Auto: under [Full Auto](#full-auto-run-mode), Orchestrator records answers decidable within the original request as auto-decisions and sends only questions that need a new decision to the user; [approval.run-mode] limits apply unchanged.
|
|
43
37
|
|
|
44
|
-
|
|
38
|
+
<a id="architectural-start-confirmation"></a>
|
|
39
|
+
### Architectural start confirmation
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
<a id="decision-inventory"></a>
|
|
44
|
+
### Decision inventory and question classification
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
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".
|
|
48
|
+
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.
|
|
49
|
+
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.
|
|
50
|
+
5. Approval attachments: the Architectural [combined approval](#architectural-combined-approval) request attaches the complete author-judgment lists of the spec and every plan, and the Bounded plan approval request attaches the author judgments made since design approval. The approval unit is unchanged.
|
|
51
|
+
6. Full Auto: author judgments are not open decisions when [Full Auto](#full-auto-run-mode) counts zero open decisions.
|
|
45
52
|
|
|
46
53
|
<a id="design-and-planning"></a>
|
|
47
54
|
<a id="design-path-and-plan-depth"></a>
|
|
48
55
|
## Design path and plan depth
|
|
49
56
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
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.
|
|
53
|
-
2. Spike distinguishes probe-only from specific combined scope. Bounded approves short design before Implementer; direct edits use approved scope record. Architectural approves design, then complete Planner spec/self-review, Orchestrator save/review and written-spec approval before planning. Planner is read-only and requests no approval.
|
|
54
|
-
3. Assess plan depth after design/spec approval and before Implementer, separately from files/LOC/Bounded label. Architectural always uses `writing-plans` and written-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, which also records Bounded spec necessity.
|
|
55
|
-
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`.
|
|
56
|
-
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.
|
|
57
|
+
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.
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
<a id="architectural-combined-approval"></a>
|
|
60
|
+
## Architectural combined approval
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
1. Sequential drafting (R0): Assign the fresh plan Planner only after the spec Planner returned the complete draft and self-review, Orchestrator saved it in the prepared target, reviewed it and made needed revisions, and the reviewed spec's path, version and SHA-256 are fixed and cited in the plan brief. NEVER draft a plan early or dispatch spec and plan Planners in parallel. Request no approval between the spec and plan stages.
|
|
63
|
+
2. Approval unit (R1): Before requesting approval, verify spec↔plan consistency: every spec requirement and acceptance criterion maps to plan tasks or final verification, and the plan cites the current spec version and SHA-256. Request one combined approval for the exact versions and SHA-256 of the spec and every in-scope plan, attaching the complete author-judgment lists of the spec and every plan ([decision inventory](#decision-inventory)); record it once and make every document's `approvalRef` cite it.
|
|
64
|
+
3. Partial answers (R2): A reply approving only part of the set, such as approving the spec while asking for plan changes, is a revision request. Orchestrator revises the documents directly, asking the user first for decisions outside approved scope; after any spec change it rechecks spec↔plan consistency; then it requests combined approval for the whole revised set. Partial approvals never carry over.
|
|
65
|
+
4. Invalidation (R3): Any content change to any document after the approval request voids that request; request combined approval again for the current set.
|
|
66
|
+
5. Spec ownership in the plan stage (R4): The plan Planner never edits the spec; it returns needed spec changes classified under [question classification](#decision-inventory). Within the confirmed start scope Orchestrator revises the spec directly; a genuinely new decision outside it needs user input, which Orchestrator records in the spec; it then rechecks spec↔plan consistency and the affected documents are redrafted.
|
|
67
|
+
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.
|
|
68
|
+
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).
|
|
61
69
|
|
|
62
|
-
|
|
70
|
+
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.
|
|
63
71
|
|
|
64
72
|
<a id="top-level-plan-tasks"></a>
|
|
65
73
|
## Top-level plan tasks
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
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.
|
|
68
76
|
|
|
69
77
|
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).
|
|
70
78
|
|
|
71
|
-
|
|
79
|
+
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.
|
|
72
80
|
|
|
73
81
|
<a id="dependency-and-readiness-record"></a>
|
|
74
82
|
## Dependency and readiness record
|
|
75
83
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
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.
|
|
79
|
-
|
|
80
|
-
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.
|
|
81
|
-
|
|
82
|
-
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.
|
|
84
|
+
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.
|
|
83
85
|
|
|
84
86
|
<a id="document-save-evidence-gates"></a>
|
|
85
87
|
## Document-save evidence gates
|
|
86
88
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
| Save | Required evidence |
|
|
90
|
-
|---|---|
|
|
91
|
-
| Spec | Approved design scope/evidence, complete Planner draft/self-review, Orchestrator integration/save/review ownership and absolute path. Required Bounded specs also need depth judgment, short design, necessity/scope |
|
|
92
|
-
| Plan | Approved design and required approved spec/version/evidence, depth judgment, plan list/dependencies, complete Planner draft/self-review, ownership and absolute path |
|
|
93
|
-
|
|
94
|
-
Saving for review does not require prior written-spec approval, but does require valid target choice/actual preparation. Individually approved specs enter the document set before dependent planning. NEVER call uncommitted files committed. Missing or mismatched evidence stops the affected save.
|
|
89
|
+
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.
|
|
95
90
|
|
|
96
91
|
<a id="complete-planning-document-set"></a>
|
|
97
92
|
## Complete planning-document set
|
|
98
93
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
A required plan implies no spec. Bounded follows recorded judgment; spec stages cover Architectural/required Bounded only, plan stages required plans only. Add no spec duty to Spike/plan-skip/non-behavior paths.
|
|
102
|
-
|
|
103
|
-
Order: initial design approval → explicit target and source snapshot → first required draft/self-review → focused preparation gate → actual preparation/comparison → save/review/individual approval → dependent plans drafting/save/review/individual approval → full set → verify existing commits/batch remaining approvals → final Git → Implementer. Omission skips only inapplicable documents with rationale. Complete documents precede staging/commit/handoff, not initial preparation/choice request. Partial approvals authorize no early implementation.
|
|
104
|
-
|
|
105
|
-
Defer local `brainstorming`'s early spec commit: save/self-review/approve uncommitted spec, approve all plans, then final batch. Modify no external skill. `writing-plans` implementation commits grant neither planning-document commits nor early Implementer.
|
|
106
|
-
|
|
107
|
-
| Path | Approval/preparation |
|
|
108
|
-
|---|---|
|
|
109
|
-
| 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 |
|
|
110
|
-
| Bounded, plan skipped | Approve short design; record omission conditions. Complete approvals, target choice, actual docs or valid absence, then handoff |
|
|
111
|
-
| Bounded, plan required | Approve design/all required plans; approve necessary specs before dependent planning. Draft the first required document before target preparation; complete set before batch/handoff |
|
|
112
|
-
| Architectural | Design → written spec → all `writing-plans` plans. First spec draft before target preparation; full set before batch/final checks/handoff |
|
|
113
|
-
| Non-behavior docs/config | Record scope/criteria/inapplicability. Preserve target/Git/docs-or-absence/handoff |
|
|
114
|
-
|
|
115
|
-
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.
|
|
94
|
+
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.
|
|
116
95
|
|
|
117
96
|
<a id="plan-updates-during-execution"></a>
|
|
118
97
|
## Plan updates during execution
|
|
119
98
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Changes to goals, task boundaries, scope, criteria, method, risk, dependencies or checks require revised approval before affected work. Hold, obtain ordered design/spec/plan approvals 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; obtain written-spec approval before a dependent plan revision.
|
|
123
|
-
|
|
124
|
-
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.
|
|
125
|
-
|
|
126
|
-
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.
|
|
127
|
-
|
|
128
|
-
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.
|
|
99
|
+
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.
|
|
129
100
|
|
|
130
101
|
<a id="evidence-refresh-and-limits"></a>
|
|
131
102
|
## Evidence refresh and limits
|
|
132
103
|
|
|
133
|
-
|
|
104
|
+
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.
|
|
134
105
|
|
|
135
106
|
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.
|
|
136
107
|
|
|
137
108
|
<a id="local-planning-references"></a>
|
|
138
109
|
## Local planning references
|
|
139
110
|
|
|
140
|
-
|
|
111
|
+
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.
|
|
141
112
|
|
|
142
113
|
<a id="instruction-and-input-provenance"></a>
|
|
143
114
|
## Instruction and input provenance
|
|
144
115
|
|
|
145
|
-
|
|
116
|
+
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.
|
|
146
117
|
|
|
147
118
|
<a id="managed-worktree-preparation"></a>
|
|
148
119
|
### Managed worktree preparation
|
|
149
120
|
|
|
150
|
-
|
|
121
|
+
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.
|
|
151
122
|
|
|
152
123
|
[ARC role policy: contract begin]
|
|
153
124
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
@@ -157,18 +128,14 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
157
128
|
- [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.
|
|
158
129
|
- [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.
|
|
159
130
|
- [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.
|
|
160
|
-
- [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
|
|
131
|
+
- [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.
|
|
161
132
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. ARC supplies no native observer hook or Bash Git guard; Git restrictions remain prompt-level role contracts.
|
|
162
133
|
[ARC role policy: contract end]
|
|
163
134
|
|
|
164
135
|
<a id="approved-cooperative-execution-path-within-the-repository"></a>
|
|
165
136
|
## Approved cooperative execution path within the repository
|
|
166
137
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
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.
|
|
170
|
-
|
|
171
|
-
Record approved spec/plan SHA-256, 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.
|
|
138
|
+
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.
|
|
172
139
|
|
|
173
140
|
<a id="full-auto-run-mode"></a>
|
|
174
141
|
## Full Auto run mode
|
|
@@ -181,7 +148,8 @@ Applies only when the installed SKILL.md contains `**Run mode:** Full Auto.` and
|
|
|
181
148
|
| Branch name collision | auto | Next numeric suffix (`-2`, `-3`, …) |
|
|
182
149
|
| Planner options and questions | auto | Recommended option; record assumptions in the brief |
|
|
183
150
|
| Design and short-design approval | auto | After Orchestrator review |
|
|
184
|
-
|
|
|
151
|
+
| Architectural start confirmation | auto | Scope only within the original request, otherwise user; target follows the Execution-target choice row |
|
|
152
|
+
| Architectural spec+plan combined approval | auto | Only with zero open decisions; otherwise user |
|
|
185
153
|
| Plan approval | auto | Only with zero open decisions; otherwise user |
|
|
186
154
|
| Spec/plan revision within the original scope | auto | Scope-expanding revisions → user |
|
|
187
155
|
| Non-blocking final Reviewer finding disposition | auto | Fix or no-fix decision only: recommended disposition within approved scope; scope-expanding fixes → user; Reviewer recheck and acceptance stay unchanged |
|
|
@@ -197,11 +165,4 @@ Applies only when the installed SKILL.md contains `**Run mode:** Full Auto.` and
|
|
|
197
165
|
| Unknown slot or exhausted capacity | user | — |
|
|
198
166
|
| Plan depth, local commit, Tester, Reviewer, acceptance | unchanged | — |
|
|
199
167
|
|
|
200
|
-
|
|
201
|
-
- 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.
|
|
202
|
-
- Pre-action gate record: `run` field (`supervised` or `full-auto`).
|
|
203
|
-
- Revision-history `Approval time`: `auto-approved (Full Auto) <time>`.
|
|
204
|
-
- Runtime `approvalRef` (free text): `full-auto:<doc>@<version>`.
|
|
205
|
-
- Completion report: list every auto decision.
|
|
206
|
-
|
|
207
|
-
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.
|
|
168
|
+
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.
|