sneakoscope 2.0.14 → 2.0.16

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 (491) hide show
  1. package/README.md +6 -3
  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/.sks-build-stamp.json +4 -4
  6. package/dist/bin/sks.js +1 -1
  7. package/dist/cli/command-registry.js +2 -1
  8. package/dist/commands/mad-db.js +5 -0
  9. package/dist/commands/zellij-slot-pane.js +3 -1
  10. package/dist/core/agents/agent-orchestrator.js +66 -3
  11. package/dist/core/agents/agent-plan.js +3 -2
  12. package/dist/core/agents/agent-scheduler.js +204 -86
  13. package/dist/core/agents/agent-schema.js +1 -1
  14. package/dist/core/agents/native-cli-session-swarm.js +199 -15
  15. package/dist/core/agents/native-cli-worker.js +85 -0
  16. package/dist/core/agents/parallel-runtime-proof.js +217 -0
  17. package/dist/core/codex-control/codex-task-runner.js +32 -4
  18. package/dist/core/codex-control/model-call-concurrency.js +106 -0
  19. package/dist/core/commands/basic-cli.js +1 -1
  20. package/dist/core/commands/command-suggestions.js +1 -1
  21. package/dist/core/commands/mad-db-command.js +106 -0
  22. package/dist/core/commands/mad-sks-command.js +50 -13
  23. package/dist/core/commands/naruto-command.js +128 -5
  24. package/dist/core/commands/research-command.js +13 -1
  25. package/dist/core/commands/team-command.js +23 -175
  26. package/dist/core/db-safety.js +55 -1
  27. package/dist/core/fsx.js +1 -1
  28. package/dist/core/git/git-worktree-capability.js +18 -0
  29. package/dist/core/git/git-worktree-manager.js +80 -0
  30. package/dist/core/git/git-worktree-pool.js +4 -0
  31. package/dist/core/mad-db/mad-db-capability.js +116 -0
  32. package/dist/core/mad-db/mad-db-ledger.js +31 -0
  33. package/dist/core/mad-db/mad-db-policy-resolver.js +48 -0
  34. package/dist/core/naruto/naruto-concurrency-governor.js +14 -1
  35. package/dist/core/pipeline-internals/runtime-core.js +74 -8
  36. package/dist/core/pipeline-internals/runtime-gates.js +44 -0
  37. package/dist/core/proof/route-proof-gate.js +5 -3
  38. package/dist/core/proof/route-proof-policy.js +9 -1
  39. package/dist/core/release/release-gate-affected-selector.js +113 -0
  40. package/dist/core/release/release-gate-batch-runner.js +67 -0
  41. package/dist/core/release/release-gate-dag.js +22 -3
  42. package/dist/core/release/release-gate-resource-governor.js +23 -11
  43. package/dist/core/research/implementation-blueprint-densifier.js +1 -1
  44. package/dist/core/research/implementation-blueprint-markdown.js +1 -1
  45. package/dist/core/research/implementation-blueprint.js +68 -7
  46. package/dist/core/research/research-final-reviewer.js +27 -1
  47. package/dist/core/research/research-handoff.js +69 -5
  48. package/dist/core/research/research-realistic-report.js +162 -0
  49. package/dist/core/research/research-repetition-detector.js +75 -0
  50. package/dist/core/research/research-report-quality.js +27 -5
  51. package/dist/core/research/research-stage-runner.js +40 -13
  52. package/dist/core/research/research-synthesis-prompt.js +52 -0
  53. package/dist/core/research/research-synthesis-writer.js +208 -0
  54. package/dist/core/research.js +60 -48
  55. package/dist/core/routes.js +23 -19
  56. package/dist/core/update/update-notice.js +120 -0
  57. package/dist/core/version.js +1 -1
  58. package/dist/core/zellij/zellij-dashboard-renderer.js +2 -0
  59. package/dist/core/zellij/zellij-slot-column-anchor.js +35 -1
  60. package/dist/core/zellij/zellij-slot-pane-renderer.js +57 -0
  61. package/dist/core/zellij/zellij-slot-telemetry.js +237 -0
  62. package/dist/scripts/release-gate-dag-runner.js +5 -0
  63. package/dist/scripts/release-speed-summary.js +27 -0
  64. package/package.json +76 -5
  65. package/schemas/agents/parallel-runtime-proof.schema.json +48 -0
  66. package/schemas/mad-db/mad-db-capability.schema.json +31 -0
  67. package/schemas/mad-db/mad-db-ledger.schema.json +14 -0
  68. package/schemas/research/implementation-blueprint.schema.json +6 -1
  69. package/schemas/research/research-final-review.schema.json +10 -0
  70. package/schemas/research/research-synthesis-output.schema.json +62 -0
  71. package/schemas/update/update-notice.schema.json +19 -0
  72. package/schemas/zellij/zellij-slot-telemetry.schema.json +89 -0
  73. package/dist/scripts/agent-ast-aware-work-graph-check.js +0 -25
  74. package/dist/scripts/agent-backfill-replenishment-check.js +0 -13
  75. package/dist/scripts/agent-backfill-route-blackbox.js +0 -5
  76. package/dist/scripts/agent-background-terminals-check.js +0 -16
  77. package/dist/scripts/agent-cleanup-command-ux-check.js +0 -12
  78. package/dist/scripts/agent-cleanup-executor-check.js +0 -53
  79. package/dist/scripts/agent-cleanup-executor-v2-check.js +0 -39
  80. package/dist/scripts/agent-cli-options-to-task-graph-check.js +0 -5
  81. package/dist/scripts/agent-codex-app-cockpit-check.js +0 -91
  82. package/dist/scripts/agent-codex-child-overlap-check.js +0 -21
  83. package/dist/scripts/agent-dynamic-cockpit-check.js +0 -10
  84. package/dist/scripts/agent-dynamic-pool-check.js +0 -13
  85. package/dist/scripts/agent-dynamic-pool-route-blackbox.js +0 -5
  86. package/dist/scripts/agent-fast-mode-default-check.js +0 -62
  87. package/dist/scripts/agent-fast-mode-worker-propagation-check.js +0 -7
  88. package/dist/scripts/agent-follow-up-work-schema-check.js +0 -80
  89. package/dist/scripts/agent-goal-mode-propagation-check.js +0 -9
  90. package/dist/scripts/agent-intelligent-work-graph-check.js +0 -25
  91. package/dist/scripts/agent-janitor-check.js +0 -76
  92. package/dist/scripts/agent-main-no-scout-check.js +0 -11
  93. package/dist/scripts/agent-model-authored-patch-envelope-check.js +0 -15
  94. package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
  95. package/dist/scripts/agent-native-cli-session-proof-check.js +0 -7
  96. package/dist/scripts/agent-native-cli-session-swarm-10-check.js +0 -7
  97. package/dist/scripts/agent-native-cli-session-swarm-20-check.js +0 -7
  98. package/dist/scripts/agent-native-cli-session-swarm-check.js +0 -7
  99. package/dist/scripts/agent-no-subagent-scaling-check.js +0 -7
  100. package/dist/scripts/agent-parallel-write-blackbox.js +0 -56
  101. package/dist/scripts/agent-parallel-write-kernel-check.js +0 -103
  102. package/dist/scripts/agent-patch-conflict-rebase-check.js +0 -198
  103. package/dist/scripts/agent-patch-envelope-extraction-check.js +0 -17
  104. package/dist/scripts/agent-patch-proof-check.js +0 -41
  105. package/dist/scripts/agent-patch-proof-runtime-check.js +0 -63
  106. package/dist/scripts/agent-patch-queue-runtime-check.js +0 -36
  107. package/dist/scripts/agent-patch-rollback-check.js +0 -38
  108. package/dist/scripts/agent-patch-rollback-dag-check.js +0 -14
  109. package/dist/scripts/agent-patch-swarm-route-blackbox.js +0 -10
  110. package/dist/scripts/agent-patch-swarm-runtime-check.js +0 -10
  111. package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +0 -76
  112. package/dist/scripts/agent-patch-transaction-journal-check.js +0 -57
  113. package/dist/scripts/agent-patch-verification-dag-check.js +0 -14
  114. package/dist/scripts/agent-proof-contract-reconciled-check.js +0 -5
  115. package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +0 -166
  116. package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +0 -14
  117. package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +0 -229
  118. package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +0 -5
  119. package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +0 -5
  120. package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +0 -5
  121. package/dist/scripts/agent-real-codex-parallel-workers-check.js +0 -5
  122. package/dist/scripts/agent-role-config-repair-check.js +0 -33
  123. package/dist/scripts/agent-rollback-command-check.js +0 -86
  124. package/dist/scripts/agent-route-truth-backfill-check.js +0 -5
  125. package/dist/scripts/agent-scheduler-proof-check.js +0 -13
  126. package/dist/scripts/agent-scheduler-proof-hardening-check.js +0 -22
  127. package/dist/scripts/agent-session-generation-check.js +0 -21
  128. package/dist/scripts/agent-slot-pane-binding-proof-check.js +0 -64
  129. package/dist/scripts/agent-source-intelligence-propagation-check.js +0 -9
  130. package/dist/scripts/agent-strategy-to-lease-wiring-check.js +0 -32
  131. package/dist/scripts/agent-strategy-to-patch-strict-check.js +0 -54
  132. package/dist/scripts/agent-task-graph-expansion-check.js +0 -14
  133. package/dist/scripts/agent-terminal-generations-check.js +0 -23
  134. package/dist/scripts/agent-visual-consistency-check.js +0 -9
  135. package/dist/scripts/agent-wiki-context-proof-check.js +0 -62
  136. package/dist/scripts/agent-worker-backend-router-check.js +0 -63
  137. package/dist/scripts/agent-worker-scout-limited-check.js +0 -17
  138. package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +0 -34
  139. package/dist/scripts/agent-zellij-runtime-check.js +0 -84
  140. package/dist/scripts/all-feature-deep-completion-check.js +0 -31
  141. package/dist/scripts/appshots-capability-check.js +0 -18
  142. package/dist/scripts/appshots-evidence-check.js +0 -48
  143. package/dist/scripts/appshots-operator-policy-check.js +0 -25
  144. package/dist/scripts/appshots-privacy-safety-check.js +0 -48
  145. package/dist/scripts/appshots-source-intelligence-check.js +0 -53
  146. package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -87
  147. package/dist/scripts/appshots-triwiki-voxel-check.js +0 -46
  148. package/dist/scripts/architecture-guard-check.js +0 -55
  149. package/dist/scripts/changelog-check.js +0 -47
  150. package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
  151. package/dist/scripts/codex-0-134-official-compat-report.js +0 -110
  152. package/dist/scripts/codex-0-134-runner-truth-check.js +0 -66
  153. package/dist/scripts/codex-0-135-compat-check.js +0 -57
  154. package/dist/scripts/codex-0-136-compat-check.js +0 -30
  155. package/dist/scripts/codex-0-137-compat-check.js +0 -27
  156. package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -32
  157. package/dist/scripts/codex-app-provider-badge-check.js +0 -37
  158. package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
  159. package/dist/scripts/codex-app-ui-preservation-check.js +0 -96
  160. package/dist/scripts/codex-control-all-pipelines-check.js +0 -36
  161. package/dist/scripts/codex-control-capability-check.js +0 -10
  162. package/dist/scripts/codex-control-empty-result-retry-check.js +0 -43
  163. package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -10
  164. package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +0 -14
  165. package/dist/scripts/codex-control-no-legacy-fallback-check.js +0 -31
  166. package/dist/scripts/codex-control-side-effect-scope-check.js +0 -26
  167. package/dist/scripts/codex-control-stream-idle-watchdog-check.js +0 -18
  168. package/dist/scripts/codex-control-structured-output-check.js +0 -11
  169. package/dist/scripts/codex-control-thread-registry-check.js +0 -11
  170. package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +0 -14
  171. package/dist/scripts/codex-environment-scoped-approvals-check.js +0 -10
  172. package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +0 -33
  173. package/dist/scripts/codex-fast-mode-profile-propagation-check.js +0 -12
  174. package/dist/scripts/codex-history-search-check.js +0 -19
  175. package/dist/scripts/codex-hook-semantic-check.js +0 -15
  176. package/dist/scripts/codex-hook-strict-subset-check.js +0 -61
  177. package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
  178. package/dist/scripts/codex-lb-persistence-truth-check.js +0 -96
  179. package/dist/scripts/codex-lb-setup-fixture-check.js +0 -91
  180. package/dist/scripts/codex-lb-setup-truthfulness-check.js +0 -84
  181. package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +0 -24
  182. package/dist/scripts/codex-managed-proxy-env-check.js +0 -17
  183. package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
  184. package/dist/scripts/codex-permission-profiles-check.js +0 -36
  185. package/dist/scripts/codex-plugin-list-json-check.js +0 -8
  186. package/dist/scripts/codex-profile-primary-check.js +0 -13
  187. package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -51
  188. package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
  189. package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -32
  190. package/dist/scripts/codex-sdk-backend-router-check.js +0 -65
  191. package/dist/scripts/codex-sdk-capability-check.js +0 -11
  192. package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +0 -9
  193. package/dist/scripts/codex-sdk-dfix-pipeline-check.js +0 -9
  194. package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -9
  195. package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +0 -33
  196. package/dist/scripts/codex-sdk-qa-pipeline-check.js +0 -8
  197. package/dist/scripts/codex-sdk-real-smoke-check.js +0 -39
  198. package/dist/scripts/codex-sdk-release-review-pipeline-check.js +0 -13
  199. package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -47
  200. package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -21
  201. package/dist/scripts/codex-sdk-structured-output-check.js +0 -10
  202. package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +0 -12
  203. package/dist/scripts/codex-sdk-thread-registry-check.js +0 -11
  204. package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +0 -9
  205. package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
  206. package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
  207. package/dist/scripts/codex-web-adapter-check.js +0 -12
  208. package/dist/scripts/computer-use-live-evidence-check.js +0 -55
  209. package/dist/scripts/computer-use-live-optional-check.js +0 -32
  210. package/dist/scripts/computer-use-policy-check.js +0 -69
  211. package/dist/scripts/computer-use-visual-route-fixture-check.js +0 -37
  212. package/dist/scripts/core-skill-card-schema-check.js +0 -61
  213. package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -54
  214. package/dist/scripts/core-skill-heldout-validation-check.js +0 -49
  215. package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -75
  216. package/dist/scripts/core-skill-patch-check.js +0 -79
  217. package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +0 -64
  218. package/dist/scripts/core-skill-rollout-scoring-check.js +0 -72
  219. package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -49
  220. package/dist/scripts/dfix-fast-blackbox-check.js +0 -37
  221. package/dist/scripts/dfix-fast-kernel-check.js +0 -26
  222. package/dist/scripts/dfix-fixture-check.js +0 -6
  223. package/dist/scripts/dfix-parallel-write-blackbox.js +0 -48
  224. package/dist/scripts/dfix-patch-handoff-check.js +0 -13
  225. package/dist/scripts/dfix-patch-swarm-route-blackbox.js +0 -10
  226. package/dist/scripts/dfix-performance-check.js +0 -15
  227. package/dist/scripts/dfix-verification-check.js +0 -9
  228. package/dist/scripts/dfix-verification-recommendation-check.js +0 -15
  229. package/dist/scripts/docs-truthfulness-check.js +0 -61
  230. package/dist/scripts/doctor-codex-doctor-parity-check.js +0 -17
  231. package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -64
  232. package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
  233. package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -39
  234. package/dist/scripts/evidence-fixture-check.js +0 -26
  235. package/dist/scripts/evidence-flagship-coverage-check.js +0 -55
  236. package/dist/scripts/fake-real-proof-policy-v2-check.js +0 -27
  237. package/dist/scripts/fake-vs-real-proof-policy-check.js +0 -14
  238. package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -42
  239. package/dist/scripts/flagship-proof-graph-v2-check.js +0 -48
  240. package/dist/scripts/flagship-proof-graph-v3-check.js +0 -67
  241. package/dist/scripts/flagship-proof-graph-v4-check.js +0 -61
  242. package/dist/scripts/git-precommit-fixture-check.js +0 -41
  243. package/dist/scripts/git-worktree-cache-performance-check.js +0 -25
  244. package/dist/scripts/git-worktree-capability-check.js +0 -27
  245. package/dist/scripts/git-worktree-checkpoint-check.js +0 -20
  246. package/dist/scripts/git-worktree-cleanup-check.js +0 -27
  247. package/dist/scripts/git-worktree-cross-rebase-check.js +0 -39
  248. package/dist/scripts/git-worktree-diff-envelope-check.js +0 -17
  249. package/dist/scripts/git-worktree-diff-export-check.js +0 -43
  250. package/dist/scripts/git-worktree-dirty-lock-check.js +0 -17
  251. package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -14
  252. package/dist/scripts/git-worktree-integration-primary-check.js +0 -24
  253. package/dist/scripts/git-worktree-integration-primary-runtime-check.js +0 -20
  254. package/dist/scripts/git-worktree-manager-check.js +0 -37
  255. package/dist/scripts/git-worktree-manifest-append-check.js +0 -18
  256. package/dist/scripts/git-worktree-merge-queue-check.js +0 -31
  257. package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
  258. package/dist/scripts/git-worktree-untracked-diff-check.js +0 -18
  259. package/dist/scripts/goal-mode-official-default-check.js +0 -12
  260. package/dist/scripts/gpt-final-arbiter-check.js +0 -63
  261. package/dist/scripts/gpt-final-arbiter-performance-check.js +0 -36
  262. package/dist/scripts/gpt-image-2-request-validator-check.js +0 -35
  263. package/dist/scripts/hooks-0.134-context-parity-check.js +0 -20
  264. package/dist/scripts/hooks-actual-parity-check.js +0 -17
  265. package/dist/scripts/hooks-actual-parity-v2-check.js +0 -21
  266. package/dist/scripts/hooks-latest-schema-check.js +0 -20
  267. package/dist/scripts/hooks-managed-install-fixture-check.js +0 -21
  268. package/dist/scripts/hooks-official-hash-oracle-check.js +0 -35
  269. package/dist/scripts/hooks-official-hash-parity-check.js +0 -17
  270. package/dist/scripts/hooks-subagent-events-check.js +0 -17
  271. package/dist/scripts/hooks-trust-state-check.js +0 -14
  272. package/dist/scripts/image-fidelity-fixture-check.js +0 -24
  273. package/dist/scripts/imagegen-capability-check.js +0 -30
  274. package/dist/scripts/imagegen-real-smoke-check.js +0 -155
  275. package/dist/scripts/install-update-preserves-config-check.js +0 -87
  276. package/dist/scripts/json-schema-recursive-check.js +0 -78
  277. package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
  278. package/dist/scripts/legacy-upgrade-matrix-check.js +0 -300
  279. package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +0 -21
  280. package/dist/scripts/local-collab-gpt-final-availability-check.js +0 -58
  281. package/dist/scripts/local-collab-no-local-only-final-check.js +0 -27
  282. package/dist/scripts/local-collab-policy-check.js +0 -17
  283. package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +0 -63
  284. package/dist/scripts/local-llm-all-pipelines-check.js +0 -11
  285. package/dist/scripts/local-llm-cache-performance-check.js +0 -10
  286. package/dist/scripts/local-llm-capability-check.js +0 -14
  287. package/dist/scripts/local-llm-smoke-check.js +0 -23
  288. package/dist/scripts/local-llm-structured-output-check.js +0 -11
  289. package/dist/scripts/local-llm-throughput-check.js +0 -10
  290. package/dist/scripts/local-llm-tool-call-repair-check.js +0 -10
  291. package/dist/scripts/local-llm-warmup-check.js +0 -11
  292. package/dist/scripts/loop-blocker-check.js +0 -15
  293. package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -35
  294. package/dist/scripts/mad-sks-actual-executor-blackbox.js +0 -5
  295. package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -92
  296. package/dist/scripts/mad-sks-audit-proof-check.js +0 -34
  297. package/dist/scripts/mad-sks-db-executor-check.js +0 -5
  298. package/dist/scripts/mad-sks-executor-proof-graph-check.js +0 -5
  299. package/dist/scripts/mad-sks-fast-mode-propagation-check.js +0 -24
  300. package/dist/scripts/mad-sks-file-write-executor-check.js +0 -5
  301. package/dist/scripts/mad-sks-immutable-harness-check.js +0 -36
  302. package/dist/scripts/mad-sks-no-harness-modification-check.js +0 -25
  303. package/dist/scripts/mad-sks-package-executor-check.js +0 -5
  304. package/dist/scripts/mad-sks-permission-model-check.js +0 -22
  305. package/dist/scripts/mad-sks-rollback-apply-check.js +0 -5
  306. package/dist/scripts/mad-sks-service-executor-check.js +0 -5
  307. package/dist/scripts/mad-sks-shell-executor-check.js +0 -5
  308. package/dist/scripts/mad-sks-write-guard-check.js +0 -28
  309. package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +0 -37
  310. package/dist/scripts/mad-sks-zellij-launch-check.js +0 -102
  311. package/dist/scripts/mcp-0-134-modernization-check.js +0 -55
  312. package/dist/scripts/mcp-readonly-concurrency-check.js +0 -17
  313. package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +0 -20
  314. package/dist/scripts/mcp-tool-naming-parity-check.js +0 -16
  315. package/dist/scripts/memory-summary-rebuild-check.js +0 -22
  316. package/dist/scripts/mutation-callsite-coverage-check.js +0 -180
  317. package/dist/scripts/naruto-active-pool-check.js +0 -39
  318. package/dist/scripts/naruto-actual-worker-control-plane-check.js +0 -56
  319. package/dist/scripts/naruto-allocation-policy-check.js +0 -33
  320. package/dist/scripts/naruto-allocation-runtime-wiring-check.js +0 -92
  321. package/dist/scripts/naruto-concurrency-governor-check.js +0 -53
  322. package/dist/scripts/naruto-extreme-parallelism-check.js +0 -22
  323. package/dist/scripts/naruto-extreme-parallelism-real-check.js +0 -43
  324. package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
  325. package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
  326. package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
  327. package/dist/scripts/naruto-readonly-routing-check.js +0 -116
  328. package/dist/scripts/naruto-real-active-pool-check.js +0 -39
  329. package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -55
  330. package/dist/scripts/naruto-rebalance-policy-check.js +0 -41
  331. package/dist/scripts/naruto-role-distribution-check.js +0 -23
  332. package/dist/scripts/naruto-shadow-clone-swarm-check.js +0 -153
  333. package/dist/scripts/naruto-verification-pool-check.js +0 -36
  334. package/dist/scripts/naruto-work-graph-check.js +0 -24
  335. package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -29
  336. package/dist/scripts/naruto-worktree-coding-check.js +0 -44
  337. package/dist/scripts/naruto-worktree-gpt-final-check.js +0 -45
  338. package/dist/scripts/naruto-worktree-zellij-ui-check.js +0 -28
  339. package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +0 -48
  340. package/dist/scripts/naruto-zellij-massive-ui-check.js +0 -23
  341. package/dist/scripts/non-recursive-pipeline-check.js +0 -68
  342. package/dist/scripts/npm-publish-performance-check.js +0 -65
  343. package/dist/scripts/official-docs-compat-report.js +0 -304
  344. package/dist/scripts/packlist-performance-check.js +0 -83
  345. package/dist/scripts/parallel-verification-engine-check.js +0 -85
  346. package/dist/scripts/postinstall-safe-side-effects-check.js +0 -65
  347. package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
  348. package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -109
  349. package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
  350. package/dist/scripts/ppt-imagegen-blackbox-check.js +0 -46
  351. package/dist/scripts/ppt-imagegen-review-fixture-check.js +0 -6
  352. package/dist/scripts/ppt-issue-extraction-fixture-check.js +0 -7
  353. package/dist/scripts/ppt-no-mock-as-real-check.js +0 -8
  354. package/dist/scripts/ppt-no-text-fallback-check.js +0 -7
  355. package/dist/scripts/ppt-proof-trust-fixture-check.js +0 -10
  356. package/dist/scripts/ppt-real-export-adapter-check.js +0 -13
  357. package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -42
  358. package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -16
  359. package/dist/scripts/ppt-reexport-rereview-check.js +0 -19
  360. package/dist/scripts/ppt-slide-export-fixture-check.js +0 -7
  361. package/dist/scripts/prepublish-fast-check.js +0 -128
  362. package/dist/scripts/priority-full-closure-check.js +0 -12
  363. package/dist/scripts/product-design-auto-install-check.js +0 -119
  364. package/dist/scripts/product-design-plugin-routing-check.js +0 -101
  365. package/dist/scripts/prompt-placeholder-guard-check.js +0 -33
  366. package/dist/scripts/provider-badge-context-check.js +0 -26
  367. package/dist/scripts/provider-context-config-toml-check.js +0 -63
  368. package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -47
  369. package/dist/scripts/python-codex-sdk-capability-check.js +0 -75
  370. package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +0 -10
  371. package/dist/scripts/python-codex-sdk-stream-bridge-check.js +0 -12
  372. package/dist/scripts/python-tools-smoke-check.js +0 -71
  373. package/dist/scripts/qa-actual-route-backfill-check.js +0 -5
  374. package/dist/scripts/qa-backfill-route-blackbox.js +0 -5
  375. package/dist/scripts/qa-patch-swarm-route-blackbox.js +0 -10
  376. package/dist/scripts/readme-architecture-imagegen-official-check.js +0 -448
  377. package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
  378. package/dist/scripts/release-dag-full-coverage-check.js +0 -66
  379. package/dist/scripts/release-dist-freshness-check.js +0 -8
  380. package/dist/scripts/release-dynamic-performance-check.js +0 -103
  381. package/dist/scripts/release-gate-budget-check.js +0 -36
  382. package/dist/scripts/release-gate-dag-runner-check.js +0 -17
  383. package/dist/scripts/release-metadata-1-11-check.js +0 -37
  384. package/dist/scripts/release-metadata-1-12-check.js +0 -48
  385. package/dist/scripts/release-metadata-1-13-check.js +0 -53
  386. package/dist/scripts/release-metadata-1-14-check.js +0 -63
  387. package/dist/scripts/release-metadata-1-16-check.js +0 -81
  388. package/dist/scripts/release-metadata-1-17-check.js +0 -51
  389. package/dist/scripts/release-metadata-1-19-check.js +0 -371
  390. package/dist/scripts/release-metadata-check.js +0 -7
  391. package/dist/scripts/release-native-agent-fixture-check.js +0 -41
  392. package/dist/scripts/release-parallel-check.js +0 -374
  393. package/dist/scripts/release-parallel-full-coverage-check.js +0 -13
  394. package/dist/scripts/release-parallel-speed-budget-check.js +0 -84
  395. package/dist/scripts/release-provenance-check.js +0 -150
  396. package/dist/scripts/release-real-check.js +0 -330
  397. package/dist/scripts/release-registry-check.js +0 -344
  398. package/dist/scripts/release-runtime-truth-matrix-check.js +0 -47
  399. package/dist/scripts/release-stability-report-check.js +0 -99
  400. package/dist/scripts/release-version-truth-check.js +0 -134
  401. package/dist/scripts/research-actual-route-backfill-check.js +0 -5
  402. package/dist/scripts/research-backfill-route-blackbox.js +0 -5
  403. package/dist/scripts/research-blueprint-densifier-check.js +0 -21
  404. package/dist/scripts/research-claim-builder-check.js +0 -19
  405. package/dist/scripts/research-complete-package-fixture-check.js +0 -23
  406. package/dist/scripts/research-final-reviewer-blackbox.js +0 -22
  407. package/dist/scripts/research-parallel-source-shards-check.js +0 -22
  408. package/dist/scripts/research-quality-gate-check.js +0 -111
  409. package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +0 -14
  410. package/dist/scripts/research-short-report-rejection-check.js +0 -46
  411. package/dist/scripts/research-source-ledger-merge-check.js +0 -26
  412. package/dist/scripts/research-stage-cycle-runtime-blackbox.js +0 -24
  413. package/dist/scripts/responses-retry-policy-centralized-check.js +0 -19
  414. package/dist/scripts/retention-cleanup-safety-check.js +0 -155
  415. package/dist/scripts/route-blackbox-realism-check.js +0 -21
  416. package/dist/scripts/route-proof-artifact-structure-check.js +0 -145
  417. package/dist/scripts/runtime-dist-parity-check.js +0 -78
  418. package/dist/scripts/runtime-no-mjs-scripts-check.js +0 -45
  419. package/dist/scripts/runtime-no-src-mjs-check.js +0 -32
  420. package/dist/scripts/runtime-no-tmux-check.js +0 -113
  421. package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
  422. package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -74
  423. package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -55
  424. package/dist/scripts/safety-check.js +0 -23
  425. package/dist/scripts/shared-memory-fixture-check.js +0 -27
  426. package/dist/scripts/side-effect-runtime-report-check.js +0 -19
  427. package/dist/scripts/side-effect-zero-gate-check.js +0 -226
  428. package/dist/scripts/sks-1-11-fixture-check.js +0 -130
  429. package/dist/scripts/source-intelligence-all-modes-check.js +0 -32
  430. package/dist/scripts/source-intelligence-policy-check.js +0 -13
  431. package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +0 -22
  432. package/dist/scripts/strategy-file-ownership-plan-check.js +0 -18
  433. package/dist/scripts/strategy-parallel-modification-plan-check.js +0 -19
  434. package/dist/scripts/strategy-verification-rollback-dag-check.js +0 -19
  435. package/dist/scripts/team-actual-route-backfill-check.js +0 -5
  436. package/dist/scripts/team-backfill-route-blackbox.js +0 -5
  437. package/dist/scripts/team-parallel-write-blackbox.js +0 -55
  438. package/dist/scripts/team-patch-swarm-route-blackbox.js +0 -10
  439. package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +0 -12
  440. package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
  441. package/dist/scripts/test-no-orphan-dist-imports-check.js +0 -73
  442. package/dist/scripts/trust-fixture-check.js +0 -33
  443. package/dist/scripts/typescript-migration-report.js +0 -78
  444. package/dist/scripts/ultra-router-auto-router-check.js +0 -33
  445. package/dist/scripts/ultra-router-classification-check.js +0 -28
  446. package/dist/scripts/ux-patch-swarm-route-blackbox.js +0 -10
  447. package/dist/scripts/ux-ppt-structured-extraction-check.js +0 -21
  448. package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +0 -8
  449. package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -15
  450. package/dist/scripts/ux-review-generate-callouts-fixture-check.js +0 -9
  451. package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
  452. package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -67
  453. package/dist/scripts/ux-review-no-fake-callouts-check.js +0 -8
  454. package/dist/scripts/ux-review-no-text-fallback-check.js +0 -25
  455. package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -20
  456. package/dist/scripts/ux-review-patch-handoff-fixture-check.js +0 -8
  457. package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -31
  458. package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -24
  459. package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
  460. package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -11
  461. package/dist/scripts/worker-pane-communication-contract-check.js +0 -54
  462. package/dist/scripts/wrongness-fixture-check.js +0 -65
  463. package/dist/scripts/xai-mcp-capability-check.js +0 -14
  464. package/dist/scripts/zellij-capability-check.js +0 -15
  465. package/dist/scripts/zellij-dashboard-pane-check.js +0 -70
  466. package/dist/scripts/zellij-developer-controls-check.js +0 -20
  467. package/dist/scripts/zellij-doctor-readiness-check.js +0 -63
  468. package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -21
  469. package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
  470. package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -356
  471. package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -28
  472. package/dist/scripts/zellij-lane-renderer-check.js +0 -65
  473. package/dist/scripts/zellij-launch-command-truth-check.js +0 -75
  474. package/dist/scripts/zellij-layout-valid-check.js +0 -90
  475. package/dist/scripts/zellij-pane-proof-check.js +0 -59
  476. package/dist/scripts/zellij-real-session-cleanup-check.js +0 -21
  477. package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
  478. package/dist/scripts/zellij-real-session-launch-check.js +0 -57
  479. package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -22
  480. package/dist/scripts/zellij-right-column-manager-check.js +0 -27
  481. package/dist/scripts/zellij-screen-proof-check.js +0 -45
  482. package/dist/scripts/zellij-slot-column-anchor-check.js +0 -66
  483. package/dist/scripts/zellij-slot-only-ui-check.js +0 -26
  484. package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -106
  485. package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -59
  486. package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -40
  487. package/dist/scripts/zellij-ui-design-check.js +0 -105
  488. package/dist/scripts/zellij-worker-pane-manager-check.js +0 -109
  489. package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
  490. package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -202
  491. package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
@@ -1,73 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- // Release gate: no test file may import a `dist/...` module whose TypeScript
4
- // source no longer exists. This catches "test rot" left behind when a source
5
- // module is deleted (e.g. the tmux runtime removed in the Zellij migration)
6
- // but its test file is not — those tests fail with ERR_MODULE_NOT_FOUND and,
7
- // because they live under test/unit + test/integration (which no release gate
8
- // executes), the rot stays invisible. This gate makes it visible.
9
- import fs from 'node:fs';
10
- import path from 'node:path';
11
- import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
12
- const testDir = path.join(root, 'test');
13
- // Match real ES import references to a dist module, NOT string-literal args:
14
- // import x from '../../core/foo.js'
15
- // import { y } from "../bar.js"
16
- // await import('../../baz.js')
17
- // The leading `from`/`import(` requirement is what excludes assertion strings
18
- // like `{ file: 'dist/index.js' }` from being treated as imports.
19
- const IMPORT_RE = /(?:\bfrom\s*|\bimport\s*\(\s*)['"]([^'"]*\bdist\/[^'"]+\.js)['"]/g;
20
- const orphans = [];
21
- let scanned = 0;
22
- let importEdges = 0;
23
- for (const file of walk(testDir)) {
24
- if (!file.endsWith('.test.mjs'))
25
- continue;
26
- scanned += 1;
27
- const text = fs.readFileSync(file, 'utf8');
28
- const rel = path.relative(root, file);
29
- const seen = new Set();
30
- for (const match of text.matchAll(IMPORT_RE)) {
31
- const ref = normalizeDistRef(match[1]);
32
- if (!ref || seen.has(ref))
33
- continue;
34
- seen.add(ref);
35
- importEdges += 1;
36
- const srcPath = path.join(root, 'src', ref.replace(/^dist\//, '').replace(/\.js$/, '.ts'));
37
- const distPath = path.join(root, ref);
38
- // Pass if EITHER the TS source exists (module is real, just not built yet)
39
- // OR a built artifact exists. Only when both are missing is it an orphan.
40
- if (!fs.existsSync(srcPath) && !fs.existsSync(distPath)) {
41
- orphans.push({ test: rel, missing_import: ref, expected_source: path.relative(root, srcPath) });
42
- }
43
- }
44
- }
45
- assertGate(orphans.length === 0, 'test files import deleted dist modules (orphan tests; delete them or restore the source)', { orphans });
46
- emitGate('test:no-orphan-dist-imports', {
47
- schema: 'sks.test-no-orphan-dist-imports.v1',
48
- test_files_scanned: scanned,
49
- dist_import_edges: importEdges
50
- });
51
- function normalizeDistRef(raw) {
52
- const idx = raw.lastIndexOf('dist/');
53
- return idx >= 0 ? raw.slice(idx) : '';
54
- }
55
- function walk(dir) {
56
- const out = [];
57
- let entries;
58
- try {
59
- entries = fs.readdirSync(dir, { withFileTypes: true });
60
- }
61
- catch {
62
- return out;
63
- }
64
- for (const entry of entries) {
65
- const full = path.join(dir, entry.name);
66
- if (entry.isDirectory())
67
- out.push(...walk(full));
68
- else
69
- out.push(full);
70
- }
71
- return out;
72
- }
73
- //# sourceMappingURL=test-no-orphan-dist-imports-check.js.map
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs/promises';
4
- import os from 'node:os';
5
- import path from 'node:path';
6
- import { runProcess } from '../core/fsx.js';
7
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-trust-fixture-'));
8
- await fs.writeFile(path.join(root, 'package.json'), '{"private":true,"name":"sks-trust-fixture"}\n');
9
- await runProcess('git', ['init', '-q'], {
10
- cwd: root,
11
- timeoutMs: 10_000,
12
- maxOutputBytes: 64 * 1024,
13
- env: { CI: 'true' }
14
- });
15
- const sks = path.join(process.cwd(), 'dist', 'bin', 'sks.js');
16
- const run = await runJson(root, sks, ['run', 'fixture', '--mock', '--json']);
17
- const trust = await runJson(root, sks, ['trust', 'validate', run.mission_id, '--json']);
18
- const ok = run.ok === true && ['verified', 'verified_partial'].includes(trust.status);
19
- console.log(JSON.stringify({ schema: 'sks.trust-fixture-check.v1', ok, mission_id: run.mission_id, trust_status: trust.status, issues: trust.issues || [] }, null, 2));
20
- if (!ok)
21
- process.exitCode = 1;
22
- async function runJson(rootDir, sksBin, args) {
23
- const result = await runProcess(process.execPath, [sksBin, ...args], {
24
- cwd: rootDir,
25
- timeoutMs: 60_000,
26
- maxOutputBytes: 512 * 1024,
27
- env: { SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' }
28
- });
29
- if (result.code !== 0)
30
- throw new Error(`${args.join(' ')} failed: ${result.stderr || result.stdout}`);
31
- return JSON.parse(result.stdout);
32
- }
33
- //# sourceMappingURL=trust-fixture-check.js.map
@@ -1,78 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- /**
4
- * Writes .sneakoscope/reports/typescript-migration.{json,md}
5
- */
6
- import fs from 'node:fs';
7
- import path from 'node:path';
8
- import { fileURLToPath } from 'node:url';
9
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
10
- const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
11
- const srcRoot = path.join(root, 'src');
12
- const distRoot = path.join(root, 'dist');
13
- function walkTs(dir, out) {
14
- if (!fs.existsSync(dir))
15
- return;
16
- for (const ent of fs.readdirSync(dir, { withFileTypes: true })) {
17
- const p = path.join(dir, ent.name);
18
- if (ent.isDirectory())
19
- walkTs(p, out);
20
- else if (ent.isFile() && ent.name.endsWith('.ts'))
21
- out.push(p);
22
- }
23
- }
24
- function walk(dir, patt, acc) {
25
- if (!fs.existsSync(dir))
26
- return;
27
- for (const ent of fs.readdirSync(dir, { withFileTypes: true })) {
28
- const p = path.join(dir, ent.name);
29
- if (ent.isDirectory())
30
- walk(p, patt, acc);
31
- else if (ent.isFile() && patt(ent.name))
32
- acc.push(p);
33
- }
34
- }
35
- const tsFiles = [];
36
- walkTs(srcRoot, tsFiles);
37
- let nocheck = 0;
38
- let tsignore = 0;
39
- let expectErrBad = 0;
40
- for (const f of tsFiles) {
41
- const t = fs.readFileSync(f, 'utf8');
42
- if (/^\s*\/\/\s*@ts-nocheck/m.test(t) || /\n\/\/\s*@ts-nocheck/.test(t))
43
- nocheck += 1;
44
- if (/@ts-ignore\b/.test(t))
45
- tsignore += 1;
46
- for (const line of t.split('\n'))
47
- if (/@ts-expect-error\b/.test(line) && !/SKS-/.test(line))
48
- expectErrBad += 1;
49
- }
50
- const mjs = [];
51
- walk(distRoot, (n) => n.endsWith('.mjs'), mjs);
52
- const srcMjs = [];
53
- walk(srcRoot, (n) => n.endsWith('.mjs'), srcMjs);
54
- const registryText = fs.readFileSync(path.join(srcRoot, 'cli', 'command-registry.ts'), 'utf8');
55
- const typedEntries = (registryText.match(/\bentry\(/g) || []).length;
56
- const report = {
57
- schema: 'sks.typescript-migration.v1',
58
- version: pkg.version,
59
- runtime_ts_files: tsFiles.length,
60
- runtime_mjs_files: srcMjs.length,
61
- src_mjs_runtime_files: srcMjs.length,
62
- src_mjs_removed: srcMjs.length === 0,
63
- ts_nocheck: nocheck,
64
- ts_ignore: tsignore,
65
- ts_expect_error_without_reason: expectErrBad,
66
- typed_command_entries: typedEntries,
67
- dist_mjs_files: mjs.length,
68
- status: nocheck === 0 && tsignore === 0 && expectErrBad === 0 && srcMjs.length === 0 ? 'verified' : 'blocked',
69
- };
70
- const outDir = path.join(root, '.sneakoscope', 'reports');
71
- fs.mkdirSync(outDir, { recursive: true });
72
- const jsonPath = path.join(outDir, 'typescript-migration.json');
73
- const mdPath = path.join(outDir, 'typescript-migration.md');
74
- fs.writeFileSync(jsonPath, `${JSON.stringify(report, null, 2)}\n`);
75
- const md = `# TypeScript Migration Report (${report.version})\n\n\`\`\`json\n${JSON.stringify(report, null, 2)}\n\`\`\`\n`;
76
- fs.writeFileSync(mdPath, md);
77
- console.log(JSON.stringify({ schema: `${report.schema}-write.v1`, ok: true, jsonPath, mdPath }, null, 2));
78
- //# sourceMappingURL=typescript-migration-report.js.map
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
4
- const router = await importDist('core/router/ultra-router.js');
5
- const cache = await importDist('core/router/route-cache.js');
6
- cache.clearRouteCache();
7
- const simpleWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-001', workItemId: 'slice-1' }));
8
- const cachedWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-001', workItemId: 'slice-1' }));
9
- const imageWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-002', workItemId: 'slice-2', inputImages: ['screen.png'] }));
10
- const orchestrator = router.routeCodexTask(baseTask({ tier: 'orchestrator', prompt: 'conflict resolution final synthesis' }));
11
- assertGate(simpleWorker.selected_profile === 'fast-worker', 'simple worker should choose cheapest good-enough profile', simpleWorker);
12
- assertGate(cachedWorker.cache_hit === true, 'second identical routing decision must hit cache', cachedWorker);
13
- assertGate(imageWorker.selected_profile === 'vision-worker', 'image worker must hard-filter non-vision candidates', imageWorker);
14
- assertGate(orchestrator.tier === 'orchestrator' && orchestrator.selected_profile.includes('orchestrator'), 'orchestrator task must stay orchestrator tier', orchestrator);
15
- assertGate(orchestrator.reason.includes('score>=threshold') || orchestrator.reason.includes('deterministic-default'), 'router must emit deterministic reason', orchestrator);
16
- emitGate('ultra-router:auto-router', { worker: simpleWorker.selected_profile, image_worker: imageWorker.selected_profile, cache_hit: cachedWorker.cache_hit, orchestrator: orchestrator.selected_profile });
17
- function baseTask(extra = {}) {
18
- return {
19
- route: '$Agent',
20
- missionId: 'M-ultra-router-auto',
21
- cwd: process.cwd(),
22
- prompt: 'fixture',
23
- inputFiles: [],
24
- inputImages: [],
25
- outputSchemaId: 'sks.agent-worker-result.v1',
26
- outputSchema: {},
27
- sandboxPolicy: 'read-only',
28
- requestedScopeContract: { read_only: true },
29
- mutationLedgerRoot: process.cwd(),
30
- ...extra
31
- };
32
- }
33
- //# sourceMappingURL=ultra-router-auto-router-check.js.map
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
4
- const classifier = await importDist('core/router/task-classifier.js');
5
- const orchestrator = classifier.classifyCodexTask(baseTask({ prompt: 'strategy planning and final synthesis', route: '$Team' }));
6
- const worker = classifier.classifyCodexTask(baseTask({ prompt: 'work item patch shard', route: '$Naruto', slotId: 'slot-001', workItemId: 'slice-1' }));
7
- const imageWorker = classifier.classifyCodexTask(baseTask({ prompt: 'image QA shard', inputImages: ['screen.png'], slotId: 'slot-002', workItemId: 'slice-2' }));
8
- assertGate(orchestrator.tier === 'orchestrator', 'main route must classify as orchestrator', orchestrator);
9
- assertGate(worker.tier === 'worker', 'worker slot must classify as worker', worker);
10
- assertGate(imageWorker.image_required === true, 'image task must carry image hard filter signal', imageWorker);
11
- emitGate('ultra-router:classification', { orchestrator: orchestrator.tier, worker: worker.tier, image_required: imageWorker.image_required });
12
- function baseTask(extra = {}) {
13
- return {
14
- route: '$Agent',
15
- missionId: 'M-ultra-router-classification',
16
- cwd: process.cwd(),
17
- prompt: 'fixture',
18
- inputFiles: [],
19
- inputImages: [],
20
- outputSchemaId: 'sks.agent-worker-result.v1',
21
- outputSchema: {},
22
- sandboxPolicy: 'read-only',
23
- requestedScopeContract: { read_only: true },
24
- mutationLedgerRoot: process.cwd(),
25
- ...extra
26
- };
27
- }
28
- //# sourceMappingURL=ultra-router-classification-check.js.map
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runPatchSwarmRouteBlackbox } from './agent-patch-swarm-gate-lib.js';
4
- await runPatchSwarmRouteBlackbox({
5
- gate: 'ux:patch-swarm-route-blackbox',
6
- route: '$UX-Review',
7
- routeCommand: 'sks ux-review',
8
- reportName: 'ux-patch-swarm-route-blackbox'
9
- });
10
- //# sourceMappingURL=ux-patch-swarm-route-blackbox.js.map
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- const schemas = [
6
- 'schemas/codex/image-ux-issue-ledger.schema.json',
7
- 'schemas/codex/ppt-slide-issue-ledger.schema.json',
8
- 'schemas/codex/ppt-slide-extraction-report.schema.json'
9
- ].map((rel) => ({ rel, json: JSON.parse(fs.readFileSync(path.join(process.cwd(), rel), 'utf8')) }));
10
- const checks = schemas.map(({ rel, json }) => ({
11
- rel,
12
- root_strict: json.additionalProperties === false,
13
- issue_strict: rel.includes('extraction-report')
14
- ? json.properties.slide_reports.items.additionalProperties === false
15
- : (json.properties.issues.items.additionalProperties === false || json.$defs?.issue?.additionalProperties === false)
16
- }));
17
- const ok = checks.every((check) => check.root_strict && check.issue_strict);
18
- console.log(JSON.stringify({ schema: 'sks.ux-ppt-structured-extraction-check.v1', ok, checks }, null, 2));
19
- if (!ok)
20
- process.exitCode = 1;
21
- //# sourceMappingURL=ux-ppt-structured-extraction-check.js.map
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
4
- const result = runUxFixture();
5
- const issues = readMissionJson(result.mission_id, 'image-ux-issue-ledger.json');
6
- assertGate(issues.schema === 'sks.image-ux-issue-ledger.v3' && Array.isArray(issues.issues), 'image UX issue extraction ledger invalid', issues);
7
- emitGate('ux-review:extract-real-callouts-fixture', { mission_id: result.mission_id, issues: issues.issues.length });
8
- //# sourceMappingURL=ux-review-extract-real-callouts-fixture-check.js.map
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
4
- requireContains('ux-review:extract-wires-real-extractor', 'src/core/commands/image-ux-review-command.ts', [
5
- 'extractIssuesImageUxReview',
6
- 'extractRealCallouts',
7
- 'IMAGE_UX_REVIEW_CALLOUT_EXTRACTION_REPORT_ARTIFACT'
8
- ]);
9
- requireContains('ux-review:extract-wires-real-extractor', 'src/core/image-ux-review.ts', [
10
- 'sks.image-ux-callout-extraction-report.v1',
11
- 'bbox_validation_issues',
12
- 'verified_cap'
13
- ]);
14
- emitGate('ux-review:extract-wires-real-extractor', { artifact: 'image-ux-callout-extraction-report.json' });
15
- //# sourceMappingURL=ux-review-extract-wires-real-extractor-check.js.map
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
4
- const result = runUxFixture();
5
- const ledger = readMissionJson(result.mission_id, 'image-ux-generated-review-ledger.json');
6
- assertGate(ledger.status === 'generated'
7
- || (ledger.generated_images || ledger.review_images || ledger.generated_review_images || []).length > 0, 'generated image UX callout ledger missing generated evidence', ledger);
8
- emitGate('ux-review:generate-callouts-fixture', { mission_id: result.mission_id });
9
- //# sourceMappingURL=ux-review-generate-callouts-fixture-check.js.map
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import assert from 'node:assert/strict';
4
- import fs from 'node:fs/promises';
5
- import os from 'node:os';
6
- import path from 'node:path';
7
- import { pathToFileURL } from 'node:url';
8
- const root = process.cwd();
9
- const ledgerMod = await import(pathToFileURL(path.join(root, 'dist/core/wiki-image/image-voxel-ledger.js')));
10
- const validationMod = await import(pathToFileURL(path.join(root, 'dist/core/wiki-image/validation.js')));
11
- const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-ux-rel-'));
12
- await fs.mkdir(path.join(tmp, 'img'), { recursive: true });
13
- const png = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMB/axX7V8AAAAASUVORK5CYII=', 'base64');
14
- await fs.writeFile(path.join(tmp, 'img/source.png'), png);
15
- await fs.writeFile(path.join(tmp, 'img/generated.png'), png);
16
- await ledgerMod.ingestImage(tmp, 'img/source.png', { id: 'source-screen', missionId: 'M-fixture' });
17
- await ledgerMod.ingestImage(tmp, 'img/generated.png', { id: 'generated-callout', missionId: 'M-fixture' });
18
- const relation = await ledgerMod.addImageRelation(tmp, {
19
- missionId: 'M-fixture',
20
- type: 'generated_callout_review_of',
21
- beforeImageId: 'source-screen',
22
- afterImageId: 'generated-callout',
23
- sourceImageId: 'source-screen',
24
- generatedImageId: 'generated-callout',
25
- verification: 'fixture',
26
- status: 'verified_partial'
27
- });
28
- const validation = validationMod.validateImageVoxelLedger(relation.ledger, { requireRelations: true });
29
- assert.equal(validation.ok, true, validation.issues.join(', '));
30
- console.log(JSON.stringify({ schema: 'sks.ux-review-image-voxel-relations.v1', ok: true, relations: relation.ledger.relations.length }, null, 2));
31
- //# sourceMappingURL=ux-review-image-voxel-relations-check.js.map
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { spawnSync } from 'node:child_process';
6
- import { osTempPngFixtureArg } from './lib/valid-png-fixture.js';
7
- const sourceImage = osTempPngFixtureArg('ux-review-imagegen-blackbox-source.png');
8
- const run = spawnSync(process.execPath, ['./dist/bin/sks.js', 'ux-review', 'run', '--image', sourceImage, '--generate-callouts', '--json'], {
9
- cwd: process.cwd(),
10
- env: { ...process.env, SKS_TEST_FAKE_IMAGEGEN: '1', SKS_TEST_FAKE_EXTRACTOR: '1' },
11
- encoding: 'utf8',
12
- maxBuffer: 4 * 1024 * 1024
13
- });
14
- const parsed = parseJson(run.stdout);
15
- const missionDir = parsed?.mission_id ? path.join(process.cwd(), '.sneakoscope', 'missions', parsed.mission_id) : null;
16
- const request = missionDir ? readJson(path.join(missionDir, 'image-ux-gpt-image-2-request.json')) : null;
17
- const response = missionDir ? readJson(path.join(missionDir, 'image-ux-gpt-image-2-response.json')) : null;
18
- const issues = missionDir ? readJson(path.join(missionDir, 'image-ux-issue-ledger.json')) : null;
19
- const generated = missionDir ? readJson(path.join(missionDir, 'image-ux-generated-review-ledger.json')) : null;
20
- const proof = missionDir ? readJson(path.join(missionDir, 'completion-proof.json')) : null;
21
- const ok = Boolean(parsed?.mission_id)
22
- && run.status === 0
23
- && parsed?.status === 'verified_partial_reference'
24
- && request?.validation?.ok === true
25
- && response?.fake_adapter === true
26
- && generated?.generated_count === 1
27
- && generated?.real_generated_count === 0
28
- && generated?.non_real_generated_count === 1
29
- && generated?.generated_review_images?.[0]?.mock === true
30
- && Array.isArray(issues?.issues)
31
- && issues.issues.length > 0
32
- && issues.issues.every((issue) => issue.source === 'mock_fixture')
33
- && proof?.status === 'verified_partial'
34
- && proof?.evidence?.image_ux_review?.reference_only === true
35
- && proof?.evidence?.image_ux_review?.generated_gpt_image_2_callout_images_count === 0;
36
- console.log(JSON.stringify({
37
- schema: 'sks.ux-review-imagegen-blackbox-check.v1',
38
- ok,
39
- process_status: run.status,
40
- mission_id: parsed?.mission_id || null,
41
- gate_status: parsed?.status || null,
42
- proof_status: proof?.status || null,
43
- reference_only: proof?.evidence?.image_ux_review?.reference_only === true,
44
- source_image: sourceImage,
45
- request,
46
- response,
47
- issue_count: issues?.issues?.length || 0
48
- }, null, 2));
49
- if (!ok)
50
- process.exitCode = 1;
51
- function parseJson(text) {
52
- try {
53
- return JSON.parse(text);
54
- }
55
- catch {
56
- return null;
57
- }
58
- }
59
- function readJson(file) {
60
- try {
61
- return JSON.parse(fs.readFileSync(file, 'utf8'));
62
- }
63
- catch {
64
- return null;
65
- }
66
- }
67
- //# sourceMappingURL=ux-review-imagegen-blackbox-check.js.map
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
4
- const result = runUxFixture();
5
- const proof = readMissionJson(result.mission_id, 'completion-proof.json');
6
- assertGate(proof.status !== 'verified' && JSON.stringify(proof).includes('mock'), 'mock image UX callouts were allowed to claim full real verification', { status: proof.status });
7
- emitGate('ux-review:no-fake-callouts', { mission_id: result.mission_id, status: proof.status });
8
- //# sourceMappingURL=ux-review-no-fake-callouts-check.js.map
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import assert from 'node:assert/strict';
4
- import { pathToFileURL } from 'node:url';
5
- import path from 'node:path';
6
- const root = process.cwd();
7
- const mod = await import(pathToFileURL(path.join(root, 'dist/core/image-ux-review.js')));
8
- const contract = { prompt: 'text-only fallback fixture', answers: { IMAGE_UX_REVIEW_SOURCE_IMAGES: ['test/fixtures/images/one-by-one.png'] } };
9
- const inventory = await mod.hydrateImageUxScreenInventory(root, mod.buildImageUxScreenInventory(contract));
10
- const generatedReviewLedger = mod.buildImageUxGeneratedReviewLedger(contract, inventory, {
11
- generated_review_images: [{
12
- id: 'text-only-review',
13
- source_screen_id: 'screen-1',
14
- text_only: true,
15
- status: 'text_only',
16
- mock: false,
17
- real_generated: false
18
- }]
19
- });
20
- const issueLedger = mod.buildImageUxIssueLedger(contract, generatedReviewLedger, null);
21
- const gate = mod.defaultImageUxReviewGate(contract, { inventory, generatedReviewLedger, issueLedger });
22
- assert.equal(gate.passed, false);
23
- assert.ok(gate.blockers.includes('ux_review_text_only_fallback'));
24
- console.log(JSON.stringify({ schema: 'sks.ux-review-no-text-fallback.v1', ok: true, blockers: gate.blockers }, null, 2));
25
- //# sourceMappingURL=ux-review-no-text-fallback-check.js.map
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
4
- requireContains('ux-review:patch-diff-recheck', 'src/core/image-ux-review/fix-loop.ts', [
5
- 'changed_files',
6
- 'recapture_required',
7
- 'no_op_patch_wrongness',
8
- 'regression'
9
- ]);
10
- requireContains('ux-review:patch-diff-recheck', 'src/core/image-ux-review/patch-handoff.ts', [
11
- 'explicit_apply_opt_in',
12
- 'dry_run',
13
- 'recapture_required'
14
- ]);
15
- requireContains('ux-review:patch-diff-recheck', 'src/core/commands/image-ux-review-command.ts', [
16
- 'attachAfterImageCommand',
17
- 'recheck'
18
- ]);
19
- emitGate('ux-review:patch-diff-recheck', { patch_handoff: 'dry-run-by-default', recapture: 'required-after-change' });
20
- //# sourceMappingURL=ux-review-patch-diff-recheck-check.js.map
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
4
- const result = runUxFixture();
5
- const plan = readMissionJson(result.mission_id, 'image-ux-fix-task-plan.json');
6
- assertGate(/^sks\.image-ux-fix-task-plan\.v[12]$/.test(plan.schema) && Array.isArray(plan.tasks), 'image UX patch handoff plan invalid', plan);
7
- emitGate('ux-review:patch-handoff-fixture', { mission_id: result.mission_id, tasks: plan.tasks.length });
8
- //# sourceMappingURL=ux-review-patch-handoff-fixture-check.js.map
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { spawnSync } from 'node:child_process';
4
- const enabled = process.env.SKS_TEST_REAL_IMAGEGEN === '1' || process.env.SKS_REAL_IMAGEGEN === '1';
5
- const hasKey = Boolean(process.env.OPENAI_API_KEY || process.env.SKS_CODEX_APP_IMAGEGEN === '1');
6
- if (!enabled || !hasKey) {
7
- const result = {
8
- schema: 'sks.ux-real-imagegen-smoke.v1',
9
- ok: true,
10
- status: 'integration_optional',
11
- reason: !enabled ? 'SKS_TEST_REAL_IMAGEGEN=1 not set' : 'OPENAI_API_KEY or Codex App imagegen capability not configured',
12
- fake_adapter: false,
13
- real_generated: false
14
- };
15
- console.log(JSON.stringify(result, null, 2));
16
- process.exit(0);
17
- }
18
- const run = spawnSync(process.execPath, ['./dist/scripts/imagegen-real-smoke-check.js'], { cwd: process.cwd(), env: process.env, encoding: 'utf8', maxBuffer: 8 * 1024 * 1024 });
19
- const result = {
20
- schema: 'sks.ux-real-imagegen-smoke.v1',
21
- ok: run.status === 0,
22
- status: run.status === 0 ? 'passed' : 'blocked',
23
- fake_adapter: false,
24
- real_generated: run.status === 0,
25
- stdout_tail: run.stdout.slice(-4000),
26
- stderr_tail: run.stderr.slice(-4000)
27
- };
28
- console.log(JSON.stringify(result, null, 2));
29
- if (!result.ok)
30
- process.exitCode = 1;
31
- //# sourceMappingURL=ux-review-real-imagegen-smoke-check.js.map
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import assert from 'node:assert/strict';
4
- import { spawnSync } from 'node:child_process';
5
- import path from 'node:path';
6
- const root = process.cwd();
7
- const result = spawnSync(process.execPath, [path.join(root, 'dist/bin/sks.js'), 'image-ux-review', 'fixture', '--mock', '--json'], {
8
- cwd: root,
9
- encoding: 'utf8',
10
- env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' },
11
- timeout: Number(process.env.SKS_UX_REVIEW_REAL_LOOP_FIXTURE_TIMEOUT_MS || 180_000)
12
- });
13
- assert.equal(result.status, 0, JSON.stringify({
14
- stderr: result.stderr,
15
- stdout: result.stdout,
16
- signal: result.signal,
17
- error: result.error?.message || null
18
- }, null, 2));
19
- const json = JSON.parse(result.stdout);
20
- assert.equal(json.artifacts.gate.mock_fixture_cannot_claim_real, true);
21
- assert.equal(json.artifacts.generated_review_ledger.real_generated_count, 0);
22
- assert.equal(json.artifacts.generated_review_ledger.generated_count, 1);
23
- console.log(JSON.stringify({ schema: 'sks.ux-review-real-loop-fixture.v1', ok: true, mission_id: json.mission_id }, null, 2));
24
- //# sourceMappingURL=ux-review-real-loop-fixture-check.js.map
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
4
- const result = runUxFixture();
5
- const recapture = readMissionJson(result.mission_id, 'image-ux-recapture-plan.json');
6
- assertGate(recapture.changed_screens_rechecked_or_not_applicable === true, 'image UX recapture/recheck did not pass', recapture);
7
- emitGate('ux-review:recapture-recheck-fixture', { mission_id: result.mission_id });
8
- //# sourceMappingURL=ux-review-recapture-recheck-fixture-check.js.map
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
4
- requireContains('ux-review:run-wires-imagegen', 'src/core/commands/image-ux-review-command.ts', [
5
- 'const shouldGenerateCallouts = flag(args, \'--generate-callouts\') || flag(args, \'--fix\')',
6
- 'generateGptImage2CalloutReview',
7
- 'extractRealCallouts',
8
- 'buildImageUxCalloutExtractionReport'
9
- ]);
10
- emitGate('ux-review:run-wires-imagegen', { command_path: 'sks ux-review run', imagegen_adapter: 'generateGptImage2CalloutReview' });
11
- //# sourceMappingURL=ux-review-run-wires-imagegen-check.js.map
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs/promises';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import { writeWorkerPaneCommunicationContract, evaluateWorkerPaneCommunicationContract } from '../core/agents/worker-pane-communication-contract.js';
6
- import { packageRoot } from '../core/fsx.js';
7
- const root = packageRoot();
8
- const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-worker-pane-contract-'));
9
- const workerDir = path.join('sessions', 'slot-001', 'gen-1', 'worker');
10
- await fs.mkdir(path.join(tmp, workerDir), { recursive: true });
11
- await fs.writeFile(path.join(tmp, 'agent-native-cli-session-swarm.json'), `${JSON.stringify({
12
- records: [{
13
- session_id: 'slot-001-gen-1',
14
- slot_id: 'slot-001',
15
- generation_index: 1,
16
- worker_artifact_dir: workerDir,
17
- worker_intake: path.join(workerDir, 'worker-intake.json'),
18
- result_path: path.join(workerDir, 'worker-result.json'),
19
- heartbeat_path: path.join(workerDir, 'worker-heartbeat.jsonl'),
20
- patch_envelope_path: path.join(workerDir, 'worker-patch-envelope.json'),
21
- scaling_primitive: 'native_cli_process_in_zellij_worker_pane'
22
- }]
23
- }, null, 2)}\n`);
24
- await fs.writeFile(path.join(tmp, workerDir, 'worker-intake.json'), '{"ok":true}\n');
25
- await fs.writeFile(path.join(tmp, workerDir, 'worker-result.json'), '{"status":"done"}\n');
26
- await fs.writeFile(path.join(tmp, workerDir, 'worker-heartbeat.jsonl'), '{"event":"started"}\n');
27
- await fs.writeFile(path.join(tmp, workerDir, 'worker-process-report.json'), '{"pid":1234}\n');
28
- await fs.writeFile(path.join(tmp, workerDir, 'codex-control-proof.json'), '{"ok":true,"sdk_thread_id":"sdk-thread-1"}\n');
29
- await fs.writeFile(path.join(tmp, workerDir, 'worker-no-patch-reason.json'), '{"ok":true}\n');
30
- await fs.writeFile(path.join(tmp, workerDir, 'zellij-worker-pane-events.jsonl'), [
31
- '{"event_type":"session_launch_started"}',
32
- '{"event_type":"zellij_worker_pane_created"}',
33
- '{"event_type":"worker_started"}',
34
- '{"event_type":"codex_sdk_thread_started"}',
35
- '{"event_type":"result_written"}',
36
- '{"event_type":"pane_closed"}'
37
- ].join('\n') + '\n');
38
- await fs.writeFile(path.join(tmp, workerDir, 'zellij-worker-pane.json'), `${JSON.stringify({
39
- schema: 'sks.zellij-worker-pane.v1',
40
- pane_id: '9',
41
- parent_child_transport: 'worker-result-json-and-heartbeat'
42
- })}\n`);
43
- const report = await writeWorkerPaneCommunicationContract(tmp, { requireZellij: true, reportPath: path.join(root, '.sneakoscope', 'reports', 'worker-pane-communication-contract.json') });
44
- const badRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-worker-pane-contract-bad-'));
45
- await fs.writeFile(path.join(badRoot, 'agent-native-cli-session-swarm.json'), '{"records":[{"worker_artifact_dir":"worker","scaling_primitive":"native_cli_process_in_zellij_worker_pane"}]}\n');
46
- const bad = await evaluateWorkerPaneCommunicationContract(badRoot, { requireZellij: true });
47
- const ok = report.ok && bad.ok === false && bad.blockers.includes('worker_pane_contract_result_missing') && bad.blockers.includes('worker_pane_contract_codex_control_proof_missing');
48
- emit({ schema: 'sks.worker-pane-communication-contract-check.v1', ok, report, bad, blockers: ok ? [] : ['worker_pane_communication_contract_check_failed'] });
49
- function emit(report) {
50
- console.log(JSON.stringify(report, null, 2));
51
- if (!report.ok)
52
- process.exitCode = 1;
53
- }
54
- //# sourceMappingURL=worker-pane-communication-contract-check.js.map