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