@yunhozz/arc 0.5.7 → 0.6.0
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 +104 -99
- package/README.md +37 -113
- package/claude/agents/arc-architect.md +44 -0
- package/claude/agents/arc-planner.md +4 -4
- package/claude/skill/SKILL.md +5 -5
- package/claude/skill/models.toml +5 -1
- package/claude/skill/references/commit.md +2 -2
- package/claude/skill/references/coordination.md +10 -9
- package/claude/skill/references/git-recovery.md +1 -1
- package/claude/skill/references/handoff-prep.md +2 -2
- package/claude/skill/references/handoff.md +1 -1
- package/claude/skill/references/planning.md +12 -12
- package/claude/skill/references/verification.md +1 -1
- package/claude/skill/scripts/model_config.py +24 -11
- package/codex/agents/arc-architect.md +36 -0
- package/codex/agents/{arc-implementer.toml → arc-implementer.md} +7 -4
- package/codex/agents/{arc-planner.toml → arc-planner.md} +10 -7
- package/codex/agents/{arc-reviewer.toml → arc-reviewer.md} +7 -4
- package/codex/agents/{arc-scouter.toml → arc-scouter.md} +7 -4
- package/codex/agents/{arc-tester.toml → arc-tester.md} +7 -4
- package/codex/skill/SKILL.md +5 -5
- package/codex/skill/models.toml +5 -1
- package/codex/skill/references/commit.md +2 -2
- package/codex/skill/references/coordination.md +6 -5
- package/codex/skill/references/handoff-prep.md +2 -2
- package/codex/skill/references/handoff.md +1 -1
- package/codex/skill/references/planning.md +12 -12
- package/codex/skill/references/verification.md +1 -1
- package/codex/skill/scripts/apply-models.py +5 -5
- package/codex/skill/scripts/model_config.py +23 -12
- package/gemini/GEMINI.md +1 -1
- package/gemini/agents/arc-architect.md +39 -0
- package/gemini/agents/arc-planner.md +4 -4
- package/gemini/instructions.md +1 -1
- package/gemini/skill/SKILL.md +5 -5
- package/gemini/skill/models.toml +5 -1
- package/gemini/skill/references/commit.md +2 -2
- package/gemini/skill/references/coordination.md +10 -9
- package/gemini/skill/references/git-recovery.md +1 -1
- package/gemini/skill/references/handoff-prep.md +2 -2
- package/gemini/skill/references/handoff.md +1 -1
- package/gemini/skill/references/planning.md +12 -12
- package/gemini/skill/references/verification.md +1 -1
- package/grok/AGENTS.md +1 -1
- package/grok/agents/arc-architect.md +39 -0
- package/grok/agents/arc-planner.md +4 -4
- package/grok/instructions.md +1 -1
- package/grok/skill/SKILL.md +5 -5
- package/grok/skill/models.toml +5 -1
- package/grok/skill/references/commit.md +2 -2
- package/grok/skill/references/coordination.md +10 -9
- package/grok/skill/references/git-recovery.md +1 -1
- package/grok/skill/references/handoff-prep.md +2 -2
- package/grok/skill/references/handoff.md +1 -1
- package/grok/skill/references/planning.md +12 -12
- package/grok/skill/references/verification.md +1 -1
- package/lib/installer/global-config.mjs +1 -1
- package/lib/installer/manifest.mjs +20 -3
- package/lib/installer/role-routing.mjs +6 -3
- package/lib/installer/targets.mjs +1 -1
- package/lib/installer/upgrade-state.mjs +3 -2
- package/lib/models/config.mjs +22 -5
- package/lib/models/profiles.mjs +6 -1
- package/lib/platforms/agent-templates.mjs +1 -0
- package/lib/platforms/codex.mjs +2 -0
- package/lib/platforms/formats/codex-markdown.mjs +58 -0
- package/lib/platforms/formats/gemini-markdown.mjs +3 -2
- package/lib/platforms/formats/grok-markdown.mjs +3 -2
- package/lib/platforms/formats/markdown.mjs +3 -2
- package/lib/platforms/formats/toml.mjs +3 -2
- package/lib/policy/placement.mjs +1 -1
- package/lib/policy/render.mjs +6 -5
- package/lib/policy/role-policy.json +36 -7
- package/lib/prompts/agent-fragments.json +90 -18
- package/lib/prompts/render.mjs +53 -14
- package/lib/runtime/evaluate.mjs +4 -3
- package/lib/runtime/identity.mjs +1 -1
- package/lib/runtime/operations.mjs +2 -2
- package/lib/runtime/role-bridge-args.mjs +5 -3
- package/lib/runtime/role-bridge.mjs +24 -2
- package/lib/runtime/role-dispatch-policy.mjs +2 -1
- package/lib/runtime/role-dispatch-store.mjs +44 -1
- package/lib/runtime/role-observe.mjs +12 -4
- package/lib/runtime/role-routing-config.mjs +9 -4
- package/lib/runtime/role-supervisor.mjs +16 -2
- package/lib/tui/diagram.mjs +2 -3
- package/lib/tui/setup.mjs +13 -11
- package/lib/watch/labels.mjs +1 -1
- package/lib/watch/model.mjs +2 -2
- package/lib/watch/render.mjs +2 -2
- package/package.json +1 -1
- package/scripts/update-manifest.mjs +1 -1
- package/shared/skill/references/arc-visual-companion-common.md +2 -2
- package/shared/skill/references/commit-common.md +3 -3
- package/shared/skill/references/coordination-common.md +19 -12
- package/shared/skill/references/handoff-common.md +5 -5
- package/shared/skill/references/handoff-prep-common.md +1 -1
- package/shared/skill/references/planning-common.md +25 -25
- package/shared/skill/references/verification-common.md +5 -3
- package/shared/skill/runtime/evaluate.mjs +4 -3
- package/shared/skill/runtime/identity.mjs +1 -1
- package/shared/skill/runtime/operations.mjs +2 -2
- package/shared/skill/runtime/role-bridge-args.mjs +5 -3
- package/shared/skill/runtime/role-bridge.mjs +24 -2
- package/shared/skill/runtime/role-dispatch-policy.mjs +2 -1
- package/shared/skill/runtime/role-dispatch-store.mjs +44 -1
- package/shared/skill/runtime/role-observe.mjs +12 -4
- package/shared/skill/runtime/role-policy.json +36 -7
- package/shared/skill/runtime/role-routing-config.mjs +9 -4
- package/shared/skill/runtime/role-supervisor.mjs +16 -2
package/lib/tui/setup.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export function loadRoleDefaults({context,statuses,target,readText=filename=>rea
|
|
|
23
23
|
return resolved.roles;
|
|
24
24
|
}
|
|
25
25
|
const installSettingKeys=['runMode','language','maxTotalSubagents','maxConcurrentSubagents'];
|
|
26
|
-
const installRoleNames=['Scouter','Planner','Implementer','Tester','Reviewer'];
|
|
26
|
+
const installRoleNames=['Scouter','Architect','Planner','Implementer','Tester','Reviewer'];
|
|
27
27
|
export function roleDisplayName(role){return installRoleNames[ROLES.indexOf(role)]??role;}
|
|
28
28
|
|
|
29
29
|
export function installSettingsDraft(statuses,platforms){
|
|
@@ -153,10 +153,12 @@ export async function runInstallFlow({ui,statuses,draft,installState,currentConf
|
|
|
153
153
|
const label=name(settings[key]);
|
|
154
154
|
return state?arrowValue(label,state.frame,state.selected===index):label;
|
|
155
155
|
};
|
|
156
|
+
const hostsIndex=ROLES.length,runModeIndex=hostsIndex+1,languageIndex=hostsIndex+2;
|
|
157
|
+
const totalIndex=hostsIndex+3,concurrentIndex=hostsIndex+4,applyIndex=hostsIndex+5;
|
|
156
158
|
const controlsFor=state=>[
|
|
157
159
|
hostsRow,
|
|
158
|
-
'Run mode '+display('runMode',runModeName,state,
|
|
159
|
-
'Language '+display('language',languageName,state,
|
|
160
|
+
'Run mode '+display('runMode',runModeName,state,runModeIndex),
|
|
161
|
+
'Language '+display('language',languageName,state,languageIndex),
|
|
160
162
|
'Total subagents '+display('maxTotalSubagents'),
|
|
161
163
|
'Concurrent subagents '+display('maxConcurrentSubagents'),
|
|
162
164
|
`Apply - ${plan.modeLabel}`,'Back',
|
|
@@ -165,7 +167,7 @@ export async function runInstallFlow({ui,statuses,draft,installState,currentConf
|
|
|
165
167
|
const cycleLanguage=()=>{settings.language=settings.language==='ko'?'en':'ko';settings.touched.add('language');};
|
|
166
168
|
const choice=await ui.menu('Configure',[...installRoleNames,...controlsFor().slice(0,-1)],{
|
|
167
169
|
selected,backRow:true,refreshMs:600,notice:info,
|
|
168
|
-
onHorizontal:({selected})=>{if(selected===
|
|
170
|
+
onHorizontal:({selected})=>{if(selected===runModeIndex)cycleRunMode();else if(selected===languageIndex)cycleLanguage();},
|
|
169
171
|
renderBody:state=>{
|
|
170
172
|
const controls=controlsFor(state);
|
|
171
173
|
const notices=settings.runMode==='full-auto'&&!isMixed('runMode')?[...info,fullAutoNotice]:info;
|
|
@@ -188,21 +190,21 @@ export async function runInstallFlow({ui,statuses,draft,installState,currentConf
|
|
|
188
190
|
return {model:value.model,effort:value[field]};
|
|
189
191
|
},registry});
|
|
190
192
|
if(edited)draft.roles[role]=edited;
|
|
191
|
-
}else if(choice===
|
|
193
|
+
}else if(choice===hostsIndex){
|
|
192
194
|
const hosts=await editHosts({ui,hosts:draft.hosts,rolePlatforms:ROLES.map(role=>draft.roles[role].platform),availabilityOf:id=>availabilityOf(id,'host'),registry});
|
|
193
195
|
if(hosts!==null)draft.hosts=hosts;
|
|
194
|
-
}else if(choice===
|
|
195
|
-
else if(choice===
|
|
196
|
-
else if(choice===
|
|
197
|
-
const key=choice===
|
|
198
|
-
const title=choice===
|
|
196
|
+
}else if(choice===runModeIndex)cycleRunMode();
|
|
197
|
+
else if(choice===languageIndex)cycleLanguage();
|
|
198
|
+
else if(choice===totalIndex||choice===concurrentIndex){
|
|
199
|
+
const key=choice===totalIndex?'maxTotalSubagents':'maxConcurrentSubagents';
|
|
200
|
+
const title=choice===totalIndex?'Total subagents':'Concurrent subagents';
|
|
199
201
|
let raw=isMixed(key)?'':String(settings[key]);
|
|
200
202
|
while(true){
|
|
201
203
|
raw=await ui.text(title,raw);if(raw===null)break;
|
|
202
204
|
let value;try{value=parsePositiveLimit(raw);}catch{await ui.page('Invalid limit',['Enter a positive whole number.']);continue;}
|
|
203
205
|
settings[key]=value;settings.touched.add(key);break;
|
|
204
206
|
}
|
|
205
|
-
}else if(choice===
|
|
207
|
+
}else if(choice===applyIndex){
|
|
206
208
|
if(reason)continue;
|
|
207
209
|
if(plan.rule==='D1-f'){
|
|
208
210
|
await ui.page('Operation unavailable',[installState.reason??'Mixed routing configuration cannot be verified.',...(installState.residualPaths??[]).map(value=>'Residual path: '+value),'No changes were applied.']);continue;
|
package/lib/watch/labels.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export function asciiToken(s) {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
export function roleFromName(name) {
|
|
6
|
-
const role = typeof name === 'string' ? /^arc[_-](?:routing[_-])?(scouter|planner|implementer|tester|reviewer|qa)$/.exec(name)?.[1] : undefined;
|
|
6
|
+
const role = typeof name === 'string' ? /^arc[_-](?:routing[_-])?(scouter|architect|planner|implementer|tester|reviewer|qa)$/.exec(name)?.[1] : undefined;
|
|
7
7
|
return role === 'qa' ? 'tester' : role ?? null;
|
|
8
8
|
}
|
|
9
9
|
|
package/lib/watch/model.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export function classifyMessageKind(event) {
|
|
|
5
5
|
return event.kind === 'user' && (event.parentId || event.dispatchId) ? 'prompt' : event.kind;
|
|
6
6
|
}
|
|
7
7
|
export const VERBOSE_KINDS = Object.freeze(['settings','turn_start','reasoning','other']);
|
|
8
|
-
export const ROLE_NAMES = Object.freeze(['scouter','planner','implementer','tester','reviewer']);
|
|
8
|
+
export const ROLE_NAMES = Object.freeze(['scouter','architect','planner','implementer','tester','reviewer']);
|
|
9
9
|
|
|
10
10
|
export const WATCH_LIMITS = Object.freeze({
|
|
11
11
|
filePollMs:500, discoveryMs:2000, worktreeRefreshMs:30000, holdMs:2000,
|
|
@@ -37,7 +37,7 @@ export const WATCH_LIMITS = Object.freeze({
|
|
|
37
37
|
* @property {string} [parentId]
|
|
38
38
|
* @property {number} [depth]
|
|
39
39
|
* @property {string} label
|
|
40
|
-
* @property {'scouter'|'planner'|'implementer'|'tester'|'reviewer'|'orchestrator'} [role]
|
|
40
|
+
* @property {'scouter'|'architect'|'planner'|'implementer'|'tester'|'reviewer'|'orchestrator'} [role]
|
|
41
41
|
* @property {string} [dispatchId]
|
|
42
42
|
* @property {string} [workflowId]
|
|
43
43
|
* @property {'session'|'settings'|'turn_start'|'turn_end'|'turn_failed'|'user'|'prompt'|'agent'|'reasoning'|'command'|'tool'|'tool_failed'|'file_change'|'file_create'|'file_delete'|'spawn'|'approval'|'dispatch'|'error'|'other'|'notice'} kind
|
package/lib/watch/render.mjs
CHANGED
|
@@ -8,11 +8,11 @@ import {displayWidth, wrapLine} from './text-width.mjs';
|
|
|
8
8
|
export {displayWidth, wrapLine} from './text-width.mjs';
|
|
9
9
|
|
|
10
10
|
const roleLabels = new Map([
|
|
11
|
-
['scouter','SCOUTER'], ['planner','PLANNER'], ['implementer','IMPLEMENTER'],
|
|
11
|
+
['scouter','SCOUTER'], ['architect','ARCHITECT'], ['planner','PLANNER'], ['implementer','IMPLEMENTER'],
|
|
12
12
|
['tester','TESTER'], ['reviewer','REVIEWER'], ['orchestrator','ORCHESTRATOR'],
|
|
13
13
|
]);
|
|
14
14
|
const roleBadgeColors = new Map([
|
|
15
|
-
['scouter','1;38;5;16;48;5;117'], ['planner','1;38;5;231;48;5;98'],
|
|
15
|
+
['scouter','1;38;5;16;48;5;117'], ['architect','1;38;5;231;48;5;30'], ['planner','1;38;5;231;48;5;98'],
|
|
16
16
|
['implementer','1;38;5;16;48;5;214'], ['tester','1;38;5;16;48;5;228'],
|
|
17
17
|
['reviewer','1;38;5;231;48;5;161'], ['orchestrator','1;38;5;16;48;5;255'],
|
|
18
18
|
]);
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ function visit(relative) {
|
|
|
17
17
|
} else if (stat.isFile() && !mutable.has(relative)) files.set(relative,fs.readFileSync(filename));
|
|
18
18
|
else if (!stat.isFile()) throw new Error(`Protected payload is not regular: ${relative}`);
|
|
19
19
|
}
|
|
20
|
-
for (const entry of ['
|
|
20
|
+
for (const entry of ['install.command', 'package.json', 'bin', 'lib', 'native/binding.c', 'native/binding.gyp', 'scripts', 'vendor', 'prebuilds', 'shared/skill', 'codex/skill', 'codex/agents', 'claude/skill', 'claude/agents', 'gemini', 'grok']) visit(entry);
|
|
21
21
|
const content = renderManifest(files);
|
|
22
22
|
const manifest = path.join(root, 'MANIFEST.sha256');
|
|
23
23
|
if (process.argv.includes('--check')) {
|
|
@@ -7,14 +7,14 @@ This file holds text shared by every platform's arc-visual-companion.md. Each pa
|
|
|
7
7
|
|
|
8
8
|
Read before offering or operating the companion. Design discussion is distinct from Tester UI acceptance under an approved test brief.
|
|
9
9
|
|
|
10
|
-
Use visuals when they materially help design discussion or verification. Orchestrator determines actual capability/consent.
|
|
10
|
+
Use visuals when they materially help design discussion or verification. Orchestrator determines actual capability/consent. Architect returns visualization needs only; DO NOT invent browser/shell access. Other depth-2 roles stay within their profile tool limits and cannot delegate visualization.
|
|
11
11
|
|
|
12
12
|
- Verify actual browser/preview capability; NEVER assume platform preview support.
|
|
13
13
|
- Use an available authorized local/browser flow only within Orchestrator scope.
|
|
14
14
|
- Separate preview artifacts from user files, record side effects and preserve unrelated work. Report unavailable capability without claiming visual verification.
|
|
15
15
|
- NEVER expose secrets or publish previews without authorization.
|
|
16
16
|
|
|
17
|
-
1.
|
|
17
|
+
1. Architect returns a useful visual question, reason, options, user decision and complete content draft; no screen writing, server/browser operation or approval request.
|
|
18
18
|
2. Orchestrator offers in a separate message when visuals clarify the question, then waits for acceptance. After refusal, continue in text without reoffering unless the user raises it.
|
|
19
19
|
3. After acceptance, decide per question. A UI topic or companion consent does not route every question to a browser.
|
|
20
20
|
4. Orchestrator owns guide, server/browser, paths, live-session checks, complete keyed URL, screens/session state, feedback/events and cleanup. Clear stale screens when returning to text. Check the server before display. After replies, terminal text is primary and events supplemental.
|
|
@@ -10,7 +10,7 @@ One approved top-level task is one focused implementation commit. Orchestrator v
|
|
|
10
10
|
Substeps and checkboxes track progress, not commits. Completion marks, reports and passing checks do not establish acceptance; connect conditions and expected results to evidence. Plan omission creates neither new plans nor automatic commits; follow applicable guidance/user requests. Push/merge/publish/deploy/install retain separate approvals. Reviewer timing follows [verification](verification.md#risk-scaled-execution).
|
|
11
11
|
|
|
12
12
|
1. Before commit verify approved plan version/task ID/accepted scope, actual absolute workspace/repository/branch or detached HEAD/HEAD, staged/unstaged/untracked state and ownership.
|
|
13
|
-
2. Verify staged content/paths include only this task, its own progress records, eligible plan-level progress records, eligible pending approved spec/plan revisions and final message; verify revision scope
|
|
13
|
+
2. Verify staged content/paths include only this task, its own progress records, eligible plan-level progress records, eligible pending approved spec/plan revisions and final message; verify revision scope. Prove safe separation of other tasks/user changes in shared files. Unrelated staging blocks commit under Preservation rule.
|
|
14
14
|
3. After commit verify SHA/message/paths/content, HEAD/branch and remaining state. Successful exit alone proves no completion.
|
|
15
15
|
4. Canonically link plan path/version, task ID, acceptance evidence/judgment, required checks/findings, commit results/state, hold/no-change/reuse reasons and remaining final verification.
|
|
16
16
|
|
|
@@ -29,9 +29,9 @@ Follow [planning](planning.md#plan-updates-during-execution) and [preparation](h
|
|
|
29
29
|
|
|
30
30
|
Plan-level progress records are final verification results, each final Reviewer round's verdict and finding dispositions (including references to user decisions) and overall completion status. Preserving the approved contract, they need no new approval; changing it makes them a plan revision. They are the sole exception to excluding other tasks' records: Orchestrator includes them in that plan's next commit, either a task acceptance commit created by final Reviewer finding work or the final Reviewer follow-up commit. When no implementation work remains, such as a final Reviewer approval without findings or a user decision not to fix a non-blocking finding, Orchestrator creates no commit for them alone: unless a standalone closing commit made for pending revisions carries them, Orchestrator keeps them only in the canonical handoff record, leaves the plan document unchanged and the working tree clean, and states this in the completion report. Plan-level progress records alone never trigger the standalone `docs(plan)` closing commit. Write plan-level progress records into the plan document only while staging the commit that carries them; until then keep them in the canonical handoff record.
|
|
31
31
|
|
|
32
|
-
Only when no implementation work remains before overall completion MAY Orchestrator create one standalone `docs(plan): <description>` closing commit. Record the supporting evidence canonically, include all pending revisions and
|
|
32
|
+
Only when no implementation work remains before overall completion MAY Orchestrator create one standalone `docs(plan): <description>` closing commit. Record the supporting evidence canonically, include all pending revisions and include no implementation files. This is the sole separate docs/fixup exception; overall completion requires no pending revision. NEVER amend planning or implementation commits, reset, replay or rewrite their history. When this closing commit is made for pending revisions, it also carries the plan-level progress records.
|
|
33
33
|
|
|
34
|
-
For independent tasks accepted against a prior version, exclude pending revision hunks and stage only that task's own progress records; hold the commit if separation is unsafe. Before staging/commit verify pending revision inclusion/exclusion against the selected task/version and compare staged scope/content to approved copies.
|
|
34
|
+
For independent tasks accepted against a prior version, exclude pending revision hunks and stage only that task's own progress records; hold the commit if separation is unsafe. Before staging/commit verify pending revision inclusion/exclusion against the selected task/version and compare staged scope/content to approved copies.
|
|
35
35
|
|
|
36
36
|
After commit verify blobs/latest approved content and clear pending revisions under [verification](verification.md#evidence-after-plan-revision-commit). Preserve implementation acceptance, focused commits and correction follow-ups. Initial complete approved batch still precedes handoff; existing approvals/authority remain.
|
|
37
37
|
|
|
@@ -12,14 +12,15 @@ Orchestrator reads this before the first specialist creation or assignment and r
|
|
|
12
12
|
|
|
13
13
|
| Role | Ownership and return |
|
|
14
14
|
|---|---|
|
|
15
|
-
| Orchestrator | Sole coordinator of development/configuration/tests/dependent docs/mixed implementation. Assigns edits to Implementer; owns scope, planning, approval, integration (save/review/directly revise the same spec or plan after
|
|
15
|
+
| Orchestrator | Sole coordinator of development/configuration/tests/dependent docs/mixed implementation. Assigns edits to Implementer; owns scope, planning, approval, integration (save/review/directly revise the same spec or plan after the drafting role returns its first draft, route decisions and request approval), verification, acceptance and completion |
|
|
16
16
|
| Scouter | Read-only material research/analysis and assigned static exploration. Reports evidence, assumptions, questions, impact, next actions and path issues. No editing, standalone documents or design/plan/verification/review/completion decisions |
|
|
17
|
-
|
|
|
17
|
+
| Architect | Returns design/brainstorming drafts, start summaries and first complete spec drafts |
|
|
18
|
+
| Planner | Returns first complete plan drafts |
|
|
18
19
|
| Implementer | Edits approved assigned implementation/configuration/tests/dependent docs; Orchestrator direct edits only under the small-task path |
|
|
19
20
|
| Tester | Verifies without editing |
|
|
20
21
|
| Reviewer | Independently reviews the final full change |
|
|
21
22
|
|
|
22
|
-
Orchestrator is depth 1. All
|
|
23
|
+
Orchestrator is depth 1. All six specialists report directly at depth 2 without creating agents/delegating. Reviewer stays independent.
|
|
23
24
|
|
|
24
25
|
<a id="coordination-execution-mode"></a>
|
|
25
26
|
### Execution mode
|
|
@@ -31,7 +32,7 @@ Obey concurrency limits across the tree, including Scouter. No reserved role slo
|
|
|
31
32
|
|
|
32
33
|
Apply platform/user/project instructions by precedence, then ARC ownership/permissions/models/concurrency/routing/approval and role-local references. Skills add neither agents nor authority. Map `superpowers:executing-plans`/`superpowers:subagent-driven-development` to dependency-aware Orchestrator coordination and risk-scaled verification, replacing executor mechanics and separate execution-method prompts in existing references.
|
|
33
34
|
|
|
34
|
-
Preserve plan approval, workspace, design, spec and all applicable requirements. TDD applies to permitted test work under [handoff](handoff.md#implementer-tdd-and-constraints)'s explicit ARC exceptions. Follow an applicable higher-priority prohibition on adding or running tests; when its precedence and scope are clear, neither report a conflict on that basis nor ask permission to violate it. Record unperformed verification; hold only affected work and acceptance when scope or precedence is genuinely unclear or required verification is blocked. Adapt local `brainstorming` role/save/early-spec-commit instructions to
|
|
35
|
+
Preserve plan approval, workspace, design, spec and all applicable requirements. TDD applies to permitted test work under [handoff](handoff.md#implementer-tdd-and-constraints)'s explicit ARC exceptions. Follow an applicable higher-priority prohibition on adding or running tests; when its precedence and scope are clear, neither report a conflict on that basis nor ask permission to violate it. Record unperformed verification; hold only affected work and acceptance when scope or precedence is genuinely unclear or required verification is blocked. Adapt local `brainstorming` role/save/early-spec-commit instructions to Architect ownership and planning/handoff evidence gates, preserving upstream text. Report conflicts/missing required references before dependent work.
|
|
35
36
|
|
|
36
37
|
Orchestrator integrates results, routes decisions/approvals and owns acceptance/completion. Run dependent implementation sequentially with a fresh Implementer per top-level task. Reuse current Implementer only for same-task correction/rework/rechecks while scope/workspace/ownership/context remain valid. Default same-task Tester corrections to it; findings alone create no new task. Before reuse, compare actual workspace, branch/HEAD and change state to the brief.
|
|
37
38
|
|
|
@@ -44,7 +45,7 @@ Replace/restart only for invalid/unavailable context or changed task boundary, e
|
|
|
44
45
|
<a id="local-superpowers-references"></a>
|
|
45
46
|
### Local Superpowers references
|
|
46
47
|
|
|
47
|
-
Supply absolute paths under the selected installed ARC directory.
|
|
48
|
+
Supply absolute paths under the selected installed ARC directory. Architect reads `references/brainstorming.md` and Planner reads `references/writing-plans.md`; Implementer reads `references/test-driven-development.md` and required relative references. Resolve relatives within skill directories. Runtime needs no global discovery/external Skill call/automatic download. Missing/damaged files stop dependent work; report paths without global fallback. Preserve ARC approvals, ownership, TDD exceptions and executor adapters.
|
|
48
49
|
|
|
49
50
|
<a id="token-discipline-and-handoffs"></a>
|
|
50
51
|
### Local Superpowers references
|
|
@@ -65,15 +66,17 @@ Use this fixed brief order:
|
|
|
65
66
|
7. Exact next objective: one bounded objective
|
|
66
67
|
8. Return format: conclusion, evidence locations, unresolved points, next step
|
|
67
68
|
|
|
69
|
+
Before sending a brief, Orchestrator checks it against its sources: every cited path exists, or its parent directory exists when the role is to create it; every procedure reproduces the actual product flow and cites the code location that fixes its call order; every criterion is achievable by design; and the brief states a normalization rule for each value that changes on every run, such as a newly minted token, a timestamp or an absolute path stored in a copied home directory, together with the environment facts the role needs. Orchestrator corrects any gap before dispatch.
|
|
70
|
+
|
|
68
71
|
<a id="coordination-context-discipline-and-handoffs-2"></a>
|
|
69
72
|
## Context discipline and handoffs
|
|
70
73
|
|
|
71
74
|
The [task envelope](handoff.md#orchestrator-direct-path-for-small-tasks) fits this fixed brief order: Goal carries task/path/outcome; Criteria carries IDs and checks; Exact scope/ownership carries target/state/ownership/record; Constraints/decisions carries approval, F1–F8, risk/depth and TDD; Evidence carries fingerprint and approval/check evidence; Prior findings carries changes, revalidation and holds; Exact next objective gives the bounded next goal; Return format requests evidence, limits and unresolved points. Give a new role its native profile and actual applicable instructions, not hash alone.
|
|
72
75
|
|
|
73
76
|
<a id="coordination-planner-dispatch-efficiency"></a>
|
|
74
|
-
##
|
|
77
|
+
## Drafting dispatch efficiency
|
|
75
78
|
|
|
76
|
-
Before
|
|
79
|
+
Before dispatching a drafting role, 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; route material research and broad static exploration to Scouter. Drafting briefs carry path/line-verified evidence and a Read/Grep exploration budget (default about 15 for Bounded and about 30 for Architectural when no task-specific number is set; state a number before depth is chosen or for Spike work); additional broad exploration goes to Scouter, not either drafting role. Reuse the same Architect only in the design/brainstorming stage while role, context and source remain valid and for the Architectural continuation after [start confirmation](planning.md#architectural-start-confirmation), when the Architect continues as the spec author. Within the design/brainstorming stage one Architect handles every [design conversation](planning.md#design-conversation) response, the final design, its consolidated correction and any eligible further call. Assign a fresh Architect for the spec stage if the design Architect is unavailable or its role, context or source is no longer valid. Assign a fresh Planner for each plan stage and reuse it only for a budget-hold delta within that stage. Each fresh instance's 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); cite a prior brief only when it is an accessible file. A drafting-role return that stops at the budget with a Scouter request is an input hold, not a missing or failed draft: after Scouter evidence arrives, resend that stage's brief as a delta to the same drafting role instance, which counts as new input. In the design stage, conversation responses are expected returns and use no correction opportunity; calls after the final-design correction still need new input. Orchestrator MAY set a handback size limit in the brief.
|
|
77
80
|
|
|
78
81
|
<a id="models"></a>
|
|
79
82
|
## Models
|
|
@@ -95,7 +98,7 @@ Choose `executionEnvironment` by where the session actually runs: a terminal CLI
|
|
|
95
98
|
Procedure, in order:
|
|
96
99
|
|
|
97
100
|
1. `routing-status` with `hostPlatform`, `executionEnvironment`. Reads the active revision, each role's route, profile, model and effort, platform authentication and CLI versions without reserving anything. Authentication and version probes start a child process. The Codex authentication probe refreshes the login token over the network through `codex app-server`; a permanently rejected refresh is `Unauthorized` and a probe that cannot decide is `Incomplete`.
|
|
98
|
-
2. `prepare-dispatch` with `hostPlatform`, `executionEnvironment`, `role` (`arc_scouter`, `arc_planner`, `arc_implementer`, `arc_tester`, or `arc_reviewer`), `expectedRevision` (the revision from step 1), `requestId`, `taskId`, and `allowedPaths` (worktree-relative path array; required and non-empty for `arc_implementer`, optional for `arc_tester` where empty or omitted allows no writes, omitted for other roles). `allow` returns `dispatchId`, the route and initial claims and reserves a lease; `hold` returns every reason with its release condition; `deny` rejects the request. Reuse of a `requestId`, or a non-terminal dispatch for the same workflow, task and role, is denied with `duplicate_dispatch`.
|
|
101
|
+
2. `prepare-dispatch` with `hostPlatform`, `executionEnvironment`, `role` (`arc_scouter`, `arc_architect`, `arc_planner`, `arc_implementer`, `arc_tester`, or `arc_reviewer`), `expectedRevision` (the revision from step 1), `requestId`, `taskId`, and `allowedPaths` (worktree-relative path array; required and non-empty for `arc_implementer`, optional for `arc_tester` where empty or omitted allows no writes, omitted for other roles). `allow` returns `dispatchId`, the route and initial claims and reserves a lease; `hold` returns every reason with its release condition; `deny` rejects the request. Reuse of a `requestId`, or a non-terminal dispatch for the same workflow, task and role, is denied with `duplicate_dispatch`.
|
|
99
102
|
3. Native route: before spawning, compare the `[arc-routing rev <revision>]` tag in the agent list description with the `routing-status` revision. If it differs or is not shown, hold the role as `native_profile_reload_unverified` and report that a new session is required. Then spawn: Claude host Agent tool `subagent_type: "arc-routing-<suffix>"`; Codex host `spawn_agent` `agent_type: "arc_routing_<suffix>"` with the existing `fork_turns="none"` and `task_name` rules. On Grok use `spawn_subagent` with `subagent_type: "arc-routing-<suffix>"`. The revision tag appears in the `subagent_type` description. Use the returned `subagent_id` as `nativeAgentId`. The Grok child uses the session model, so its model claim remains `operator-attested`. The child has no `spawn_subagent` tool. NEVER pass a model argument. On Claude and Codex the profile decides. Record the lifecycle with `observe` using `dispatchId`, `event` (`started`, `completed`, `failed`, or `cancelled`) and `nativeAgentId`. `nativeAgentId` is required with `started` and forbidden with every other event. A `cancelled` event is also accepted for a `reserved` native lease that was never started (without `nativeAgentId`). These are `operator-attested` claims.
|
|
100
103
|
4. Bridge route: `run-dispatch` with `hostPlatform`, `executionEnvironment`, `dispatchId`, `brief` (UTF-8, at most 256 KiB, delivered on stdin only). It starts a detached supervisor and returns at once with `routeStatus` and `resultPath`. Then `observe` with `hostPlatform`, `executionEnvironment`, `dispatchId` and optional `waitMs` (0 to 540000). Use the maximum wait for each call and DO NOT run a short polling loop. With `waitMs`, `observe` returns only when the dispatch reaches `completed`, `failed`, `cancelled` or `unknown`, or when `waitMs` elapses; a transition such as `starting` to `running` does not end the wait. `observe` returns status, claims, `resultPath` and reasons; `failed` and `unknown` are reported as hold (exit 3).
|
|
101
104
|
5. `resume` with `hostPlatform`, `executionEnvironment`, `dispatchId`, `brief`. It continues the same session as a new segment only for a dispatch in `completed` or `failed` state with a recorded session ID and an unchanged active revision (otherwise `revision_changed`). All flags are re-specified, the concurrency limit is checked again, and a session ID mismatch makes the state `unknown`. `unknown` and `cancelled` dispatches cannot be resumed. New Tester or Reviewer assignments never reuse a session.
|
|
@@ -113,7 +116,7 @@ Procedure, in order:
|
|
|
113
116
|
| `claude-desktop` | Held (`environment_unverified`) | Held (`environment_unverified`) | Held (`environment_unverified`) | Held (`environment_unverified`) |
|
|
114
117
|
| `codex-desktop` | Held (`environment_unverified`) | Held (`environment_unverified`) | Held (`environment_unverified`) | Held (`environment_unverified`) |
|
|
115
118
|
|
|
116
|
-
Read roles are Scouter, Planner and Reviewer. The table shows which routes the recorded gates permit; apply the host rules and check each dispatch result.
|
|
119
|
+
Read roles are Scouter, Architect, Planner and Reviewer. The table shows which routes the recorded gates permit; apply the host rules and check each dispatch result.
|
|
117
120
|
|
|
118
121
|
**Claude**
|
|
119
122
|
|
|
@@ -164,14 +167,14 @@ GK2 is `approval`.
|
|
|
164
167
|
**Codex**
|
|
165
168
|
|
|
166
169
|
- Gate: G4 applies to every Codex bridge role. G4 `pass` permits dispatch; a failed G4 holds as `permission_scope_unverified`.
|
|
167
|
-
- Writing roles: Codex `workspace-write` may reach beyond the worktree (G5): writes outside the worktree are outside post-run detection.
|
|
170
|
+
- Writing roles: Codex `workspace-write` may reach beyond the worktree (G5): writes outside the worktree are outside post-run detection. A child that can write the anchor home's `arc-role-dispatch` directory can also forge worktree records, so its out-of-scope paths can be recorded under `tolerated.attributed` instead of failing the dispatch.
|
|
168
171
|
- Permission claim: For a Codex bridge the `permissions` claim is at most `operator-attested` and notes `user-config-mcp-not-controlled`, because the child loads the user's Codex configuration (for example MCP servers), which ARC does not control; its `supportStatus` is therefore never `verified`.
|
|
169
172
|
- Delegation: Codex rollout checks apply. The re-delegation of a Codex child is not blocked, and a spawn found afterwards in its rollout fails the dispatch as `delegation_observed` (G3).
|
|
170
173
|
- Execution confirmation: Check the rollout for model, effort, sandbox mode and approval policy, and check the observed terminal result.
|
|
171
174
|
|
|
172
175
|
**Gemini**
|
|
173
176
|
|
|
174
|
-
- Writing roles: Gemini bridge `arc_implementer` and `arc_tester` are held as `permission_scope_unverified` while GG1 is `fail`. Scouter, Planner and Reviewer remain supported.
|
|
177
|
+
- Writing roles: Gemini bridge `arc_implementer` and `arc_tester` are held as `permission_scope_unverified` while GG1 is `fail`. Scouter, Architect, Planner and Reviewer remain supported.
|
|
175
178
|
- Permission claim: The worktree snapshot covers only Git-visible worktree changes.
|
|
176
179
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
177
180
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
@@ -185,9 +188,13 @@ GK2 is `approval`.
|
|
|
185
188
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
186
189
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
187
190
|
|
|
191
|
+
**All platforms**
|
|
192
|
+
|
|
193
|
+
- Snapshot attribution: A bridge dispatch compares Git-visible snapshots of its workspace taken before and after its run. A changed path outside the dispatch's own `allowedPaths` is excluded from that comparison only when it lies within the `allowedPaths` of another bridge `arc_implementer` or `arc_tester` dispatch in the same worktree whose run overlapped, and the runtime records each excluded path with the owning dispatch IDs under `tolerated.attributed`. Any other change in that worktree during the run, including one made by a native role or by Orchestrator, is attributed to the dispatch and fails it as `permission_violation_observed`; HEAD, branch, ref and control-file changes are judged without this exclusion. Bridge dispatches that share one worktree MAY run concurrently when their `allowedPaths` do not overlap, and an empty `allowedPaths` overlaps nothing; run and resume hold `allowed_paths_overlap` while a bridge dispatch in that worktree whose state is `starting`, `running` or `unknown` has overlapping `allowedPaths`, so overlapping dispatches run one at a time. While a native Implementer or Orchestrator writes in a worktree, no bridge dispatch uses that worktree as its workspace. While a bridge dispatch whose workspace is a worktree is `starting`, `running` or `unknown`, Orchestrator makes no commit, branch move or other ref change in that worktree. Dispatches whose workspace is a different checkout, such as the base worktree, MAY run in parallel.
|
|
194
|
+
|
|
188
195
|
<a id="coordination-bridge-tool-access"></a>
|
|
189
196
|
### Bridge tool access
|
|
190
197
|
|
|
191
|
-
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Planner and Reviewer cannot request `toolAccess`. Implementer MAY request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester MAY also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex, Claude and Gemini, the gates for full network access and all three Playwright services have the value `held`; on Grok they are `unmeasured`. NEVER enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
198
|
+
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Architect, Planner and Reviewer cannot request `toolAccess`. Implementer MAY request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester MAY also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex, Claude and Gemini, the gates for full network access and all three Playwright services have the value `held`; on Grok they are `unmeasured`. NEVER enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
192
199
|
|
|
193
200
|
Use `ARC_SCRATCH_DIR` for temporary files and put files that MUST survive the dispatch in `ARC_EVIDENCE_DIR` for supervisor collection. Read `ARC_HOST_SERVICES_FILE` for service endpoints when a host service was granted. When a host-only operation blocks a check, report it as “environment constraint (host only)” and identify the blocked check and what remains unverified. Host-only operations include process inspection (`ps`, `pgrep`), Docker, writes to actual CLI authentication or configuration, dependency installation and its remote fetches, Git writes, Cypress, and Keychain operations. The Orchestrator handles host verification within existing authority.
|
|
@@ -36,7 +36,7 @@ Before the first direct edit, use approved scope records and the same gates. Any
|
|
|
36
36
|
<a id="handoff-evidence"></a>
|
|
37
37
|
### Handoff evidence
|
|
38
38
|
|
|
39
|
-
Give all
|
|
39
|
+
Give all six roles the same actual workspace/selected checkout, preparation evidence and absolute artifacts. Roles stay there and report missing/inaccessible/conflicting paths/unexpected branches before dependent work, NEVER create/switch workspaces/branches. Tell Implementer others share the repository and unrelated work MUST be preserved.
|
|
40
40
|
|
|
41
41
|
<a id="task-readiness-at-every-assignment"></a>
|
|
42
42
|
## Task readiness at every assignment
|
|
@@ -76,10 +76,10 @@ Before feature/bug/behavior edits use local `test-driven-development` except exp
|
|
|
76
76
|
<a id="orchestrator-direct-path-for-small-tasks"></a>
|
|
77
77
|
## Orchestrator direct path for small tasks
|
|
78
78
|
|
|
79
|
-
1. Record scope/files, every condition's justification, criteria/checks, not brainstorming. A specific existing request
|
|
79
|
+
1. Record scope/files, every condition's justification, criteria/checks, not brainstorming. A specific existing request MAY authorize under [planning](planning.md#authorization-and-scope); otherwise obtain explicit approval. Silence/ambiguity/other approvals are insufficient.
|
|
80
80
|
2. Read this/[preparation](handoff-prep.md), pass full gate before edit and edit approved files surgically, preserving others. No unrelated refactoring/unapproved dependencies.
|
|
81
81
|
3. Follow Implementer TDD/recorded waivers; explicit TDD still requires local skill. Record files/checks/criterion evidence/gaps. Orchestrator is not independent; assign Tester for incomplete evidence.
|
|
82
|
-
4. Failed checks/Tester findings route to Implementer/recheck, never self-correction. Scope/risk/condition changes stop edits, record work/reclassify and return subsequent edits to normal Planner/Implementer flow.
|
|
82
|
+
4. Failed checks/Tester findings route to Implementer/recheck, never self-correction. Scope/risk/condition changes stop edits, record work/reclassify and return subsequent edits to normal Architect/Planner/Implementer flow.
|
|
83
83
|
|
|
84
84
|
Add no plans/automatic commits to omission paths; follow guidance/user requests.
|
|
85
85
|
|
|
@@ -120,7 +120,7 @@ A new conversation or lost context requires reread; unchanged HEAD alone does no
|
|
|
120
120
|
|
|
121
121
|
Place the compact envelope in the existing canonical handoff record or existing inline scope record, not a new file, store or API. Record task path and outcome; instructions; target; approval; scope and criteria; risk and depth; TDD; verification; refresh. Specifically include task ID/path, source fingerprint/read context, workspace/branch/HEAD/change state/preservation/ownership, scope approval and target choice, edit boundaries/criteria, F1–F8 evidence/risk/depth, TDD or recorded exception, criterion checks/Tester/Reviewer/acceptance, and observations/changes/revalidation/holds. Link accessible records; inaccessible references do not replace required content. Embed it in the existing eight specialist brief fields in their fixed order, without a ninth field or full history.
|
|
122
122
|
|
|
123
|
-
The nine fields are `task`, `instructions`, `target`, `authorization`, `scopeCriteria`, `riskDepth`, `tdd`, `verification`, and `refresh`; task records the task ID/path and selected path `fast-direct` or `full`, and verification includes criteria-specific checks and their evidence.
|
|
123
|
+
The nine envelope fields are `task`, `instructions`, `target`, `authorization`, `scopeCriteria`, `riskDepth`, `tdd`, `verification`, and `refresh`; task records the task ID/path and selected path `fast-direct` or `full`, and verification includes criteria-specific checks and their evidence.
|
|
124
124
|
|
|
125
125
|
<a id="handoff-evidence-refresh"></a>
|
|
126
126
|
### Evidence refresh
|
|
@@ -179,4 +179,4 @@ Cancellation also requires `notExecutedEvidence: {messageRef}`; approval remains
|
|
|
179
179
|
<a id="composite-bridge-results-and-briefs"></a>
|
|
180
180
|
## Composite bridge results and briefs
|
|
181
181
|
|
|
182
|
-
For a bridge dispatch the result is the child's final message, saved at the `resultPath` returned by `run-dispatch` and `observe`; read it from there and treat it as `operator-attested` text, not as acceptance. The brief sent to `run-dispatch` or `resume` keeps the fixed brief order from [coordination](coordination.md#token-discipline-and-handoffs) and is delivered on stdin only: NEVER put it in argv, environment variables or a positional prompt, and keep it at most 256 KiB. For audit ARC also stores the brief in `<gitCommonDir>/arc/workflows/<workflowId>/dispatches/<dispatchId>/brief.md` (mode 0600); the child still receives it on stdin only. DO NOT include secrets or raw CLI output.
|
|
182
|
+
For a bridge dispatch the result is the child's final message, saved at the `resultPath` returned by `run-dispatch` and `observe`; read it from there and treat it as `operator-attested` text, not as acceptance. The brief sent to `run-dispatch` or `resume` keeps the fixed brief order from [coordination](coordination.md#token-discipline-and-handoffs) and is delivered on stdin only: NEVER put it in argv, environment variables or a positional prompt, and keep it at most 256 KiB. For audit ARC also stores the brief in `<gitCommonDir>/arc/workflows/<workflowId>/dispatches/<dispatchId>/brief.md` (mode 0600); the child still receives it on stdin only. DO NOT include secrets or raw CLI output. When only the brief was defective, such as a wrong path, a missing environment fact or an omitted product step, and criteria, scope and method are unchanged, Orchestrator resumes the same dispatch with a delta brief that states the correction; a change to criteria, scope or method follows the existing approval and fresh-role rules.
|
|
@@ -39,7 +39,7 @@ After initial document batching, follow [planning](planning.md#plan-updates-duri
|
|
|
39
39
|
1. Classify progress records versus contract/mechanical plan revisions. Verify applicable approvals under [planning](planning.md#plan-updates-during-execution) (combined spec+plan revision approval, plan approval, or spec approval with recorded no-plan-impact), actual approval time, preparation and holds; contract revisions require a fresh Implementer for remaining work. NEVER authorize past work retroactively.
|
|
40
40
|
2. After approval edit the same document, append its revision-history row and leave it uncommitted. Record each pending revision with its approved content hash and approval in the canonical `.git/arc/handoff/<workflow>/` record: `gitPath`, `fromVersion`, `toVersion`, `contentHash` (approved content SHA-256), `approvalRef`, `approvedAt` (actual time), `classification` (`contract|mechanical`), `reason`, `affectedTaskIds`, `status` (`pending|committed`). Preserve each full approved version at `.git/arc/handoff/<workflow>/plan-revisions/<flattened-gitPath>.v<N>.md`; NEVER overwrite prior approvals or copies.
|
|
41
41
|
3. In every role brief identify the Orchestrator-owned pending revision, working-tree version and `contentHash`. If another task's progress records were committed after approval, also include in the brief the SHA-256 of the working-tree document content, which is the approved content plus those progress records. Implementer and Tester preserve it untouched as neither their own work nor unrelated user changes.
|
|
42
|
-
4. Include all pending revisions in the accepted commit of the first top-level task executed or reconfirmed against the revised version, otherwise a current task or final Reviewer follow-up commit. Only before overall completion, a standalone `docs(plan)` closing commit MAY include all pending revisions
|
|
42
|
+
4. Include all pending revisions in the accepted commit of the first top-level task executed or reconfirmed against the revised version, otherwise a current task or final Reviewer follow-up commit. Only before overall completion, a standalone `docs(plan)` closing commit MAY include all pending revisions and no implementation files when no implementation work remains; keep canonical supporting evidence. Exclude pending revision hunks from independent prior-version task commits; hold the commit if separation is unsafe. Plan-level progress records follow [commit](commit.md#execution-time-plan-document-updates) and alone never justify the closing commit.
|
|
43
43
|
5. After commit verify the SHA-256 of each committed document's content (not the Git blob OID) equals the latest approved `contentHash` if no progress records have been committed since approval. Otherwise compare against the latest approved copy and allow only classified progress records of this commit's task or committed for other tasks after approval (including R-8 separation) and plan-level progress records carried by this commit. Record the SHA-256 of the expected content used for this comparison in the canonical record; NEVER overwrite approved copies. Mark recorded revisions `committed` and verify no pending revisions remain under [verification](verification.md#evidence-after-plan-revision-commit). Link commit SHA only in the canonical record, never the document. NEVER amend/reset/replay/rewrite planning or implementation commits or create other docs/fixup commits.
|
|
44
44
|
|
|
45
45
|
<a id="recovery-prerequisite"></a>
|
|
@@ -9,49 +9,49 @@ Use the [fast gate and envelope](handoff.md#orchestrator-direct-path-for-small-t
|
|
|
9
9
|
|
|
10
10
|
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.
|
|
11
11
|
|
|
12
|
-
Silence, ambiguous assent, other-work approval and vague blanket improvements are insufficient.
|
|
12
|
+
Silence, ambiguous assent, other-work approval and vague blanket improvements are insufficient. The drafting role's new material choices are not automatically approved. Request missing decisions through Orchestrator. Required specs/plans retain separate ordered approval.
|
|
13
13
|
|
|
14
14
|
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.
|
|
15
15
|
|
|
16
16
|
<a id="probe-scope"></a>
|
|
17
17
|
### Probe scope
|
|
18
18
|
|
|
19
|
-
Probe-only work ends with approved-question findings/evidence/limits/uncertainty, including well-supported infeasibility. It authorizes neither product retention nor subsequent implementation. Record question/method/scope/criteria/constraints; a specific request
|
|
19
|
+
Probe-only work ends with approved-question findings/evidence/limits/uncertainty, including well-supported infeasibility. It authorizes neither product retention nor subsequent implementation. Record question/method/scope/criteria/constraints; a specific request MAY approve them. Match checks to purpose/risk, not product-proof claims.
|
|
20
20
|
|
|
21
21
|
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.
|
|
22
22
|
|
|
23
23
|
<a id="formal-drafting-boundary"></a>
|
|
24
24
|
## Formal drafting boundary
|
|
25
25
|
|
|
26
|
-
Initial design/brainstorming MAY precede target choice. On the Architectural path, [start confirmation](planning.md#architectural-start-confirmation) supplies the approved scope/depth/document set and the explicit choice that the next sentence requires. Before the first required spec/plan draft, record verified source workspace/repository, branch/HEAD, changes/ownership, explicit choice, approved scope/depth/document set and planned relative paths. Planner returns the complete first draft and self-review in chat before target preparation. Revalidate source and selected target at the focused preparation gate, prepare the chosen target, compare actual target and preservation, then review and save in the verified prepared target. Planned paths prove no preparation. Missing or mismatched evidence holds affected work; preparation alone never starts Implementer.
|
|
26
|
+
Initial design/brainstorming MAY precede target choice. On the Architectural path, [start confirmation](planning.md#architectural-start-confirmation) supplies the approved scope/depth/document set and the explicit choice that the next sentence requires. Before the first required spec/plan draft, record verified source workspace/repository, branch/HEAD, changes/ownership, explicit choice, approved scope/depth/document set and planned relative paths. The drafting role (Architect or Planner) returns the complete first draft and self-review in chat before target preparation. Revalidate source and selected target at the focused preparation gate, prepare the chosen target, compare actual target and preservation, then review and save in the verified prepared target. Planned paths prove no preparation. Missing or mismatched evidence holds affected work; preparation alone never starts Implementer.
|
|
27
27
|
|
|
28
|
-
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
|
|
28
|
+
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 Architect returns a complete spec draft or the Planner returns a complete plan draft; design/brainstorming retain their Architect drafting path.
|
|
29
29
|
|
|
30
|
-
For Korean requests and briefs,
|
|
30
|
+
For Korean requests and briefs, the drafting role 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.
|
|
31
31
|
|
|
32
32
|
<a id="planner-drafting-preparation-and-consolidated-feedback"></a>
|
|
33
|
-
##
|
|
33
|
+
## Drafting preparation and consolidated feedback
|
|
34
34
|
|
|
35
|
-
Planner reports initial/revision progress only to Orchestrator: brief stage/feedback/blocker/next step, never body/excerpts/incremental drafts. Return complete draft/self-review. Raw responses may appear in app/tool surfaces; prompt policy cannot hide them. User updates stay brief/status-based without draft content. At approval present integrated/saved/reviewed Markdown without repeating its body in chat.
|
|
35
|
+
The drafting role (Architect or Planner) reports initial/revision progress only to Orchestrator: brief stage/feedback/blocker/next step, never body/excerpts/incremental drafts. Return complete draft/self-review. Raw responses may appear in app/tool surfaces; prompt policy cannot hide them. User updates stay brief/status-based without draft content. At approval present integrated/saved/reviewed Markdown without repeating its body in chat.
|
|
36
36
|
|
|
37
|
-
Before
|
|
37
|
+
Before dispatching a drafting role, 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.
|
|
38
38
|
|
|
39
39
|
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.
|
|
40
40
|
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.
|
|
41
|
-
3.
|
|
42
|
-
4.
|
|
41
|
+
3. Reuse the same Architect only within the design/brainstorming stage while role, context and source remain valid. Within the design/brainstorming stage, reuse one Architect instance for every [design conversation](planning.md#design-conversation) response, the final design, its consolidated correction and any eligible further call. On the Architectural path, the Architect returns the start summary instead of a final design and, after [start confirmation](planning.md#architectural-start-confirmation), continues as the spec author through a spec-stage delta brief while role, context and source remain valid. Assign a fresh Architect for the spec stage if the design Architect is unavailable or its role, context or source is no longer valid. Assign a fresh Planner for each plan stage and reuse it only for a budget-hold delta within that stage. Each fresh instance's 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.
|
|
42
|
+
4. The drafting role 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 drafting role instance. In the design stage, [design conversation](planning.md#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](planning.md#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.
|
|
43
43
|
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.
|
|
44
44
|
|
|
45
|
-
For design and brainstorming, converse under [design conversation](planning.md#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
|
|
45
|
+
For design and brainstorming, converse under [design conversation](planning.md#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 calling either drafting role. 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.
|
|
46
46
|
|
|
47
47
|
<a id="architectural-start-confirmation"></a>
|
|
48
48
|
### Architectural start confirmation
|
|
49
49
|
|
|
50
50
|
1. Scope: on the Architectural path there is no design document and no design approval. Bounded keeps its design approval; Spike, the direct path (F1–F8) and non-behavior paths are unchanged.
|
|
51
|
-
2. Start summary: when the [design conversation](planning.md#design-conversation) ends, the
|
|
51
|
+
2. Start summary: when the [design conversation](planning.md#design-conversation) ends, the Architect 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](planning.md#decision-inventory).
|
|
52
52
|
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](planning.md#formal-drafting-boundary).
|
|
53
|
-
4. Continuation: Orchestrator sends the same
|
|
54
|
-
5. Records:
|
|
53
|
+
4. Continuation: Orchestrator sends the same Architect 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 Architect returns the complete first spec draft and self-review. If that Architect is unavailable or its role, context or source is no longer valid, assign a fresh Architect with a complete initial brief.
|
|
54
|
+
5. Records: every Architectural spec includes a `Decision Record` section (its heading written in the document language) for user decisions and important Architect author judgments. Each entry records the decision, the chosen option, the alternatives rejected and why, and the result and impact. The Bounded short design uses its Approaches section for this purpose. 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.
|
|
55
55
|
6. Full Auto: under [Full Auto](planning.md#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.
|
|
56
56
|
|
|
57
57
|
<a id="design-path-and-plan-depth"></a>
|
|
@@ -59,15 +59,15 @@ For design and brainstorming, converse under [design conversation](planning.md#d
|
|
|
59
59
|
|
|
60
60
|
Record depth separately from risk. Risk controls checks/review, not design paths/plan approval. Bounded/omission is not low risk; Architectural adds no Tester/Reviewer at every stage. Apply risk rules and specific obligations.
|
|
61
61
|
|
|
62
|
-
1. Before feature/design/behavior work, assign brief/evidence/local `brainstorming` to
|
|
63
|
-
2. Spike distinguishes probe-only from specific combined scope. Bounded
|
|
62
|
+
1. Before feature/design/behavior work, assign brief/evidence/local `brainstorming` to Architect. Architect 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.
|
|
63
|
+
2. Spike distinguishes probe-only from specific combined scope. For Bounded work, Architect drafts the short design and Orchestrator obtains design approval before assigning a fresh Planner for any required plan or an Implementer for execution. Direct edits use an approved scope record. Architectural replaces design approval with one [start confirmation](planning.md#architectural-start-confirmation), then complete Architect 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](planning.md#architectural-combined-approval). Both drafting roles are read-only and request no approval.
|
|
64
64
|
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.
|
|
65
65
|
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`.
|
|
66
66
|
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.
|
|
67
67
|
|
|
68
68
|
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.
|
|
69
69
|
|
|
70
|
-
Only
|
|
70
|
+
Only Architect authors the first complete spec draft and self-review. Only Planner authors the first complete plan draft and self-review. Orchestrator reviews and directly revises the same document before approval. An unavailable or failed drafting role stops first drafting rather than transferring authorship. Design approval or start confirmation does not transfer initial authorship.
|
|
71
71
|
|
|
72
72
|
<a id="architectural-combined-approval"></a>
|
|
73
73
|
## Architectural combined approval
|
|
@@ -77,7 +77,7 @@ For initial fast judgment apply the [fast gate](handoff.md#orchestrator-direct-p
|
|
|
77
77
|
<a id="top-level-plan-tasks"></a>
|
|
78
78
|
## Top-level plan tasks
|
|
79
79
|
|
|
80
|
-
Apply Planner rules: ID/title, goal/scope/files, predecessors/dependencies, criteria, required pre-acceptance Tester/checks/evidence and holds. Tasks MUST be independently implementable/verifiable/acceptable. Inseparable policy/profile/tests/manifest contracts start in one task. If inseparability appears later, stop for revised scope/planning/approvals; NEVER merge distinct approved tasks during execution.
|
|
80
|
+
Apply Planner rules: ID/title, goal/scope/files, predecessors/dependencies, criteria, required pre-acceptance Tester/checks/evidence and holds. Tasks MUST be independently implementable/verifiable/acceptable. Inseparable policy/profile/tests/manifest contracts start in one task. If inseparability appears later, stop for revised scope/planning/approvals; NEVER merge distinct approved tasks during execution. Each task also lists the consumers that pin what it changes (tests, fixtures, golden files, manifests and generated outputs), citing lookup evidence.
|
|
81
81
|
|
|
82
82
|
<a id="top-level-plan-tasks-2"></a>
|
|
83
83
|
## Top-level plan tasks
|
|
@@ -89,11 +89,11 @@ Include the provisional trigger judgment with the substitute-check list and reas
|
|
|
89
89
|
|
|
90
90
|
After approval and before first assignment, canonically link every task ID to plan version. Record explicit/implicit predecessors, inputs/outputs/shared contracts, files/conflicting resources, check/Tester paths, ready/held/reasons, initial ready batch and capacity/serialization reasons. Analyze shared APIs/contracts/generated artifacts/resources even across files. Unsettled contracts/incomplete dependencies block affected tasks; same-file concurrent Implementers are forbidden even on different lines. File separation/list order proves no independence.
|
|
91
91
|
|
|
92
|
-
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.
|
|
92
|
+
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. On the bridge route, independent Implementers that share one checkout MAY run in parallel only when their `allowedPaths` do not overlap, and otherwise run one at a time; no bridge dispatch shares a checkout in which a native Implementer writes, under [coordination](coordination.md#bridge-target-rules). Record holds/serialization rather than silently following order. Preserve risk/Tester/Reviewer/target gates.
|
|
93
93
|
|
|
94
94
|
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.
|
|
95
95
|
|
|
96
|
-
Example: with A → B → C, independent D and two slots, start A/D. After A's checks/acceptance/verified commit, B
|
|
96
|
+
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.
|
|
97
97
|
|
|
98
98
|
<a id="document-save-evidence-gates"></a>
|
|
99
99
|
## Document-save evidence gates
|
|
@@ -102,7 +102,7 @@ Before the first Architectural spec save or any plan save, read this and record
|
|
|
102
102
|
|
|
103
103
|
| Save | Required evidence |
|
|
104
104
|
|---|---|
|
|
105
|
-
| Spec | Confirmed start scope/evidence ([start confirmation](planning.md#architectural-start-confirmation)), complete
|
|
105
|
+
| Spec | Confirmed start scope/evidence ([start confirmation](planning.md#architectural-start-confirmation)), complete Architect draft/self-review, Orchestrator integration/save/review ownership and absolute path. Architectural only |
|
|
106
106
|
| 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 |
|
|
107
107
|
|
|
108
108
|
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.
|
|
@@ -120,7 +120,7 @@ Defer local `brainstorming`'s early spec commit: save/self-review/review the unc
|
|
|
120
120
|
|
|
121
121
|
| Path | Approval/preparation |
|
|
122
122
|
|---|---|
|
|
123
|
-
| Spike | Approve question/method/scope/criteria/constraints; no forced unknown-implementation docs. Implementer probes require handoff; read-only Orchestrator
|
|
123
|
+
| Spike | Approve question/method/scope/criteria/constraints; no forced unknown-implementation docs. Implementer probes require handoff; read-only Orchestrator or drafting-role probes without Implementer do not trigger it |
|
|
124
124
|
| Bounded, plan skipped | Approve short design; record omission conditions. Complete approvals, target choice, actual docs or valid absence, then handoff |
|
|
125
125
|
| Bounded, plan required | Approve design and all required plans; no spec. Draft the first required plan before target preparation; complete set before batch/handoff |
|
|
126
126
|
| 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 |
|
|
@@ -139,7 +139,7 @@ Execution-time document revisions take this approval: a spec change with affecte
|
|
|
139
139
|
|
|
140
140
|
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.
|
|
141
141
|
|
|
142
|
-
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
|
|
142
|
+
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 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.
|
|
143
143
|
|
|
144
144
|
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.
|
|
145
145
|
|
|
@@ -151,12 +151,12 @@ Missing/mismatched evidence, unfinished approvals, unclear ownership or unresolv
|
|
|
151
151
|
<a id="local-planning-references"></a>
|
|
152
152
|
## Local planning references
|
|
153
153
|
|
|
154
|
-
Brief absolute installed `references/brainstorming.md`/`references/writing-plans.md`. Planner reads
|
|
154
|
+
Brief absolute installed `references/brainstorming.md`/`references/writing-plans.md`. Architect reads the former and Planner reads the latter, resolving relatives from installed `references/`. Missing paths stop the stage without global fallback. Preserve ARC approval/ownership.
|
|
155
155
|
|
|
156
156
|
<a id="instruction-and-input-provenance"></a>
|
|
157
157
|
## Instruction and input provenance
|
|
158
158
|
|
|
159
|
-
Supply exact skill/reference paths/access state. Separate user instructions/discovered files, approved versions/open questions. Visual criteria link approved source/version/access/IDs/method. Missing inputs/unapproved interpretation hold dependent drafting. Optional alternatives follow [handoff](handoff.md#instruction-sources-bounded-read-recovery-visual-evidence-and-resumption).
|
|
159
|
+
Supply exact skill/reference paths/access state. Separate user instructions/discovered files, approved versions/open questions. Visual criteria link approved source/version/access/IDs/method. Missing inputs/unapproved interpretation hold dependent drafting. Optional alternatives follow [handoff](handoff.md#instruction-sources-bounded-read-recovery-visual-evidence-and-resumption). Both drafting roles stay draft-only in recovery.
|
|
160
160
|
|
|
161
161
|
<a id="managed-worktree-preparation"></a>
|
|
162
162
|
### Managed worktree preparation
|