sneakoscope 5.3.0 → 5.5.1

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.
Files changed (54) hide show
  1. package/README.md +4 -0
  2. package/crates/sks-core/Cargo.lock +1 -1
  3. package/crates/sks-core/Cargo.toml +1 -1
  4. package/crates/sks-core/src/main.rs +1 -1
  5. package/dist/bin/sks.js +1 -1
  6. package/dist/cli/install-helpers.js +17 -0
  7. package/dist/config/skills-manifest.json +58 -58
  8. package/dist/core/agents/agent-orchestrator.js +14 -2
  9. package/dist/core/agents/agent-proof-evidence.js +16 -0
  10. package/dist/core/bench.js +24 -2
  11. package/dist/core/codex-app/sks-menubar.js +83 -10
  12. package/dist/core/commands/agent-command.js +35 -1
  13. package/dist/core/commands/basic-cli.js +59 -0
  14. package/dist/core/commands/command-utils.js +14 -4
  15. package/dist/core/commands/goal-command.js +3 -0
  16. package/dist/core/commands/image-ux-review-command.js +4 -1
  17. package/dist/core/commands/mad-sks-command.js +10 -1
  18. package/dist/core/commands/naruto-command.js +12 -7
  19. package/dist/core/commands/ppt-command.js +40 -1
  20. package/dist/core/commands/qa-loop-command.js +4 -1
  21. package/dist/core/commands/release-command.js +3 -3
  22. package/dist/core/commands/research-command.js +4 -0
  23. package/dist/core/commands/route-success-helpers.js +2 -0
  24. package/dist/core/commands/run-command.js +22 -5
  25. package/dist/core/commands/seo-command.js +31 -4
  26. package/dist/core/db-safety.js +8 -1
  27. package/dist/core/feature-fixture-executor.js +262 -0
  28. package/dist/core/feature-fixtures.js +95 -52
  29. package/dist/core/fsx.js +1 -1
  30. package/dist/core/loops/loop-decomposer.js +4 -3
  31. package/dist/core/loops/loop-planner.js +7 -3
  32. package/dist/core/loops/loop-worker-runtime.js +6 -0
  33. package/dist/core/pipeline-internals/runtime-gates.js +39 -3
  34. package/dist/core/proof/selftest-proof-fixtures.js +8 -0
  35. package/dist/core/providers/glm/naruto/glm-naruto-requirement-coverage.js +18 -1
  36. package/dist/core/providers/glm/naruto/glm-naruto-requirement-ledger.js +28 -12
  37. package/dist/core/questions.js +12 -10
  38. package/dist/core/release/release-gate-node.js +2 -0
  39. package/dist/core/routes.js +11 -0
  40. package/dist/core/stop-gate/stop-gate-check.js +4 -0
  41. package/dist/core/stop-gate/stop-gate-writer.js +4 -0
  42. package/dist/core/trust-kernel/trust-report.js +10 -1
  43. package/dist/core/update/update-migration-state.js +15 -1
  44. package/dist/core/update-check.js +44 -2
  45. package/dist/core/version.js +1 -1
  46. package/dist/core/work-order-ledger.js +60 -0
  47. package/dist/scripts/gate-policy-audit-check.js +2 -2
  48. package/dist/scripts/packlist-performance-check.js +7 -1
  49. package/dist/scripts/release-dag-full-coverage-check.js +1 -1
  50. package/dist/scripts/release-gate-existence-audit.js +1 -1
  51. package/dist/scripts/release-gate-planner.js +1 -1
  52. package/dist/scripts/release-metadata-1-19-check.js +1 -1
  53. package/package.json +5 -1
  54. package/schemas/release/release-gate-node.schema.json +1 -0
package/README.md CHANGED
@@ -90,6 +90,10 @@ It shows the v5 flow: one-line install, `$Plan`, `$Work`/`$Swarm`, `sks review`,
90
90
  - Node.js `>=20.11`
91
91
  - Git for diff/review and release proof
92
92
  - macOS optional: menu bar integration and `/usr/bin/open`
93
+ - The menubar icon shows and hides itself automatically as the Codex desktop app launches/quits; set `quit_with_codex: true` in `~/.codex/sks-menubar/config.json` to have the menubar fully quit with Codex instead of just hiding (default `false`).
94
+ - Native input dialogs (API keys, codex-lb setup) pass secrets to `sks` via `--api-key-stdin` instead of a visible Terminal window or process arguments.
95
+ - The menubar dropdown's `View Last Log` item opens the most recent background action's log file, so you don't need to keep a Terminal window open to see command output.
96
+ - `sks menubar status --json` reports a `codex_sync` object with `bundle_id`, `codex_running`, and `icon_visible_expected` to show Codex-lifecycle detection state.
93
97
  - Zellij optional but recommended for terminal worker panes
94
98
 
95
99
  ## License
@@ -76,7 +76,7 @@ dependencies = [
76
76
 
77
77
  [[package]]
78
78
  name = "sks-core"
79
- version = "5.3.0"
79
+ version = "5.5.1"
80
80
  dependencies = [
81
81
  "serde_json",
82
82
  ]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "sks-core"
3
- version = "5.3.0"
3
+ version = "5.5.1"
4
4
  edition = "2021"
5
5
 
6
6
  [dependencies]
@@ -4,7 +4,7 @@ use std::io::{self, Read, Seek, SeekFrom};
4
4
  fn main() {
5
5
  let mut args = std::env::args().skip(1);
6
6
  match args.next().as_deref() {
7
- Some("--version") => println!("sks-rs 5.3.0"),
7
+ Some("--version") => println!("sks-rs 5.5.1"),
8
8
  Some("compact-info") => {
9
9
  let mut input = String::new();
10
10
  let _ = io::stdin().read_to_string(&mut input);
package/dist/bin/sks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const FAST_PACKAGE_VERSION = '5.3.0';
2
+ const FAST_PACKAGE_VERSION = '5.5.1';
3
3
  const args = process.argv.slice(2);
4
4
  try {
5
5
  if (args[0] === '--agent' && args[1] === 'worker') {
@@ -50,6 +50,23 @@ export async function postinstall({ bootstrap, args = [] }) {
50
50
  // restore the codex-lb snapshot in finally (even on the early bootstrap return / on throw).
51
51
  try {
52
52
  console.log('\nSKS installed.');
53
+ // The published tarball deliberately excludes dist/.sks-build-stamp.json
54
+ // (package.json files: "!dist/.sks-build-stamp.json"), but `sks update`
55
+ // self-verification requires a version-matching stamp inside the installed
56
+ // package. Regenerate it here so npm installs are verifiable; never
57
+ // overwrite an existing stamp (in a dev checkout the build writes the real
58
+ // one, and re-stamping against the current source tree would mask a stale
59
+ // dist).
60
+ try {
61
+ const stampLib = await import('../scripts/lib/ensure-dist-fresh.js');
62
+ await fsp.access(stampLib.distStampPath).catch(async () => {
63
+ await fsp.writeFile(stampLib.distStampPath, `${JSON.stringify(stampLib.buildStampPayload(), null, 2)}\n`);
64
+ console.log('SKS build stamp: restored for update self-verification (npm packages ship without it).');
65
+ });
66
+ }
67
+ catch (err) {
68
+ console.log(`SKS build stamp: could not restore (${err?.message || err}); \`sks update\` self-verification may report dist_stamp missing.`);
69
+ }
53
70
  const shim = await ensureSksCommandDuringInstall();
54
71
  if (shim.status === 'present')
55
72
  console.log(`SKS command: available (${shim.command ?? 'unknown'}).`);
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "schema": "sks.skills-manifest.v1",
3
- "package_version": "5.3.0",
3
+ "package_version": "5.5.1",
4
4
  "skills": [
5
5
  {
6
6
  "canonical_name": "answer",
7
7
  "type": "official",
8
- "content_sha256": "8fb94d033bf880b1e8f540cfa09501bf4771dff6e86506f16fa1d61c6af0bf3c",
8
+ "content_sha256": "eb355d9d95a624456d1c11ba5f7c2e943eed3e608eaeb7577484bb8684e98f49",
9
9
  "hash_history": [],
10
10
  "deprecated_aliases": []
11
11
  },
12
12
  {
13
13
  "canonical_name": "autoresearch",
14
14
  "type": "official",
15
- "content_sha256": "dc78db2b05574b9d773082dc238e1ff8cd8e381d7cd3439a832cd3d1a5e0e00b",
15
+ "content_sha256": "fb8516b857e6c19c1848464a6a21fb52532542a97140ad151b75b8ba532ecd86",
16
16
  "hash_history": [],
17
17
  "deprecated_aliases": []
18
18
  },
19
19
  {
20
20
  "canonical_name": "autoresearch-loop",
21
21
  "type": "official",
22
- "content_sha256": "9e9f3c384787e9c91996070045ccb28ede99780d34ccddff659b365f572ba367",
22
+ "content_sha256": "3ba603f8f2afc373f4a6a83f0814bb2ed43e076adc02f0fb19795b2b64221c62",
23
23
  "hash_history": [],
24
24
  "deprecated_aliases": []
25
25
  },
26
26
  {
27
27
  "canonical_name": "commit",
28
28
  "type": "official",
29
- "content_sha256": "19f10169140db99b723f52a397ae7a48ed40644b49b7fc69645a55255684e531",
29
+ "content_sha256": "445981ac546ca6649718fb677e88c20b0c15604af962ba9b2c29632657f4bf97",
30
30
  "hash_history": [],
31
31
  "deprecated_aliases": []
32
32
  },
33
33
  {
34
34
  "canonical_name": "commit-and-push",
35
35
  "type": "official",
36
- "content_sha256": "d415de7b324ee2d9420c43e3c98f28564f7a3a3b0e4c87075ee26148c892ca78",
36
+ "content_sha256": "276bc9e8f0ae40e4ad67c3e9386ad44a272c347e54d78587f93a7e4446e167c9",
37
37
  "hash_history": [],
38
38
  "deprecated_aliases": []
39
39
  },
@@ -47,56 +47,56 @@
47
47
  {
48
48
  "canonical_name": "computer-use-fast",
49
49
  "type": "official",
50
- "content_sha256": "ceef5a743f1b02808e3767688e93a29d6b90a3dc205606e55ef9d2ea429e6433",
50
+ "content_sha256": "291f0dd63ff5d22c829e13e91f1f3248b370565d94ed971ef8fab8c253f27516",
51
51
  "hash_history": [],
52
52
  "deprecated_aliases": []
53
53
  },
54
54
  {
55
55
  "canonical_name": "context7-docs",
56
56
  "type": "official",
57
- "content_sha256": "b77c6144104e5fd8b6326f4982911089647de56f6c8183ec12c06fe94f67a695",
57
+ "content_sha256": "36ed3c0fbeb474476b3aa24e88978e580b5d804087155aac01d1705ee5034234",
58
58
  "hash_history": [],
59
59
  "deprecated_aliases": []
60
60
  },
61
61
  {
62
62
  "canonical_name": "cu",
63
63
  "type": "official",
64
- "content_sha256": "518be0a2560228b7fcb9ce6b9d616bb8ba4f8b39bc1dd5bbb413b5040534d0ed",
64
+ "content_sha256": "035445a9c7f9435df2d14d4c9dc4fda1ab7997b5e7da70aded75f66d38a820ea",
65
65
  "hash_history": [],
66
66
  "deprecated_aliases": []
67
67
  },
68
68
  {
69
69
  "canonical_name": "db",
70
70
  "type": "official",
71
- "content_sha256": "b8cd51795c678eabea6c8d9152e51945405a564b5c1c7086050cb9e23f612f05",
71
+ "content_sha256": "a498006166404534318e628709ce5f832ec495dfc3bcc6808c5a771755951283",
72
72
  "hash_history": [],
73
73
  "deprecated_aliases": []
74
74
  },
75
75
  {
76
76
  "canonical_name": "db-safety-guard",
77
77
  "type": "official",
78
- "content_sha256": "d895a36fa408722ca3a126e000f15031fa61f3781110b23ec4436b7347a8c526",
78
+ "content_sha256": "c548b2bde99dea4860e9e21d85a2c86cdb87e4a7a9a7a038e209547c41f967b1",
79
79
  "hash_history": [],
80
80
  "deprecated_aliases": []
81
81
  },
82
82
  {
83
83
  "canonical_name": "design-artifact-expert",
84
84
  "type": "official",
85
- "content_sha256": "1566047ca39b11c2a175db7f1225fd9cff45a87717e3c8da7ffc47ef2f9cac96",
85
+ "content_sha256": "75287c098a423d5b10dccdbe49dea78d4752201491e25ff52efa110bd35ed60a",
86
86
  "hash_history": [],
87
87
  "deprecated_aliases": []
88
88
  },
89
89
  {
90
90
  "canonical_name": "design-system-builder",
91
91
  "type": "official",
92
- "content_sha256": "2a509459e3434543d66df8549e26bfc22b1e2f7da3c718ddf302966a5fa9562a",
92
+ "content_sha256": "50f9ca760b29f9b99775aa0c4a6edda99304c24dba3ba9c37e5c7686f7512a62",
93
93
  "hash_history": [],
94
94
  "deprecated_aliases": []
95
95
  },
96
96
  {
97
97
  "canonical_name": "design-ui-editor",
98
98
  "type": "official",
99
- "content_sha256": "4881236c6fbf9343248021411dd476a004c3be204cf6cea8f216ee5aead8f04f",
99
+ "content_sha256": "f179afd065f360bf98d4f55aa2f0fc670b5927bf990c10bf943fe56292569223",
100
100
  "hash_history": [],
101
101
  "deprecated_aliases": []
102
102
  },
@@ -110,98 +110,98 @@
110
110
  {
111
111
  "canonical_name": "fast-mode",
112
112
  "type": "official",
113
- "content_sha256": "c4fd8f70ef34cb2569e5258baaa361e86ad24f3b0c0b11b5f52fbdafd739aea6",
113
+ "content_sha256": "edc872f6ed65d03c1b65d607108b5a48f6ea19c984ca25242b68c4a76b271799",
114
114
  "hash_history": [],
115
115
  "deprecated_aliases": []
116
116
  },
117
117
  {
118
118
  "canonical_name": "fast-off",
119
119
  "type": "official",
120
- "content_sha256": "de6c190f2e91783a571f28458f1e5d4c53b7d4d8aad9c3e8d35713f154bdea02",
120
+ "content_sha256": "98f25503ce2a9ac5e72c15958340e05a0e6561f4fec827fe8a9211bbac87a2b5",
121
121
  "hash_history": [],
122
122
  "deprecated_aliases": []
123
123
  },
124
124
  {
125
125
  "canonical_name": "fast-on",
126
126
  "type": "official",
127
- "content_sha256": "a6f94a0ba22f14803022742418de0a1d2643ad2d775a71b319f48dd438b47924",
127
+ "content_sha256": "d91d8a574f8fdc73adb6b9fc01d2183fc30f02f9b43ff36db93901a845af93d4",
128
128
  "hash_history": [],
129
129
  "deprecated_aliases": []
130
130
  },
131
131
  {
132
132
  "canonical_name": "from-chat-img",
133
133
  "type": "official",
134
- "content_sha256": "18125b5245f503c961f61b1f0447ff78754aed4e0e78a82b70699a9319a76c02",
134
+ "content_sha256": "c7f348b7c6b443eb2cc04dfa6797fbd370381005921985b423603c5040b5f12c",
135
135
  "hash_history": [],
136
136
  "deprecated_aliases": []
137
137
  },
138
138
  {
139
139
  "canonical_name": "getdesign-reference",
140
140
  "type": "official",
141
- "content_sha256": "eda3653a91e4553b5bd3813b97fe0997b3f9039aa9318d5433a48aafa0077ee2",
141
+ "content_sha256": "08b6d5589d88fa99765a48e88834a25cd7f012b1d85146f001ad75c309d789c5",
142
142
  "hash_history": [],
143
143
  "deprecated_aliases": []
144
144
  },
145
145
  {
146
146
  "canonical_name": "goal",
147
147
  "type": "official",
148
- "content_sha256": "ba8a1817705d7b87ce597c8e8574146f9ab7faa1c4a4adcba0d4dafcbd68bfb9",
148
+ "content_sha256": "3671a7b401c8a996f9cbe4b7e7706cbe7e413f083490bd3302412cd74d019ff0",
149
149
  "hash_history": [],
150
150
  "deprecated_aliases": []
151
151
  },
152
152
  {
153
153
  "canonical_name": "gx",
154
154
  "type": "official",
155
- "content_sha256": "789745db0181420075a6a3969cdf0fa2baf45db69877b075c7584ced0d73f059",
155
+ "content_sha256": "4e0a69dc82f3a369efe7375b2a281ca5b61be75766145601db305de498fc178e",
156
156
  "hash_history": [],
157
157
  "deprecated_aliases": []
158
158
  },
159
159
  {
160
160
  "canonical_name": "gx-visual-generate",
161
161
  "type": "official",
162
- "content_sha256": "fd70574e33809aac5ee4e31f3cc1f29bb253c4716712dd61314e82cf96c24b67",
162
+ "content_sha256": "039f32a65479f9d0d5eb51b6f1ccb2e4349abda9cdf32978be298e9e04f5aab4",
163
163
  "hash_history": [],
164
164
  "deprecated_aliases": []
165
165
  },
166
166
  {
167
167
  "canonical_name": "gx-visual-read",
168
168
  "type": "official",
169
- "content_sha256": "c0f0887544d29c2fcb436cbfb5ef681e70443cd775f1697e2b3dca9e746cd4d9",
169
+ "content_sha256": "3fa2bea36b9ca60f8b4487ee70e20eaddfced1abdce9696b479e95aaac57d432",
170
170
  "hash_history": [],
171
171
  "deprecated_aliases": []
172
172
  },
173
173
  {
174
174
  "canonical_name": "gx-visual-validate",
175
175
  "type": "official",
176
- "content_sha256": "8cd1fbf4cedbcad60e612376ba8d82e75df3950eeeec591cb975f590d706282e",
176
+ "content_sha256": "b18811386fefc098cbb0a29434c8f6f068cc92209bd6b909ec906e7dc49efcbb",
177
177
  "hash_history": [],
178
178
  "deprecated_aliases": []
179
179
  },
180
180
  {
181
181
  "canonical_name": "help",
182
182
  "type": "official",
183
- "content_sha256": "e222cc7d3c190572ee51fd353d917e34a6395c9f7e4d4a06706140fca2f96508",
183
+ "content_sha256": "599d8289904d4c3a015ac233d9bb7dc46a669267b47027126f162a140464d39f",
184
184
  "hash_history": [],
185
185
  "deprecated_aliases": []
186
186
  },
187
187
  {
188
188
  "canonical_name": "honest-mode",
189
189
  "type": "official",
190
- "content_sha256": "298461b2ecb1a2c53fad3c06809a18a3416b26278300c8f248a4ddd58d2622b4",
190
+ "content_sha256": "ef2b581127e498269045554d6544f86a320c85828998a8043d617a565986d56e",
191
191
  "hash_history": [],
192
192
  "deprecated_aliases": []
193
193
  },
194
194
  {
195
195
  "canonical_name": "hproof-claim-ledger",
196
196
  "type": "official",
197
- "content_sha256": "c4c5a3c352129a00a6960d13d66fea83abba066334f054d661c8c1f6414a1a2f",
197
+ "content_sha256": "15997785ec0284ade631752f247531cd9da26cb1a6c2031802d1d322bd73c516",
198
198
  "hash_history": [],
199
199
  "deprecated_aliases": []
200
200
  },
201
201
  {
202
202
  "canonical_name": "hproof-evidence-bind",
203
203
  "type": "official",
204
- "content_sha256": "281b051a4aefdfd8c7a0536f31968b5a270f47741076334e39623b82f4e4f425",
204
+ "content_sha256": "f91d41a64c4eb7346dbb523ffb5c052c980befe17bd2a8daf5857278fb70f8f7",
205
205
  "hash_history": [],
206
206
  "deprecated_aliases": []
207
207
  },
@@ -215,14 +215,14 @@
215
215
  {
216
216
  "canonical_name": "imagegen",
217
217
  "type": "official",
218
- "content_sha256": "3e70f340abb3c7a7bf782e755341f269510e89e0cb3cd5352659d0da49920650",
218
+ "content_sha256": "efcf7dfb4537baef4a5e9f18e297efeb5fb7dba6072ecc505e87f3003566865c",
219
219
  "hash_history": [],
220
220
  "deprecated_aliases": []
221
221
  },
222
222
  {
223
223
  "canonical_name": "imagegen-source-scout",
224
224
  "type": "official",
225
- "content_sha256": "6b82a03af455b2243595946d6d58b63677740a5e2e3b6608505ac8621522421d",
225
+ "content_sha256": "3f6eabfa7b6a0fc9e144cbe0a85488ce2eb449c7b7f04e2f7a7300ac45eb9e34",
226
226
  "hash_history": [],
227
227
  "deprecated_aliases": []
228
228
  },
@@ -236,14 +236,14 @@
236
236
  {
237
237
  "canonical_name": "insane-search",
238
238
  "type": "official",
239
- "content_sha256": "ca9f9aae747fbdf5da021a6d8bdeedf9160abe584afe6220f255856dc854485a",
239
+ "content_sha256": "b0cb54ba495d43e4d6fb828a3f6a7a284d33dc3279904e29a4c09a9827f59052",
240
240
  "hash_history": [],
241
241
  "deprecated_aliases": []
242
242
  },
243
243
  {
244
244
  "canonical_name": "kage-bunshin",
245
245
  "type": "official",
246
- "content_sha256": "a42ada9142cb8dceccd8354db2f1261da53f65d9ad7c298b9d8b822f1a21f2d2",
246
+ "content_sha256": "48a6cd2fbb60b3092d33c2d784e050965195105f83181f5b81476a98f7103fbc",
247
247
  "hash_history": [],
248
248
  "deprecated_aliases": []
249
249
  },
@@ -257,14 +257,14 @@
257
257
  {
258
258
  "canonical_name": "mad-db",
259
259
  "type": "official",
260
- "content_sha256": "b6156c0b6d91d6467ee050e0f18061311420951cea3ee6ee4b645ddb3a9e6925",
260
+ "content_sha256": "05884bb87bc0b174c2ef288c6a808f9226d67aba11610a85d7d5f15c5197c18e",
261
261
  "hash_history": [],
262
262
  "deprecated_aliases": []
263
263
  },
264
264
  {
265
265
  "canonical_name": "mad-sks",
266
266
  "type": "official",
267
- "content_sha256": "7de828cce693fb944ba344c77daa3ad0550ea266a1ee5db09993a2f5b92d7b03",
267
+ "content_sha256": "6c86b9c31ce6ee79dec1a3cdd6df4738f46887b2a10a2d94db8e658ea130deca",
268
268
  "hash_history": [],
269
269
  "deprecated_aliases": []
270
270
  },
@@ -280,35 +280,35 @@
280
280
  {
281
281
  "canonical_name": "performance-evaluator",
282
282
  "type": "official",
283
- "content_sha256": "fba903df67a748a8bb5d009d355f3bb77046ef69d6a8e41a785c3e1d27f8ee8e",
283
+ "content_sha256": "ec7c3555ae4daa64d2e7ec6dda36eb004d2a89ebc3c6a099495f3e94b5d5a30a",
284
284
  "hash_history": [],
285
285
  "deprecated_aliases": []
286
286
  },
287
287
  {
288
288
  "canonical_name": "pipeline-runner",
289
289
  "type": "official",
290
- "content_sha256": "16da5d58ccfe460e4edb701d779dc3503797fe7a10c9c60371d34f61c86e9415",
290
+ "content_sha256": "126215afc5e58add4d57694086407381a684a8d8dc8d4a9d5b83583bf885819d",
291
291
  "hash_history": [],
292
292
  "deprecated_aliases": []
293
293
  },
294
294
  {
295
295
  "canonical_name": "plan",
296
296
  "type": "official",
297
- "content_sha256": "0697682a4091ef1033e7fd1d7f2fe0e1515a759bc991103f5c820aca760e06b1",
297
+ "content_sha256": "ee95cd0170aa40a12e5979ffd4f364d461ca583d080424340e3fc8e2c314b6d4",
298
298
  "hash_history": [],
299
299
  "deprecated_aliases": []
300
300
  },
301
301
  {
302
302
  "canonical_name": "ppt",
303
303
  "type": "official",
304
- "content_sha256": "f1c158cd6ecd865a1f8cfced80a71c5a4faddceb5dac4fad1b50dbbf986eb38a",
304
+ "content_sha256": "3b1d38def9c594f15cd4c416e2424bd727ad64f3fab9e399c24c3787501b7be7",
305
305
  "hash_history": [],
306
306
  "deprecated_aliases": []
307
307
  },
308
308
  {
309
309
  "canonical_name": "prompt-pipeline",
310
310
  "type": "official",
311
- "content_sha256": "6b3ea7e0ceb1e1eedd3bcb84e1c20dd44e909a1bb629374badb44e3012aca3cf",
311
+ "content_sha256": "a06dddb2d16cf9aa9c3094ed4f128e58ee9c90c44c1d62ee764953288e30610a",
312
312
  "hash_history": [],
313
313
  "deprecated_aliases": []
314
314
  },
@@ -324,21 +324,21 @@
324
324
  {
325
325
  "canonical_name": "reasoning-router",
326
326
  "type": "official",
327
- "content_sha256": "f072949bdfbe90c205c6b2a378b627b475b0f91eb0f87c4ce108b463393a3145",
327
+ "content_sha256": "f144e9c1a7ebb6ff0914735e70925969884de1f4967becd855ef410f8a0836a3",
328
328
  "hash_history": [],
329
329
  "deprecated_aliases": []
330
330
  },
331
331
  {
332
332
  "canonical_name": "reflection",
333
333
  "type": "official",
334
- "content_sha256": "6da524178fe39a14bc255d031de238b00d1d9cb137835e6245cf6b55053be9ce",
334
+ "content_sha256": "6c6a0f0616c89ba7345a336c80999011cbd120ce1b9280e5ae0fd0ebae41a478",
335
335
  "hash_history": [],
336
336
  "deprecated_aliases": []
337
337
  },
338
338
  {
339
339
  "canonical_name": "release-review",
340
340
  "type": "official",
341
- "content_sha256": "7fa297ffd534f234fe372c69f309cf00574a04b8ce08d5de0b1c2fb772c53b25",
341
+ "content_sha256": "6c0571e84cc21a6263b4b68afea54f54c3831ef6e14fd6e083bc917e61f7f904",
342
342
  "hash_history": [],
343
343
  "deprecated_aliases": []
344
344
  },
@@ -352,14 +352,14 @@
352
352
  {
353
353
  "canonical_name": "research-discovery",
354
354
  "type": "official",
355
- "content_sha256": "93ca61c53792ee0a92dfb20029cecaa12b602eb36609acc18454fa8e6be69631",
355
+ "content_sha256": "18f5b4f559c2f46f2db8a03d875063879275cf3aca998eb257633ab5e4bb23c8",
356
356
  "hash_history": [],
357
357
  "deprecated_aliases": []
358
358
  },
359
359
  {
360
360
  "canonical_name": "review",
361
361
  "type": "official",
362
- "content_sha256": "7ec295021e7cc79b21755d2de850bec45e2a76340cdd27593b2f2be9736fb712",
362
+ "content_sha256": "4365c8b798ab5d06120350f0a3778db7c64496c7a8b3ed7a1face67701a37826",
363
363
  "hash_history": [],
364
364
  "deprecated_aliases": []
365
365
  },
@@ -380,14 +380,14 @@
380
380
  {
381
381
  "canonical_name": "shadow-clone",
382
382
  "type": "official",
383
- "content_sha256": "ab79a05026a369d2c38447dea47a56786b169e4bce97c77ca874c5c51a2a8d80",
383
+ "content_sha256": "7326107bb5ca9929fb504203487194417d279add0fa37a4e5060e12477cdab56",
384
384
  "hash_history": [],
385
385
  "deprecated_aliases": []
386
386
  },
387
387
  {
388
388
  "canonical_name": "sks",
389
389
  "type": "official",
390
- "content_sha256": "bc98347bd71b58f85817a388088b2fe9cecf6838e616dd56163661d1385a6ebe",
390
+ "content_sha256": "6d017fa22c25ad2c8aaf8403339c45f464763e7c0b609ca1ec16a0e157207884",
391
391
  "hash_history": [],
392
392
  "deprecated_aliases": [
393
393
  "ralph",
@@ -399,21 +399,21 @@
399
399
  {
400
400
  "canonical_name": "solution-scout",
401
401
  "type": "official",
402
- "content_sha256": "a1e8d8844db157b5350570206d3f73d3d6ecdbba47f731a847245c65ca7e6af3",
402
+ "content_sha256": "cbfdd8f3217bd41a28bcbc91060359270b0cf23f1ef7ccb085039e08dd03cf28",
403
403
  "hash_history": [],
404
404
  "deprecated_aliases": []
405
405
  },
406
406
  {
407
407
  "canonical_name": "swarm",
408
408
  "type": "official",
409
- "content_sha256": "fc149bacd6c88ec0fb40ab415773a2d8205572f0e8a8b9874273980f8e9cbc7e",
409
+ "content_sha256": "fcd10b15ad546f3ce4e434acc7094ec951b397a5add4365caefdfce20a22024d",
410
410
  "hash_history": [],
411
411
  "deprecated_aliases": []
412
412
  },
413
413
  {
414
414
  "canonical_name": "team",
415
415
  "type": "official",
416
- "content_sha256": "f47a4f2ee1f6d7279aee09bcba53b35429c5ccc94249dad228e626931c5d4dad",
416
+ "content_sha256": "a53d2a7a8a25ed2d0bce335edbdd6c212d74cafbae1ef176dd2ff366524bdcb2",
417
417
  "hash_history": [],
418
418
  "deprecated_aliases": [
419
419
  "agent-team"
@@ -422,42 +422,42 @@
422
422
  {
423
423
  "canonical_name": "turbo-context-pack",
424
424
  "type": "official",
425
- "content_sha256": "aa1a80d615b96201eda0cbd1b4976f2466572f50ea91f66e839523c0ea032664",
425
+ "content_sha256": "91c8a6e304491ddeabc8dba3be3dc4c9da9654af22240ddce317b679737c1ef0",
426
426
  "hash_history": [],
427
427
  "deprecated_aliases": []
428
428
  },
429
429
  {
430
430
  "canonical_name": "ui-ux-review",
431
431
  "type": "official",
432
- "content_sha256": "0a553cac82fe0f565e854f149c2a1301c76c9d01667a8c7dcd4dbc69c963b9c0",
432
+ "content_sha256": "d4677fc544aeb08635f1da4684cca7f2fdfcf16ad88c9df28aa521e98726f208",
433
433
  "hash_history": [],
434
434
  "deprecated_aliases": []
435
435
  },
436
436
  {
437
437
  "canonical_name": "ultra-search",
438
438
  "type": "official",
439
- "content_sha256": "15a962db1f90171f64cc3ba9a5c3d669bfe29a95d7f9a9d12d310f67e471db8d",
439
+ "content_sha256": "ef9f4489893f59e637f68ae454d9b97dedb4fa63602fea89e518c4c2259d097f",
440
440
  "hash_history": [],
441
441
  "deprecated_aliases": []
442
442
  },
443
443
  {
444
444
  "canonical_name": "ux-review",
445
445
  "type": "official",
446
- "content_sha256": "4b13471bf08770621d9551aa576ba68a92e06690f5de6b599d1863a41d726a28",
446
+ "content_sha256": "9723da43b32f4381c670d9b60cd2ced3e5ca2d7865f723d024e1d5d478dee877",
447
447
  "hash_history": [],
448
448
  "deprecated_aliases": []
449
449
  },
450
450
  {
451
451
  "canonical_name": "visual-review",
452
452
  "type": "official",
453
- "content_sha256": "f2f7de15bd74684e61d12548c4d37a7aa6e828968ddde2281cd17bfe5da8d937",
453
+ "content_sha256": "f37280acbfec69ad5944d55dabecf03aa8cb76df0925705d5b9a67fbaf5e6237",
454
454
  "hash_history": [],
455
455
  "deprecated_aliases": []
456
456
  },
457
457
  {
458
458
  "canonical_name": "wiki",
459
459
  "type": "official",
460
- "content_sha256": "46d7df7242cea20b94465d92284231099445acf77e07b8e4781eb96740fda2d0",
460
+ "content_sha256": "bd2f8567f00995c8c2775c08a4ddb76a348e3d557cb905392ec2eac6f30117dd",
461
461
  "hash_history": [],
462
462
  "deprecated_aliases": [
463
463
  "wiki-refresh",
@@ -467,21 +467,21 @@
467
467
  {
468
468
  "canonical_name": "with-local-llm-off",
469
469
  "type": "official",
470
- "content_sha256": "907c7a14ef2c62d68b847088bda35fb6610936b3f14aa86ef48622c562371e9b",
470
+ "content_sha256": "7d3e39a3480bd513ac28ba13c65e72e98ea52f0cd0c4e187c0185dcdd7c63e2e",
471
471
  "hash_history": [],
472
472
  "deprecated_aliases": []
473
473
  },
474
474
  {
475
475
  "canonical_name": "with-local-llm-on",
476
476
  "type": "official",
477
- "content_sha256": "aa5ef3d1a3eaf6f65556f52a65e10d1b769fdb6568e58163c0cfcb3ad11d592e",
477
+ "content_sha256": "2a3b041e142e5a9d1bddb35b443a1b57d811c428ec27904fd6047c4c31ad3bbb",
478
478
  "hash_history": [],
479
479
  "deprecated_aliases": []
480
480
  },
481
481
  {
482
482
  "canonical_name": "work",
483
483
  "type": "official",
484
- "content_sha256": "34b4b88e98abb7e3813e6ae4d4c5d92a93e15e55876c270263817a51c7d6932f",
484
+ "content_sha256": "43f25e47e14394d4578499c4e7a3d5db07ea581f9af777c4a04876cfa9d64311",
485
485
  "hash_history": [],
486
486
  "deprecated_aliases": []
487
487
  }
@@ -842,7 +842,8 @@ function applyNarutoWorkGraphToPartition(partition, graph, roster, targetActiveS
842
842
  const writePaths = normalizePathList(item.write_paths);
843
843
  const readonlyPaths = normalizePathList(item.readonly_paths);
844
844
  const targetPaths = normalizePathList(item.target_paths);
845
- const parentObjective = normalizeWorkerPromptText(parentPrompt);
845
+ const parentObjectiveNormalized = normalizeWorkerPromptText(parentPrompt);
846
+ const parentObjective = parentObjectiveNormalized.text;
846
847
  return Array.from({ length: candidateCount }, (_unused, candidateOffset) => {
847
848
  const candidateIndex = candidateOffset + 1;
848
849
  const candidateSliceId = candidateCount > 1 ? `${sliceId}-cand${candidateIndex}` : sliceId;
@@ -889,6 +890,9 @@ function applyNarutoWorkGraphToPartition(partition, graph, roster, targetActiveS
889
890
  goal_mode_ref: goalModeRef,
890
891
  strategy_refs: strategyRefs,
891
892
  parent_prompt: parentObjective,
893
+ worker_prompt_truncated: parentObjectiveNormalized.truncated
894
+ ? { worker: owner, dropped_chars: parentObjectiveNormalized.dropped_chars }
895
+ : null,
892
896
  max_attempts: 1,
893
897
  description: [
894
898
  parentObjective ? `Parent Naruto objective:\n${parentObjective}` : null,
@@ -2045,8 +2049,16 @@ function buildDirectSdkWorkerPrompt(slice) {
2045
2049
  'Required JSON fields: status, summary, findings, changed_files, patch_envelopes, verification, rollback_notes, blockers.'
2046
2050
  ].join('\n');
2047
2051
  }
2052
+ const WORKER_PROMPT_TEXT_MAX_CHARS = 32000;
2048
2053
  function normalizeWorkerPromptText(value) {
2049
- return String(value || '').replace(/\s+/g, ' ').trim().slice(0, 4000);
2054
+ const normalized = String(value || '').replace(/[^\S\n]+/g, ' ').replace(/\n{3,}/g, '\n\n').trim();
2055
+ const truncated = normalized.length > WORKER_PROMPT_TEXT_MAX_CHARS;
2056
+ const text = truncated ? normalized.slice(0, WORKER_PROMPT_TEXT_MAX_CHARS) : normalized;
2057
+ return {
2058
+ text,
2059
+ truncated,
2060
+ dropped_chars: truncated ? normalized.length - WORKER_PROMPT_TEXT_MAX_CHARS : 0
2061
+ };
2050
2062
  }
2051
2063
  function buildDirectNoPatchReason(slice, opts) {
2052
2064
  const writePathCount = sdkWritePaths(slice, opts).length;
@@ -134,6 +134,19 @@ export async function writeAgentProofEvidence(root, input) {
134
134
  || (scheduler.pending_queue_drained === true
135
135
  && Number(scheduler.active_slot_count || 0) === 0
136
136
  && Number(scheduler.max_observed_active_slots || 0) >= Number(scheduler.target_active_slots || 0));
137
+ const workQueueItems = Array.isArray(workQueue?.items) ? workQueue.items : [];
138
+ const workItemsNotAllCompletedIds = workQueueItems
139
+ .filter((item) => item.status !== 'completed')
140
+ .map((item) => String(item.id));
141
+ const workItemsFailedOrBlockedCount = Number(scheduler?.failed_count || 0) + Number(scheduler?.blocked_count || 0);
142
+ const workItemStatusById = new Map(workQueueItems.map((item) => [String(item.id), String(item.status)]));
143
+ const orphanedPendingWorkItemIds = workQueueItems
144
+ .filter((item) => item.status === 'pending')
145
+ .filter((item) => (Array.isArray(item.dependencies) ? item.dependencies : []).some((dep) => {
146
+ const depStatus = workItemStatusById.get(String(dep));
147
+ return depStatus === 'failed' || depStatus === 'blocked' || !depStatus;
148
+ }))
149
+ .map((item) => String(item.id));
137
150
  const blockers = [
138
151
  ...(lifecycle.ok ? [] : ['agent_lifecycle_not_all_closed']),
139
152
  ...(lifecycle.ok ? [] : lifecycle.open_sessions.map((id) => 'session_open:' + id)),
@@ -154,6 +167,9 @@ export async function writeAgentProofEvidence(root, input) {
154
167
  ...(taskGraph && !taskGraphMatchesCliOptions ? ['task_graph_cli_options_mismatch'] : []),
155
168
  ...(workQueue && taskGraph && !workQueueMatchesTaskGraph ? ['work_queue_task_graph_mismatch'] : []),
156
169
  ...(scheduler && workQueue && !schedulerMatchesWorkQueue ? ['scheduler_work_queue_mismatch'] : []),
170
+ ...(workQueue && schedulerTotalWorkItems && Number(scheduler?.completed_count || 0) !== schedulerTotalWorkItems ? ['work_items_not_all_completed:' + workItemsNotAllCompletedIds.join(',')] : []),
171
+ ...(workItemsFailedOrBlockedCount > 0 ? ['work_items_failed:' + workItemsFailedOrBlockedCount] : []),
172
+ ...(orphanedPendingWorkItemIds.length ? ['work_items_orphaned_pending:' + orphanedPendingWorkItemIds.join(',')] : []),
157
173
  ...(taskGraph && !taskGraphSourceRefsOk ? ['task_graph_source_refs_missing'] : []),
158
174
  ...(taskGraph && !taskGraphGoalRefsOk ? ['task_graph_goal_refs_missing'] : []),
159
175
  ...(taskGraph && !taskGraphStrategyRefsOk ? ['task_graph_strategy_refs_missing'] : []),