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