@yunhozz/arc 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MANIFEST.sha256 +34 -30
- package/README.md +10 -1
- package/claude/skill/SKILL.md +1 -1
- package/claude/skill/references/coordination.md +6 -0
- package/codex/skill/SKILL.md +1 -1
- package/codex/skill/references/coordination.md +6 -0
- package/gemini/skill/SKILL.md +1 -1
- package/gemini/skill/references/coordination.md +6 -0
- package/grok/skill/SKILL.md +1 -1
- package/grok/skill/references/coordination.md +6 -0
- package/lib/installer/runtime-assets.mjs +2 -0
- package/lib/runtime/bootstrap.mjs +1 -1
- package/lib/runtime/command.mjs +2 -2
- package/lib/runtime/host-service.mjs +155 -0
- package/lib/runtime/role-bridge-args.mjs +110 -8
- package/lib/runtime/role-bridge.mjs +47 -20
- package/lib/runtime/role-dispatch-policy.mjs +9 -1
- package/lib/runtime/role-dispatch-store.mjs +6 -2
- package/lib/runtime/role-observe.mjs +7 -2
- package/lib/runtime/role-routing.mjs +13 -1
- package/lib/runtime/role-supervisor.mjs +248 -9
- package/lib/runtime/tool-access.mjs +560 -0
- package/lib/watch/watcher.mjs +46 -25
- package/package.json +1 -1
- package/shared/skill/runtime/bootstrap.mjs +1 -1
- package/shared/skill/runtime/command.mjs +2 -2
- package/shared/skill/runtime/host-service.mjs +155 -0
- package/shared/skill/runtime/role-bridge-args.mjs +110 -8
- package/shared/skill/runtime/role-bridge.mjs +47 -20
- package/shared/skill/runtime/role-dispatch-policy.mjs +9 -1
- package/shared/skill/runtime/role-dispatch-store.mjs +6 -2
- package/shared/skill/runtime/role-observe.mjs +7 -2
- package/shared/skill/runtime/role-routing.mjs +13 -1
- package/shared/skill/runtime/role-supervisor.mjs +248 -9
- package/shared/skill/runtime/tool-access.mjs +560 -0
package/MANIFEST.sha256
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
c39be5d2ee1d4eb30e25c61463b1754f805e16ddaa7f8e6702580a6431974ced README.md
|
|
2
2
|
d41edeb8c6631dee30c67c705d4edad977aa1631627ec9de59c013f8990f4018 bin/arc-upgrade.mjs
|
|
3
3
|
484d9b2002ce542c87589bb719d644d3762706aad28a6ee010024875f8cc00e2 bin/arc.mjs
|
|
4
4
|
8b4ce985007165382137f76879c0885e08d85115a11ba7063dc83fbdd5ef7860 claude/agents/arc-implementer.md
|
|
@@ -6,10 +6,10 @@ d41edeb8c6631dee30c67c705d4edad977aa1631627ec9de59c013f8990f4018 bin/arc-upgrad
|
|
|
6
6
|
32eb4bc1bf9763aa4be0d3a86b44b9d38bad076ec13f4c8ee440a01e8ac34295 claude/agents/arc-reviewer.md
|
|
7
7
|
64c193552e93cfd069cedf43a9134406de7e7614441506fc33133a2afe47dc7e claude/agents/arc-scouter.md
|
|
8
8
|
7ce9d53868c63bb696bb9895bfe5bc2ffde6eed6047c5c013f7540159a12e12d claude/agents/arc-tester.md
|
|
9
|
-
|
|
9
|
+
c4b8d5f9b1c79bf320ae56b68d92f176f73231134013844ae25c923d07f80a39 claude/skill/SKILL.md
|
|
10
10
|
7073692b58dbfe3e0762a3d0d098c0810239a62a573b5e096bd04398e785dfd1 claude/skill/references/arc-visual-companion.md
|
|
11
11
|
eb5db82bc54c133a2f936f053550708c7181f22d0fccaa8db92a2c5ff917cb39 claude/skill/references/commit.md
|
|
12
|
-
|
|
12
|
+
cd042e3279492d4478f3dfe5076da0a662e1bebe4494dac7d7f88fcbd1256763 claude/skill/references/coordination.md
|
|
13
13
|
2f979d92fff18b7c47b526f9c598c87792a9d80fff6f89fbb1931d906b08eabf claude/skill/references/git-recovery.md
|
|
14
14
|
d83ed763bb092e202e02d57b2f45e9df90ae5571cd76d961b5970a1e1c35393c claude/skill/references/handoff-prep.md
|
|
15
15
|
b3a91e989aaa54e33a6ca03377c2c9d5412a5794eea752ae596adc32e75ba883 claude/skill/references/handoff.md
|
|
@@ -24,10 +24,10 @@ e6ae07f665b6b9242f715d3e1433143a008d51ce60c4c8165236aa4ef482cad6 claude/skill/s
|
|
|
24
24
|
7d83883bb9e01b8ee5b167d99402f87ab7e6aa51293d895f7a06e81561e9a3fc codex/agents/arc-reviewer.toml
|
|
25
25
|
501c6fe9544240c0109be5536f884cd24cd01468e5168da2cf4ac386f248b402 codex/agents/arc-scouter.toml
|
|
26
26
|
e014e72329550b90f8f03fdb5b9448bbef116b05337594919216c64e09bafba6 codex/agents/arc-tester.toml
|
|
27
|
-
|
|
27
|
+
65e597d47967009c133af228cd4ad163ba26debe95162309e7afde2f8947edf4 codex/skill/SKILL.md
|
|
28
28
|
43aab56a8230903c7c8be08031388db666804d369dc1fcce9ac67a5932a238aa codex/skill/references/arc-visual-companion.md
|
|
29
29
|
6eb9c40ccc806df403f8178c9cc4e495e18657d870da07359f2beaf7ae503eca codex/skill/references/commit.md
|
|
30
|
-
|
|
30
|
+
acef7205f589a742a2d54ffba57f757892d465d4e20d88f3684665ded8a4fa55 codex/skill/references/coordination.md
|
|
31
31
|
ccb714d196f4f59518f399868aa5ee5accdf96986918aed7fc3a2d7464fef662 codex/skill/references/git-recovery.md
|
|
32
32
|
52deb5dbfdb7424abc7e6a4267b8f4c68a5b27613a021a9a1b8e2d5ba106734e codex/skill/references/handoff-prep.md
|
|
33
33
|
38ea5ed3de49a73dbd2f2c7fe5ba97d2b10f8b70eff134f7ebf5ea1ff8aed069 codex/skill/references/handoff.md
|
|
@@ -44,10 +44,10 @@ a859c22a4e610638d91522b31154df18409c5b9af36613c172b8c3e71f3b1015 gemini/agents/
|
|
|
44
44
|
c4db3f09b17cdbcb3e7b2a3a1e7c3c5149da5114c4e52bc08b7dcec4fe0fe34e gemini/agents/arc-scouter.md
|
|
45
45
|
403ed221e2d3585720de83f51cd8f9163fc15357d50a5db66b92c0f399d9f6bd gemini/agents/arc-tester.md
|
|
46
46
|
d9fff57cf884a2cee6b6bacb309d63d4469bf4ce48e0a2af4678f034577fc5a5 gemini/instructions.md
|
|
47
|
-
|
|
47
|
+
3b2ad54d5eb44f2c27d2a883768f9484c91730d071ac269d3601eb34313d5a53 gemini/skill/SKILL.md
|
|
48
48
|
7073692b58dbfe3e0762a3d0d098c0810239a62a573b5e096bd04398e785dfd1 gemini/skill/references/arc-visual-companion.md
|
|
49
49
|
b1af7d9ca703ebabe534f867c733d39bbc18e928182b4a71d1f137cee8b9ca99 gemini/skill/references/commit.md
|
|
50
|
-
|
|
50
|
+
b3586169cda1a4ed934bc772727f200cc803b36c74afd78899b496a49baca0fb gemini/skill/references/coordination.md
|
|
51
51
|
a7ce238d9910c2aacbe0e3421b352c3cdc5e1a0995ba37ac41db03788960d75c gemini/skill/references/git-recovery.md
|
|
52
52
|
88b8f1c7863cbfb9735d6efc3140a0634deed3b7596ffc4c66fb99274aa19c00 gemini/skill/references/handoff-prep.md
|
|
53
53
|
e5f1ece718ad7a8537c7d8b61939d4342bcfefc8e49177a4574489bd3c4841db gemini/skill/references/handoff.md
|
|
@@ -62,10 +62,10 @@ c1f67f2dd042de476d5a11416fb78facf780320cfa0d01f8716a92972e58edb5 grok/agents/ar
|
|
|
62
62
|
fc47e0c13a2336d9ce935cd664ee3b067123ef8c74eddaa3ee6814a568980e87 grok/agents/arc-scouter.md
|
|
63
63
|
f58ee4f4894fa44caac3637a86d95efa9e4d632229f424637a1d9baa67bafaa1 grok/agents/arc-tester.md
|
|
64
64
|
23fbf593092be3f99c35cb802670e26d4fd954c52e5f5a195d4da89ffcedf294 grok/instructions.md
|
|
65
|
-
|
|
65
|
+
5875594ee271a71ca46fe5881c366695627ee957dc195df687bc843472284371 grok/skill/SKILL.md
|
|
66
66
|
7073692b58dbfe3e0762a3d0d098c0810239a62a573b5e096bd04398e785dfd1 grok/skill/references/arc-visual-companion.md
|
|
67
67
|
708a6443e0a79e5236673eeda0e8a3b3047f7f0c3df9da9952906b072e4a9bb4 grok/skill/references/commit.md
|
|
68
|
-
|
|
68
|
+
a2f9fe1c77f220cb5db8b4bf252170161eb46ff5a0d564c2c2141f02f307afff grok/skill/references/coordination.md
|
|
69
69
|
b62414951e00a7e3d16fd43f04df5454d2c8641342fc8ad237b84489f9ea0a28 grok/skill/references/git-recovery.md
|
|
70
70
|
fdffe2966db3ccd11b013777e291e5d5a883df3bc63eb284d04a1e1363cb6e2a grok/skill/references/handoff-prep.md
|
|
71
71
|
f2c02f6c78c33e054bba6cf979c584b2f6c30d3f102cd06fd7259bca25eb8216 grok/skill/references/handoff.md
|
|
@@ -92,7 +92,7 @@ fbcff7b20be52f5f60ab3d510fbf4d6f514abdcac4396f94d378fe4439e71e29 lib/installer/
|
|
|
92
92
|
2bce5c979a98a858c44c482a13152e308a96be4176d709e1822b9436c3a7d6a7 lib/installer/plan.mjs
|
|
93
93
|
0d894135253e23cd9a5ebb3e021766922e88191463e98e0081b7dd7665d83acc lib/installer/preset.mjs
|
|
94
94
|
773d5b29b46dcd73123980c651d1052ef3f2e0bc0b80a69e23e0b74d971274fa lib/installer/role-routing.mjs
|
|
95
|
-
|
|
95
|
+
4960ea5231528d1427e27061f30e64466eb223511ebd6d64ce1c4e9d20023baa lib/installer/runtime-assets.mjs
|
|
96
96
|
9cbfd5103a690880e1582afa96b8b33bb92f175540bb8128df0435e32ff8e6ed lib/installer/runtime-config.mjs
|
|
97
97
|
bfc6c13638955fbd44b6002de3a5a2de911c50ad630a44ec1bcf0e987dfd825b lib/installer/shell-completion.mjs
|
|
98
98
|
9d319ee3bf6544f4379fa4a3dd8eb568ba5486535f02abca3b1b3eb05af9d847 lib/installer/skill-sources.mjs
|
|
@@ -146,10 +146,10 @@ be9fb9d8163306c7f5255cd28e4bfb8751402e1b24135f8f10bca6454c74bf4a lib/runtime/ac
|
|
|
146
146
|
99a2edbbb4993307f99adc4a606fd965398eb312f01bbd49a616d2f232a7213e lib/runtime/adapters/claude.mjs
|
|
147
147
|
3e2de23ac10e3c6445ba4b4415568a7c7c1a2292f10b9f6917e7b2d81877d81d lib/runtime/adapters/codex.mjs
|
|
148
148
|
a90abc679322f3b90ea4c1a9762dcd20877497991a09aec5fef68f787d63306b lib/runtime/assignment.mjs
|
|
149
|
-
|
|
149
|
+
55a4ea30673f98529d7c959292cca24319c905641cbc0f76b89f0a9685751494 lib/runtime/bootstrap.mjs
|
|
150
150
|
548e78bcfc01b6c3c46ba5698414f9faafcfcf73f9e9e0c24c41420343b40239 lib/runtime/capabilities.mjs
|
|
151
151
|
028c3cdb169dc29f8713c63475a7f8463d317438a33bd7c5a4316c97d8f08795 lib/runtime/cli.mjs
|
|
152
|
-
|
|
152
|
+
1e58eb7c9dac6320d1999f472191efa96d679bfb515237264a8a664d210ec206 lib/runtime/command.mjs
|
|
153
153
|
a8bc7f2960ff5e32688c843a12b5a5ee84477c4634a88680370e358e4ffecb9d lib/runtime/cooperative-schema.mjs
|
|
154
154
|
c87b5f20a2d3d1a27cf035b52909ef07a05f154bf4224d696a55bdff025171bd lib/runtime/cooperative.mjs
|
|
155
155
|
643f45da15439a4b7950ba6b2cc1d91673c13f3a31044b0f2e41fc25a7b00876 lib/runtime/evaluate.mjs
|
|
@@ -161,22 +161,24 @@ f501815eb8adef4582846cb067973e50fc4ece668aa70ae880803c80f39a07df lib/runtime/gi
|
|
|
161
161
|
ae0998af4fb15181e6a2fdd83c84ee865ad3de49c7088cd2a63abdb45dc65560 lib/runtime/grok-sandbox.mjs
|
|
162
162
|
54caa1114367936e1319ed88e5c3d0120fdba75ac5c2621a6293205d00e8238a lib/runtime/grok-stream.mjs
|
|
163
163
|
1069b57f05dceb9ebe5d4a4234f57924cf89aa10f24ca6bb888cb06491ce803e lib/runtime/handoff-record.mjs
|
|
164
|
+
e6e61ed0952a2d20eefbd5e45fbe865ea6cf4186623fcfb8960495dd1b138371 lib/runtime/host-service.mjs
|
|
164
165
|
233f1d4126f15079bb59b258bd4eb22509aa91aa019822c34980799c830c6ef8 lib/runtime/identity.mjs
|
|
165
166
|
df38c8ceedbf6fabe2abfde0797ddd3671bd2aa0cc06e0ccd3f15b448178e5b0 lib/runtime/local-cli.mjs
|
|
166
167
|
1c1c3cb98e67f1b643184120b7ff053e7520ecfa68e4497078409d16f90ae3b3 lib/runtime/operations.mjs
|
|
167
168
|
8911bfd35422c5db3abb97b20f490188128864776599f0a6666cfb0c63427b08 lib/runtime/platform-registry.mjs
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
b80c7862721a1b9401b7165c6ff0519ec4b85ac46c5fd44442f58e7d5a907b9c lib/runtime/role-bridge-args.mjs
|
|
170
|
+
70f14d1abf2bfa8d9ccc2d7c1d51cb4cf876272b65c72d249238ac2be2007ff6 lib/runtime/role-bridge.mjs
|
|
171
|
+
95d8e858063bc36f6f131db210d1d47763409a6ed09eba42fb6c19f36f8b04a0 lib/runtime/role-dispatch-policy.mjs
|
|
172
|
+
aa89670136aa7728e3722a3fad3dafe34ac55809f6b3d7da82f324ee7660c19f lib/runtime/role-dispatch-store.mjs
|
|
173
|
+
602e17f94fe5038802bd64db835c75e4f7bce895109f61fd83cf640d6163aca1 lib/runtime/role-observe.mjs
|
|
173
174
|
b411506319e53d121899604d089c189ba8fde2107ee2166ef0379b0c621de083 lib/runtime/role-routing-config.mjs
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
e91dae72cd731928c6adcc0c8edebcf6e271d8604f232aff3c530c681eef7b6e lib/runtime/role-routing.mjs
|
|
176
|
+
49426d4c9704e7cb70d24c159afbcd83f09dd4fdf5dc06aff365d390105f9d50 lib/runtime/role-supervisor.mjs
|
|
176
177
|
6b11f279cf72d579304f94819f69812b32c65cf3ba4817abbed5bf5ad7b50786 lib/runtime/schema.mjs
|
|
177
178
|
71b562ab7d8a3077ee16ea0709d425b841780825611edea21028997580383aa1 lib/runtime/scope.mjs
|
|
178
179
|
4622d5be1be3da5f186bc1ee308c61293dd51078576024e164775dfb99f38c12 lib/runtime/store.mjs
|
|
179
180
|
b29a9f9a9a60836271545e3f75346d51d7d0bf1ac1eccbfa3a624717f78beebb lib/runtime/target-preparation.mjs
|
|
181
|
+
a6d29825f19fb828dafe171af7a7a5f502435da8ef2844538c08f602eb864d6a lib/runtime/tool-access.mjs
|
|
180
182
|
1f3c50ef29d11c225f68428e0c42e2ddbc7e097ad7ebd4c3bd7e25c526c7b286 lib/runtime/verification.mjs
|
|
181
183
|
7e75d9bb51eac4bd1a6fccf45fb195c526bb3bc43cf0b04398b85ff7723f8689 lib/safe-fs/index.mjs
|
|
182
184
|
4174dfcfcd4d69a5486b91108ec03279cfd50644109c7457aa87f9ac877fb1ac lib/safe-fs/native.mjs
|
|
@@ -209,11 +211,11 @@ f270e1c7e74a025f0122d614522e71ab73bdffb11e471a91347cf9273d18d333 lib/watch/norm
|
|
|
209
211
|
4b9375b8840ef62420892375884183efcb29ff2e04bbe7ced17b7b7d9179e6f9 lib/watch/status-line.mjs
|
|
210
212
|
02084fbc128c2e426b0fa04ee849cea9054681aec63b5cbfd02356feccc95dcb lib/watch/tail.mjs
|
|
211
213
|
0701edeeadaeecab1f134f606f8db173fef7568a79c6441bb8d28fb37f095d08 lib/watch/text-width.mjs
|
|
212
|
-
|
|
214
|
+
0e3294a5397443308ccee0d53bccbbd7e9831015592dc513cfeaee9d7dcc31b9 lib/watch/watcher.mjs
|
|
213
215
|
8de37fa4c68f08b4725561c99e7ca6e4ff0c7a19b96be1d3938feca1d6a084bd lib/watch/worktree-menu.mjs
|
|
214
216
|
ff9c33c8b3c2bd466d54ffbe4c7139ccd87c79c7de34a6c4cde92e9f6e9b42d2 native/binding.c
|
|
215
217
|
205bedc1dee1a9ffa58124c6e21256a1f0cbe24f06f7c8d7cb0b99524cfab9d0 native/binding.gyp
|
|
216
|
-
|
|
218
|
+
a6b04d9c06f22047fbacc51e4db5777ed07f67db9994a9344cc3dbb10b0057a0 package.json
|
|
217
219
|
208c65cfde244d39ce45c3cf1b0acb128f04d21199b6b3fb5466e62db5b64af9 prebuilds/darwin-arm64/arc_safe_fs.node
|
|
218
220
|
572887ac794d10a8b921d8168ea2328e31f05b45987611ff02c83114dba901af prebuilds/darwin-x64/arc_safe_fs.node
|
|
219
221
|
2bb9443021f9d873712b26321de733eddd6794c45f0bc79e2d5dc98669196635 prebuilds/index.json
|
|
@@ -247,10 +249,10 @@ be9fb9d8163306c7f5255cd28e4bfb8751402e1b24135f8f10bca6454c74bf4a shared/skill/r
|
|
|
247
249
|
99a2edbbb4993307f99adc4a606fd965398eb312f01bbd49a616d2f232a7213e shared/skill/runtime/adapters/claude.mjs
|
|
248
250
|
3e2de23ac10e3c6445ba4b4415568a7c7c1a2292f10b9f6917e7b2d81877d81d shared/skill/runtime/adapters/codex.mjs
|
|
249
251
|
a90abc679322f3b90ea4c1a9762dcd20877497991a09aec5fef68f787d63306b shared/skill/runtime/assignment.mjs
|
|
250
|
-
|
|
252
|
+
55a4ea30673f98529d7c959292cca24319c905641cbc0f76b89f0a9685751494 shared/skill/runtime/bootstrap.mjs
|
|
251
253
|
548e78bcfc01b6c3c46ba5698414f9faafcfcf73f9e9e0c24c41420343b40239 shared/skill/runtime/capabilities.mjs
|
|
252
254
|
028c3cdb169dc29f8713c63475a7f8463d317438a33bd7c5a4316c97d8f08795 shared/skill/runtime/cli.mjs
|
|
253
|
-
|
|
255
|
+
1e58eb7c9dac6320d1999f472191efa96d679bfb515237264a8a664d210ec206 shared/skill/runtime/command.mjs
|
|
254
256
|
a8bc7f2960ff5e32688c843a12b5a5ee84477c4634a88680370e358e4ffecb9d shared/skill/runtime/cooperative-schema.mjs
|
|
255
257
|
c87b5f20a2d3d1a27cf035b52909ef07a05f154bf4224d696a55bdff025171bd shared/skill/runtime/cooperative.mjs
|
|
256
258
|
643f45da15439a4b7950ba6b2cc1d91673c13f3a31044b0f2e41fc25a7b00876 shared/skill/runtime/evaluate.mjs
|
|
@@ -262,23 +264,25 @@ f501815eb8adef4582846cb067973e50fc4ece668aa70ae880803c80f39a07df shared/skill/r
|
|
|
262
264
|
ae0998af4fb15181e6a2fdd83c84ee865ad3de49c7088cd2a63abdb45dc65560 shared/skill/runtime/grok-sandbox.mjs
|
|
263
265
|
54caa1114367936e1319ed88e5c3d0120fdba75ac5c2621a6293205d00e8238a shared/skill/runtime/grok-stream.mjs
|
|
264
266
|
1069b57f05dceb9ebe5d4a4234f57924cf89aa10f24ca6bb888cb06491ce803e shared/skill/runtime/handoff-record.mjs
|
|
267
|
+
e6e61ed0952a2d20eefbd5e45fbe865ea6cf4186623fcfb8960495dd1b138371 shared/skill/runtime/host-service.mjs
|
|
265
268
|
233f1d4126f15079bb59b258bd4eb22509aa91aa019822c34980799c830c6ef8 shared/skill/runtime/identity.mjs
|
|
266
269
|
df38c8ceedbf6fabe2abfde0797ddd3671bd2aa0cc06e0ccd3f15b448178e5b0 shared/skill/runtime/local-cli.mjs
|
|
267
270
|
1c1c3cb98e67f1b643184120b7ff053e7520ecfa68e4497078409d16f90ae3b3 shared/skill/runtime/operations.mjs
|
|
268
271
|
8911bfd35422c5db3abb97b20f490188128864776599f0a6666cfb0c63427b08 shared/skill/runtime/platform-registry.mjs
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
b80c7862721a1b9401b7165c6ff0519ec4b85ac46c5fd44442f58e7d5a907b9c shared/skill/runtime/role-bridge-args.mjs
|
|
273
|
+
70f14d1abf2bfa8d9ccc2d7c1d51cb4cf876272b65c72d249238ac2be2007ff6 shared/skill/runtime/role-bridge.mjs
|
|
274
|
+
95d8e858063bc36f6f131db210d1d47763409a6ed09eba42fb6c19f36f8b04a0 shared/skill/runtime/role-dispatch-policy.mjs
|
|
275
|
+
aa89670136aa7728e3722a3fad3dafe34ac55809f6b3d7da82f324ee7660c19f shared/skill/runtime/role-dispatch-store.mjs
|
|
276
|
+
602e17f94fe5038802bd64db835c75e4f7bce895109f61fd83cf640d6163aca1 shared/skill/runtime/role-observe.mjs
|
|
274
277
|
255a9d14bf9042a99bba05748b263d9bfddc0f1ea9fc3670e9e597899569329a shared/skill/runtime/role-policy.json
|
|
275
278
|
b411506319e53d121899604d089c189ba8fde2107ee2166ef0379b0c621de083 shared/skill/runtime/role-routing-config.mjs
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
e91dae72cd731928c6adcc0c8edebcf6e271d8604f232aff3c530c681eef7b6e shared/skill/runtime/role-routing.mjs
|
|
280
|
+
49426d4c9704e7cb70d24c159afbcd83f09dd4fdf5dc06aff365d390105f9d50 shared/skill/runtime/role-supervisor.mjs
|
|
278
281
|
6b11f279cf72d579304f94819f69812b32c65cf3ba4817abbed5bf5ad7b50786 shared/skill/runtime/schema.mjs
|
|
279
282
|
71b562ab7d8a3077ee16ea0709d425b841780825611edea21028997580383aa1 shared/skill/runtime/scope.mjs
|
|
280
283
|
4622d5be1be3da5f186bc1ee308c61293dd51078576024e164775dfb99f38c12 shared/skill/runtime/store.mjs
|
|
281
284
|
b29a9f9a9a60836271545e3f75346d51d7d0bf1ac1eccbfa3a624717f78beebb shared/skill/runtime/target-preparation.mjs
|
|
285
|
+
a6d29825f19fb828dafe171af7a7a5f502435da8ef2844538c08f602eb864d6a shared/skill/runtime/tool-access.mjs
|
|
282
286
|
1f3c50ef29d11c225f68428e0c42e2ddbc7e097ad7ebd4c3bd7e25c526c7b286 shared/skill/runtime/verification.mjs
|
|
283
287
|
fa5659948374d4f555594f47f6da073b40dc503e921aeeece30df4362b3051a5 vendor/toml/LICENSE
|
|
284
288
|
ef924a2a42c7f16761e7098c3ed8e04195ecbcb02d5c369db0aee76f251a409c vendor/toml/dist/date.js
|
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ app/.claude/worktrees/brief feat/brief ● 4m ago · 2 sessions · CLAUD
|
|
|
96
96
|
app/.gemini/worktrees/docs docs/refresh (no recent activity)
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
After platform selection, the startup summary shows the scope, branch, platforms, and keys. Events then appear below it. Watch also shows shell file changes under the name of the most recent eligible session in the same worktree. The attribution is a best guess and can name the wrong session when several sessions are active at once.
|
|
99
|
+
After platform selection, the startup summary shows the scope, branch, platforms, and keys. Events then appear below it. Watch also shows shell file changes under the name of the most recent eligible session in the same worktree. It also reads sessions from platforms you did not select, without showing them, so their file changes are not shown under a selected session. The attribution is a best guess and can name the wrong session when several sessions are active at once.
|
|
100
100
|
|
|
101
101
|
```text
|
|
102
102
|
┌────────────────────────────────────────────────────────┐
|
|
@@ -139,6 +139,15 @@ Standalone is verified for all four platforms in the registry. For Mixed, check
|
|
|
139
139
|
|
|
140
140
|
Codex hosts require escalation approval on every runtime call. Start Grok hosts with `grok --permission-mode default` and use `Allow once` on every runtime call.
|
|
141
141
|
|
|
142
|
+
### Bridge tool access
|
|
143
|
+
|
|
144
|
+
The Orchestrator requests only the access the current dispatch needs through `toolAccess`. On Claude and Codex bridges, the Implementer and Tester receive a temporary work directory and cache settings by default. The Implementer can request loopback, and the Tester can also request domain-restricted network access or browser services. On both platforms, `network.domains` and `browser-cdp` are conditionally allowed, while `network.full` and the three Playwright services are held. Gemini is held, and Grok tool access is unmeasured.
|
|
145
|
+
|
|
146
|
+
- **Never granted** — Write access to the worktree's `.git` and `.codex`, CLI homes, auth and config paths, shell startup files, LaunchAgents, and Keychains, and access to Docker, Colima, SSH agent, and GPG agent sockets.
|
|
147
|
+
- **Host only** — Inspecting other processes such as `ps` and `pgrep`, Docker, real CLI auth and config writes, dependency installs and the external fetches they need, Git writes, Cypress, and keychain operations. The Orchestrator checks permissions and runs these on the host.
|
|
148
|
+
|
|
149
|
+
Per-request role limits, gates, and measurement evidence are in the [tool access section of the operation guide](docs/harness-operation.md#bridge-tool-access).
|
|
150
|
+
|
|
142
151
|
## Upgrade
|
|
143
152
|
|
|
144
153
|
- Status → Upgrade automatically reapplies the current configuration. Use Configure → Apply if reapplication is held or interrupted, its state is unknown, or this is the first npx upgrade from 0.4.6 or earlier. If the state is unknown, inspect the reported paths before retrying. In-progress plan workflows with changed versions are held under `cooperative.versions`.
|
package/claude/skill/SKILL.md
CHANGED
|
@@ -17,7 +17,7 @@ description: Coordinate scoped research planning implementation verification and
|
|
|
17
17
|
|
|
18
18
|
**Pre-action gate record:** Before a task's first specialist creation or assignment, its first repository edit, or any decision to skip the Planner design stage, read the applicable references first, then post one line in a user-visible progress message with `mode` (standalone, or composite with routing revision), `run` (Run mode in effect: `supervised` or `full-auto`), `class` (work type), `path` (direct with all F1–F8 proven, Spike, Bounded or Architectural), `design` (Planner design required, approved or omitted, and why), `depth` (plan required, or the omission reason), `risk` (level and reason) and `refs` (reference sections actually read). A field that a later stage decides (for example `path` or `depth` before Planner design) is recorded as `pending` with that stage; for work with no edits or design, such as Scouter-only research, `path`, `design` and `depth` are `n/a` with the reason; any other empty or unverified field holds that action. Post a new line when a recorded fact changes. Feature, behavior and bug-fix implementation starts with Planner design unless the direct path is selected with all F1–F8 proven.
|
|
19
19
|
|
|
20
|
-
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
20
|
+
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Every Tester brief, including correction rechecks and resumed assignments, MUST state `mode: task` or `mode: final` under [verification](references/verification.md#test-scope-and-result-comparison). Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
21
21
|
|
|
22
22
|
Follow user and project instructions. Orchestrator uses the current conversation model for simple self-contained questions answerable from context or one quick read without edits and coordinates substantive multistep implementation, configuration, tests and mixed work. It handles research directly when material is already in context or a quick read of a few known files suffices. Other material research and analysis, and bounded static exploration of code, documents, data, logs and reports, go to configured Scouter. A narrow lookup brief supplies known paths and specific facts without synthesis. Route by object or deliverable, not verbs alone.
|
|
23
23
|
|
|
@@ -209,6 +209,12 @@ GK2 is `approval`.
|
|
|
209
209
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
210
210
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
211
211
|
|
|
212
|
+
### Bridge tool access
|
|
213
|
+
|
|
214
|
+
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Planner and Reviewer cannot request `toolAccess`. Implementer may request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester may also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex and Claude, the gates for full network access and all three Playwright services have the value `held`. Never enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
215
|
+
|
|
216
|
+
Use `ARC_SCRATCH_DIR` for temporary files and put files that must survive the dispatch in `ARC_EVIDENCE_DIR` for supervisor collection. Read `ARC_HOST_SERVICES_FILE` for service endpoints when a host service was granted. When a host-only operation blocks a check, report it as “environment constraint (host only)” and identify the blocked check and what remains unverified. Host-only operations include process inspection (`ps`, `pgrep`), Docker, writes to actual CLI authentication or configuration, dependency installation and its remote fetches, Git writes, Cypress, and Keychain operations. The Orchestrator handles host verification within existing authority.
|
|
217
|
+
|
|
212
218
|
### Shared dispatch rules
|
|
213
219
|
|
|
214
220
|
- Bridge children receive the profile instructions only and NEVER load ARC `SKILL.md`. Role instructions forbid re-delegation.
|
package/codex/skill/SKILL.md
CHANGED
|
@@ -17,7 +17,7 @@ description: Keep simple, self-contained questions with the chat-selected Orches
|
|
|
17
17
|
|
|
18
18
|
**Pre-action gate record:** Before a task's first specialist creation or assignment, its first repository edit, or any decision to skip the Planner design stage, read the applicable references first, then post one line in a user-visible progress message with `mode` (standalone, or composite with routing revision), `run` (Run mode in effect: `supervised` or `full-auto`), `class` (work type), `path` (direct with all F1–F8 proven, Spike, Bounded or Architectural), `design` (Planner design required, approved or omitted, and why), `depth` (plan required, or the omission reason), `risk` (level and reason) and `refs` (reference sections actually read). A field that a later stage decides (for example `path` or `depth` before Planner design) is recorded as `pending` with that stage; for work with no edits or design, such as Scouter-only research, `path`, `design` and `depth` are `n/a` with the reason; any other empty or unverified field holds that action. Post a new line when a recorded fact changes. Feature, behavior and bug-fix implementation starts with Planner design unless the direct path is selected with all F1–F8 proven.
|
|
19
19
|
|
|
20
|
-
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
20
|
+
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Every Tester brief, including correction rechecks and resumed assignments, MUST state `mode: task` or `mode: final` under [verification](references/verification.md#test-scope-and-result-comparison). Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
21
21
|
|
|
22
22
|
Follow user and project instructions. Orchestrator uses the current conversation model for simple self-contained questions and coordinates substantive multistep implementation, configuration, tests and mixed work. It handles research directly when material is already in context or a quick read of a few known files suffices. Other material research and analysis, and bounded static exploration of code, documents, data, logs and reports, go to configured Scouter. A narrow lookup brief supplies known paths and specific facts without synthesis. Route by object or deliverable, not verbs alone.
|
|
23
23
|
|
|
@@ -207,6 +207,12 @@ GK2 is `approval`.
|
|
|
207
207
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
208
208
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
209
209
|
|
|
210
|
+
### Bridge tool access
|
|
211
|
+
|
|
212
|
+
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Planner and Reviewer cannot request `toolAccess`. Implementer may request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester may also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex and Claude, the gates for full network access and all three Playwright services have the value `held`. Never enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
213
|
+
|
|
214
|
+
Use `ARC_SCRATCH_DIR` for temporary files and put files that must survive the dispatch in `ARC_EVIDENCE_DIR` for supervisor collection. Read `ARC_HOST_SERVICES_FILE` for service endpoints when a host service was granted. When a host-only operation blocks a check, report it as “environment constraint (host only)” and identify the blocked check and what remains unverified. Host-only operations include process inspection (`ps`, `pgrep`), Docker, writes to actual CLI authentication or configuration, dependency installation and its remote fetches, Git writes, Cypress, and Keychain operations. The Orchestrator handles host verification within existing authority.
|
|
215
|
+
|
|
210
216
|
### Shared dispatch rules
|
|
211
217
|
|
|
212
218
|
- Bridge children receive the profile instructions only and NEVER load ARC `SKILL.md`. Role instructions forbid re-delegation.
|
package/gemini/skill/SKILL.md
CHANGED
|
@@ -17,7 +17,7 @@ description: Coordinate scoped research planning implementation verification and
|
|
|
17
17
|
|
|
18
18
|
**Pre-action gate record:** Before a task's first specialist creation or assignment, its first repository edit, or any decision to skip the Planner design stage, read the applicable references first, then post one line in a user-visible progress message with `mode` (standalone, or composite with routing revision), `run` (Run mode in effect: `supervised` or `full-auto`), `class` (work type), `path` (direct with all F1–F8 proven, Spike, Bounded or Architectural), `design` (Planner design required, approved or omitted, and why), `depth` (plan required, or the omission reason), `risk` (level and reason) and `refs` (reference sections actually read). A field that a later stage decides (for example `path` or `depth` before Planner design) is recorded as `pending` with that stage; for work with no edits or design, such as Scouter-only research, `path`, `design` and `depth` are `n/a` with the reason; any other empty or unverified field holds that action. Post a new line when a recorded fact changes. Feature, behavior and bug-fix implementation starts with Planner design unless the direct path is selected with all F1–F8 proven.
|
|
19
19
|
|
|
20
|
-
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
20
|
+
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Every Tester brief, including correction rechecks and resumed assignments, MUST state `mode: task` or `mode: final` under [verification](references/verification.md#test-scope-and-result-comparison). Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
21
21
|
|
|
22
22
|
Follow user and project instructions. Orchestrator uses the current conversation model for simple self-contained questions answerable from context or one quick read without edits and coordinates substantive multistep implementation, configuration, tests and mixed work. It handles research directly when material is already in context or a quick read of a few known files suffices. Other material research and analysis, and bounded static exploration of code, documents, data, logs and reports, go to configured Scouter. A narrow lookup brief supplies known paths and specific facts without synthesis. Route by object or deliverable, not verbs alone.
|
|
23
23
|
|
|
@@ -209,6 +209,12 @@ GK2 is `approval`.
|
|
|
209
209
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
210
210
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
211
211
|
|
|
212
|
+
### Bridge tool access
|
|
213
|
+
|
|
214
|
+
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Planner and Reviewer cannot request `toolAccess`. Implementer may request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester may also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex and Claude, the gates for full network access and all three Playwright services have the value `held`. Never enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
215
|
+
|
|
216
|
+
Use `ARC_SCRATCH_DIR` for temporary files and put files that must survive the dispatch in `ARC_EVIDENCE_DIR` for supervisor collection. Read `ARC_HOST_SERVICES_FILE` for service endpoints when a host service was granted. When a host-only operation blocks a check, report it as “environment constraint (host only)” and identify the blocked check and what remains unverified. Host-only operations include process inspection (`ps`, `pgrep`), Docker, writes to actual CLI authentication or configuration, dependency installation and its remote fetches, Git writes, Cypress, and Keychain operations. The Orchestrator handles host verification within existing authority.
|
|
217
|
+
|
|
212
218
|
### Shared dispatch rules
|
|
213
219
|
|
|
214
220
|
- Bridge children receive the profile instructions only and NEVER load ARC `SKILL.md`. Role instructions forbid re-delegation.
|
package/grok/skill/SKILL.md
CHANGED
|
@@ -17,7 +17,7 @@ description: Coordinate scoped research planning implementation verification and
|
|
|
17
17
|
|
|
18
18
|
**Pre-action gate record:** Before a task's first specialist creation or assignment, its first repository edit, or any decision to skip the Planner design stage, read the applicable references first, then post one line in a user-visible progress message with `mode` (standalone, or composite with routing revision), `run` (Run mode in effect: `supervised` or `full-auto`), `class` (work type), `path` (direct with all F1–F8 proven, Spike, Bounded or Architectural), `design` (Planner design required, approved or omitted, and why), `depth` (plan required, or the omission reason), `risk` (level and reason) and `refs` (reference sections actually read). A field that a later stage decides (for example `path` or `depth` before Planner design) is recorded as `pending` with that stage; for work with no edits or design, such as Scouter-only research, `path`, `design` and `depth` are `n/a` with the reason; any other empty or unverified field holds that action. Post a new line when a recorded fact changes. Feature, behavior and bug-fix implementation starts with Planner design unless the direct path is selected with all F1–F8 proven.
|
|
19
19
|
|
|
20
|
-
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
20
|
+
Each top-level task (one plan task, or the entire request without a plan) receives a fresh Implementer. Each task requiring Tester receives fresh Tester, never reused from another task. Every Tester brief, including correction rechecks and resumed assignments, MUST state `mode: task` or `mode: final` under [verification](references/verification.md#test-scope-and-result-comparison). Same-task corrections and rechecks use the current Implementer and, for Tester findings or required Tester rechecks, the current Tester while assignment remains valid. Once final overall Reviewer review begins on plan work, every Reviewer finding, including behavior, repeats Implementer → Reviewer without Tester reassignment until resolved; keep corrections uncommitted through rechecks. Separate Tester findings remain Implementer → Tester. Tester findings alone create no new task. Restart exceptions follow coordination and verification.
|
|
21
21
|
|
|
22
22
|
Follow user and project instructions. Orchestrator uses the current conversation model for simple self-contained questions answerable from context or one quick read without edits and coordinates substantive multistep implementation, configuration, tests and mixed work. It handles research directly when material is already in context or a quick read of a few known files suffices. Other material research and analysis, and bounded static exploration of code, documents, data, logs and reports, go to configured Scouter. A narrow lookup brief supplies known paths and specific facts without synthesis. Route by object or deliverable, not verbs alone.
|
|
23
23
|
|
|
@@ -209,6 +209,12 @@ GK2 is `approval`.
|
|
|
209
209
|
- Delegation: The dispatch record reports `unverifiedContracts.delegation` as `undetectable`.
|
|
210
210
|
- Execution confirmation: Check the stream session ID against the recorded ID, the observed model and the terminal result. Effort stays `unverified`.
|
|
211
211
|
|
|
212
|
+
### Bridge tool access
|
|
213
|
+
|
|
214
|
+
The Orchestrator requests `toolAccess` only for the current bridge dispatch when the approved task needs it (D-a). Use scratch first. Scouter, Planner and Reviewer cannot request `toolAccess`. Implementer may request loopback, registered path or socket IDs, and the `ci`, `daemon-off` and `polling` presets. Tester may also request domain-scoped or full network access and registered browser services, subject to the platform gates. On Codex and Claude, the gates for full network access and all three Playwright services have the value `held`. Never enable additional access by default for Tester. Check the dispatch's `toolAccess.conditions` when a grant is conditional.
|
|
215
|
+
|
|
216
|
+
Use `ARC_SCRATCH_DIR` for temporary files and put files that must survive the dispatch in `ARC_EVIDENCE_DIR` for supervisor collection. Read `ARC_HOST_SERVICES_FILE` for service endpoints when a host service was granted. When a host-only operation blocks a check, report it as “environment constraint (host only)” and identify the blocked check and what remains unverified. Host-only operations include process inspection (`ps`, `pgrep`), Docker, writes to actual CLI authentication or configuration, dependency installation and its remote fetches, Git writes, Cypress, and Keychain operations. The Orchestrator handles host verification within existing authority.
|
|
217
|
+
|
|
212
218
|
### Shared dispatch rules
|
|
213
219
|
|
|
214
220
|
- Bridge children receive the profile instructions only and NEVER load ARC `SKILL.md`. Role instructions forbid re-delegation.
|
|
@@ -20,6 +20,7 @@ export const RUNTIME_MODULE_PATHS = Object.freeze([
|
|
|
20
20
|
'lib/runtime/grok-sandbox.mjs',
|
|
21
21
|
'lib/runtime/grok-stream.mjs',
|
|
22
22
|
'lib/runtime/handoff-record.mjs',
|
|
23
|
+
'lib/runtime/host-service.mjs',
|
|
23
24
|
'lib/runtime/identity.mjs',
|
|
24
25
|
'lib/runtime/local-cli.mjs',
|
|
25
26
|
'lib/runtime/operations.mjs',
|
|
@@ -36,5 +37,6 @@ export const RUNTIME_MODULE_PATHS = Object.freeze([
|
|
|
36
37
|
'lib/runtime/scope.mjs',
|
|
37
38
|
'lib/runtime/store.mjs',
|
|
38
39
|
'lib/runtime/target-preparation.mjs',
|
|
40
|
+
'lib/runtime/tool-access.mjs',
|
|
39
41
|
'lib/runtime/verification.mjs'
|
|
40
42
|
]);
|
|
@@ -8,7 +8,7 @@ export const COOPERATIVE_RUNTIME_MODULES=Object.freeze([
|
|
|
8
8
|
'cli.mjs','command.mjs','bootstrap.mjs','cooperative-schema.mjs','cooperative.mjs','evaluate.mjs',
|
|
9
9
|
'scope.mjs','store.mjs','git-evidence.mjs','assignment.mjs','verification.mjs','acceptance.mjs','external.mjs','schema.mjs','operations.mjs','gate.mjs','adapters/codex.mjs','adapters/claude.mjs','capabilities.mjs','identity.mjs','git-query.mjs','target-preparation.mjs',
|
|
10
10
|
'local-cli.mjs','role-routing-config.mjs','role-routing.mjs','role-bridge.mjs',
|
|
11
|
-
'role-dispatch-policy.mjs','role-dispatch-store.mjs','role-bridge-args.mjs','role-observe.mjs','role-supervisor.mjs','platform-registry.mjs','gemini-stream.mjs','grok-stream.mjs','grok-sandbox.mjs'
|
|
11
|
+
'role-dispatch-policy.mjs','role-dispatch-store.mjs','role-bridge-args.mjs','role-observe.mjs','role-supervisor.mjs','platform-registry.mjs','gemini-stream.mjs','grok-stream.mjs','grok-sandbox.mjs','tool-access.mjs','host-service.mjs'
|
|
12
12
|
]);
|
|
13
13
|
export const cooperativeCoverage=()=>({enforcement:'cooperative',provenance:'operator-attested',nativeVerified:false});
|
|
14
14
|
export function commandResult({workflowId,state,input,decision='allow',ruleId='cooperative.recorded',persisted=false,...extra}){
|
package/lib/runtime/command.mjs
CHANGED
|
@@ -51,9 +51,9 @@ export async function runWorkflowCommand(args,io={}){
|
|
|
51
51
|
if(isRouting){
|
|
52
52
|
if(!input||typeof input!=='object'||Array.isArray(input))throw Error('Invalid routing input');
|
|
53
53
|
const context={cwd,userHome:os.homedir(),env:process.env,workflowId,hostPlatform:input.hostPlatform,executionEnvironment:input.executionEnvironment};
|
|
54
|
-
const keys=Object.keys(input),allowed={'routing-status':[['hostPlatform','executionEnvironment'],[]],'prepare-dispatch':[['hostPlatform','executionEnvironment','role','expectedRevision','requestId','taskId'],['allowedPaths']],'run-dispatch':[['hostPlatform','executionEnvironment','dispatchId','brief'],[]],observe:[['hostPlatform','executionEnvironment','dispatchId'],['waitMs','event','nativeAgentId']],resume:[['hostPlatform','executionEnvironment','dispatchId','brief'],[]],cancel:[['hostPlatform','executionEnvironment','dispatchId'],[]]}[command];
|
|
54
|
+
const keys=Object.keys(input),allowed={'routing-status':[['hostPlatform','executionEnvironment'],[]],'prepare-dispatch':[['hostPlatform','executionEnvironment','role','expectedRevision','requestId','taskId'],['allowedPaths','toolAccess']],'run-dispatch':[['hostPlatform','executionEnvironment','dispatchId','brief'],[]],observe:[['hostPlatform','executionEnvironment','dispatchId'],['waitMs','event','nativeAgentId']],resume:[['hostPlatform','executionEnvironment','dispatchId','brief'],[]],cancel:[['hostPlatform','executionEnvironment','dispatchId'],[]]}[command];
|
|
55
55
|
if(allowed&&(allowed[0].some(key=>!Object.hasOwn(input,key))||keys.some(key=>!allowed[0].includes(key)&&!allowed[1].includes(key))))result=invalidRoutingRequest(context);
|
|
56
|
-
else result=command==='routing-status'?await routingStatus({context}):command==='prepare-dispatch'?await prepareRoleDispatch({context,assignment:{role:input.role,requestId:input.requestId,taskId:input.taskId,...(Object.hasOwn(input,'allowedPaths')?{allowedPaths:input.allowedPaths}:{})},expectedRevision:input.expectedRevision}):command==='run-dispatch'?await runBridgeDispatch({context,dispatchId:input.dispatchId,brief:input.brief}):command==='observe'?await recordRoleObservation({context,dispatchId:input.dispatchId,...(Object.hasOwn(input,'waitMs')?{waitMs:input.waitMs}:{}),...(Object.hasOwn(input,'event')?{event:input.event}:{}),...(Object.hasOwn(input,'nativeAgentId')?{nativeAgentId:input.nativeAgentId}:{})}):command==='resume'?await resumeRoleDispatch({context,dispatchId:input.dispatchId,brief:input.brief}):await cancelRoleDispatch({context,dispatchId:input.dispatchId});
|
|
56
|
+
else result=command==='routing-status'?await routingStatus({context}):command==='prepare-dispatch'?await prepareRoleDispatch({context,assignment:{role:input.role,requestId:input.requestId,taskId:input.taskId,...(Object.hasOwn(input,'allowedPaths')?{allowedPaths:input.allowedPaths}:{}),...(Object.hasOwn(input,'toolAccess')?{toolAccess:input.toolAccess}:{})},expectedRevision:input.expectedRevision}):command==='run-dispatch'?await runBridgeDispatch({context,dispatchId:input.dispatchId,brief:input.brief}):command==='observe'?await recordRoleObservation({context,dispatchId:input.dispatchId,...(Object.hasOwn(input,'waitMs')?{waitMs:input.waitMs}:{}),...(Object.hasOwn(input,'event')?{event:input.event}:{}),...(Object.hasOwn(input,'nativeAgentId')?{nativeAgentId:input.nativeAgentId}:{})}):command==='resume'?await resumeRoleDispatch({context,dispatchId:input.dispatchId,brief:input.brief}):await cancelRoleDispatch({context,dispatchId:input.dispatchId});
|
|
57
57
|
result={workflowId,...result};
|
|
58
58
|
}else result=await(command==='init'?initializeCooperativeWorkflow({cwd,workflowId,input}):runCooperativeCommand({cwd,workflowId,command,input}));
|
|
59
59
|
output.write(JSON.stringify(result)+'\n');return result.decision==='deny'?2:result.decision==='hold'?3:0;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import childProcess from 'node:child_process';
|
|
2
|
+
import {constants, readFileSync, realpathSync} from 'node:fs';
|
|
3
|
+
import fsp from 'node:fs/promises';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import {setTimeout as sleep} from 'node:timers/promises';
|
|
6
|
+
import {CANCEL_GRACE_MS, PROBE_TIMEOUT_MS} from './role-dispatch-policy.mjs';
|
|
7
|
+
|
|
8
|
+
export const HOST_SERVICES = Object.freeze({
|
|
9
|
+
'browser-cdp': Object.freeze({kind: 'cdp'}),
|
|
10
|
+
'browser-playwright-chromium': Object.freeze({kind: 'playwright', browser: 'chromium'}),
|
|
11
|
+
'browser-playwright-firefox': Object.freeze({kind: 'playwright', browser: 'firefox'}),
|
|
12
|
+
'browser-playwright-webkit': Object.freeze({kind: 'playwright', browser: 'webkit'}),
|
|
13
|
+
});
|
|
14
|
+
export const CHROME_EXECUTABLE = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
|
|
15
|
+
export const SANDBOX_EXEC = '/usr/bin/sandbox-exec';
|
|
16
|
+
export const hostDirFor = dispatchId => `/private/tmp/arc-host-${dispatchId.replaceAll('-', '').slice(0, 8)}`;
|
|
17
|
+
|
|
18
|
+
export function resolveGlobalPlaywright({run = childProcess.spawnSync} = {}) {
|
|
19
|
+
const probe = run('npm', ['root', '-g'], {cwd: '/private/tmp', encoding: 'utf8', timeout: PROBE_TIMEOUT_MS});
|
|
20
|
+
const root = probe.stdout?.trim();
|
|
21
|
+
if (probe.status !== 0 || !root || !path.isAbsolute(root)) return null;
|
|
22
|
+
for (const name of ['playwright', 'playwright-core']) {
|
|
23
|
+
try {
|
|
24
|
+
const {version} = JSON.parse(readFileSync(path.join(root, name, 'package.json'), 'utf8'));
|
|
25
|
+
if (typeof version === 'string' && version.length > 0) return {root, name, version};
|
|
26
|
+
return null;
|
|
27
|
+
} catch (error) {
|
|
28
|
+
if (error.code !== 'ENOENT') return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export async function hostServicePreflight({services, io = {}}) {
|
|
35
|
+
const hold = 'permission_scope_unverified';
|
|
36
|
+
for (const id of services) {
|
|
37
|
+
try {
|
|
38
|
+
switch (HOST_SERVICES[id]?.kind) {
|
|
39
|
+
case 'cdp': {
|
|
40
|
+
const access = io.access ?? fsp.access;
|
|
41
|
+
await access(CHROME_EXECUTABLE, constants.X_OK);
|
|
42
|
+
await access(SANDBOX_EXEC, constants.X_OK);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
case 'playwright':
|
|
46
|
+
if (!(io.resolveGlobalPlaywright ?? resolveGlobalPlaywright)()) return hold;
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
return hold;
|
|
50
|
+
}
|
|
51
|
+
} catch { return hold; }
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function profilePath(filename) {
|
|
57
|
+
const unsafe = /["\\\n\r]/;
|
|
58
|
+
if (unsafe.test(filename)) throw Error('invalid sandbox profile path');
|
|
59
|
+
const resolved = realpathSync(filename);
|
|
60
|
+
if (unsafe.test(resolved)) throw Error('invalid sandbox profile path');
|
|
61
|
+
return resolved;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function renderSandboxProfile({kind, userHome, dataDir}) {
|
|
65
|
+
if (kind === 'playwright') throw Error('playwright sandbox profile unmeasured (MI-B)');
|
|
66
|
+
if (kind !== 'cdp') throw Error('unknown host service kind');
|
|
67
|
+
return [
|
|
68
|
+
'(version 1)',
|
|
69
|
+
'(allow default)',
|
|
70
|
+
`(deny file-read* file-write* (subpath "${profilePath(userHome)}"))`,
|
|
71
|
+
'(deny process-exec (regex #"GoogleUpdater"))',
|
|
72
|
+
`(allow file-read* file-write* (subpath "${profilePath(dataDir)}"))`,
|
|
73
|
+
'(deny network-outbound)',
|
|
74
|
+
'(allow network-outbound (remote ip "localhost:*"))',
|
|
75
|
+
'',
|
|
76
|
+
].join('\n');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const startFailed = () => Object.assign(Error('Host service failed to start'), {reasonCode: 'execution_failed'});
|
|
80
|
+
|
|
81
|
+
async function waitForCdpPort(dataDir, timeoutMs, exited, wait) {
|
|
82
|
+
const deadline = performance.now() + timeoutMs;
|
|
83
|
+
while (!exited() && performance.now() < deadline) {
|
|
84
|
+
const bytes = await fsp.readFile(path.join(dataDir, 'DevToolsActivePort'), 'utf8').catch(error => {
|
|
85
|
+
if (error.code !== 'ENOENT') throw error;
|
|
86
|
+
return '';
|
|
87
|
+
});
|
|
88
|
+
const first = bytes.split('\n', 1)[0].trim();
|
|
89
|
+
const port = Number(first);
|
|
90
|
+
if (!exited() && /^\d+$/.test(first) && port > 0 && port <= 65535) return port;
|
|
91
|
+
const remaining = deadline - performance.now();
|
|
92
|
+
if (remaining > 0 && !exited()) await wait(Math.min(25, remaining));
|
|
93
|
+
}
|
|
94
|
+
throw startFailed();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export async function startHostService({id, dispatchId, userHome, timeoutMs = PROBE_TIMEOUT_MS, onSpawn, io = {}}) {
|
|
98
|
+
// Playwright launches remain disabled until each engine's isolation is measured.
|
|
99
|
+
if (HOST_SERVICES[id]?.kind !== 'cdp') throw startFailed();
|
|
100
|
+
const hostDir = hostDirFor(dispatchId);
|
|
101
|
+
const dir = path.join(hostDir, id), dataDir = path.join(dir, 'udd'), profile = path.join(dir, 'chrome.sb');
|
|
102
|
+
const wait = io.sleep ?? sleep, kill = io.kill ?? process.kill;
|
|
103
|
+
let child, created = false, exited = false, cleanup;
|
|
104
|
+
const stop = () => cleanup ??= (async () => {
|
|
105
|
+
let warning = false;
|
|
106
|
+
const signalGroup = signal => {
|
|
107
|
+
try { kill(-child.pid, signal); } catch (error) { if (error.code !== 'ESRCH') warning = true; }
|
|
108
|
+
};
|
|
109
|
+
let groupExists = Boolean(child?.pid);
|
|
110
|
+
if (groupExists && exited) {
|
|
111
|
+
try { kill(-child.pid, 0); } catch (error) {
|
|
112
|
+
if (error.code === 'ESRCH') groupExists = false;
|
|
113
|
+
else warning = true;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (groupExists) {
|
|
117
|
+
signalGroup('SIGTERM');
|
|
118
|
+
try { await wait(CANCEL_GRACE_MS); } catch { warning = true; }
|
|
119
|
+
signalGroup('SIGKILL');
|
|
120
|
+
}
|
|
121
|
+
// The supervisor removes the complete hostDir after collecting evidence.
|
|
122
|
+
if (created && io.removeDir) {
|
|
123
|
+
try { await io.removeDir(dir); } catch { warning = true; }
|
|
124
|
+
}
|
|
125
|
+
return warning ? 'warning' : 'ok';
|
|
126
|
+
})();
|
|
127
|
+
try {
|
|
128
|
+
// The supervisor reserves the host directory for the dispatch before starting any service.
|
|
129
|
+
await fsp.mkdir(dir, {mode: 0o700});
|
|
130
|
+
created = true;
|
|
131
|
+
await fsp.mkdir(dataDir, {mode: 0o700});
|
|
132
|
+
await fsp.writeFile(profile, renderSandboxProfile({kind: 'cdp', userHome, dataDir}), {flag: 'wx', mode: 0o600});
|
|
133
|
+
child = (io.spawn ?? childProcess.spawn)(SANDBOX_EXEC, [
|
|
134
|
+
'-f', profile, CHROME_EXECUTABLE,
|
|
135
|
+
'--headless=new', '--remote-debugging-address=127.0.0.1', '--remote-debugging-port=0',
|
|
136
|
+
`--user-data-dir=${dataDir}`, '--no-first-run', '--no-default-browser-check',
|
|
137
|
+
'--disable-extensions', '--use-mock-keychain', '--no-sandbox', '--disable-gpu',
|
|
138
|
+
'--proxy-server=127.0.0.1:9', '--proxy-bypass-list=127.0.0.1;localhost', 'about:blank',
|
|
139
|
+
], {cwd: hostDir, detached: true, stdio: 'ignore', shell: false});
|
|
140
|
+
const markExited = () => { exited = true; };
|
|
141
|
+
child.once('error', markExited);
|
|
142
|
+
child.once('exit', markExited);
|
|
143
|
+
if (child.pid) onSpawn?.(child.pid);
|
|
144
|
+
const port = await waitForCdpPort(dataDir, timeoutMs, () => exited, wait);
|
|
145
|
+
return {id, started: true, endpoint: {port, url: `http://127.0.0.1:${port}`}, stop};
|
|
146
|
+
} catch {
|
|
147
|
+
const cleanup = await stop();
|
|
148
|
+
throw Object.assign(startFailed(), {cleanup});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export async function writeServicesFile(scratch, records) {
|
|
153
|
+
const endpoints = Object.fromEntries(records.map(({id, endpoint}) => [id, endpoint]));
|
|
154
|
+
await fsp.writeFile(path.join(scratch, 'services.json'), JSON.stringify(endpoints) + '\n', {flag: 'wx', mode: 0o600});
|
|
155
|
+
}
|