@yunhozz/arc 0.1.3 → 0.1.5

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.
Files changed (33) hide show
  1. package/MANIFEST.sha256 +32 -29
  2. package/claude/agents/arc-coder.md +1 -1
  3. package/claude/agents/arc-qa.md +2 -2
  4. package/claude/skill/SKILL.md +17 -294
  5. package/claude/skill/references/commit.md +5 -11
  6. package/claude/skill/references/coordination.md +148 -0
  7. package/claude/skill/references/git-recovery.md +3 -2
  8. package/claude/skill/references/handoff-prep.md +4 -11
  9. package/claude/skill/references/handoff.md +69 -8
  10. package/claude/skill/references/limits.md +1 -1
  11. package/claude/skill/references/planning.md +20 -24
  12. package/claude/skill/references/verification.md +39 -9
  13. package/claude/skill/references/visual-companion.md +1 -1
  14. package/codex/agents/arc-coder.toml +1 -0
  15. package/codex/agents/arc-planner.toml +2 -0
  16. package/codex/agents/arc-qa.toml +2 -0
  17. package/codex/agents/arc-reviewer.toml +2 -0
  18. package/codex/agents/arc-scouter.toml +2 -0
  19. package/codex/skill/SKILL.md +19 -281
  20. package/codex/skill/references/commit.md +10 -24
  21. package/codex/skill/references/coordination.md +129 -0
  22. package/codex/skill/references/git-recovery.md +21 -18
  23. package/codex/skill/references/handoff-prep.md +14 -25
  24. package/codex/skill/references/handoff-worktree.md +10 -12
  25. package/codex/skill/references/handoff.md +81 -34
  26. package/codex/skill/references/limits.md +1 -1
  27. package/codex/skill/references/planning.md +36 -46
  28. package/codex/skill/references/verification.md +73 -53
  29. package/codex/skill/references/visual-companion.md +6 -8
  30. package/lib/installer/global-config.mjs +1 -2
  31. package/lib/policy/placement.mjs +25 -0
  32. package/lib/policy/render.mjs +12 -4
  33. package/package.json +1 -1
@@ -12,108 +12,25 @@ Orchestrator MUST NEVER author them and MUST NEVER invoke `brainstorming` or `wr
12
12
  If either auto-triggers in Orchestrator context, Orchestrator stops and routes to Planner, citing that skill's SKILL.md
13
13
  path in the brief. A user request to skip questions never waives design or approval gates; Planner returns questions to
14
14
  Orchestrator. Each top-level task (a plan task, or the whole request without a plan) gets a FRESH Coder,
15
- and each task that needs QA (risk-scaled, unchanged) gets a FRESH QA, never one reused from another task;
15
+ and each task that needs QA under Risk-scaled execution gets a FRESH QA, never one reused from another task;
16
16
  same-task rechecks may reuse.
17
17
 
18
18
  Follow user instructions and project guidance. Orchestrator uses the current chat model and answers simple,
19
19
  self-contained questions directly. For substantive multistep work, Orchestrator coordinates implementation, configuration, tests,
20
20
  and mixed work.
21
21
  Orchestrator handles research directly when the needed material is already in its context or the check is a quick read
22
- of a few known
23
- files; all other material research/analysis and bounded exploration (read-only, of static code, documents, data, and
22
+ of a few known files; all other material research/analysis and bounded exploration (read-only, of static code, documents, data, and
24
23
  logs/reports) goes to Scouter with its configured settings (a bounded lookup gets a narrow brief: known paths,
25
24
  specific facts, no synthesis). Route by object and deliverable, not verbs alone.
26
25
  Standalone document writing has no specialist auto-route. Design, spec, plan, and brainstorming drafts are not
27
26
  standalone document writing (see Role gate).
28
27
  For mixed research/document requests, Orchestrator may explicitly assign only research to Scouter.
29
- Live operational state
30
- inspection and operational cleanup are outside Scouter scope and this boundary makes no owner assignment.
31
-
32
- ## Ownership
33
-
34
- - Orchestrator: sole owner of development, configuration, tests, implementation-dependent documentation, and mixed tasks
35
- requiring implementation, assigning their edits to Coder. Coordinates scope, planning, approvals, integration
36
- (save, route, obtain approval; never author), acceptance, verification, and completion.
37
- - Scouter: read-only material research/analysis and assigned static code/document/data/log exploration. Reports
38
- evidence, assumptions, unresolved questions, impact, next actions, and workspace/path issues to Orchestrator.
39
- Does not edit files or author standalone document files, or decide design/plans, verification, review, or completion.
40
- - Planner: returns design/spec/plan drafts.
41
- - Coder: edits assigned, approved implementation/configuration/test-code files and assigned dependent docs.
42
- Orchestrator does not edit
43
- them directly except under the Orchestrator direct path for small tasks.
44
- - QA: verifies without edits.
45
- - Reviewer: independently reviews the final full change.
46
- - All five roles report directly to Orchestrator at depth 2: Scouter, Planner, Coder, QA, and Reviewer.
47
- Orchestrator is depth 1.
48
- Depth-2 roles cannot create agents or delegate tasks to another role. Reviewer remains independent.
49
- - Aliases: Scouter=`arc_scouter`, Planner=`arc_planner`, Coder=`arc_coder`, QA=`arc_qa`, 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.
53
- - After each read-only role returns (Scouter, Planner, Reviewer), Orchestrator checks `git status` against a pre-spawn
54
- snapshot for unexpected changes; on any change Orchestrator stops and reports under the Preservation rule.
55
- Limit: concurrent Coder edits and ignored or out-of-repo paths are not attributable/detectable.
56
- Their read-only status rests on prompt-level guards, not sandbox enforcement.
57
-
58
- ## Instruction and execution adapter
59
-
60
- Native Codex profiles are TOML with the `model_reasoning_effort` field.
61
- The native `[agents].max_concurrent_threads_per_session` value is an integer, distinct from ARC's ledger limits.
62
- These local declarations do not prove runtime enforcement.
63
-
64
- Apply platform, user, and project instructions according to their precedence, then ARC rules for ownership,
65
- permissions, models, concurrency, routing, and approvals, then the local ARC reference assigned to the role. A called skill
66
- adds no agents or authority. Map executor requests such as `superpowers:executing-plans` and
67
- `superpowers:subagent-driven-development` to Orchestrator's dependency-aware coordination and risk-scaled verification;
68
- this replaces
69
- executor mechanics and any separate execution-method choice, including prompts in an existing local reference.
70
- Preserve plan approval, workspace, design, spec, and other applicable requirements, including TDD subject to the
71
- explicit ARC exception below. Adapt local `brainstorming` role, save, and early spec commit instructions to
72
- ARC Planner ownership and evidence gates in planning/handoff; preserve upstream reference content. Report conflicts or
73
- missing required local references before dependent work.
74
-
75
-
76
- ### Local superpowers references
77
-
78
- Orchestrator briefs absolute paths under the selected installed ARC directory: Planner reads
79
- `references/superpowers/brainstorming/SKILL.md` and `references/superpowers/writing-plans/SKILL.md`;
80
- Coder reads `references/superpowers/test-driven-development/SKILL.md`, including required relative references.
81
- Resolve paths within each skill directory. Runtime needs no global discovery, external Skill invocation, or automatic download.
82
- Missing/damaged local files stop dependent work: report exact paths to Orchestrator, without global fallback.
83
- ARC approval, ownership, TDD exceptions and executor adapters still apply.
84
-
85
- Orchestrator integrates role results, routes decisions and required approvals, and owns development acceptance
86
- and completion. Orchestrator coordinates dependent implementation tasks sequentially and
87
- starts a fresh Coder for each top-level task (Role gate); reuse the current Coder only for corrections, rework,
88
- or rechecks of the same task while the
89
- approved scope, workspace, ownership, and relevant context remain valid; before sending corrections or rework to a
90
- reused Coder, Orchestrator rechecks workspace, branch/HEAD and change state against the brief.
91
- A fresh Coder for the next task is a restart under handoff (choice reuse and restart brief rules are there).
92
- After an approved plan or acceptance-criteria amendment, start a fresh Coder for
93
- the remaining work even within the same task; it is also a restart under handoff. Task-boundary gates
94
- follow Risk-scaled execution.
95
-
96
- ## Dependency analysis and parallel dispatch
97
-
98
- Before the first Coder assignment for an approved plan, Orchestrator records its dependency/readiness map and
99
- initial ready batch under [planning](references/planning.md), which owns record fields and readiness conditions.
100
- File separation alone never proves independence. Pass the full approval/preparation and handoff gates for every
101
- assignment; unresolved dependencies, shared contracts, or ownership conflicts hold affected work.
102
- Start all ready independent tasks concurrently with fresh Coders within capacity under [limits](references/limits.md)
103
- and any lower actual runtime limit; record capacity and serialization reasons. Same-file concurrent Coder edits are
104
- prohibited, even on different lines. ARC's cap is not a claim of runtime capability.
105
-
106
- Reassess readiness after completion reports, new check evidence, acceptance, commit, slot return, or a new conflict.
107
- Coder completion alone does not release dependents: require predecessor checks, Orchestrator acceptance and verified
108
- focused commit, or accepted no-change evidence under [commit](references/commit.md). Start newly ready tasks without
109
- waiting for unrelated batch members; failures hold affected dependents while unaffected ready work may continue.
110
- Preserve risk-scaled QA/Reviewer timing and execution-target restrictions. Shared-checkout Git coordination belongs to
111
- commit.md; refresh assignment evidence under [handoff](references/handoff.md).
28
+ Live operational state inspection and operational cleanup are outside Scouter scope and this boundary makes no owner assignment.
112
29
 
113
30
  ## Shared terms
114
31
 
115
- The handoff, git-recovery, and commit references and the Coder profile use these terms; context-specific commands,
116
- paths, and state checks still apply.
32
+ The coordination, handoff, handoff-prep, git-recovery, verification, and commit references and the Coder profile use
33
+ these terms; context-specific commands, paths, and state checks still apply.
117
34
 
118
35
  - **Preservation rule**: preserve unrelated staged, unstaged, and untracked changes and edit ownership; never
119
36
  automatically stash, reset, clean, unstage, discard, amend, or delete branches/worktrees; never change permissions,
@@ -125,12 +42,13 @@ paths, and state checks still apply.
125
42
  automatically; revalidate affected gates after resolution.
126
43
  - **Evidence verdict**: each criterion is proven, unmet, or unverified; passing runs, reports, or disposition never
127
44
  turn unverified into proven; reports keep unverified scope visible.
45
+ - **Common handoff gate**: the full verification Orchestrator passes before every Coder first start/restart and
46
+ Orchestrator direct edit; see [handoff](references/handoff.md#common-handoff-gate).
128
47
 
129
48
  ## Mandatory task references
130
49
 
131
50
  Orchestrator and each assigned role must read the applicable references before dependent decisions or actions,
132
- and Orchestrator must
133
- include in the role brief the accessible path and section name of each reference section the role must read.
51
+ and Orchestrator must include in the role brief the accessible path and section name of each reference section the role must read.
134
52
  Resolve paths relative to this installed skill directory.
135
53
  These contracts are conditional on the trigger, mandatory when triggered. Missing, inaccessible, or conflicting
136
54
  references must be reported to Orchestrator; stop dependent work until resolved.
@@ -138,215 +56,35 @@ Do not load all references on every task.
138
56
 
139
57
  | Reference | Required before |
140
58
  |---|---|
141
- | [planning](references/planning.md) | Design/plan-depth judgments, spec/plan drafting or approval, first spec/plan save |
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 |
142
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 |
143
63
  | [handoff-prep](references/handoff-prep.md) | Execution-target choice request, each preparation Git mutation (branch creation/switch, staging, commit) |
144
64
  | [handoff-worktree](references/handoff-worktree.md) | After explicit new managed worktree selection, before its creation, branch work or document transfer |
145
65
  | [commit](references/commit.md) | Plan-task acceptance and its focused commit, resuming a task with an unclear commit result |
146
- | [verification](references/verification.md) | Orchestrator's verification design, QA/Reviewer assignment, correction rechecks, UI acceptance checks; QA and Reviewer use their profiles and only brief-cited sections |
147
- | [git-recovery](references/git-recovery.md) | Branch collision, Git preparation failure, partial completion, metadata write denial recovery |
66
+ | [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 |
67
+ | [git-recovery](references/git-recovery.md) | Branch collision, Git preparation failure, partial completion, metadata write denial, handoff record write denial recovery |
148
68
  | [visual-companion](references/visual-companion.md) | Visual companion offer or operation |
149
69
 
150
- Design and plan depth are independent of verification risk. Planner alone uses local brainstorming/writing-plans
151
- (Role gate); Planner proposes, Orchestrator decides the path and plan depth;
152
- Orchestrator integrates complete drafts and obtains applicable approvals. Architectural specs and Bounded written specs
153
- required by Orchestrator's recorded plan-depth judgment (planning item 3) use planning save gates; a required plan alone
154
- does not require a spec. Obtain explicit execution-target choice and verify actual target preparation before formal drafting
155
- and saving. Complete all current-scope individual document approvals before the batch docs commit. A missing required skill blocks its stage.
156
-
157
- ## Common handoff gate
70
+ 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.
158
71
 
159
- Before every Coder first start/restart, Orchestrator passes the full gate in
160
- [handoff](references/handoff.md): applicable approvals/artifacts or valid omissions, explicit execution-target choice
161
- or verified reuse, intended accessible repository/workspace, actual Git identity/state, preservation/ownership,
162
- verified document commits or valid absence, and no unresolved failure/partial completion.
163
- Missing evidence, mismatches, unclear ownership or unresolved preparation block handoff and require Orchestrator
164
- resolution and full revalidation. Handoff owns the evidence fields, canonical handoff record, restart brief, choice lifetime
165
- and reuse. Coder trusts the Orchestrator-verified brief and reports actual conflicts under its self-contained profile;
166
- never replace its local guards with a requirement to load Orchestrator procedures.
167
- Depth-2 roles use the supplied workspace and report path/state conflicts; they cannot create/switch workspaces or
168
- branches. The same conditions apply before a Orchestrator direct edit.
169
- For a selected worktree, handoff requires common directory, registration, app-managed current-chat attachment,
170
- approved branch, and source preservation; prepare only through the selected managed-worktree contract.
171
-
172
- ## Coder TDD and constraints
72
+ ## Ownership
173
73
 
174
- Before feature, bug-fix, or behavior edits, Coder follows local `test-driven-development` unless the explicit
175
- ARC exception applies; the Coder profile holds Coder's full TDD rules. TDD is waived only when every small,
176
- low-risk criterion (Risk-scaled execution) and every plan-skip criterion (Orchestrator direct path) holds.
177
- Before Coder starts,
178
- Orchestrator records the scope, why every criterion is met, acceptance criteria, and focused verification in the brief.
179
- An explicit user or task-specific TDD request overrides
180
- this waiver. For qualifying tasks only, this exception takes precedence over the generic trigger in the local reference;
181
- do not change that skill. Ordinary multi-step or significant/high-risk work is not eligible. The waiver skips only
182
- RED-GREEN steps; focused checks and risk-appropriate QA/Reviewer remain, and do not claim TDD was followed.
183
- If a constraint blocks a required TDD step, Orchestrator records the
184
- decision in the brief/plan and obtains any required human approval; internal approval is not a substitute.
185
- Non-behavior documentation/configuration uses only a specifically authorized exception recorded in the brief; do not
186
- generalize it to behavior work.
74
+ Read [coordination](references/coordination.md#ownership) before assigning roles. Only Orchestrator accepts work; specialists report directly at depth 2 and cannot delegate.
187
75
 
188
76
  ## Risk-scaled execution
189
77
 
190
- Orchestrator assigns edits exclusively to Coder except under the Orchestrator direct path below, and determines affected
191
- behavior, risk,
192
- and smallest meaningful verification.
193
-
194
- | Risk | Minimum flow |
195
- |---|---|
196
- | Small, low risk | Coder, or Orchestrator direct path → Orchestrator's focused checks → acceptance |
197
- | Ordinary behavior | Coder → independent QA → acceptance |
198
- | 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 |
199
-
200
- Ordinary and significant plan tasks need a FRESH QA before acceptance; only small, low-risk tasks may be accepted on
201
- Orchestrator focused checks. Small, low risk means narrow, understood, readily reversible, and verifiable by focused
202
- checks. Ordinary behavior
203
- fails those conditions without a significant-risk trigger. Significant risk includes shared role/behavior contracts,
204
- shared state, lifecycle/integration order, security/permissions, data loss/migration, public interfaces, or costly
205
- installation/deployment/rollback. Substantial behavior or contract changes are significant regardless of file count.
206
- When risk is unclear, investigate or use the higher flow. Environment failure does not waive checks or determine design depth.
207
-
208
- Do not add per-task QA or review gates solely because a task boundary exists. Reviewer is never a plan-task acceptance
209
- prerequisite; for significant work with a plan, it reviews the final full change once after all plan tasks are accepted
210
- with their risk-scaled checks, following the last plan task's required checks and any QA recheck at the final relevant
211
- state; significant work without a plan keeps Reviewer after QA before acceptance. Preserve specific approved
212
- obligations. If the next task depends on a still-unverified risky contract, complete applicable QA at that dependency
213
- boundary and resolve or explicitly disposition findings before dependent implementation.
214
- Reuse evidence only when scope, relevant state, independence, freshness, and flow
215
- position satisfy each covered requirement; changes, failures, or missing/conflicting evidence invalidate affected reuse.
216
- QA checks independently without edits; Reviewer reviews without QA, planning, edits, delegation, or completion
217
- decisions. Orchestrator routes fixes to Coder (a failed direct-path check returns to the normal flow),
218
- obtains affected QA rechecks outside the final plan Reviewer correction exception and required final review, and accepts after findings/evidence gaps are resolved or
219
- explicitly dispositioned.
220
-
221
- Criterion verdicts follow the Evidence verdict.
222
-
223
- ### Final plan Reviewer correction loop
224
-
225
- For a plan's final overall Reviewer findings, including behavior findings, Orchestrator assigns
226
- Coder → Reviewer recheck with no QA reassignment. Repeat corrections and Reviewer rechecks until findings are resolved;
227
- the initial single full review does not prohibit necessary rechecks. Before the initial final overall Reviewer,
228
- risk-required checks and QA execution failures or unmet criteria still require Coder correction → QA recheck.
229
- This exception applies only to findings from the final overall Reviewer of work with a plan.
230
- Work without a plan retains its existing verification flow. Scope expansion, separate mandatory obligations,
231
- or unresolved evidence gaps hold affected work for Orchestrator to resolve and obtain required approvals.
232
- Orchestrator assigns corrections/rechecks and decides acceptance. Reviewer remains read-only, must not run QA
233
- checks or decide acceptance. Previous QA evidence must not be presented as post-fix execution evidence;
234
- report only checks actually performed, their actor, target state, results and remaining limits.
235
-
236
-
237
-
238
- Authorization evidence and probe/combined scope are owned by [planning](references/planning.md#authorization-and-scope);
239
- valid reuse and actual-state refresh by [handoff](references/handoff.md#authorization-continuity).
240
- After gates hold, continue approved no-doc scope through required checks and Orchestrator acceptance under
241
- [verification](references/verification.md#completion-continuity); a role report alone does not complete the work.
242
-
243
- ## Orchestrator direct path for small tasks
244
-
245
- Orchestrator may make a task's edits directly, without Planner brainstorming or Coder, only when every small,
246
- low-risk criterion
247
- holds, every plan-skip criterion holds
248
- (one local change, no dependent stages, no cross-component shared state, lifecycle, or integration-order concerns,
249
- and one
250
- focused verification path), and no significant-risk trigger applies. Spike, architectural, ordinary-behavior,
251
- significant/high-risk, unclear-risk work, and edits overlapping files assigned to a running Coder are not eligible.
78
+ 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.
252
79
 
253
- Before editing, Orchestrator records a scope record (not a brainstorming design) with scope and files,
254
- why every criterion holds, acceptance criteria, and focused verification. Apply authorization in
255
- [planning](references/planning.md#authorization-and-scope): an existing sufficiently specific user request can approve
256
- that scope; no duplicate approval is needed. Otherwise present the scope record to the user and obtain explicit
257
- approval before editing. Silence, an ambiguous response, or approval of other work is not approval.
258
- Orchestrator then passes the Coder handoff gate in handoff,
259
- with the
260
- approved scope record as the applicable approval, before the first edit. Orchestrator edits only the approved files,
261
- preserves others' edits, makes surgical edits in
262
- the local style without unrelated refactoring or speculative additions, and does not install dependencies without
263
- authorization.
264
-
265
- Behavior edits follow Coder TDD and constraints; when TDD applies, Orchestrator follows local
266
- `test-driven-development`.
267
- After editing, Orchestrator records the changed files, runs the focused checks, connects each acceptance criterion to
268
- evidence,
269
- and preserves unverified scope. Orchestrator is not independent of its own edit; assign QA when the evidence is
270
- incomplete.
271
- After a failed focused check or a QA finding, Orchestrator routes the correction to Coder and obtains a recheck.
272
-
273
- If scope expands, risk becomes unclear, or a criterion stops holding, Orchestrator stops editing, records the changes
274
- already
275
- made, and reclassifies; further work follows the normal Planner/Coder flow with Coder owning subsequent edits. Do not
276
- automatically revert, reset, stash, or clean those changes. Like other plan-skip paths, there is no automatic task
277
- commit; commits follow applicable guidance and user requests.
278
-
279
- ## Automatic commit after plan-task acceptance
280
-
281
- Orchestrator accepts each approved top-level task by its own judgment and immediately creates one focused local commit
282
- for that
283
- task without additional user commit approval. Read [commit](references/commit.md) before the acceptance and commit.
284
- Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
285
-
286
- ## Token discipline and handoffs
287
-
288
- - Only Orchestrator calls agents or assigns specialist tasks. Every `spawn_agent` call must explicitly set a descriptive
289
- lowercase snake_case `task_name` in the form
290
- `<role>_<short_task>` (for example `planner_scope_review` or `qa_installer_checks`). Do not use arbitrary or random
291
- names. `task_name` identifies the run; `agent_type` and its configured profile determine the role and model.
292
-
293
- - Keep one shared brief with fixed field order: Goal; Criteria (IDs); Exact scope/ownership (absolute workspace,
294
- branch or detached HEAD and HEAD, handoff record path, when one exists, files);
295
- Constraints/decisions; Evidence (paths/lines, commands, artifact links); Prior findings; Exact next objective (one
296
- bounded objective); Return format (conclusion, evidence locations, unresolved points, next step). On follow-ups
297
- send only changed fields and mark the rest `unchanged` (relative to a brief the recipient received);
298
- restart briefs follow handoff; a fresh specialist gets every other field in full. Send only the
299
- self-contained subset needed by the next role and links to accessible artifacts; omit full history, repeated
300
- instructions, and raw logs. No findings may be brief; requested deliverables such as complete plan drafts remain
301
- complete. Cite paths/lines/pages/commands/links instead of logs; investigate gaps only.
302
- - Every specialist spawn sets `fork_turns="none"`; full-history forks are not allowed. Supply that brief.
303
- Reuse an existing specialist for related follow-up with only changed facts/objective when its context
304
- remains relevant; start fresh for unrelated or bloated context. Coder and QA freshness follow the Role gate.
305
- - `request_user_input` questions use only `title` and `options` fields, never `question`.
306
- - In Coder briefs, cite the plan/spec path with the task section's line range and include only the needed excerpts,
307
- acceptance criteria, and constraints; do not ask Coder to read whole plans or specs.
308
- - Before optional calls, name the unresolved question and expected artifact. Skip calls whose questions are resolved
309
- by available evidence or direct inspection.
310
- - Wait for a specialist with `wait_agent` using the maximum supported timeout, repeating only until it completes; a
311
- timeout is not a reason to poll or check status in between. Do not poll with `list_agents`, `sleep`, or repeated short
312
- waits; use `list_agents` only to resolve an unknown agent name or state. Send each specialist one complete brief per
313
- objective and batch related corrections or follow-ups into one message. Do not poll long-running commands with
314
- repeated `sleep` or short status checks; use a single blocking wait with the tool's longest yield.
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
- ## Models
80
+ ## Common handoff gate
327
81
 
328
- `models.toml` beside this skill is the source of truth for role model and reasoning-effort settings.
329
- Orchestrator uses the current conversation model. Use configured role settings without substitution or effort
330
- reduction; report unavailable settings.
331
- Local declarations do not prove runtime provider support, account access, alias resolution, actual model or effort
332
- application, concurrency or depth enforcement.
333
- New sessions reload profiles; running agents retain their current settings and parent relationships. Configuration
334
- changes do not automatically reparent running agents or prove runtime parent behavior.
82
+ Read [handoff](references/handoff.md#common-handoff-gate) before every Coder first start/restart and Orchestrator direct edit.
335
83
 
336
84
  [ARC role policy: contract begin]
337
85
  Generated from lib/policy/role-policy.json; do not edit this managed section manually.
338
86
  - [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.
339
- - [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.
340
- - [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.
341
87
  - [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.
342
88
  - [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.
343
- - [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.
344
- - [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.
345
- - [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.
346
- - [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.
347
- - [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.
348
- - [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.
349
- - [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.
350
- - [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.
351
89
  - [platform.codex] Role restrictions are prompt-level contracts, not a filesystem sandbox. No documented role-specific Git hook or generic per-agent tool allowlist is assumed. Existing shell capabilities are retained because static read access after shell reduction has not been verified; Coder and QA need shell for approved checks.
352
90
  [ARC role policy: contract end]
@@ -6,9 +6,8 @@ a task whose commit result is unclear.
6
6
  ## Automatic commit after plan-task acceptance
7
7
 
8
8
  One approved top-level task is the unit of one focused implementation commit. Orchestrator verifies the task's
9
- acceptance
10
- criteria, currently required checks (Reviewer timing: SKILL.md Risk-scaled execution), and findings,
11
- accepts the task by its own judgment, then immediately
9
+ acceptance criteria, currently required checks (Reviewer timing:
10
+ [Risk-scaled execution](verification.md#risk-scaled-execution)), and findings, accepts the task by its own judgment, then immediately
12
11
  creates its focused local Git commit without additional user commit approval.
13
12
  After Orchestrator accepts a task, the next action is the required Git state/scope checks, staging, and focused commit.
14
13
  Do not commit before task acceptance or defer the task commit until the plan ends.
@@ -16,19 +15,17 @@ Only Orchestrator accepts the task and executes its focused commit; Coder comple
16
15
  Substeps and checkboxes are progress records, not separate commit units. Checkbox completion, Coder reports, and
17
16
  passing checks alone do not establish task acceptance: connect criteria's conditions and expected results to actual
18
17
  evidence. Existing plan-skip paths have no new plan obligation; their commits follow applicable guidance and user
19
- requests.
18
+ requests. Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
20
19
 
21
20
  Before committing, Orchestrator verifies the approved plan version, task ID and accepted scope, actual absolute
22
- workspace,
23
- repository, branch or detached HEAD, HEAD, staged/unstaged/untracked state and edit ownership. Verify staged paths and
21
+ workspace, repository, branch or detached HEAD, HEAD, staged/unstaged/untracked state and edit ownership. Verify staged paths and
24
22
  content match only that task, and verify the finalized commit message. If the same file contains other tasks or user
25
23
  changes, prove safe separation before committing. Unrelated staged changes stop the commit under the Preservation
26
24
  rule. After committing, verify SHA, actual message, included
27
25
  paths and content, post-commit HEAD, actual branch and remaining staged/unstaged/untracked state. A successful command exit
28
26
  alone does not establish completion. In the accessible canonical record link plan path/version, task ID, acceptance
29
27
  evidence and Orchestrator judgment, required checks and findings, commit results and state, hold/no-change/reuse
30
- reasons,
31
- and remaining final plan verification.
28
+ reasons, and remaining final plan verification.
32
29
 
33
30
  Hold the task commit for unmet or unresolved criteria, required checks that failed or were not run,
34
31
  unresolved findings or evidence gaps without disposition, scope expansion or revised-plan needs, ownership or staged
@@ -40,8 +37,7 @@ Orchestrator follows git-recovery and reverifies affected evidence after resolvi
40
37
 
41
38
  For a no-change task, make no empty commit; record acceptance evidence and no change. On resume, verify the same task's
42
39
  existing commit SHA, content and validity, then reuse it; do not duplicate a successful task commit.
43
- For a missing record,
44
- inspect the actual result before any retry. Normal accepted task commits retain valid choice reuse under handoff, with
40
+ For a missing record, inspect the actual result before any retry. Normal accepted task commits retain valid choice reuse under handoff, with
45
41
  fresh state and ownership checks. Task acceptance/commit is distinct from final plan acceptance; remaining final
46
42
  QA/Reviewer/integration checks still apply with the timing in verification.
47
43
 
@@ -57,10 +53,9 @@ planning and approval obligations.
57
53
  Local commit authority does not authorize early planning-document commits: pre-Coder document approvals,
58
54
  explicit execution-target choice and batch preparation remain unchanged. Historical spec/plan records are not changed
59
55
  retroactively. Structural checks of this contract do not prove actual agent runtime compliance.
60
- Follow Conventional Commits with the message form
61
- `<type>(<scope>): <description>`. Use a concise, specific English description without a trailing period, a lowercase
62
- scope when useful, one top-level task's logical change per commit, and body/footer only when needed while preserving
63
- Git trailer syntax.
56
+ Follow Conventional Commits with the message form `<type>(<scope>): <description>`. Use a concise, specific English
57
+ description without a trailing period, a lowercase scope when useful, one top-level task's logical change per commit,
58
+ and body/footer only when needed while preserving Git trailer syntax.
64
59
 
65
60
  ## Shared-checkout coordination
66
61
 
@@ -81,20 +76,11 @@ Approval scope and continuity are defined in [planning](planning.md#authorizatio
81
76
  limits are defined in [verification](verification.md#completion-continuity). This plan-task commit contract adds no
82
77
  commit obligation to no-plan work and does not turn a local commit into overall completion.
83
78
 
79
+
84
80
  [ARC role policy: contract begin]
85
81
  Generated from lib/policy/role-policy.json; do not edit this managed section manually.
86
82
  - [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.
87
- - [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.
88
83
  - [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.
89
84
  - [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.
90
- - [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.
91
- - [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.
92
- - [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.
93
- - [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.
94
- - [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.
95
- - [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.
96
- - [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.
97
- - [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.
98
- - [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.
99
85
  - [platform.codex] Role restrictions are prompt-level contracts, not a filesystem sandbox. No documented role-specific Git hook or generic per-agent tool allowlist is assumed. Existing shell capabilities are retained because static read access after shell reduction has not been verified; Coder and QA need shell for approved checks.
100
86
  [ARC role policy: contract end]
@@ -0,0 +1,129 @@
1
+ # Role assignment and coordination
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
+ (save, route, obtain approval; never author), 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
+ - Aliases: Scouter=`arc_scouter`, Planner=`arc_planner`, Coder=`arc_coder`, QA=`arc_qa`, Reviewer=`arc_reviewer`.
23
+ - Across the full tree, obey configured limits for simultaneous subagents, including Scouter; there are no reserved slots.
24
+ Before first creation, read `references/limits.md` and installed `limits.toml`; maintain its cumulative ledger and reservations.
25
+ Parallelize independent tasks only; dependent handoffs are sequential and editing scopes cannot overlap.
26
+ - After each read-only role returns (Scouter, Planner, Reviewer), Orchestrator checks `git status` against a pre-spawn
27
+ snapshot for unexpected changes; on any change Orchestrator stops and reports under the Preservation rule.
28
+ Limit: concurrent Coder edits and ignored or out-of-repo paths are not attributable/detectable.
29
+ Their read-only status rests on prompt-level guards, not sandbox enforcement.
30
+
31
+
32
+ ## Instruction and execution adapter
33
+
34
+ Native Codex profiles are TOML with the `model_reasoning_effort` field.
35
+ The native `[agents].max_concurrent_threads_per_session` value is an integer, distinct from ARC's ledger limits.
36
+ These local declarations do not prove runtime enforcement.
37
+
38
+ Apply platform, user, and project instructions according to their precedence, then ARC rules for ownership,
39
+ permissions, models, concurrency, routing, and approvals, then the local ARC reference assigned to the role. A called skill
40
+ adds no agents or authority. Map executor requests such as `superpowers:executing-plans` and
41
+ `superpowers:subagent-driven-development` to Orchestrator's dependency-aware coordination and risk-scaled verification;
42
+ this replaces executor mechanics and any separate execution-method choice, including prompts in an existing local reference.
43
+ Preserve plan approval, workspace, design, spec, and other applicable requirements, including TDD subject to the
44
+ explicit ARC exception in [handoff](handoff.md#coder-tdd-and-constraints). Adapt local `brainstorming` role, save, and early spec commit instructions to
45
+ ARC Planner ownership and evidence gates in planning/handoff; preserve upstream reference content. Report conflicts or
46
+ missing required local references before dependent work.
47
+
48
+
49
+ ### Local superpowers references
50
+
51
+ Orchestrator briefs absolute paths under the selected installed ARC directory: Planner reads
52
+ `references/superpowers/brainstorming/SKILL.md` and `references/superpowers/writing-plans/SKILL.md`;
53
+ Coder reads `references/superpowers/test-driven-development/SKILL.md`, including required relative references.
54
+ Resolve paths within each skill directory. Runtime needs no global discovery, external Skill invocation, or automatic download.
55
+ Missing/damaged local files stop dependent work: report exact paths to Orchestrator, without global fallback.
56
+ ARC approval, ownership, TDD exceptions and executor adapters still apply.
57
+
58
+ Orchestrator integrates role results, routes decisions and required approvals, and owns development acceptance
59
+ and completion. Orchestrator coordinates dependent implementation tasks sequentially and
60
+ starts a fresh Coder for each top-level task (Role gate); reuse the current Coder only for corrections, rework,
61
+ or rechecks of the same task while the approved scope, workspace, ownership, and relevant context remain valid; before
62
+ sending corrections or rework to a reused Coder, Orchestrator rechecks workspace, branch/HEAD and change state against the brief.
63
+ A fresh Coder for the next task is a restart under handoff (choice reuse and restart brief rules are in handoff).
64
+ After an approved plan or acceptance-criteria amendment, start a fresh Coder for
65
+ the remaining work even within the same task; it is also a restart under handoff. Task-boundary gates
66
+ follow [Risk-scaled execution](verification.md#risk-scaled-execution).
67
+
68
+
69
+ ## Token discipline and handoffs
70
+
71
+ - Only Orchestrator calls agents or assigns specialist tasks. Every `spawn_agent` call must explicitly set a descriptive
72
+ lowercase snake_case `task_name` in the form
73
+ `<role>_<short_task>` (for example `planner_scope_review` or `qa_installer_checks`). Do not use arbitrary or random
74
+ names. `task_name` identifies the run; `agent_type` and its configured profile determine the role and model.
75
+
76
+ - Keep one shared brief with fixed field order: Goal; Criteria (IDs); Exact scope/ownership (absolute workspace,
77
+ branch or detached HEAD and HEAD, handoff record path, when one exists, files);
78
+ Constraints/decisions; Evidence (paths/lines, commands, artifact links); Prior findings; Exact next objective (one
79
+ bounded objective); Return format (conclusion, evidence locations, unresolved points, next step). On follow-ups
80
+ send only changed fields and mark the rest `unchanged` (relative to a brief the recipient received);
81
+ restart briefs follow handoff; a fresh specialist gets every other field in full. Send only the
82
+ self-contained subset needed by the next role and links to accessible artifacts; omit full history, repeated
83
+ instructions, and raw logs. No findings may be brief; requested deliverables such as complete plan drafts remain
84
+ complete. Cite paths/lines/pages/commands/links instead of logs; investigate gaps only.
85
+ - Every specialist spawn sets `fork_turns="none"`; full-history forks are not allowed. Supply that brief.
86
+ Reuse an existing specialist for related follow-up with only changed facts/objective when its context
87
+ remains relevant; start fresh for unrelated or bloated context. Coder and QA freshness follow the Role gate.
88
+ - `request_user_input` questions use only `title` and `options` fields, never `question`.
89
+ - In Coder briefs, cite the plan/spec path with the task section's line range and include only the needed excerpts,
90
+ acceptance criteria, and constraints; do not ask Coder to read whole plans or specs.
91
+ - Before optional calls, name the unresolved question and expected artifact. Skip calls whose questions are resolved
92
+ by available evidence or direct inspection.
93
+ - Wait for a specialist with `wait_agent` using the maximum supported timeout, repeating only until it completes; a
94
+ timeout is not a reason to poll or check status in between. Do not poll with `list_agents`, `sleep`, or repeated short
95
+ waits; use `list_agents` only to resolve an unknown agent name or state. Send each specialist one complete brief per
96
+ objective and batch related corrections or follow-ups into one message. Do not poll long-running commands with
97
+ repeated `sleep` or short status checks; use a single blocking wait with the tool's longest yield.
98
+ - Read only the needed ranges of files and outputs (for example `rg -n`, `sed -n`, `head`/`tail`) and cap long command
99
+ output. Do not re-read files or outputs already in context unless they changed. A mandatory reference already read in
100
+ this context and unchanged need not be re-read, and this skill file, once read in this context and unchanged,
101
+ is not re-read on follow-up turns;
102
+ this does not shorten any triggered mandatory reference read.
103
+ - When a plan completes or before starting another plan in a session with long history, Orchestrator records the
104
+ canonical
105
+ handoff state in the handoff record file and recommends that the user continue in a new session.
106
+ - Before handoff, post one short update with role/objective/expected output; after return, combine findings and next
107
+ stage concisely. Do not expose hidden reasoning or raw prompts.
108
+
109
+
110
+ ## Models
111
+
112
+ `models.toml` beside this skill is the source of truth for role model and reasoning-effort settings.
113
+ Orchestrator uses the current conversation model. Use configured role settings without substitution or effort
114
+ reduction; report unavailable settings.
115
+ Local declarations do not prove runtime provider support, account access, alias resolution, actual model or effort
116
+ application, concurrency or depth enforcement.
117
+ New sessions reload profiles; running agents retain their current settings and parent relationships. Configuration
118
+ changes do not automatically reparent running agents or prove runtime parent behavior.
119
+
120
+ [ARC role policy: contract begin]
121
+ Generated from lib/policy/role-policy.json; do not edit this managed section manually.
122
+ - [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.
123
+ - [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.
124
+ - [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.
125
+ - [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.
126
+ - [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.
127
+ - [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.
128
+ - [platform.codex] Role restrictions are prompt-level contracts, not a filesystem sandbox. No documented role-specific Git hook or generic per-agent tool allowlist is assumed. Existing shell capabilities are retained because static read access after shell reduction has not been verified; Coder and QA need shell for approved checks.
129
+ [ARC role policy: contract end]