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,128 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- // Fast prepublish eligibility check. Self-contained: reads the existing release
4
- // stamp written by dist/scripts/release-check-stamp.js and decides whether the cheap
5
- // fast-path (no full release:check rebuild) is eligible by comparing only the
6
- // lightweight comparators it can recompute without a build.
7
- //
8
- // Output: a single JSON line on stdout (schema sks.prepublish-fast-check.v1).
9
- // Exit 0 when the fast path is eligible; exit 1 otherwise (incl. no stamp).
10
- // Tolerant of missing stamp fields; only compares fields present in the stamp.
11
- import { spawnSync } from 'node:child_process';
12
- import crypto from 'node:crypto';
13
- import fs from 'node:fs';
14
- import path from 'node:path';
15
- import { root } from './sks-1-18-gate-lib.js';
16
- const stampPath = process.env.SKS_RELEASE_STAMP_PATH || path.join(root, '.sneakoscope', 'reports', 'release-check-stamp.json');
17
- function sha256(value) {
18
- return crypto.createHash('sha256').update(value).digest('hex');
19
- }
20
- function safeGitCommit() {
21
- try {
22
- const result = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: root, encoding: 'utf8' });
23
- if (result.status === 0)
24
- return String(result.stdout || '').trim() || null;
25
- }
26
- catch {
27
- // git unavailable; commit comparison is informational only.
28
- }
29
- return null;
30
- }
31
- function readPackageJson() {
32
- const raw = fs.readFileSync(path.join(root, 'package.json'));
33
- return { raw, json: JSON.parse(raw.toString('utf8')) };
34
- }
35
- function packageFilesListHash(pkg) {
36
- const files = Array.isArray(pkg.files) ? [...pkg.files].sort() : [];
37
- return sha256(JSON.stringify(files));
38
- }
39
- function main() {
40
- // No stamp -> not eligible; print and exit 1.
41
- if (!fs.existsSync(stampPath)) {
42
- console.log(JSON.stringify({ ok: false, reason: 'no_release_stamp', hint: 'run npm run release:check' }));
43
- process.exit(1);
44
- }
45
- let stamp;
46
- try {
47
- stamp = JSON.parse(fs.readFileSync(stampPath, 'utf8'));
48
- }
49
- catch (err) {
50
- console.log(JSON.stringify({
51
- schema: 'sks.prepublish-fast-check.v1',
52
- ok: false,
53
- fast_path: false,
54
- version: null,
55
- git_commit: safeGitCommit(),
56
- mismatched: ['stamp_unreadable'],
57
- reasons: [`stamp_unreadable:${err && err.message ? err.message : 'unknown'}`]
58
- }));
59
- process.exit(1);
60
- }
61
- const { raw: pkgRaw, json: pkg } = readPackageJson();
62
- const currentVersion = pkg.version;
63
- const currentPkgSha = sha256(pkgRaw);
64
- const currentFilesHash = packageFilesListHash(pkg);
65
- const gitCommit = safeGitCommit();
66
- const mismatched = [];
67
- const reasons = [];
68
- // Always-compared comparator: package version.
69
- if (Object.prototype.hasOwnProperty.call(stamp, 'package_version')) {
70
- if (stamp.package_version !== currentVersion) {
71
- mismatched.push('package_version');
72
- reasons.push(`package_version: stamp=${stamp.package_version ?? 'missing'} current=${currentVersion}`);
73
- }
74
- }
75
- else {
76
- mismatched.push('package_version');
77
- reasons.push('package_version: absent from stamp');
78
- }
79
- // Compared only if the stamp carries it.
80
- if (Object.prototype.hasOwnProperty.call(stamp, 'package_json_sha256')) {
81
- if (stamp.package_json_sha256 !== currentPkgSha) {
82
- mismatched.push('package_json_sha256');
83
- reasons.push(`package_json_sha256: stamp=${stamp.package_json_sha256 ?? 'missing'} current=${currentPkgSha}`);
84
- }
85
- }
86
- // package.files list hash: informational unless the stamp recorded one.
87
- if (Object.prototype.hasOwnProperty.call(stamp, 'package_files_list_sha256')) {
88
- if (stamp.package_files_list_sha256 !== currentFilesHash) {
89
- mismatched.push('package_files_list_sha256');
90
- reasons.push(`package_files_list_sha256: stamp=${stamp.package_files_list_sha256 ?? 'missing'} current=${currentFilesHash}`);
91
- }
92
- }
93
- if (Object.prototype.hasOwnProperty.call(stamp, 'package_files_sha256')) {
94
- // Full package file hashing is owned by release-check-stamp.js; this check
95
- // confirms the fast stamp carries the comparator and leaves exact matching to
96
- // `release-check-stamp verify`.
97
- if (!stamp.package_files_sha256) {
98
- mismatched.push('package_files_sha256');
99
- reasons.push('package_files_sha256: absent from stamp');
100
- }
101
- }
102
- if (Object.prototype.hasOwnProperty.call(stamp, 'release_gate_sha256') && !stamp.release_gate_sha256) {
103
- mismatched.push('release_gate_sha256');
104
- reasons.push('release_gate_sha256: absent from stamp');
105
- }
106
- // git_commit is provenance, not a freshness comparator. A valid release flow often
107
- // runs release:check, commits the exact checked tree, then publishes from that new
108
- // commit. In that case the tree/package/dist hashes still prove freshness, while
109
- // comparing HEAD to the pre-commit stamp would block a good publish. The stricter
110
- // `release-check-stamp verify` that follows this fast check owns the content
111
- // comparators; keep the current commit visible in this report for audit only.
112
- const stampedGitCommit = Object.prototype.hasOwnProperty.call(stamp, 'git_commit') ? stamp.git_commit || null : null;
113
- const eligible = mismatched.length === 0;
114
- console.log(JSON.stringify({
115
- schema: 'sks.prepublish-fast-check.v1',
116
- ok: eligible,
117
- fast_path: eligible,
118
- version: currentVersion,
119
- git_commit: gitCommit,
120
- stamped_git_commit: stampedGitCommit,
121
- git_commit_changed_since_stamp: Boolean(stampedGitCommit && gitCommit && stampedGitCommit !== gitCommit),
122
- mismatched,
123
- reasons
124
- }));
125
- process.exit(eligible ? 0 : 1);
126
- }
127
- main();
128
- //# sourceMappingURL=prepublish-fast-check.js.map
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, exists, readText } from './sks-1-18-gate-lib.js';
4
- assertGate(exists('docs/priority-closure-p0-p4.md'), 'priority closure doc missing');
5
- assertGate(exists('docs/release-readiness.md'), 'release readiness doc missing');
6
- const readiness = readText('docs/release-readiness.md');
7
- for (const priority of ['P0', 'P1', 'P2', 'P3', 'P4', 'P5']) {
8
- assertGate(readiness.includes(priority), `release readiness missing ${priority}`);
9
- }
10
- assertGate(!/future work/i.test(readiness), 'release readiness must not defer P1-P5 as future work');
11
- emitGate('priority:full-closure', { priorities: ['P0', 'P1', 'P2', 'P3', 'P4', 'P5'] });
12
- //# sourceMappingURL=priority-full-closure-check.js.map
@@ -1,119 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { ensureProductDesignPluginInstalledWithRequest, findProductDesignPluginSummaryFromMarketplaces, productDesignAutoInstallRequested } from '../core/product-design-app-server.js';
4
- import { PRODUCT_DESIGN_PLUGIN, PRODUCT_DESIGN_REQUIRED_SKILLS } from '../core/product-design-plugin.js';
5
- import { assertGate, emitGate, readText, releaseGateIds } from './lib/codex-sdk-gate-lib.js';
6
- function pluginReadResponse({ installed, enabled }) {
7
- return {
8
- plugin: {
9
- marketplaceName: PRODUCT_DESIGN_PLUGIN.marketplace,
10
- marketplacePath: null,
11
- summary: {
12
- id: PRODUCT_DESIGN_PLUGIN.id,
13
- remotePluginId: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
14
- name: PRODUCT_DESIGN_PLUGIN.name,
15
- installed,
16
- enabled,
17
- interface: {
18
- displayName: PRODUCT_DESIGN_PLUGIN.display_name
19
- }
20
- },
21
- skills: PRODUCT_DESIGN_REQUIRED_SKILLS.map((name) => ({ name, enabled: true }))
22
- }
23
- };
24
- }
25
- let installed = false;
26
- const installCalls = [];
27
- const installResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
28
- installCalls.push({ method, params });
29
- if (method === 'plugin/read')
30
- return pluginReadResponse({ installed, enabled: installed });
31
- if (method === 'plugin/install') {
32
- assertGate(params.pluginName === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'plugin/install must use Product Design remote plugin id', params);
33
- installed = true;
34
- return { authPolicy: 'ON_USE', appsNeedingAuth: [] };
35
- }
36
- if (method === 'plugin/installed')
37
- return { marketplaces: [], marketplaceLoadErrors: [] };
38
- throw new Error(`unexpected method: ${method}`);
39
- }, { autoInstallProductDesign: true, env: {} });
40
- assertGate(installResult.ok, 'Product Design ensure must pass after fake plugin/install', installResult);
41
- assertGate(installResult.install_attempted === true, 'Product Design ensure must attempt install when read evidence is not ready', installResult);
42
- assertGate(installCalls.some((call) => call.method === 'plugin/install'), 'Product Design ensure did not call plugin/install', installCalls);
43
- assertGate(installResult.after_evidence.ok, 'Product Design after_evidence must be ready after install', installResult);
44
- installed = false;
45
- const dryCalls = [];
46
- const dryResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
47
- dryCalls.push({ method, params });
48
- if (method === 'plugin/read')
49
- return pluginReadResponse({ installed: false, enabled: false });
50
- throw new Error(`unexpected dry method: ${method}`);
51
- }, { autoInstallProductDesign: false, env: {} });
52
- assertGate(!dryResult.ok, 'Product Design dry ensure must not claim ready when read evidence is not ready', dryResult);
53
- assertGate(dryResult.install_attempted === false, 'Product Design dry ensure must not attempt install', dryResult);
54
- assertGate(!dryCalls.some((call) => call.method === 'plugin/install'), 'Product Design dry ensure must not call plugin/install', dryCalls);
55
- const marketplaceList = {
56
- marketplaces: [{
57
- name: PRODUCT_DESIGN_PLUGIN.marketplace,
58
- plugins: [{
59
- id: PRODUCT_DESIGN_PLUGIN.id,
60
- remotePluginId: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
61
- name: PRODUCT_DESIGN_PLUGIN.name,
62
- installed: true,
63
- enabled: true,
64
- interface: {
65
- displayName: PRODUCT_DESIGN_PLUGIN.display_name
66
- }
67
- }]
68
- }],
69
- marketplaceLoadErrors: []
70
- };
71
- const discovered = findProductDesignPluginSummaryFromMarketplaces(marketplaceList);
72
- assertGate(discovered?.remotePluginId === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'Product Design vertical plugin/list discovery must return remote id', discovered);
73
- let readCount = 0;
74
- const listCalls = [];
75
- const listFallbackResult = await ensureProductDesignPluginInstalledWithRequest(async (method, params) => {
76
- listCalls.push({ method, params });
77
- if (method === 'plugin/read') {
78
- readCount += 1;
79
- if (readCount === 1)
80
- throw new Error('simulated stale read id');
81
- return pluginReadResponse({ installed: true, enabled: true });
82
- }
83
- if (method === 'plugin/list')
84
- return marketplaceList;
85
- throw new Error(`unexpected list fallback method: ${method}`);
86
- }, { autoInstallProductDesign: true, env: {} });
87
- assertGate(listFallbackResult.ok, 'Product Design ensure must recover through vertical plugin/list discovery', listFallbackResult);
88
- assertGate(listFallbackResult.install_attempted === false, 'Product Design ensure must not install when list-discovered read is already ready', listFallbackResult);
89
- assertGate(listCalls.some((call) => call.method === 'plugin/list'), 'Product Design ensure must query vertical plugin/list when direct read fails', listCalls);
90
- assertGate(productDesignAutoInstallRequested({ env: { SKS_PRODUCT_DESIGN_AUTO_INSTALL: '1' } }), 'Product Design auto-install env gate must be honored');
91
- const codexAppSource = readText('src/core/codex-app.ts');
92
- const commandSource = readText('src/commands/codex-app.ts');
93
- const appServerSource = readText('src/core/product-design-app-server.ts');
94
- const pkg = JSON.parse(readText('package.json'));
95
- const releaseGates = releaseGateIds();
96
- for (const token of [
97
- 'ensureProductDesignPluginInstalled',
98
- 'PRODUCT_DESIGN_AUTO_INSTALL_ENV',
99
- 'autoInstallProductDesign'
100
- ]) {
101
- assertGate(codexAppSource.includes(token) || appServerSource.includes(token), `Product Design auto-install source missing token: ${token}`);
102
- }
103
- for (const token of [
104
- 'product-design',
105
- 'ensure-product-design',
106
- '--check-only',
107
- '--install-product-design'
108
- ]) {
109
- assertGate(commandSource.includes(token), `sks codex-app command missing Product Design token: ${token}`);
110
- }
111
- assertGate(Boolean(pkg.scripts?.['codex:product-design-auto-install']), 'package script missing codex:product-design-auto-install');
112
- assertGate(releaseGates.has('codex:product-design-auto-install'), 'release gate DAG must include Product Design auto-install gate');
113
- emitGate('codex:product-design-auto-install', {
114
- install_calls: installCalls.map((call) => call.method),
115
- dry_calls: dryCalls.map((call) => call.method),
116
- list_fallback_calls: listCalls.map((call) => call.method),
117
- env_gate: true
118
- });
119
- //# sourceMappingURL=product-design-auto-install-check.js.map
@@ -1,101 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { PRODUCT_DESIGN_PIPELINE_STAGES, PRODUCT_DESIGN_PLUGIN, PRODUCT_DESIGN_REQUIRED_SKILLS, normalizeProductDesignPluginEvidence, productDesignPluginVisibilityFromCodexPluginList } from '../core/product-design-plugin.js';
4
- import { assertGate, emitGate, readText, releaseGateIds } from './lib/codex-sdk-gate-lib.js';
5
- const routesSource = readText('src/core/routes.ts');
6
- const productDesignSource = readText('src/core/product-design-plugin.ts');
7
- const runtimeSource = readText('src/core/pipeline-internals/runtime-core.ts');
8
- const pptSource = readText('src/core/ppt.ts');
9
- const codexAppSource = readText('src/core/codex-app.ts');
10
- const initSource = readText('src/core/init.ts');
11
- const pkg = JSON.parse(readText('package.json'));
12
- const releaseGates = releaseGateIds();
13
- assertGate(PRODUCT_DESIGN_PLUGIN.id === 'product-design@openai-curated-remote', 'Product Design plugin id must use the remote marketplace');
14
- assertGate(PRODUCT_DESIGN_PLUGIN.marketplace === 'openai-curated-remote', 'Product Design marketplace must be openai-curated-remote');
15
- assertGate(PRODUCT_DESIGN_PLUGIN.marketplace_kind === 'vertical', 'Product Design marketplace kind must be vertical');
16
- assertGate(PRODUCT_DESIGN_PLUGIN.remote_plugin_id === 'Plugin_fa77aec24fc08191bc6e57f377126d76', 'Product Design remote plugin id mismatch');
17
- assertGate(PRODUCT_DESIGN_PLUGIN.app_server.read_params.remoteMarketplaceName === 'openai-curated-remote', 'plugin/read remote marketplace missing');
18
- assertGate(PRODUCT_DESIGN_PLUGIN.app_server.install_params.remoteMarketplaceName === 'openai-curated-remote', 'plugin/install remote marketplace missing');
19
- assertGate(PRODUCT_DESIGN_PLUGIN.app_server.read_params.pluginName === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'plugin/read must use Product Design remote plugin id');
20
- assertGate(PRODUCT_DESIGN_PLUGIN.app_server.install_params.pluginName === PRODUCT_DESIGN_PLUGIN.remote_plugin_id, 'plugin/install must use Product Design remote plugin id');
21
- assertGate(PRODUCT_DESIGN_PLUGIN.app_server.list_params.marketplaceKinds.includes('vertical'), 'plugin/list must query vertical marketplaces');
22
- for (const skill of ['audit', 'design-qa', 'get-context', 'ideate', 'image-to-code', 'prototype', 'research', 'share', 'url-to-code', 'user-context']) {
23
- assertGate(PRODUCT_DESIGN_REQUIRED_SKILLS.includes(skill), `Product Design required skill missing: ${skill}`);
24
- }
25
- assertGate(PRODUCT_DESIGN_PIPELINE_STAGES.length >= 5, 'Product Design pipeline stage map too small');
26
- const fakeReadResponse = {
27
- plugin: {
28
- marketplaceName: PRODUCT_DESIGN_PLUGIN.marketplace,
29
- summary: {
30
- id: PRODUCT_DESIGN_PLUGIN.id,
31
- remotePluginId: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
32
- name: PRODUCT_DESIGN_PLUGIN.name,
33
- installed: true,
34
- enabled: true
35
- },
36
- skills: PRODUCT_DESIGN_REQUIRED_SKILLS.map((name) => ({ name, enabled: true }))
37
- }
38
- };
39
- const evidence = normalizeProductDesignPluginEvidence(fakeReadResponse);
40
- assertGate(evidence.ok, 'app-server plugin/read evidence parser must accept ready Product Design response', evidence);
41
- const hiddenFromLocalList = productDesignPluginVisibilityFromCodexPluginList({ installed: [{ id: 'browser@openai-bundled' }] });
42
- assertGate(hiddenFromLocalList.requires_remote_vertical_lookup, 'missing local plugin-list entry must require remote vertical lookup');
43
- for (const token of [
44
- 'productDesignPluginPolicyText',
45
- 'Product Design plugin tools are allowed and preferred',
46
- 'project-local cache/compatibility authority',
47
- 'PRODUCT_DESIGN_PLUGIN_TOOL_ALLOWLIST'
48
- ]) {
49
- assertGate(routesSource.includes(token), `routes.ts missing Product Design routing token: ${token}`);
50
- }
51
- const recommendedSkillsBlock = routesSource.match(/export const RECOMMENDED_SKILLS = \[([\s\S]*?)\];/)?.[1] || '';
52
- for (const legacySkill of ['design-artifact-expert', 'design-system-builder', 'design-ui-editor']) {
53
- assertGate(!recommendedSkillsBlock.includes(legacySkill), `legacy design skill should not stay in RECOMMENDED_SKILLS: ${legacySkill}`);
54
- }
55
- for (const token of [
56
- 'Product Design plugin policy',
57
- 'openai-curated-remote',
58
- 'plugin/read',
59
- 'plugin/install',
60
- 'auto-install/ensure',
61
- 'vertical',
62
- 'compatibility fallback only',
63
- 'PRODUCT_DESIGN_LEGACY_DESIGN_FALLBACK_SKILLS'
64
- ]) {
65
- assertGate(productDesignSource.includes(token), `product-design-plugin.ts missing policy token: ${token}`);
66
- }
67
- for (const token of [
68
- 'Product Design plugin first',
69
- 'design-system-builder',
70
- 'design-ui-editor',
71
- 'design-artifact-expert'
72
- ]) {
73
- assertGate(runtimeSource.includes(token) || initSource.includes(token), `runtime/init missing fallback token: ${token}`);
74
- }
75
- for (const token of [
76
- 'product_design_plugin',
77
- 'primary_design_plugin',
78
- 'legacy_design_skills_fallback_only',
79
- 'remote_plugin_id'
80
- ]) {
81
- assertGate(pptSource.includes(token), `ppt.ts missing Product Design evidence token: ${token}`);
82
- }
83
- for (const token of [
84
- 'codexProductDesignPluginStatus',
85
- 'design_product',
86
- 'ensureProductDesignPluginInstalled',
87
- 'product_design_remote_vertical_lookup_required',
88
- 'remote vertical marketplace plugin'
89
- ]) {
90
- assertGate(codexAppSource.includes(token), `codex-app.ts missing Product Design readiness token: ${token}`);
91
- }
92
- assertGate(Boolean(pkg.scripts?.['codex:product-design-plugin-routing']), 'package script missing codex:product-design-plugin-routing');
93
- assertGate(releaseGates.has('codex:product-design-plugin-routing'), 'release gate DAG must include Product Design routing gate');
94
- emitGate('codex:product-design-plugin-routing', {
95
- plugin_id: PRODUCT_DESIGN_PLUGIN.id,
96
- remote_plugin_id: PRODUCT_DESIGN_PLUGIN.remote_plugin_id,
97
- required_skills: PRODUCT_DESIGN_REQUIRED_SKILLS.length,
98
- stages: PRODUCT_DESIGN_PIPELINE_STAGES.length,
99
- local_list_hidden_requires_remote_lookup: hiddenFromLocalList.requires_remote_vertical_lookup
100
- });
101
- //# sourceMappingURL=product-design-plugin-routing-check.js.map
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
4
- const guardMod = await importDist('core/prompt/prompt-placeholder-guard.js');
5
- const blocked = guardMod.checkPromptPlaceholders({
6
- prompt: 'Use @filename and INSERT_PATH_HERE to patch the bug',
7
- writeCapable: true,
8
- targetPaths: ['src/core/example.ts']
9
- });
10
- const emptyTarget = guardMod.checkPromptPlaceholders({
11
- prompt: 'Patch the bug',
12
- writeCapable: true,
13
- targetPaths: []
14
- });
15
- const pass = guardMod.checkPromptPlaceholders({
16
- prompt: 'Patch src/core/example.ts',
17
- writeCapable: true,
18
- targetPaths: ['src/core/example.ts']
19
- });
20
- const readonlyWarn = guardMod.checkPromptPlaceholders({
21
- prompt: 'Inspect @filename',
22
- writeCapable: false
23
- });
24
- assertGate(blocked.ok === false && blocked.blockers.some((item) => String(item).startsWith('unresolved_prompt_placeholder')), 'write-capable Naruto prompt with @filename must block', blocked);
25
- assertGate(emptyTarget.ok === false && emptyTarget.blockers.includes('write_capable_prompt_target_paths_empty'), 'write-capable Naruto route with empty target paths must block', emptyTarget);
26
- assertGate(pass.ok === true, 'resolved write-capable prompt must pass placeholder guard', pass);
27
- assertGate(readonlyWarn.ok === true && readonlyWarn.warnings.length > 0, 'read-only route may warn on placeholders instead of blocking', readonlyWarn);
28
- emitGate('prompt:placeholder-guard', {
29
- blocked_placeholders: blocked.placeholders,
30
- empty_target_blockers: emptyTarget.blockers,
31
- readonly_warnings: readonlyWarn.warnings
32
- });
33
- //# sourceMappingURL=prompt-placeholder-guard-check.js.map
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs/promises';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import { providerBadgeText } from '../core/provider/provider-badge.js';
6
- import { resolveProviderContext } from '../core/provider/provider-context.js';
7
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-provider-context-'));
8
- const codexHome = path.join(root, '.codex-home');
9
- await fs.mkdir(codexHome, { recursive: true });
10
- await fs.writeFile(path.join(codexHome, 'auth.json'), '{"account_id":"acct_fixture"}\n');
11
- const openai = await resolveProviderContext({ root, codexHome, env: { OPENAI_API_KEY: 'sk-fixture', HOME: root }, route: '$Agent', serviceTier: 'fast' });
12
- const lb = await resolveProviderContext({ root, codexHome, env: { CODEX_LB_API_KEY: 'lb-fixture', SKS_PROVIDER: 'codex-lb', HOME: root }, route: '$Naruto', serviceTier: 'fast' });
13
- const app = await resolveProviderContext({ root, codexHome, env: { HOME: root }, route: '$Agent', serviceTier: 'standard' });
14
- const conflict = await resolveProviderContext({ root, codexHome, env: { OPENAI_API_KEY: 'sk-fixture', CODEX_LB_API_KEY: 'lb-fixture', HOME: root } });
15
- const ok = openai.provider === 'openai'
16
- && lb.provider === 'codex-lb'
17
- && app.provider === 'codex-app'
18
- && conflict.conflict
19
- && providerBadgeText(lb) === 'Provider: codex-lb · Fast';
20
- emit({ schema: 'sks.provider-badge-context-check.v1', ok, openai, lb, app, conflict, blockers: ok ? [] : ['provider_badge_context_check_failed'] });
21
- function emit(report) {
22
- console.log(JSON.stringify(report, null, 2));
23
- if (!report.ok)
24
- process.exitCode = 1;
25
- }
26
- //# sourceMappingURL=provider-badge-context-check.js.map
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs/promises';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import { resolveProviderContext } from '../core/provider/provider-context.js';
6
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-provider-context-'));
7
- const codexHome = path.join(root, '.codex');
8
- await fs.mkdir(codexHome, { recursive: true });
9
- const codexLbConfig = [
10
- 'model_provider = "codex-lb"',
11
- '',
12
- '[model_providers.codex-lb]',
13
- 'name = "OpenAI"',
14
- 'base_url = "https://lb.example.test"',
15
- 'wire_api = "responses"',
16
- 'env_key = "CODEX_LB_API_KEY"',
17
- 'requires_openai_auth = false',
18
- ''
19
- ].join('\n');
20
- await fs.writeFile(path.join(codexHome, 'config.toml'), codexLbConfig);
21
- const configOnlyLb = await resolveProviderContext({
22
- root,
23
- codexHome,
24
- env: { HOME: root, CODEX_LB_API_KEY: 'lb-fixture' },
25
- route: '$Naruto',
26
- serviceTier: 'fast'
27
- });
28
- await fs.writeFile(path.join(codexHome, 'config.toml'), codexLbConfig.replace('model_provider = "codex-lb"', 'model_provider = "openai"'));
29
- const openaiSelected = await resolveProviderContext({
30
- root,
31
- codexHome,
32
- env: { HOME: root, OPENAI_API_KEY: 'sk-fixture', CODEX_LB_API_KEY: 'lb-fixture' },
33
- route: '$Doctor',
34
- serviceTier: 'fast'
35
- });
36
- await fs.writeFile(path.join(codexHome, 'config.toml'), 'model_provider = "codex-lb"\n');
37
- const malformed = await resolveProviderContext({
38
- root,
39
- codexHome,
40
- env: { HOME: root },
41
- route: '$Agent',
42
- serviceTier: 'standard'
43
- });
44
- const checks = {
45
- config_only_codex_lb: configOnlyLb.provider === 'codex-lb' && configOnlyLb.confidence === 'high' && configOnlyLb.source === 'config',
46
- config_env_key_recorded: configOnlyLb.signals.codex_lb_env_key === 'CODEX_LB_API_KEY',
47
- openai_selected_with_lb_available: openaiSelected.provider === 'openai' && openaiSelected.signals.codex_lb_available === true,
48
- malformed_unknown: malformed.provider === 'unknown' && malformed.warnings.includes('codex_lb_provider_config_missing_or_invalid')
49
- };
50
- const ok = Object.values(checks).every(Boolean);
51
- emit({
52
- schema: 'sks.provider-context-config-toml-check.v1',
53
- ok,
54
- checks,
55
- cases: { configOnlyLb, openaiSelected, malformed },
56
- blockers: ok ? [] : Object.entries(checks).filter(([, passed]) => !passed).map(([name]) => name)
57
- });
58
- function emit(report) {
59
- console.log(JSON.stringify(report, null, 2));
60
- if (!report.ok)
61
- process.exitCode = 1;
62
- }
63
- //# sourceMappingURL=provider-context-config-toml-check.js.map
@@ -1,47 +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, readText } from './lib/codex-sdk-gate-lib.js';
7
- import { importDist, root } from './lib/codex-sdk-gate-lib.js';
8
- const plane = readText('src/core/codex-control/codex-control-plane.ts');
9
- const adapter = readText('src/core/codex-control/python-codex-sdk-adapter.ts');
10
- assertGate(plane.includes("'python-codex-sdk'"), 'Codex Control backend union must include python-codex-sdk');
11
- assertGate(adapter.includes('runPythonCodexSdkTask'), 'Python SDK adapter must expose a task runner');
12
- const mod = await importDist('core/codex-control/codex-control-plane.js');
13
- const schema = await importDist('core/codex-control/schemas/agent-worker-result.schema.js');
14
- const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-python-codex-sdk-pipeline-'));
15
- const oldFake = process.env.SKS_PYTHON_CODEX_SDK_FAKE;
16
- process.env.SKS_PYTHON_CODEX_SDK_FAKE = '1';
17
- try {
18
- const result = await mod.runCodexTask({
19
- route: '$Agent',
20
- missionId: 'M-python-sdk-all-pipelines',
21
- workItemId: 'python-sdk-fixture',
22
- slotId: 'slot-python-fixture',
23
- generationIndex: 1,
24
- sessionId: 'python-sdk-fixture-session',
25
- cwd: root,
26
- prompt: 'Hermetic Python Codex SDK backend fixture.',
27
- inputFiles: [],
28
- inputImages: [],
29
- outputSchemaId: schema.CODEX_AGENT_WORKER_RESULT_SCHEMA_ID,
30
- outputSchema: schema.codexAgentWorkerResultSchema,
31
- sandboxPolicy: 'read-only',
32
- requestedScopeContract: { id: 'python-sdk-fixture', read_only: true, allowed_paths: [], write_paths: [] },
33
- backendPreference: ['python-codex-sdk'],
34
- mutationLedgerRoot: tmp
35
- });
36
- assertGate(result.ok === true, 'Python SDK backend fixture must pass', result);
37
- assertGate(result.backend === 'python-codex-sdk', 'Python SDK backend fixture must select python-codex-sdk', result);
38
- assertGate(result.pythonSdkProofPath && result.streamEventCount > 0, 'Python SDK backend fixture must write proof and events', result);
39
- emitGate('python-sdk:all-pipelines', { backend: result.backend, backend_family: result.backend_family, stream_event_count: result.streamEventCount });
40
- }
41
- finally {
42
- if (oldFake === undefined)
43
- delete process.env.SKS_PYTHON_CODEX_SDK_FAKE;
44
- else
45
- process.env.SKS_PYTHON_CODEX_SDK_FAKE = oldFake;
46
- }
47
- //# sourceMappingURL=python-codex-sdk-all-pipelines-check.js.map
@@ -1,75 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './lib/codex-sdk-gate-lib.js';
4
- const mod = await importDist('core/codex-control/python-codex-sdk-adapter.js');
5
- const cap = await mod.detectPythonCodexSdkCapability();
6
- assertGate(['codex-app-server', 'openai-codex', 'openai-codex-sdk'].includes(cap.package_name), 'Python Codex SDK package name mismatch');
7
- assertGate(cap.ok === true || cap.blockers.includes('python_codex_sdk_unavailable') || cap.blockers.includes('python_missing') || cap.blockers.includes('python_version_below_3_10'), 'Python SDK unavailable must be a capability blocker');
8
- const requireReal = process.env.SKS_REQUIRE_PYTHON_CODEX_SDK === '1' || process.argv.includes('--require-real');
9
- if (requireReal && !cap.ok) {
10
- console.log(JSON.stringify({
11
- schema: 'sks.release-gate.v1',
12
- ok: false,
13
- gate: 'python-sdk:real-smoke',
14
- capability_ok: cap.ok,
15
- capability_blockers: cap.blockers,
16
- setup_action: cap.setup_action,
17
- python_bin: cap.python_bin,
18
- python_version: cap.python_version,
19
- blockers: cap.blockers
20
- }, null, 2));
21
- process.exit(1);
22
- }
23
- if (requireReal) {
24
- const plane = await importDist('core/codex-control/codex-control-plane.js');
25
- const smokeSchema = {
26
- type: 'object',
27
- required: ['status', 'summary', 'blockers'],
28
- properties: {
29
- status: { type: 'string', enum: ['done'] },
30
- summary: { type: 'string' },
31
- blockers: { type: 'array', items: { type: 'string' } }
32
- },
33
- additionalProperties: false
34
- };
35
- const result = await plane.runCodexTask({
36
- route: '$Agent',
37
- missionId: 'M-python-codex-sdk-real-smoke',
38
- workItemId: 'python-real-smoke',
39
- slotId: 'slot-python-real',
40
- generationIndex: 1,
41
- sessionId: 'python-real-smoke-session',
42
- cwd: process.cwd(),
43
- prompt: 'Read-only Python Codex SDK smoke. Do not edit files. Return exactly JSON: {"status":"done","summary":"python-codex-sdk real smoke passed","blockers":[]}',
44
- inputFiles: [],
45
- inputImages: [],
46
- outputSchemaId: 'sks.python-codex-sdk-real-smoke-result.v1',
47
- outputSchema: smokeSchema,
48
- sandboxPolicy: 'read-only',
49
- requestedScopeContract: { id: 'python-real-smoke', read_only: true, allowed_paths: [], write_paths: [] },
50
- backendPreference: ['python-codex-sdk'],
51
- mutationLedgerRoot: '.sneakoscope/reports/python-codex-sdk-real-smoke'
52
- });
53
- assertGate(result.ok === true, 'real Python Codex SDK smoke failed', result);
54
- emitGate('python-sdk:real-smoke', {
55
- status: 'proven',
56
- capability_ok: cap.ok,
57
- package_name: cap.package_name,
58
- import_name: cap.import_name,
59
- python_bin: cap.python_bin,
60
- sdk_thread_id: result.sdkThreadId,
61
- stream_event_count: result.streamEventCount,
62
- backend: result.backend,
63
- backend_family: result.backend_family
64
- });
65
- }
66
- else {
67
- emitGate('python-sdk:capability', {
68
- capability_ok: cap.ok,
69
- capability_blockers: cap.blockers,
70
- package_name: cap.package_name,
71
- import_name: cap.import_name,
72
- setup_action: cap.setup_action
73
- });
74
- }
75
- //# sourceMappingURL=python-codex-sdk-capability-check.js.map
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, readText } from './lib/codex-sdk-gate-lib.js';
4
- const adapter = readText('src/core/codex-control/python-codex-sdk-adapter.ts');
5
- const runner = readText('pytools/codex_sdk_runner.py');
6
- assertGate(adapter.includes("workspace_write"), 'TS -> Python sandbox mapping must include workspace_write');
7
- assertGate(adapter.includes("full_access"), 'TS -> Python sandbox mapping must include full_access');
8
- assertGate(runner.includes('Sandbox.workspace_write'), 'Python runner must use SDK Sandbox presets');
9
- emitGate('python-sdk:sandbox-policy', { sandboxes: ['read_only', 'workspace_write', 'full_access'] });
10
- //# sourceMappingURL=python-codex-sdk-sandbox-policy-check.js.map
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { assertGate, emitGate, importDist } from './lib/codex-sdk-gate-lib.js';
4
- const mod = await importDist('core/codex-control/python-codex-sdk-event-translator.js');
5
- const events = mod.translatePythonCodexSdkEvents([
6
- { event: 'thread_started', thread_id: 't' },
7
- { event: 'turn_completed', turn_id: 'u', status: 'completed', final_response: '{}' }
8
- ]);
9
- assertGate(events.length === 2, 'Python SDK event translator must preserve stream events');
10
- assertGate(events[1].event_type === 'turn_completed', 'Python SDK turn completion event missing');
11
- emitGate('python-sdk:stream-bridge', { event_count: events.length });
12
- //# sourceMappingURL=python-codex-sdk-stream-bridge-check.js.map