@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.
- package/MANIFEST.sha256 +79 -37
- package/claude/agents/arc-coder.md +10 -9
- package/claude/agents/arc-planner.md +13 -12
- package/claude/agents/arc-qa.md +9 -8
- package/claude/agents/arc-reviewer.md +11 -10
- package/claude/agents/arc-scouter.md +10 -9
- package/claude/skill/SKILL.md +13 -294
- package/claude/skill/hooks/role-git-guard.mjs +3 -83
- package/claude/skill/hooks/runtime-gate.mjs +12 -0
- package/claude/skill/models.toml +11 -11
- package/claude/skill/references/commit.md +11 -14
- package/claude/skill/references/coordination.md +148 -0
- package/claude/skill/references/git-recovery.md +1 -1
- package/claude/skill/references/handoff-prep.md +3 -12
- package/claude/skill/references/handoff.md +74 -12
- package/claude/skill/references/limits.md +4 -4
- package/claude/skill/references/planning.md +30 -13
- package/claude/skill/references/verification.md +64 -14
- package/claude/skill/references/visual-companion.md +2 -3
- package/claude/skill/runtime/adapters/claude.mjs +81 -0
- package/claude/skill/runtime/adapters/codex.mjs +63 -0
- package/claude/skill/runtime/capabilities.mjs +32 -0
- package/claude/skill/runtime/evaluate.mjs +103 -0
- package/claude/skill/runtime/gate.mjs +71 -0
- package/claude/skill/runtime/git-evidence.mjs +114 -0
- package/claude/skill/runtime/git-query.mjs +88 -0
- package/claude/skill/runtime/identity.mjs +27 -0
- package/claude/skill/runtime/operations.mjs +6 -0
- package/claude/skill/runtime/role-policy.json +607 -0
- package/claude/skill/runtime/schema.mjs +78 -0
- package/claude/skill/runtime/store.mjs +63 -0
- package/claude/skill/scripts/model_config.py +78 -18
- package/codex/agents/arc-coder.toml +8 -8
- package/codex/agents/arc-planner.toml +9 -9
- package/codex/agents/arc-qa.toml +6 -6
- package/codex/agents/arc-reviewer.toml +7 -7
- package/codex/agents/arc-scouter.toml +6 -6
- package/codex/skill/SKILL.md +13 -278
- package/codex/skill/hooks/runtime-gate.mjs +10 -0
- package/codex/skill/models.toml +11 -11
- package/codex/skill/references/commit.md +12 -14
- package/codex/skill/references/coordination.md +131 -0
- package/codex/skill/references/git-recovery.md +1 -1
- package/codex/skill/references/handoff-prep.md +4 -14
- package/codex/skill/references/handoff-worktree.md +1 -1
- package/codex/skill/references/handoff.md +77 -13
- package/codex/skill/references/limits.md +4 -4
- package/codex/skill/references/planning.md +32 -16
- package/codex/skill/references/verification.md +63 -16
- package/codex/skill/references/visual-companion.md +3 -3
- package/codex/skill/runtime/adapters/claude.mjs +81 -0
- package/codex/skill/runtime/adapters/codex.mjs +63 -0
- package/codex/skill/runtime/capabilities.mjs +32 -0
- package/codex/skill/runtime/evaluate.mjs +103 -0
- package/codex/skill/runtime/gate.mjs +71 -0
- package/codex/skill/runtime/git-evidence.mjs +114 -0
- package/codex/skill/runtime/git-query.mjs +88 -0
- package/codex/skill/runtime/identity.mjs +27 -0
- package/codex/skill/runtime/operations.mjs +6 -0
- package/codex/skill/runtime/role-policy.json +607 -0
- package/codex/skill/runtime/schema.mjs +78 -0
- package/codex/skill/runtime/store.mjs +63 -0
- package/lib/installer/global-config.mjs +1 -2
- package/lib/models/profiles.mjs +41 -4
- package/lib/policy/claude-hook.mjs +57 -17
- package/lib/policy/placement.mjs +25 -0
- package/lib/policy/render.mjs +13 -4
- package/lib/policy/role-policy.json +38 -8
- package/lib/runtime/adapters/claude.mjs +81 -0
- package/lib/runtime/adapters/codex.mjs +63 -0
- package/lib/runtime/capabilities.mjs +32 -0
- package/lib/runtime/evaluate.mjs +103 -0
- package/lib/runtime/gate.mjs +71 -0
- package/lib/runtime/git-evidence.mjs +114 -0
- package/lib/runtime/git-query.mjs +88 -0
- package/lib/runtime/identity.mjs +27 -0
- package/lib/runtime/operations.mjs +6 -0
- package/lib/runtime/schema.mjs +78 -0
- package/lib/runtime/store.mjs +63 -0
- package/package.json +1 -1
- package/scripts/probe-runtime-hooks.mjs +55 -0
- package/scripts/update-runtime-assets.mjs +19 -0
package/claude/skill/SKILL.md
CHANGED
|
@@ -18,8 +18,7 @@ same-task rechecks may reuse.
|
|
|
18
18
|
Follow user instructions and project guidance. Orchestrator uses the current chat model and answers a simple,
|
|
19
19
|
self-contained question (answerable from context or one quick read, no edits) directly.
|
|
20
20
|
For substantive multistep work, Orchestrator coordinates implementation, configuration, tests, and mixed work.
|
|
21
|
-
Assign material
|
|
22
|
-
research/analysis and bounded read-only exploration of static code, documents, data, and logs/reports to Scouter.
|
|
21
|
+
Assign material research/analysis and bounded read-only exploration of static code, documents, data, and logs/reports to Scouter.
|
|
23
22
|
Orchestrator handles research directly when the needed material is already in its context or the check is a quick read
|
|
24
23
|
of a few known
|
|
25
24
|
files; all other material research/analysis and bounded exploration goes to Scouter with its configured settings (a
|
|
@@ -29,85 +28,6 @@ are not standalone document writing (see Role gate).
|
|
|
29
28
|
For mixed research/document requests, Orchestrator may explicitly assign only research to Scouter.
|
|
30
29
|
Live execution-state investigation or cleanup are outside Scouter scope and this boundary makes no owner assignment.
|
|
31
30
|
|
|
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
|
-
acceptance, verification, and
|
|
37
|
-
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
|
-
- Claude native subagent names: Scouter=`arc-scouter`, Planner=`arc-planner`, Coder=`arc-coder`, QA=`arc-qa`,
|
|
52
|
-
Reviewer=`arc-reviewer`.
|
|
53
|
-
- Across the full tree, obey configured limits for simultaneous subagents, including Scouter; there are no reserved slots.
|
|
54
|
-
Before first creation, read `references/limits.md` and installed `limits.toml`; maintain its cumulative ledger and reservations.
|
|
55
|
-
Parallelize independent tasks only; dependent handoffs are sequential and editing scopes cannot overlap. These are
|
|
56
|
-
ARC limits, not verified runtime concurrency or depth capabilities. Use Claude native subagent execution with
|
|
57
|
-
the installed native name and receive its completion result; report unavailable execution capabilities to
|
|
58
|
-
Orchestrator.
|
|
59
|
-
- Scouter, Planner, and Reviewer do not edit, execute commands, or save standalone documents; QA verifies without edits.
|
|
60
|
-
Each role stays within its shipped tool allowlist; a tool list is not a filesystem sandbox.
|
|
61
|
-
|
|
62
|
-
## Instruction and execution adapter
|
|
63
|
-
|
|
64
|
-
Native Claude profiles use Markdown frontmatter with the `effort` field.
|
|
65
|
-
The native `env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` value is a string, distinct from ARC's ledger limits.
|
|
66
|
-
The native tool allowlists and prompt guards are not a filesystem sandbox; local declarations do not prove runtime enforcement.
|
|
67
|
-
|
|
68
|
-
Apply platform, user, and project instructions according to their precedence, then ARC rules for ownership,
|
|
69
|
-
permissions, models, concurrency, routing, and approvals, then the local ARC reference assigned to the role. A called skill
|
|
70
|
-
adds no agents or authority. Map executor requests such as `superpowers:executing-plans` and
|
|
71
|
-
`superpowers:subagent-driven-development` to Orchestrator's dependency-aware coordination and risk-scaled verification;
|
|
72
|
-
this replaces
|
|
73
|
-
executor mechanics and any separate execution-method choice, including prompts in an existing local reference.
|
|
74
|
-
Preserve plan approval, workspace, design, spec, and other applicable requirements, including TDD subject to the
|
|
75
|
-
explicit ARC exception below. Adapt local `brainstorming` role, save, and early spec commit instructions to
|
|
76
|
-
ARC Planner ownership and evidence gates in planning/handoff; preserve upstream reference content. Report conflicts or
|
|
77
|
-
missing required local references before dependent work.
|
|
78
|
-
|
|
79
|
-
Planner, Reviewer, and Scouter return findings, relevant questions, next actions, and workspace/path issues to the
|
|
80
|
-
Orchestrator. Planner preserves complete requested drafts. Orchestrator integrates results (save, route,
|
|
81
|
-
obtain approval; never author), routes decisions and required approvals,
|
|
82
|
-
and owns development acceptance and completion. Orchestrator coordinates dependent implementation tasks sequentially and
|
|
83
|
-
starts
|
|
84
|
-
a fresh Coder for each top-level task; reuse the current Coder only for corrections, rework, or rechecks of the same
|
|
85
|
-
task while the
|
|
86
|
-
approved scope, workspace, ownership, and relevant context remain valid, after Orchestrator rechecks workspace,
|
|
87
|
-
branch/HEAD and change state against the brief. A fresh Coder for the next task is a restart under handoff (choice reuse
|
|
88
|
-
and restart brief rules are there). After an approved plan or acceptance-criteria amendment, start a fresh Coder for
|
|
89
|
-
the remaining work even within the same task. Do not add per-task QA or
|
|
90
|
-
review gates solely because a task boundary exists; apply risk requirements and specific approved obligations. If the
|
|
91
|
-
next task depends on a still-unverified risky contract, complete applicable QA at that dependency boundary and
|
|
92
|
-
resolve or explicitly disposition findings before dependent implementation. This does not create a gate for every task.
|
|
93
|
-
|
|
94
|
-
## Dependency analysis and parallel dispatch
|
|
95
|
-
|
|
96
|
-
Before the first Coder assignment for an approved plan, Orchestrator records its dependency/readiness map and
|
|
97
|
-
initial ready batch under [planning](references/planning.md), which owns record fields and readiness conditions.
|
|
98
|
-
File separation alone never proves independence. Pass the full approval/preparation and handoff gates for every
|
|
99
|
-
assignment; unresolved dependencies, shared contracts, or ownership conflicts hold affected work.
|
|
100
|
-
Start all ready independent tasks concurrently with fresh Coders within capacity under [limits](references/limits.md)
|
|
101
|
-
and any lower actual runtime limit; record capacity and serialization reasons. Same-file concurrent Coder edits are
|
|
102
|
-
prohibited, even on different lines. ARC's cap is not a claim of runtime capability.
|
|
103
|
-
|
|
104
|
-
Reassess readiness after completion reports, new check evidence, acceptance, commit, slot return, or a new conflict.
|
|
105
|
-
Coder completion alone does not release dependents: require predecessor checks, Orchestrator acceptance and verified
|
|
106
|
-
focused commit, or accepted no-change evidence under [commit](references/commit.md). Start newly ready tasks without
|
|
107
|
-
waiting for unrelated batch members; failures hold affected dependents while unaffected ready work may continue.
|
|
108
|
-
Preserve risk-scaled QA/Reviewer timing and execution-target restrictions. Shared-checkout Git coordination belongs to
|
|
109
|
-
commit.md; refresh assignment evidence under [handoff](references/handoff.md).
|
|
110
|
-
|
|
111
31
|
## Shared terms
|
|
112
32
|
|
|
113
33
|
The handoff, git-recovery, and commit references and the Coder profile use these terms; context-specific commands,
|
|
@@ -136,235 +56,34 @@ Do not load all references on every task.
|
|
|
136
56
|
|
|
137
57
|
| Reference | Required before |
|
|
138
58
|
|---|---|
|
|
139
|
-
| [
|
|
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 |
|
|
140
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 |
|
|
141
63
|
| [handoff-prep](references/handoff-prep.md) | Execution-target choice request, each preparation Git mutation (branch creation/switch, staging, commit) |
|
|
142
64
|
| [commit](references/commit.md) | Plan-task acceptance and its focused commit, resuming a task with an unclear commit result |
|
|
143
|
-
| [verification](references/verification.md) | Orchestrator's verification design, QA/Reviewer assignment, correction rechecks, UI acceptance checks;
|
|
65
|
+
| [verification](references/verification.md) | Orchestrator's verification design, QA/Reviewer assignment, correction rechecks, UI acceptance checks, risk classification, acceptance and completion; QA and Reviewer use their profiles and only brief-cited sections |
|
|
144
66
|
| [git-recovery](references/git-recovery.md) | Branch collision, Git preparation failure, partial completion, metadata write denial recovery |
|
|
145
67
|
| [visual-companion](references/visual-companion.md) | Visual companion offer or operation |
|
|
146
68
|
|
|
147
|
-
|
|
148
|
-
(Role gate);
|
|
149
|
-
Orchestrator integrates complete drafts and obtains applicable approvals. Architectural specs and Bounded written specs
|
|
150
|
-
required by Orchestrator's recorded plan-depth judgment use planning save gates; a required plan alone does not require
|
|
151
|
-
a spec. Obtain explicit execution-target choice and verify actual target preparation before formal drafting
|
|
152
|
-
and saving. Complete all current-scope individual document approvals before the batch docs commit. A missing required skill blocks its stage.
|
|
69
|
+
Before classifying a small-task, plan-omission, or TDD exception, read the full conditions in [handoff](references/handoff.md), including Coder TDD and constraints and Orchestrator direct path for small tasks; read [planning](references/planning.md) for design/plan-depth judgments and [verification](references/verification.md) for the full risk criteria before deciding eligibility. An exception name or this index alone never establishes eligibility.
|
|
153
70
|
|
|
154
|
-
##
|
|
155
|
-
|
|
156
|
-
Before every Coder first start/restart, Orchestrator passes the full gate in
|
|
157
|
-
[handoff](references/handoff.md): applicable approvals/artifacts or valid omissions, explicit execution-target choice
|
|
158
|
-
or verified reuse, intended accessible repository/workspace, actual Git identity/state, preservation/ownership,
|
|
159
|
-
verified document commits or valid absence, and no unresolved failure/partial completion.
|
|
160
|
-
Missing evidence, mismatches, unclear ownership or unresolved preparation block handoff and require Orchestrator
|
|
161
|
-
resolution and full revalidation. Handoff owns the evidence fields, canonical handoff record, restart brief, choice lifetime
|
|
162
|
-
and reuse. Coder trusts the Orchestrator-verified brief and reports actual conflicts under its self-contained profile;
|
|
163
|
-
never replace its local guards with a requirement to load Orchestrator procedures.
|
|
164
|
-
Depth-2 roles use the supplied workspace and report path/state conflicts; they cannot create/switch workspaces or
|
|
165
|
-
branches. The same conditions apply before a Orchestrator direct edit.
|
|
166
|
-
Claude v1 supports the current checkout only; obtain the explicit current-branch or task-branch choice and complete
|
|
167
|
-
approved document preparation under [handoff-prep](references/handoff-prep.md).
|
|
168
|
-
ARC-managed worktree execution is unsupported; report an isolated worktree request before dependent work.
|
|
169
|
-
|
|
170
|
-
## Coder TDD and constraints
|
|
71
|
+
## Ownership
|
|
171
72
|
|
|
172
|
-
|
|
173
|
-
ARC exception applies; the Coder profile holds Coder's full TDD rules. TDD is waived only when every small,
|
|
174
|
-
low-risk criterion (Risk-scaled execution) and every plan-skip criterion (Orchestrator direct path) holds.
|
|
175
|
-
Before Coder starts,
|
|
176
|
-
Orchestrator records the scope, why every criterion is met, acceptance criteria, and focused verification in the brief.
|
|
177
|
-
An explicit user or task-specific TDD request overrides
|
|
178
|
-
this waiver. For qualifying tasks only, this exception takes precedence over the generic trigger in the local reference;
|
|
179
|
-
do not change that skill. Ordinary multi-step or significant/high-risk work is not eligible. The waiver skips only
|
|
180
|
-
RED-GREEN steps; focused checks and risk-appropriate QA/Reviewer remain, and do not claim TDD was followed.
|
|
181
|
-
If a constraint blocks a required TDD step, Orchestrator records the
|
|
182
|
-
decision in the brief/plan and obtains any required human approval; internal approval is not a substitute.
|
|
183
|
-
Non-behavior documentation/configuration uses only a specifically authorized exception recorded in the brief; do not
|
|
184
|
-
generalize it to behavior work.
|
|
73
|
+
Read [coordination](references/coordination.md#ownership) before assigning roles. Only Orchestrator accepts work; specialists report directly at depth 2 and cannot delegate.
|
|
185
74
|
|
|
186
75
|
## Risk-scaled execution
|
|
187
76
|
|
|
188
|
-
|
|
189
|
-
behavior, risk,
|
|
190
|
-
and smallest meaningful verification.
|
|
191
|
-
|
|
192
|
-
| Risk | Minimum flow |
|
|
193
|
-
|---|---|
|
|
194
|
-
| Small, low risk | Coder, or Orchestrator direct path → Orchestrator's focused checks → acceptance |
|
|
195
|
-
| Ordinary behavior | Coder → independent QA → acceptance |
|
|
196
|
-
| 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 |
|
|
197
|
-
|
|
198
|
-
Ordinary and significant plan tasks need a FRESH QA before acceptance; only small, low-risk tasks may be accepted on
|
|
199
|
-
Orchestrator focused checks. Small, low risk means narrow, understood, readily reversible, and verifiable by focused
|
|
200
|
-
checks. Ordinary behavior
|
|
201
|
-
fails those conditions without a significant-risk trigger. Significant risk includes shared role/behavior contracts,
|
|
202
|
-
shared state, lifecycle/integration order, security/permissions, data loss/migration, public interfaces, or costly
|
|
203
|
-
installation/deployment/rollback. Substantial behavior or contract changes are significant regardless of file count.
|
|
204
|
-
Unclear risk requires
|
|
205
|
-
investigation or the higher flow. Environment failure does not waive checks or determine design depth.
|
|
206
|
-
|
|
207
|
-
Do not add per-task gates automatically. Reviewer is never a plan-task acceptance prerequisite; for significant work
|
|
208
|
-
with a
|
|
209
|
-
plan, it reviews the final full change once after all plan tasks are accepted with their risk-scaled checks,
|
|
210
|
-
following the last plan task's required checks and any QA recheck at the final relevant state; significant work without
|
|
211
|
-
a plan
|
|
212
|
-
keeps Reviewer after QA before acceptance. Preserve specific approved obligations and complete risky dependency checks
|
|
213
|
-
before dependent implementation. Reuse evidence only when scope, relevant state, independence, freshness, and flow
|
|
214
|
-
position satisfy each covered requirement; changes, failures, or missing/conflicting evidence invalidate affected reuse.
|
|
215
|
-
QA checks independently without edits; Reviewer independently reads the final full change after QA for significant
|
|
216
|
-
work, without QA, planning, edits, delegation, or completion decisions. Orchestrator routes fixes to Coder,
|
|
217
|
-
obtains affected QA rechecks outside the final plan Reviewer correction exception and required final review, and accepts after findings/evidence gaps are resolved or
|
|
218
|
-
explicitly dispositioned.
|
|
219
|
-
|
|
220
|
-
Criterion verdicts follow the Evidence verdict.
|
|
221
|
-
|
|
222
|
-
### Final plan Reviewer correction loop
|
|
77
|
+
Read [verification](references/verification.md#risk-scaled-execution) before risk classification, verification design, assignment or acceptance. It holds the risk table, risk definitions, evidence-reuse rule and role order.
|
|
223
78
|
|
|
224
|
-
|
|
225
|
-
Coder → Reviewer recheck with no QA reassignment. Repeat corrections and Reviewer rechecks until findings are resolved;
|
|
226
|
-
the initial single full review does not prohibit necessary rechecks. Before the initial final overall Reviewer,
|
|
227
|
-
risk-required checks and QA execution failures or unmet criteria still require Coder correction → QA recheck.
|
|
228
|
-
This exception applies only to findings from the final overall Reviewer of work with a plan.
|
|
229
|
-
Work without a plan retains its existing verification flow. Scope expansion, separate mandatory obligations,
|
|
230
|
-
or unresolved evidence gaps hold affected work for Orchestrator to resolve and obtain required approvals.
|
|
231
|
-
Orchestrator assigns corrections/rechecks and decides acceptance. Reviewer remains read-only, must not run QA
|
|
232
|
-
checks or decide acceptance. Previous QA evidence must not be presented as post-fix execution evidence;
|
|
233
|
-
report only checks actually performed, their actor, target state, results and remaining limits.
|
|
234
|
-
|
|
235
|
-
Read verification for evidence fields, failure/finding flow, UI permissions, cleanup and acceptance reporting.
|
|
236
|
-
|
|
237
|
-
Authorization evidence and probe/combined scope are owned by [planning](references/planning.md#authorization-and-scope);
|
|
238
|
-
valid reuse and actual-state refresh by [handoff](references/handoff.md#authorization-continuity).
|
|
239
|
-
After gates hold, continue approved no-doc scope through required checks and Orchestrator acceptance under
|
|
240
|
-
[verification](references/verification.md#completion-continuity); a role report alone does not complete the work.
|
|
241
|
-
|
|
242
|
-
## Orchestrator direct path for small tasks
|
|
243
|
-
|
|
244
|
-
Orchestrator may edit directly only when every small, low-risk criterion (Risk-scaled execution) holds.
|
|
245
|
-
Every plan-skip criterion must also hold: one local change, no dependent stages, no cross-component shared state,
|
|
246
|
-
lifecycle, or integration-order concerns, and one focused verification path. Significant, architectural,
|
|
247
|
-
ordinary-behavior, unclear-risk work and edits overlapping a running Coder's assigned files are ineligible.
|
|
248
|
-
|
|
249
|
-
Significant risk is defined in Risk-scaled execution and excludes work from the Orchestrator direct path;
|
|
250
|
-
do not infer eligibility from a small file count.
|
|
251
|
-
|
|
252
|
-
Before editing, Orchestrator records a scope record (not a brainstorming design) with scope and files,
|
|
253
|
-
why every criterion holds, acceptance criteria, and focused verification. Apply authorization in
|
|
254
|
-
[planning](references/planning.md#authorization-and-scope): an existing sufficiently specific user request can approve
|
|
255
|
-
that scope; no duplicate approval is needed. Otherwise present the scope record to the user and obtain explicit
|
|
256
|
-
approval before editing. Silence, an ambiguous response, or approval of other work is not approval.
|
|
257
|
-
Orchestrator then verifies the same handoff gate as a Coder first start: explicit execution-target choice or valid
|
|
258
|
-
reuse, accessible intended workspace and repository, branch or detached HEAD, HEAD, staged/unstaged/untracked state,
|
|
259
|
-
preservation and ownership, and no unresolved failure or partial completion. Read the [handoff](references/handoff.md)
|
|
260
|
-
and [handoff preparation](references/handoff-prep.md) references before checking this gate.
|
|
261
|
-
|
|
262
|
-
Orchestrator edits only the approved files, preserves others' edits, and makes surgical changes without unrelated
|
|
263
|
-
refactoring or unapproved dependencies. Behavior edits follow the Coder TDD rules and applicable recorded waiver
|
|
264
|
-
criteria; an explicit user or task-specific TDD request still requires test-driven-development.
|
|
265
|
-
Do not claim TDD under a waiver. After editing, Orchestrator records changed files, runs focused checks,
|
|
266
|
-
connects each acceptance criterion to evidence, and reports unverified scope. Orchestrator is not an independent
|
|
267
|
-
reviewer of its own edits; assign QA when evidence is incomplete. If scope expands, risk becomes unclear,
|
|
268
|
-
or any criterion fails, stop editing, record completed changes, and return subsequent edits to the normal Planner/Coder
|
|
269
|
-
flow. A failed focused check or a QA finding routes the correction to Coder, and it is rechecked; Orchestrator does not
|
|
270
|
-
self-correct.
|
|
271
|
-
|
|
272
|
-
Like other plan-skip
|
|
273
|
-
paths, there is no automatic task commit; commits follow applicable guidance and user requests.
|
|
274
|
-
|
|
275
|
-
## Automatic commit after plan-task acceptance
|
|
276
|
-
|
|
277
|
-
Orchestrator accepts each approved top-level task by its own judgment and immediately creates one focused local commit
|
|
278
|
-
for that
|
|
279
|
-
task without additional user commit approval. Read [commit](references/commit.md) before the acceptance and commit.
|
|
280
|
-
Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
|
|
281
|
-
|
|
282
|
-
## Token discipline and handoffs
|
|
283
|
-
|
|
284
|
-
- Only Orchestrator invokes Claude native subagents or assigns specialist tasks. Give each invocation a descriptive role
|
|
285
|
-
and bounded objective; the installed native profile determines its role and local model declarations.
|
|
286
|
-
|
|
287
|
-
- Keep one shared brief with fixed field order: Goal; Criteria (IDs); Exact scope/ownership (absolute workspace,
|
|
288
|
-
branch or detached HEAD and HEAD, handoff record path, when one exists, files);
|
|
289
|
-
Constraints/decisions; Evidence (paths/lines, commands, artifact links); Prior findings; Exact next objective (one
|
|
290
|
-
bounded objective); Return format (conclusion, evidence locations, unresolved points, next step).
|
|
291
|
-
On follow-ups send only changed fields and mark the rest `unchanged` (relative to a brief the recipient received);
|
|
292
|
-
restart briefs follow handoff; a fresh specialist gets every other field in full. Send only the
|
|
293
|
-
self-contained subset needed by the next role and links to accessible artifacts; omit full history, repeated
|
|
294
|
-
instructions, and raw logs. No findings may be brief; requested deliverables such as complete plan drafts remain
|
|
295
|
-
complete. Cite paths/lines/pages/commands/links instead of logs; investigate gaps only.
|
|
296
|
-
- `AskUserQuestion` questions use only `question`, a `header` of at most 12 characters, 2-4 `options` each with `label`
|
|
297
|
-
and `description`, and `multiSelect`.
|
|
298
|
-
- Always start an ARC role by its installed native name (`arc-*`) with only the supplied scoped brief;
|
|
299
|
-
never use a context-inheriting fork (such as the `fork` subagent type) for an ARC role; do not claim fresh context
|
|
300
|
-
isolation without evidence. Reuse an existing specialist for related follow-up with only changed facts/objective when
|
|
301
|
-
its context
|
|
302
|
-
remains relevant; start fresh for unrelated or bloated context. Coder and QA freshness follow the Role gate.
|
|
303
|
-
- Cite in the brief the absolute path of each required local ARC reference's SKILL.md (`test-driven-development` for Coder,
|
|
304
|
-
`brainstorming`/`writing-plans` for Planner); the role Reads it before dependent work.
|
|
305
|
-
- For Reviewer, Orchestrator writes the final base..HEAD diff plus changed-file list to
|
|
306
|
-
`<git-common-dir>/arc/review/<slug>.diff` (same slug as the handoff record; base is the approved base HEAD recorded at
|
|
307
|
-
handoff; inline when small or write denied) and cites its absolute path in the brief; Reviewer reads it and states
|
|
308
|
-
limits. See verification.
|
|
309
|
-
- In Coder briefs, cite the plan/spec path with the task section's line range and include only the needed excerpts,
|
|
310
|
-
acceptance criteria, and constraints; do not ask Coder to read whole plans or specs.
|
|
311
|
-
- Before optional calls, name the unresolved question and expected artifact; skip calls already resolved by available
|
|
312
|
-
evidence/direct inspection.
|
|
313
|
-
- Run each ARC role as a foreground Agent call and use its returned result, or run it in the background and wait for the
|
|
314
|
-
completion notification; report unavailable execution to Orchestrator rather than inventing an API.
|
|
315
|
-
Do not poll status in loops; never sleep-poll. A timeout or delay is not a reason to poll or check status in between.
|
|
316
|
-
Send one complete brief per objective and batch related corrections. For long Bash commands set a sufficient `timeout`
|
|
317
|
-
or use `run_in_background` and wait for its completion notification.
|
|
318
|
-
|
|
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
|
-
### Local superpowers references
|
|
331
|
-
|
|
332
|
-
Orchestrator briefs absolute paths under the selected installed ARC directory: Planner reads
|
|
333
|
-
`references/superpowers/brainstorming/SKILL.md` and `references/superpowers/writing-plans/SKILL.md`;
|
|
334
|
-
Coder reads `references/superpowers/test-driven-development/SKILL.md`, including required relative references.
|
|
335
|
-
Resolve paths within each skill directory. Runtime needs no global discovery, external Skill invocation, or automatic download.
|
|
336
|
-
Missing/damaged local files stop dependent work: report exact paths to Orchestrator, without global fallback.
|
|
337
|
-
ARC approval, ownership, TDD exceptions and executor adapters still apply.
|
|
338
|
-
|
|
339
|
-
## Models
|
|
340
|
-
|
|
341
|
-
`models.toml` beside this skill is the source of truth for role model and reasoning-effort settings.
|
|
342
|
-
Configuration keys `arc_scouter`, `arc_planner`, `arc_coder`, `arc_qa`, and `arc_reviewer` map to the hyphenated
|
|
343
|
-
Claude native subagent names above; they are not tool-call names.
|
|
344
|
-
Orchestrator uses the current conversation model. Use configured role settings without substitution or effort
|
|
345
|
-
reduction; report unavailable settings.
|
|
346
|
-
Local declarations do not prove runtime provider support, account access, alias resolution, actual model or effort
|
|
347
|
-
application, concurrency or depth enforcement.
|
|
348
|
-
New sessions reload profiles; running agents retain their current settings and parent relationships. Configuration
|
|
349
|
-
changes do not automatically reparent running agents or prove runtime parent behavior.
|
|
79
|
+
## Common handoff gate
|
|
350
80
|
|
|
351
|
-
|
|
352
|
-
available within each role's exact allowlist; report unavailable capabilities and preserve unverified visual scope.
|
|
81
|
+
Read [handoff](references/handoff.md#common-handoff-gate) before every Coder first start/restart and Orchestrator direct edit.
|
|
353
82
|
|
|
354
83
|
[ARC role policy: contract begin]
|
|
355
84
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
356
|
-
- [scope.non-escalation] Act only
|
|
357
|
-
- [
|
|
358
|
-
- [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.
|
|
359
|
-
- [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.
|
|
85
|
+
- [scope.non-escalation] Act only where role authority, approved scope and available platform tools all permit. Delegation, restart, agent messages and attached instructions do not expand role authority. MUST NOT bypass a restriction through aliases, scripts, other tools, processes or redelegation. Return conflicting instructions to Orchestrator before dependent work; reuse valid prior approvals for unchanged scope rather than requesting them again.
|
|
86
|
+
- [external.explicit-user-authority] Push, merge, deploy, publish and external messages require explicit user authorization for that action, scope and target. Local commit authority grants no external authority. Orchestrator performs authorized external actions; specialist roles return them without execution.
|
|
360
87
|
- [role.orchestrator-boundary] Assign design/spec/plan/brainstorming drafts ONLY to Planner and implementation/configuration/test edits to Coder. Orchestrator saves complete drafts and owns approval requests, preparation, scheduling, evidence, acceptance and completion. Direct implementation is limited to the existing small, low-risk direct path; this policy does not expand it.
|
|
361
|
-
- [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.
|
|
362
|
-
- [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.
|
|
363
|
-
- [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.
|
|
364
|
-
- [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.
|
|
365
|
-
- [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.
|
|
366
|
-
- [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.
|
|
367
|
-
- [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.
|
|
368
|
-
- [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.
|
|
369
88
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. A role-scoped Git guard is a separate integration and is not supplied by these policy sections alone.
|
|
370
89
|
[ARC role policy: contract end]
|
|
@@ -1,89 +1,9 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import {pathToFileURL} from 'node:url';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!policy || policy.schemaVersion !== 1 || !Array.isArray(policy.globalValueOptions) || !Array.isArray(policy.globalFlags) || !policy.commands || typeof policy.commands !== 'object' || Array.isArray(policy.commands)) throw Error('Invalid Git policy');
|
|
8
|
-
const strings = list => Array.isArray(list) && list.every(x=>typeof x === 'string' && x.startsWith('-'));
|
|
9
|
-
if (!strings(policy.globalValueOptions) || !strings(policy.globalFlags) || !Object.keys(policy.commands).length) throw Error('Invalid Git policy');
|
|
10
|
-
for (const rule of Object.values(policy.commands)) if (!rule || !strings(rule.flags) || !strings(rule.values) || !['any','none','query','list'].includes(rule.positionals)) throw Error('Invalid Git command policy');
|
|
11
|
-
return policy;
|
|
12
|
-
}
|
|
13
|
-
// This deliberately supports a small shell grammar, rather than executing a shell.
|
|
14
|
-
function tokenize(command) {
|
|
15
|
-
const tokens=[]; let word='', started=false, quote=null;
|
|
16
|
-
for(let i=0;i<command.length;i++) {
|
|
17
|
-
const char=command[i];
|
|
18
|
-
if(char==='\\' && /[\r\n]/.test(command[i+1]??'')) throw Error('Escaped line terminator');
|
|
19
|
-
if(quote) {
|
|
20
|
-
if(char===quote){quote=null;continue;}
|
|
21
|
-
if(quote==='"' && /[$`]/.test(char)) throw Error('Dynamic shell syntax');
|
|
22
|
-
// Preserve Windows paths in quoted executable names.
|
|
23
|
-
if(char==='\\' && quote==='"' && /["\\$`]/.test(command[i+1]??'')){word+=command[++i];continue;}
|
|
24
|
-
word+=char;continue;
|
|
25
|
-
}
|
|
26
|
-
if(char==='"'||char==="'"){quote=char;started=true;continue;}
|
|
27
|
-
if(/[\r\n\x00<>`$(){}&]/.test(char) && !(char==='&'&&command[i+1]==='&')) throw Error('Unsupported shell syntax');
|
|
28
|
-
if(char===';'||char==='|'||char==='&') {
|
|
29
|
-
if(started){tokens.push(word);word='';started=false;}
|
|
30
|
-
const operator=command.slice(i,i+2); if(operator==='&&'||operator==='||')i++;
|
|
31
|
-
tokens.push({operator:operator==='&&'||operator==='||'?operator:char});continue;
|
|
32
|
-
}
|
|
33
|
-
if(/\s/.test(char)){if(started){tokens.push(word);word='';started=false;}continue;}
|
|
34
|
-
if(char==='\\') {if(i+1>=command.length)throw Error('Incomplete escape'); word+=command[++i];started=true;continue;}
|
|
35
|
-
if(char==='#')throw Error('Unsupported shell comment');
|
|
36
|
-
word+=char;started=true;
|
|
37
|
-
}
|
|
38
|
-
if(quote)throw Error('Unclosed quote'); if(started)tokens.push(word);return tokens;
|
|
39
|
-
}
|
|
40
|
-
function classifyWords(words,policy,depth) {
|
|
41
|
-
if(!words.length)return deny('Empty shell segment');
|
|
42
|
-
const executable=words[0].split(/[\\/]/).at(-1).toLowerCase();
|
|
43
|
-
if(['sh','bash','sh.exe','bash.exe'].includes(executable)) {
|
|
44
|
-
if(depth>=4 || words.length!==3 || words[1]!=='-c')return deny('Unsupported shell wrapper');
|
|
45
|
-
return classifyGitCommand(words[2],policy,depth+1);
|
|
46
|
-
}
|
|
47
|
-
if(!isGit(words[0]))return words.some(isGit)?deny('Unsupported indirect Git invocation'):{allowed:true};
|
|
48
|
-
let i=1;
|
|
49
|
-
while(i<words.length && words[i].startsWith('-')) {
|
|
50
|
-
const option=words[i++],equal=option.indexOf('='),key=equal<0?option:option.slice(0,equal);
|
|
51
|
-
if(policy.globalFlags.includes(option))continue;
|
|
52
|
-
if(!policy.globalValueOptions.includes(key))return deny('Unknown Git global option');
|
|
53
|
-
if(equal<0 && (i>=words.length || words[i++].startsWith('-')))return deny('Missing Git option value');
|
|
54
|
-
if(equal>=0 && !option.slice(equal+1))return deny('Missing Git option value');
|
|
55
|
-
}
|
|
56
|
-
const combined=`${words[i]} ${words[i+1]}`;
|
|
57
|
-
const name=Object.hasOwn(policy.commands,combined)?(i+=2,combined):words[i++];
|
|
58
|
-
const rule=Object.hasOwn(policy.commands,name)?policy.commands[name]:null; if(!rule)return deny('Git mutation or unknown subcommand');
|
|
59
|
-
let positions=0,query=false,list=false,paths=false;
|
|
60
|
-
for(;i<words.length;i++) {
|
|
61
|
-
const arg=words[i];
|
|
62
|
-
if(arg==='--' && rule.positionals==='any'){paths=true;continue;}
|
|
63
|
-
if(!paths && arg.startsWith('-')) {
|
|
64
|
-
if(/^-[0-9]+$/.test(arg)&&rule.flags.includes('-<count>'))continue;
|
|
65
|
-
const equal=arg.indexOf('='),key=equal<0?arg:arg.slice(0,equal);
|
|
66
|
-
if(rule.values.includes(key)) {if(equal<0 && (i+1>=words.length||words[++i].startsWith('-')))return deny('Missing query option value'); if(equal>=0&&!arg.slice(equal+1))return deny('Missing query option value');continue;}
|
|
67
|
-
if(!rule.flags.includes(arg))return deny('Unknown or mutating Git option');
|
|
68
|
-
if(['--get','--get-all','--get-regexp','--list','-l'].includes(arg))query=true;
|
|
69
|
-
if(['--list','-l','--show-current'].includes(arg))list=true;
|
|
70
|
-
} else positions++;
|
|
71
|
-
}
|
|
72
|
-
if(rule.positionals==='none'&&positions || rule.positionals==='query'&&(!query||positions>1) || rule.positionals==='list'&&positions&&!list)return deny('Git write or unsupported arguments');
|
|
73
|
-
return {allowed:true};
|
|
74
|
-
}
|
|
75
|
-
export function classifyGitCommand(command,policy,depth=0) {
|
|
76
|
-
try {
|
|
77
|
-
validateGitPolicy(policy);
|
|
78
|
-
if(typeof command!=='string'||!command.trim())return deny('Missing shell command');
|
|
79
|
-
const tokens=tokenize(command); let words=[];
|
|
80
|
-
for(const token of [...tokens,{operator:'end'}]) {
|
|
81
|
-
if(typeof token==='string'){words.push(token);continue;}
|
|
82
|
-
const result=classifyWords(words,policy,depth);if(!result.allowed)return result;words=[];
|
|
83
|
-
}
|
|
84
|
-
return {allowed:true};
|
|
85
|
-
} catch {return deny('Invalid policy or unsupported command syntax');}
|
|
86
|
-
}
|
|
4
|
+
import {validateGitPolicy,classifyGitCommand} from '../runtime/git-query.mjs';
|
|
5
|
+
export {validateGitPolicy,classifyGitCommand};
|
|
6
|
+
const deny=reason=>({allowed:false,reason});
|
|
87
7
|
export function evaluateHookEvent(event,policy) {
|
|
88
8
|
const result=event?.hook_event_name!=='PreToolUse' ? deny('Invalid hook event') : event?.tool_name!=='Bash' ? deny('Missing Bash event') : classifyGitCommand(event?.tool_input?.command,policy);
|
|
89
9
|
return result.allowed?{}:{hookSpecificOutput:{hookEventName:'PreToolUse',permissionDecision:'deny',permissionDecisionReason:`ARC specialist Git guard: ${result.reason}. Return the operation to Orchestrator.`}};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {runClaudeGate,renderClaudeDecision} from '../runtime/adapters/claude.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 runClaudeGate(JSON.parse(input),context);}catch{return renderClaudeDecision({decision:'deny',reason:'Malformed runtime hook event'});}
|
|
6
|
+
}
|
|
7
|
+
export async function runHook(){
|
|
8
|
+
let input='';for await(const chunk of process.stdin)input+=chunk;
|
|
9
|
+
process.stdout.write(JSON.stringify(await main(input))+'\n');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if(process.argv[1]&&import.meta.url===new URL(process.argv[1], 'file:').href)await runHook();
|
package/claude/skill/models.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Use configured 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 = "haiku"
|
|
|
8
8
|
effort = "high"
|
|
9
9
|
|
|
10
10
|
[roles.arc_scouter.balanced]
|
|
11
|
-
model = "
|
|
12
|
-
effort = "
|
|
11
|
+
model = "haiku"
|
|
12
|
+
effort = "high"
|
|
13
13
|
|
|
14
14
|
[roles.arc_scouter.smart]
|
|
15
|
-
model = "
|
|
16
|
-
effort = "
|
|
15
|
+
model = "haiku"
|
|
16
|
+
effort = "max"
|
|
17
17
|
|
|
18
18
|
[roles.arc_planner.economy]
|
|
19
19
|
model = "sonnet"
|
|
@@ -29,11 +29,11 @@ effort = "high"
|
|
|
29
29
|
|
|
30
30
|
[roles.arc_coder.economy]
|
|
31
31
|
model = "sonnet"
|
|
32
|
-
effort = "
|
|
32
|
+
effort = "medium"
|
|
33
33
|
|
|
34
34
|
[roles.arc_coder.balanced]
|
|
35
35
|
model = "sonnet"
|
|
36
|
-
effort = "
|
|
36
|
+
effort = "high"
|
|
37
37
|
|
|
38
38
|
[roles.arc_coder.smart]
|
|
39
39
|
model = "opus"
|
|
@@ -44,12 +44,12 @@ model = "haiku"
|
|
|
44
44
|
effort = "high"
|
|
45
45
|
|
|
46
46
|
[roles.arc_qa.balanced]
|
|
47
|
-
model = "
|
|
48
|
-
effort = "
|
|
47
|
+
model = "haiku"
|
|
48
|
+
effort = "max"
|
|
49
49
|
|
|
50
50
|
[roles.arc_qa.smart]
|
|
51
51
|
model = "sonnet"
|
|
52
|
-
effort = "
|
|
52
|
+
effort = "medium"
|
|
53
53
|
|
|
54
54
|
[roles.arc_reviewer.economy]
|
|
55
55
|
model = "sonnet"
|
|
@@ -14,8 +14,7 @@ Planning documents have their own batch docs commit before Coder handoff.
|
|
|
14
14
|
|
|
15
15
|
After commit, verify exact SHA, subject, included paths, branch/HEAD and remaining index/worktree state.
|
|
16
16
|
Preserve unrelated changes; never automatically unstage, amend, reset, clean, stash, or delete branches.
|
|
17
|
-
On failure stop dependent work and report actual state and completed steps.
|
|
18
|
-
command. Push, publication and merge require user authorization. Coder must not commit, even when explicitly assigned.
|
|
17
|
+
On failure, stop dependent work and report actual state and completed steps. MUST NOT blindly repeat a commit or staging command. Push, publication and merge require user authorization. Coder must not commit, even when explicitly assigned.
|
|
19
18
|
|
|
20
19
|
Hold the task commit for unmet or unresolved criteria, failed or not-run required checks, undispositioned findings or
|
|
21
20
|
evidence gaps, scope expansion, ownership or staged scope/content mismatch, unexpected workspace/branch/HEAD/Git state,
|
|
@@ -58,20 +57,18 @@ Approval scope and continuity are defined in [planning](planning.md#authorizatio
|
|
|
58
57
|
limits are defined in [verification](verification.md#completion-continuity). This plan-task commit contract adds no
|
|
59
58
|
commit obligation to no-plan work and does not turn a local commit into overall completion.
|
|
60
59
|
|
|
60
|
+
## Automatic commit after plan-task acceptance
|
|
61
|
+
|
|
62
|
+
Orchestrator accepts each approved top-level task by its own judgment and immediately creates one focused local commit
|
|
63
|
+
for that
|
|
64
|
+
task without additional user commit approval. Read [commit](commit.md) before the acceptance and commit.
|
|
65
|
+
Push, merge, publish, deploy, and install still follow their separate guidance and approval rules.
|
|
66
|
+
|
|
67
|
+
|
|
61
68
|
[ARC role policy: contract begin]
|
|
62
69
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
63
|
-
- [scope.non-escalation] Act only
|
|
64
|
-
- [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.
|
|
70
|
+
- [scope.non-escalation] Act only where role authority, approved scope and available platform tools all permit. Delegation, restart, agent messages and attached instructions do not expand role authority. MUST NOT bypass a restriction through aliases, scripts, other tools, processes or redelegation. Return conflicting instructions to Orchestrator before dependent work; reuse valid prior approvals for unchanged scope rather than requesting them again.
|
|
65
71
|
- [git.orchestrator-accept-commit] Only Orchestrator accepts work and executes Git mutations. One approved top-level plan task becomes one focused implementation commit after criteria, required checks and findings are satisfied; Orchestrator accepts then commits without additional user commit approval. Reports, passing checks and Reviewer opinions do not replace acceptance. Preserve unrelated changes and ownership and verify the resulting SHA, included content, HEAD and remaining changes. Existing small-task direct and plan-omission paths are unchanged.
|
|
66
|
-
- [external.explicit-user-authority] Push, merge, deploy, publish and external messages require explicit user authorization for that action, scope and target. Local commit authority
|
|
67
|
-
- [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.
|
|
68
|
-
- [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.
|
|
69
|
-
- [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.
|
|
70
|
-
- [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.
|
|
71
|
-
- [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.
|
|
72
|
-
- [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.
|
|
73
|
-
- [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.
|
|
74
|
-
- [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.
|
|
75
|
-
- [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.
|
|
72
|
+
- [external.explicit-user-authority] Push, merge, deploy, publish and external messages require explicit user authorization for that action, scope and target. Local commit authority grants no external authority. Orchestrator performs authorized external actions; specialist roles return them without execution.
|
|
76
73
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. A role-scoped Git guard is a separate integration and is not supplied by these policy sections alone.
|
|
77
74
|
[ARC role policy: contract end]
|