@yunhozz/arc 0.5.6 → 0.6.0
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 +124 -110
- package/README.md +37 -113
- package/claude/agents/arc-architect.md +44 -0
- package/claude/agents/arc-implementer.md +2 -2
- package/claude/agents/arc-planner.md +5 -5
- package/claude/agents/arc-reviewer.md +1 -1
- package/claude/agents/arc-scouter.md +1 -1
- package/claude/agents/arc-tester.md +1 -1
- package/claude/skill/SKILL.md +6 -6
- package/claude/skill/models.toml +5 -1
- package/claude/skill/references/arc-visual-companion.md +2 -21
- package/claude/skill/references/commit.md +5 -32
- package/claude/skill/references/coordination.md +29 -134
- package/claude/skill/references/git-recovery.md +3 -3
- package/claude/skill/references/handoff-prep.md +9 -24
- package/claude/skill/references/handoff.md +19 -108
- package/claude/skill/references/limits.md +4 -15
- package/claude/skill/references/planning.md +32 -119
- package/claude/skill/references/verification.md +17 -119
- package/claude/skill/references/worktree-creation.md +1 -1
- package/claude/skill/scripts/model_config.py +24 -11
- package/codex/agents/arc-architect.md +36 -0
- package/codex/agents/{arc-implementer.toml → arc-implementer.md} +10 -5
- package/codex/agents/{arc-planner.toml → arc-planner.md} +14 -7
- package/codex/agents/{arc-reviewer.toml → arc-reviewer.md} +13 -4
- package/codex/agents/{arc-scouter.toml → arc-scouter.md} +13 -4
- package/codex/agents/{arc-tester.toml → arc-tester.md} +13 -4
- package/codex/skill/SKILL.md +6 -6
- package/codex/skill/models.toml +5 -1
- package/codex/skill/references/arc-visual-companion.md +3 -27
- package/codex/skill/references/commit.md +5 -32
- package/codex/skill/references/coordination.md +25 -131
- package/codex/skill/references/git-recovery.md +2 -7
- package/codex/skill/references/handoff-prep.md +9 -24
- package/codex/skill/references/handoff.md +19 -108
- package/codex/skill/references/limits.md +5 -16
- package/codex/skill/references/planning.md +32 -119
- package/codex/skill/references/verification.md +16 -118
- package/codex/skill/scripts/apply-models.py +5 -5
- package/codex/skill/scripts/model_config.py +23 -12
- package/gemini/GEMINI.md +1 -1
- package/gemini/agents/arc-architect.md +39 -0
- package/gemini/agents/arc-implementer.md +1 -1
- package/gemini/agents/arc-planner.md +4 -4
- package/gemini/instructions.md +1 -1
- package/gemini/skill/SKILL.md +6 -6
- package/gemini/skill/models.toml +5 -1
- package/gemini/skill/references/arc-visual-companion.md +2 -21
- package/gemini/skill/references/commit.md +5 -32
- package/gemini/skill/references/coordination.md +32 -137
- package/gemini/skill/references/git-recovery.md +3 -3
- package/gemini/skill/references/handoff-prep.md +9 -24
- package/gemini/skill/references/handoff.md +19 -108
- package/gemini/skill/references/limits.md +4 -15
- package/gemini/skill/references/planning.md +32 -119
- package/gemini/skill/references/verification.md +17 -119
- package/grok/AGENTS.md +1 -1
- package/grok/agents/arc-architect.md +39 -0
- package/grok/agents/arc-implementer.md +1 -1
- package/grok/agents/arc-planner.md +4 -4
- package/grok/instructions.md +1 -1
- package/grok/skill/SKILL.md +5 -5
- package/grok/skill/models.toml +5 -1
- package/grok/skill/references/arc-visual-companion.md +2 -21
- package/grok/skill/references/commit.md +5 -32
- package/grok/skill/references/coordination.md +30 -135
- package/grok/skill/references/git-recovery.md +3 -3
- package/grok/skill/references/handoff-prep.md +9 -24
- package/grok/skill/references/handoff.md +19 -108
- package/grok/skill/references/limits.md +4 -15
- package/grok/skill/references/planning.md +32 -119
- package/grok/skill/references/verification.md +17 -119
- package/lib/installer/global-config.mjs +1 -1
- package/lib/installer/manifest.mjs +20 -3
- package/lib/installer/role-routing.mjs +6 -3
- package/lib/installer/targets.mjs +1 -1
- package/lib/installer/upgrade-state.mjs +3 -2
- package/lib/models/config.mjs +22 -5
- package/lib/models/profiles.mjs +6 -1
- package/lib/platforms/agent-templates.mjs +1 -0
- package/lib/platforms/codex.mjs +2 -0
- package/lib/platforms/formats/codex-markdown.mjs +58 -0
- package/lib/platforms/formats/gemini-markdown.mjs +3 -2
- package/lib/platforms/formats/grok-markdown.mjs +3 -2
- package/lib/platforms/formats/markdown.mjs +3 -2
- package/lib/platforms/formats/toml.mjs +3 -2
- package/lib/policy/placement.mjs +1 -1
- package/lib/policy/render.mjs +6 -5
- package/lib/policy/role-policy.json +36 -7
- package/lib/prompts/agent-fragments.json +107 -24
- package/lib/prompts/render.mjs +69 -19
- package/lib/runtime/adapters/codex.mjs +1 -1
- package/lib/runtime/evaluate.mjs +4 -3
- package/lib/runtime/identity.mjs +1 -1
- package/lib/runtime/operations.mjs +2 -2
- package/lib/runtime/role-bridge-args.mjs +5 -3
- package/lib/runtime/role-bridge.mjs +24 -2
- package/lib/runtime/role-dispatch-policy.mjs +2 -1
- package/lib/runtime/role-dispatch-store.mjs +44 -1
- package/lib/runtime/role-observe.mjs +12 -4
- package/lib/runtime/role-routing-config.mjs +9 -4
- package/lib/runtime/role-supervisor.mjs +16 -2
- package/lib/tui/diagram.mjs +2 -3
- package/lib/tui/setup.mjs +13 -11
- package/lib/watch/labels.mjs +1 -1
- package/lib/watch/model.mjs +2 -2
- package/lib/watch/render.mjs +2 -2
- package/package.json +1 -1
- package/scripts/update-manifest.mjs +1 -1
- package/shared/skill/references/arc-visual-companion-common.md +39 -0
- package/shared/skill/references/commit-common.md +45 -0
- package/shared/skill/references/coordination-common.md +200 -0
- package/shared/skill/references/git-recovery-common.md +15 -0
- package/shared/skill/references/handoff-common.md +182 -0
- package/shared/skill/references/handoff-prep-common.md +53 -0
- package/shared/skill/references/limits-common.md +34 -0
- package/shared/skill/references/planning-common.md +185 -0
- package/shared/skill/references/verification-common.md +172 -0
- package/shared/skill/runtime/adapters/codex.mjs +1 -1
- package/shared/skill/runtime/evaluate.mjs +4 -3
- package/shared/skill/runtime/identity.mjs +1 -1
- package/shared/skill/runtime/operations.mjs +2 -2
- package/shared/skill/runtime/role-bridge-args.mjs +5 -3
- package/shared/skill/runtime/role-bridge.mjs +24 -2
- package/shared/skill/runtime/role-dispatch-policy.mjs +2 -1
- package/shared/skill/runtime/role-dispatch-store.mjs +44 -1
- package/shared/skill/runtime/role-observe.mjs +12 -4
- package/shared/skill/runtime/role-policy.json +36 -7
- package/shared/skill/runtime/role-routing-config.mjs +9 -4
- package/shared/skill/runtime/role-supervisor.mjs +16 -2
|
@@ -10,9 +10,7 @@ Keep shared brief field order, recording source/status within fields. Distinguis
|
|
|
10
10
|
|
|
11
11
|
Optional alternatives need exact locator, material identity, approved version, purpose, method, preconditions, equivalent evidence and return conditions pre-authorized in the brief. Verify alternate locations identify the same material/version. Only side-effect-free reads; no chained search, guessed paths, mutation retries or environment/dependency/permission changes. Return required-input omissions, authority/target/ownership mismatches, partial changes, unknown states and unapproved/ambiguous/failed alternatives immediately. Report first failure/alternative/observations/limits and held dependent/independent work. Orchestrator validates scope/evidence before independent release; unresolved required checks still block acceptance.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Resume briefs preserve valid approval for unchanged scope, completed work, failures and their resolution, valid and invalid evidence, holds and the next objective. Record changed facts and revalidate gates without repeating completed work. Preserve role/Git/Tester/final Reviewer/acceptance/commit boundaries.
|
|
13
|
+
Shared text for this section: [handoff-common.md#instruction-sources-bounded-read-recovery-visual-evidence-and-resumption](handoff-common.md#instruction-sources-bounded-read-recovery-visual-evidence-and-resumption). It applies here exactly as if written in place.
|
|
16
14
|
|
|
17
15
|
<a id="workspace-handoff"></a>
|
|
18
16
|
## Workspace handoff
|
|
@@ -20,26 +18,12 @@ Resume briefs preserve valid approval for unchanged scope, completed work, failu
|
|
|
20
18
|
<a id="checkout-approval"></a>
|
|
21
19
|
### Checkout approval
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
The first required spec/plan draft follows choice and verified source evidence and precedes actual preparation; saving follows verified preparation. Initial design MAY precede choice. Preparation alone authorizes no Implementer. All approvals/full documents/verified batch or valid absence/final Git checks remain. Separate planned scope/paths, actual preparation and drafting/save/approval/commit, recording chronology/gaps.
|
|
26
|
-
|
|
27
|
-
After initial design approval, or within the Architectural [start confirmation](planning.md#architectural-start-confirmation), record explicit selection: current checkout, new task branch from verified base there, or managed worktree/task branch. Without choice/valid reuse, wait. Reuse through unchanged-scope/target drafting/implementation. Authorized HEAD/dirty changes alone do not invalidate choice; verify preservation/ownership. Changed scope/target requires fresh choice before dependent drafting/preparation without waiting for full documents. NEVER fall back automatically.
|
|
21
|
+
Shared text for this section: [handoff-common.md#checkout-approval](handoff-common.md#checkout-approval). It applies here exactly as if written in place.
|
|
28
22
|
|
|
29
23
|
<a id="implementer-handoff-gate"></a>
|
|
30
24
|
### Implementer handoff gate
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
1. Applicable design/spec/plan approvals/artifacts or valid omissions; for Spike, approved question/method/scope/criteria/constraints. Verify full current document set/versions/dependencies/order and no unfinished applicable documents. Future implementation artifacts are outside probe approval.
|
|
35
|
-
2. Explicit initial choice or verified valid reuse.
|
|
36
|
-
3. Accessible intended absolute workspace/repository.
|
|
37
|
-
4. Actual branch/detached HEAD/HEAD/change state/preservation/ownership. Preserve unrelated staged files; they block until preparation is resolved.
|
|
38
|
-
5. Verified planning-document commits or required-none/produced-none with depth reasons.
|
|
39
|
-
6. Final path/branch/HEAD/state after mutations; no unresolved failure/partial completion.
|
|
40
|
-
7. Brief preparation/final-verification facts/evidence.
|
|
41
|
-
|
|
42
|
-
Before the first direct edit, use approved scope records and the same gates. Any failure/missing condition blocks handoff, not authorized read-only investigation/preparation/recovery. Revalidate changes to approved content/target/branch/HEAD/state. Implementer reports actual conflicts under its profile; Orchestrator resolves and repasses gates.
|
|
26
|
+
Shared text for this section: [handoff-common.md#implementer-handoff-gate](handoff-common.md#implementer-handoff-gate). It applies here exactly as if written in place.
|
|
43
27
|
|
|
44
28
|
<a id="handoff-evidence"></a>
|
|
45
29
|
### Handoff evidence
|
|
@@ -55,37 +39,27 @@ One canonical record includes:
|
|
|
55
39
|
- Each plan task ID and current Implementer conversation ID, status, last result and reuse/replacement decision. Before same-task replacement, record the prior ID and status, allowed reason and supporting evidence; hold if the reason is not established. Record the returned ID after a successful initial or replacement call, and reconcile an uncertain call result before another assignment.
|
|
56
40
|
- Worktree source/target paths/common directory/base/branch/name/`.claude/worktrees/<name>` path/`EnterWorktree` attachment evidence/registration/source preservation/transfer evidence. No automatic recreation/cleanup/removal.
|
|
57
41
|
|
|
58
|
-
|
|
42
|
+
Shared text for this section: [handoff-common.md#handoff-evidence](handoff-common.md#handoff-evidence). It applies here exactly as if written in place.
|
|
59
43
|
|
|
60
44
|
<a id="task-readiness-at-every-assignment"></a>
|
|
61
45
|
## Task readiness at every assignment
|
|
62
46
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Apply all [planning](planning.md#dependency-and-readiness-record) conditions: predecessor checks/Orchestrator acceptance/verified commit or accepted no-change. Reports alone are insufficient. Verify current records/capacity/ownership. Readiness supplements, never replaces handoff/target gates. Authorized HEAD/state changes refresh records/briefs/preservation/gates and [shared-checkout](commit.md#shared-checkout-coordination) readiness. Unexpected HEAD/ownership stops affected work for resolution.
|
|
47
|
+
Shared text for this section: [handoff-common.md#task-readiness-at-every-assignment](handoff-common.md#task-readiness-at-every-assignment). It applies here exactly as if written in place.
|
|
66
48
|
|
|
67
49
|
<a id="choice-lifetime-and-restart-record"></a>
|
|
68
50
|
<a id="choice-lifetime-and-reuse"></a>
|
|
69
51
|
## Choice lifetime and restart record
|
|
70
52
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
Unchanged-document restarts reuse valid commits/choice with fresh state checks. Accepted task/docs commits and authorized implementation/dirty changes alone invalidate no choice; record matching work/ownership/target. Authorized worktree transfers also preserve reuse. Creation base remains evidence, not a permanent target HEAD constraint; source-preservation/unexpected-state checks remain. Link plan version/task ID/commit content-validity/current Git/ownership in restart brief. NEVER duplicate successful commits or confuse task commits with document preparation; DO NOT repeat valid docs preparation.
|
|
74
|
-
|
|
75
|
-
Changed scope/workspace/repository/target/candidate needs fresh choice before dependent work. Failures invalidating target trust need new choice after resolution. Resolution alone needs none if choice remains valid. Mismatches/unresolved failures hold edits through full revalidation; NEVER fallback.
|
|
53
|
+
Shared text for this section: [handoff-common.md#choice-lifetime-and-restart-record](handoff-common.md#choice-lifetime-and-restart-record). It applies here exactly as if written in place.
|
|
76
54
|
|
|
77
55
|
Maintain one accessible initial canonical record, not a separate service. Resolve `git rev-parse --path-format=absolute --git-common-dir`; write `<git-common-dir>/arc/handoff/<plan-or-task-slug>.md` with scope/version/identity/evidence. Use a unique dated-plan stem or no-plan spec/task slug; NEVER overwrite another record. It is outside working tree, shared by linked worktrees, not a Git mutation, never staged/committed, secret-free. Give every brief its absolute path; update task ID/SHA/state after accepted commits. NEVER delete automatically.
|
|
78
56
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Unavailable/denied record writes require reason/full inline record in every Implementer brief, without deltas or record-file `unchanged`; inline satisfies accessibility.
|
|
82
|
-
|
|
83
|
-
Restart briefs send verified deltas and record-relative `unchanged`; fresh Implementer reads it and gets other fields fully. Include record location, next goal/ownership, changed decisions/approvals/docs/scope or no-change, current Git/differences, choice/reuse validation, refreshed commit/artifact checks, final verification/issues. Inaccessible records, missing evidence or unclear ownership block edits. Prior conversation/inaccessible links are no substitute. Revalidate revised docs/approvals/state; NEVER backdate pre-gate preparation.
|
|
57
|
+
Shared text for this section: [handoff-common.md#choice-lifetime-and-restart-record-2](handoff-common.md#choice-lifetime-and-restart-record-2). It applies here exactly as if written in place.
|
|
84
58
|
|
|
85
59
|
<a id="authorization-continuity"></a>
|
|
86
60
|
## Authorization continuity
|
|
87
61
|
|
|
88
|
-
|
|
62
|
+
Shared text for this section: [handoff-common.md#authorization-continuity](handoff-common.md#authorization-continuity). It applies here exactly as if written in place.
|
|
89
63
|
|
|
90
64
|
<a id="common-handoff-gate"></a>
|
|
91
65
|
## Common handoff gate
|
|
@@ -96,21 +70,16 @@ Selected worktrees require common directory, registration, `EnterWorktree` sessi
|
|
|
96
70
|
<a id="implementer-tdd-and-constraints"></a>
|
|
97
71
|
## Implementer TDD and constraints
|
|
98
72
|
|
|
99
|
-
|
|
73
|
+
Shared text for this section: [handoff-common.md#implementer-tdd-and-constraints](handoff-common.md#implementer-tdd-and-constraints). It applies here exactly as if written in place.
|
|
100
74
|
|
|
101
75
|
Waiver skips RED-GREEN only, preserving focused checks/risk-scaled Tester/Reviewer; NEVER claim TDD. Follow an applicable higher-priority prohibition on adding or running tests; when precedence and scope are clear, DO NOT report a conflict on that basis or ask permission to violate it. TDD remains applicable to permitted test work. Record unperformed verification and its limits; if precedence or scope is genuinely unclear, or required verification is blocked, hold only affected work and acceptance and report the evidence. Other blocked required steps need recorded decision/required human approval, not internal substitutes. Non-behavior docs/config use specifically approved exceptions only, NEVER generalize to behavior. Test scope follows [verification](verification.md#test-scope-and-result-comparison) and takes precedence over upstream TDD's per-task project-suite instruction.
|
|
102
76
|
|
|
103
77
|
<a id="orchestrator-direct-path-for-small-tasks"></a>
|
|
104
78
|
## Orchestrator direct path for small tasks
|
|
105
79
|
|
|
106
|
-
Record target choice/reuse before first edit; scope approval alone selects no target. Direct edits without Planner/Implementer need every low-risk/plan-skip condition: one local change, no dependent stages/cross-component shared state/lifecycle/integration-order concerns, one check path and no significant trigger. Exclude Architectural, ordinary behavior/significant/high/unclear risk and active Implementer file overlaps. File count proves no eligibility.
|
|
80
|
+
Record target choice/reuse before first edit; scope approval alone selects no target. Direct edits without Architect/Planner/Implementer need every low-risk/plan-skip condition: one local change, no dependent stages/cross-component shared state/lifecycle/integration-order concerns, one check path and no significant trigger. Exclude Spike/Architectural, ordinary behavior/significant/high/unclear risk and active Implementer file overlaps. File count proves no eligibility.
|
|
107
81
|
|
|
108
|
-
|
|
109
|
-
2. Read this/[preparation](handoff-prep.md), pass full gate before edit and edit approved files surgically, preserving others. No unrelated refactoring/unapproved dependencies.
|
|
110
|
-
3. Follow Implementer TDD/recorded waivers; explicit TDD still requires local skill. Record files/checks/criterion evidence/gaps. Orchestrator is not independent; assign Tester for incomplete evidence.
|
|
111
|
-
4. Failed checks/Tester findings route to Implementer/recheck, never self-correction. Scope/risk/condition changes stop edits, record work/reclassify and return subsequent edits to normal Planner/Implementer flow.
|
|
112
|
-
|
|
113
|
-
Add no plans/automatic commits to omission paths; follow guidance/user requests.
|
|
82
|
+
Shared text for this section: [handoff-common.md#orchestrator-direct-path-for-small-tasks](handoff-common.md#orchestrator-direct-path-for-small-tasks). It applies here exactly as if written in place.
|
|
114
83
|
|
|
115
84
|
|
|
116
85
|
### Fast gate
|
|
@@ -126,52 +95,24 @@ Select the existing direct path only when all eight conditions are `proven`. Rec
|
|
|
126
95
|
- **F7**: Applicable TDD is identified; any waiver or non-behavior exception meets existing conditions and is recorded beforehand. Explicit user/task TDD overrides waiver.
|
|
127
96
|
- **F8**: Applicable instruction source-set and approval, target, criteria and verification evidence are accessible, consistent and unambiguous.
|
|
128
97
|
|
|
129
|
-
|
|
98
|
+
Shared text for this section: [handoff-common.md#handoff-fast-gate](handoff-common.md#handoff-fast-gate). It applies here exactly as if written in place.
|
|
130
99
|
|
|
131
100
|
### Instruction fingerprint
|
|
132
101
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Distinguish user-provided instructions, workspace instructions, installed references and task inputs by source, applicability and access state: available, absent, inaccessible, conflicting or unverified. For every file record source kind, absolute and resolved path, read sections, available revision, SHA-256 of entire file bytes, access state, observation and read-context references. Neither HEAD nor installer manifest substitutes for actual installed-source hash. Use only already identified source paths; DO NOT search or guess. An uncertain source-set makes F8 `unverified`.
|
|
136
|
-
|
|
137
|
-
Reuse read content only for the same source-set, absolute source locators, resolved paths, hashes, scope and same conversation context with meaning still available. Different absolute locators cannot be reused even if they resolve to the same path. New context, inaccessible record or context loss requires rereading; changed source/hash requires rereading and reassessing affected judgments. Verify the current source-set/hash at a new fast judgment, first-edit or assignment/restart/resumption gate, before acceptance, and on known source changes; reuse observations within the same gate. If hashing fails, DO NOT reuse; follow existing read recovery and hold required inaccessible inputs. When Node is already available, batch identified absolute paths with built-in `node:fs` realpath/readFileSync and `node:crypto` SHA-256; install nothing and print no source content.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
For identified absolute sources only, when Node is already available, this read-only example prints paths and hashes, not contents:
|
|
141
|
-
|
|
142
|
-
```sh
|
|
143
|
-
node --input-type=module -e '
|
|
144
|
-
import fs from "node:fs";
|
|
145
|
-
import crypto from "node:crypto";
|
|
146
|
-
const sources = process.argv.slice(1);
|
|
147
|
-
if (!sources.length) throw new Error("No instruction sources");
|
|
148
|
-
for (const source of sources) {
|
|
149
|
-
const resolvedPath = fs.realpathSync(source);
|
|
150
|
-
const contentHash = "sha256:" + crypto.createHash("sha256").update(fs.readFileSync(resolvedPath)).digest("hex");
|
|
151
|
-
process.stdout.write(JSON.stringify({source, resolvedPath, contentHash}) + "\n");
|
|
152
|
-
}
|
|
153
|
-
' -- '/absolute/identified/source-1' '/absolute/identified/source-2'
|
|
154
|
-
```
|
|
155
|
-
A new conversation or lost context requires reread; unchanged HEAD alone does not prove instruction, file or check evidence current.
|
|
102
|
+
Shared text for this section: [handoff-common.md#handoff-instruction-fingerprint](handoff-common.md#handoff-instruction-fingerprint). It applies here exactly as if written in place.
|
|
156
103
|
|
|
157
104
|
### Task envelope
|
|
158
105
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
The nine fields are `task`, `instructions`, `target`, `authorization`, `scopeCriteria`, `riskDepth`, `tdd`, `verification`, and `refresh`; task records the task ID/path and selected path `fast-direct` or `full`, and verification includes criteria-specific checks and their evidence.
|
|
106
|
+
Shared text for this section: [handoff-common.md#handoff-task-envelope](handoff-common.md#handoff-task-envelope). It applies here exactly as if written in place.
|
|
162
107
|
|
|
163
108
|
### Evidence refresh
|
|
164
109
|
|
|
165
|
-
|
|
110
|
+
Shared text for this section: [handoff-common.md#handoff-evidence-refresh](handoff-common.md#handoff-evidence-refresh). It applies here exactly as if written in place.
|
|
166
111
|
|
|
167
112
|
<a id="cooperative-cli-verification-handoff"></a>
|
|
168
113
|
## Cooperative CLI verification handoff
|
|
169
114
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
Include spec/plan paths in cooperative `task.paths` to commit task progress records and pending revisions; missing paths hold the commit until an approved scope revision, and the cooperative CLI does not support the standalone `docs(plan)` closing commit, so include pending revisions in task or follow-up commits. When `task.paths` includes the plan path, the cooperative CLI holds R-8 separation commits (staging progress records without revision hunks) at both preflight and result verification; while revisions are pending, prior-version tasks cannot be committed through the CLI. Plan-level progress records follow the same `task.paths` rule; when no task or follow-up commit follows, they stay only in the canonical record, and the cooperative CLI adds no support for them.
|
|
173
|
-
|
|
174
|
-
On scope/docs/approval changes inspect `affectedTaskIds`/dependencies, preserve history and supply current approval/contracts. NEVER reuse checks across fingerprints. Link findings to same-version Implementer resolution/Tester rechecks; only plan-final Reviewer findings use Implementer→Reviewer. No task-level Reviewer prerequisite. Detailed fields/holds follow [verification](verification.md#verification-lifecycle-in-the-cooperative-cli); unsupported omission is no policy violation/document obligation.
|
|
115
|
+
Shared text for this section: [handoff-common.md#cooperative-cli-verification-handoff](handoff-common.md#cooperative-cli-verification-handoff). It applies here exactly as if written in place.
|
|
175
116
|
|
|
176
117
|
[ARC role policy: contract begin]
|
|
177
118
|
Generated from lib/policy/role-policy.json; do not edit this managed section manually.
|
|
@@ -186,44 +127,14 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
186
127
|
<a id="initial-implementer-assignment-through-the-cooperative-cli"></a>
|
|
187
128
|
## Initial Implementer assignment through the cooperative CLI
|
|
188
129
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
Entry installation/update migrates no common-directory state or approvals. Preserve runtime/hash/target/actor/revision gates; drift holds evidence for current recovery/approval. New workflows prove no historical compliance.
|
|
192
|
-
|
|
193
|
-
1. Verify the approved planning-document docs-only commit (Architectural spec/plan; Bounded plan), exact set/Git objects/current bytes. Only then run `init`, approval `record`, `prepare`, even if approval preceded commit.
|
|
194
|
-
2. At final HEAD `init` with `mode: "plan"`, `actor: {id: "operator"}`, `selection: {messageRef, contentHash}`.
|
|
195
|
-
3. Record confirmed approval as `{requestId, expectedRevision, actor, evidence: {kind: "approval", messageRef, data: {approvalVersion, documentVersion, documents}}}`. `documents` is exactly the prepared document set (spec/plan for Architectural, plan for Bounded) with `{kind, path, gitPath, contentHash, approvalRef, commit}`; `contentHash`=`sha256:<hex>`, `approvalRef` matches approval `messageRef`. HEAD drift needs fresh observation/renewed approval, not reconnection to old intent.
|
|
196
|
-
4. `prepare` with `{requestId, expectedRevision, actor, operation: "assign-agent", taskId, arguments: {role: "implementer", paths, operations: ["edit"], documents, approvalRef, approvalVersion, documentVersion, correlation}}`. Absolute `paths` remain in checkout. Confirm `allow`, `persisted: true` and saved intent.
|
|
197
|
-
5. Invoke native assignment with saved task/scope/correlation.
|
|
198
|
-
6. Record `{requestId, expectedRevision, actor, intentId, result: {status, messageRef, data: {correlation, taskId, agentId}}}`. `intentId` is prepare requestId. Distinguish `succeeded`, `failed`, `unknown`, `mismatch`. Success needs returned agent ID; unknown/mismatch holds duplicate assignment for investigation.
|
|
199
|
-
|
|
200
|
-
Approval/assignment are `operator-attested`, not native identity/event authentication. CLI blocks no outside direct call; new workflow legitimizes no historical omission. Preserve trusted-adapter provenance.
|
|
130
|
+
Shared text for this section: [handoff-common.md#initial-implementer-assignment-through-the-cooperative-cli](handoff-common.md#initial-implementer-assignment-through-the-cooperative-cli). It applies here exactly as if written in place.
|
|
201
131
|
|
|
202
132
|
<a id="external-operations-and-recovery-in-the-cooperative-cli"></a>
|
|
203
133
|
## External operations and recovery in the cooperative CLI
|
|
204
134
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
Operator-confirmed approvals/results are `operator-attested`, `nativeVerified: false`, `remoteVerified: false`; no outside-call blocking or independent remote verification.
|
|
208
|
-
|
|
209
|
-
Record already confirmed external approval using `evidence: {kind: "external-approval", messageRef, data: {operation, scope, descriptor}}`. `scope` is unique absolute checkout paths. Local commit approval grants no external approval. Record exact action/scope/target and all descriptor fields:
|
|
210
|
-
|
|
211
|
-
| operation | descriptor fields |
|
|
212
|
-
|---|---|
|
|
213
|
-
| push | repository, destination, refspec, sourceOid, expectedRemoteOid |
|
|
214
|
-
| merge | repository, changeRef, targetRef, expectedTargetOid |
|
|
215
|
-
| deploy | service, project, environment, artifactId, destination |
|
|
216
|
-
| publish | service, namespace, name, version, artifactHash, destination |
|
|
217
|
-
|
|
218
|
-
Git OIDs are full lowercase 40/64-character hex; artifactHash is `sha256:<64-hex>`. Without remote observation OIDs are asserted expectations, not verified state. Destination is secret-free. No URL userinfo/query/fragment/password/token/credentials. Recognized secrets are rejected before persistence, but arbitrary-string secrecy cannot be guaranteed.
|
|
219
|
-
|
|
220
|
-
`prepare` accepts `{requestId, expectedRevision, actor: {id, role: "orchestrator"}, operation, arguments: {approvalRef, scope, descriptor}}`; approvalRef matches external approval messageRef. Persist only exact approval/scope/target/runtime versions with no unresolved effects. After `allow`/`persisted: true`, Orchestrator executes separately approved scope; CLI expands no authority.
|
|
221
|
-
|
|
222
|
-
`result`/`reconcile` accept `{requestId, expectedRevision, actor, intentId, result: {status, messageRef, data: {operation, scope, descriptor}}}`, with prepare requestId as intentId. Mismatch/unknown/stale outcomes hold while preserving attestations. After interruption inspect intent/`state.requests`/`state.audit`/`state.results` through `status` and investigate actual effects. Reconcile that same intent, not fresh preparation or replayed approvals.
|
|
223
|
-
|
|
224
|
-
Cancellation also requires `notExecutedEvidence: {messageRef}`; approval remains consumed. No automatic update/migration/renewed permission to fix drift. Report holds. Succeeded results remain attestations, not remote proof. `audit` links request→decision→intent→result→resolution but is locally editable, not tamper-proof. NEVER retry uncertain external outcomes.
|
|
135
|
+
Shared text for this section: [handoff-common.md#external-operations-and-recovery-in-the-cooperative-cli](handoff-common.md#external-operations-and-recovery-in-the-cooperative-cli). It applies here exactly as if written in place.
|
|
225
136
|
|
|
226
137
|
<a id="composite-bridge-results-and-briefs"></a>
|
|
227
138
|
## Composite bridge results and briefs
|
|
228
139
|
|
|
229
|
-
|
|
140
|
+
Shared text for this section: [handoff-common.md#composite-bridge-results-and-briefs](handoff-common.md#composite-bridge-results-and-briefs). It applies here exactly as if written in place.
|
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
<a id="subagent-limits"></a>
|
|
2
2
|
# Subagent limits
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Shared text for this section: [limits-common.md#subagent-limits](limits-common.md#subagent-limits). It applies here exactly as if written in place.
|
|
5
5
|
|
|
6
6
|
<a id="counting-and-reservations"></a>
|
|
7
7
|
## Counting and reservations
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- Completion never refunds cumulative creation. A follow-up or resume using the same instance adds nothing; fresh instances, new-instance retries and replacements increment the total.
|
|
11
|
-
- Waiting, blocked, running and resumable idle instances consume concurrency until completion or termination is confirmed. Obey lower actual runtime capacity, including native retention of completed instances. ARC counts do not prove free native slots.
|
|
12
|
-
|
|
13
|
-
Reserve the full proposed parallel batch before dispatch, satisfying both:
|
|
14
|
-
|
|
15
|
-
1. `created + pending reservations + proposed <= max_total_subagents`
|
|
16
|
-
2. `active + pending reservations + proposed <= max_concurrent_subagents`, within actual available runtime capacity.
|
|
17
|
-
|
|
18
|
-
Reserve before each call. Confirmed creation becomes a created/active ID. Release only when failure proves no instance was created. Uncertain results retain capacity until reconciled; NEVER retry blindly. Serialize batches that do not fit. No role has reserved slots.
|
|
9
|
+
Shared text for this section: [limits-common.md#counting-and-reservations](limits-common.md#counting-and-reservations). It applies here exactly as if written in place.
|
|
19
10
|
|
|
20
11
|
<a id="continuation-and-exhaustion"></a>
|
|
21
12
|
## Continuation and exhaustion
|
|
22
13
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Confirmed completion or termination frees active capacity. Exhaustion holds creation and reports remaining work/budget; it never waives Tester/Reviewer, role freshness, approval, ownership, dependency or same-file edit gates.
|
|
14
|
+
Shared text for this section: [limits-common.md#continuation-and-exhaustion](limits-common.md#continuation-and-exhaustion). It applies here exactly as if written in place.
|
|
26
15
|
|
|
27
16
|
Cumulative limits and scheduling are prompt policy, not hard runtime controls. Text tests prove package consistency, not live compliance/native support.
|
|
28
17
|
Claude `settings.json.env.CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` constrains its native session.
|
|
29
18
|
Independent sessions/accounts/platforms do not share the ledger. Agent Teams and hosted APIs are outside this contract. Verify native application separately in a supported new session.
|
|
30
19
|
|
|
31
|
-
|
|
20
|
+
Shared text for this section: [limits-common.md#continuation-and-exhaustion-2](limits-common.md#continuation-and-exhaustion-2). It applies here exactly as if written in place.
|