@yunhozz/arc 0.3.0 → 0.3.2
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 +25 -25
- package/README.md +16 -11
- package/claude/agents/arc-planner.md +2 -0
- package/claude/skill/references/coordination.md +1 -1
- package/claude/skill/references/planning.md +3 -3
- package/claude/skill/runtime/role-policy.json +1 -1
- package/codex/agents/arc-planner.toml +2 -0
- package/codex/skill/references/coordination.md +1 -1
- package/codex/skill/references/planning.md +3 -3
- package/codex/skill/runtime/role-policy.json +1 -1
- package/lib/policy/role-policy.json +1 -1
- package/lib/prompts/agent-fragments.json +6 -0
- package/lib/prompts/render.mjs +2 -0
- package/lib/tui/app.mjs +17 -12
- package/lib/tui/custom-preset.mjs +6 -7
- package/lib/tui/render.mjs +55 -18
- package/lib/tui/setup.mjs +3 -3
- package/lib/tui/terminal.mjs +30 -17
- package/lib/watch/index.mjs +50 -2
- package/lib/watch/model.mjs +3 -3
- package/lib/watch/normalize-claude.mjs +21 -6
- package/lib/watch/normalize-codex.mjs +23 -1
- package/lib/watch/render.mjs +30 -8
- package/lib/watch/scope.mjs +1 -1
- package/lib/watch/watcher.mjs +24 -4
- package/package.json +1 -1
package/MANIFEST.sha256
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
ab523ae70028fbebf995e84f304acf097fa26d217cbcea254d9c1dc13c4e04d6 README.md
|
|
2
2
|
d41edeb8c6631dee30c67c705d4edad977aa1631627ec9de59c013f8990f4018 bin/arc-upgrade.mjs
|
|
3
3
|
484d9b2002ce542c87589bb719d644d3762706aad28a6ee010024875f8cc00e2 bin/arc.mjs
|
|
4
4
|
3a4addbe83e8d0c397f16b886b4cf7ba1557707d3dae5dd4db590da58309bd24 claude/agents/arc-implementer.md
|
|
5
|
-
|
|
5
|
+
c3e29c5aa92bd3aae558c135c2da195a107b54819674cf2730def7942b22941d claude/agents/arc-planner.md
|
|
6
6
|
09ed15ff0ace8a9b2868056ef410ab14695c3a7bb09b289b432191de68fd4be1 claude/agents/arc-qa.md
|
|
7
7
|
d22d12435e4c80e86b849afc2717f55e5a7936cf1168a7479cc7b3eeea0ac37e claude/agents/arc-reviewer.md
|
|
8
8
|
06eeed719a96622e6f1a470488d03a9ee0ff4eacd53729d8967e39e8599d5a37 claude/agents/arc-scouter.md
|
|
@@ -11,12 +11,12 @@ eb4d822246dc78540a79076676919355867bd08114cfdeeca5dd09d1121c515d claude/skill/r
|
|
|
11
11
|
2c9ca71f94886f9ca9f4aef055f7cafb3e1a9bdf3aeebf8f4cb547c69405d207 claude/skill/references/brainstorming.md
|
|
12
12
|
36d51a4723d6f0a3ce5811a0ea3b3a8424f07533947e1355f5d8cb8cce40c55e claude/skill/references/builder-check-prompt.md
|
|
13
13
|
0c93f6d361708c6ddae20ce2d1b96015713a19bbe4a66244d6e82d84170e84e5 claude/skill/references/commit.md
|
|
14
|
-
|
|
14
|
+
82f6ffda8a639118a8741a50ed8dcec67744c8781db3610f9ad4f63d2029bb6e claude/skill/references/coordination.md
|
|
15
15
|
be576fff08d6d8d371444abf0360a2c395cfda0251e4a32a66006933f91d1a1d claude/skill/references/git-recovery.md
|
|
16
16
|
19ce1a111353eb4b179d91bd57a2d4f1e7aec184f1c3f122647d171c66b8fb58 claude/skill/references/handoff-prep.md
|
|
17
17
|
5f015a797eabf0d8b1e753840b9d9abba039548b06a3f5d7e8bb63352c9f1443 claude/skill/references/handoff.md
|
|
18
18
|
4b1891e369abbefc1dd8d7765902dab3771eb948433f8e97dc7e0a9bcd380009 claude/skill/references/limits.md
|
|
19
|
-
|
|
19
|
+
b96feaf0bf63df0c3268e983adcb567384326ae5646c4259c04249ef3c66a2b8 claude/skill/references/planning.md
|
|
20
20
|
6a8a4e58bd6a44b904e2e3c57de774481d909204597e1498de53f1b2fecc4c4e claude/skill/references/scripts/frame-template.html
|
|
21
21
|
43c6d69954a46ec34a2a262bcc62a9a7e83e839c739f199cb72646d397c686e3 claude/skill/references/scripts/helper.js
|
|
22
22
|
763abf96510e0b892a1141397b31aa82ef900cf87ed34dde94bc8782baf4a7ca claude/skill/references/scripts/server.cjs
|
|
@@ -52,7 +52,7 @@ de8559102ce6ac48030503937d73050f4330cd3a57d4ddd94b23072390858308 claude/skill/r
|
|
|
52
52
|
824a0efac9bac119d14693c5e02d600ac85febfc70761a436da0f058b0083320 claude/skill/runtime/role-dispatch-policy.mjs
|
|
53
53
|
bccdfde1699f4614e2cbd5ae1a9b7ddd319b3cfecaae0c2fb7a669b2690456fb claude/skill/runtime/role-dispatch-store.mjs
|
|
54
54
|
9fdd561ee0c509e4e63ea4c78e4bfa666e37c87d08abb6659f0b250dc6f4d556 claude/skill/runtime/role-observe.mjs
|
|
55
|
-
|
|
55
|
+
297f68a13a3707afb20c0a770cf4f948ca82a71f3cad331fdb610d2f195fea6d claude/skill/runtime/role-policy.json
|
|
56
56
|
e50fa25532160a7110c0d9df3cb66ab5a02072febdcd8bff4d3744b1d5360c0f claude/skill/runtime/role-routing-config.mjs
|
|
57
57
|
2e5d86004328633ec7a7a904bd65e3e8c68974927ef0726d07e853df56222784 claude/skill/runtime/role-routing.mjs
|
|
58
58
|
0933fa59b8b091be76f789fa595a2e95b6a67276ccf5fac8c6221be82e4b42bb claude/skill/runtime/role-supervisor.mjs
|
|
@@ -64,7 +64,7 @@ b29a9f9a9a60836271545e3f75346d51d7d0bf1ac1eccbfa3a624717f78beebb claude/skill/r
|
|
|
64
64
|
e4445f3582c55861907e11dfe97ea9e87c69bcc3ff773d3d583914c198f1d024 claude/skill/scripts/apply-models.py
|
|
65
65
|
a39ef4aa4a3ffa7281f9d48ff751ef710ff27e6267f480b6c11f9fb809e5e1f5 claude/skill/scripts/model_config.py
|
|
66
66
|
9071c770fa2e585ea059cf16c9295e9979c542b607c37c62a8a86b0f7b7eabbf codex/agents/arc-implementer.toml
|
|
67
|
-
|
|
67
|
+
581a387ae8874f98f1c2b7f007a0ea0604cbf208f6894a864239bca7fee3e865 codex/agents/arc-planner.toml
|
|
68
68
|
677fd2c614db6eb0d93820e2c29a0df7b0866e3d5f1633d5503af16ef26265a3 codex/agents/arc-qa.toml
|
|
69
69
|
4ce3fea86abb7767a6fdb0a6fe6eb85e7672ba45819858b00eb5925c7e0bbb3f codex/agents/arc-reviewer.toml
|
|
70
70
|
046971c4710ba29e3b0340fb0c02b2b388563bc80c48635329ac3ae43471beb4 codex/agents/arc-scouter.toml
|
|
@@ -73,13 +73,13 @@ baa8806e5cf9ba01ecc56f026449837fbae07b631381657e287ac3834843fba2 codex/skill/SK
|
|
|
73
73
|
2c9ca71f94886f9ca9f4aef055f7cafb3e1a9bdf3aeebf8f4cb547c69405d207 codex/skill/references/brainstorming.md
|
|
74
74
|
36d51a4723d6f0a3ce5811a0ea3b3a8424f07533947e1355f5d8cb8cce40c55e codex/skill/references/builder-check-prompt.md
|
|
75
75
|
76228f38c0b6c3762e511733fd19c663d2be013a3b7756208101b9fc56a5f7c7 codex/skill/references/commit.md
|
|
76
|
-
|
|
76
|
+
742eded11844d5af70709b73363cd63cbc455f1e3fe145b5cd24d31b83e51af6 codex/skill/references/coordination.md
|
|
77
77
|
407e98fa69033a13c01368965c370bca03b717ad2b29c3eeac450237b58b4860 codex/skill/references/git-recovery.md
|
|
78
78
|
35c7418448bf2c7ad874884cb574f373072a1c1bf69d7134bc8fed511bbe0eb0 codex/skill/references/handoff-prep.md
|
|
79
79
|
68cf61b17c76f577b7d2d8a50383f48b34de3e13cb08eeeb7c7749a4a3f0e088 codex/skill/references/handoff-worktree.md
|
|
80
80
|
06b7c21779802fde148e5037652b952d82f2d0cb61a913c25abb926fea5de4ff codex/skill/references/handoff.md
|
|
81
81
|
8da6c938e58fc2f199a6a02f831fc080c4e9220ee4f64ef0be0da5d04e11f4e1 codex/skill/references/limits.md
|
|
82
|
-
|
|
82
|
+
c8e245c2ed5160e9d3d4e58a77bc9f1628805ee407f67ce26da213774083b0b6 codex/skill/references/planning.md
|
|
83
83
|
6a8a4e58bd6a44b904e2e3c57de774481d909204597e1498de53f1b2fecc4c4e codex/skill/references/scripts/frame-template.html
|
|
84
84
|
43c6d69954a46ec34a2a262bcc62a9a7e83e839c739f199cb72646d397c686e3 codex/skill/references/scripts/helper.js
|
|
85
85
|
763abf96510e0b892a1141397b31aa82ef900cf87ed34dde94bc8782baf4a7ca codex/skill/references/scripts/server.cjs
|
|
@@ -115,7 +115,7 @@ de8559102ce6ac48030503937d73050f4330cd3a57d4ddd94b23072390858308 codex/skill/ru
|
|
|
115
115
|
824a0efac9bac119d14693c5e02d600ac85febfc70761a436da0f058b0083320 codex/skill/runtime/role-dispatch-policy.mjs
|
|
116
116
|
bccdfde1699f4614e2cbd5ae1a9b7ddd319b3cfecaae0c2fb7a669b2690456fb codex/skill/runtime/role-dispatch-store.mjs
|
|
117
117
|
9fdd561ee0c509e4e63ea4c78e4bfa666e37c87d08abb6659f0b250dc6f4d556 codex/skill/runtime/role-observe.mjs
|
|
118
|
-
|
|
118
|
+
297f68a13a3707afb20c0a770cf4f948ca82a71f3cad331fdb610d2f195fea6d codex/skill/runtime/role-policy.json
|
|
119
119
|
e50fa25532160a7110c0d9df3cb66ab5a02072febdcd8bff4d3744b1d5360c0f codex/skill/runtime/role-routing-config.mjs
|
|
120
120
|
2e5d86004328633ec7a7a904bd65e3e8c68974927ef0726d07e853df56222784 codex/skill/runtime/role-routing.mjs
|
|
121
121
|
0933fa59b8b091be76f789fa595a2e95b6a67276ccf5fac8c6221be82e4b42bb codex/skill/runtime/role-supervisor.mjs
|
|
@@ -172,9 +172,9 @@ ee81dee01b1623d95dda9b1d195ce2008811dfb54af3da8324a9e538238ac84e lib/npm/proces
|
|
|
172
172
|
7039f646fe67cf11e83a7389c5622d53a72736d06c7be563aefd0dd0106ceda4 lib/npm/upgrade.mjs
|
|
173
173
|
79f5824a3b1b44ab0cd0e95243ed418c3fa15881927bb4d1789047b480747939 lib/policy/placement.mjs
|
|
174
174
|
b4889e2aaeab49c31769304ff2cfc8cbbd378ad49720150a5c2cba31851b822f lib/policy/render.mjs
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
297f68a13a3707afb20c0a770cf4f948ca82a71f3cad331fdb610d2f195fea6d lib/policy/role-policy.json
|
|
176
|
+
6070ba620ce18dc5d74ba0eb44b275edcbfb16d43809c46af21fde58d9bee097 lib/prompts/agent-fragments.json
|
|
177
|
+
c7f5f3144ae2e6218a9546fdcacbd59f987dcf86fd5b034fd32cd98acdffb602 lib/prompts/render.mjs
|
|
178
178
|
6816acd10da3ab8db1276d7ae2712b99e0c97111f57ba2d547a2cc5c3f9e165b lib/release/artifact.mjs
|
|
179
179
|
f9b4caf6a97d02f2bc4e2d72c2434a3c668db57961975a9cad57b1ed6a475db8 lib/runtime/acceptance.mjs
|
|
180
180
|
99a2edbbb4993307f99adc4a606fd965398eb312f01bbd49a616d2f232a7213e lib/runtime/adapters/claude.mjs
|
|
@@ -209,29 +209,29 @@ b29a9f9a9a60836271545e3f75346d51d7d0bf1ac1eccbfa3a624717f78beebb lib/runtime/ta
|
|
|
209
209
|
5b14c4ffdff116a005601b737e94484e9eebdea746ec0e296ca7a34be2b7ea4a lib/runtime/verification.mjs
|
|
210
210
|
7e75d9bb51eac4bd1a6fccf45fb195c526bb3bc43cf0b04398b85ff7723f8689 lib/safe-fs/index.mjs
|
|
211
211
|
4174dfcfcd4d69a5486b91108ec03279cfd50644109c7457aa87f9ac877fb1ac lib/safe-fs/native.mjs
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
5b6f7a0093cb75b494dafcf11dbd9690d60df6b1be3a29619daa6cef9144fa56 lib/tui/app.mjs
|
|
213
|
+
5e9ff0259e4e810b935bd2b51ddd97812d35bce636078c15a38de9143b5c5ab4 lib/tui/custom-preset.mjs
|
|
214
|
+
718e0052a9387b58d6ce04e05e7c152f045a5aefe678701efa8374a3bb258874 lib/tui/render.mjs
|
|
215
|
+
c35ab2affcc64d05b00011c7a00840faa481e594b7d95f53b322dfe6bd2e1110 lib/tui/setup.mjs
|
|
216
|
+
133a0a0370aaa5d48213bd8f7e523803c750b99e9afc20f27a1e28150d2c3241 lib/tui/terminal.mjs
|
|
217
217
|
4d6c292344fbc16f2961635d8264d6cb854f759a6a870c4345524e67138372d9 lib/watch/args.mjs
|
|
218
218
|
52c7a20bbef0452635a3196e838dc4eb3c2d0420d448bbb679d3cb32d6642566 lib/watch/discover-claude.mjs
|
|
219
219
|
05d087b85cd08a9207d8ae36abe00651a94c7a2f3af67140bdd3740acb914f2b lib/watch/discover-codex.mjs
|
|
220
220
|
bfc12c581ab12b973ed5eb40d3450df187f988496559239e816bba3da500c1c1 lib/watch/dispatch.mjs
|
|
221
221
|
fb2b985c2e33726a5fd98b835b365c7b67b438fdeb6e03d6cf4f000089ead0fe lib/watch/git.mjs
|
|
222
|
-
|
|
222
|
+
3bb15bd6ffb6c3e83641ade0da62cf7c6932daf6b07f32709a3d3dcabe2b5319 lib/watch/index.mjs
|
|
223
223
|
2707c6a3825a368650e7333f7e72eae841f21b95afcb7f3918a35ed4caf190cf lib/watch/labels.mjs
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
63b89cbf95696b13370c14d8443641b0373393ceabb8a59bec1b5cdaf4e82f52 lib/watch/model.mjs
|
|
225
|
+
0e9418d95020f19822067b81c0292a59f677a71a9f46415f6771b5a3a2c7001b lib/watch/normalize-claude.mjs
|
|
226
|
+
b6a2cf6f227ff2b3fa7295ce2c97f5e4632cb3eb473fd3b8ebc6c0699c1ce5bc lib/watch/normalize-codex.mjs
|
|
227
227
|
4037619af1c19c058179d8567d301ce1cdba4ac82c79f63436fb17de4fe7f45d lib/watch/policy.mjs
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
cbc8a4aae777e24453412e6b55f6148db5a1f65c74f256b4f06f8006d1a980bd lib/watch/render.mjs
|
|
229
|
+
b875cdf21e0057855f48d7e26ef4ad58e48239b23a2b1d27a6dc296d0b330234 lib/watch/scope.mjs
|
|
230
230
|
23f4aaa18d1492de117d3d24fa755e3c5486d72e9d0f8c4834736095de53e078 lib/watch/tail.mjs
|
|
231
|
-
|
|
231
|
+
5d07fc41edfef103ce0e7796b7287aab86ae0aa05102512e04c983598b1ac2f8 lib/watch/watcher.mjs
|
|
232
232
|
ff9c33c8b3c2bd466d54ffbe4c7139ccd87c79c7de34a6c4cde92e9f6e9b42d2 native/binding.c
|
|
233
233
|
205bedc1dee1a9ffa58124c6e21256a1f0cbe24f06f7c8d7cb0b99524cfab9d0 native/binding.gyp
|
|
234
|
-
|
|
234
|
+
002c53e428dfc38f973033e2e190156236298d9aee7ab5c772b6dbf542b160e6 package.json
|
|
235
235
|
208c65cfde244d39ce45c3cf1b0acb128f04d21199b6b3fb5466e62db5b64af9 prebuilds/darwin-arm64/arc_safe_fs.node
|
|
236
236
|
572887ac794d10a8b921d8168ea2328e31f05b45987611ff02c83114dba901af prebuilds/darwin-x64/arc_safe_fs.node
|
|
237
237
|
2bb9443021f9d873712b26321de733eddd6794c45f0bc79e2d5dc98669196635 prebuilds/index.json
|
package/README.md
CHANGED
|
@@ -36,23 +36,28 @@ The TUI requires terminal input and output. Public commands: `arc`, `arc watch`,
|
|
|
36
36
|
|
|
37
37
|
## Watch sessions
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
User and agent messages are shown in full; other events use one line.
|
|
41
|
-
Tool and command outputs are never shown; common secret patterns are masked, but masking is not complete.
|
|
42
|
-
Codex Desktop sessions are excluded. Bridge roles on Codex hosts remain held as `host_sandbox_blocked` and appear once they run.
|
|
43
|
-
Use `arc watch --help` for scope, platform, history and JSON options; press Ctrl-C to stop.
|
|
39
|
+

|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
`arc watch` streams Claude Code and Codex activity read-only. Default scope: every worktree of the current Git repository, or the current directory outside Git.
|
|
42
|
+
|
|
43
|
+
- **Shown:** user and agent messages in full; other events on one line.
|
|
44
|
+
- **Hidden:** tool and command outputs. Common secret patterns are masked, but masking is not complete.
|
|
45
|
+
- **Excluded:** Codex Desktop sessions. Bridge roles on Codex hosts stay held as `host_sandbox_blocked` until they run.
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Run `arc watch --help` for scope, platform, history and JSON options; press Ctrl-L to clear the screen and Ctrl-C to stop.
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
## Models and language
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+

|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
- **Orchestrator:** the current conversation model.
|
|
54
|
+
- **Specialist roles:** active settings in [Codex](codex/skill/models.toml) or [Claude Code](claude/skill/models.toml); edit them with `Change Models`.
|
|
55
|
+
- **Claude & Codex:** each role runs on either platform. New configurations put Planner and Reviewer on Claude and the rest on Codex. `Apply` publishes; start a new session to load new profiles.
|
|
56
|
+
- **Catalogs:** model and effort choices come from packaged catalogs, with no API key or model-list call; a choice is not proof that your account can use it.
|
|
57
|
+
- **Language:** the TUI is in English; the selected response language applies to agents in new sessions.
|
|
58
|
+
- **Execution support:** `claude-cli` hosts run native roles and Codex bridges. `codex-cli` hosts hold every bridge as `host_sandbox_blocked`; Claude bridge Implementer and QA roles on a Codex host are also held as `permission_scope_unverified`. On Desktop, every role (native and bridge) is held as `environment_unverified` pending a future ARC update. After upgrading to `cooperative-8`, run Install / Update again.
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
Authentication checks, role execution support per environment, and switching between composite and single-platform modes: see [Harness operation](docs/harness-operation.md).
|
|
56
61
|
|
|
57
62
|
## Guides
|
|
58
63
|
|
|
@@ -29,6 +29,8 @@ Do not execute commands. Return visualization/execution needs beyond available t
|
|
|
29
29
|
|
|
30
30
|
{{ARC_AGENT_FRAGMENT:planner.workflow-contract}}
|
|
31
31
|
|
|
32
|
+
{{ARC_AGENT_FRAGMENT:planner.exploration-density}}
|
|
33
|
+
|
|
32
34
|
{{ARC_AGENT_FRAGMENT:planner.task-shape}}
|
|
33
35
|
|
|
34
36
|
{{ARC_AGENT_FRAGMENT:planner.commit-boundary}}
|
|
@@ -89,7 +89,7 @@ The [task envelope](handoff.md#orchestrator-direct-path-for-small-tasks) fits th
|
|
|
89
89
|
|
|
90
90
|
## Planner dispatch efficiency
|
|
91
91
|
|
|
92
|
-
Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Orchestrator can read a few already identified files; route material research and broad static exploration to Scouter.
|
|
92
|
+
Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Orchestrator can read a few already identified files; route material research and broad static exploration to Scouter. Planner briefs carry path/line-verified evidence and a Read/Grep exploration budget (default about 15 for Bounded and about 30 for Architectural when no task-specific number is set; state a number before depth is chosen or for Spike work); additional broad exploration goes to Scouter, not Planner. Never reuse a Planner across stages. Within the design/brainstorming stage one Planner handles the initial draft, its consolidated correction and any eligible further call; within a spec or plan stage, that stage's Planner is reused only for a budget-hold delta. After design approval, the spec stage and the plan stage each use a fresh Planner whose brief contains every required field plus saved document paths and approved versions; cite a prior brief only when it is an accessible file. A Planner return that stops at the budget with a Scouter request is an input hold, not a missing or failed draft: after Scouter evidence arrives, resend that stage's brief as a delta to the same stage Planner, which counts as new input. In the design stage, a resend after a return without a draft uses the consolidated-correction opportunity; later further calls still need new input. Orchestrator may set a handback size limit in the brief.
|
|
93
93
|
|
|
94
94
|
<a id="models"></a>
|
|
95
95
|
## Models
|
|
@@ -37,8 +37,8 @@ Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded pl
|
|
|
37
37
|
|
|
38
38
|
1. Preflight relevant policy/references/profiles/tests/parity/manifest/conflicts. Apply formal-target and coordination provenance/input/local-skill gates, including required paths, approved bounded read alternatives and return conditions. Missing inputs/conflicts hold drafting. Read recovery grants no preparation/check/write/approval authority.
|
|
39
39
|
2. Maintain a compact ledger of original requirements/IDs, approved/open decisions, exclusions and scope deltas. Consolidate intervening user changes into one brief delta. Separate approvals, path/line-verified facts, assumptions and open decisions.
|
|
40
|
-
3.
|
|
41
|
-
4. Planner returns the complete proportional first draft and self-review. Orchestrator saves and reviews it against the fixed checklist: scope/evidence; targets/ownership/paths; policy/conflicts; task boundaries/dependencies/criteria; checks/evidence/holds; roles/approval/commit boundaries; completeness. For spec or plan, Orchestrator directly revises the same document, including substantive omissions, before requesting approval. New product decisions outside approved scope require user input first; Orchestrator then revises the document. Missing or failed first drafts stop the stage and do not transfer initial authorship.
|
|
40
|
+
3. Never reuse a Planner instance across stages. Within the design/brainstorming stage, reuse one Planner instance for the initial draft, its consolidated correction and any eligible further call while role, context and source remain valid; within a spec or plan stage, reuse that stage's Planner only for a budget-hold delta. After design approval, the spec stage and the plan stage each use a fresh Planner; its initial brief contains every required field plus saved document paths and approved versions, and cites a prior brief only when that brief is an accessible file. Send one complete stage-specific initial brief. Include verified source/HEAD/ownership, selected target intent and planned paths (or prepared target for later stages), and scope/exclusions/depth/dependencies/shared contracts/criteria/checks/evidence/holds. Include preceding approved versions and paths, current behavior and connected source/generated/runtime/installer/docs, policy conflicts/resolution direction and exact deliverable. Visual work includes approved sources/versions/criteria/open interpretations. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields; inaccessible conversations or hashes alone cannot replace required inputs. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose, approval scope and accessible context. When source, target or scope changed, reconfirm affected inputs.
|
|
41
|
+
4. Planner returns the complete proportional first draft and self-review. Bounded plan density follows the Planner profile's ARC adaptation (per task ID/title, goal/scope/files, predecessors, criteria and required checks; short self-review checklist), while Architectural plans keep full writing-plans.md density. Briefs carry the Read/Grep exploration budget and may set a handback size limit. A return that stops at the exploration budget with a Scouter request is an input hold, not a missing or failed first draft; resend the stage brief as a delta with the Scouter evidence to the same stage Planner. In the design stage, a resend after a return without a draft uses the consolidated-correction opportunity. Orchestrator saves and reviews it against the fixed checklist: scope/evidence; targets/ownership/paths; policy/conflicts; task boundaries/dependencies/criteria; checks/evidence/holds; roles/approval/commit boundaries; completeness. For spec or plan, Orchestrator directly revises the same document, including substantive omissions, before requesting approval. New product decisions outside approved scope require user input first; Orchestrator then revises the document. Missing or failed first drafts stop the stage and do not transfer initial authorship.
|
|
42
42
|
5. For design and brainstorming, finish the checklist before one consolidated correction covering every substantive omission with criterion/defect/evidence/expected fix. Use deltas/`unchanged`; never split by omission. Further calls after correction need approved material scope/evidence changes or concrete unmet checklist items plus meaningful new input/criterion progress. State changed input/target criterion/expected artifact/progress. Existing-scope omissions need no renewed scope approval. Repeated unmet criteria without new input/evidence/progress hold the stage; report criterion/observation/exact unblock decision. Do not repeat resolved questions or count rewording/agent replacement as progress.
|
|
43
43
|
|
|
44
44
|
For design and brainstorming, allow initial draft and one consolidated correction. Orchestrator handles reformatting, re-expression, save and patch errors without Planner calls. Separate substantive work uses normal gates. Design/spec/plan stages remain separately ordered; spec approval precedes dependent planning. Add no fixed call cap/profile count condition or incomplete-draft acceptance.
|
|
@@ -149,7 +149,7 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
149
149
|
- [review.significant-plan] Significant/high-risk plan work follows Implementer → required fresh QA → Orchestrator acceptance and focused commit for each task. 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 gate. Preserve required checks and necessary finding rechecks.
|
|
150
150
|
- [review.final-plan-recheck] Complete required QA and QA failure rechecks before the initial final overall Reviewer review. Once that review begins on plan work, every final Reviewer finding, including behavior, follows Implementer → Reviewer without QA reassignment until resolved. Keep corrections uncommitted through Reviewer rechecks, then accept and create one focused follow-up commit. Separate QA findings follow Implementer → QA. Preserve required QA outside this final Reviewer exception.
|
|
151
151
|
- [planning.plan-amend] Task progress records preserving the approved contract need no new user approval; Orchestrator includes the completed task's own records in its accepted implementation commit, without amending the original planning-document commit, creating history mappings or making a separate docs/fixup commit for them; record classification, reason and actual time as applicable. Spec/plan content changes other than task progress records require applicable approval and preparation; changes to goals, scope, criteria, method, risk, dependencies or required verification need revised-version approval and preparation before affected work. For these content changes Orchestrator MUST amend the original planning-document commit at a safe boundary; never create a separate docs or fixup commit. For these non-progress content amendments, preserve actual approval chronology, recoverable old/new content, hashes, versions and old→new SHA mappings; never authorize past work retroactively. For these amendments rewrite only unpublished, unshared local linear history with clear ownership and no merges. Unknown publication/ownership, unexpected state or replay conflicts stop rewriting; no force push or fallback document commit. Preserve implementation task boundaries and revalidate affected evidence. This obligation does not authorize amending implementation commits or rewriting history generally. Follow planning, handoff-prep, commit and verification for the full contract.
|
|
152
|
-
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance
|
|
152
|
+
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid; after design approval, use a fresh Planner instance for each spec and plan stage, whose initial brief contains every required field, saved document paths and approved versions. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. When source, target or scope changed, reconfirm affected inputs. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, allow the initial draft and one consolidated correction. Orchestrator reviews once with the fixed checklist and sends one consolidated correction using changed fields only. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. Do not split omissions, repeat resolved items or count rewording/agent replacement as progress. Do not invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. Preserve separate sequential design/spec/plan approvals. Add no fixed call cap or profile call-count conditions, and never accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.
|
|
153
153
|
- [platform.claude] Existing per-role tool allowlists reduce available tools; Bash and role contracts are not a filesystem sandbox. ARC supplies no native observer hook or Bash Git guard; Git restrictions remain prompt-level role contracts.
|
|
154
154
|
[ARC role policy: contract end]
|
|
155
155
|
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"preceding-approval"
|
|
375
375
|
],
|
|
376
376
|
"authority": "orchestrator",
|
|
377
|
-
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance
|
|
377
|
+
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid; after design approval, use a fresh Planner instance for each spec and plan stage, whose initial brief contains every required field, saved document paths and approved versions. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. When source, target or scope changed, reconfirm affected inputs. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, allow the initial draft and one consolidated correction. Orchestrator reviews once with the fixed checklist and sends one consolidated correction using changed fields only. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. Do not split omissions, repeat resolved items or count rewording/agent replacement as progress. Do not invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. Preserve separate sequential design/spec/plan approvals. Add no fixed call cap or profile call-count conditions, and never accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.",
|
|
378
378
|
"controls": {
|
|
379
379
|
"codex": "prompt",
|
|
380
380
|
"claude": "prompt"
|
|
@@ -25,6 +25,8 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
25
25
|
|
|
26
26
|
{{ARC_AGENT_FRAGMENT:planner.workflow-contract}}
|
|
27
27
|
|
|
28
|
+
{{ARC_AGENT_FRAGMENT:planner.exploration-density}}
|
|
29
|
+
|
|
28
30
|
{{ARC_AGENT_FRAGMENT:planner.task-shape}}
|
|
29
31
|
|
|
30
32
|
{{ARC_AGENT_FRAGMENT:planner.commit-boundary}}
|
|
@@ -87,7 +87,7 @@ The [task envelope](handoff.md#orchestrator-direct-path-for-small-tasks) fits th
|
|
|
87
87
|
|
|
88
88
|
## Planner dispatch efficiency
|
|
89
89
|
|
|
90
|
-
Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Orchestrator can read a few already identified files; route material research and broad static exploration to Scouter.
|
|
90
|
+
Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Orchestrator can read a few already identified files; route material research and broad static exploration to Scouter. Planner briefs carry path/line-verified evidence and a Read/Grep exploration budget (default about 15 for Bounded and about 30 for Architectural when no task-specific number is set; state a number before depth is chosen or for Spike work); additional broad exploration goes to Scouter, not Planner. Never reuse a Planner across stages. Within the design/brainstorming stage one Planner handles the initial draft, its consolidated correction and any eligible further call; within a spec or plan stage, that stage's Planner is reused only for a budget-hold delta. After design approval, the spec stage and the plan stage each use a fresh Planner whose brief contains every required field plus saved document paths and approved versions; cite a prior brief only when it is an accessible file. A Planner return that stops at the budget with a Scouter request is an input hold, not a missing or failed draft: after Scouter evidence arrives, resend that stage's brief as a delta to the same stage Planner, which counts as new input. In the design stage, a resend after a return without a draft uses the consolidated-correction opportunity; later further calls still need new input. Orchestrator may set a handback size limit in the brief.
|
|
91
91
|
|
|
92
92
|
<a id="models"></a>
|
|
93
93
|
## Models
|
|
@@ -39,8 +39,8 @@ Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded pl
|
|
|
39
39
|
|
|
40
40
|
1. Preflight relevant policy/references/profiles/tests/parity/manifest/conflicts. Apply formal-target and coordination provenance/input/local-skill gates, including required paths, approved bounded read alternatives and return conditions. Missing inputs/conflicts hold drafting. Read recovery grants no preparation/check/write/approval authority.
|
|
41
41
|
2. Maintain a compact ledger of original requirements/IDs, approved/open decisions, exclusions and scope deltas. Consolidate intervening user changes into one brief delta. Separate approvals, path/line-verified facts, assumptions and open decisions.
|
|
42
|
-
3.
|
|
43
|
-
4. Planner returns the complete proportional first draft and self-review. Orchestrator saves and reviews it against the fixed checklist: scope/evidence; targets/ownership/paths; policy/conflicts; task boundaries/dependencies/criteria; checks/evidence/holds; roles/approval/commit boundaries; completeness. For spec or plan, Orchestrator directly revises the same document, including substantive omissions, before requesting approval. New product decisions outside approved scope require user input first; Orchestrator then revises the document. Missing or failed first drafts stop the stage and do not transfer initial authorship.
|
|
42
|
+
3. Never reuse a Planner instance across stages. Within the design/brainstorming stage, reuse one Planner instance for the initial draft, its consolidated correction and any eligible further call while role, context and source remain valid; within a spec or plan stage, reuse that stage's Planner only for a budget-hold delta. After design approval, the spec stage and the plan stage each use a fresh Planner; its initial brief contains every required field plus saved document paths and approved versions, and cites a prior brief only when that brief is an accessible file. Send one complete stage-specific initial brief. Include verified source/HEAD/ownership, selected target intent and planned paths (or prepared target for later stages), and scope/exclusions/depth/dependencies/shared contracts/criteria/checks/evidence/holds. Include preceding approved versions and paths, current behavior and connected source/generated/runtime/installer/docs, policy conflicts/resolution direction and exact deliverable. Visual work includes approved sources/versions/criteria/open interpretations. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields; inaccessible conversations or hashes alone cannot replace required inputs. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose, approval scope and accessible context. When source, target or scope changed, reconfirm affected inputs.
|
|
43
|
+
4. Planner returns the complete proportional first draft and self-review. Bounded plan density follows the Planner profile's ARC adaptation (per task ID/title, goal/scope/files, predecessors, criteria and required checks; short self-review checklist), while Architectural plans keep full writing-plans.md density. Briefs carry the Read/Grep exploration budget and may set a handback size limit. A return that stops at the exploration budget with a Scouter request is an input hold, not a missing or failed first draft; resend the stage brief as a delta with the Scouter evidence to the same stage Planner. In the design stage, a resend after a return without a draft uses the consolidated-correction opportunity. Orchestrator saves and reviews it against the fixed checklist: scope/evidence; targets/ownership/paths; policy/conflicts; task boundaries/dependencies/criteria; checks/evidence/holds; roles/approval/commit boundaries; completeness. For spec or plan, Orchestrator directly revises the same document, including substantive omissions, before requesting approval. New product decisions outside approved scope require user input first; Orchestrator then revises the document. Missing or failed first drafts stop the stage and do not transfer initial authorship.
|
|
44
44
|
5. For design and brainstorming, finish the checklist before one consolidated correction covering every substantive omission with criterion/defect/evidence/expected fix. Use deltas/`unchanged`; never split by omission. Further calls after correction need approved material scope/evidence changes or concrete unmet checklist items plus meaningful new input/criterion progress. State changed input/target criterion/expected artifact/progress. Existing-scope omissions need no renewed scope approval. Repeated unmet criteria without new input/evidence/progress hold the stage; report criterion/observation/exact unblock decision. Do not repeat resolved questions or count rewording/agent replacement as progress.
|
|
45
45
|
|
|
46
46
|
For design and brainstorming, allow initial draft and one consolidated correction. Orchestrator handles reformatting, re-expression, save and patch errors without Planner calls. Separate substantive work uses normal gates. Design/spec/plan stages remain separately ordered; spec approval precedes dependent planning. Add no fixed call cap/profile count condition or incomplete-draft acceptance.
|
|
@@ -157,7 +157,7 @@ Generated from lib/policy/role-policy.json; do not edit this managed section man
|
|
|
157
157
|
- [review.significant-plan] Significant/high-risk plan work follows Implementer → required fresh QA → Orchestrator acceptance and focused commit for each task. 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 gate. Preserve required checks and necessary finding rechecks.
|
|
158
158
|
- [review.final-plan-recheck] Complete required QA and QA failure rechecks before the initial final overall Reviewer review. Once that review begins on plan work, every final Reviewer finding, including behavior, follows Implementer → Reviewer without QA reassignment until resolved. Keep corrections uncommitted through Reviewer rechecks, then accept and create one focused follow-up commit. Separate QA findings follow Implementer → QA. Preserve required QA outside this final Reviewer exception.
|
|
159
159
|
- [planning.plan-amend] Task progress records preserving the approved contract need no new user approval; Orchestrator includes the completed task's own records in its accepted implementation commit, without amending the original planning-document commit, creating history mappings or making a separate docs/fixup commit for them; record classification, reason and actual time as applicable. Spec/plan content changes other than task progress records require applicable approval and preparation; changes to goals, scope, criteria, method, risk, dependencies or required verification need revised-version approval and preparation before affected work. For these content changes Orchestrator MUST amend the original planning-document commit at a safe boundary; never create a separate docs or fixup commit. For these non-progress content amendments, preserve actual approval chronology, recoverable old/new content, hashes, versions and old→new SHA mappings; never authorize past work retroactively. For these amendments rewrite only unpublished, unshared local linear history with clear ownership and no merges. Unknown publication/ownership, unexpected state or replay conflicts stop rewriting; no force push or fallback document commit. Preserve implementation task boundaries and revalidate affected evidence. This obligation does not authorize amending implementation commits or rewriting history generally. Follow planning, handoff-prep, commit and verification for the full contract.
|
|
160
|
-
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance
|
|
160
|
+
- [planning.planner-brief] Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid; after design approval, use a fresh Planner instance for each spec and plan stage, whose initial brief contains every required field, saved document paths and approved versions. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. When source, target or scope changed, reconfirm affected inputs. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, allow the initial draft and one consolidated correction. Orchestrator reviews once with the fixed checklist and sends one consolidated correction using changed fields only. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. Do not split omissions, repeat resolved items or count rewording/agent replacement as progress. Do not invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. Preserve separate sequential design/spec/plan approvals. Add no fixed call cap or profile call-count conditions, and never accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.
|
|
161
161
|
- [platform.codex] Role restrictions are prompt-level contracts, not a filesystem sandbox. ARC supplies no native observer hook or role-specific Git guard. Existing shell capabilities are retained because static read access after shell reduction has not been verified; Implementer and QA need shell for approved checks.
|
|
162
162
|
[ARC role policy: contract end]
|
|
163
163
|
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"preceding-approval"
|
|
375
375
|
],
|
|
376
376
|
"authority": "orchestrator",
|
|
377
|
-
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance
|
|
377
|
+
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid; after design approval, use a fresh Planner instance for each spec and plan stage, whose initial brief contains every required field, saved document paths and approved versions. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. When source, target or scope changed, reconfirm affected inputs. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, allow the initial draft and one consolidated correction. Orchestrator reviews once with the fixed checklist and sends one consolidated correction using changed fields only. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. Do not split omissions, repeat resolved items or count rewording/agent replacement as progress. Do not invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. Preserve separate sequential design/spec/plan approvals. Add no fixed call cap or profile call-count conditions, and never accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.",
|
|
378
378
|
"controls": {
|
|
379
379
|
"codex": "prompt",
|
|
380
380
|
"claude": "prompt"
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"preceding-approval"
|
|
375
375
|
],
|
|
376
376
|
"authority": "orchestrator",
|
|
377
|
-
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance
|
|
377
|
+
"text": "Follow planning.md's Planner drafting preparation and review procedure, including preflight, ledger, evidence classification, target preparation, preceding approvals, provenance and reference gates. Before Planner dispatch, evaluate F1–F8 direct-path eligibility and Bounded plan-omission eligibility independently. Enter each path only when all of that path's existing conditions are proven; if neither path qualifies, use normal full evaluation. Send one complete stage-specific initial brief. Reuse the same Planner instance only within the design/brainstorming stage while its role, context and source remain valid; after design approval, use a fresh Planner instance for each spec and plan stage, whose initial brief contains every required field, saved document paths and approved versions. Follow-up briefs send changed fields and cite an accessible prior brief for unchanged fields. Reuse evidence only for the same source set, absolute locator, resolved path, content fingerprint, purpose and approval scope in an accessible matching context. When source, target or scope changed, reconfirm affected inputs. Planner returns a complete proportional first draft and self-review. Orchestrator reviews and directly revises the same spec or plan when needed. A missing or failed first draft does not transfer initial authorship to Orchestrator. New product decisions outside approved scope require user input before Orchestrator revises the document. For design and brainstorming, allow the initial draft and one consolidated correction. Orchestrator reviews once with the fixed checklist and sends one consolidated correction using changed fields only. Further calls require user-approved material scope/evidence changes or concrete unmet checklist items after correction, plus meaningful new input or criterion-state progress. State changed input, target criterion, expected artifact and expected progress. Repeated unmet criteria without new input, evidence or progress hold the stage; report the criterion, observed evidence and exact unblock input/decision. Do not split omissions, repeat resolved items or count rewording/agent replacement as progress. Do not invoke Planner only for reformatting, re-expression, save errors or patch-application errors; Orchestrator handles these. Evaluate separate substantive work under the normal Planner gate. Preserve separate sequential design/spec/plan approvals. Add no fixed call cap or profile call-count conditions, and never accept an incomplete draft. Keep user progress brief and based on Planner status without relaying draft content. At approval, present the integrated, saved and reviewed Markdown without repeating its body in chat.",
|
|
378
378
|
"controls": {
|
|
379
379
|
"codex": "prompt",
|
|
380
380
|
"claude": "prompt"
|
|
@@ -69,6 +69,10 @@
|
|
|
69
69
|
"id": "planner.workflow-contract",
|
|
70
70
|
"text": "- Draft only designs/specs/plans for Orchestrator. Do not implement, verify, review or save documents. Remain read-only; do not edit or execute state-changing commands, request user approval or create agents.\n- Use supplied brief/prior evidence. Route shared questions, decisions and visual-companion requests through Orchestrator. Wait at applicable gates for required answers/decisions. Orchestrator owns development approval and completion.\n- For assigned feature/design/behavior work, read brief-cited `references/brainstorming.md`. Return context, Spike/Bounded/Architectural path, designs/options, tradeoffs, criteria, assumptions and focused questions. Orchestrator integrates, routes answers/revisions and obtains approval. After architectural design approval, return a complete spec and self-review; Orchestrator saves/reviews and directly revises the same spec when needed, then obtains written-spec approval.\n- After written-spec approval, Architectural work always reads brief-cited `references/writing-plans.md`, regardless of size, locality or risk. Bounded work follows Orchestrator's separate depth assessment. Skip planning only for one local change, no dependent stages/cross-component shared state/lifecycle/integration-order concerns and one focused verification path.\n- When needed, return the complete proportional plan, dependencies, assumptions/open decisions, verification needs and self-review. Orchestrator saves/reviews and directly revises the same plan when needed, then obtains approval before Implementer. Bounded/no-plan labels waive nothing.\n- If a skill requires writing, approval or implementation, return the draft and next actions instead. Skills add no agents. Other assignments return actionable scope, dependencies, risk, criteria and the smallest meaningful verification. Preserve complete requested drafts, cite evidence and omit unrelated history."
|
|
71
71
|
},
|
|
72
|
+
{
|
|
73
|
+
"id": "planner.exploration-density",
|
|
74
|
+
"text": "- Use brief evidence first. For broad additional facts, return a Scouter lookup request to Orchestrator instead of exploring yourself. Read only what is needed to pin edit locations; do not reread unchanged files already in context.\n- Follow the brief's Read/Grep budget; without one, use about 15 for Bounded and about 30 for Architectural. If more is needed, stop and return what is missing. Before depth is chosen or for Spike work, expect a number in the brief; if none is given, use about 15. Upstream brainstorming's \"Look Before You Ask\" reading is satisfied within brief evidence and this budget. The exploration budget is not a Planner call-count limit.\n- When the brief's depth is Bounded, include per task ID/title, goal/scope/files, predecessors, criteria and required checks/evidence. Exact signatures, per-step test code, Review Focus and the four-part self-review may be omitted in favor of a short self-review checklist. Architectural keeps full `writing-plans.md` density. This ARC adaptation takes precedence over `writing-plans.md` density for Bounded only; upstream text is unchanged. This density adaptation waives no approvals, required checks, QA or Reviewer obligations.\n- Orchestrator may set a handback size limit in the brief."
|
|
75
|
+
},
|
|
72
76
|
{
|
|
73
77
|
"id": "qa.contract-intro",
|
|
74
78
|
"text": "This profile is the complete QA contract. "
|
|
@@ -128,6 +132,7 @@
|
|
|
128
132
|
"claude.profile-guidance",
|
|
129
133
|
"planner.target-evidence",
|
|
130
134
|
"planner.workflow-contract",
|
|
135
|
+
"planner.exploration-density",
|
|
131
136
|
"planner.task-shape",
|
|
132
137
|
"planner.commit-boundary",
|
|
133
138
|
"planner.visual-question",
|
|
@@ -202,6 +207,7 @@
|
|
|
202
207
|
"common.resume-gates",
|
|
203
208
|
"planner.target-evidence",
|
|
204
209
|
"planner.workflow-contract",
|
|
210
|
+
"planner.exploration-density",
|
|
205
211
|
"planner.task-shape",
|
|
206
212
|
"planner.commit-boundary",
|
|
207
213
|
"planner.visual-question",
|
package/lib/prompts/render.mjs
CHANGED
|
@@ -20,6 +20,7 @@ const EXPECTED = {
|
|
|
20
20
|
"claude.profile-guidance",
|
|
21
21
|
"planner.target-evidence",
|
|
22
22
|
"planner.workflow-contract",
|
|
23
|
+
"planner.exploration-density",
|
|
23
24
|
"planner.task-shape",
|
|
24
25
|
"planner.commit-boundary",
|
|
25
26
|
"planner.visual-question",
|
|
@@ -79,6 +80,7 @@ const EXPECTED = {
|
|
|
79
80
|
"common.resume-gates",
|
|
80
81
|
"planner.target-evidence",
|
|
81
82
|
"planner.workflow-contract",
|
|
83
|
+
"planner.exploration-density",
|
|
82
84
|
"planner.task-shape",
|
|
83
85
|
"planner.commit-boundary",
|
|
84
86
|
"planner.visual-question",
|
package/lib/tui/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {readFileSync} from 'node:fs';
|
|
2
2
|
import {createTerminalSession} from './terminal.mjs';
|
|
3
|
-
import {escapeTerminalText,navigationHint,wrapDetailRows} from './render.mjs';
|
|
3
|
+
import {escapeTerminalText,navigationHint,statusSpans,wrapDetailRows,wordmarkRows} from './render.mjs';
|
|
4
4
|
import {createManagementContext,prepareOperation,executeOperation,readCompositeConfig,currentInstallMode} from '../management/operations.mjs';
|
|
5
5
|
import {collectStatus} from '../management/status.mjs';
|
|
6
6
|
import {runSetup,loadRoleDefaults} from './setup.mjs';
|
|
@@ -11,18 +11,23 @@ function goHome(){throw Object.assign(Error('Return home'),{code:'ARC_TUI_HOME'}
|
|
|
11
11
|
function interrupted(){return Object.assign(Error('Session interrupted'),{code:'ARC_CANCELLED'});}
|
|
12
12
|
export function createTuiInterface(session,{input,controller}={}){
|
|
13
13
|
async function event(){const e=await session.nextEvent();if(e.name==='interrupt')throw interrupted();if(e.name==='eof')throw Object.assign(Error('Session closed'),{code:'ARC_TUI_EOF'});if(e.name==='error')throw e.error;return e;}
|
|
14
|
-
async function menu(title,rows,{selected=0,info=[],
|
|
14
|
+
async function menu(title,rows,{selected=0,info=[],infoTones,backRow=false,backLabel='back',wordmark=false,version,renderBody,onHorizontal,refreshMs}={}){
|
|
15
15
|
const actions=backRow?[...rows,'Back']:rows;
|
|
16
16
|
selected=actions.length?Math.max(0,Math.min(selected,actions.length-1)):0;
|
|
17
|
-
|
|
17
|
+
const animate=wordmark&&session.frameMs>0,tickMs=animate?session.frameMs:refreshMs;
|
|
18
|
+
let pending,settled,wake,timer,blink=true,frame=0,repainting=false;
|
|
18
19
|
try{while(true){
|
|
19
|
-
const viewport=session.viewport(),display=actions
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
20
|
+
const viewport=session.viewport(),display=actions,displayIndex=selected,information=[],tones=[],spans=[];
|
|
21
|
+
const details=typeof info==='function'?info({selected,...viewport}):info;
|
|
22
|
+
for(const [index,row] of details.entries()){const wrapped=wrapDetailRows([row],viewport.columns),tone=infoTones?.[index],states=tone==='status'?statusSpans(row):[];let offset=0;for(const [line,text] of wrapped.entries()){const end=offset+[...text].length;information.push(text);tones.push(line&&tone==='diagnostic'?'diagnostic-cont':tone);spans.push(states.filter(span=>span.from<end&&span.to>offset).map(span=>({...span,from:Math.max(span.from,offset)-offset,to:Math.min(span.to,end)-offset})));offset=end;}}
|
|
23
|
+
while(information.at(-1)===''){information.pop();tones.pop();}if(information.length){information.push('');tones.push(undefined);}
|
|
24
|
+
const capacity=Math.max(1,viewport.rows-(wordmark?wordmarkRows(viewport):1)-information.length-4),offset=Math.max(0,Math.min(displayIndex-capacity+1,display.length-capacity)),visible=display.slice(offset,offset+capacity);
|
|
25
|
+
const screen={title,wordmark,version,frame,rows:[...information,...visible],selected:actions.length?information.length+displayIndex-offset:undefined,hint:navigationHint('menu',{backLabel}),...(display.length>capacity?{position:(offset+1)+'-'+Math.min(offset+capacity,display.length)+'/'+display.length}:{})};
|
|
26
|
+
if(infoTones){screen.rowTones=[...tones,...visible.map(()=>undefined)];screen.rowStatusSpans=spans;}
|
|
27
|
+
const body=renderBody?.({selected,blink,...viewport});if(body){delete screen.rowTones;delete screen.rowStatusSpans;screen.rows=body.rows;screen.selected=body.selected;screen.showSelection=body.showSelection;screen.compactFooter=body.compactFooter;if(Object.hasOwn(body,'position'))screen.position=body.position;}
|
|
28
|
+
const rendered=(repainting?(session.repaint??session.render):session.render).call(session,screen);pending??=event().then(e=>{settled={e};wake?.();},error=>{settled={error};wake?.();});
|
|
29
|
+
if(tickMs>0){if(!settled)await new Promise(resolve=>{wake=resolve;timer=setTimeout(resolve,tickMs);});clearTimeout(timer);timer=undefined;wake=undefined;if(!settled){if(animate)frame++;else blink=!blink;repainting=true;continue;}}else await pending;
|
|
30
|
+
if(Object.hasOwn(settled,'error'))throw settled.error;const e=settled.e;pending=undefined;settled=undefined;repainting=false;
|
|
26
31
|
if(e.name==='up'&&actions.length)selected=(selected+actions.length-1)%actions.length;else if(e.name==='down'&&actions.length)selected=(selected+1)%actions.length;else if((e.name==='left'||e.name==='right')&&onHorizontal)onHorizontal({direction:e.name,selected,...viewport});else if(e.name==='escape'){if(backLabel==='exit')return null;goHome();}else if(e.name==='enter'&&actions.length&&rendered.selectionEnabled!==false)return backRow&&selected===rows.length?null:selected;
|
|
27
32
|
}}finally{if(timer!==undefined)clearTimeout(timer);}
|
|
28
33
|
}
|
|
@@ -35,7 +40,7 @@ export function createTuiInterface(session,{input,controller}={}){
|
|
|
35
40
|
if(e.name==='down')offset=Math.min(last,offset+1);else if(e.name==='up')offset=Math.max(0,offset-1);else if(e.name==='escape')goHome();else if(e.name==='enter')return true;
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
|
-
async function busy(action){
|
|
43
|
+
async function busy(action){let frame=0,timer;const screen={title:'Working',mode:'busy',rows:[],hint:navigationHint('busy'),frame};session.render(screen);session.setBusy(true);const wasFlowing=input?.readableFlowing;const abort=()=>{if(!controller?.signal.aborted)controller?.abort();},onData=chunk=>{if(String(chunk).includes('\x03')||String(chunk).includes('\x04'))abort();};input?.on('data',onData);input?.prependListener('end',abort);input?.prependListener('close',abort);try{if(input?.readableEnded||input?.destroyed){abort();throw interrupted();}if(controller?.signal.aborted)throw interrupted();if(session.frameMs>0)timer=setInterval(()=>{try{(session.repaint??session.render).call(session,{...screen,frame:++frame});}catch{clearInterval(timer);}},session.frameMs);const result=await (session.frameMs>0?Promise.resolve().then(action):action());if(controller?.signal.aborted){if(typeof result?.code!=='number')throw interrupted();return{...result,code:130,interrupted:true};}return result;}catch(error){if(controller?.signal.aborted&&(['ARC_CANCELLED','ARC_NPM_CANCELLED','ARC_ACQUISITION_CANCELLED','ARC_INSTALL_CANCELLED','ABORT_ERR'].includes(error?.code)||error?.name==='AbortError'))throw interrupted();throw error;}finally{clearInterval(timer);input?.removeListener('data',onData);input?.removeListener('end',abort);input?.removeListener('close',abort);if(wasFlowing!==true)input?.pause?.();session.setBusy(false);session.discardInput();}}
|
|
39
44
|
return{menu,text,page,busy};
|
|
40
45
|
}
|
|
41
46
|
export function resultRows(result){
|
|
@@ -70,7 +75,7 @@ export async function runTui(options={}){
|
|
|
70
75
|
while(true){const statuses=await api.collectStatus(context),ordered=[...statuses].sort((a,b)=>({claude:0,codex:1}[a.platform]??2)-({claude:0,codex:1}[b.platform]??2));
|
|
71
76
|
const label=status=>({codex:'Codex',claude:'Claude'}[status.platform]??status.platform),state=status=>status.state!=='installed'?({absent:'Not Available',incomplete:'Incomplete'}[status.state]??status.state):status.authentication?.reason==='cli_not_found'?'Not Available':status.authentication?.authStatus==='unauthorized'?'Unauthorized':status.authentication?.authStatus==='unknown'?'Incomplete':'Available';
|
|
72
77
|
const compositeAvailable=ordered.some(status=>status.platform==='claude'&&state(status)==='Available')&&ordered.some(status=>status.platform==='codex'&&state(status)==='Available')&&await loadInstallMode()==='composite';
|
|
73
|
-
const info=ordered.length?[compositeAvailable?'Claude & Codex: Available':ordered.map(status=>label(status)+': '+state(status)).join(' / '),...ordered.flatMap(status=>[...(status.diagnostics??[]).map(error=>label(status)+': '+error.message),...(status.authentication?.authStatus==='unknown'&&status.authentication.reason?[label(status)+': '+status.authentication.reason]:[])])]:[];const choice=await ui.menu('ARC',home,{selected,info,backLabel:'exit',wordmark:true,version:packageVersion});if(choice===null||choice===4)return code;selected=choice;
|
|
78
|
+
const info=ordered.length?[compositeAvailable?'Claude & Codex: Available':ordered.map(status=>label(status)+': '+state(status)).join(' / '),...ordered.flatMap(status=>[...(status.diagnostics??[]).map(error=>label(status)+': '+error.message),...(status.authentication?.authStatus==='unknown'&&status.authentication.reason?[label(status)+': '+status.authentication.reason]:[])])]:[];const choice=await ui.menu('ARC',home,{selected,info,infoTones:info.map((_,index)=>index===0?'status':'diagnostic'),backLabel:'exit',wordmark:true,version:packageVersion});if(choice===null||choice===4)return code;selected=choice;
|
|
74
79
|
try{
|
|
75
80
|
let prepared;
|
|
76
81
|
if(choice===0||choice===1){const kind=choice===0?'install':'preset';prepared=await runSetup({ui,statuses,draft,kind,loadRoleDefaults:target=>loadRoleDefaults({context,statuses,target}),loadInstallMode,loadCompositeConfig:()=>api.readCompositeConfig?api.readCompositeConfig(context):readCompositeConfig(context),loadCatalog:target=>api.loadCatalog?api.loadCatalog(target):loadStaticModelCatalog(target,{signal:controller.signal}),prepare:settings=>ui.busy(()=>api.prepareOperation(context,settings))});}
|
|
@@ -53,8 +53,8 @@ function compactMenu(state, items, details, page) {
|
|
|
53
53
|
const offset = Math.max(0, Math.min(focus - capacity + 1, items.length - capacity));
|
|
54
54
|
const visible = items.slice(offset, offset + capacity).map(row => compactRow(row, state.columns));
|
|
55
55
|
return {
|
|
56
|
-
rows: [...information, `←/→: Details ${detailPage + 1}/${detailPages}`, ...visible, '
|
|
57
|
-
selected: selected === items.length ? information.length + visible.length + 2 : information.length + selected - offset +
|
|
56
|
+
rows: [...information, `←/→: Details ${detailPage + 1}/${detailPages}`, '', ...visible, 'Back'],
|
|
57
|
+
selected: selected === items.length ? information.length + visible.length + 2 : information.length + selected - offset + 2,
|
|
58
58
|
position: items.length > capacity ? `${offset + 1}-${offset + visible.length}/${items.length}` : null,
|
|
59
59
|
compactFooter, detailPage, detailPages,
|
|
60
60
|
};
|
|
@@ -94,13 +94,12 @@ export async function selectCatalogPair({ ui, catalog, current, roleName }) {
|
|
|
94
94
|
if (guarded) return modelPager.render(state, rows, compactDetails);
|
|
95
95
|
const information = wrapDetailRows(info(state), state.columns), items = [...rows, 'Back'], display = [], starts = [], lengths = [];
|
|
96
96
|
for (let index = 0; index < items.length; index++) {
|
|
97
|
-
if (index === rows.length) display.push('');
|
|
98
97
|
starts[index] = display.length;
|
|
99
98
|
const block = wrapDetailRows([items[index]], state.columns);
|
|
100
99
|
lengths[index] = block.length;
|
|
101
100
|
display.push(...block);
|
|
102
101
|
}
|
|
103
|
-
const selected = Math.max(0, Math.min(state.selected, items.length - 1)), commonCapacity = Math.max(1, state.rows - information.length - 5), positionNeeded = rows.length +
|
|
102
|
+
const selected = Math.max(0, Math.min(state.selected, items.length - 1)), commonCapacity = Math.max(1, state.rows - information.length - 5), positionNeeded = rows.length + 1 > commonCapacity, reservedRows = positionNeeded ? 5 : 4, requiredRows = information.length + lengths[selected] + reservedRows;
|
|
104
103
|
if (state.rows < requiredRows) return modelPager.render(state, rows, compactDetails);
|
|
105
104
|
const capacity = Math.max(1, state.rows - information.length - reservedRows), maxOffset = Math.max(0, display.length - capacity);
|
|
106
105
|
const offset = Math.max(0, Math.min(maxOffset, starts[selected] + lengths[selected] - capacity));
|
|
@@ -136,7 +135,7 @@ function editorBody(values, controls) {
|
|
|
136
135
|
if (diagram.length === 1 || diagram.length + controls.length + 6 > rows) {
|
|
137
136
|
if (columns < 40 || rows < 16) return viewportGuard({columns, rows});
|
|
138
137
|
const summary = presetPreviewRows(values, {columns, rows, compact: true}).slice(0, ROLES.length).map(row => compactRow(row, columns));
|
|
139
|
-
return {rows: [...summary,
|
|
138
|
+
return {rows: [...summary, ...controls, 'Back'], selected: selected, position: null};
|
|
140
139
|
}
|
|
141
140
|
return {rows: [...diagram, '', ...controls, 'Back'], selected: selected < 3 ? 1 : selected < ROLES.length ? 9 : diagram.length + 1 + selected - ROLES.length, showSelection: selected >= ROLES.length};
|
|
142
141
|
};
|
|
@@ -149,7 +148,7 @@ export async function editPlatformRoles({ui, title, platform, initialRoles, cata
|
|
|
149
148
|
while (true) {
|
|
150
149
|
const values = ROLES.map((role, index) => ({role: names[index] + (!available.has(pairKey(roles[role].model, roles[role][field])) ? ' !' : ''), model: roles[role].model, effort: roles[role][field]}));
|
|
151
150
|
const labels = values.map(value => `${value.role}: ${escapeTerminalText(value.model)} / ${escapeTerminalText(value.effort)}`), controls = [...(settingsRow ? ['Settings'] : []), 'Apply'];
|
|
152
|
-
const selected = await ui.menu(title, [...labels, ...controls], {selected: selectedRole, backRow: true,
|
|
151
|
+
const selected = await ui.menu(title, [...labels, ...controls], {selected: selectedRole, backRow: true, refreshMs: 600, renderBody: editorBody(values, controls)});
|
|
153
152
|
if (selected === null) return null;
|
|
154
153
|
selectedRole = selected;
|
|
155
154
|
if (settingsRow && selected === ROLES.length) return {action: 'settings', roles};
|
|
@@ -172,7 +171,7 @@ export async function editCompositeRoles({ui, initialRoles, catalogs, settingsRo
|
|
|
172
171
|
return {role: names[index] + (missing ? ' !' : ''), ...current};
|
|
173
172
|
});
|
|
174
173
|
const labels = values.map(value => `${value.role}: ${value.platform === 'codex' ? 'Codex' : 'Claude'} / ${escapeTerminalText(value.model)} / ${escapeTerminalText(value.effort)}`), controls = [...(settingsRow ? ['Settings'] : []), 'Apply'];
|
|
175
|
-
const selected = await ui.menu('Claude & Codex', [...labels, ...controls], {selected: selectedRole, backRow: true,
|
|
174
|
+
const selected = await ui.menu('Claude & Codex', [...labels, ...controls], {selected: selectedRole, backRow: true, refreshMs: 600, renderBody: editorBody(values, controls)});
|
|
176
175
|
if (selected === null) return null;
|
|
177
176
|
selectedRole = selected;
|
|
178
177
|
if (settingsRow && selected === ROLES.length) return {action: 'settings', roles};
|