@yunhozz/arc 0.1.3 → 0.1.4
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 +18 -15
- package/claude/skill/SKILL.md +10 -287
- package/claude/skill/references/commit.md +8 -10
- package/claude/skill/references/coordination.md +148 -0
- package/claude/skill/references/handoff-prep.md +0 -9
- package/claude/skill/references/handoff.md +70 -8
- package/claude/skill/references/planning.md +26 -9
- package/claude/skill/references/verification.md +59 -9
- package/codex/skill/SKILL.md +10 -271
- package/codex/skill/references/commit.md +8 -10
- package/codex/skill/references/coordination.md +131 -0
- package/codex/skill/references/handoff-prep.md +0 -9
- package/codex/skill/references/handoff.md +72 -8
- package/codex/skill/references/planning.md +26 -9
- package/codex/skill/references/verification.md +58 -10
- package/lib/installer/global-config.mjs +1 -2
- package/lib/policy/placement.mjs +25 -0
- package/lib/policy/render.mjs +12 -4
- package/package.json +1 -1
package/MANIFEST.sha256
CHANGED
|
@@ -5,17 +5,18 @@ cbd254348f60c8610d0e5c4b8216c9772c0bd5dbfef324796da516b87054b06e README.md
|
|
|
5
5
|
715b594438b6c216a6e4c918503b72fa518b432e646c969a0ff0021d82d41740 claude/agents/arc-qa.md
|
|
6
6
|
bd51442a5e76d4b61cbeb7f42d43cbcc7bab890db0d39ef16002ae13f5317c34 claude/agents/arc-reviewer.md
|
|
7
7
|
c20162438bb8ac6905164268f867a8f1cfdbbfd51ddfd7e795cc211cc7f8c858 claude/agents/arc-scouter.md
|
|
8
|
-
|
|
8
|
+
9a8fc52b0355648777b26a6ce6497546fb82c3021791d5802709c160c23e86e7 claude/skill/SKILL.md
|
|
9
9
|
0bf77247b82371b3fe12a8dbe8fd2415c98d06e676d2c234b086b1f1e661b9db claude/skill/hooks/git-policy.json
|
|
10
10
|
b188c24d1339367acfe16b81be5743298e498856915e5e91b45e1a7220dad602 claude/skill/hooks/role-git-guard.mjs
|
|
11
11
|
5126d44470486cb2581790b7c8d1605c4d0ee2448b725cf536ba1141eb40fa81 claude/skill/hooks/runtime-gate.mjs
|
|
12
|
-
|
|
12
|
+
92bf36c605f9ff17237f1b40ab084bddf5a58645dedabe80e7bd62a54dba7afe claude/skill/references/commit.md
|
|
13
|
+
48322180252bd9dc8e59a379178faa58865ca2d4cf6192f7b3c964dc3f935bdc claude/skill/references/coordination.md
|
|
13
14
|
66489f92a60a9261ce8d10ec38bd2595cd5bc4739972a1466f4d5da1895c4df9 claude/skill/references/git-recovery.md
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
b2f91dfc0951b4f575430fbc660eaf979ce4322ad563ca5c738ad9a09f489fb8 claude/skill/references/handoff-prep.md
|
|
16
|
+
3a5014dea06ab282f8afd26675744527700aa4635252bf7efc2a56a96c1283a5 claude/skill/references/handoff.md
|
|
16
17
|
10eaf353b5c35ce0d51c10c37ca6cb181121cd20517c793d82c7f5dc5563dff6 claude/skill/references/limits.md
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
077c6e9a8c7e099743a0938e3cf2539e585cbc1b1169ace9d6bebbf0add50eb9 claude/skill/references/planning.md
|
|
19
|
+
7451d22e62a8ed9624c8eacef03475eb5ed32b6b7b7c83344c58b5dd281ba2e6 claude/skill/references/verification.md
|
|
19
20
|
0950dd5973db2578547dddfbed1dbe6000c821fda77e2c54da513ff328b5716d claude/skill/references/visual-companion.md
|
|
20
21
|
30d8cdcb9d7ab6396cab09cd9f5cf6b8003f5490fb5c0ffe9f5acffbb0534978 claude/skill/runtime/adapters/claude.mjs
|
|
21
22
|
d30d118d3b42b805195ed05a3dea0ed3cf939eac811cf0228ca0b0cafeda7969 claude/skill/runtime/adapters/codex.mjs
|
|
@@ -36,16 +37,17 @@ c9df6eaffd228a99ed4fd6604b032741c85f755bf8e4b2bd22af860f33bb7262 codex/agents/a
|
|
|
36
37
|
d79781ade7670a942f4b6b1a7c30406c6328195e395cc47ae0c5a4f3e9a5e449 codex/agents/arc-qa.toml
|
|
37
38
|
c4911b92fc75c316e23164e0efbac5b5a25d7c9666fce0e1f5686e0f96867588 codex/agents/arc-reviewer.toml
|
|
38
39
|
13bf5608336871683f096fc0f305725fb87b5b9703195fbae42f33ef991a00f9 codex/agents/arc-scouter.toml
|
|
39
|
-
|
|
40
|
+
d58e8a734bef143e808003b3f3c4e894528330256f10b52e36db5abcc3ae1fc0 codex/skill/SKILL.md
|
|
40
41
|
019f190ee7a2ccfea059a289ca971265574b043353f89bc96e219436c9827e9e codex/skill/hooks/runtime-gate.mjs
|
|
41
|
-
|
|
42
|
+
6bb10ba131c068ba29bd03f3c3efd58bd353c1be472718970839bf6b7dda7845 codex/skill/references/commit.md
|
|
43
|
+
6d9f098f0edf4dcb4152bd497067f8c156144a027a0e656a557085de330f8fff codex/skill/references/coordination.md
|
|
42
44
|
c164e4c47e21edb10bb06ba010c684a9cdb0bea40d4cde32f60fb08315dfbb97 codex/skill/references/git-recovery.md
|
|
43
|
-
|
|
45
|
+
90a252fab344e19a3b68838fbe974cef9efc375b093b5ea0bbacb951d430174a codex/skill/references/handoff-prep.md
|
|
44
46
|
46c20384b87730f73d2bb1cba260571618eed1946f8006c466d08ca3b4546105 codex/skill/references/handoff-worktree.md
|
|
45
|
-
|
|
47
|
+
e932e083a0aa99e44be126fd2873b9fd48fa855771a41c3184bb76365738db2a codex/skill/references/handoff.md
|
|
46
48
|
658314d60ed1ff78a1d931b5216a3b85f5f928821db915260ccf06d66e6e91ae codex/skill/references/limits.md
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
7bb0976062272c5f62692d96d6b9689284665d1cb22ee10ec514183fcf48f438 codex/skill/references/planning.md
|
|
50
|
+
99dddab8f92ca95a92ce238fb19cee2c433aff0983e6147c0b40e3f5ccad0117 codex/skill/references/verification.md
|
|
49
51
|
892017d193534039fb82cac1dd41f53a28037ea4b8bf255e4716d348adc7d6be codex/skill/references/visual-companion.md
|
|
50
52
|
30d8cdcb9d7ab6396cab09cd9f5cf6b8003f5490fb5c0ffe9f5acffbb0534978 codex/skill/runtime/adapters/claude.mjs
|
|
51
53
|
d30d118d3b42b805195ed05a3dea0ed3cf939eac811cf0228ca0b0cafeda7969 codex/skill/runtime/adapters/codex.mjs
|
|
@@ -70,7 +72,7 @@ a575a94adc9461a7c5c051983b47d1a40a88fb8ee90fa469041cd99165cbb80f lib/cli/progre
|
|
|
70
72
|
ad8ad2f47da6e1d3160d786628d768e8d95108f1a1c113a6a5305e7c85c438db lib/cli/root.mjs
|
|
71
73
|
85f25429f208a4b45a36e66f89933d2bbfb470d6f52f032f70971817063e45f0 lib/cli/uninstall.mjs
|
|
72
74
|
7719a16f6327ea3ba35206ee41c829ab967f865df9ebbd161129ca28babceb3d lib/installer/acquisition.mjs
|
|
73
|
-
|
|
75
|
+
66bc9a18523f70ddbb1d9a0844173d311aabd2d00d9ed5c06ca6679179ba8b06 lib/installer/global-config.mjs
|
|
74
76
|
061ff82e0c655f47b872610b6ad7bde5d1941eaf7c563491a44291c86b16a349 lib/installer/install.mjs
|
|
75
77
|
f9a0958fc424742f49ce6e2e0a49c7cf2bbe288e0cf3551d69a8a912c8f2709f lib/installer/language.mjs
|
|
76
78
|
64713575291e51971abc542df716baa99e9a530a489e92b2f8345b782e0ce4cd lib/installer/limits.mjs
|
|
@@ -90,7 +92,8 @@ f0606cd2cd4871d11e544b5ad8221e4d9050761d1d80ab94c9219eb7e494b375 lib/installer/
|
|
|
90
92
|
a7afd79d4620abcf85f4954aab4599870d8e47b897490d1c5c774f256c5e8800 lib/models/index.mjs
|
|
91
93
|
cc205194c9aa90887bb74c11cb0f5adb63f9da8afe660755a73c62d090309385 lib/models/profiles.mjs
|
|
92
94
|
7c36313221f36a9d08964017c79e8c7b3c848655f6a338f71a24ce508ac6e3ed lib/policy/claude-hook.mjs
|
|
93
|
-
|
|
95
|
+
f32fcb03201c6a73d658a6b3107376f13d03f21503c568a7b4e71ff9b71dd426 lib/policy/placement.mjs
|
|
96
|
+
09b5851cdbcb88b9d4d027e2d96aadb275660354ea64eef0aaa7583ec8090c3e lib/policy/render.mjs
|
|
94
97
|
5fd21f28b7983a89de8d52033ea61003462586ae679dbf87843b8291a2a29237 lib/policy/role-policy.json
|
|
95
98
|
30d8cdcb9d7ab6396cab09cd9f5cf6b8003f5490fb5c0ffe9f5acffbb0534978 lib/runtime/adapters/claude.mjs
|
|
96
99
|
d30d118d3b42b805195ed05a3dea0ed3cf939eac811cf0228ca0b0cafeda7969 lib/runtime/adapters/codex.mjs
|
|
@@ -107,7 +110,7 @@ aa1361419c0137f74793847805a3abc076a8d782c6f590e2d28b8eee5c35065d lib/runtime/st
|
|
|
107
110
|
4174dfcfcd4d69a5486b91108ec03279cfd50644109c7457aa87f9ac877fb1ac lib/safe-fs/native.mjs
|
|
108
111
|
ff9c33c8b3c2bd466d54ffbe4c7139ccd87c79c7de34a6c4cde92e9f6e9b42d2 native/binding.c
|
|
109
112
|
205bedc1dee1a9ffa58124c6e21256a1f0cbe24f06f7c8d7cb0b99524cfab9d0 native/binding.gyp
|
|
110
|
-
|
|
113
|
+
cf68d4fe7de6f0f4ba0cbaae10f05063504ba624103a440c1c5a03a4ed104dd5 package.json
|
|
111
114
|
208c65cfde244d39ce45c3cf1b0acb128f04d21199b6b3fb5466e62db5b64af9 prebuilds/darwin-arm64/arc_safe_fs.node
|
|
112
115
|
572887ac794d10a8b921d8168ea2328e31f05b45987611ff02c83114dba901af prebuilds/darwin-x64/arc_safe_fs.node
|
|
113
116
|
2bb9443021f9d873712b26321de733eddd6794c45f0bc79e2d5dc98669196635 prebuilds/index.json
|
package/claude/skill/SKILL.md
CHANGED
|
@@ -28,82 +28,6 @@ are not standalone document writing (see Role gate).
|
|
|
28
28
|
For mixed research/document requests, Orchestrator may explicitly assign only research to Scouter.
|
|
29
29
|
Live execution-state investigation or cleanup are outside Scouter scope and this boundary makes no owner assignment.
|
|
30
30
|
|
|
31
|
-
## Ownership
|
|
32
|
-
|
|
33
|
-
- Orchestrator: sole owner of development, configuration, tests, implementation-dependent documentation, and mixed tasks
|
|
34
|
-
requiring implementation, assigning their edits to Coder. Coordinates scope, planning, approvals, integration,
|
|
35
|
-
acceptance, verification, and completion.
|
|
36
|
-
- Scouter: read-only material research/analysis and assigned static code/document/data/log exploration. Reports
|
|
37
|
-
evidence, assumptions, unresolved questions, impact, next actions, and workspace/path issues to Orchestrator.
|
|
38
|
-
Does not edit files or author standalone document files, or decide design/plans, verification, review, or completion.
|
|
39
|
-
- Planner: returns design/spec/plan drafts.
|
|
40
|
-
- Coder edits assigned, approved implementation/configuration/test-code files and assigned dependent docs.
|
|
41
|
-
Orchestrator does not edit
|
|
42
|
-
them directly except under the Orchestrator direct path for small tasks.
|
|
43
|
-
- QA: verifies without edits.
|
|
44
|
-
- Reviewer: independently reviews the final full change.
|
|
45
|
-
- All five roles report directly to Orchestrator at depth 2: Scouter, Planner, Coder, QA, and Reviewer.
|
|
46
|
-
Orchestrator is depth 1.
|
|
47
|
-
Depth-2 roles cannot create agents or delegate tasks to another role. Reviewer remains independent.
|
|
48
|
-
- Claude native subagent names: Scouter=`arc-scouter`, Planner=`arc-planner`, Coder=`arc-coder`, QA=`arc-qa`,
|
|
49
|
-
Reviewer=`arc-reviewer`.
|
|
50
|
-
- Across the full tree, obey configured limits for simultaneous subagents, including Scouter; there are no reserved slots.
|
|
51
|
-
Before first creation, read `references/limits.md` and installed `limits.toml`; maintain its cumulative ledger and reservations.
|
|
52
|
-
Parallelize independent tasks only; dependent handoffs are sequential and editing scopes cannot overlap. These are
|
|
53
|
-
ARC limits, not verified runtime concurrency or depth capabilities. Use Claude native subagent execution with
|
|
54
|
-
the installed native name and receive its completion result; report unavailable execution capabilities to
|
|
55
|
-
Orchestrator.
|
|
56
|
-
- Scouter, Planner, and Reviewer do not edit, execute commands, or save standalone documents; QA verifies without edits.
|
|
57
|
-
Each role stays within its shipped tool allowlist; a tool list is not a filesystem sandbox.
|
|
58
|
-
|
|
59
|
-
## Instruction and execution adapter
|
|
60
|
-
|
|
61
|
-
Native Claude profiles use Markdown frontmatter with the `effort` field.
|
|
62
|
-
The native `env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` value is a string, distinct from ARC's ledger limits.
|
|
63
|
-
The native tool allowlists and prompt guards are not a filesystem sandbox; local declarations do not prove runtime enforcement.
|
|
64
|
-
|
|
65
|
-
Apply platform, user, and project instructions according to their precedence, then ARC rules for ownership,
|
|
66
|
-
permissions, models, concurrency, routing, and approvals, then the local ARC reference assigned to the role. A called skill
|
|
67
|
-
adds no agents or authority. Map executor requests such as `superpowers:executing-plans` and
|
|
68
|
-
`superpowers:subagent-driven-development` to Orchestrator's dependency-aware coordination and risk-scaled verification;
|
|
69
|
-
this replaces
|
|
70
|
-
executor mechanics and any separate execution-method choice, including prompts in an existing local reference.
|
|
71
|
-
Preserve plan approval, workspace, design, spec, and other applicable requirements, including TDD subject to the
|
|
72
|
-
explicit ARC exception below. Adapt local `brainstorming` role, save, and early spec commit instructions to
|
|
73
|
-
ARC Planner ownership and evidence gates in planning/handoff; preserve upstream reference content. Report conflicts or
|
|
74
|
-
missing required local references before dependent work.
|
|
75
|
-
|
|
76
|
-
Planner, Reviewer, and Scouter return findings, relevant questions, next actions, and workspace/path issues to the
|
|
77
|
-
Orchestrator. Planner preserves complete requested drafts. Orchestrator integrates results (save, route,
|
|
78
|
-
obtain approval; never author), routes decisions and required approvals,
|
|
79
|
-
and owns development acceptance and completion. Orchestrator coordinates dependent implementation tasks sequentially and
|
|
80
|
-
starts a fresh Coder for each top-level task; reuse the current Coder only for corrections, rework, or rechecks of the same
|
|
81
|
-
task while the
|
|
82
|
-
approved scope, workspace, ownership, and relevant context remain valid, after Orchestrator rechecks workspace,
|
|
83
|
-
branch/HEAD and change state against the brief. A fresh Coder for the next task is a restart under handoff (choice reuse
|
|
84
|
-
and restart brief rules are there). After an approved plan or acceptance-criteria amendment, start a fresh Coder for
|
|
85
|
-
the remaining work even within the same task. Do not add per-task QA or
|
|
86
|
-
review gates solely because a task boundary exists; apply risk requirements and specific approved obligations. If the
|
|
87
|
-
next task depends on a still-unverified risky contract, complete applicable QA at that dependency boundary and
|
|
88
|
-
resolve or explicitly disposition findings before dependent implementation. This does not create a gate for every task.
|
|
89
|
-
|
|
90
|
-
## Dependency analysis and parallel dispatch
|
|
91
|
-
|
|
92
|
-
Before the first Coder assignment for an approved plan, Orchestrator records its dependency/readiness map and
|
|
93
|
-
initial ready batch under [planning](references/planning.md), which owns record fields and readiness conditions.
|
|
94
|
-
File separation alone never proves independence. Pass the full approval/preparation and handoff gates for every
|
|
95
|
-
assignment; unresolved dependencies, shared contracts, or ownership conflicts hold affected work.
|
|
96
|
-
Start all ready independent tasks concurrently with fresh Coders within capacity under [limits](references/limits.md)
|
|
97
|
-
and any lower actual runtime limit; record capacity and serialization reasons. Same-file concurrent Coder edits are
|
|
98
|
-
prohibited, even on different lines. ARC's cap is not a claim of runtime capability.
|
|
99
|
-
|
|
100
|
-
Reassess readiness after completion reports, new check evidence, acceptance, commit, slot return, or a new conflict.
|
|
101
|
-
Coder completion alone does not release dependents: require predecessor checks, Orchestrator acceptance and verified
|
|
102
|
-
focused commit, or accepted no-change evidence under [commit](references/commit.md). Start newly ready tasks without
|
|
103
|
-
waiting for unrelated batch members; failures hold affected dependents while unaffected ready work may continue.
|
|
104
|
-
Preserve risk-scaled QA/Reviewer timing and execution-target restrictions. Shared-checkout Git coordination belongs to
|
|
105
|
-
commit.md; refresh assignment evidence under [handoff](references/handoff.md).
|
|
106
|
-
|
|
107
31
|
## Shared terms
|
|
108
32
|
|
|
109
33
|
The handoff, git-recovery, and commit references and the Coder profile use these terms; context-specific commands,
|
|
@@ -132,235 +56,34 @@ Do not load all references on every task.
|
|
|
132
56
|
|
|
133
57
|
| Reference | Required before |
|
|
134
58
|
|---|---|
|
|
135
|
-
| [
|
|
59
|
+
| [coordination](references/coordination.md) | Before the first specialist creation or assignment and related coordination decisions; role contracts, briefing, adapters, models and token discipline |
|
|
60
|
+
| [limits](references/limits.md) and installed `limits.toml` | Before the first specialist creation; capacity, reservations and cumulative ledger |
|
|
61
|
+
| [planning](references/planning.md) | Design/plan-depth judgments, spec/plan drafting or approval, first spec/plan save; dependency and readiness decisions before assignment |
|
|
136
62
|
| [handoff](references/handoff.md) | Every Coder first start/restart preparation by Orchestrator, and before each Orchestrator direct edit's first edit; Coder trusts the Orchestrator-verified brief under its profile and reads only brief-cited sections |
|
|
137
63
|
| [handoff-prep](references/handoff-prep.md) | Execution-target choice request, each preparation Git mutation (branch creation/switch, staging, commit) |
|
|
138
64
|
| [commit](references/commit.md) | Plan-task acceptance and its focused commit, resuming a task with an unclear commit result |
|
|
139
|
-
| [verification](references/verification.md) | Orchestrator's verification design, QA/Reviewer assignment, correction rechecks, UI acceptance checks;
|
|
65
|
+
| [verification](references/verification.md) | Orchestrator's verification design, QA/Reviewer assignment, correction rechecks, UI acceptance checks, risk classification, acceptance and completion; QA and Reviewer use their profiles and only brief-cited sections |
|
|
140
66
|
| [git-recovery](references/git-recovery.md) | Branch collision, Git preparation failure, partial completion, metadata write denial recovery |
|
|
141
67
|
| [visual-companion](references/visual-companion.md) | Visual companion offer or operation |
|
|
142
68
|
|
|
143
|
-
|
|
144
|
-
(Role gate);
|
|
145
|
-
Orchestrator integrates complete drafts and obtains applicable approvals. Architectural specs and Bounded written specs
|
|
146
|
-
required by Orchestrator's recorded plan-depth judgment use planning save gates; a required plan alone does not require
|
|
147
|
-
a spec. Obtain explicit execution-target choice and verify actual target preparation before formal drafting
|
|
148
|
-
and saving. Complete all current-scope individual document approvals before the batch docs commit. A missing required skill blocks its stage.
|
|
69
|
+
Before classifying a small-task, plan-omission, or TDD exception, read the full conditions in [handoff](references/handoff.md), including Coder TDD and constraints and Orchestrator direct path for small tasks; read [planning](references/planning.md) for design/plan-depth judgments and [verification](references/verification.md) for the full risk criteria before deciding eligibility. An exception name or this index alone never establishes eligibility.
|
|
149
70
|
|
|
150
|
-
##
|
|
151
|
-
|
|
152
|
-
Before every Coder first start/restart, Orchestrator passes the full gate in
|
|
153
|
-
[handoff](references/handoff.md): applicable approvals/artifacts or valid omissions, explicit execution-target choice
|
|
154
|
-
or verified reuse, intended accessible repository/workspace, actual Git identity/state, preservation/ownership,
|
|
155
|
-
verified document commits or valid absence, and no unresolved failure/partial completion.
|
|
156
|
-
Missing evidence, mismatches, unclear ownership or unresolved preparation block handoff and require Orchestrator
|
|
157
|
-
resolution and full revalidation. Handoff owns the evidence fields, canonical handoff record, restart brief, choice lifetime
|
|
158
|
-
and reuse. Coder trusts the Orchestrator-verified brief and reports actual conflicts under its self-contained profile;
|
|
159
|
-
never replace its local guards with a requirement to load Orchestrator procedures.
|
|
160
|
-
Depth-2 roles use the supplied workspace and report path/state conflicts; they cannot create/switch workspaces or
|
|
161
|
-
branches. The same conditions apply before a Orchestrator direct edit.
|
|
162
|
-
Claude v1 supports the current checkout only; obtain the explicit current-branch or task-branch choice and complete
|
|
163
|
-
approved document preparation under [handoff-prep](references/handoff-prep.md).
|
|
164
|
-
ARC-managed worktree execution is unsupported; report an isolated worktree request before dependent work.
|
|
165
|
-
|
|
166
|
-
## Coder TDD and constraints
|
|
71
|
+
## Ownership
|
|
167
72
|
|
|
168
|
-
|
|
169
|
-
ARC exception applies; the Coder profile holds Coder's full TDD rules. TDD is waived only when every small,
|
|
170
|
-
low-risk criterion (Risk-scaled execution) and every plan-skip criterion (Orchestrator direct path) holds.
|
|
171
|
-
Before Coder starts,
|
|
172
|
-
Orchestrator records the scope, why every criterion is met, acceptance criteria, and focused verification in the brief.
|
|
173
|
-
An explicit user or task-specific TDD request overrides
|
|
174
|
-
this waiver. For qualifying tasks only, this exception takes precedence over the generic trigger in the local reference;
|
|
175
|
-
do not change that skill. Ordinary multi-step or significant/high-risk work is not eligible. The waiver skips only
|
|
176
|
-
RED-GREEN steps; focused checks and risk-appropriate QA/Reviewer remain, and do not claim TDD was followed.
|
|
177
|
-
If a constraint blocks a required TDD step, Orchestrator records the
|
|
178
|
-
decision in the brief/plan and obtains any required human approval; internal approval is not a substitute.
|
|
179
|
-
Non-behavior documentation/configuration uses only a specifically authorized exception recorded in the brief; do not
|
|
180
|
-
generalize it to behavior work.
|
|
73
|
+
Read [coordination](references/coordination.md#ownership) before assigning roles. Only Orchestrator accepts work; specialists report directly at depth 2 and cannot delegate.
|
|
181
74
|
|
|
182
75
|
## Risk-scaled execution
|
|
183
76
|
|
|
184
|
-
|
|
185
|
-
behavior, risk,
|
|
186
|
-
and smallest meaningful verification.
|
|
187
|
-
|
|
188
|
-
| Risk | Minimum flow |
|
|
189
|
-
|---|---|
|
|
190
|
-
| Small, low risk | Coder, or Orchestrator direct path → Orchestrator's focused checks → acceptance |
|
|
191
|
-
| Ordinary behavior | Coder → independent QA → acceptance |
|
|
192
|
-
| Significant/high risk | Coder → QA → independent Reviewer of the final full change → acceptance; with a plan, each plan task Coder → FRESH QA → acceptance/commit satisfies the QA step, then independent Reviewer once on the final full change after all plan tasks |
|
|
193
|
-
|
|
194
|
-
Ordinary and significant plan tasks need a FRESH QA before acceptance; only small, low-risk tasks may be accepted on
|
|
195
|
-
Orchestrator focused checks. Small, low risk means narrow, understood, readily reversible, and verifiable by focused
|
|
196
|
-
checks. Ordinary behavior
|
|
197
|
-
fails those conditions without a significant-risk trigger. Significant risk includes shared role/behavior contracts,
|
|
198
|
-
shared state, lifecycle/integration order, security/permissions, data loss/migration, public interfaces, or costly
|
|
199
|
-
installation/deployment/rollback. Substantial behavior or contract changes are significant regardless of file count.
|
|
200
|
-
Unclear risk requires
|
|
201
|
-
investigation or the higher flow. Environment failure does not waive checks or determine design depth.
|
|
202
|
-
|
|
203
|
-
Do not add per-task gates automatically. Reviewer is never a plan-task acceptance prerequisite; for significant work
|
|
204
|
-
with a
|
|
205
|
-
plan, it reviews the final full change once after all plan tasks are accepted with their risk-scaled checks,
|
|
206
|
-
following the last plan task's required checks and any QA recheck at the final relevant state; significant work without
|
|
207
|
-
a plan
|
|
208
|
-
keeps Reviewer after QA before acceptance. Preserve specific approved obligations and complete risky dependency checks
|
|
209
|
-
before dependent implementation. Reuse evidence only when scope, relevant state, independence, freshness, and flow
|
|
210
|
-
position satisfy each covered requirement; changes, failures, or missing/conflicting evidence invalidate affected reuse.
|
|
211
|
-
QA checks independently without edits; Reviewer independently reads the final full change after QA for significant
|
|
212
|
-
work, without QA, planning, edits, delegation, or completion decisions. Orchestrator routes fixes to Coder,
|
|
213
|
-
obtains affected QA rechecks outside the final plan Reviewer correction exception and required final review, and accepts after findings/evidence gaps are resolved or
|
|
214
|
-
explicitly dispositioned.
|
|
215
|
-
|
|
216
|
-
Criterion verdicts follow the Evidence verdict.
|
|
217
|
-
|
|
218
|
-
### Final plan Reviewer correction loop
|
|
77
|
+
Read [verification](references/verification.md#risk-scaled-execution) before risk classification, verification design, assignment or acceptance. It holds the risk table, risk definitions, evidence-reuse rule and role order.
|
|
219
78
|
|
|
220
|
-
|
|
221
|
-
Coder → Reviewer recheck with no QA reassignment. Repeat corrections and Reviewer rechecks until findings are resolved;
|
|
222
|
-
the initial single full review does not prohibit necessary rechecks. Before the initial final overall Reviewer,
|
|
223
|
-
risk-required checks and QA execution failures or unmet criteria still require Coder correction → QA recheck.
|
|
224
|
-
This exception applies only to findings from the final overall Reviewer of work with a plan.
|
|
225
|
-
Work without a plan retains its existing verification flow. Scope expansion, separate mandatory obligations,
|
|
226
|
-
or unresolved evidence gaps hold affected work for Orchestrator to resolve and obtain required approvals.
|
|
227
|
-
Orchestrator assigns corrections/rechecks and decides acceptance. Reviewer remains read-only, must not run QA
|
|
228
|
-
checks or decide acceptance. Previous QA evidence must not be presented as post-fix execution evidence;
|
|
229
|
-
report only checks actually performed, their actor, target state, results and remaining limits.
|
|
230
|
-
|
|
231
|
-
Read verification for evidence fields, failure/finding flow, UI permissions, cleanup and acceptance reporting.
|
|
232
|
-
|
|
233
|
-
Authorization evidence and probe/combined scope are owned by [planning](references/planning.md#authorization-and-scope);
|
|
234
|
-
valid reuse and actual-state refresh by [handoff](references/handoff.md#authorization-continuity).
|
|
235
|
-
After gates hold, continue approved no-doc scope through required checks and Orchestrator acceptance under
|
|
236
|
-
[verification](references/verification.md#completion-continuity); a role report alone does not complete the work.
|
|
237
|
-
|
|
238
|
-
## Orchestrator direct path for small tasks
|
|
239
|
-
|
|
240
|
-
Orchestrator may edit directly only when every small, low-risk criterion (Risk-scaled execution) holds.
|
|
241
|
-
Every plan-skip criterion must also hold: one local change, no dependent stages, no cross-component shared state,
|
|
242
|
-
lifecycle, or integration-order concerns, and one focused verification path. Significant, architectural,
|
|
243
|
-
ordinary-behavior, unclear-risk work and edits overlapping a running Coder's assigned files are ineligible.
|
|
244
|
-
|
|
245
|
-
Significant risk is defined in Risk-scaled execution and excludes work from the Orchestrator direct path;
|
|
246
|
-
do not infer eligibility from a small file count.
|
|
247
|
-
|
|
248
|
-
Before editing, Orchestrator records a scope record (not a brainstorming design) with scope and files,
|
|
249
|
-
why every criterion holds, acceptance criteria, and focused verification. Apply authorization in
|
|
250
|
-
[planning](references/planning.md#authorization-and-scope): an existing sufficiently specific user request can approve
|
|
251
|
-
that scope; no duplicate approval is needed. Otherwise present the scope record to the user and obtain explicit
|
|
252
|
-
approval before editing. Silence, an ambiguous response, or approval of other work is not approval.
|
|
253
|
-
Orchestrator then verifies the same handoff gate as a Coder first start: explicit execution-target choice or valid
|
|
254
|
-
reuse, accessible intended workspace and repository, branch or detached HEAD, HEAD, staged/unstaged/untracked state,
|
|
255
|
-
preservation and ownership, and no unresolved failure or partial completion. Read the [handoff](references/handoff.md)
|
|
256
|
-
and [handoff preparation](references/handoff-prep.md) references before checking this gate.
|
|
257
|
-
|
|
258
|
-
Orchestrator edits only the approved files, preserves others' edits, and makes surgical changes without unrelated
|
|
259
|
-
refactoring or unapproved dependencies. Behavior edits follow the Coder TDD rules and applicable recorded waiver
|
|
260
|
-
criteria; an explicit user or task-specific TDD request still requires test-driven-development.
|
|
261
|
-
Do not claim TDD under a waiver. After editing, Orchestrator records changed files, runs focused checks,
|
|
262
|
-
connects each acceptance criterion to evidence, and reports unverified scope. Orchestrator is not an independent
|
|
263
|
-
reviewer of its own edits; assign QA when evidence is incomplete. If scope expands, risk becomes unclear,
|
|
264
|
-
or any criterion fails, stop editing, record completed changes, and return subsequent edits to the normal Planner/Coder
|
|
265
|
-
flow. A failed focused check or a QA finding routes the correction to Coder, and it is rechecked; Orchestrator does not
|
|
266
|
-
self-correct.
|
|
267
|
-
|
|
268
|
-
Like other plan-skip
|
|
269
|
-
paths, there is no automatic task commit; commits follow applicable guidance and user requests.
|
|
270
|
-
|
|
271
|
-
## Automatic commit after plan-task acceptance
|
|
272
|
-
|
|
273
|
-
Orchestrator accepts each approved top-level task by its own judgment and immediately creates one focused local commit
|
|
274
|
-
for that
|
|
275
|
-
task without additional user commit approval. Read [commit](references/commit.md) before the acceptance and commit.
|
|
276
|
-
Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
|
|
277
|
-
|
|
278
|
-
## Token discipline and handoffs
|
|
279
|
-
|
|
280
|
-
- Only Orchestrator invokes Claude native subagents or assigns specialist tasks. Give each invocation a descriptive role
|
|
281
|
-
and bounded objective; the installed native profile determines its role and local model declarations.
|
|
282
|
-
|
|
283
|
-
- Keep one shared brief with fixed field order: Goal; Criteria (IDs); Exact scope/ownership (absolute workspace,
|
|
284
|
-
branch or detached HEAD and HEAD, handoff record path, when one exists, files);
|
|
285
|
-
Constraints/decisions; Evidence (paths/lines, commands, artifact links); Prior findings; Exact next objective (one
|
|
286
|
-
bounded objective); Return format (conclusion, evidence locations, unresolved points, next step).
|
|
287
|
-
On follow-ups send only changed fields and mark the rest `unchanged` (relative to a brief the recipient received);
|
|
288
|
-
restart briefs follow handoff; a fresh specialist gets every other field in full. Send only the
|
|
289
|
-
self-contained subset needed by the next role and links to accessible artifacts; omit full history, repeated
|
|
290
|
-
instructions, and raw logs. No findings may be brief; requested deliverables such as complete plan drafts remain
|
|
291
|
-
complete. Cite paths/lines/pages/commands/links instead of logs; investigate gaps only.
|
|
292
|
-
- `AskUserQuestion` questions use only `question`, a `header` of at most 12 characters, 2-4 `options` each with `label`
|
|
293
|
-
and `description`, and `multiSelect`.
|
|
294
|
-
- Always start an ARC role by its installed native name (`arc-*`) with only the supplied scoped brief;
|
|
295
|
-
never use a context-inheriting fork (such as the `fork` subagent type) for an ARC role; do not claim fresh context
|
|
296
|
-
isolation without evidence. Reuse an existing specialist for related follow-up with only changed facts/objective when
|
|
297
|
-
its context
|
|
298
|
-
remains relevant; start fresh for unrelated or bloated context. Coder and QA freshness follow the Role gate.
|
|
299
|
-
- Cite in the brief the absolute path of each required local ARC reference's SKILL.md (`test-driven-development` for Coder,
|
|
300
|
-
`brainstorming`/`writing-plans` for Planner); the role Reads it before dependent work.
|
|
301
|
-
- For Reviewer, Orchestrator writes the final base..HEAD diff plus changed-file list to
|
|
302
|
-
`<git-common-dir>/arc/review/<slug>.diff` (same slug as the handoff record; base is the approved base HEAD recorded at
|
|
303
|
-
handoff; inline when small or write denied) and cites its absolute path in the brief; Reviewer reads it and states
|
|
304
|
-
limits. See verification.
|
|
305
|
-
- In Coder briefs, cite the plan/spec path with the task section's line range and include only the needed excerpts,
|
|
306
|
-
acceptance criteria, and constraints; do not ask Coder to read whole plans or specs.
|
|
307
|
-
- Before optional calls, name the unresolved question and expected artifact. Skip calls whose questions are resolved
|
|
308
|
-
by available evidence or direct inspection.
|
|
309
|
-
- Run each ARC role as a foreground Agent call and use its returned result, or run it in the background and wait for the
|
|
310
|
-
completion notification; report unavailable execution to Orchestrator rather than inventing an API.
|
|
311
|
-
Do not poll status in loops; never sleep-poll. A timeout or delay is not a reason to poll or check status in between.
|
|
312
|
-
Send one complete brief per objective and batch related corrections. For long Bash commands set a sufficient `timeout`
|
|
313
|
-
or use `run_in_background` and wait for its completion notification.
|
|
314
|
-
|
|
315
|
-
- Read only the needed ranges of files and outputs (for example `rg -n`, `sed -n`, `head`/`tail`) and cap long command
|
|
316
|
-
output. Do not re-read files or outputs already in context unless they changed. A mandatory reference already read in
|
|
317
|
-
this context and unchanged need not be re-read, and this skill file, once read in this context and unchanged,
|
|
318
|
-
is not re-read on follow-up turns;
|
|
319
|
-
this does not shorten any triggered mandatory reference read.
|
|
320
|
-
- When a plan completes or before starting another plan in a session with long history, Orchestrator records the
|
|
321
|
-
canonical
|
|
322
|
-
handoff state in the handoff record file and recommends that the user continue in a new session.
|
|
323
|
-
- Before handoff, post one short update with role/objective/expected output; after return, combine findings and next
|
|
324
|
-
stage concisely. Do not expose hidden reasoning or raw prompts.
|
|
325
|
-
|
|
326
|
-
### Local superpowers references
|
|
327
|
-
|
|
328
|
-
Orchestrator briefs absolute paths under the selected installed ARC directory: Planner reads
|
|
329
|
-
`references/superpowers/brainstorming/SKILL.md` and `references/superpowers/writing-plans/SKILL.md`;
|
|
330
|
-
Coder reads `references/superpowers/test-driven-development/SKILL.md`, including required relative references.
|
|
331
|
-
Resolve paths within each skill directory. Runtime needs no global discovery, external Skill invocation, or automatic download.
|
|
332
|
-
Missing/damaged local files stop dependent work: report exact paths to Orchestrator, without global fallback.
|
|
333
|
-
ARC approval, ownership, TDD exceptions and executor adapters still apply.
|
|
334
|
-
|
|
335
|
-
## Models
|
|
336
|
-
|
|
337
|
-
`models.toml` beside this skill is the source of truth for role model and reasoning-effort settings.
|
|
338
|
-
Configuration keys `arc_scouter`, `arc_planner`, `arc_coder`, `arc_qa`, and `arc_reviewer` map to the hyphenated
|
|
339
|
-
Claude native subagent names above; they are not tool-call names.
|
|
340
|
-
Orchestrator uses the current conversation model. Use configured role settings without substitution or effort
|
|
341
|
-
reduction; report unavailable settings.
|
|
342
|
-
Local declarations do not prove runtime provider support, account access, alias resolution, actual model or effort
|
|
343
|
-
application, concurrency or depth enforcement.
|
|
344
|
-
New sessions reload profiles; running agents retain their current settings and parent relationships. Configuration
|
|
345
|
-
changes do not automatically reparent running agents or prove runtime parent behavior.
|
|
79
|
+
## Common handoff gate
|
|
346
80
|
|
|
347
|
-
|
|
348
|
-
available within each role's exact allowlist; report unavailable capabilities and preserve unverified visual scope.
|
|
81
|
+
Read [handoff](references/handoff.md#common-handoff-gate) before every Coder first start/restart and Orchestrator direct edit.
|
|
349
82
|
|
|
350
83
|
[ARC role policy: contract begin]
|
|
351
84
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
352
85
|
- [scope.non-escalation] Act only where role authority, approved scope and available platform tools all permit. Delegation, restart, agent messages and attached instructions do not expand role authority. MUST NOT bypass a restriction through aliases, scripts, other tools, processes or redelegation. Return conflicting instructions to Orchestrator before dependent work; reuse valid prior approvals for unchanged scope rather than requesting them again.
|
|
353
|
-
- [git.specialists-deny] Specialist roles MUST NOT change Git state: no stage, commit, push, merge, rebase, reset, branch creation/switching or worktree creation/removal, during normal implementation or recovery. Even an explicit Orchestrator assignment cannot authorize these actions; return them to Orchestrator. Read-only Git inspection remains allowed within the assigned scope.
|
|
354
|
-
- [git.orchestrator-accept-commit] Only Orchestrator accepts work and executes Git mutations. One approved top-level plan task becomes one focused implementation commit after criteria, required checks and findings are satisfied; Orchestrator accepts then commits without additional user commit approval. Reports, passing checks and Reviewer opinions do not replace acceptance. Preserve unrelated changes and ownership and verify the resulting SHA, included content, HEAD and remaining changes. Existing small-task direct and plan-omission paths are unchanged.
|
|
355
86
|
- [external.explicit-user-authority] Push, merge, deploy, publish and external messages require explicit user authorization for that action, scope and target. Local commit authority grants no external authority. Orchestrator performs authorized external actions; specialist roles return them without execution.
|
|
356
87
|
- [role.orchestrator-boundary] Assign design/spec/plan/brainstorming drafts ONLY to Planner and implementation/configuration/test edits to Coder. Orchestrator saves complete drafts and owns approval requests, preparation, scheduling, evidence, acceptance and completion. Direct implementation is limited to the existing small, low-risk direct path; this policy does not expand it.
|
|
357
|
-
- [role.scouter-read-only] Research assigned static sources and report findings, evidence and limits. Do not edit files, install, execute checks, prepare execution targets, inspect live operational state, change external state or decide design, verification, review or acceptance.
|
|
358
|
-
- [role.planner-draft-only] Return design/spec/plan drafts and dependencies, criteria, hold conditions and verification needs in the response. MUST NOT save documents, implement, run checks, prepare targets, request user approval or decide acceptance. Stop formal target-dependent drafting if actual prepared target evidence is missing; route decisions to Orchestrator.
|
|
359
|
-
- [role.coder-implementation] Edit only assigned, approved files and run focused checks under the existing TDD contract. Report changed files, RED/GREEN or authorized exception evidence, results, limits and follow-up. Do not plan, independently QA/review your own work, accept the task or declare overall completion. Git changes remain forbidden even when implementation succeeds.
|
|
360
|
-
- [role.qa-verification] Run approved checks and report commands, observations, reproduction, evidence and limits. Create only essential temporary data/logs/reports in the brief-authorized location and lifetime. Do not edit product source, tests, fixtures or configuration to pass checks, deploy or accept work. Persistent product-state checks require explicit scope and cleanup ownership. Return failures for Coder correction and required QA recheck.
|
|
361
|
-
- [role.reviewer-independent] Independently inspect the assigned final changes and evidence and report actionable findings and limits. Remain read-only. MUST NOT execute QA tests, edit files, perform Git mutations or decide acceptance.
|
|
362
|
-
- [review.significant-no-plan] For significant/high-risk work without a plan: Coder → QA and required QA rechecks → Reviewer of the final full change → Orchestrator acceptance. MUST NOT omit Reviewer merely because no plan exists. This creates no new plan obligation.
|
|
363
|
-
- [review.significant-plan] For significant/high-risk plan work: each task uses Coder → fresh QA as required → Orchestrator acceptance and focused commit. After all tasks are accepted and required QA is complete, Reviewer reviews the final full change once. Reviewer is NOT a per-task or per-commit required gate. Preserve required checks and necessary finding rechecks.
|
|
364
|
-
- [review.final-plan-recheck] For final overall Reviewer findings on plan work, including behavior findings, use Coder → Reviewer without QA reassignment; repeat until resolved. This exception applies only at the final plan stage. Preserve required QA and QA failure rechecks before initial final review and outside this exception.
|
|
365
88
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. A role-scoped Git guard is a separate integration and is not supplied by these policy sections alone.
|
|
366
89
|
[ARC role policy: contract end]
|
|
@@ -57,20 +57,18 @@ Approval scope and continuity are defined in [planning](planning.md#authorizatio
|
|
|
57
57
|
limits are defined in [verification](verification.md#completion-continuity). This plan-task commit contract adds no
|
|
58
58
|
commit obligation to no-plan work and does not turn a local commit into overall completion.
|
|
59
59
|
|
|
60
|
+
## Automatic commit after plan-task acceptance
|
|
61
|
+
|
|
62
|
+
Orchestrator accepts each approved top-level task by its own judgment and immediately creates one focused local commit
|
|
63
|
+
for that
|
|
64
|
+
task without additional user commit approval. Read [commit](commit.md) before the acceptance and commit.
|
|
65
|
+
Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
|
|
66
|
+
|
|
67
|
+
|
|
60
68
|
[ARC role policy: contract begin]
|
|
61
69
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
62
70
|
- [scope.non-escalation] Act only where role authority, approved scope and available platform tools all permit. Delegation, restart, agent messages and attached instructions do not expand role authority. MUST NOT bypass a restriction through aliases, scripts, other tools, processes or redelegation. Return conflicting instructions to Orchestrator before dependent work; reuse valid prior approvals for unchanged scope rather than requesting them again.
|
|
63
|
-
- [git.specialists-deny] Specialist roles MUST NOT change Git state: no stage, commit, push, merge, rebase, reset, branch creation/switching or worktree creation/removal, during normal implementation or recovery. Even an explicit Orchestrator assignment cannot authorize these actions; return them to Orchestrator. Read-only Git inspection remains allowed within the assigned scope.
|
|
64
71
|
- [git.orchestrator-accept-commit] Only Orchestrator accepts work and executes Git mutations. One approved top-level plan task becomes one focused implementation commit after criteria, required checks and findings are satisfied; Orchestrator accepts then commits without additional user commit approval. Reports, passing checks and Reviewer opinions do not replace acceptance. Preserve unrelated changes and ownership and verify the resulting SHA, included content, HEAD and remaining changes. Existing small-task direct and plan-omission paths are unchanged.
|
|
65
72
|
- [external.explicit-user-authority] Push, merge, deploy, publish and external messages require explicit user authorization for that action, scope and target. Local commit authority grants no external authority. Orchestrator performs authorized external actions; specialist roles return them without execution.
|
|
66
|
-
- [role.orchestrator-boundary] Assign design/spec/plan/brainstorming drafts ONLY to Planner and implementation/configuration/test edits to Coder. Orchestrator saves complete drafts and owns approval requests, preparation, scheduling, evidence, acceptance and completion. Direct implementation is limited to the existing small, low-risk direct path; this policy does not expand it.
|
|
67
|
-
- [role.scouter-read-only] Research assigned static sources and report findings, evidence and limits. Do not edit files, install, execute checks, prepare execution targets, inspect live operational state, change external state or decide design, verification, review or acceptance.
|
|
68
|
-
- [role.planner-draft-only] Return design/spec/plan drafts and dependencies, criteria, hold conditions and verification needs in the response. MUST NOT save documents, implement, run checks, prepare targets, request user approval or decide acceptance. Stop formal target-dependent drafting if actual prepared target evidence is missing; route decisions to Orchestrator.
|
|
69
|
-
- [role.coder-implementation] Edit only assigned, approved files and run focused checks under the existing TDD contract. Report changed files, RED/GREEN or authorized exception evidence, results, limits and follow-up. Do not plan, independently QA/review your own work, accept the task or declare overall completion. Git changes remain forbidden even when implementation succeeds.
|
|
70
|
-
- [role.qa-verification] Run approved checks and report commands, observations, reproduction, evidence and limits. Create only essential temporary data/logs/reports in the brief-authorized location and lifetime. Do not edit product source, tests, fixtures or configuration to pass checks, deploy or accept work. Persistent product-state checks require explicit scope and cleanup ownership. Return failures for Coder correction and required QA recheck.
|
|
71
|
-
- [role.reviewer-independent] Independently inspect the assigned final changes and evidence and report actionable findings and limits. Remain read-only. MUST NOT execute QA tests, edit files, perform Git mutations or decide acceptance.
|
|
72
|
-
- [review.significant-no-plan] For significant/high-risk work without a plan: Coder → QA and required QA rechecks → Reviewer of the final full change → Orchestrator acceptance. MUST NOT omit Reviewer merely because no plan exists. This creates no new plan obligation.
|
|
73
|
-
- [review.significant-plan] For significant/high-risk plan work: each task uses Coder → fresh QA as required → Orchestrator acceptance and focused commit. After all tasks are accepted and required QA is complete, Reviewer reviews the final full change once. Reviewer is NOT a per-task or per-commit required gate. Preserve required checks and necessary finding rechecks.
|
|
74
|
-
- [review.final-plan-recheck] For final overall Reviewer findings on plan work, including behavior findings, use Coder → Reviewer without QA reassignment; repeat until resolved. This exception applies only at the final plan stage. Preserve required QA and QA failure rechecks before initial final review and outside this exception.
|
|
75
73
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. A role-scoped Git guard is a separate integration and is not supplied by these policy sections alone.
|
|
76
74
|
[ARC role policy: contract end]
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# 역할 배정과 조정
|
|
2
|
+
|
|
3
|
+
Orchestrator reads this before the first specialist creation or assignment and related coordination decisions. Also read [limits](limits.md) and installed `../limits.toml` before first creation. Missing, inaccessible or conflicting references stop dependent work; report the exact paths.
|
|
4
|
+
|
|
5
|
+
## Ownership
|
|
6
|
+
|
|
7
|
+
- Orchestrator: sole owner of development, configuration, tests, implementation-dependent documentation, and mixed tasks
|
|
8
|
+
requiring implementation, assigning their edits to Coder. Coordinates scope, planning, approvals, integration,
|
|
9
|
+
acceptance, verification, and completion.
|
|
10
|
+
- Scouter: read-only material research/analysis and assigned static code/document/data/log exploration. Reports
|
|
11
|
+
evidence, assumptions, unresolved questions, impact, next actions, and workspace/path issues to Orchestrator.
|
|
12
|
+
Does not edit files or author standalone document files, or decide design/plans, verification, review, or completion.
|
|
13
|
+
- Planner: returns design/spec/plan drafts.
|
|
14
|
+
- Coder edits assigned, approved implementation/configuration/test-code files and assigned dependent docs.
|
|
15
|
+
Orchestrator does not edit
|
|
16
|
+
them directly except under the Orchestrator direct path for small tasks.
|
|
17
|
+
- QA: verifies without edits.
|
|
18
|
+
- Reviewer: independently reviews the final full change.
|
|
19
|
+
- All five roles report directly to Orchestrator at depth 2: Scouter, Planner, Coder, QA, and Reviewer.
|
|
20
|
+
Orchestrator is depth 1.
|
|
21
|
+
Depth-2 roles cannot create agents or delegate tasks to another role. Reviewer remains independent.
|
|
22
|
+
- Claude native subagent names: Scouter=`arc-scouter`, Planner=`arc-planner`, Coder=`arc-coder`, QA=`arc-qa`,
|
|
23
|
+
Reviewer=`arc-reviewer`.
|
|
24
|
+
- Across the full tree, obey configured limits for simultaneous subagents, including Scouter; there are no reserved slots.
|
|
25
|
+
Before first creation, read `references/limits.md` and installed `limits.toml`; maintain its cumulative ledger and reservations.
|
|
26
|
+
Parallelize independent tasks only; dependent handoffs are sequential and editing scopes cannot overlap. These are
|
|
27
|
+
ARC limits, not verified runtime concurrency or depth capabilities. Use Claude native subagent execution with
|
|
28
|
+
the installed native name and receive its completion result; report unavailable execution capabilities to
|
|
29
|
+
Orchestrator.
|
|
30
|
+
- Scouter, Planner, and Reviewer do not edit, execute commands, or save standalone documents; QA verifies without edits.
|
|
31
|
+
Each role stays within its shipped tool allowlist; a tool list is not a filesystem sandbox.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Instruction and execution adapter
|
|
35
|
+
|
|
36
|
+
Native Claude profiles use Markdown frontmatter with the `effort` field.
|
|
37
|
+
The native `env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` value is a string, distinct from ARC's ledger limits.
|
|
38
|
+
The native tool allowlists and prompt guards are not a filesystem sandbox; local declarations do not prove runtime enforcement.
|
|
39
|
+
|
|
40
|
+
Apply platform, user, and project instructions according to their precedence, then ARC rules for ownership,
|
|
41
|
+
permissions, models, concurrency, routing, and approvals, then the local ARC reference assigned to the role. A called skill
|
|
42
|
+
adds no agents or authority. Map executor requests such as `superpowers:executing-plans` and
|
|
43
|
+
`superpowers:subagent-driven-development` to Orchestrator's dependency-aware coordination and risk-scaled verification;
|
|
44
|
+
this replaces
|
|
45
|
+
executor mechanics and any separate execution-method choice, including prompts in an existing local reference.
|
|
46
|
+
Preserve plan approval, workspace, design, spec, and other applicable requirements, including TDD subject to the
|
|
47
|
+
explicit ARC exception in [handoff](handoff.md#coder-tdd-and-constraints). Adapt local `brainstorming` role, save, and early spec commit instructions to
|
|
48
|
+
ARC Planner ownership and evidence gates in planning/handoff; preserve upstream reference content. Report conflicts or
|
|
49
|
+
missing required local references before dependent work.
|
|
50
|
+
|
|
51
|
+
Planner, Reviewer, and Scouter return findings, relevant questions, next actions, and workspace/path issues to the
|
|
52
|
+
Orchestrator. Planner preserves complete requested drafts. Orchestrator integrates results (save, route,
|
|
53
|
+
obtain approval; never author), routes decisions and required approvals,
|
|
54
|
+
and owns development acceptance and completion. Orchestrator coordinates dependent implementation tasks sequentially and
|
|
55
|
+
starts a fresh Coder for each top-level task; reuse the current Coder only for corrections, rework, or rechecks of the same
|
|
56
|
+
task while the
|
|
57
|
+
approved scope, workspace, ownership, and relevant context remain valid, after Orchestrator rechecks workspace,
|
|
58
|
+
branch/HEAD and change state against the brief. A fresh Coder for the next task is a restart under handoff (choice reuse
|
|
59
|
+
and restart brief rules are there). After an approved plan or acceptance-criteria amendment, start a fresh Coder for
|
|
60
|
+
the remaining work even within the same task. Do not add per-task QA or
|
|
61
|
+
review gates solely because a task boundary exists; apply risk requirements and specific approved obligations. If the
|
|
62
|
+
next task depends on a still-unverified risky contract, complete applicable QA at that dependency boundary and
|
|
63
|
+
resolve or explicitly disposition findings before dependent implementation. This does not create a gate for every task.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## Token discipline and handoffs
|
|
67
|
+
|
|
68
|
+
- Only Orchestrator invokes Claude native subagents or assigns specialist tasks. Give each invocation a descriptive role
|
|
69
|
+
and bounded objective; the installed native profile determines its role and local model declarations.
|
|
70
|
+
|
|
71
|
+
- Keep one shared brief with fixed field order: Goal; Criteria (IDs); Exact scope/ownership (absolute workspace,
|
|
72
|
+
branch or detached HEAD and HEAD, handoff record path, when one exists, files);
|
|
73
|
+
Constraints/decisions; Evidence (paths/lines, commands, artifact links); Prior findings; Exact next objective (one
|
|
74
|
+
bounded objective); Return format (conclusion, evidence locations, unresolved points, next step).
|
|
75
|
+
On follow-ups send only changed fields and mark the rest `unchanged` (relative to a brief the recipient received);
|
|
76
|
+
restart briefs follow handoff; a fresh specialist gets every other field in full. Send only the
|
|
77
|
+
self-contained subset needed by the next role and links to accessible artifacts; omit full history, repeated
|
|
78
|
+
instructions, and raw logs. No findings may be brief; requested deliverables such as complete plan drafts remain
|
|
79
|
+
complete. Cite paths/lines/pages/commands/links instead of logs; investigate gaps only.
|
|
80
|
+
- `AskUserQuestion` questions use only `question`, a `header` of at most 12 characters, 2-4 `options` each with `label`
|
|
81
|
+
and `description`, and `multiSelect`.
|
|
82
|
+
- Always start an ARC role by its installed native name (`arc-*`) with only the supplied scoped brief;
|
|
83
|
+
never use a context-inheriting fork (such as the `fork` subagent type) for an ARC role; do not claim fresh context
|
|
84
|
+
isolation without evidence. Reuse an existing specialist for related follow-up with only changed facts/objective when
|
|
85
|
+
its context
|
|
86
|
+
remains relevant; start fresh for unrelated or bloated context. Coder and QA freshness follow the Role gate.
|
|
87
|
+
- Cite in the brief the absolute path of each required local ARC reference's SKILL.md (`test-driven-development` for Coder,
|
|
88
|
+
`brainstorming`/`writing-plans` for Planner); the role Reads it before dependent work.
|
|
89
|
+
- For Reviewer, Orchestrator writes the final base..HEAD diff plus changed-file list to
|
|
90
|
+
`<git-common-dir>/arc/review/<slug>.diff` (same slug as the handoff record; base is the approved base HEAD recorded at
|
|
91
|
+
handoff; inline when small or write denied) and cites its absolute path in the brief; Reviewer reads it and states
|
|
92
|
+
limits. See verification.
|
|
93
|
+
- In Coder briefs, cite the plan/spec path with the task section's line range and include only the needed excerpts,
|
|
94
|
+
acceptance criteria, and constraints; do not ask Coder to read whole plans or specs.
|
|
95
|
+
- Before optional calls, name the unresolved question and expected artifact. Skip calls whose questions are resolved
|
|
96
|
+
by available evidence or direct inspection.
|
|
97
|
+
- Run each ARC role as a foreground Agent call and use its returned result, or run it in the background and wait for the
|
|
98
|
+
completion notification; report unavailable execution to Orchestrator rather than inventing an API.
|
|
99
|
+
Do not poll status in loops; never sleep-poll. A timeout or delay is not a reason to poll or check status in between.
|
|
100
|
+
Send one complete brief per objective and batch related corrections. For long Bash commands set a sufficient `timeout`
|
|
101
|
+
or use `run_in_background` and wait for its completion notification.
|
|
102
|
+
|
|
103
|
+
- Read only the needed ranges of files and outputs (for example `rg -n`, `sed -n`, `head`/`tail`) and cap long command
|
|
104
|
+
output. Do not re-read files or outputs already in context unless they changed. A mandatory reference already read in
|
|
105
|
+
this context and unchanged need not be re-read, and this skill file, once read in this context and unchanged,
|
|
106
|
+
is not re-read on follow-up turns;
|
|
107
|
+
this does not shorten any triggered mandatory reference read.
|
|
108
|
+
- When a plan completes or before starting another plan in a session with long history, Orchestrator records the
|
|
109
|
+
canonical
|
|
110
|
+
handoff state in the handoff record file and recommends that the user continue in a new session.
|
|
111
|
+
- Before handoff, post one short update with role/objective/expected output; after return, combine findings and next
|
|
112
|
+
stage concisely. Do not expose hidden reasoning or raw prompts.
|
|
113
|
+
|
|
114
|
+
### Local superpowers references
|
|
115
|
+
|
|
116
|
+
Orchestrator briefs absolute paths under the selected installed ARC directory: Planner reads
|
|
117
|
+
`references/superpowers/brainstorming/SKILL.md` and `references/superpowers/writing-plans/SKILL.md`;
|
|
118
|
+
Coder reads `references/superpowers/test-driven-development/SKILL.md`, including required relative references.
|
|
119
|
+
Resolve paths within each skill directory. Runtime needs no global discovery, external Skill invocation, or automatic download.
|
|
120
|
+
Missing/damaged local files stop dependent work: report exact paths to Orchestrator, without global fallback.
|
|
121
|
+
ARC approval, ownership, TDD exceptions and executor adapters still apply.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## Models
|
|
125
|
+
|
|
126
|
+
`models.toml` beside this skill is the source of truth for role model and reasoning-effort settings.
|
|
127
|
+
Configuration keys `arc_scouter`, `arc_planner`, `arc_coder`, `arc_qa`, and `arc_reviewer` map to the hyphenated
|
|
128
|
+
Claude native subagent names above; they are not tool-call names.
|
|
129
|
+
Orchestrator uses the current conversation model. Use configured role settings without substitution or effort
|
|
130
|
+
reduction; report unavailable settings.
|
|
131
|
+
Local declarations do not prove runtime provider support, account access, alias resolution, actual model or effort
|
|
132
|
+
application, concurrency or depth enforcement.
|
|
133
|
+
New sessions reload profiles; running agents retain their current settings and parent relationships. Configuration
|
|
134
|
+
changes do not automatically reparent running agents or prove runtime parent behavior.
|
|
135
|
+
|
|
136
|
+
For browser visualization needs read [visual-companion](visual-companion.md). Use only capabilities
|
|
137
|
+
available within each role's exact allowlist; report unavailable capabilities and preserve unverified visual scope.
|
|
138
|
+
|
|
139
|
+
[ARC role policy: contract begin]
|
|
140
|
+
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
141
|
+
- [git.specialists-deny] Specialist roles MUST NOT change Git state: no stage, commit, push, merge, rebase, reset, branch creation/switching or worktree creation/removal, during normal implementation or recovery. Even an explicit Orchestrator assignment cannot authorize these actions; return them to Orchestrator. Read-only Git inspection remains allowed within the assigned scope.
|
|
142
|
+
- [role.scouter-read-only] Research assigned static sources and report findings, evidence and limits. Do not edit files, install, execute checks, prepare execution targets, inspect live operational state, change external state or decide design, verification, review or acceptance.
|
|
143
|
+
- [role.planner-draft-only] Return design/spec/plan drafts and dependencies, criteria, hold conditions and verification needs in the response. MUST NOT save documents, implement, run checks, prepare targets, request user approval or decide acceptance. Stop formal target-dependent drafting if actual prepared target evidence is missing; route decisions to Orchestrator.
|
|
144
|
+
- [role.coder-implementation] Edit only assigned, approved files and run focused checks under the existing TDD contract. Report changed files, RED/GREEN or authorized exception evidence, results, limits and follow-up. Do not plan, independently QA/review your own work, accept the task or declare overall completion. Git changes remain forbidden even when implementation succeeds.
|
|
145
|
+
- [role.qa-verification] Run approved checks and report commands, observations, reproduction, evidence and limits. Create only essential temporary data/logs/reports in the brief-authorized location and lifetime. Do not edit product source, tests, fixtures or configuration to pass checks, deploy or accept work. Persistent product-state checks require explicit scope and cleanup ownership. Return failures for Coder correction and required QA recheck.
|
|
146
|
+
- [role.reviewer-independent] Independently inspect the assigned final changes and evidence and report actionable findings and limits. Remain read-only. MUST NOT execute QA tests, edit files, perform Git mutations or decide acceptance.
|
|
147
|
+
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. A role-scoped Git guard is a separate integration and is not supplied by these policy sections alone.
|
|
148
|
+
[ARC role policy: contract end]
|