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,229 +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 { pathToFileURL } from 'node:url';
6
- import { spawnSync } from 'node:child_process';
7
- import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
8
- const freshness = ensureDistFresh({ rebuild: true });
9
- if (!freshness.ok)
10
- fail('dist_not_fresh', { freshness });
11
- const args = process.argv.slice(2);
12
- const manager = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-worker-pane-manager.js')).href);
13
- const slotPaneProof = await import(pathToFileURL(path.join(root, 'dist', 'core', 'agents', 'agent-slot-pane-binding-proof.js')).href);
14
- const swarmSource = await fs.readFile(path.join(root, 'src', 'core', 'agents', 'native-cli-session-swarm.ts'), 'utf8');
15
- const routerSource = await fs.readFile(path.join(root, 'src', 'core', 'agents', 'native-worker-backend-router.ts'), 'utf8');
16
- const controlSource = await fs.readFile(path.join(root, 'src', 'core', 'codex-control', 'codex-task-runner.ts'), 'utf8');
17
- const sourceOk = swarmSource.includes('native_cli_process_in_zellij_worker_pane')
18
- && swarmSource.includes('openWorkerPane')
19
- && swarmSource.includes('worker-process-report.json')
20
- && swarmSource.includes('codex_sdk_thread_started')
21
- && routerSource.includes("backend === 'codex-sdk' || backend === 'zellij'")
22
- && routerSource.includes('runCodexTask')
23
- && controlSource.includes('codex-sdk-events.jsonl')
24
- && routerSource.includes('codex-thread-registry.json');
25
- const eventProof = manager.evaluateZellijWorkerPaneSpawnOrder([
26
- { event_type: 'session_launch_started' },
27
- { event_type: 'zellij_worker_pane_created' },
28
- { event_type: 'worker_started' },
29
- { event_type: 'codex_sdk_thread_started' },
30
- { event_type: 'result_written' },
31
- { event_type: 'pane_closed' }
32
- ]);
33
- const requireReal = process.env.SKS_REQUIRE_REAL_CODEX_ZELLIJ === '1'
34
- || (process.env.SKS_REQUIRE_ZELLIJ === '1' && process.env.SKS_REQUIRE_CODEX_SDK === '1')
35
- || args.includes('--require-real');
36
- if (!requireReal) {
37
- const ok = sourceOk && eventProof.ok;
38
- await emit({
39
- schema: 'sks.agent-real-codex-in-zellij-worker-pane-check.v1',
40
- ok,
41
- source_ok: sourceOk,
42
- event_proof: eventProof,
43
- integration_optional: true,
44
- real_execution: null,
45
- blockers: ok ? [] : ['agent_real_codex_in_zellij_worker_pane_source_check_failed']
46
- });
47
- }
48
- else {
49
- await runRealGate({ sourceOk, eventProof });
50
- }
51
- async function runRealGate({ sourceOk, eventProof }) {
52
- const stamp = new Date().toISOString().replace(/[^0-9]/g, '').slice(0, 14);
53
- const missionId = `M-real-codex-zellij-${stamp}`;
54
- const sessionName = `sks-${missionId}`;
55
- const childEnv = { ...process.env };
56
- delete childEnv.SKS_CODEX_SDK_FAKE;
57
- delete childEnv.SKS_CODEX_SDK_FIXTURE;
58
- if (childEnv.NODE_ENV === 'test')
59
- delete childEnv.NODE_ENV;
60
- Object.assign(childEnv, {
61
- SKS_REQUIRE_ZELLIJ: '1',
62
- SKS_REQUIRE_CODEX_SDK: '1',
63
- SKS_CODEX_SDK_REQUIRE_REAL: '1',
64
- SKS_ZELLIJ_CLOSE_WORKER_PANE: '1',
65
- SKS_ZELLIJ_WORKER_HEARTBEAT_TIMEOUT_MS: childEnv.SKS_ZELLIJ_WORKER_HEARTBEAT_TIMEOUT_MS || '30000',
66
- SKS_ZELLIJ_WORKER_RESULT_TIMEOUT_MS: childEnv.SKS_ZELLIJ_WORKER_RESULT_TIMEOUT_MS || '180000',
67
- SKS_REAL_SMOKE_TIMEOUT_MS: childEnv.SKS_REAL_SMOKE_TIMEOUT_MS || '300000'
68
- });
69
- const command = [
70
- 'dist/bin/sks.js',
71
- 'agent',
72
- 'run',
73
- 'real codex zellij worker pane read-only smoke: inspect package metadata and report no file changes',
74
- '--route', '$Agent',
75
- '--backend', 'zellij',
76
- '--real',
77
- '--readonly',
78
- '--json',
79
- '--agents', '1',
80
- '--target-active-slots', '1',
81
- '--minimum-work-items', '1',
82
- '--work-items', '1',
83
- '--concurrency', '1',
84
- '--mission', missionId
85
- ];
86
- const run = spawnSync(process.execPath, command, {
87
- cwd: root,
88
- env: childEnv,
89
- encoding: 'utf8',
90
- maxBuffer: 64 * 1024 * 1024,
91
- timeout: Number(childEnv.SKS_REAL_SMOKE_TIMEOUT_MS || 300000)
92
- });
93
- spawnSync('zellij', ['kill-session', sessionName], { cwd: root, encoding: 'utf8', timeout: 5000 });
94
- const parsed = parseJson(run.stdout);
95
- const ledgerRoot = parsed?.ledger_root ? path.join(root, parsed.ledger_root) : null;
96
- const runtimeProof = ledgerRoot ? await inspectRealLedger(ledgerRoot) : null;
97
- const blockers = [
98
- ...(sourceOk ? [] : ['agent_real_codex_in_zellij_worker_pane_source_check_failed']),
99
- ...(eventProof.ok ? [] : ['agent_real_codex_in_zellij_worker_pane_static_event_order_failed']),
100
- ...(run.status === 0 ? [] : [`real_codex_zellij_worker_pane_command_exit_${run.status}`]),
101
- ...(parsed ? [] : ['real_codex_zellij_worker_pane_json_missing']),
102
- ...(runtimeProof?.blockers || [])
103
- ];
104
- const report = {
105
- schema: 'sks.agent-real-codex-in-zellij-worker-pane-check.v1',
106
- ok: blockers.length === 0,
107
- integration_optional: false,
108
- mission_id: parsed?.mission_id || missionId,
109
- session_name: sessionName,
110
- source_ok: sourceOk,
111
- event_proof: eventProof,
112
- command: [process.execPath, ...command],
113
- exit_code: run.status,
114
- signal: run.signal,
115
- timed_out: run.error?.code === 'ETIMEDOUT',
116
- stdout_tail: tail(run.stdout),
117
- stderr_tail: tail(run.stderr),
118
- real_execution: runtimeProof,
119
- blockers
120
- };
121
- await emit(report);
122
- }
123
- async function inspectRealLedger(ledgerRoot) {
124
- const swarm = await readJson(path.join(ledgerRoot, 'agent-native-cli-session-swarm.json'), null);
125
- const records = Array.isArray(swarm?.records) ? swarm.records : [];
126
- const workerRecords = records.filter(isZellijCodexWorkerRecord);
127
- const eventsByWorker = [];
128
- for (const record of workerRecords) {
129
- const workerDir = String(record.worker_artifact_dir || '');
130
- const events = await readJsonl(path.join(ledgerRoot, workerDir, 'zellij-worker-pane-events.jsonl'));
131
- eventsByWorker.push({ worker_dir: workerDir, event_proof: manager.evaluateZellijWorkerPaneSpawnOrder(events), events });
132
- }
133
- const bindingProof = await slotPaneProof.writeAgentSlotPaneBindingProof(ledgerRoot, {
134
- requireZellij: true,
135
- reportPath: path.join(root, '.sneakoscope', 'reports', 'agent-real-codex-in-zellij-worker-pane-binding-proof.json')
136
- });
137
- const blockers = [
138
- ...(swarm?.ok === true ? [] : ['real_codex_zellij_swarm_not_ok']),
139
- ...(workerRecords.length >= 1 ? [] : ['real_codex_zellij_worker_record_missing']),
140
- ...(workerRecords.some((row) => row.pane_kind === 'worker_codex_sdk' || row.pane_kind === 'slot_status_renderer') ? [] : ['real_codex_zellij_worker_pane_kind_missing']),
141
- ...(workerRecords.every((row) => manager.isRealZellijWorkerPaneIdSource(row.zellij_pane_id_source)) ? [] : ['real_codex_zellij_pane_id_source_not_real']),
142
- ...(workerRecords.every((row) => row.zellij_pane_id) ? [] : ['real_codex_zellij_pane_id_missing']),
143
- ...(workerRecords.every((row) => row.sdk_thread_id) ? [] : ['real_codex_zellij_sdk_thread_missing']),
144
- ...(workerRecords.every((row) => Number(row.stream_event_count || 0) > 0) ? [] : ['real_codex_zellij_sdk_stream_events_missing']),
145
- ...(workerRecords.every((row) => row.structured_output_valid === true) ? [] : ['real_codex_zellij_structured_output_missing']),
146
- ...(eventsByWorker.every((row) => row.event_proof.ok === true) ? [] : ['real_codex_zellij_event_order_failed']),
147
- ...(bindingProof.ok === true ? [] : ['real_codex_zellij_slot_pane_binding_failed', ...(bindingProof.blockers || [])])
148
- ];
149
- return {
150
- ledger_root: ledgerRoot,
151
- swarm_ok: swarm?.ok === true,
152
- zellij_pane_worker_sessions: Number(swarm?.zellij_pane_worker_sessions || 0),
153
- closed_worker_process_count: Number(swarm?.closed_worker_process_count || 0),
154
- worker_record_count: records.length,
155
- zellij_worker_record_count: workerRecords.length,
156
- worker_records: workerRecords.map((row) => ({
157
- session_id: row.session_id,
158
- slot_id: row.slot_id,
159
- generation_index: row.generation_index,
160
- pane_kind: row.pane_kind,
161
- zellij_pane_id: row.zellij_pane_id,
162
- zellij_pane_id_source: row.zellij_pane_id_source,
163
- sdk_thread_id: row.sdk_thread_id,
164
- stream_event_count: row.stream_event_count,
165
- structured_output_valid: row.structured_output_valid,
166
- status: row.status,
167
- blockers: row.blockers || []
168
- })),
169
- event_proofs: eventsByWorker.map((row) => ({ worker_dir: row.worker_dir, event_proof: row.event_proof })),
170
- binding_proof: bindingProof,
171
- blockers
172
- };
173
- }
174
- function isZellijCodexWorkerRecord(row) {
175
- return row?.scaling_primitive === 'native_cli_process_in_zellij_worker_pane'
176
- || row?.scaling_primitive === 'native_cli_process_with_zellij_slot_renderer'
177
- || row?.pane_kind === 'worker_codex_sdk'
178
- || row?.pane_kind === 'slot_status_renderer';
179
- }
180
- async function emit(report) {
181
- await fs.mkdir(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
182
- await fs.writeFile(path.join(root, '.sneakoscope', 'reports', 'agent-real-codex-in-zellij-worker-pane.json'), `${JSON.stringify(report, null, 2)}\n`);
183
- console.log(JSON.stringify(report, null, 2));
184
- if (!report.ok)
185
- process.exitCode = 1;
186
- }
187
- function fail(blocker, detail) { emit({ schema: 'sks.agent-real-codex-in-zellij-worker-pane-check.v1', ok: false, blockers: [blocker], detail }).then(() => process.exit(1)); }
188
- function parseJson(stdout) {
189
- const text = String(stdout || '');
190
- const start = text.indexOf('{');
191
- const end = text.lastIndexOf('}');
192
- if (start < 0 || end <= start)
193
- return null;
194
- try {
195
- return JSON.parse(text.slice(start, end + 1));
196
- }
197
- catch {
198
- return null;
199
- }
200
- }
201
- async function readJson(file, fallback) {
202
- try {
203
- return JSON.parse(await fs.readFile(file, 'utf8'));
204
- }
205
- catch {
206
- return fallback;
207
- }
208
- }
209
- async function readJsonl(file) {
210
- try {
211
- const text = await fs.readFile(file, 'utf8');
212
- return text.split(/\r?\n/).filter(Boolean).map((line) => {
213
- try {
214
- return JSON.parse(line);
215
- }
216
- catch {
217
- return { parse_error: true, raw: line };
218
- }
219
- });
220
- }
221
- catch {
222
- return [];
223
- }
224
- }
225
- function tail(value, limit = 4000) {
226
- const text = String(value || '');
227
- return text.length > limit ? text.slice(-limit) : text;
228
- }
229
- //# sourceMappingURL=agent-real-codex-in-zellij-worker-pane-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runRealCodexParallelGate } from './lib/real-codex-parallel-gate.js';
4
- await runRealCodexParallelGate({ workers: 10, gate: 'agent:real-codex-parallel-workers-10' });
5
- //# sourceMappingURL=agent-real-codex-parallel-workers-10-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runRealCodexParallelGate } from './lib/real-codex-parallel-gate.js';
4
- await runRealCodexParallelGate({ workers: 20, gate: 'agent:real-codex-parallel-workers-20' });
5
- //# sourceMappingURL=agent-real-codex-parallel-workers-20-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runRealCodexParallelGate } from './lib/real-codex-parallel-gate.js';
4
- await runRealCodexParallelGate({ workers: 5, gate: 'agent:real-codex-parallel-workers-5' });
5
- //# sourceMappingURL=agent-real-codex-parallel-workers-5-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runRealCodexParallelGate } from './lib/real-codex-parallel-gate.js';
4
- await runRealCodexParallelGate({ workers: 5, gate: 'agent:real-codex-parallel-workers' });
5
- //# sourceMappingURL=agent-real-codex-parallel-workers-check.js.map
@@ -1,33 +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 { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
7
- const mod = await importDist('core/agents/agent-role-config.js');
8
- const root = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-role-repair-'));
9
- fs.mkdirSync(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
10
- const plan = await mod.repairAgentRoleConfigs({ root, apply: false, codexHome: path.join(root, 'codex-home') });
11
- const repair = await mod.repairAgentRoleConfigs({ root, apply: true, codexHome: path.join(root, 'codex-home'), reportPath: path.join(root, '.sneakoscope', 'reports', 'agent-role-config-repair.json') });
12
- const analysisScout = path.join(root, '.codex', 'agents', 'analysis-scout.toml');
13
- const staleRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-role-stale-'));
14
- fs.mkdirSync(path.join(staleRoot, '.codex', 'agents'), { recursive: true });
15
- fs.writeFileSync(path.join(staleRoot, '.codex', 'agents', 'analysis-scout.toml'), 'model = "gpt-5-codex"\nsandbox_mode = "read-only"\n');
16
- const stalePlan = await mod.repairAgentRoleConfigs({ root: staleRoot, apply: false, codexHome: path.join(staleRoot, 'codex-home') });
17
- const staleRepair = await mod.repairAgentRoleConfigs({ root: staleRoot, apply: true, codexHome: path.join(staleRoot, 'codex-home') });
18
- const repairedText = fs.readFileSync(path.join(staleRoot, '.codex', 'agents', 'analysis-scout.toml'), 'utf8');
19
- const report = {
20
- schema: 'sks.agent-role-config-repair-check.v1',
21
- plan_ok: plan.ok === true && plan.missing.includes('analysis-scout.toml'),
22
- repair_ok: repair.ok === true,
23
- analysis_scout_created: fs.existsSync(analysisScout),
24
- created_matches_model: fs.readFileSync(analysisScout, 'utf8').includes('model = "gpt-5.5"'),
25
- stale_detected: stalePlan.stale.includes('analysis-scout.toml'),
26
- stale_repaired: staleRepair.repaired.includes('.codex/agents/analysis-scout.toml') && repairedText.includes('name = "analysis_scout"') && repairedText.includes('model = "gpt-5.5"'),
27
- warnings_suppressed: repair.warnings_suppressed === true,
28
- artifact_written: fs.existsSync(path.join(root, '.sneakoscope', 'reports', 'agent-role-config-repair.json'))
29
- };
30
- const ok = report.plan_ok && report.repair_ok && report.analysis_scout_created && report.created_matches_model && report.stale_detected && report.stale_repaired && report.warnings_suppressed && report.artifact_written;
31
- assertGate(ok, 'doctor --fix must repair missing SKS-owned agent role configs', report);
32
- emitGate('agent:role-config-repair', report);
33
- //# sourceMappingURL=agent-role-config-repair-check.js.map
@@ -1,86 +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 { spawnSync } from 'node:child_process';
8
- import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
9
- import { writeReport } from './agent-patch-swarm-gate-lib.js';
10
- const project = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-rollback-command-'));
11
- const file = path.join(project, 'a.txt');
12
- fs.writeFileSync(file, 'after\n');
13
- const mission = 'M-rollback-command';
14
- const missionRoot = path.join(project, '.sneakoscope', 'missions', mission);
15
- const agentRoot = path.join(missionRoot, 'agents');
16
- fs.mkdirSync(agentRoot, { recursive: true });
17
- fs.writeFileSync(path.join(missionRoot, 'mission.json'), `${JSON.stringify({
18
- id: mission,
19
- mode: 'agent',
20
- prompt: 'Rollback command fixture',
21
- created_at: new Date().toISOString(),
22
- phase: 'AGENT_PATCH_ROLLBACK_FIXTURE',
23
- questions_allowed: false,
24
- implementation_allowed: true
25
- }, null, 2)}\n`);
26
- fs.writeFileSync(path.join(missionRoot, 'events.jsonl'), `${JSON.stringify({ ts: new Date().toISOString(), type: 'mission.created', mission, mode: 'agent' })}\n`);
27
- fs.writeFileSync(path.join(agentRoot, 'agent-patch-apply-results.json'), `${JSON.stringify({
28
- schema: 'sks.agent-patch-apply-results.v1',
29
- results: [{
30
- entry_id: 'entry-a',
31
- agent_id: 'agent-a',
32
- lease_id: 'lease-a',
33
- ok: true,
34
- changed_files: ['a.txt'],
35
- rollback_digest: 'digest-a',
36
- rollback: [{ path: 'a.txt', existed: true, sha256_after: sha256Text('after\n'), sha256_before: sha256Text('before\n'), content_before: 'before\n' }]
37
- }]
38
- }, null, 2)}\n`);
39
- fs.writeFileSync(path.join(agentRoot, 'agent-patch-queue.json'), `${JSON.stringify({
40
- schema: 'sks.agent-patch-queue.v1',
41
- entries: [{ id: 'entry-a', agent_id: 'agent-a', write_paths: ['a.txt'], status: 'verified', violations: [] }],
42
- events: [],
43
- ownership_ledger: []
44
- }, null, 2)}\n`);
45
- const currentPath = path.join(project, '.sneakoscope', 'current.json');
46
- fs.mkdirSync(path.dirname(currentPath), { recursive: true });
47
- fs.writeFileSync(currentPath, `${JSON.stringify({ mission_id: mission }, null, 2)}\n`);
48
- const statePath = path.join(project, '.sneakoscope', 'state', 'current.json');
49
- fs.mkdirSync(path.dirname(statePath), { recursive: true });
50
- fs.writeFileSync(statePath, `${JSON.stringify({ mission_id: mission, mode: 'AGENT', phase: 'AGENT_PATCH_ROLLBACK_FIXTURE' }, null, 2)}\n`);
51
- const env = { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1' };
52
- const dry = spawnSync(process.execPath, [path.join(root, 'dist', 'bin', 'sks.js'), 'agent', 'rollback-patches', 'latest', '--patch-entry-id', 'entry-a', '--dry-run', '--json'], { cwd: project, encoding: 'utf8', env });
53
- const apply = spawnSync(process.execPath, [path.join(root, 'dist', 'bin', 'sks.js'), 'agent', 'rollback-patches', mission, '--patch-entry-id', 'entry-a', '--apply', '--json'], { cwd: project, encoding: 'utf8', env });
54
- const dryJson = parseProcessJson('dry-run', dry);
55
- const applyJson = parseProcessJson('apply', apply);
56
- const queue = JSON.parse(fs.readFileSync(path.join(agentRoot, 'agent-patch-queue.json'), 'utf8'));
57
- const report = { schema: 'sks.agent-rollback-command-check.v1', ok: dry.status === 0 && apply.status === 0 && applyJson.data?.ok === true, dryJson, applyJson, queue, restored: fs.readFileSync(file, 'utf8') };
58
- writeReport('agent-rollback-command', report);
59
- assertGate(dryJson.data?.dry_run === true, 'rollback command must support dry-run', report);
60
- assertGate(applyJson.data?.apply === true, 'rollback command must support apply', report);
61
- assertGate(applyJson.data?.restored_files?.includes('a.txt'), 'rollback command summary must show restored files', report);
62
- assertGate(queue.entries?.[0]?.status === 'rolled_back', 'rollback apply must update patch queue status', report);
63
- assertGate(report.restored === 'before\n', 'rollback apply must restore file content', report);
64
- emitGate('agent:rollback-command', { restored_files: applyJson.data.restored_files.length });
65
- function sha256Text(text) {
66
- return crypto.createHash('sha256').update(text).digest('hex');
67
- }
68
- function parseProcessJson(label, result) {
69
- try {
70
- return JSON.parse(result.stdout);
71
- }
72
- catch (error) {
73
- const report = {
74
- schema: 'sks.agent-rollback-command-check.v1',
75
- ok: false,
76
- label,
77
- status: result.status,
78
- stdout: result.stdout,
79
- stderr: result.stderr,
80
- parse_error: error instanceof Error ? error.message : String(error)
81
- };
82
- writeReport('agent-rollback-command', report);
83
- assertGate(false, `rollback command ${label} must emit JSON`, report);
84
- }
85
- }
86
- //# sourceMappingURL=agent-rollback-command-check.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runActualAgentBackfillBlackbox } from './agent-route-blackbox-lib.js';
4
- runActualAgentBackfillBlackbox('agent:route-truth-backfill');
5
- //# sourceMappingURL=agent-route-truth-backfill-check.js.map
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate } from './sks-1-18-gate-lib.js';
4
- import { runDynamicPoolFixture } from './agent-dynamic-pool-fixture.js';
5
- const fixture = await runDynamicPoolFixture({ target: 5, total: 8 });
6
- const state = fixture.result.state;
7
- for (const key of ['target_active_slots', 'max_observed_active_slots', 'pending_queue_drained', 'backfill_count', 'expected_backfill_count', 'slot_count', 'generation_count']) {
8
- assertGate(Object.prototype.hasOwnProperty.call(state, key) || key === 'slot_count' || key === 'generation_count', `scheduler state/proof missing ${key}`, state);
9
- }
10
- assertGate(state.pending_count === 0 && state.active_slot_count === 0, 'scheduler proof must finish with empty queue and zero active sessions', state);
11
- assertGate(state.backfill_count >= state.expected_backfill_count, 'scheduler proof must not underfill expected backfills', state);
12
- emitGate('agent:scheduler-proof', { pending_count: state.pending_count, active_slot_count: state.active_slot_count, backfill_count: state.backfill_count });
13
- //# sourceMappingURL=agent-scheduler-proof-check.js.map
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readText } from './sks-1-18-gate-lib.js';
4
- import { runDynamicPoolFixture } from './agent-dynamic-pool-fixture.js';
5
- const proofSource = readText('src/core/agents/agent-proof-evidence.ts');
6
- for (const token of [
7
- 'agent_work_queue_missing',
8
- 'agent_scheduler_events_missing',
9
- 'agent_worker_slots_missing',
10
- 'agent_session_generations_missing',
11
- 'scheduler_active_slots_not_zero_at_finalization',
12
- 'scheduler_backfill_count_below_expected',
13
- 'scheduler_max_observed_active_slots_mismatch',
14
- 'terminal_close_report_count_below_generation_count'
15
- ]) {
16
- assertGate(proofSource.includes(token), `scheduler proof hardening missing ${token}`);
17
- }
18
- const fixture = await runDynamicPoolFixture({ target: 5, total: 8 });
19
- assertGate(fixture.result.state.pending_queue_drained === true, 'positive scheduler fixture must drain', fixture.result.state);
20
- assertGate(fixture.result.state.backfill_count >= fixture.result.state.expected_backfill_count, 'positive scheduler fixture must satisfy backfill invariant', fixture.result.state);
21
- emitGate('agent:scheduler-proof-hardening', { checked_blockers: 8, backfill_count: fixture.result.state.backfill_count });
22
- //# sourceMappingURL=agent-scheduler-proof-hardening-check.js.map
@@ -1,21 +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/agents/agent-session-generation.js');
8
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-session-generation-'));
9
- const refs = { artifact: 'source-intelligence-evidence.json', ok: true };
10
- const goal = { artifact: 'goal-mode-applied.json', ok: true };
11
- const gen1 = mod.createAgentSessionGeneration({ slotId: 'slot-001', generationIndex: 1, missionId: 'M-gen', rootHash: 'root', taskId: 'work-1', personaId: 'verifier', sourceIntelligenceRefs: refs, goalModeRef: goal });
12
- const gen2 = mod.createAgentSessionGeneration({ slotId: 'slot-001', generationIndex: 2, missionId: 'M-gen', rootHash: 'root', taskId: 'work-2', personaId: 'verifier', sourceIntelligenceRefs: refs, goalModeRef: goal });
13
- await mod.writeAgentSessionGeneration(root, gen1);
14
- await mod.closeAgentSessionGeneration(root, gen1.session_id, { status: 'closed' });
15
- await mod.writeAgentSessionGeneration(root, gen2);
16
- await mod.closeAgentSessionGeneration(root, gen2.session_id, { status: 'closed' });
17
- const closed = await mod.assertAgentSessionGenerationsClosed(root);
18
- assertGate(closed.ok === true, 'all generations must close and retain refs', closed);
19
- assertGate(closed.generation_count === 2, 'same slot must retain two immutable generations', closed);
20
- emitGate('agent:session-generation', { generation_count: closed.generation_count });
21
- //# sourceMappingURL=agent-session-generation-check.js.map
@@ -1,64 +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 { pathToFileURL } from 'node:url';
7
- import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
8
- const freshness = ensureDistFresh({ rebuild: true });
9
- if (!freshness.ok)
10
- fail('dist_not_fresh', { freshness });
11
- const proof = await import(pathToFileURL(path.join(root, 'dist', 'core', 'agents', 'agent-slot-pane-binding-proof.js')).href);
12
- const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-slot-pane-binding-'));
13
- const records = [1, 2, 3].map((index) => ({
14
- session_id: `slot-001-gen-${index}`,
15
- slot_id: 'slot-001',
16
- generation_index: index,
17
- pane_kind: index === 1 ? 'slot_status_renderer' : 'worker_codex_sdk',
18
- zellij_pane_id: String(100 + index),
19
- zellij_pane_id_source: index % 2 ? 'zellij_worker_new_pane_stdout' : 'zellij_worker_list_panes',
20
- scaling_primitive: index === 1 ? 'native_cli_process_with_zellij_slot_renderer' : 'native_cli_process_in_zellij_worker_pane',
21
- sdk_thread_id: `sdk-thread-${index}`,
22
- sdk_run_id: `sdk-run-${index}`,
23
- stream_event_count: 4,
24
- structured_output_valid: true,
25
- status: 'closed'
26
- }));
27
- await fs.writeFile(path.join(tmp, 'agent-native-cli-session-swarm.json'), `${JSON.stringify({
28
- schema: 'sks.agent-native-cli-session-swarm.v1',
29
- ok: true,
30
- closed_worker_process_count: records.length,
31
- zellij_pane_worker_sessions: records.length,
32
- max_observed_worker_process_count: 1,
33
- target_active_slots: 1,
34
- records
35
- }, null, 2)}\n`);
36
- await fs.writeFile(path.join(tmp, 'agent-zellij-pane-launch-ledger.jsonl'), records.map((record) => JSON.stringify({
37
- schema: 'sks.agent-zellij-pane-launch.v1',
38
- pane_kind: record.pane_kind,
39
- persistent_slot_lane: false,
40
- scaling_primitive: record.scaling_primitive,
41
- slot_id: record.slot_id,
42
- generation_index: record.generation_index,
43
- pane_id: record.zellij_pane_id,
44
- pane_id_source: record.zellij_pane_id_source,
45
- sdk_thread_id: record.sdk_thread_id,
46
- sdk_run_id: record.sdk_run_id,
47
- stream_event_count: record.stream_event_count,
48
- structured_output_valid: record.structured_output_valid
49
- })).join('\n') + '\n');
50
- const report = await proof.writeAgentSlotPaneBindingProof(tmp, { requireZellij: true, reportPath: path.join(root, '.sneakoscope', 'reports', 'agent-slot-pane-binding-proof.json') });
51
- const badRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-slot-pane-binding-bad-'));
52
- await fs.writeFile(path.join(badRoot, 'agent-native-cli-session-swarm.json'), `${JSON.stringify({
53
- closed_worker_process_count: 1,
54
- zellij_pane_worker_sessions: 1,
55
- records: [{ ...records[0], zellij_pane_id_source: 'synthetic_layout_pending_proof' }]
56
- })}\n`);
57
- await fs.writeFile(path.join(badRoot, 'agent-zellij-pane-launch-ledger.jsonl'), '');
58
- const bad = await proof.evaluateAgentSlotPaneBindingProof(badRoot, { requireZellij: true });
59
- const ok = report.ok && report.sdk_thread_count === records.length && bad.ok === false && bad.blockers.includes('slot_pane_binding_synthetic_or_missing_pane_id_source');
60
- emit({ schema: 'sks.agent-slot-pane-binding-proof-check.v1', ok, report, bad, blockers: ok ? [] : ['agent_slot_pane_binding_proof_check_failed'] });
61
- function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
62
- process.exitCode = 1; }
63
- function fail(blocker, detail) { emit({ schema: 'sks.agent-slot-pane-binding-proof-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
64
- //# sourceMappingURL=agent-slot-pane-binding-proof-check.js.map
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate } from './sks-1-18-gate-lib.js';
4
- import { runDynamicPoolFixture } from './agent-dynamic-pool-fixture.js';
5
- const fixture = await runDynamicPoolFixture({ target: 5, total: 8 });
6
- const allResultsHaveRefs = fixture.result.results.every((result) => result.source_intelligence_refs?.artifact === 'source-intelligence-evidence.json');
7
- assertGate(allResultsHaveRefs, 'all dynamic generations must propagate source intelligence refs', fixture.result.results);
8
- emitGate('agent:source-intelligence-propagation', { result_count: fixture.result.results.length });
9
- //# sourceMappingURL=agent-source-intelligence-propagation-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 { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
6
- import { makeTempPatchProject, writeReport } from './agent-patch-swarm-gate-lib.js';
7
- const strategy = await importDist('core/strategy/strategy-compiler.js');
8
- const rosterMod = await importDist('core/agents/agent-roster.js');
9
- const partitionMod = await importDist('core/agents/agent-work-partition.js');
10
- const tmp = makeTempPatchProject('sks-strategy-lease-');
11
- const files = Array.from({ length: 10 }, (_, index) => `file-${index + 1}.txt`);
12
- const prompt = files.map((file) => `\`${file}\``).join(' ');
13
- const compiled = strategy.compileStrategy({ prompt, route: '$Agent', agentCount: 5 });
14
- const roster = rosterMod.buildAgentRoster({ agents: 5, concurrency: 5, prompt });
15
- const partition = await partitionMod.buildAgentWorkPartition(tmp, roster, prompt, {
16
- route: '$Agent',
17
- targetActiveSlots: 5,
18
- desiredWorkItemCount: 10,
19
- minimumWorkItems: 10,
20
- strategyOwnershipPlan: compiled.file_ownership_plan,
21
- microWins: compiled.gate.micro_wins
22
- });
23
- const writeLeases = partition.leases.filter((lease) => lease.kind === 'write');
24
- const report = { schema: 'sks.agent-strategy-to-lease-wiring-check.v1', ok: partition.ok, tmp, compiled, writeLeases };
25
- writeReport('agent-strategy-to-lease-wiring', report);
26
- assertGate(compiled.file_ownership_plan.no_overlap === true, 'strategy file ownership plan must have no overlaps', report);
27
- assertGate(writeLeases.length >= 10, 'strategy write targets must become write leases', report);
28
- assertGate(writeLeases.every((lease) => lease.strategy_task_id && lease.micro_win_id && lease.owner_persona), 'leases must carry strategy task, micro-win, and persona metadata', report);
29
- assertGate(writeLeases.every((lease) => lease.verification_node_id && lease.rollback_node_id), 'leases must carry verification and rollback node ids', report);
30
- assertGate(fs.existsSync(path.join(tmp, 'file-1.txt')), 'fixture sanity check failed', report);
31
- emitGate('agent:strategy-to-lease-wiring', { write_lease_count: writeLeases.length });
32
- //# sourceMappingURL=agent-strategy-to-lease-wiring-check.js.map
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
4
- import { writeReport } from './agent-patch-swarm-gate-lib.js';
5
- const proofMod = await importDist('core/agents/agent-patch-proof.js');
6
- const cleanProof = proofMod.buildAgentPatchProof({
7
- queue: {
8
- queued_count: 0,
9
- entries: [{
10
- id: 'entry-strict',
11
- status: 'verified',
12
- violations: [],
13
- lease_id: 'lease-strict',
14
- envelope: {
15
- task_slice_id: 'slice-strict',
16
- lease_id: 'lease-strict',
17
- lease_proof: {
18
- lease_id: 'lease-strict',
19
- owner_agent: 'agent-strict',
20
- strategy_task_id: 'task-strict',
21
- micro_win_id: 'win-strict',
22
- verification_node_id: 'verify-strict',
23
- rollback_node_id: 'rollback-strict'
24
- }
25
- }
26
- }],
27
- events: [{ entry_id: 'entry-strict', event_type: 'verified' }],
28
- ownership_ledger: [{ entry_id: 'entry-strict', lease_id: 'lease-strict', write_paths: ['strict.txt'] }]
29
- },
30
- merge: { ok: true, blockers: [] },
31
- applyResults: [{ entry_id: 'entry-strict', ok: true, changed_files: ['strict.txt'], rollback_digest: 'digest-strict', verification: { status: 'verified' } }],
32
- transactionJournal: { ok: true, blockers: [], event_count: 8 },
33
- conflictRebase: { ok: true, blockers: [] }
34
- });
35
- const missingProof = proofMod.buildAgentPatchProof({
36
- queue: {
37
- queued_count: 0,
38
- entries: [{ id: 'entry-missing', status: 'verified', violations: [], envelope: { lease_proof: {} } }]
39
- },
40
- merge: { ok: true, blockers: [] },
41
- applyResults: [{ entry_id: 'entry-missing', ok: true, changed_files: ['missing.txt'], rollback_digest: 'digest', verification: { status: 'verified' } }],
42
- transactionJournal: { ok: true, blockers: [], event_count: 8 },
43
- conflictRebase: { ok: true, blockers: [] }
44
- });
45
- const report = { schema: 'sks.agent-strategy-to-patch-strict-check.v1', ok: cleanProof.ok && missingProof.ok === false, cleanProof, missingProof };
46
- writeReport('agent-strategy-to-patch-strict', report);
47
- assertGate(cleanProof.strategy_to_patch_ok === true, 'strict strategy-to-patch clean fixture must pass', report);
48
- assertGate(cleanProof.verification_node_coverage['entry-strict'] === 'verify-strict', 'verification node coverage must be recorded', report);
49
- assertGate(cleanProof.rollback_node_coverage['entry-strict'] === 'rollback-strict', 'rollback node coverage must be recorded', report);
50
- assertGate(missingProof.blockers.some((row) => row.includes('strategy_reference_missing')), 'missing strategy reference must block proof', report);
51
- assertGate(missingProof.blockers.some((row) => row.includes('verification_node_missing')), 'missing verification node must block proof', report);
52
- assertGate(missingProof.blockers.some((row) => row.includes('rollback_node_missing')), 'missing rollback node must block proof', report);
53
- emitGate('agent:strategy-to-patch-strict', { clean: cleanProof.ok, missing_blockers: missingProof.blockers.length });
54
- //# sourceMappingURL=agent-strategy-to-patch-strict-check.js.map
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
4
- const mod = await importDist('core/agents/agent-task-graph.js');
5
- for (const [target, total] of [[5, 8], [5, 25], [20, 40]]) {
6
- const graph = mod.buildAgentTaskGraph({ routeType: '$Team', prompt: `fixture ${target}/${total}`, targetActiveSlots: target, desiredWorkItems: total, minimumWorkItems: total });
7
- assertGate(graph.schema === 'sks.agent-task-graph.v1', 'task graph schema mismatch', graph);
8
- assertGate(graph.target_active_slots === target, 'target active slots mismatch', graph.route_work_count_summary);
9
- assertGate(graph.total_work_items === total, 'total work items mismatch', graph.route_work_count_summary);
10
- assertGate(graph.total_work_items > graph.target_active_slots || total === target, 'work items must be independent from active slots', graph.route_work_count_summary);
11
- assertGate(graph.work_items.every((item) => item.work_item_id && item.required_persona_category && Array.isArray(item.dependencies) && Array.isArray(item.lease_requirements)), 'work item shape incomplete', graph.work_items[0]);
12
- }
13
- emitGate('agent:task-graph-expansion', { fixtures: ['5/8', '5/25', '20/40'] });
14
- //# sourceMappingURL=agent-task-graph-expansion-check.js.map