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,19 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
6
- const { buildSideEffectRuntimeReport } = await importDist('core/safety/side-effect-runtime-report.js');
7
- const report = await buildSideEffectRuntimeReport(root);
8
- const out = path.join(root, '.sneakoscope', 'reports', 'side-effect-runtime-report.json');
9
- fs.mkdirSync(path.dirname(out), { recursive: true });
10
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
11
- assertGate(report.unexpected_applied_mutations === 0, 'unexpected applied mutations must be zero', report);
12
- assertGate(report.global_mutations_without_confirmation === 0, 'global mutations without confirmation must be zero', report);
13
- assertGate(report.config_mutations_without_backup_or_noop === 0, 'config/global mutations without backup or noop must be zero', report);
14
- emitGate('side-effect:runtime-report', {
15
- ledgers: report.ledger_paths.length,
16
- applied: report.applied_entries,
17
- unexpected_applied_mutations: report.unexpected_applied_mutations
18
- });
19
- //# sourceMappingURL=side-effect-runtime-report-check.js.map
@@ -1,226 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- // Gate: safety:side-effect-zero
4
- // Proves the requested-scope contract is deny-by-default: only project files are
5
- // mutable, every global/destructive mutation requires explicit confirmation, and
6
- // every applied mutation must be recorded in the mutation ledger with a backup or
7
- // no-op reason. Operates entirely on temp dirs; never touches the real ~/.codex.
8
- import fs from 'node:fs';
9
- import os from 'node:os';
10
- import path from 'node:path';
11
- import { root, assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
12
- const scope = await importDist('core/safety/requested-scope-contract.js');
13
- const ledger = await importDist('core/safety/mutation-ledger.js');
14
- const guardMod = await importDist('core/safety/mutation-guard.js');
15
- const { createRequestedScopeContract, isMutationAllowed, isPathAllowed, REQUESTED_SCOPE_CONTRACT_SCHEMA, CONFIRMATION_REQUIRED } = scope;
16
- const { evaluateMutation, recordMutation, mutationLedgerPath, MUTATION_KINDS, MUTATION_LEDGER_SCHEMA } = ledger;
17
- const { guardedWriteFile, guardedRename, guardContextForRoute, MutationGuardViolationError } = guardMod;
18
- function mkTmp(prefix) {
19
- return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
20
- }
21
- function rmTmp(dir) {
22
- try {
23
- fs.rmSync(dir, { recursive: true, force: true });
24
- }
25
- catch {
26
- // best-effort cleanup; never fail the gate on teardown
27
- }
28
- }
29
- const tmpDirs = [];
30
- const summary = { checks: {}, generated_at: new Date().toISOString() };
31
- try {
32
- // ---------------------------------------------------------------------------
33
- // Schema + deny-by-default contract surface.
34
- // ---------------------------------------------------------------------------
35
- assertGate(REQUESTED_SCOPE_CONTRACT_SCHEMA === 'sks.requested-scope-contract.v1', 'schema: REQUESTED_SCOPE_CONTRACT_SCHEMA mismatch', { schema: REQUESTED_SCOPE_CONTRACT_SCHEMA });
36
- assertGate(Array.isArray(CONFIRMATION_REQUIRED) && CONFIRMATION_REQUIRED.length > 0, 'schema: CONFIRMATION_REQUIRED is not a non-empty array', { confirmation_required: CONFIRMATION_REQUIRED });
37
- const contract = createRequestedScopeContract({
38
- route: 'MAD',
39
- userRequest: 'repair project config',
40
- projectRoot: '/tmp/proj'
41
- });
42
- assertGate(contract.schema === REQUESTED_SCOPE_CONTRACT_SCHEMA, 'contract: default contract carries the wrong schema', { contract });
43
- // ---------------------------------------------------------------------------
44
- // project_files allowed; global/destructive kinds denied by default.
45
- // ---------------------------------------------------------------------------
46
- const projectAllowed = isMutationAllowed(contract, 'project_files');
47
- assertGate(projectAllowed.allowed === true, 'scope: project_files must be allowed', { decision: projectAllowed });
48
- const globalDenied = isMutationAllowed(contract, 'global_codex_config');
49
- assertGate(globalDenied.allowed === false && globalDenied.reason === 'mutation_not_in_scope:global_codex_config', 'scope: global_codex_config must be denied (not in scope) by default', { decision: globalDenied });
50
- const pkgDenied = isMutationAllowed(contract, 'package_install');
51
- assertGate(pkgDenied.allowed === false, 'scope: package_install must be denied by default', { decision: pkgDenied });
52
- const lbAuthDenied = isMutationAllowed(contract, 'codex_lb_auth');
53
- assertGate(lbAuthDenied.allowed === false, 'scope: codex_lb_auth must be denied by default', { decision: lbAuthDenied });
54
- // process_kill maps to the codex_app_process scope, denied by default.
55
- const appProcessDenied = isMutationAllowed(contract, 'codex_app_process');
56
- assertGate(appProcessDenied.allowed === false, 'scope: codex_app_process (process_kill) must be denied by default', { decision: appProcessDenied });
57
- summary.checks.deny_by_default = {
58
- project_files: projectAllowed.allowed,
59
- global_codex_config: globalDenied.allowed,
60
- package_install: pkgDenied.allowed,
61
- codex_lb_auth: lbAuthDenied.allowed,
62
- codex_app_process: appProcessDenied.allowed
63
- };
64
- // ---------------------------------------------------------------------------
65
- // Even with an override allowing the kind, confirmation is still required.
66
- // ---------------------------------------------------------------------------
67
- const overridden = createRequestedScopeContract({
68
- route: 'MAD',
69
- userRequest: 'repair project config',
70
- projectRoot: '/tmp/proj',
71
- overrides: { global_codex_config: true }
72
- });
73
- const overriddenNoConfirm = isMutationAllowed(overridden, 'global_codex_config');
74
- assertGate(overriddenNoConfirm.allowed === false && overriddenNoConfirm.reason.startsWith('requires_explicit_confirmation'), 'confirmation: overridden global_codex_config must still require explicit confirmation', { decision: overriddenNoConfirm });
75
- const overriddenConfirmed = isMutationAllowed(overridden, 'global_codex_config', { confirmed: true });
76
- assertGate(overriddenConfirmed.allowed === true, 'confirmation: confirmed global_codex_config must be allowed', { decision: overriddenConfirmed });
77
- summary.checks.explicit_confirmation = {
78
- denied_without_confirm: overriddenNoConfirm.allowed,
79
- allowed_with_confirm: overriddenConfirmed.allowed
80
- };
81
- // ---------------------------------------------------------------------------
82
- // Path scoping: project paths allowed; the global Codex config is forbidden.
83
- // ---------------------------------------------------------------------------
84
- const projectPath = isPathAllowed(contract, '/tmp/proj/src/x.ts');
85
- assertGate(projectPath.allowed === true, 'path: project source path must be allowed', { decision: projectPath });
86
- const codexConfigPath = isPathAllowed(contract, '~/.codex/config.toml');
87
- assertGate(codexConfigPath.allowed === false && codexConfigPath.reason.startsWith('forbidden_path'), 'path: ~/.codex/config.toml must be a forbidden path', { decision: codexConfigPath });
88
- summary.checks.path_scope = {
89
- project_path: projectPath.allowed,
90
- forbidden_codex_config: codexConfigPath.allowed
91
- };
92
- // Guard wrappers must enforce path scope before applying mutations.
93
- const guardRoot = mkTmp('sks-mutation-guard-path-');
94
- tmpDirs.push(guardRoot);
95
- const guardContract = createRequestedScopeContract({
96
- route: 'guard-fixture',
97
- userRequest: 'mutate project fixture',
98
- projectRoot: guardRoot
99
- });
100
- guardContract.forbidden_paths.push(path.join(guardRoot, 'forbidden/**'));
101
- const guardCtx = guardContextForRoute(guardRoot, guardContract, 'side-effect-zero-fixture');
102
- const insideTarget = path.join(guardRoot, 'ok.txt');
103
- await guardedWriteFile(guardCtx, insideTarget, 'ok');
104
- assertGate(fs.existsSync(insideTarget), 'guard path fixture: project file mutation should apply', { insideTarget });
105
- const outsideTarget = path.join(os.tmpdir(), `sks-outside-${Date.now()}.txt`);
106
- let outsideBlocked = false;
107
- try {
108
- await guardedWriteFile(guardCtx, outsideTarget, 'no');
109
- }
110
- catch (err) {
111
- outsideBlocked = err instanceof MutationGuardViolationError || String(err?.message || err).includes('path_not_in_scope');
112
- }
113
- assertGate(outsideBlocked && !fs.existsSync(outsideTarget), 'guard path fixture: outside project write must fail before apply', { outsideTarget });
114
- const forbiddenTarget = path.join(guardRoot, 'forbidden', 'no.txt');
115
- let forbiddenBlocked = false;
116
- try {
117
- await guardedWriteFile(guardCtx, forbiddenTarget, 'no');
118
- }
119
- catch (err) {
120
- forbiddenBlocked = err instanceof MutationGuardViolationError || String(err?.message || err).includes('forbidden_path');
121
- }
122
- assertGate(forbiddenBlocked && !fs.existsSync(forbiddenTarget), 'guard path fixture: forbidden path write must fail before apply', { forbiddenTarget });
123
- const renameSource = path.join(guardRoot, 'rename-source.txt');
124
- fs.writeFileSync(renameSource, 'keep');
125
- let renameBlocked = false;
126
- try {
127
- await guardedRename(guardCtx, renameSource, path.join(guardRoot, 'forbidden', 'renamed.txt'));
128
- }
129
- catch (err) {
130
- renameBlocked = err instanceof MutationGuardViolationError || String(err?.message || err).includes('forbidden_path');
131
- }
132
- assertGate(renameBlocked && fs.existsSync(renameSource), 'guard path fixture: forbidden rename target must fail before apply', { renameSource });
133
- summary.checks.mutation_guard_path_scope = {
134
- project_write_applied: true,
135
- outside_project_blocked: outsideBlocked,
136
- forbidden_path_blocked: forbiddenBlocked,
137
- rename_target_forbidden_blocked: renameBlocked
138
- };
139
- // ---------------------------------------------------------------------------
140
- // Mutation ledger violations.
141
- // ---------------------------------------------------------------------------
142
- assertGate(MUTATION_LEDGER_SCHEMA === 'sks.mutation-ledger.v1', 'ledger: MUTATION_LEDGER_SCHEMA mismatch', { schema: MUTATION_LEDGER_SCHEMA });
143
- // Applied global_config_write with no scope permission -> violation.
144
- const appliedOutOfScope = evaluateMutation(contract, 'global_config_write', {
145
- target: '~/.codex/config.toml',
146
- applied: true
147
- });
148
- assertGate(appliedOutOfScope.violation === true, 'ledger: global config write applied out of scope must be a violation', { entry: appliedOutOfScope });
149
- // Allowed (overridden + confirmed) global config write applied WITHOUT a
150
- // backup/no-op reason -> still a violation (config mutations need a backup).
151
- const configContract = createRequestedScopeContract({
152
- route: 'MAD',
153
- userRequest: 'repair project config',
154
- projectRoot: '/tmp/proj',
155
- overrides: { global_codex_config: true }
156
- });
157
- const configNoBackup = evaluateMutation(configContract, 'global_config_write', {
158
- target: 'x',
159
- confirmed: true,
160
- applied: true,
161
- backupPath: null,
162
- noOpReason: null
163
- });
164
- assertGate(configNoBackup.violation === true, 'ledger: in-scope config write applied without backup/no-op reason must be a violation', { entry: configNoBackup });
165
- // Allowed project_files file_write applied -> no violation.
166
- const projectWrite = evaluateMutation(contract, 'file_write', {
167
- target: '/tmp/proj/src/x.ts',
168
- applied: true,
169
- backupPath: null,
170
- noOpReason: null
171
- });
172
- assertGate(projectWrite.violation === false && projectWrite.requested_scope_allowed === true, 'ledger: allowed project file_write must not be a violation', { entry: projectWrite });
173
- summary.checks.ledger_violations = {
174
- applied_out_of_scope: appliedOutOfScope.violation,
175
- config_without_backup: configNoBackup.violation,
176
- project_write_ok: projectWrite.violation === false
177
- };
178
- // ---------------------------------------------------------------------------
179
- // No-mutation-without-ledger: required kinds are recordable, and recordMutation
180
- // produces the ledger file on disk.
181
- // ---------------------------------------------------------------------------
182
- const requiredKinds = [
183
- 'file_write',
184
- 'global_config_write',
185
- 'package_install',
186
- 'process_kill',
187
- 'codex_app_flag_change',
188
- 'codex_lb_auth_change',
189
- 'zellij_install',
190
- 'skill_snapshot_promotion'
191
- ];
192
- for (const kind of requiredKinds) {
193
- assertGate(MUTATION_KINDS.includes(kind), `ledger: MUTATION_KINDS is missing required kind '${kind}'`, { mutation_kinds: MUTATION_KINDS });
194
- }
195
- const ledgerRoot = mkTmp('sks-side-effect-ledger-');
196
- tmpDirs.push(ledgerRoot);
197
- const recordedPath = await recordMutation(ledgerRoot, projectWrite);
198
- assertGate(recordedPath === mutationLedgerPath(ledgerRoot) && fs.existsSync(recordedPath), 'ledger: recordMutation did not write the ledger file at mutationLedgerPath', { recorded_path: recordedPath, expected: mutationLedgerPath(ledgerRoot) });
199
- summary.checks.no_mutation_without_ledger = {
200
- required_kinds_present: true,
201
- ledger_file_written: true
202
- };
203
- // ---------------------------------------------------------------------------
204
- // Write the report and emit the gate.
205
- // ---------------------------------------------------------------------------
206
- const reportDir = path.join(root, '.sneakoscope', 'reports');
207
- fs.mkdirSync(reportDir, { recursive: true });
208
- const reportPath = path.join(reportDir, 'side-effect-zero.json');
209
- fs.writeFileSync(reportPath, `${JSON.stringify({ schema: 'sks.side-effect-zero.v1', ok: true, ...summary }, null, 2)}\n`, 'utf8');
210
- emitGate('safety:side-effect-zero', {
211
- report_path: reportPath,
212
- checks_performed: [
213
- 'deny_by_default',
214
- 'explicit_confirmation',
215
- 'path_scope',
216
- 'mutation_guard_path_scope',
217
- 'ledger_violations',
218
- 'no_mutation_without_ledger'
219
- ]
220
- });
221
- }
222
- finally {
223
- for (const dir of tmpDirs)
224
- rmTmp(dir);
225
- }
226
- //# sourceMappingURL=side-effect-zero-gate-check.js.map
@@ -1,130 +0,0 @@
1
- // @ts-nocheck
2
- import fs from 'node:fs';
3
- import path from 'node:path';
4
- import { spawnSync } from 'node:child_process';
5
- import { fileURLToPath } from 'node:url';
6
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
7
- const mode = process.argv[2] || '';
8
- function runSks(args) {
9
- const entry = path.join(root, 'dist', 'bin', 'sks.js');
10
- const result = spawnSync(process.execPath, [entry, ...args], {
11
- cwd: root,
12
- encoding: 'utf8',
13
- env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1' },
14
- timeout: 120_000
15
- });
16
- if (result.status !== 0) {
17
- throw new Error(`sks ${args.join(' ')} failed\nstdout:\n${result.stdout}\nstderr:\n${result.stderr}`);
18
- }
19
- return parseJson(result.stdout);
20
- }
21
- function parseJson(text) {
22
- const trimmed = String(text || '').trim();
23
- try {
24
- return JSON.parse(trimmed);
25
- }
26
- catch { }
27
- const start = trimmed.indexOf('{');
28
- const end = trimmed.lastIndexOf('}');
29
- if (start >= 0 && end > start)
30
- return JSON.parse(trimmed.slice(start, end + 1));
31
- throw new Error(`Expected JSON output, got: ${trimmed.slice(0, 400)}`);
32
- }
33
- function assert(condition, message) {
34
- if (!condition)
35
- throw new Error(message);
36
- }
37
- async function jsonSchemaRecursiveCheck() {
38
- const { validateJsonSchemaRecursive } = await import('../core/json-schema-validator.js');
39
- const schema = {
40
- type: 'object',
41
- required: ['items'],
42
- properties: {
43
- items: {
44
- type: 'array',
45
- minItems: 1,
46
- items: {
47
- type: 'object',
48
- required: ['id', 'bbox'],
49
- additionalProperties: false,
50
- properties: {
51
- id: { type: 'string', minLength: 1 },
52
- bbox: {
53
- type: 'array',
54
- prefixItems: [
55
- { type: 'number', minimum: 0 },
56
- { type: 'number', minimum: 0 },
57
- { type: 'number', exclusiveMinimum: 0 },
58
- { type: 'number', exclusiveMinimum: 0 }
59
- ],
60
- minItems: 4,
61
- maxItems: 4
62
- }
63
- }
64
- }
65
- }
66
- },
67
- additionalProperties: false
68
- };
69
- assert(validateJsonSchemaRecursive({ items: [{ id: 'a', bbox: [0, 0, 1, 1] }] }, schema).ok, 'valid recursive schema fixture failed');
70
- assert(!validateJsonSchemaRecursive({ items: [{ id: '', bbox: [0, 0, 0, 1], extra: true }] }, schema).ok, 'invalid recursive schema fixture passed');
71
- }
72
- function uxFixture() {
73
- const result = runSks(['image-ux-review', 'fixture', '--mock', '--json']);
74
- assert(result.ok === true, 'UX fixture did not pass');
75
- assert(result.artifacts?.generated_review_ledger?.mock_fixture !== false, 'UX fixture should remain mock/partial');
76
- }
77
- function uxNoFakeCallouts() {
78
- const source = fs.readFileSync(path.join(root, 'src', 'core', 'commands', 'image-ux-review-command.ts'), 'utf8');
79
- assert(!source.includes('Generated visual callout'), 'generic fake Generated visual callout string is present');
80
- assert(/callouts:\s*opts\.mock\s*\?/.test(source), 'attach-generated mock gating is missing');
81
- }
82
- function pptFixture() {
83
- const result = runSks(['ppt', 'fixture', '--mock', '--json']);
84
- assert(result.ok === true, 'PPT fixture did not pass');
85
- assert(result.artifacts?.gate?.mock_fixture === true, 'PPT fixture did not record mock fixture');
86
- assert(result.artifacts?.slide_callout_ledger?.generated_slide_callout_images_count >= 1, 'PPT generated slide callout missing');
87
- assert(result.artifacts?.slide_issue_ledger?.issues?.length >= 1, 'PPT slide issue extraction missing');
88
- }
89
- function pptNoTextFallback() {
90
- const source = fs.readFileSync(path.join(root, 'src', 'core', 'ppt-review', 'slide-imagegen-review.ts'), 'utf8');
91
- assert(source.includes('text_only_fallback_allowed: false'), 'PPT text-only fallback gate missing');
92
- }
93
- function pptNoMockAsReal() {
94
- const result = runSks(['ppt', 'fixture', '--mock', '--json']);
95
- assert(result.artifacts?.gate?.verified_level === 'verified_partial', 'PPT mock fixture was not capped at verified_partial');
96
- }
97
- function dfixFixture() {
98
- const result = runSks(['dfix', 'fixture', '--json']);
99
- assert(result.ok === true, 'DFix fixture did not pass');
100
- assert(result.artifacts?.gate?.diagnosis_present === true, 'DFix diagnosis missing');
101
- assert(result.artifacts?.gate?.verification_present === true, 'DFix verification missing');
102
- }
103
- function allFeaturesCompletion() {
104
- const result = runSks(['all-features', 'complete', '--json']);
105
- assert(result.schema === 'sks.all-feature-completion.v1', 'all-feature completion schema missing');
106
- assert(Array.isArray(result.features), 'all-feature completion rows missing');
107
- }
108
- const runners = {
109
- 'ux-generate': uxFixture,
110
- 'ux-extract': uxFixture,
111
- 'ux-patch': uxFixture,
112
- 'ux-recapture': uxFixture,
113
- 'ux-no-fake': uxNoFakeCallouts,
114
- 'ppt-review': pptFixture,
115
- 'ppt-export': pptFixture,
116
- 'ppt-no-text': pptNoTextFallback,
117
- 'ppt-no-mock-real': pptNoMockAsReal,
118
- 'ppt-extract': pptFixture,
119
- 'ppt-voxel': pptFixture,
120
- 'ppt-proof': pptFixture,
121
- 'dfix-fixture': dfixFixture,
122
- 'dfix-verification': dfixFixture,
123
- 'all-features': allFeaturesCompletion,
124
- 'json-schema': jsonSchemaRecursiveCheck
125
- };
126
- if (!runners[mode])
127
- throw new Error(`Unknown SKS 1.11 fixture mode: ${mode}`);
128
- await runners[mode]();
129
- console.log(JSON.stringify({ ok: true, mode }, null, 2));
130
- //# sourceMappingURL=sks-1-11-fixture-check.js.map
@@ -1,32 +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 { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
7
- const mod = await importDist('core/source-intelligence/source-intelligence-runner.js');
8
- const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-source-intelligence-'));
9
- const noXai = await mod.runSourceIntelligence({
10
- missionDir: dir,
11
- route: '$Team',
12
- query: 'fixture',
13
- context7: async () => [{ title: 'docs' }],
14
- codexWebSearch: async () => [{ title: 'web', url: 'https://example.com' }],
15
- xaiDetection: { configured: false, search_capable: false, configured_but_unverified: false, status: 'missing' },
16
- env: { SKS_CODEX_WEB_SEARCH_AVAILABLE: '1' }
17
- });
18
- const withXai = await mod.runSourceIntelligence({
19
- missionDir: dir,
20
- route: '$Research',
21
- query: 'fixture',
22
- context7: async () => [{ title: 'docs' }],
23
- codexWebSearch: async () => [{ title: 'web', url: 'https://example.com' }],
24
- xaiSearch: async () => [{ title: 'x', url: 'https://x.ai' }],
25
- xaiDetection: { configured: true, search_capable: true, configured_but_unverified: false, status: 'search_capable' },
26
- env: { SKS_CODEX_WEB_SEARCH_AVAILABLE: '1' }
27
- });
28
- assertGate(noXai.ok === true && noXai.mode === 'context7_codex_web', 'no-XAI mode must pass with Context7+Codex Web', noXai);
29
- assertGate(withXai.ok === true && withXai.mode === 'context7_codex_web_xai', 'XAI mode must pass with all providers', withXai);
30
- assertGate(withXai.parallel.providers_requested.length === 3, 'providers must run through parallel provider plan', withXai.parallel);
31
- emitGate('source-intelligence:all-modes', { modes: [noXai.mode, withXai.mode] });
32
- //# sourceMappingURL=source-intelligence-all-modes-check.js.map
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertFiles, assertGate, emitGate, importDist, SOURCE_INTELLIGENCE_FILES } from './sks-1-18-gate-lib.js';
4
- assertFiles(SOURCE_INTELLIGENCE_FILES);
5
- const mod = await importDist('core/source-intelligence/source-intelligence-policy.js');
6
- const base = mod.buildSourceIntelligencePolicy({ context7Available: true, codexWebCapability: { available: true, status: 'available', reason: 'fixture' }, xaiDetection: { configured: false, search_capable: false, configured_but_unverified: false, status: 'missing' } });
7
- const xai = mod.buildSourceIntelligencePolicy({ context7Available: true, codexWebCapability: { available: true, status: 'available', reason: 'fixture' }, xaiDetection: { configured: true, search_capable: true, configured_but_unverified: false, status: 'search_capable' } });
8
- const blocked = mod.buildSourceIntelligencePolicy({ context7Available: false });
9
- assertGate(base.mode === 'context7_codex_web', 'default mode must be context7_codex_web', base);
10
- assertGate(xai.mode === 'context7_codex_web_xai' && xai.xai_mcp.required === true, 'X AI available mode must require X evidence', xai);
11
- assertGate(blocked.mode === 'blocked' && blocked.blockers.includes('docs_context_missing'), 'Context7 missing must block docs context');
12
- emitGate('source-intelligence:policy', { modes: [base.mode, xai.mode, blocked.mode] });
13
- //# sourceMappingURL=source-intelligence-policy-check.js.map
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
6
- const mod = await importDist('core/strategy/adhd-orchestrating-gate.js');
7
- const gate = mod.runAdhdOrchestratingGate({
8
- prompt: 'Implement strategy-first parallel write gates in `src/core/strategy/strategy-gate.ts` with Appshots evidence.',
9
- agentCount: 5,
10
- visualRequired: true
11
- });
12
- const artifacts = mod.buildDopamineOrchestrationArtifacts(gate);
13
- const report = { schema: 'sks.strategy-adhd-orchestrating-gate-check.v1', ok: gate.ok, gate, artifacts };
14
- const out = path.join(root, '.sneakoscope', 'reports', 'strategy-adhd-orchestrating-gate.json');
15
- fs.mkdirSync(path.dirname(out), { recursive: true });
16
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
17
- assertGate(gate.ok === true, 'ADHD orchestration gate must pass a concrete prompt', report);
18
- assertGate(gate.scheduler_requires_gate === true, 'strategy scheduler gate must be explicit', report);
19
- assertGate(gate.micro_wins.length >= 4, 'micro-win board must contain executable slices', report);
20
- assertGate(artifacts.microWinBoard.dashboard_visible === true, 'micro-win board must be dashboard visible', report);
21
- emitGate('strategy:adhd-orchestrating-gate', { micro_wins: gate.micro_wins.length });
22
- //# sourceMappingURL=strategy-adhd-orchestrating-gate-check.js.map
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
6
- const mod = await importDist('core/strategy/strategy-compiler.js');
7
- const compiled = mod.compileStrategy({
8
- prompt: 'Patch separate source and docs files.',
9
- writeTargets: ['src/core/strategy/strategy-gate.ts', 'docs/strategy-first-parallel-write.md']
10
- });
11
- const report = { schema: 'sks.strategy-file-ownership-plan-check.v1', ok: compiled.file_ownership_plan.no_overlap, ownership: compiled.file_ownership_plan };
12
- const out = path.join(root, '.sneakoscope', 'reports', 'strategy-file-ownership-plan.json');
13
- fs.mkdirSync(path.dirname(out), { recursive: true });
14
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
15
- assertGate(compiled.file_ownership_plan.no_overlap === true, 'file ownership plan must prove no overlapping writes', report);
16
- assertGate(compiled.file_ownership_plan.protected_write_paths.length === 0, 'file ownership plan must block protected paths', report);
17
- emitGate('strategy:file-ownership-plan', { owners: compiled.file_ownership_plan.owners.length });
18
- //# sourceMappingURL=strategy-file-ownership-plan-check.js.map
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
6
- const mod = await importDist('core/strategy/strategy-compiler.js');
7
- const compiled = mod.compileStrategy({
8
- prompt: 'Update independent release files.',
9
- writeTargets: ['src/core/version.ts', 'README.md', 'CHANGELOG.md'],
10
- agentCount: 5
11
- });
12
- const report = { schema: 'sks.strategy-parallel-modification-plan-check.v1', ok: compiled.parallel_modification_plan.can_parallelize_writes, plan: compiled.parallel_modification_plan };
13
- const out = path.join(root, '.sneakoscope', 'reports', 'strategy-parallel-modification-plan.json');
14
- fs.mkdirSync(path.dirname(out), { recursive: true });
15
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
16
- assertGate(compiled.parallel_modification_plan.batches.length >= 1, 'parallel modification plan must include a batch', report);
17
- assertGate(compiled.parallel_modification_plan.serial_conflicts.length === 0, 'independent write targets must not serialize', report);
18
- emitGate('strategy:parallel-modification-plan', { batches: compiled.parallel_modification_plan.batches.length });
19
- //# sourceMappingURL=strategy-parallel-modification-plan-check.js.map
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
6
- const mod = await importDist('core/strategy/strategy-compiler.js');
7
- const compiled = mod.compileStrategy({
8
- prompt: 'Patch with rollback proof.',
9
- writeTargets: ['src/core/agents/agent-patch-proof.ts']
10
- });
11
- const dag = compiled.verification_rollback_dag;
12
- const report = { schema: 'sks.strategy-verification-rollback-dag-check.v1', ok: dag.rollback_ready, dag };
13
- const out = path.join(root, '.sneakoscope', 'reports', 'strategy-verification-rollback-dag.json');
14
- fs.mkdirSync(path.dirname(out), { recursive: true });
15
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
16
- assertGate(dag.rollback_ready === true, 'verification rollback DAG must include rollback node', report);
17
- assertGate(dag.nodes.some((node) => node.kind === 'verification'), 'verification rollback DAG must include verification node', report);
18
- emitGate('strategy:verification-rollback-dag', { nodes: dag.nodes.length });
19
- //# sourceMappingURL=strategy-verification-rollback-dag-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runActualTeamBackfillBlackbox } from './agent-route-blackbox-lib.js';
4
- runActualTeamBackfillBlackbox('team:actual-route-backfill');
5
- //# sourceMappingURL=team-actual-route-backfill-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runRouteBackfillBlackbox } from './agent-route-blackbox-lib.js';
4
- runRouteBackfillBlackbox('$Team', 'team:backfill-route-blackbox');
5
- //# sourceMappingURL=team-backfill-route-blackbox.js.map
@@ -1,55 +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 { spawnSync } from 'node:child_process';
7
- import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
8
- const mergeMod = await importDist('core/agents/agent-merge-coordinator.js');
9
- const applyMod = await importDist('core/agents/agent-patch-apply-worker.js');
10
- const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-team-patch-'));
11
- fs.writeFileSync(path.join(tmp, 'team-a.txt'), 'lane-a\n');
12
- fs.writeFileSync(path.join(tmp, 'team-b.txt'), 'lane-b\n');
13
- const envelopes = [
14
- { schema: 'sks.agent-patch-envelope.v1', agent_id: 'reviewer-a', session_id: 'team-session-a', slot_id: 'team-slot-a', generation_index: 1, lease_id: 'lease:reviewer-a:team-a.txt', operations: [{ op: 'replace', path: 'team-a.txt', search: 'lane-a', replace: 'lane-a-done' }] },
15
- { schema: 'sks.agent-patch-envelope.v1', agent_id: 'reviewer-b', session_id: 'team-session-b', slot_id: 'team-slot-b', generation_index: 1, lease_id: 'lease:reviewer-b:team-b.txt', operations: [{ op: 'replace', path: 'team-b.txt', search: 'lane-b', replace: 'lane-b-done' }] }
16
- ];
17
- const merge = mergeMod.coordinateAgentPatchMerge(envelopes);
18
- const applyResults = [];
19
- for (const envelope of envelopes)
20
- applyResults.push(await applyMod.applyAgentPatchEnvelope(tmp, envelope));
21
- const teamRun = spawnSync(process.execPath, [
22
- 'dist/bin/sks.js',
23
- 'team',
24
- 'team parallel write blackbox route fixture',
25
- 'executor:1',
26
- 'reviewer:5',
27
- '--mock',
28
- '--write-mode',
29
- 'parallel',
30
- '--apply-patches',
31
- '--dry-run-patches',
32
- '--max-write-agents',
33
- '1',
34
- '--json'
35
- ], { cwd: root, encoding: 'utf8', maxBuffer: 2 * 1024 * 1024 });
36
- const teamJson = parseJson(teamRun.stdout);
37
- const routePolicy = teamJson?.native_agent_run?.parallel_write_policy || null;
38
- const report = { schema: 'sks.team-parallel-write-blackbox.v1', ok: merge.ok && applyResults.every((item) => item.ok) && teamRun.status === 0 && routePolicy?.route_level_flags_wired === true, merge, applyResults, route_command: { status: teamRun.status, stderr_tail: teamRun.stderr.slice(-2000), mission_id: teamJson?.mission_id || null, route_policy: routePolicy } };
39
- const out = path.join(root, '.sneakoscope', 'reports', 'team-parallel-write-blackbox.json');
40
- fs.mkdirSync(path.dirname(out), { recursive: true });
41
- fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
42
- assertGate(report.ok === true, 'Team parallel write blackbox must pass', report);
43
- assertGate(routePolicy?.write_mode === 'parallel', 'Team route must carry --write-mode parallel into native agent policy', report);
44
- assertGate(routePolicy?.apply_patches === true, 'Team route must carry --apply-patches into native agent policy', report);
45
- assertGate(routePolicy?.dry_run_patches === true, 'Team route must carry --dry-run-patches into native agent policy', report);
46
- emitGate('team:parallel-write-blackbox', { changed_files: applyResults.flatMap((item) => item.changed_files).length });
47
- function parseJson(text) {
48
- try {
49
- return JSON.parse(text);
50
- }
51
- catch {
52
- return null;
53
- }
54
- }
55
- //# sourceMappingURL=team-parallel-write-blackbox.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: 'team:patch-swarm-route-blackbox',
6
- route: '$Team',
7
- routeCommand: 'sks team',
8
- reportName: 'team-patch-swarm-route-blackbox'
9
- });
10
- //# sourceMappingURL=team-patch-swarm-route-blackbox.js.map
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- const report = {
4
- schema: 'sks.keyboard-enhancement-safety-check.v1',
5
- ok: true,
6
- runtime: 'zellij',
7
- removed_runtime: 'tmux',
8
- checks: ['no control-mode keyboard setup is attempted by SKS runtime']
9
- };
10
- console.log(JSON.stringify(report, null, 2));
11
- export {};
12
- //# sourceMappingURL=terminal-keyboard-enhancement-safety-check.js.map
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import path from 'node:path';
4
- import { pathToFileURL } from 'node:url';
5
- import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
6
- const freshness = ensureDistFresh({ rebuild: true });
7
- if (!freshness.ok) {
8
- console.log(JSON.stringify({ schema: 'sks.tui-output-stability-check.v1', ok: false, blockers: ['dist_not_fresh'], freshness }, null, 2));
9
- process.exit(1);
10
- }
11
- const layoutMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-layout-builder.js')).href);
12
- const madLayout = layoutMod.buildZellijLayoutKdl({
13
- missionId: 'M-tui-output-stability',
14
- ledgerRoot: path.join(root, '.sneakoscope', 'tmp', 'tui-output-stability'),
15
- cwd: root,
16
- kind: 'mad',
17
- slotCount: 1,
18
- codexArgs: ['--profile', 'sks-mad-high']
19
- });
20
- const codexScrollbackOk = madLayout.codex_args.includes('--no-alt-screen')
21
- && madLayout.layout_kdl.includes('--no-alt-screen');
22
- const report = {
23
- schema: 'sks.tui-output-stability-check.v1',
24
- ok: codexScrollbackOk,
25
- runtime: 'zellij',
26
- stdout_frame_policy: 'lane renderer stdout only',
27
- stderr_policy: 'errors only',
28
- codex_scrollback_policy: 'zellij interactive Codex panes launch with --no-alt-screen so trackpad wheel scrolls terminal conversation history instead of the prompt textarea',
29
- codex_no_alt_screen: codexScrollbackOk,
30
- blockers: codexScrollbackOk ? [] : ['codex_no_alt_screen_missing']
31
- };
32
- console.log(JSON.stringify(report, null, 2));
33
- if (!report.ok)
34
- process.exitCode = 1;
35
- //# sourceMappingURL=terminal-tui-output-stability-check.js.map