sneakoscope 2.0.13 → 2.0.15

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 (504) 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 +1 -0
  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 +11 -4
  11. package/dist/core/agents/agent-output-validator.js +1 -1
  12. package/dist/core/agents/agent-plan.js +3 -2
  13. package/dist/core/agents/native-cli-session-swarm.js +118 -0
  14. package/dist/core/agents/native-cli-worker.js +85 -0
  15. package/dist/core/codex-control/codex-fake-sdk-adapter.js +3 -3
  16. package/dist/core/codex-control/gpt-final-review-schema.js +61 -14
  17. package/dist/core/commands/basic-cli.js +1 -1
  18. package/dist/core/commands/command-suggestions.js +1 -1
  19. package/dist/core/commands/mad-db-command.js +106 -0
  20. package/dist/core/commands/mad-sks-command.js +50 -13
  21. package/dist/core/commands/naruto-command.js +82 -1
  22. package/dist/core/commands/research-command.js +83 -17
  23. package/dist/core/commands/team-command.js +25 -1
  24. package/dist/core/db-safety.js +26 -0
  25. package/dist/core/fsx.js +1 -1
  26. package/dist/core/mad-db/mad-db-capability.js +84 -0
  27. package/dist/core/mad-db/mad-db-ledger.js +17 -0
  28. package/dist/core/mad-db/mad-db-policy-resolver.js +46 -0
  29. package/dist/core/naruto/naruto-real-worker-child.js +11 -3
  30. package/dist/core/naruto/naruto-real-worker-runtime.js +4 -0
  31. package/dist/core/pipeline/final-gpt-patch-stage.js +20 -3
  32. package/dist/core/pipeline-internals/runtime-core.js +74 -8
  33. package/dist/core/pipeline-internals/runtime-gates.js +44 -0
  34. package/dist/core/proof/route-proof-gate.js +5 -3
  35. package/dist/core/proof/route-proof-policy.js +9 -1
  36. package/dist/core/release/release-gate-affected-selector.js +113 -0
  37. package/dist/core/release/release-gate-batch-runner.js +67 -0
  38. package/dist/core/release/release-gate-dag.js +22 -3
  39. package/dist/core/release/release-gate-resource-governor.js +23 -11
  40. package/dist/core/research/implementation-blueprint-densifier.js +124 -0
  41. package/dist/core/research/implementation-blueprint-markdown.js +1 -1
  42. package/dist/core/research/implementation-blueprint.js +68 -7
  43. package/dist/core/research/research-claim-builder.js +114 -0
  44. package/dist/core/research/research-cycle-runner.js +115 -11
  45. package/dist/core/research/research-final-reviewer.js +181 -1
  46. package/dist/core/research/research-handoff.js +69 -5
  47. package/dist/core/research/research-realistic-report.js +162 -0
  48. package/dist/core/research/research-repetition-detector.js +75 -0
  49. package/dist/core/research/research-report-quality.js +27 -5
  50. package/dist/core/research/research-source-ledger-merge.js +186 -0
  51. package/dist/core/research/research-source-shards.js +176 -0
  52. package/dist/core/research/research-stage-runner.js +537 -11
  53. package/dist/core/research/research-synthesis-prompt.js +52 -0
  54. package/dist/core/research/research-synthesis-writer.js +208 -0
  55. package/dist/core/research/research-work-graph.js +114 -23
  56. package/dist/core/research.js +72 -48
  57. package/dist/core/routes.js +23 -19
  58. package/dist/core/update/update-notice.js +120 -0
  59. package/dist/core/version.js +1 -1
  60. package/dist/core/zellij/zellij-dashboard-renderer.js +2 -0
  61. package/dist/core/zellij/zellij-slot-column-anchor.js +35 -1
  62. package/dist/core/zellij/zellij-slot-pane-renderer.js +57 -0
  63. package/dist/core/zellij/zellij-slot-telemetry.js +182 -0
  64. package/dist/scripts/release-gate-dag-runner.js +5 -0
  65. package/dist/scripts/release-speed-summary.js +25 -0
  66. package/package.json +67 -5
  67. package/schemas/codex/agent-result.schema.json +1 -1
  68. package/schemas/mad-db/mad-db-capability.schema.json +31 -0
  69. package/schemas/mad-db/mad-db-ledger.schema.json +14 -0
  70. package/schemas/research/implementation-blueprint.schema.json +6 -1
  71. package/schemas/research/research-final-review.schema.json +10 -0
  72. package/schemas/research/research-source-shard.schema.json +46 -0
  73. package/schemas/research/research-synthesis-output.schema.json +62 -0
  74. package/schemas/update/update-notice.schema.json +19 -0
  75. package/schemas/zellij/zellij-slot-telemetry.schema.json +89 -0
  76. package/dist/build-manifest.json +0 -1184
  77. package/dist/scripts/agent-ast-aware-work-graph-check.js +0 -25
  78. package/dist/scripts/agent-backfill-replenishment-check.js +0 -13
  79. package/dist/scripts/agent-backfill-route-blackbox.js +0 -5
  80. package/dist/scripts/agent-background-terminals-check.js +0 -16
  81. package/dist/scripts/agent-cleanup-command-ux-check.js +0 -12
  82. package/dist/scripts/agent-cleanup-executor-check.js +0 -53
  83. package/dist/scripts/agent-cleanup-executor-v2-check.js +0 -39
  84. package/dist/scripts/agent-cli-options-to-task-graph-check.js +0 -5
  85. package/dist/scripts/agent-codex-app-cockpit-check.js +0 -91
  86. package/dist/scripts/agent-codex-child-overlap-check.js +0 -21
  87. package/dist/scripts/agent-dynamic-cockpit-check.js +0 -10
  88. package/dist/scripts/agent-dynamic-pool-check.js +0 -13
  89. package/dist/scripts/agent-dynamic-pool-route-blackbox.js +0 -5
  90. package/dist/scripts/agent-fast-mode-default-check.js +0 -62
  91. package/dist/scripts/agent-fast-mode-worker-propagation-check.js +0 -7
  92. package/dist/scripts/agent-follow-up-work-schema-check.js +0 -80
  93. package/dist/scripts/agent-goal-mode-propagation-check.js +0 -9
  94. package/dist/scripts/agent-intelligent-work-graph-check.js +0 -25
  95. package/dist/scripts/agent-janitor-check.js +0 -76
  96. package/dist/scripts/agent-main-no-scout-check.js +0 -11
  97. package/dist/scripts/agent-model-authored-patch-envelope-check.js +0 -15
  98. package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
  99. package/dist/scripts/agent-native-cli-session-proof-check.js +0 -7
  100. package/dist/scripts/agent-native-cli-session-swarm-10-check.js +0 -7
  101. package/dist/scripts/agent-native-cli-session-swarm-20-check.js +0 -7
  102. package/dist/scripts/agent-native-cli-session-swarm-check.js +0 -7
  103. package/dist/scripts/agent-no-subagent-scaling-check.js +0 -7
  104. package/dist/scripts/agent-parallel-write-blackbox.js +0 -56
  105. package/dist/scripts/agent-parallel-write-kernel-check.js +0 -103
  106. package/dist/scripts/agent-patch-conflict-rebase-check.js +0 -198
  107. package/dist/scripts/agent-patch-envelope-extraction-check.js +0 -17
  108. package/dist/scripts/agent-patch-proof-check.js +0 -41
  109. package/dist/scripts/agent-patch-proof-runtime-check.js +0 -63
  110. package/dist/scripts/agent-patch-queue-runtime-check.js +0 -36
  111. package/dist/scripts/agent-patch-rollback-check.js +0 -38
  112. package/dist/scripts/agent-patch-rollback-dag-check.js +0 -14
  113. package/dist/scripts/agent-patch-swarm-route-blackbox.js +0 -10
  114. package/dist/scripts/agent-patch-swarm-runtime-check.js +0 -10
  115. package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +0 -76
  116. package/dist/scripts/agent-patch-transaction-journal-check.js +0 -57
  117. package/dist/scripts/agent-patch-verification-dag-check.js +0 -14
  118. package/dist/scripts/agent-proof-contract-reconciled-check.js +0 -5
  119. package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +0 -166
  120. package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +0 -14
  121. package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +0 -229
  122. package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +0 -5
  123. package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +0 -5
  124. package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +0 -5
  125. package/dist/scripts/agent-real-codex-parallel-workers-check.js +0 -5
  126. package/dist/scripts/agent-role-config-repair-check.js +0 -33
  127. package/dist/scripts/agent-rollback-command-check.js +0 -86
  128. package/dist/scripts/agent-route-truth-backfill-check.js +0 -5
  129. package/dist/scripts/agent-scheduler-proof-check.js +0 -13
  130. package/dist/scripts/agent-scheduler-proof-hardening-check.js +0 -22
  131. package/dist/scripts/agent-session-generation-check.js +0 -21
  132. package/dist/scripts/agent-slot-pane-binding-proof-check.js +0 -64
  133. package/dist/scripts/agent-source-intelligence-propagation-check.js +0 -9
  134. package/dist/scripts/agent-strategy-to-lease-wiring-check.js +0 -32
  135. package/dist/scripts/agent-strategy-to-patch-strict-check.js +0 -54
  136. package/dist/scripts/agent-task-graph-expansion-check.js +0 -14
  137. package/dist/scripts/agent-terminal-generations-check.js +0 -23
  138. package/dist/scripts/agent-visual-consistency-check.js +0 -9
  139. package/dist/scripts/agent-wiki-context-proof-check.js +0 -62
  140. package/dist/scripts/agent-worker-backend-router-check.js +0 -63
  141. package/dist/scripts/agent-worker-scout-limited-check.js +0 -17
  142. package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +0 -34
  143. package/dist/scripts/agent-zellij-runtime-check.js +0 -84
  144. package/dist/scripts/all-feature-deep-completion-check.js +0 -31
  145. package/dist/scripts/appshots-capability-check.js +0 -18
  146. package/dist/scripts/appshots-evidence-check.js +0 -48
  147. package/dist/scripts/appshots-operator-policy-check.js +0 -25
  148. package/dist/scripts/appshots-privacy-safety-check.js +0 -48
  149. package/dist/scripts/appshots-source-intelligence-check.js +0 -53
  150. package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -87
  151. package/dist/scripts/appshots-triwiki-voxel-check.js +0 -46
  152. package/dist/scripts/architecture-guard-check.js +0 -55
  153. package/dist/scripts/changelog-check.js +0 -47
  154. package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
  155. package/dist/scripts/codex-0-134-official-compat-report.js +0 -110
  156. package/dist/scripts/codex-0-134-runner-truth-check.js +0 -66
  157. package/dist/scripts/codex-0-135-compat-check.js +0 -57
  158. package/dist/scripts/codex-0-136-compat-check.js +0 -30
  159. package/dist/scripts/codex-0-137-compat-check.js +0 -27
  160. package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -32
  161. package/dist/scripts/codex-app-provider-badge-check.js +0 -37
  162. package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
  163. package/dist/scripts/codex-app-ui-preservation-check.js +0 -96
  164. package/dist/scripts/codex-control-all-pipelines-check.js +0 -36
  165. package/dist/scripts/codex-control-capability-check.js +0 -10
  166. package/dist/scripts/codex-control-empty-result-retry-check.js +0 -43
  167. package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -10
  168. package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +0 -14
  169. package/dist/scripts/codex-control-no-legacy-fallback-check.js +0 -31
  170. package/dist/scripts/codex-control-side-effect-scope-check.js +0 -26
  171. package/dist/scripts/codex-control-stream-idle-watchdog-check.js +0 -18
  172. package/dist/scripts/codex-control-structured-output-check.js +0 -11
  173. package/dist/scripts/codex-control-thread-registry-check.js +0 -11
  174. package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +0 -14
  175. package/dist/scripts/codex-environment-scoped-approvals-check.js +0 -10
  176. package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +0 -33
  177. package/dist/scripts/codex-fast-mode-profile-propagation-check.js +0 -12
  178. package/dist/scripts/codex-history-search-check.js +0 -19
  179. package/dist/scripts/codex-hook-semantic-check.js +0 -15
  180. package/dist/scripts/codex-hook-strict-subset-check.js +0 -61
  181. package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
  182. package/dist/scripts/codex-lb-persistence-truth-check.js +0 -96
  183. package/dist/scripts/codex-lb-setup-fixture-check.js +0 -91
  184. package/dist/scripts/codex-lb-setup-truthfulness-check.js +0 -84
  185. package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +0 -24
  186. package/dist/scripts/codex-managed-proxy-env-check.js +0 -17
  187. package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
  188. package/dist/scripts/codex-permission-profiles-check.js +0 -36
  189. package/dist/scripts/codex-plugin-list-json-check.js +0 -8
  190. package/dist/scripts/codex-profile-primary-check.js +0 -13
  191. package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -51
  192. package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
  193. package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -32
  194. package/dist/scripts/codex-sdk-backend-router-check.js +0 -65
  195. package/dist/scripts/codex-sdk-capability-check.js +0 -11
  196. package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +0 -9
  197. package/dist/scripts/codex-sdk-dfix-pipeline-check.js +0 -9
  198. package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -9
  199. package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +0 -33
  200. package/dist/scripts/codex-sdk-qa-pipeline-check.js +0 -8
  201. package/dist/scripts/codex-sdk-real-smoke-check.js +0 -39
  202. package/dist/scripts/codex-sdk-release-review-pipeline-check.js +0 -13
  203. package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -15
  204. package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -21
  205. package/dist/scripts/codex-sdk-structured-output-check.js +0 -10
  206. package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +0 -12
  207. package/dist/scripts/codex-sdk-thread-registry-check.js +0 -11
  208. package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +0 -9
  209. package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
  210. package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
  211. package/dist/scripts/codex-web-adapter-check.js +0 -12
  212. package/dist/scripts/computer-use-live-evidence-check.js +0 -55
  213. package/dist/scripts/computer-use-live-optional-check.js +0 -32
  214. package/dist/scripts/computer-use-policy-check.js +0 -69
  215. package/dist/scripts/computer-use-visual-route-fixture-check.js +0 -37
  216. package/dist/scripts/core-skill-card-schema-check.js +0 -61
  217. package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -54
  218. package/dist/scripts/core-skill-heldout-validation-check.js +0 -49
  219. package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -75
  220. package/dist/scripts/core-skill-patch-check.js +0 -79
  221. package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +0 -64
  222. package/dist/scripts/core-skill-rollout-scoring-check.js +0 -72
  223. package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -49
  224. package/dist/scripts/dfix-fast-blackbox-check.js +0 -37
  225. package/dist/scripts/dfix-fast-kernel-check.js +0 -26
  226. package/dist/scripts/dfix-fixture-check.js +0 -6
  227. package/dist/scripts/dfix-parallel-write-blackbox.js +0 -48
  228. package/dist/scripts/dfix-patch-handoff-check.js +0 -13
  229. package/dist/scripts/dfix-patch-swarm-route-blackbox.js +0 -10
  230. package/dist/scripts/dfix-performance-check.js +0 -15
  231. package/dist/scripts/dfix-verification-check.js +0 -9
  232. package/dist/scripts/dfix-verification-recommendation-check.js +0 -15
  233. package/dist/scripts/docs-truthfulness-check.js +0 -61
  234. package/dist/scripts/doctor-codex-doctor-parity-check.js +0 -17
  235. package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -64
  236. package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
  237. package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -39
  238. package/dist/scripts/evidence-fixture-check.js +0 -26
  239. package/dist/scripts/evidence-flagship-coverage-check.js +0 -55
  240. package/dist/scripts/fake-real-proof-policy-v2-check.js +0 -27
  241. package/dist/scripts/fake-vs-real-proof-policy-check.js +0 -14
  242. package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -42
  243. package/dist/scripts/flagship-proof-graph-v2-check.js +0 -48
  244. package/dist/scripts/flagship-proof-graph-v3-check.js +0 -67
  245. package/dist/scripts/flagship-proof-graph-v4-check.js +0 -61
  246. package/dist/scripts/git-precommit-fixture-check.js +0 -41
  247. package/dist/scripts/git-worktree-cache-performance-check.js +0 -25
  248. package/dist/scripts/git-worktree-capability-check.js +0 -27
  249. package/dist/scripts/git-worktree-checkpoint-check.js +0 -20
  250. package/dist/scripts/git-worktree-cleanup-check.js +0 -27
  251. package/dist/scripts/git-worktree-cross-rebase-check.js +0 -39
  252. package/dist/scripts/git-worktree-diff-envelope-check.js +0 -17
  253. package/dist/scripts/git-worktree-diff-export-check.js +0 -43
  254. package/dist/scripts/git-worktree-dirty-lock-check.js +0 -17
  255. package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -14
  256. package/dist/scripts/git-worktree-integration-primary-check.js +0 -24
  257. package/dist/scripts/git-worktree-integration-primary-runtime-check.js +0 -20
  258. package/dist/scripts/git-worktree-manager-check.js +0 -37
  259. package/dist/scripts/git-worktree-manifest-append-check.js +0 -18
  260. package/dist/scripts/git-worktree-merge-queue-check.js +0 -31
  261. package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
  262. package/dist/scripts/git-worktree-untracked-diff-check.js +0 -18
  263. package/dist/scripts/goal-mode-official-default-check.js +0 -12
  264. package/dist/scripts/gpt-final-arbiter-check.js +0 -63
  265. package/dist/scripts/gpt-final-arbiter-performance-check.js +0 -36
  266. package/dist/scripts/gpt-image-2-request-validator-check.js +0 -35
  267. package/dist/scripts/hooks-0.134-context-parity-check.js +0 -20
  268. package/dist/scripts/hooks-actual-parity-check.js +0 -17
  269. package/dist/scripts/hooks-actual-parity-v2-check.js +0 -21
  270. package/dist/scripts/hooks-latest-schema-check.js +0 -20
  271. package/dist/scripts/hooks-managed-install-fixture-check.js +0 -21
  272. package/dist/scripts/hooks-official-hash-oracle-check.js +0 -35
  273. package/dist/scripts/hooks-official-hash-parity-check.js +0 -17
  274. package/dist/scripts/hooks-subagent-events-check.js +0 -17
  275. package/dist/scripts/hooks-trust-state-check.js +0 -14
  276. package/dist/scripts/image-fidelity-fixture-check.js +0 -24
  277. package/dist/scripts/imagegen-capability-check.js +0 -30
  278. package/dist/scripts/imagegen-real-smoke-check.js +0 -155
  279. package/dist/scripts/install-update-preserves-config-check.js +0 -87
  280. package/dist/scripts/json-schema-recursive-check.js +0 -78
  281. package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
  282. package/dist/scripts/legacy-upgrade-matrix-check.js +0 -300
  283. package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +0 -21
  284. package/dist/scripts/local-collab-gpt-final-availability-check.js +0 -58
  285. package/dist/scripts/local-collab-no-local-only-final-check.js +0 -27
  286. package/dist/scripts/local-collab-policy-check.js +0 -17
  287. package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +0 -63
  288. package/dist/scripts/local-llm-all-pipelines-check.js +0 -11
  289. package/dist/scripts/local-llm-cache-performance-check.js +0 -10
  290. package/dist/scripts/local-llm-capability-check.js +0 -14
  291. package/dist/scripts/local-llm-smoke-check.js +0 -23
  292. package/dist/scripts/local-llm-structured-output-check.js +0 -11
  293. package/dist/scripts/local-llm-throughput-check.js +0 -10
  294. package/dist/scripts/local-llm-tool-call-repair-check.js +0 -10
  295. package/dist/scripts/local-llm-warmup-check.js +0 -11
  296. package/dist/scripts/loop-blocker-check.js +0 -15
  297. package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -35
  298. package/dist/scripts/mad-sks-actual-executor-blackbox.js +0 -5
  299. package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -92
  300. package/dist/scripts/mad-sks-audit-proof-check.js +0 -34
  301. package/dist/scripts/mad-sks-db-executor-check.js +0 -5
  302. package/dist/scripts/mad-sks-executor-proof-graph-check.js +0 -5
  303. package/dist/scripts/mad-sks-fast-mode-propagation-check.js +0 -24
  304. package/dist/scripts/mad-sks-file-write-executor-check.js +0 -5
  305. package/dist/scripts/mad-sks-immutable-harness-check.js +0 -36
  306. package/dist/scripts/mad-sks-no-harness-modification-check.js +0 -25
  307. package/dist/scripts/mad-sks-package-executor-check.js +0 -5
  308. package/dist/scripts/mad-sks-permission-model-check.js +0 -22
  309. package/dist/scripts/mad-sks-rollback-apply-check.js +0 -5
  310. package/dist/scripts/mad-sks-service-executor-check.js +0 -5
  311. package/dist/scripts/mad-sks-shell-executor-check.js +0 -5
  312. package/dist/scripts/mad-sks-write-guard-check.js +0 -28
  313. package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +0 -37
  314. package/dist/scripts/mad-sks-zellij-launch-check.js +0 -102
  315. package/dist/scripts/mcp-0-134-modernization-check.js +0 -55
  316. package/dist/scripts/mcp-readonly-concurrency-check.js +0 -17
  317. package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +0 -20
  318. package/dist/scripts/mcp-tool-naming-parity-check.js +0 -16
  319. package/dist/scripts/memory-summary-rebuild-check.js +0 -22
  320. package/dist/scripts/mutation-callsite-coverage-check.js +0 -180
  321. package/dist/scripts/naruto-active-pool-check.js +0 -39
  322. package/dist/scripts/naruto-actual-worker-control-plane-check.js +0 -56
  323. package/dist/scripts/naruto-allocation-policy-check.js +0 -33
  324. package/dist/scripts/naruto-allocation-runtime-wiring-check.js +0 -92
  325. package/dist/scripts/naruto-concurrency-governor-check.js +0 -53
  326. package/dist/scripts/naruto-extreme-parallelism-check.js +0 -22
  327. package/dist/scripts/naruto-extreme-parallelism-real-check.js +0 -43
  328. package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
  329. package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
  330. package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
  331. package/dist/scripts/naruto-readonly-routing-check.js +0 -116
  332. package/dist/scripts/naruto-real-active-pool-check.js +0 -39
  333. package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -55
  334. package/dist/scripts/naruto-rebalance-policy-check.js +0 -41
  335. package/dist/scripts/naruto-role-distribution-check.js +0 -23
  336. package/dist/scripts/naruto-shadow-clone-swarm-check.js +0 -153
  337. package/dist/scripts/naruto-verification-pool-check.js +0 -36
  338. package/dist/scripts/naruto-work-graph-check.js +0 -24
  339. package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -29
  340. package/dist/scripts/naruto-worktree-coding-check.js +0 -44
  341. package/dist/scripts/naruto-worktree-gpt-final-check.js +0 -45
  342. package/dist/scripts/naruto-worktree-zellij-ui-check.js +0 -28
  343. package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +0 -48
  344. package/dist/scripts/naruto-zellij-massive-ui-check.js +0 -23
  345. package/dist/scripts/non-recursive-pipeline-check.js +0 -68
  346. package/dist/scripts/npm-publish-performance-check.js +0 -65
  347. package/dist/scripts/official-docs-compat-report.js +0 -304
  348. package/dist/scripts/packlist-performance-check.js +0 -83
  349. package/dist/scripts/parallel-verification-engine-check.js +0 -85
  350. package/dist/scripts/postinstall-safe-side-effects-check.js +0 -65
  351. package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
  352. package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -109
  353. package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
  354. package/dist/scripts/ppt-imagegen-blackbox-check.js +0 -46
  355. package/dist/scripts/ppt-imagegen-review-fixture-check.js +0 -6
  356. package/dist/scripts/ppt-issue-extraction-fixture-check.js +0 -7
  357. package/dist/scripts/ppt-no-mock-as-real-check.js +0 -8
  358. package/dist/scripts/ppt-no-text-fallback-check.js +0 -7
  359. package/dist/scripts/ppt-proof-trust-fixture-check.js +0 -10
  360. package/dist/scripts/ppt-real-export-adapter-check.js +0 -13
  361. package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -42
  362. package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -16
  363. package/dist/scripts/ppt-reexport-rereview-check.js +0 -19
  364. package/dist/scripts/ppt-slide-export-fixture-check.js +0 -7
  365. package/dist/scripts/prepublish-fast-check.js +0 -128
  366. package/dist/scripts/priority-full-closure-check.js +0 -12
  367. package/dist/scripts/product-design-auto-install-check.js +0 -119
  368. package/dist/scripts/product-design-plugin-routing-check.js +0 -101
  369. package/dist/scripts/prompt-placeholder-guard-check.js +0 -33
  370. package/dist/scripts/provider-badge-context-check.js +0 -26
  371. package/dist/scripts/provider-context-config-toml-check.js +0 -63
  372. package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -47
  373. package/dist/scripts/python-codex-sdk-capability-check.js +0 -75
  374. package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +0 -10
  375. package/dist/scripts/python-codex-sdk-stream-bridge-check.js +0 -12
  376. package/dist/scripts/python-tools-smoke-check.js +0 -71
  377. package/dist/scripts/qa-actual-route-backfill-check.js +0 -5
  378. package/dist/scripts/qa-backfill-route-blackbox.js +0 -5
  379. package/dist/scripts/qa-patch-swarm-route-blackbox.js +0 -10
  380. package/dist/scripts/readme-architecture-imagegen-official-check.js +0 -448
  381. package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
  382. package/dist/scripts/release-dag-full-coverage-check.js +0 -53
  383. package/dist/scripts/release-dist-freshness-check.js +0 -8
  384. package/dist/scripts/release-dynamic-performance-check.js +0 -103
  385. package/dist/scripts/release-gate-budget-check.js +0 -36
  386. package/dist/scripts/release-gate-dag-runner-check.js +0 -17
  387. package/dist/scripts/release-metadata-1-11-check.js +0 -37
  388. package/dist/scripts/release-metadata-1-12-check.js +0 -48
  389. package/dist/scripts/release-metadata-1-13-check.js +0 -53
  390. package/dist/scripts/release-metadata-1-14-check.js +0 -63
  391. package/dist/scripts/release-metadata-1-16-check.js +0 -81
  392. package/dist/scripts/release-metadata-1-17-check.js +0 -51
  393. package/dist/scripts/release-metadata-1-19-check.js +0 -371
  394. package/dist/scripts/release-metadata-check.js +0 -7
  395. package/dist/scripts/release-native-agent-fixture-check.js +0 -41
  396. package/dist/scripts/release-parallel-check.js +0 -374
  397. package/dist/scripts/release-parallel-full-coverage-check.js +0 -13
  398. package/dist/scripts/release-parallel-speed-budget-check.js +0 -79
  399. package/dist/scripts/release-provenance-check.js +0 -150
  400. package/dist/scripts/release-readiness-report.js +0 -1146
  401. package/dist/scripts/release-real-check.js +0 -330
  402. package/dist/scripts/release-registry-check.js +0 -344
  403. package/dist/scripts/release-runtime-truth-matrix-check.js +0 -47
  404. package/dist/scripts/release-stability-report-check.js +0 -99
  405. package/dist/scripts/release-version-truth-check.js +0 -134
  406. package/dist/scripts/research-actual-route-backfill-check.js +0 -5
  407. package/dist/scripts/research-backfill-route-blackbox.js +0 -5
  408. package/dist/scripts/research-quality-gate-check.js +0 -86
  409. package/dist/scripts/responses-retry-policy-centralized-check.js +0 -19
  410. package/dist/scripts/retention-cleanup-safety-check.js +0 -155
  411. package/dist/scripts/route-blackbox-realism-check.js +0 -21
  412. package/dist/scripts/route-proof-artifact-structure-check.js +0 -145
  413. package/dist/scripts/runtime-dist-parity-check.js +0 -78
  414. package/dist/scripts/runtime-no-mjs-scripts-check.js +0 -45
  415. package/dist/scripts/runtime-no-src-mjs-check.js +0 -32
  416. package/dist/scripts/runtime-no-tmux-check.js +0 -113
  417. package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
  418. package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -74
  419. package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -55
  420. package/dist/scripts/safety-check.js +0 -23
  421. package/dist/scripts/shared-memory-fixture-check.js +0 -27
  422. package/dist/scripts/side-effect-runtime-report-check.js +0 -19
  423. package/dist/scripts/side-effect-zero-gate-check.js +0 -226
  424. package/dist/scripts/sks-1-11-fixture-check.js +0 -130
  425. package/dist/scripts/source-intelligence-all-modes-check.js +0 -32
  426. package/dist/scripts/source-intelligence-policy-check.js +0 -13
  427. package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +0 -22
  428. package/dist/scripts/strategy-file-ownership-plan-check.js +0 -18
  429. package/dist/scripts/strategy-parallel-modification-plan-check.js +0 -19
  430. package/dist/scripts/strategy-verification-rollback-dag-check.js +0 -19
  431. package/dist/scripts/team-actual-route-backfill-check.js +0 -5
  432. package/dist/scripts/team-backfill-route-blackbox.js +0 -5
  433. package/dist/scripts/team-parallel-write-blackbox.js +0 -55
  434. package/dist/scripts/team-patch-swarm-route-blackbox.js +0 -10
  435. package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +0 -12
  436. package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
  437. package/dist/scripts/test-no-orphan-dist-imports-check.js +0 -73
  438. package/dist/scripts/trust-fixture-check.js +0 -33
  439. package/dist/scripts/typescript-migration-report.js +0 -78
  440. package/dist/scripts/ultra-router-auto-router-check.js +0 -33
  441. package/dist/scripts/ultra-router-classification-check.js +0 -28
  442. package/dist/scripts/ux-patch-swarm-route-blackbox.js +0 -10
  443. package/dist/scripts/ux-ppt-structured-extraction-check.js +0 -21
  444. package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +0 -8
  445. package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -15
  446. package/dist/scripts/ux-review-generate-callouts-fixture-check.js +0 -9
  447. package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
  448. package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -67
  449. package/dist/scripts/ux-review-no-fake-callouts-check.js +0 -8
  450. package/dist/scripts/ux-review-no-text-fallback-check.js +0 -25
  451. package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -20
  452. package/dist/scripts/ux-review-patch-handoff-fixture-check.js +0 -8
  453. package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -31
  454. package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -24
  455. package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
  456. package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -11
  457. package/dist/scripts/worker-pane-communication-contract-check.js +0 -54
  458. package/dist/scripts/wrongness-fixture-check.js +0 -65
  459. package/dist/scripts/xai-mcp-capability-check.js +0 -14
  460. package/dist/scripts/zellij-capability-check.js +0 -15
  461. package/dist/scripts/zellij-dashboard-pane-check.js +0 -70
  462. package/dist/scripts/zellij-developer-controls-check.js +0 -20
  463. package/dist/scripts/zellij-doctor-readiness-check.js +0 -63
  464. package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -21
  465. package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
  466. package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -356
  467. package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -28
  468. package/dist/scripts/zellij-lane-renderer-check.js +0 -65
  469. package/dist/scripts/zellij-launch-command-truth-check.js +0 -75
  470. package/dist/scripts/zellij-layout-valid-check.js +0 -90
  471. package/dist/scripts/zellij-pane-proof-check.js +0 -59
  472. package/dist/scripts/zellij-real-session-cleanup-check.js +0 -21
  473. package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
  474. package/dist/scripts/zellij-real-session-launch-check.js +0 -57
  475. package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -22
  476. package/dist/scripts/zellij-right-column-manager-check.js +0 -27
  477. package/dist/scripts/zellij-screen-proof-check.js +0 -45
  478. package/dist/scripts/zellij-slot-column-anchor-check.js +0 -66
  479. package/dist/scripts/zellij-slot-only-ui-check.js +0 -26
  480. package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -106
  481. package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -59
  482. package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -40
  483. package/dist/scripts/zellij-ui-design-check.js +0 -105
  484. package/dist/scripts/zellij-worker-pane-manager-check.js +0 -109
  485. package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
  486. package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -202
  487. package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
  488. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.input.schema.json +0 -61
  489. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.output.schema.json +0 -103
  490. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.input.schema.json +0 -52
  491. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.output.schema.json +0 -24
  492. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.input.schema.json +0 -67
  493. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.output.schema.json +0 -84
  494. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.input.schema.json +0 -52
  495. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.output.schema.json +0 -24
  496. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.input.schema.json +0 -65
  497. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.output.schema.json +0 -105
  498. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.input.schema.json +0 -59
  499. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.output.schema.json +0 -63
  500. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/snapshot-metadata.json +0 -31
  501. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.input.schema.json +0 -63
  502. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.output.schema.json +0 -45
  503. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.input.schema.json +0 -59
  504. package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.output.schema.json +0 -81
@@ -1,145 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import os from 'node:os';
5
- import path from 'node:path';
6
- import { fileURLToPath, pathToFileURL } from 'node:url';
7
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
8
- const issues = [];
9
- for (const rel of [
10
- 'src/core/proof/route-proof-gate.ts',
11
- 'src/core/agents/agent-proof-evidence.ts',
12
- 'src/core/agents/agent-gate.ts',
13
- 'src/core/agents/agent-ledger-schemas.ts'
14
- ]) {
15
- if (!fs.existsSync(path.join(root, rel)))
16
- issues.push(`missing:${rel}`);
17
- }
18
- const gateText = read('src/core/proof/route-proof-gate.ts');
19
- for (const token of [
20
- "agents.status !== 'passed' || agents.ok !== true",
21
- 'agent_no_overlap_not_ok',
22
- 'agent_ledger_hash_chain_not_ok',
23
- 'agent_consensus_not_ok',
24
- 'agent_blockers_present',
25
- 'agent_proof_evidence_missing',
26
- 'agent_count_below_5',
27
- 'agent_count_above_20'
28
- ]) {
29
- if (!gateText.includes(token))
30
- issues.push(`route_gate_missing:${token}`);
31
- }
32
- const agentGateText = read('src/core/agents/agent-gate.ts');
33
- for (const token of ['agent_proof_not_ok', 'agent_proof_status_not_passed', 'agent_count_below_5', 'agent_janitor_missing_or_not_ok']) {
34
- if (!agentGateText.includes(token))
35
- issues.push(`agent_gate_missing:${token}`);
36
- }
37
- await runNegativeFixture();
38
- const result = {
39
- schema: 'sks.route-proof-artifact-structure-check.v1',
40
- ok: issues.length === 0,
41
- issues
42
- };
43
- console.log(JSON.stringify(result, null, 2));
44
- if (!result.ok)
45
- process.exitCode = 1;
46
- function read(rel) {
47
- try {
48
- return fs.readFileSync(path.join(root, rel), 'utf8');
49
- }
50
- catch {
51
- return '';
52
- }
53
- }
54
- async function runNegativeFixture() {
55
- const built = path.join(root, 'dist', 'core', 'proof', 'route-proof-gate.js');
56
- if (!fs.existsSync(built)) {
57
- issues.push('runtime_gate_import_missing');
58
- return;
59
- }
60
- const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-route-proof-'));
61
- const mission = 'M-fixture';
62
- const missionDir = path.join(tmp, '.sneakoscope', 'missions', mission);
63
- fs.mkdirSync(missionDir, { recursive: true });
64
- const proofPath = path.join(missionDir, 'completion-proof.json');
65
- const baseProof = {
66
- schema: 'sks.completion-proof.v1',
67
- version: 'fixture',
68
- generated_at: '2026-05-25T00:00:00.000Z',
69
- mission_id: mission,
70
- status: 'verified',
71
- route: '$Team',
72
- summary: { files_changed: 0, commands_run: 0, tests_passed: 0, tests_failed: 0, manual_review_required: false },
73
- evidence: {
74
- agents: {
75
- schema: 'sks.agent-proof-evidence.v1',
76
- ok: true,
77
- status: 'blocked',
78
- agent_count: 5,
79
- all_sessions_closed: true,
80
- no_overlap_ok: true,
81
- ledger_hash_chain_ok: true,
82
- consensus_ok: true,
83
- janitor_ok: true,
84
- blockers: []
85
- }
86
- },
87
- claims: [],
88
- unverified: [],
89
- blockers: [],
90
- next_human_actions: []
91
- };
92
- fs.writeFileSync(proofPath, JSON.stringify(baseProof, null, 2));
93
- const { validateRouteCompletionProof } = await import(pathToFileURL(built).href);
94
- const result = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team', state: { agents_required: true } });
95
- if (result.ok || !result.issues.includes('agent_gate_not_passed'))
96
- issues.push('negative_fixture_false_passed_agent_status');
97
- fs.writeFileSync(proofPath, JSON.stringify({ ...baseProof, evidence: {} }, null, 2));
98
- const missingAgents = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
99
- if (missingAgents.ok || !missingAgents.issues.includes('agent_proof_evidence_missing'))
100
- issues.push('negative_fixture_false_passed_missing_agents');
101
- fs.writeFileSync(proofPath, JSON.stringify({
102
- ...baseProof,
103
- evidence: {
104
- agents: {
105
- schema: 'sks.agent-proof-evidence.v1',
106
- ok: true,
107
- status: 'passed',
108
- agent_count: 8,
109
- all_sessions_closed: true,
110
- no_overlap_ok: true,
111
- ledger_hash_chain_ok: true,
112
- consensus_ok: true,
113
- janitor_ok: true,
114
- blockers: []
115
- }
116
- }
117
- }, null, 2));
118
- const scaledAgents = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
119
- if (!scaledAgents.ok || scaledAgents.issues.includes('agent_count_not_5'))
120
- issues.push('positive_fixture_scaled_agents_failed');
121
- fs.writeFileSync(proofPath, JSON.stringify({
122
- ...baseProof,
123
- evidence: {
124
- agents: {
125
- schema: 'sks.agent-proof-evidence.v1',
126
- ok: true,
127
- status: 'passed',
128
- agent_count: 5,
129
- all_sessions_closed: true,
130
- no_overlap_ok: true,
131
- ledger_hash_chain_ok: true,
132
- consensus_ok: true,
133
- blockers: []
134
- }
135
- }
136
- }, null, 2));
137
- const missingJanitor = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Team' });
138
- if (missingJanitor.ok || !missingJanitor.issues.includes('agent_janitor_missing_or_not_ok'))
139
- issues.push('negative_fixture_missing_janitor_false_passed');
140
- fs.writeFileSync(proofPath, JSON.stringify({ ...baseProof, route: '$Release-Review', evidence: {} }, null, 2));
141
- const releaseReview = await validateRouteCompletionProof(tmp, { missionId: mission, route: '$Release-Review' });
142
- if (releaseReview.ok || !releaseReview.issues.includes('agent_proof_evidence_missing'))
143
- issues.push('negative_fixture_release_review_missing_agents_false_passed');
144
- }
145
- //# sourceMappingURL=route-proof-artifact-structure-check.js.map
@@ -1,78 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import crypto from 'node:crypto';
6
- import { fileURLToPath } from 'node:url';
7
- import { currentDistFreshness, sourceSnapshot } from './lib/ensure-dist-fresh.js';
8
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
9
- const manifestPath = path.join(root, 'dist', 'build-manifest.json');
10
- const issues = [];
11
- const freshness = currentDistFreshness();
12
- const source = sourceSnapshot();
13
- const manifest = readJson(manifestPath);
14
- const pkg = readJson(path.join(root, 'package.json'));
15
- if (!manifest)
16
- issues.push('build_manifest_missing');
17
- if (!freshness.ok)
18
- issues.push(...freshness.issues);
19
- if (manifest) {
20
- if (manifest.package_version !== pkg.version || manifest.version !== pkg.version)
21
- issues.push('manifest_version_mismatch');
22
- if (manifest.source_digest !== source.digest)
23
- issues.push('manifest_source_digest_stale');
24
- if (manifest.source_file_count !== source.file_count)
25
- issues.push('manifest_source_file_count_stale');
26
- if (manifest.source_list_hash !== sha256(source.files.join('\n')))
27
- issues.push('manifest_source_list_hash_stale');
28
- if (Number(manifest.src_mjs_runtime_files) !== 0)
29
- issues.push(`manifest_src_mjs_runtime_files:${manifest.src_mjs_runtime_files}`);
30
- if (Number(manifest.compiled_js_count) <= 0)
31
- issues.push('manifest_compiled_js_count_missing');
32
- if (!Number.isFinite(Number(manifest.compiled_dts_count)))
33
- issues.push('manifest_compiled_dts_count_invalid');
34
- }
35
- const srcMjs = walk(path.join(root, 'src')).filter((file) => file.endsWith('.mjs'));
36
- if (srcMjs.length)
37
- issues.push(`src_mjs_runtime_files:${srcMjs.length}`);
38
- const distMjs = walk(path.join(root, 'dist')).filter((file) => file.endsWith('.mjs'));
39
- if (distMjs.length)
40
- issues.push(`dist_mjs_runtime_files:${distMjs.length}`);
41
- const result = {
42
- schema: 'sks.runtime-dist-parity.v1',
43
- ok: issues.length === 0,
44
- package_version: pkg.version,
45
- source_digest: source.digest,
46
- source_file_count: source.file_count,
47
- src_mjs_runtime_files: srcMjs.length,
48
- dist_mjs_runtime_files: distMjs.length,
49
- manifest,
50
- issues
51
- };
52
- console.log(JSON.stringify(result, null, 2));
53
- if (!result.ok)
54
- process.exitCode = 1;
55
- function readJson(file) {
56
- try {
57
- return JSON.parse(fs.readFileSync(file, 'utf8'));
58
- }
59
- catch {
60
- return null;
61
- }
62
- }
63
- function walk(dir, out = []) {
64
- if (!fs.existsSync(dir))
65
- return out;
66
- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
67
- const file = path.join(dir, entry.name);
68
- if (entry.isDirectory())
69
- walk(file, out);
70
- else if (entry.isFile())
71
- out.push(file);
72
- }
73
- return out;
74
- }
75
- function sha256(text) {
76
- return crypto.createHash('sha256').update(text).digest('hex');
77
- }
78
- //# sourceMappingURL=runtime-dist-parity-check.js.map
@@ -1,45 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs/promises';
3
- import path from 'node:path';
4
- import { packageRoot } from '../core/fsx.js';
5
- const root = packageRoot();
6
- const scriptsDir = path.join(root, 'scripts');
7
- const binDir = path.join(root, 'bin');
8
- const mjs = [...await collectMjs(scriptsDir), ...await collectMjs(binDir)].sort();
9
- const packageJson = JSON.parse(await fs.readFile(path.join(root, 'package.json'), 'utf8'));
10
- const scriptRefs = Object.entries(packageJson.scripts || {})
11
- .filter(([, command]) => typeof command === 'string' && /(^|[\s;&|])\.\/(?:scripts|bin)\/[^ ]+\.mjs\b/.test(command))
12
- .map(([name, command]) => ({ name, command }));
13
- const ok = mjs.length === 0 && scriptRefs.length === 0;
14
- emit({
15
- schema: 'sks.runtime-no-mjs-scripts-check.v1',
16
- ok,
17
- production_mjs_count: mjs.length,
18
- production_mjs_sample: mjs.slice(0, 20).map((file) => path.relative(root, file)),
19
- package_script_mjs_refs: scriptRefs.slice(0, 40),
20
- blockers: ok ? [] : ['runtime_mjs_scripts_remaining']
21
- });
22
- async function collectMjs(dir) {
23
- const out = [];
24
- let entries;
25
- try {
26
- entries = await fs.readdir(dir, { withFileTypes: true });
27
- }
28
- catch {
29
- return out;
30
- }
31
- for (const entry of entries) {
32
- const full = path.join(dir, entry.name);
33
- if (entry.isDirectory())
34
- out.push(...await collectMjs(full));
35
- else if (entry.name.endsWith('.mjs'))
36
- out.push(full);
37
- }
38
- return out.sort();
39
- }
40
- function emit(report) {
41
- console.log(JSON.stringify(report, null, 2));
42
- if (!report.ok)
43
- process.exitCode = 1;
44
- }
45
- //# sourceMappingURL=runtime-no-mjs-scripts-check.js.map
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
7
- const files = walk(path.join(root, 'src'))
8
- .filter((file) => file.endsWith('.mjs'))
9
- .map((file) => path.relative(root, file).split(path.sep).join('/'))
10
- .sort();
11
- const result = {
12
- schema: 'sks.runtime-no-src-mjs.v1',
13
- ok: files.length === 0,
14
- src_mjs_runtime_files: files.length,
15
- files
16
- };
17
- console.log(JSON.stringify(result, null, 2));
18
- if (!result.ok)
19
- process.exitCode = 1;
20
- function walk(dir, out = []) {
21
- if (!fs.existsSync(dir))
22
- return out;
23
- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
24
- const file = path.join(dir, entry.name);
25
- if (entry.isDirectory())
26
- walk(file, out);
27
- else if (entry.isFile())
28
- out.push(file);
29
- }
30
- return out;
31
- }
32
- //# sourceMappingURL=runtime-no-src-mjs-check.js.map
@@ -1,113 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs/promises';
4
- import path from 'node:path';
5
- import { root } from './lib/ensure-dist-fresh.js';
6
- const scanRoots = ['src', 'scripts', 'package.json', 'README.md', 'docs'];
7
- const migrationOnlyFiles = new Set([
8
- 'docs/migration/tmux-to-zellij.md',
9
- 'dist/scripts/runtime-no-tmux-check.js',
10
- 'dist/scripts/tmux-removal-inventory.js',
11
- 'src/scripts/runtime-no-tmux-check.ts',
12
- 'src/cli/command-registry.ts',
13
- 'src/commands/tmux.ts',
14
- 'src/core/commands/basic-cli.ts',
15
- 'src/core/commands/team-command.ts'
16
- ]);
17
- const legacyFixtureFileRe = /^(scripts|test)\/.*(?:tmux|real-tmux|warp-right-lane).*$/;
18
- const runtimePatterns = [
19
- ['tmux_binary_spawn', /(?:runProcess|spawnSync|spawn|execFile)\(\s*['"]tmux['"]/],
20
- ['tmux_import', /(?:from\s+['"][^'"]*tmux[^'"]*['"]|import\s*\([^)]*['"][^'"]*tmux[^'"]*['"])/],
21
- ['launchMadTmuxUi', /\blaunchMadTmuxUi\b/],
22
- ['agent-runner-tmux', /\bagent-runner-tmux\b/],
23
- ['tmux-physical-proof', /\btmux-physical-proof\b/],
24
- ['tmux-lane', /\btmux-lane\b/],
25
- ['real-tmux', /\breal-tmux\b/],
26
- ['warp-right-lane', /\bwarp-right-lane\b/]
27
- ];
28
- const docRecommendationRe = /\b(?:sks\s+tmux|sks\s+deps\s+install\s+tmux|brew\s+install\s+tmux|install\s+tmux|requires?\s+tmux|tmux\s+for\s+the\s+CLI|opens?.{0,60}tmux|npm\s+run\s+(?:tmux:|agent:tmux)|cleanup-tmux|open-tmux|attach-tmux)\b/i;
29
- const issues = [];
30
- const legacy_fixture_allowlist = [];
31
- const checked_files = [];
32
- for (const base of scanRoots) {
33
- for (const file of await listFiles(path.join(root, base))) {
34
- const rel = path.relative(root, file);
35
- checked_files.push(rel);
36
- const text = await fs.readFile(file, 'utf8');
37
- if (rel === 'package.json') {
38
- inspectPackageJson(text);
39
- continue;
40
- }
41
- if (migrationOnlyFiles.has(rel))
42
- continue;
43
- if (legacyFixtureFileRe.test(rel)) {
44
- legacy_fixture_allowlist.push(rel);
45
- continue;
46
- }
47
- if (rel.startsWith('docs/') || rel === 'README.md') {
48
- inspectDocs(rel, text);
49
- continue;
50
- }
51
- for (const [name, re] of runtimePatterns) {
52
- if (re.test(text))
53
- issues.push({ file: rel, pattern: name });
54
- }
55
- inspectRuntimeRecommendations(rel, text);
56
- }
57
- }
58
- const ok = issues.length === 0;
59
- emit({
60
- schema: 'sks.runtime-no-tmux-check.v1',
61
- ok,
62
- scan_roots: scanRoots,
63
- issues,
64
- checked_file_count: checked_files.length,
65
- migration_only_files: [...migrationOnlyFiles],
66
- legacy_fixture_allowlist
67
- });
68
- async function listFiles(target) {
69
- const out = [];
70
- const stat = await fs.stat(target).catch(() => null);
71
- if (!stat)
72
- return out;
73
- if (stat.isFile())
74
- return [target];
75
- for (const entry of await fs.readdir(target, { withFileTypes: true })) {
76
- if (entry.name === 'node_modules' || entry.name === 'dist' || entry.name === '.git')
77
- continue;
78
- const file = path.join(target, entry.name);
79
- if (entry.isDirectory())
80
- out.push(...await listFiles(file));
81
- else if (entry.isFile() && /\.(ts|tsx|js|mjs|json|md)$/.test(entry.name))
82
- out.push(file);
83
- }
84
- return out;
85
- }
86
- function inspectPackageJson(text) {
87
- const pkg = JSON.parse(text);
88
- for (const [name, command] of Object.entries(pkg.scripts || {})) {
89
- if (name === 'runtime:no-tmux')
90
- continue;
91
- if (/^(tmux:|agent:tmux-)|warp-right-lane|real-tmux/i.test(name)) {
92
- issues.push({ file: 'package.json', script: name, pattern: 'tmux_script_name' });
93
- }
94
- if (/(?:npm\s+run\s+tmux:|agent-tmux|real-tmux|tmux-physical-proof|tmux-lane|warp-right-lane|mad-sks:warp-right-lane-attach)/i.test(String(command))) {
95
- issues.push({ file: 'package.json', script: name, pattern: 'tmux_script_command' });
96
- }
97
- }
98
- }
99
- function inspectDocs(rel, text) {
100
- inspectRuntimeRecommendations(rel, text);
101
- }
102
- function inspectRuntimeRecommendations(rel, text) {
103
- const lines = String(text).split(/\r?\n/);
104
- lines.forEach((line, index) => {
105
- if (/\bremoved[-_ ]runtime\b|migration notice|Use Zellij instead|replacement:\s*['"]zellij['"]/i.test(line))
106
- return;
107
- if (docRecommendationRe.test(line))
108
- issues.push({ file: rel, line: index + 1, pattern: 'tmux_runtime_recommendation' });
109
- });
110
- }
111
- function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
112
- process.exitCode = 1; }
113
- //# sourceMappingURL=runtime-no-tmux-check.js.map
@@ -1,59 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs/promises';
3
- import path from 'node:path';
4
- import { packageRoot } from '../core/fsx.js';
5
- import { probePythonTools } from '../core/python-tools/python-tool-runner.js';
6
- const root = packageRoot();
7
- const probe = await probePythonTools(root);
8
- const packageJson = JSON.parse(await fs.readFile(path.join(root, 'package.json'), 'utf8'));
9
- const scriptCommands = Object.values(packageJson.scripts || {}).map(String);
10
- const pythonRuntimeRefs = scriptCommands.filter((command) => /(^|[\s;&|])python(?:3)?(?:\s|$)/.test(command) && /\b(?:postinstall|publish|prepack|prepublishOnly)\b/.test(command));
11
- const pytoolsFiles = await collectPython(path.join(root, 'pytools'));
12
- const forbiddenWrites = await findForbiddenPythonWrites(pytoolsFiles);
13
- const ok = probe.ok
14
- && probe.core_runtime_requires_python === false
15
- && pythonRuntimeRefs.length === 0
16
- && forbiddenWrites.length === 0;
17
- emit({
18
- schema: 'sks.runtime-ts-python-boundary-check.v1',
19
- ok,
20
- probe,
21
- pytools_files: pytoolsFiles.map((file) => path.relative(root, file)),
22
- python_runtime_refs: pythonRuntimeRefs,
23
- forbidden_python_writes: forbiddenWrites,
24
- blockers: ok ? [] : ['runtime_ts_python_boundary_check_failed']
25
- });
26
- async function collectPython(dir) {
27
- const out = [];
28
- let entries;
29
- try {
30
- entries = await fs.readdir(dir, { withFileTypes: true });
31
- }
32
- catch {
33
- return out;
34
- }
35
- for (const entry of entries) {
36
- const full = path.join(dir, entry.name);
37
- if (entry.isDirectory())
38
- out.push(...await collectPython(full));
39
- else if (entry.name.endsWith('.py'))
40
- out.push(full);
41
- }
42
- return out.sort();
43
- }
44
- async function findForbiddenPythonWrites(files) {
45
- const out = [];
46
- for (const file of files) {
47
- const text = await fs.readFile(file, 'utf8');
48
- if (/(\.codex|config\.toml|auth\.json|os\.environ|subprocess\.(?:run|Popen))/.test(text) && /\b(open|write_text|write_bytes|remove|unlink|rename)\b/.test(text)) {
49
- out.push(path.relative(packageRoot(), file));
50
- }
51
- }
52
- return out;
53
- }
54
- function emit(report) {
55
- console.log(JSON.stringify(report, null, 2));
56
- if (!report.ok)
57
- process.exitCode = 1;
58
- }
59
- //# sourceMappingURL=runtime-ts-python-boundary-check.js.map
@@ -1,74 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import crypto from 'node:crypto';
4
- import fs from 'node:fs';
5
- import os from 'node:os';
6
- import path from 'node:path';
7
- import { root, assertGate, emitGate, importDist, readText, readJson } from './sks-1-18-gate-lib.js';
8
- // Proves TypeScript is the runtime source-of-truth and Rust is an OPTIONAL accelerator:
9
- // - publish/build never compiles Rust,
10
- // - the JS fallback is always available and produces identical results,
11
- // - the native binary is never required to ship or run SKS.
12
- // 1) No cargo/rustc anywhere in build or publish.
13
- assertGate(!/cargo|rustc/.test(readText('src/scripts/build-dist.ts')), 'build-dist must not invoke cargo/rustc');
14
- assertGate(!/cargo|rustc/.test(readText('src/scripts/clean-dist.ts')), 'clean-dist must not invoke cargo/rustc');
15
- const pkg = readJson('package.json');
16
- for (const s of ['prepack', 'prepublishOnly', 'publish:dry', 'publish:npm']) {
17
- assertGate(!String(pkg.scripts?.[s] || '').includes('cargo'), `publish_script_compiles_rust:${s}`);
18
- }
19
- // 2) The published binary is JS; no prebuilt native artifact is shipped or required.
20
- assertGate(pkg.bin?.sks === 'dist/bin/sks.js', 'package bin.sks must point at the JS entrypoint dist/bin/sks.js');
21
- assertGate(!(pkg.files || []).some((f) => f === 'native' || f.includes('target') || f.endsWith('.node')), 'package files must not ship a prebuilt native binary (native/target/*.node)');
22
- // 3) Doctor readiness has no Rust dependency (audit confirmed zero rust references).
23
- const matrix = readText('src/core/doctor/doctor-readiness-matrix.ts');
24
- assertGate(!/rust/i.test(matrix), 'doctor readiness matrix must not depend on Rust');
25
- // 4) Behavioral: JS fallback parity. The normalized result hash must equal the TS sha256.
26
- const acc = await importDist('core/rust-accelerator.js');
27
- const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-rust-boundary-'));
28
- const tempFile = path.join(tmpDir, 'sneakoscope-rust-boundary.bin');
29
- const fileBytes = Buffer.from('sneakoscope-rust-boundary');
30
- fs.writeFileSync(tempFile, fileBytes);
31
- const tsHash = crypto.createHash('sha256').update(fileBytes).digest('hex');
32
- const r = await acc.rustImageHash(tempFile);
33
- // The result shape: { command, engine, available, rust_error, stdout, result }.
34
- // The 64-hex sha256 lives inside `result` (result.sha256 for the JS fallback, or the
35
- // rust JSON payload's hash field). Extract robustly: prefer known fields, fall back to a
36
- // regex scan over the whole normalized object.
37
- const directHash = (r.result && (r.result.sha256 || r.result.hash || r.result.image_hash)) || null;
38
- const scannedHash = (JSON.stringify(r).match(/\b[0-9a-f]{64}\b/) || [])[0] || null;
39
- const acceleratorHash = (typeof directHash === 'string' && /^[0-9a-f]{64}$/.test(directHash))
40
- ? directHash
41
- : scannedHash;
42
- assertGate(acceleratorHash === tsHash, 'rust_ts_hash_mismatch', {
43
- engine: r.engine,
44
- accelerator_hash: acceleratorHash,
45
- ts_hash: tsHash
46
- });
47
- // 5) Accelerator status must report a known mode; JS fallback readiness must be true when present.
48
- const info = await acc.rustInfo();
49
- assertGate(['js_fallback', 'rust_accelerated'].includes(info.mode), 'rust accelerator mode must be js_fallback or rust_accelerated', {
50
- mode: info.mode
51
- });
52
- if (typeof info.js_fallback_ready !== 'undefined') {
53
- assertGate(info.js_fallback_ready === true, 'js fallback must be ready when reported');
54
- }
55
- try {
56
- fs.rmSync(tmpDir, { recursive: true, force: true });
57
- }
58
- catch {
59
- // temp cleanup is best-effort
60
- }
61
- const report = {
62
- schema: 'sks.runtime-ts-rust-boundary.v1',
63
- ok: true,
64
- engine: r.engine,
65
- mode: info.mode,
66
- no_cargo_in_publish: true,
67
- native_binary_required: false,
68
- js_fallback_parity: true
69
- };
70
- const out = path.join(root, '.sneakoscope/reports/runtime-ts-rust-boundary.json');
71
- fs.mkdirSync(path.dirname(out), { recursive: true });
72
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
73
- emitGate('runtime:ts-rust-boundary', { engine: r.engine, no_cargo_in_publish: true });
74
- //# sourceMappingURL=runtime-ts-rust-boundary-check.js.map
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
7
- const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
8
- const issues = [];
9
- if (pkg.bin?.sks !== 'dist/bin/sks.js')
10
- issues.push('package_bin_sks_not_dist');
11
- if (pkg.bin?.sneakoscope !== 'dist/bin/sks.js')
12
- issues.push('package_bin_sneakoscope_not_dist');
13
- if ((pkg.files || []).includes('src'))
14
- issues.push('package_files_include_src');
15
- if (!pkg.scripts?.['dev:sks'])
16
- issues.push('missing_dev_sks');
17
- for (const file of walk(path.join(root, 'src'))) {
18
- const rel = path.relative(root, file).split(path.sep).join('/');
19
- if (rel.endsWith('.mjs'))
20
- issues.push(`src_mjs_runtime_shadow:${rel}`);
21
- if (!rel.endsWith('.ts'))
22
- continue;
23
- const text = fs.readFileSync(file, 'utf8');
24
- if (/from\s+['"][^'"]+\.mjs['"]|import\(\s*['"][^'"]+\.mjs['"]\s*\)/.test(text)) {
25
- issues.push(`ts_imports_mjs:${rel}`);
26
- }
27
- }
28
- const binShim = path.join(root, 'bin', 'sks.mjs');
29
- if (fs.existsSync(binShim)) {
30
- const text = fs.readFileSync(binShim, 'utf8');
31
- if (text.includes('/src/') || text.includes('../src/') || text.includes('FAST_PACKAGE_VERSION')) {
32
- issues.push('bin_sks_mjs_not_dist_only');
33
- }
34
- }
35
- const result = {
36
- schema: 'sks.runtime-ts-source-of-truth.v1',
37
- ok: issues.length === 0,
38
- issues
39
- };
40
- console.log(JSON.stringify(result, null, 2));
41
- if (!result.ok)
42
- process.exitCode = 1;
43
- function walk(dir, out = []) {
44
- if (!fs.existsSync(dir))
45
- return out;
46
- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
47
- const file = path.join(dir, entry.name);
48
- if (entry.isDirectory())
49
- walk(file, out);
50
- else if (entry.isFile())
51
- out.push(file);
52
- }
53
- return out;
54
- }
55
- //# sourceMappingURL=runtime-ts-source-of-truth-check.js.map
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runProcess } from '../core/fsx.js';
4
- const shards = [
5
- ['node', ['--test', 'test/unit/db-safety.test.mjs', 'test/unit/db-safety-golden.test.mjs']],
6
- ['node', ['--test', 'test/integration/hooks-replay.test.mjs', 'test/unit/hooks-replay-policy.test.mjs', 'test/unit/hook-command-output.test.mjs']],
7
- ['node', ['--test', 'test/unit/proof-redaction.test.mjs', 'test/unit/codex-access-token-redaction.test.mjs']]
8
- ];
9
- const results = [];
10
- for (const [cmd, args] of shards) {
11
- const result = await runProcess(cmd, args, {
12
- cwd: process.cwd(),
13
- timeoutMs: 60_000,
14
- maxOutputBytes: 512 * 1024,
15
- env: { SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' }
16
- });
17
- results.push({ command: [cmd, ...args].join(' '), ok: result.code === 0, code: result.code, stderr_tail: result.stderr.slice(-1000), stdout_tail: result.stdout.slice(-1000) });
18
- }
19
- const ok = results.every((row) => row.ok);
20
- console.log(JSON.stringify({ schema: 'sks.safety-check.v1', ok, results }, null, 2));
21
- if (!ok)
22
- process.exitCode = 1;
23
- //# sourceMappingURL=safety-check.js.map
@@ -1,27 +0,0 @@
1
- // @ts-nocheck
2
- import fs from 'node:fs/promises';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import assert from 'node:assert/strict';
6
- import { runProcess } from '../core/fsx.js';
7
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-shared-memory-fixture-'));
8
- const bin = path.join(process.cwd(), 'dist', 'bin', 'sks.js');
9
- await fs.writeFile(path.join(root, 'package.json'), '{"name":"fixture","private":true}\n');
10
- await runProcess('git', ['init'], { cwd: root });
11
- await runSks(['git', 'install', '--json']);
12
- await fs.mkdir(path.join(root, '.sneakoscope', 'wiki'), { recursive: true });
13
- await fs.writeFile(path.join(root, '.sneakoscope', 'wiki', 'context-pack.json'), JSON.stringify({
14
- schema: 'fixture',
15
- claims: [{ id: 'shared-memory-check-claim', text: 'Shared memory check claim.', status: 'supported', source: 'docs/shared-triwiki.md' }]
16
- }, null, 2));
17
- const publish = await runSks(['wiki', 'publish', 'latest', '--shared', '--json']);
18
- assert.equal(publish.ok, true);
19
- const validation = await runSks(['wiki', 'validate-shared', '--json']);
20
- assert.equal(validation.ok, true);
21
- console.log(JSON.stringify({ ok: true, schema: 'sks.shared-memory-fixture.v1', files: validation.files.length }, null, 2));
22
- async function runSks(args) {
23
- const result = await runProcess(process.execPath, [bin, ...args], { cwd: root, env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' } });
24
- assert.equal(result.code, 0, result.stdout || result.stderr);
25
- return JSON.parse(result.stdout);
26
- }
27
- //# sourceMappingURL=shared-memory-fixture-check.js.map