sneakoscope 4.0.13 → 4.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 (898) hide show
  1. package/README.md +19 -2
  2. package/config/codex-releases/rust-v0.142.0.json +39 -0
  3. package/crates/sks-core/Cargo.lock +1 -1
  4. package/crates/sks-core/Cargo.toml +1 -1
  5. package/crates/sks-core/src/main.rs +1 -1
  6. package/dist/bin/sks.js +1 -1
  7. package/dist/cli/global-mode-router.js +2 -1
  8. package/dist/commands/codex.js +15 -1
  9. package/dist/core/codex-adapter.js +7 -12
  10. package/dist/core/codex-compat/codex-compat-report.js +11 -1
  11. package/dist/core/codex-compat/codex-release-manifest.js +66 -0
  12. package/dist/core/codex-compat/codex-version-policy.js +5 -4
  13. package/dist/core/codex-compat/codex-version.js +5 -2
  14. package/dist/core/codex-control/codex-0142-capability.js +243 -0
  15. package/dist/core/codex-control/codex-app-server-v2-client.js +211 -0
  16. package/dist/core/codex-control/codex-sdk-adapter.js +37 -7
  17. package/dist/core/codex-control/codex-sdk-capability.js +2 -1
  18. package/dist/core/codex-control/codex-sdk-config-policy.js +16 -0
  19. package/dist/core/codex-control/codex-sdk-env-policy.js +29 -5
  20. package/dist/core/codex-control/codex-thread-registry.js +110 -19
  21. package/dist/core/codex-runtime/resolve-codex-runtime.js +102 -0
  22. package/dist/core/commands/mad-sks-command.js +3 -0
  23. package/dist/core/fsx.js +1 -1
  24. package/dist/core/providers/glm/bench/glm-bench-model-lock-proof.js +32 -3
  25. package/dist/core/providers/glm/bench/glm-benchmark-runner.js +29 -5
  26. package/dist/core/providers/glm/bench/glm-benchmark-types.js +1 -1
  27. package/dist/core/providers/glm/naruto/glm-naruto-critical-path.js +51 -0
  28. package/dist/core/providers/glm/naruto/glm-naruto-final-seal.js +9 -2
  29. package/dist/core/providers/glm/naruto/glm-naruto-orchestrator.js +101 -15
  30. package/dist/core/providers/glm/naruto/glm-naruto-parallelism-summary.js +55 -0
  31. package/dist/core/providers/glm/naruto/glm-naruto-requirement-coverage.js +92 -0
  32. package/dist/core/providers/glm/naruto/glm-naruto-requirement-ledger.js +42 -0
  33. package/dist/core/providers/glm/naruto/glm-naruto-stage-scheduler.js +85 -0
  34. package/dist/core/providers/glm/naruto/glm-naruto-task-size-classifier.js +12 -0
  35. package/dist/core/providers/glm/naruto/glm-naruto-trace.js +4 -0
  36. package/dist/core/providers/glm/naruto/glm-naruto-verifier-output.js +5 -0
  37. package/dist/core/providers/glm/naruto/glm-naruto-worker-pool.js +130 -44
  38. package/dist/core/providers/glm/naruto/glm-naruto-worker-runtime.js +6 -2
  39. package/dist/core/release/gate-manifest.js +24 -1
  40. package/dist/core/release/gate-pack-manifest.js +6 -6
  41. package/dist/core/release/release-gate-affected-selector.js +24 -0
  42. package/dist/core/routes/model-mode-router.js +44 -0
  43. package/dist/core/routes.js +1 -1
  44. package/dist/core/version.js +1 -1
  45. package/dist/scripts/agent-ast-aware-work-graph-check.js +25 -0
  46. package/dist/scripts/agent-backfill-replenishment-check.js +13 -0
  47. package/dist/scripts/agent-backfill-route-blackbox.js +5 -0
  48. package/dist/scripts/agent-background-terminals-check.js +16 -0
  49. package/dist/scripts/agent-cleanup-command-ux-check.js +12 -0
  50. package/dist/scripts/agent-cleanup-executor-check.js +53 -0
  51. package/dist/scripts/agent-cleanup-executor-v2-check.js +39 -0
  52. package/dist/scripts/agent-cli-options-to-task-graph-check.js +5 -0
  53. package/dist/scripts/agent-codex-app-cockpit-check.js +91 -0
  54. package/dist/scripts/agent-codex-child-overlap-check.js +21 -0
  55. package/dist/scripts/agent-dynamic-cockpit-check.js +10 -0
  56. package/dist/scripts/agent-dynamic-pool-check.js +13 -0
  57. package/dist/scripts/agent-dynamic-pool-route-blackbox.js +5 -0
  58. package/dist/scripts/agent-fast-mode-default-check.js +79 -0
  59. package/dist/scripts/agent-fast-mode-worker-propagation-check.js +7 -0
  60. package/dist/scripts/agent-follow-up-work-schema-check.js +80 -0
  61. package/dist/scripts/agent-goal-mode-propagation-check.js +9 -0
  62. package/dist/scripts/agent-intelligent-work-graph-check.js +29 -0
  63. package/dist/scripts/agent-janitor-check.js +79 -0
  64. package/dist/scripts/agent-main-no-scout-check.js +11 -0
  65. package/dist/scripts/agent-message-bus-reader-check.js +19 -0
  66. package/dist/scripts/agent-model-authored-patch-envelope-check.js +15 -0
  67. package/dist/scripts/agent-multi-project-isolation-check.js +86 -0
  68. package/dist/scripts/agent-native-cli-session-proof-check.js +7 -0
  69. package/dist/scripts/agent-native-cli-session-swarm-10-check.js +7 -0
  70. package/dist/scripts/agent-native-cli-session-swarm-20-check.js +7 -0
  71. package/dist/scripts/agent-native-cli-session-swarm-check.js +7 -0
  72. package/dist/scripts/agent-no-subagent-scaling-check.js +7 -0
  73. package/dist/scripts/agent-official-subagent-helper-policy-check.js +71 -0
  74. package/dist/scripts/agent-parallel-write-blackbox.js +56 -0
  75. package/dist/scripts/agent-parallel-write-kernel-check.js +103 -0
  76. package/dist/scripts/agent-patch-conflict-rebase-check.js +198 -0
  77. package/dist/scripts/agent-patch-envelope-extraction-check.js +17 -0
  78. package/dist/scripts/agent-patch-proof-check.js +41 -0
  79. package/dist/scripts/agent-patch-proof-runtime-check.js +63 -0
  80. package/dist/scripts/agent-patch-queue-runtime-check.js +36 -0
  81. package/dist/scripts/agent-patch-rollback-check.js +38 -0
  82. package/dist/scripts/agent-patch-rollback-dag-check.js +14 -0
  83. package/dist/scripts/agent-patch-swarm-route-blackbox.js +10 -0
  84. package/dist/scripts/agent-patch-swarm-runtime-check.js +10 -0
  85. package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +76 -0
  86. package/dist/scripts/agent-patch-transaction-journal-check.js +57 -0
  87. package/dist/scripts/agent-patch-verification-dag-check.js +14 -0
  88. package/dist/scripts/agent-proof-contract-reconciled-check.js +5 -0
  89. package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +166 -0
  90. package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +14 -0
  91. package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +227 -0
  92. package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +5 -0
  93. package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +5 -0
  94. package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +5 -0
  95. package/dist/scripts/agent-real-codex-parallel-workers-check.js +5 -0
  96. package/dist/scripts/agent-role-config-repair-check.js +33 -0
  97. package/dist/scripts/agent-rollback-command-check.js +86 -0
  98. package/dist/scripts/agent-route-truth-backfill-check.js +5 -0
  99. package/dist/scripts/agent-scheduler-proof-check.js +13 -0
  100. package/dist/scripts/agent-scheduler-proof-hardening-check.js +22 -0
  101. package/dist/scripts/agent-session-generation-check.js +21 -0
  102. package/dist/scripts/agent-slot-pane-binding-proof-check.js +64 -0
  103. package/dist/scripts/agent-slot-telemetry-wiring-check.js +11 -0
  104. package/dist/scripts/agent-source-intelligence-propagation-check.js +9 -0
  105. package/dist/scripts/agent-strategy-to-lease-wiring-check.js +32 -0
  106. package/dist/scripts/agent-strategy-to-patch-strict-check.js +54 -0
  107. package/dist/scripts/agent-task-graph-expansion-check.js +14 -0
  108. package/dist/scripts/agent-terminal-generations-check.js +23 -0
  109. package/dist/scripts/agent-visual-consistency-check.js +9 -0
  110. package/dist/scripts/agent-wiki-context-proof-check.js +62 -0
  111. package/dist/scripts/agent-worker-backend-router-check.js +63 -0
  112. package/dist/scripts/agent-worker-scout-limited-check.js +17 -0
  113. package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +34 -0
  114. package/dist/scripts/agent-zellij-runtime-check.js +85 -0
  115. package/dist/scripts/all-feature-deep-completion-check.js +31 -0
  116. package/dist/scripts/appshots-capability-check.js +18 -0
  117. package/dist/scripts/appshots-evidence-check.js +48 -0
  118. package/dist/scripts/appshots-operator-policy-check.js +25 -0
  119. package/dist/scripts/appshots-privacy-safety-check.js +48 -0
  120. package/dist/scripts/appshots-source-intelligence-check.js +53 -0
  121. package/dist/scripts/appshots-thread-attachment-discovery-check.js +87 -0
  122. package/dist/scripts/appshots-triwiki-voxel-check.js +46 -0
  123. package/dist/scripts/architecture-guard-check.js +55 -0
  124. package/dist/scripts/brand-neutrality-generated-artifacts-check.js +161 -0
  125. package/dist/scripts/brand-neutrality-rename-map-check.js +4 -0
  126. package/dist/scripts/brand-neutrality-zero-leakage-blackbox.js +4 -0
  127. package/dist/scripts/brand-neutrality-zero-leakage-check.js +4 -0
  128. package/dist/scripts/build-once-runner-blackbox.js +34 -0
  129. package/dist/scripts/build-once-runner-check.js +8 -0
  130. package/dist/scripts/certificate-sla-check.js +9 -0
  131. package/dist/scripts/changelog-check.js +47 -0
  132. package/dist/scripts/changelog-loop-productionization-check.js +3 -0
  133. package/dist/scripts/cli-check-tiers-check.js +10 -0
  134. package/dist/scripts/cli-five-minute-task-check.js +6 -0
  135. package/dist/scripts/codex-0-133-official-compat-report.js +53 -0
  136. package/dist/scripts/codex-0-134-official-compat-report.js +110 -0
  137. package/dist/scripts/codex-0-134-runner-truth-check.js +66 -0
  138. package/dist/scripts/codex-0-135-compat-check.js +57 -0
  139. package/dist/scripts/codex-0-136-compat-check.js +30 -0
  140. package/dist/scripts/codex-0-137-compat-check.js +27 -0
  141. package/dist/scripts/codex-0138-capability-artifact-check.js +15 -0
  142. package/dist/scripts/codex-0138-capability-check.js +11 -0
  143. package/dist/scripts/codex-0138-doctor-check.js +15 -0
  144. package/dist/scripts/codex-0138-feature-probes-check.js +12 -0
  145. package/dist/scripts/codex-0139-capability-check.js +26 -0
  146. package/dist/scripts/codex-0139-code-mode-web-search-check.js +25 -0
  147. package/dist/scripts/codex-0139-code-mode-web-search-real-check.js +10 -0
  148. package/dist/scripts/codex-0139-doctor-env-real-check.js +10 -0
  149. package/dist/scripts/codex-0139-doctor-env-redaction-check.js +18 -0
  150. package/dist/scripts/codex-0139-feature-probes-check.js +30 -0
  151. package/dist/scripts/codex-0139-image-path-real-check.js +10 -0
  152. package/dist/scripts/codex-0139-interrupt-agent-check.js +14 -0
  153. package/dist/scripts/codex-0139-interrupt-agent-real-check.js +8 -0
  154. package/dist/scripts/codex-0139-marketplace-source-check.js +13 -0
  155. package/dist/scripts/codex-0139-plugin-cache-real-check.js +10 -0
  156. package/dist/scripts/codex-0139-plugin-marketplace-real-check.js +10 -0
  157. package/dist/scripts/codex-0139-real-probe-summary-check.js +14 -0
  158. package/dist/scripts/codex-0139-real-probes-check.js +37 -0
  159. package/dist/scripts/codex-0139-rich-tool-schema-check.js +12 -0
  160. package/dist/scripts/codex-0139-rich-tool-schema-real-check.js +10 -0
  161. package/dist/scripts/codex-0139-sandbox-profile-alias-check.js +13 -0
  162. package/dist/scripts/codex-0139-sandbox-profile-alias-real-check.js +10 -0
  163. package/dist/scripts/codex-0139-sandbox-proxy-real-check.js +10 -0
  164. package/dist/scripts/codex-0140-bedrock-managed-auth-check.js +4 -0
  165. package/dist/scripts/codex-0140-capability-check.js +15 -0
  166. package/dist/scripts/codex-0140-deep-probes-check.js +40 -0
  167. package/dist/scripts/codex-0140-feature-probes-check.js +24 -0
  168. package/dist/scripts/codex-0140-goal-attachment-preservation-check.js +8 -0
  169. package/dist/scripts/codex-0140-goal-attachment-roundtrip-check.js +9 -0
  170. package/dist/scripts/codex-0140-import-check.js +4 -0
  171. package/dist/scripts/codex-0140-integration-blackbox.js +13 -0
  172. package/dist/scripts/codex-0140-large-repo-performance-check.js +4 -0
  173. package/dist/scripts/codex-0140-mcp-reliability-check.js +4 -0
  174. package/dist/scripts/codex-0140-non-tty-interrupt-check.js +4 -0
  175. package/dist/scripts/codex-0140-real-probes-check.js +9 -0
  176. package/dist/scripts/codex-0140-session-delete-check.js +4 -0
  177. package/dist/scripts/codex-0140-sqlite-recovery-check.js +4 -0
  178. package/dist/scripts/codex-0140-unified-mentions-check.js +4 -0
  179. package/dist/scripts/codex-0140-usage-check.js +4 -0
  180. package/dist/scripts/codex-0140-usage-real-parser-check.js +17 -0
  181. package/dist/scripts/codex-0141-capability-check.js +17 -0
  182. package/dist/scripts/codex-0142-app-server-v2-check.js +46 -0
  183. package/dist/scripts/codex-0142-binary-identity-check.js +17 -0
  184. package/dist/scripts/codex-0142-capability-check.js +21 -0
  185. package/dist/scripts/codex-0142-manifest-check.js +21 -0
  186. package/dist/scripts/codex-0142-policy-check.js +32 -0
  187. package/dist/scripts/codex-0142-thread-store-check.js +54 -0
  188. package/dist/scripts/codex-account-usage-autodiscovery-check.js +22 -0
  189. package/dist/scripts/codex-account-usage-check.js +9 -0
  190. package/dist/scripts/codex-agent-role-rich-content-check.js +4 -0
  191. package/dist/scripts/codex-agent-role-sync-check.js +4 -0
  192. package/dist/scripts/codex-agent-type-blackbox.js +4 -0
  193. package/dist/scripts/codex-agent-type-probe-check.js +4 -0
  194. package/dist/scripts/codex-agent-type-routing-check.js +4 -0
  195. package/dist/scripts/codex-app-execution-profile-check.js +4 -0
  196. package/dist/scripts/codex-app-fast-ui-preservation-check.js +32 -0
  197. package/dist/scripts/codex-app-handoff-check.js +25 -0
  198. package/dist/scripts/codex-app-handoff-launch-check.js +25 -0
  199. package/dist/scripts/codex-app-harness-blackbox.js +4 -0
  200. package/dist/scripts/codex-app-harness-matrix-check.js +4 -0
  201. package/dist/scripts/codex-app-launcher-check.js +17 -0
  202. package/dist/scripts/codex-app-provider-badge-check.js +37 -0
  203. package/dist/scripts/codex-app-skill-agent-blackbox.js +4 -0
  204. package/dist/scripts/codex-app-type-safety-check.js +4 -0
  205. package/dist/scripts/codex-app-ui-clobber-guard-check.js +22 -0
  206. package/dist/scripts/codex-app-ui-preservation-check.js +96 -0
  207. package/dist/scripts/codex-control-all-pipelines-check.js +37 -0
  208. package/dist/scripts/codex-control-capability-check.js +10 -0
  209. package/dist/scripts/codex-control-empty-result-retry-check.js +43 -0
  210. package/dist/scripts/codex-control-event-stream-ledger-check.js +10 -0
  211. package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +14 -0
  212. package/dist/scripts/codex-control-no-legacy-fallback-check.js +31 -0
  213. package/dist/scripts/codex-control-side-effect-scope-check.js +26 -0
  214. package/dist/scripts/codex-control-stream-idle-watchdog-check.js +18 -0
  215. package/dist/scripts/codex-control-structured-output-check.js +11 -0
  216. package/dist/scripts/codex-control-thread-registry-check.js +11 -0
  217. package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +14 -0
  218. package/dist/scripts/codex-effort-auto-discovery-check.js +17 -0
  219. package/dist/scripts/codex-effort-order-check.js +9 -0
  220. package/dist/scripts/codex-environment-scoped-approvals-check.js +10 -0
  221. package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +33 -0
  222. package/dist/scripts/codex-fast-mode-profile-propagation-check.js +14 -0
  223. package/dist/scripts/codex-history-search-check.js +19 -0
  224. package/dist/scripts/codex-hook-approval-blackbox.js +4 -0
  225. package/dist/scripts/codex-hook-approval-matrix-check.js +4 -0
  226. package/dist/scripts/codex-hook-approval-probe-check.js +4 -0
  227. package/dist/scripts/codex-hook-lifecycle-check.js +4 -0
  228. package/dist/scripts/codex-hook-semantic-check.js +15 -0
  229. package/dist/scripts/codex-hook-strict-subset-check.js +61 -0
  230. package/dist/scripts/codex-init-deep-check.js +4 -0
  231. package/dist/scripts/codex-init-deep-directory-local-blackbox.js +4 -0
  232. package/dist/scripts/codex-init-deep-managed-agents-check.js +4 -0
  233. package/dist/scripts/codex-lb-config-toml-safety-check.js +85 -0
  234. package/dist/scripts/codex-lb-persistence-truth-check.js +96 -0
  235. package/dist/scripts/codex-lb-setup-fixture-check.js +91 -0
  236. package/dist/scripts/codex-lb-setup-truthfulness-check.js +84 -0
  237. package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +24 -0
  238. package/dist/scripts/codex-managed-proxy-env-check.js +17 -0
  239. package/dist/scripts/codex-model-metadata-check.js +10 -0
  240. package/dist/scripts/codex-native-agent-role-content-check.js +27 -0
  241. package/dist/scripts/codex-native-broker-read-only-check.js +44 -0
  242. package/dist/scripts/codex-native-feature-broker-blackbox.js +4 -0
  243. package/dist/scripts/codex-native-feature-broker-check.js +4 -0
  244. package/dist/scripts/codex-native-harness-compat-check.js +4 -0
  245. package/dist/scripts/codex-native-hook-lifecycle-proof-check.js +4 -0
  246. package/dist/scripts/codex-native-interop-policy-check.js +4 -0
  247. package/dist/scripts/codex-native-invocation-defaults-check.js +4 -0
  248. package/dist/scripts/codex-native-invocation-router-check.js +4 -0
  249. package/dist/scripts/codex-native-pattern-analysis-blackbox.js +4 -0
  250. package/dist/scripts/codex-native-pattern-analysis-check.js +4 -0
  251. package/dist/scripts/codex-native-read-repair-split-blackbox.js +55 -0
  252. package/dist/scripts/codex-native-reference-cache-blackbox.js +41 -0
  253. package/dist/scripts/codex-native-reference-cache-check.js +23 -0
  254. package/dist/scripts/codex-native-reference-evidence-check.js +4 -0
  255. package/dist/scripts/codex-native-repair-transaction-check.js +45 -0
  256. package/dist/scripts/codex-native-route-map-check.js +4 -0
  257. package/dist/scripts/codex-native-skill-content-check.js +24 -0
  258. package/dist/scripts/codex-output-schema-fixture-check.js +25 -0
  259. package/dist/scripts/codex-permission-profiles-check.js +36 -0
  260. package/dist/scripts/codex-plugin-app-template-policy-check.js +11 -0
  261. package/dist/scripts/codex-plugin-cache-check.js +15 -0
  262. package/dist/scripts/codex-plugin-diff-check.js +16 -0
  263. package/dist/scripts/codex-plugin-inventory-check.js +15 -0
  264. package/dist/scripts/codex-plugin-json-check.js +10 -0
  265. package/dist/scripts/codex-plugin-list-json-check.js +8 -0
  266. package/dist/scripts/codex-plugin-parallel-detail-fetch-check.js +12 -0
  267. package/dist/scripts/codex-profile-primary-check.js +13 -0
  268. package/dist/scripts/codex-project-config-policy-splitter-check.js +51 -0
  269. package/dist/scripts/codex-resume-cwd-truth-check.js +17 -0
  270. package/dist/scripts/codex-sdk-all-pipelines-check.js +33 -0
  271. package/dist/scripts/codex-sdk-backend-router-check.js +65 -0
  272. package/dist/scripts/codex-sdk-capability-check.js +11 -0
  273. package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +9 -0
  274. package/dist/scripts/codex-sdk-dfix-pipeline-check.js +9 -0
  275. package/dist/scripts/codex-sdk-event-stream-ledger-check.js +9 -0
  276. package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +33 -0
  277. package/dist/scripts/codex-sdk-qa-pipeline-check.js +8 -0
  278. package/dist/scripts/codex-sdk-real-smoke-check.js +39 -0
  279. package/dist/scripts/codex-sdk-release-review-pipeline-check.js +13 -0
  280. package/dist/scripts/codex-sdk-research-pipeline-check.js +47 -0
  281. package/dist/scripts/codex-sdk-sandbox-policy-check.js +21 -0
  282. package/dist/scripts/codex-sdk-structured-output-check.js +10 -0
  283. package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +12 -0
  284. package/dist/scripts/codex-sdk-thread-registry-check.js +11 -0
  285. package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +9 -0
  286. package/dist/scripts/codex-sdk-version-compat-check.js +10 -0
  287. package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +13 -0
  288. package/dist/scripts/codex-skill-rich-content-check.js +4 -0
  289. package/dist/scripts/codex-skill-sync-check.js +4 -0
  290. package/dist/scripts/codex-thread-runtime-choice-check.js +10 -0
  291. package/dist/scripts/codex-web-adapter-check.js +12 -0
  292. package/dist/scripts/computer-use-live-evidence-check.js +55 -0
  293. package/dist/scripts/computer-use-live-optional-check.js +32 -0
  294. package/dist/scripts/computer-use-policy-check.js +69 -0
  295. package/dist/scripts/computer-use-visual-route-fixture-check.js +37 -0
  296. package/dist/scripts/config-managed-merge-callsite-coverage-check.js +200 -0
  297. package/dist/scripts/context7-evidence-dedupe-check.js +54 -0
  298. package/dist/scripts/core-skill-card-schema-check.js +61 -0
  299. package/dist/scripts/core-skill-deployment-snapshot-check.js +54 -0
  300. package/dist/scripts/core-skill-heldout-validation-check.js +49 -0
  301. package/dist/scripts/core-skill-immutable-sync-check.js +18 -0
  302. package/dist/scripts/core-skill-integrity-blackbox.js +32 -0
  303. package/dist/scripts/core-skill-manifest-check.js +15 -0
  304. package/dist/scripts/core-skill-no-drift-check.js +24 -0
  305. package/dist/scripts/core-skill-no-inference-optimizer-check.js +75 -0
  306. package/dist/scripts/core-skill-patch-check.js +79 -0
  307. package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +64 -0
  308. package/dist/scripts/core-skill-rollout-scoring-check.js +72 -0
  309. package/dist/scripts/core-skill-route-runtime-integration-check.js +49 -0
  310. package/dist/scripts/core-skill-trainer-check.js +116 -0
  311. package/dist/scripts/dfix-fast-blackbox-check.js +37 -0
  312. package/dist/scripts/dfix-fast-kernel-check.js +26 -0
  313. package/dist/scripts/dfix-fixture-check.js +6 -0
  314. package/dist/scripts/dfix-parallel-write-blackbox.js +48 -0
  315. package/dist/scripts/dfix-patch-handoff-check.js +13 -0
  316. package/dist/scripts/dfix-patch-swarm-route-blackbox.js +10 -0
  317. package/dist/scripts/dfix-performance-check.js +15 -0
  318. package/dist/scripts/dfix-verification-check.js +9 -0
  319. package/dist/scripts/dfix-verification-recommendation-check.js +15 -0
  320. package/dist/scripts/docs-brand-neutrality-check.js +4 -0
  321. package/dist/scripts/docs-codex-0139-wording-check.js +21 -0
  322. package/dist/scripts/docs-loop-productionization-check.js +3 -0
  323. package/dist/scripts/docs-loop-runtime-check.js +3 -0
  324. package/dist/scripts/docs-truthfulness-check.js +61 -0
  325. package/dist/scripts/doctor-codex-0138-fix-check.js +10 -0
  326. package/dist/scripts/doctor-codex-0139-real-probes-check.js +25 -0
  327. package/dist/scripts/doctor-codex-app-harness-check.js +4 -0
  328. package/dist/scripts/doctor-codex-doctor-parity-check.js +17 -0
  329. package/dist/scripts/doctor-codex-native-readiness-ux-check.js +29 -0
  330. package/dist/scripts/doctor-codex-native-repair-actions-check.js +24 -0
  331. package/dist/scripts/doctor-codex-startup-repair-check.js +103 -0
  332. package/dist/scripts/doctor-context7-mcp-repair-blackbox.js +16 -0
  333. package/dist/scripts/doctor-context7-mcp-repair-check.js +11 -0
  334. package/dist/scripts/doctor-context7-repair-check.js +47 -0
  335. package/dist/scripts/doctor-dirty-plan-check.js +9 -0
  336. package/dist/scripts/doctor-dirty-repair-blackbox.js +22 -0
  337. package/dist/scripts/doctor-dirty-repair-check.js +8 -0
  338. package/dist/scripts/doctor-dirty-semantic-blackbox.js +8 -0
  339. package/dist/scripts/doctor-dirty-semantic-check.js +7 -0
  340. package/dist/scripts/doctor-fix-production-blackbox.js +26 -0
  341. package/dist/scripts/doctor-fix-proves-codex-read-check.js +102 -0
  342. package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +122 -0
  343. package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +44 -0
  344. package/dist/scripts/doctor-native-capability-repair-blackbox.js +39 -0
  345. package/dist/scripts/doctor-native-capability-repair-check.js +10 -0
  346. package/dist/scripts/doctor-native-repair-output-check.js +18 -0
  347. package/dist/scripts/doctor-startup-config-repair-blackbox.js +13 -0
  348. package/dist/scripts/doctor-startup-config-repair-check.js +10 -0
  349. package/dist/scripts/doctor-supabase-mcp-repair-blackbox.js +14 -0
  350. package/dist/scripts/doctor-supabase-mcp-repair-check.js +12 -0
  351. package/dist/scripts/doctor-transaction-engine-blackbox.js +28 -0
  352. package/dist/scripts/doctor-transaction-engine-check.js +31 -0
  353. package/dist/scripts/doctor-zellij-fix-blackbox.js +4 -0
  354. package/dist/scripts/doctor-zellij-fix-output-check.js +4 -0
  355. package/dist/scripts/doctor-zellij-no-homebrew-blackbox.js +4 -0
  356. package/dist/scripts/doctor-zellij-repair-check.js +4 -0
  357. package/dist/scripts/doctor-zellij-upgrade-blackbox.js +4 -0
  358. package/dist/scripts/evidence-fixture-check.js +26 -0
  359. package/dist/scripts/evidence-flagship-coverage-check.js +55 -0
  360. package/dist/scripts/fake-real-proof-policy-v2-check.js +27 -0
  361. package/dist/scripts/fake-vs-real-proof-policy-check.js +14 -0
  362. package/dist/scripts/fast-codex-service-tier-proof-check.js +42 -0
  363. package/dist/scripts/flagship-proof-graph-v2-check.js +48 -0
  364. package/dist/scripts/flagship-proof-graph-v3-check.js +67 -0
  365. package/dist/scripts/flagship-proof-graph-v4-check.js +61 -0
  366. package/dist/scripts/gate-pack-fixture-cache-check.js +9 -0
  367. package/dist/scripts/gate-pack-manifest-check.js +9 -0
  368. package/dist/scripts/gate-pack-runner-blackbox.js +27 -0
  369. package/dist/scripts/gate-pack-runner-check.js +6 -0
  370. package/dist/scripts/gate-pack-v2-blackbox.js +18 -0
  371. package/dist/scripts/git-precommit-fixture-check.js +41 -0
  372. package/dist/scripts/git-worktree-batch-allocation-check.js +10 -0
  373. package/dist/scripts/git-worktree-cache-performance-check.js +25 -0
  374. package/dist/scripts/git-worktree-capability-check.js +27 -0
  375. package/dist/scripts/git-worktree-checkpoint-check.js +20 -0
  376. package/dist/scripts/git-worktree-cleanup-check.js +27 -0
  377. package/dist/scripts/git-worktree-cross-rebase-check.js +41 -0
  378. package/dist/scripts/git-worktree-diff-envelope-check.js +17 -0
  379. package/dist/scripts/git-worktree-diff-export-check.js +43 -0
  380. package/dist/scripts/git-worktree-dirty-lock-check.js +17 -0
  381. package/dist/scripts/git-worktree-dirty-main-detection-check.js +14 -0
  382. package/dist/scripts/git-worktree-integration-primary-check.js +24 -0
  383. package/dist/scripts/git-worktree-integration-primary-runtime-check.js +20 -0
  384. package/dist/scripts/git-worktree-manager-check.js +37 -0
  385. package/dist/scripts/git-worktree-manifest-append-check.js +18 -0
  386. package/dist/scripts/git-worktree-merge-queue-check.js +31 -0
  387. package/dist/scripts/git-worktree-pool-performance-check.js +20 -0
  388. package/dist/scripts/git-worktree-prewarm-runtime-check.js +7 -0
  389. package/dist/scripts/git-worktree-untracked-diff-check.js +18 -0
  390. package/dist/scripts/goal-artifact-compat-check.js +3 -0
  391. package/dist/scripts/goal-legacy-runtime-escape-check.js +3 -0
  392. package/dist/scripts/goal-loop-compat-check.js +3 -0
  393. package/dist/scripts/goal-loop-runtime-default-check.js +3 -0
  394. package/dist/scripts/goal-mode-official-default-check.js +12 -0
  395. package/dist/scripts/gpt-final-arbiter-check.js +63 -0
  396. package/dist/scripts/gpt-final-arbiter-performance-check.js +36 -0
  397. package/dist/scripts/gpt-image-2-request-validator-check.js +35 -0
  398. package/dist/scripts/hooks-0.134-context-parity-check.js +20 -0
  399. package/dist/scripts/hooks-actual-parity-check.js +17 -0
  400. package/dist/scripts/hooks-actual-parity-v2-check.js +21 -0
  401. package/dist/scripts/hooks-latest-schema-check.js +20 -0
  402. package/dist/scripts/hooks-managed-install-fixture-check.js +21 -0
  403. package/dist/scripts/hooks-official-hash-oracle-check.js +35 -0
  404. package/dist/scripts/hooks-official-hash-parity-check.js +17 -0
  405. package/dist/scripts/hooks-subagent-events-check.js +17 -0
  406. package/dist/scripts/hooks-trust-state-check.js +14 -0
  407. package/dist/scripts/image-artifact-path-contract-check.js +14 -0
  408. package/dist/scripts/image-artifact-registry-check.js +14 -0
  409. package/dist/scripts/image-fidelity-fixture-check.js +24 -0
  410. package/dist/scripts/image-followup-edit-path-check.js +14 -0
  411. package/dist/scripts/image-generation-path-handoff-check.js +8 -0
  412. package/dist/scripts/image-global-path-contract-check.js +38 -0
  413. package/dist/scripts/imagegen-capability-check.js +30 -0
  414. package/dist/scripts/imagegen-real-smoke-check.js +155 -0
  415. package/dist/scripts/init-deep-backup-retention-check.js +37 -0
  416. package/dist/scripts/init-deep-memory-scope-safety-check.js +23 -0
  417. package/dist/scripts/install-update-preserves-config-check.js +172 -0
  418. package/dist/scripts/json-schema-recursive-check.js +78 -0
  419. package/dist/scripts/legacy-gate-inventory-check.js +49 -0
  420. package/dist/scripts/legacy-gate-purge-check.js +7 -0
  421. package/dist/scripts/legacy-multiagent-removal-check.js +85 -0
  422. package/dist/scripts/legacy-purge-final-check.js +5 -0
  423. package/dist/scripts/legacy-strong-inventory-check.js +43 -0
  424. package/dist/scripts/legacy-upgrade-matrix-check.js +300 -0
  425. package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +21 -0
  426. package/dist/scripts/local-collab-gpt-final-availability-check.js +58 -0
  427. package/dist/scripts/local-collab-no-local-only-final-check.js +27 -0
  428. package/dist/scripts/local-collab-policy-check.js +17 -0
  429. package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +63 -0
  430. package/dist/scripts/local-llm-all-pipelines-check.js +11 -0
  431. package/dist/scripts/local-llm-cache-performance-check.js +10 -0
  432. package/dist/scripts/local-llm-capability-check.js +14 -0
  433. package/dist/scripts/local-llm-smoke-check.js +32 -0
  434. package/dist/scripts/local-llm-structured-output-check.js +11 -0
  435. package/dist/scripts/local-llm-throughput-check.js +10 -0
  436. package/dist/scripts/local-llm-tool-call-repair-check.js +10 -0
  437. package/dist/scripts/local-llm-warmup-check.js +11 -0
  438. package/dist/scripts/loop-artifact-paths-check.js +3 -0
  439. package/dist/scripts/loop-blocker-check.js +15 -0
  440. package/dist/scripts/loop-cli-check.js +3 -0
  441. package/dist/scripts/loop-cli-registry-check.js +3 -0
  442. package/dist/scripts/loop-collision-blackbox.js +3 -0
  443. package/dist/scripts/loop-concurrency-budget-check.js +3 -0
  444. package/dist/scripts/loop-concurrency-budget-runtime-check.js +3 -0
  445. package/dist/scripts/loop-concurrency-oversubscription-blackbox.js +3 -0
  446. package/dist/scripts/loop-continuation-enforcer-check.js +4 -0
  447. package/dist/scripts/loop-decomposer-check.js +3 -0
  448. package/dist/scripts/loop-directive-check-lib.js +388 -0
  449. package/dist/scripts/loop-execution-profile-routing-check.js +4 -0
  450. package/dist/scripts/loop-final-arbiter-contract-check.js +3 -0
  451. package/dist/scripts/loop-fixture-policy-check.js +3 -0
  452. package/dist/scripts/loop-fixture-production-misuse-blackbox.js +3 -0
  453. package/dist/scripts/loop-fixture-safety-check.js +3 -0
  454. package/dist/scripts/loop-gate-fixture-guard-check.js +3 -0
  455. package/dist/scripts/loop-gate-ladder-check.js +3 -0
  456. package/dist/scripts/loop-gate-runner-check.js +3 -0
  457. package/dist/scripts/loop-gate-selector-check.js +3 -0
  458. package/dist/scripts/loop-gpt-final-contract-crossref-check.js +3 -0
  459. package/dist/scripts/loop-gpt-final-fixture-guard-check.js +3 -0
  460. package/dist/scripts/loop-gpt-final-gate-contract-check.js +3 -0
  461. package/dist/scripts/loop-hardening-check-lib.js +289 -0
  462. package/dist/scripts/loop-integration-finalizer-check.js +3 -0
  463. package/dist/scripts/loop-integration-merge-strategy-check.js +3 -0
  464. package/dist/scripts/loop-interrupt-registry-check.js +3 -0
  465. package/dist/scripts/loop-kill-interrupt-real-blackbox.js +3 -0
  466. package/dist/scripts/loop-lease-check.js +3 -0
  467. package/dist/scripts/loop-merge-strategy-blackbox.js +3 -0
  468. package/dist/scripts/loop-merge-strategy-check.js +3 -0
  469. package/dist/scripts/loop-mesh-production-e2e-blackbox.js +3 -0
  470. package/dist/scripts/loop-mutation-ledger-check.js +3 -0
  471. package/dist/scripts/loop-observability-check.js +3 -0
  472. package/dist/scripts/loop-owner-inference-check.js +3 -0
  473. package/dist/scripts/loop-planner-check.js +3 -0
  474. package/dist/scripts/loop-planner-project-memory-check.js +4 -0
  475. package/dist/scripts/loop-planner-project-memory-deep-check.js +4 -0
  476. package/dist/scripts/loop-proof-check.js +3 -0
  477. package/dist/scripts/loop-proof-summary-cli-check.js +3 -0
  478. package/dist/scripts/loop-risk-classifier-check.js +3 -0
  479. package/dist/scripts/loop-runtime-check.js +3 -0
  480. package/dist/scripts/loop-scheduler-check.js +3 -0
  481. package/dist/scripts/loop-schema-check.js +3 -0
  482. package/dist/scripts/loop-side-effect-blackbox.js +3 -0
  483. package/dist/scripts/loop-side-effect-final-arbiter-check.js +3 -0
  484. package/dist/scripts/loop-side-effect-scanner-check.js +3 -0
  485. package/dist/scripts/loop-state-check.js +3 -0
  486. package/dist/scripts/loop-status-proof-ux-check.js +3 -0
  487. package/dist/scripts/loop-worker-fixture-guard-check.js +3 -0
  488. package/dist/scripts/loop-worker-handle-registration-check.js +3 -0
  489. package/dist/scripts/loop-worker-interrupt-check.js +3 -0
  490. package/dist/scripts/loop-worktree-policy-check.js +3 -0
  491. package/dist/scripts/loop-zellij-ui-check.js +3 -0
  492. package/dist/scripts/mad-db-capability-check.js +15 -0
  493. package/dist/scripts/mad-db-command-check.js +13 -0
  494. package/dist/scripts/mad-db-ledger-check.js +7 -0
  495. package/dist/scripts/mad-db-lifecycle-hook-decision-check.js +17 -0
  496. package/dist/scripts/mad-db-mad-command-check.js +100 -0
  497. package/dist/scripts/mad-db-mcp-result-lifecycle-check.js +30 -0
  498. package/dist/scripts/mad-db-one-cycle-bounded-check.js +27 -0
  499. package/dist/scripts/mad-db-one-cycle-consumption-check.js +16 -0
  500. package/dist/scripts/mad-db-operation-lifecycle-blackbox.js +29 -0
  501. package/dist/scripts/mad-db-operation-lifecycle-ledger-check.js +17 -0
  502. package/dist/scripts/mad-db-priority-resolver-check.js +20 -0
  503. package/dist/scripts/mad-db-safety-conflict-matrix-check.js +22 -0
  504. package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +66 -0
  505. package/dist/scripts/mad-sks-actual-executor-blackbox.js +5 -0
  506. package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +92 -0
  507. package/dist/scripts/mad-sks-audit-proof-check.js +34 -0
  508. package/dist/scripts/mad-sks-db-executor-check.js +5 -0
  509. package/dist/scripts/mad-sks-executor-proof-graph-check.js +5 -0
  510. package/dist/scripts/mad-sks-fast-mode-propagation-check.js +24 -0
  511. package/dist/scripts/mad-sks-file-write-executor-check.js +5 -0
  512. package/dist/scripts/mad-sks-immutable-harness-check.js +36 -0
  513. package/dist/scripts/mad-sks-no-harness-modification-check.js +25 -0
  514. package/dist/scripts/mad-sks-package-executor-check.js +5 -0
  515. package/dist/scripts/mad-sks-permission-model-check.js +22 -0
  516. package/dist/scripts/mad-sks-rollback-apply-check.js +5 -0
  517. package/dist/scripts/mad-sks-service-executor-check.js +5 -0
  518. package/dist/scripts/mad-sks-shell-executor-check.js +5 -0
  519. package/dist/scripts/mad-sks-write-guard-check.js +28 -0
  520. package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +37 -0
  521. package/dist/scripts/mad-sks-zellij-launch-check.js +102 -0
  522. package/dist/scripts/mad-zellij-headless-fallback-blackbox.js +4 -0
  523. package/dist/scripts/mad-zellij-no-contradictory-output-check.js +4 -0
  524. package/dist/scripts/mad-zellij-self-heal-blackbox.js +4 -0
  525. package/dist/scripts/mad-zellij-self-heal-check.js +4 -0
  526. package/dist/scripts/managed-config-merge-check.js +24 -0
  527. package/dist/scripts/mcp-0-134-modernization-check.js +55 -0
  528. package/dist/scripts/mcp-plugin-inventory-check.js +12 -0
  529. package/dist/scripts/mcp-readonly-concurrency-check.js +17 -0
  530. package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +20 -0
  531. package/dist/scripts/mcp-tool-naming-parity-check.js +16 -0
  532. package/dist/scripts/memory-summary-rebuild-check.js +22 -0
  533. package/dist/scripts/model-call-concurrency-check.js +15 -0
  534. package/dist/scripts/mutation-callsite-coverage-check.js +180 -0
  535. package/dist/scripts/naruto-active-pool-check.js +39 -0
  536. package/dist/scripts/naruto-actual-worker-control-plane-check.js +56 -0
  537. package/dist/scripts/naruto-allocation-policy-check.js +33 -0
  538. package/dist/scripts/naruto-allocation-runtime-wiring-check.js +92 -0
  539. package/dist/scripts/naruto-concurrency-governor-check.js +53 -0
  540. package/dist/scripts/naruto-extreme-parallelism-check.js +22 -0
  541. package/dist/scripts/naruto-extreme-parallelism-real-check.js +43 -0
  542. package/dist/scripts/naruto-gpt-final-pack-check.js +34 -0
  543. package/dist/scripts/naruto-loop-maker-checker-check.js +3 -0
  544. package/dist/scripts/naruto-loop-mesh-blackbox.js +3 -0
  545. package/dist/scripts/naruto-loop-mesh-check.js +3 -0
  546. package/dist/scripts/naruto-loop-worker-router-check.js +3 -0
  547. package/dist/scripts/naruto-orchestrator-runtime-source-check.js +70 -0
  548. package/dist/scripts/naruto-parallel-gate-consistency-check.js +8 -0
  549. package/dist/scripts/naruto-parallel-patch-apply-check.js +41 -0
  550. package/dist/scripts/naruto-parallel-runtime-proof-check.js +9 -0
  551. package/dist/scripts/naruto-parallelism-mode-check.js +12 -0
  552. package/dist/scripts/naruto-parallelism-ux-check.js +8 -0
  553. package/dist/scripts/naruto-proof-message-summary-check.js +9 -0
  554. package/dist/scripts/naruto-proof-zellij-stacked-summary-check.js +47 -0
  555. package/dist/scripts/naruto-readonly-routing-check.js +119 -0
  556. package/dist/scripts/naruto-real-active-pool-check.js +39 -0
  557. package/dist/scripts/naruto-real-active-pool-runtime-check.js +55 -0
  558. package/dist/scripts/naruto-real-parallelism-blackbox.js +294 -0
  559. package/dist/scripts/naruto-rebalance-policy-check.js +41 -0
  560. package/dist/scripts/naruto-role-distribution-check.js +23 -0
  561. package/dist/scripts/naruto-shadow-clone-swarm-check.js +164 -0
  562. package/dist/scripts/naruto-ssot-default-check.js +9 -0
  563. package/dist/scripts/naruto-ssot-gate-aliases-check.js +10 -0
  564. package/dist/scripts/naruto-ssot-pipeline-default-check.js +11 -0
  565. package/dist/scripts/naruto-ssot-route-normalization-check.js +9 -0
  566. package/dist/scripts/naruto-ssot-routing-check.js +13 -0
  567. package/dist/scripts/naruto-verification-pool-check.js +36 -0
  568. package/dist/scripts/naruto-visible-vs-active-workers-check.js +10 -0
  569. package/dist/scripts/naruto-work-graph-check.js +24 -0
  570. package/dist/scripts/naruto-worktree-coding-blackbox.js +29 -0
  571. package/dist/scripts/naruto-worktree-coding-check.js +44 -0
  572. package/dist/scripts/naruto-worktree-gpt-final-check.js +45 -0
  573. package/dist/scripts/naruto-worktree-zellij-ui-check.js +28 -0
  574. package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +48 -0
  575. package/dist/scripts/naruto-zellij-massive-ui-check.js +23 -0
  576. package/dist/scripts/native-app-screenshot-repair-check.js +11 -0
  577. package/dist/scripts/native-capability-postcheck-check.js +16 -0
  578. package/dist/scripts/native-capability-repair-check.js +15 -0
  579. package/dist/scripts/native-capability-repair-matrix-check.js +10 -0
  580. package/dist/scripts/native-chrome-web-review-repair-check.js +10 -0
  581. package/dist/scripts/native-computer-use-repair-check.js +10 -0
  582. package/dist/scripts/native-image-generation-repair-check.js +9 -0
  583. package/dist/scripts/native-swarm-heartbeat-does-not-serialize-launch-check.js +8 -0
  584. package/dist/scripts/native-swarm-process-spawn-proof-check.js +7 -0
  585. package/dist/scripts/native-swarm-zellij-does-not-block-workers-check.js +11 -0
  586. package/dist/scripts/no-ts-nocheck-core-check.js +4 -0
  587. package/dist/scripts/no-ts-nocheck-release-scripts-check.js +4 -0
  588. package/dist/scripts/non-recursive-pipeline-check.js +68 -0
  589. package/dist/scripts/npm-publish-performance-check.js +65 -0
  590. package/dist/scripts/official-docs-compat-report.js +304 -0
  591. package/dist/scripts/orphan-gate-detection-check.js +53 -0
  592. package/dist/scripts/orphan-purge-final-check.js +5 -0
  593. package/dist/scripts/orphan-strong-detection-check.js +12 -0
  594. package/dist/scripts/package-published-contract-check.js +46 -0
  595. package/dist/scripts/packlist-performance-check.js +83 -0
  596. package/dist/scripts/parallel-claim-enforcement-check.js +21 -0
  597. package/dist/scripts/parallel-missing-pid-rejection-check.js +55 -0
  598. package/dist/scripts/parallel-runtime-proof-check.js +23 -0
  599. package/dist/scripts/parallel-runtime-proof-events-check.js +13 -0
  600. package/dist/scripts/parallel-runtime-real-blackbox.js +44 -0
  601. package/dist/scripts/parallel-strict-pid-proof-check.js +54 -0
  602. package/dist/scripts/parallel-verification-engine-check.js +85 -0
  603. package/dist/scripts/pipeline-codex-0140-integration-check.js +30 -0
  604. package/dist/scripts/pipeline-codex-native-doctor-mad-routing-check.js +4 -0
  605. package/dist/scripts/pipeline-codex-native-doctor-mad-routing-real-blackbox.js +77 -0
  606. package/dist/scripts/pipeline-codex-native-e2e-blackbox.js +13 -0
  607. package/dist/scripts/pipeline-codex-native-image-routing-check.js +4 -0
  608. package/dist/scripts/pipeline-codex-native-image-routing-real-blackbox.js +50 -0
  609. package/dist/scripts/pipeline-codex-native-loop-routing-check.js +4 -0
  610. package/dist/scripts/pipeline-codex-native-loop-routing-real-blackbox.js +74 -0
  611. package/dist/scripts/pipeline-codex-native-qa-routing-check.js +4 -0
  612. package/dist/scripts/pipeline-codex-native-qa-routing-real-blackbox.js +51 -0
  613. package/dist/scripts/pipeline-codex-native-research-routing-check.js +4 -0
  614. package/dist/scripts/pipeline-codex-native-research-routing-real-blackbox.js +45 -0
  615. package/dist/scripts/pipeline-execution-profile-routing-blackbox.js +4 -0
  616. package/dist/scripts/pipeline-five-minute-sla-check.js +7 -0
  617. package/dist/scripts/postinstall-safe-side-effects-check.js +65 -0
  618. package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +40 -0
  619. package/dist/scripts/ppt-full-e2e-blackbox-check.js +109 -0
  620. package/dist/scripts/ppt-image-voxel-relations-check.js +9 -0
  621. package/dist/scripts/ppt-imagegen-blackbox-check.js +46 -0
  622. package/dist/scripts/ppt-imagegen-review-fixture-check.js +6 -0
  623. package/dist/scripts/ppt-issue-extraction-fixture-check.js +7 -0
  624. package/dist/scripts/ppt-no-mock-as-real-check.js +8 -0
  625. package/dist/scripts/ppt-no-text-fallback-check.js +7 -0
  626. package/dist/scripts/ppt-proof-trust-fixture-check.js +10 -0
  627. package/dist/scripts/ppt-real-export-adapter-check.js +13 -0
  628. package/dist/scripts/ppt-real-imagegen-smoke-check.js +42 -0
  629. package/dist/scripts/ppt-real-imagegen-wiring-check.js +16 -0
  630. package/dist/scripts/ppt-reexport-rereview-check.js +19 -0
  631. package/dist/scripts/ppt-slide-export-fixture-check.js +7 -0
  632. package/dist/scripts/prepublish-fast-check.js +128 -0
  633. package/dist/scripts/priority-full-closure-check.js +12 -0
  634. package/dist/scripts/probe-memoization-check.js +11 -0
  635. package/dist/scripts/product-design-auto-install-check.js +119 -0
  636. package/dist/scripts/product-design-plugin-routing-check.js +101 -0
  637. package/dist/scripts/project-skill-dedupe-blackbox.js +36 -0
  638. package/dist/scripts/project-skill-dedupe-check.js +16 -0
  639. package/dist/scripts/prompt-placeholder-guard-check.js +33 -0
  640. package/dist/scripts/proof-root-cause-policy-check.js +70 -0
  641. package/dist/scripts/provider-badge-context-check.js +26 -0
  642. package/dist/scripts/provider-context-config-toml-check.js +63 -0
  643. package/dist/scripts/python-codex-sdk-all-pipelines-check.js +47 -0
  644. package/dist/scripts/python-codex-sdk-capability-check.js +75 -0
  645. package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +10 -0
  646. package/dist/scripts/python-codex-sdk-stream-bridge-check.js +12 -0
  647. package/dist/scripts/python-tools-smoke-check.js +71 -0
  648. package/dist/scripts/qa-actual-route-backfill-check.js +5 -0
  649. package/dist/scripts/qa-backfill-route-blackbox.js +5 -0
  650. package/dist/scripts/qa-loop-app-handoff-capability-check.js +9 -0
  651. package/dist/scripts/qa-loop-app-handoff-check.js +9 -0
  652. package/dist/scripts/qa-loop-app-handoff-cli-check.js +8 -0
  653. package/dist/scripts/qa-loop-app-handoff-confirmation-check.js +24 -0
  654. package/dist/scripts/qa-loop-app-handoff-gate-lifecycle-check.js +44 -0
  655. package/dist/scripts/qa-loop-app-handoff-launch-check.js +7 -0
  656. package/dist/scripts/qa-loop-app-handoff-status-lifecycle-check.js +7 -0
  657. package/dist/scripts/qa-loop-budget-policy-check.js +8 -0
  658. package/dist/scripts/qa-loop-effort-escalation-check.js +9 -0
  659. package/dist/scripts/qa-loop-execution-profile-routing-check.js +4 -0
  660. package/dist/scripts/qa-loop-image-path-exposure-check.js +9 -0
  661. package/dist/scripts/qa-loop-image-path-prompt-injection-check.js +8 -0
  662. package/dist/scripts/qa-patch-swarm-route-blackbox.js +10 -0
  663. package/dist/scripts/readme-architecture-imagegen-official-check.js +448 -0
  664. package/dist/scripts/release-affected-selector-check.js +41 -0
  665. package/dist/scripts/release-aggressive-resource-governor-check.js +25 -0
  666. package/dist/scripts/release-batch-runner-check.js +6 -0
  667. package/dist/scripts/release-cache-bridge-check.js +23 -0
  668. package/dist/scripts/release-cache-glob-hashing-check.js +42 -0
  669. package/dist/scripts/release-cache-input-classifier-check.js +13 -0
  670. package/dist/scripts/release-cache-neutralization-report-check.js +13 -0
  671. package/dist/scripts/release-cache-version-neutral-fixture-check.js +65 -0
  672. package/dist/scripts/release-check-stamp.js +2 -1
  673. package/dist/scripts/release-dag-full-coverage-check.js +428 -0
  674. package/dist/scripts/release-dist-freshness-check.js +8 -0
  675. package/dist/scripts/release-dynamic-performance-check.js +110 -0
  676. package/dist/scripts/release-dynamic-presets-check.js +20 -0
  677. package/dist/scripts/release-full-parallelism-blackbox.js +41 -0
  678. package/dist/scripts/release-gate-batch-runner-check.js +43 -0
  679. package/dist/scripts/release-gate-budget-check.js +36 -0
  680. package/dist/scripts/release-gate-dag-runner-check.js +107 -0
  681. package/dist/scripts/release-gate-script-parity-check.js +117 -0
  682. package/dist/scripts/release-metadata-1-11-check.js +37 -0
  683. package/dist/scripts/release-metadata-1-12-check.js +48 -0
  684. package/dist/scripts/release-metadata-1-13-check.js +53 -0
  685. package/dist/scripts/release-metadata-1-14-check.js +63 -0
  686. package/dist/scripts/release-metadata-1-16-check.js +81 -0
  687. package/dist/scripts/release-metadata-1-17-check.js +51 -0
  688. package/dist/scripts/release-metadata-1-19-check.js +376 -0
  689. package/dist/scripts/release-metadata-check.js +7 -0
  690. package/dist/scripts/release-native-agent-fixture-check.js +41 -0
  691. package/dist/scripts/release-parallel-check.js +375 -0
  692. package/dist/scripts/release-parallel-full-coverage-check.js +13 -0
  693. package/dist/scripts/release-parallel-speed-budget-check.js +91 -0
  694. package/dist/scripts/release-proof-truth-check.js +14 -0
  695. package/dist/scripts/release-provenance-check.js +143 -0
  696. package/dist/scripts/release-readiness-report.js +1231 -0
  697. package/dist/scripts/release-real-check.js +338 -0
  698. package/dist/scripts/release-registry-check.js +353 -0
  699. package/dist/scripts/release-runtime-truth-matrix-check.js +47 -0
  700. package/dist/scripts/release-script-type-safety-check.js +4 -0
  701. package/dist/scripts/release-speed-summary-check.js +20 -0
  702. package/dist/scripts/release-stability-report-check.js +99 -0
  703. package/dist/scripts/release-triwiki-first-runner-blackbox.js +44 -0
  704. package/dist/scripts/release-triwiki-first-runner-check.js +9 -0
  705. package/dist/scripts/release-version-truth-check.js +134 -0
  706. package/dist/scripts/release-wiring-3110-blackbox.js +27 -0
  707. package/dist/scripts/release-wiring-3112-blackbox.js +17 -0
  708. package/dist/scripts/release-wiring-3113-blackbox.js +17 -0
  709. package/dist/scripts/research-actual-route-backfill-check.js +5 -0
  710. package/dist/scripts/research-backfill-route-blackbox.js +5 -0
  711. package/dist/scripts/research-blueprint-densifier-check.js +21 -0
  712. package/dist/scripts/research-claim-builder-check.js +19 -0
  713. package/dist/scripts/research-complete-package-fixture-check.js +29 -0
  714. package/dist/scripts/research-execution-profile-routing-check.js +4 -0
  715. package/dist/scripts/research-final-reviewer-blackbox.js +70 -0
  716. package/dist/scripts/research-handoff-consumability-check.js +23 -0
  717. package/dist/scripts/research-parallel-source-shards-check.js +22 -0
  718. package/dist/scripts/research-quality-gate-check.js +112 -0
  719. package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +14 -0
  720. package/dist/scripts/research-real-synthesis-no-deterministic-renderer-check.js +14 -0
  721. package/dist/scripts/research-repetition-detector-check.js +19 -0
  722. package/dist/scripts/research-short-report-rejection-check.js +46 -0
  723. package/dist/scripts/research-source-ledger-merge-check.js +26 -0
  724. package/dist/scripts/research-stage-cycle-runtime-blackbox.js +40 -0
  725. package/dist/scripts/research-synthesis-prompt-contract-check.js +36 -0
  726. package/dist/scripts/research-synthesis-writer-blackbox.js +24 -0
  727. package/dist/scripts/research-synthesis-writer-check.js +26 -0
  728. package/dist/scripts/research-template-report-rejection-check.js +56 -0
  729. package/dist/scripts/research-ultra-stability-report.js +45 -0
  730. package/dist/scripts/responses-retry-policy-centralized-check.js +19 -0
  731. package/dist/scripts/retention-cleanup-safety-check.js +155 -0
  732. package/dist/scripts/route-blackbox-realism-check.js +21 -0
  733. package/dist/scripts/route-proof-artifact-structure-check.js +145 -0
  734. package/dist/scripts/runtime-dist-parity-check.js +78 -0
  735. package/dist/scripts/runtime-no-mjs-scripts-check.js +45 -0
  736. package/dist/scripts/runtime-no-src-mjs-check.js +32 -0
  737. package/dist/scripts/runtime-no-tmux-check.js +114 -0
  738. package/dist/scripts/runtime-proof-summary-check.js +58 -0
  739. package/dist/scripts/runtime-proof-summary-cli-check.js +51 -0
  740. package/dist/scripts/runtime-proof-summary-messages-check.js +37 -0
  741. package/dist/scripts/runtime-proof-zellij-stacked-summary-check.js +58 -0
  742. package/dist/scripts/runtime-ts-python-boundary-check.js +59 -0
  743. package/dist/scripts/runtime-ts-rust-boundary-check.js +74 -0
  744. package/dist/scripts/runtime-ts-source-of-truth-check.js +55 -0
  745. package/dist/scripts/safety-check.js +23 -0
  746. package/dist/scripts/scheduler-batch-dispatch-check.js +17 -0
  747. package/dist/scripts/scheduler-critical-path-check.js +9 -0
  748. package/dist/scripts/scheduler-extreme-parallel-check.js +7 -0
  749. package/dist/scripts/scheduler-no-false-pending-block-check.js +7 -0
  750. package/dist/scripts/scheduler-parallel-proof-consistency-check.js +65 -0
  751. package/dist/scripts/scheduler-resource-budget-check.js +7 -0
  752. package/dist/scripts/scheduler-resource-claim-blackbox.js +24 -0
  753. package/dist/scripts/scheduler-utilization-integral-check.js +105 -0
  754. package/dist/scripts/scheduler-utilization-proof-check.js +8 -0
  755. package/dist/scripts/secret-line-rollback-check.js +35 -0
  756. package/dist/scripts/secret-preservation-check.js +11 -0
  757. package/dist/scripts/secret-preservation-guard-check.js +37 -0
  758. package/dist/scripts/shared-memory-fixture-check.js +27 -0
  759. package/dist/scripts/side-effect-runtime-report-check.js +19 -0
  760. package/dist/scripts/side-effect-zero-gate-check.js +226 -0
  761. package/dist/scripts/skill-name-canonicalizer-check.js +9 -0
  762. package/dist/scripts/skill-registry-ledger-check.js +14 -0
  763. package/dist/scripts/skill-sync-atomic-check.js +35 -0
  764. package/dist/scripts/sks-1-11-fixture-check.js +130 -0
  765. package/dist/scripts/sks-1-12-real-execution-check-lib.js +27 -0
  766. package/dist/scripts/sks-3-1-4-directive-check-lib.js +212 -0
  767. package/dist/scripts/sks-3-1-5-directive-check-lib.js +318 -0
  768. package/dist/scripts/sks-3-1-6-directive-check-lib.js +522 -0
  769. package/dist/scripts/sks-3-1-7-directive-check-lib.js +58 -0
  770. package/dist/scripts/sks-3-1-8-check-lib.js +30 -0
  771. package/dist/scripts/sks-3110-all-feature-regression-blackbox.js +116 -0
  772. package/dist/scripts/sks-3112-all-feature-regression-blackbox.js +29 -0
  773. package/dist/scripts/sks-3113-all-feature-regression-blackbox.js +17 -0
  774. package/dist/scripts/sks-400-all-feature-regression-blackbox.js +21 -0
  775. package/dist/scripts/sks-400-extreme-parallel-blackbox.js +8 -0
  776. package/dist/scripts/sks-400-five-minute-blackbox.js +9 -0
  777. package/dist/scripts/sks-400-legacy-purge-blackbox.js +8 -0
  778. package/dist/scripts/sks-401-all-feature-regression-blackbox.js +46 -0
  779. package/dist/scripts/sks-401-five-minute-actual-blackbox.js +23 -0
  780. package/dist/scripts/sks-402-all-feature-regression-blackbox.js +9 -0
  781. package/dist/scripts/sks-402-five-minute-real-blackbox.js +22 -0
  782. package/dist/scripts/sksd-daemon-check.js +9 -0
  783. package/dist/scripts/sksd-warm-cache-blackbox.js +12 -0
  784. package/dist/scripts/source-intelligence-all-modes-check.js +32 -0
  785. package/dist/scripts/source-intelligence-policy-check.js +13 -0
  786. package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +22 -0
  787. package/dist/scripts/strategy-file-ownership-plan-check.js +18 -0
  788. package/dist/scripts/strategy-parallel-modification-plan-check.js +19 -0
  789. package/dist/scripts/strategy-verification-rollback-dag-check.js +19 -0
  790. package/dist/scripts/supabase-secret-preservation-blackbox.js +29 -0
  791. package/dist/scripts/team-actual-route-backfill-check.js +5 -0
  792. package/dist/scripts/team-alias-to-naruto-check.js +7 -0
  793. package/dist/scripts/team-backfill-route-blackbox.js +5 -0
  794. package/dist/scripts/team-legacy-create-removed-check.js +12 -0
  795. package/dist/scripts/team-parallel-write-blackbox.js +55 -0
  796. package/dist/scripts/team-patch-swarm-route-blackbox.js +10 -0
  797. package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +12 -0
  798. package/dist/scripts/terminal-tui-output-stability-check.js +35 -0
  799. package/dist/scripts/test-no-orphan-dist-imports-check.js +73 -0
  800. package/dist/scripts/triwiki-affected-graph-blackbox.js +28 -0
  801. package/dist/scripts/triwiki-affected-graph-check.js +10 -0
  802. package/dist/scripts/triwiki-cache-key-check.js +9 -0
  803. package/dist/scripts/triwiki-gate-impact-map-check.js +8 -0
  804. package/dist/scripts/triwiki-module-card-check.js +7 -0
  805. package/dist/scripts/triwiki-proof-bank-blackbox.js +30 -0
  806. package/dist/scripts/triwiki-proof-bank-check.js +7 -0
  807. package/dist/scripts/triwiki-proof-bank-lock-blackbox.js +7 -0
  808. package/dist/scripts/triwiki-proof-card-check.js +23 -0
  809. package/dist/scripts/triwiki-stale-proof-rejection-check.js +25 -0
  810. package/dist/scripts/trust-fixture-check.js +33 -0
  811. package/dist/scripts/type-surface-codex-app-check.js +4 -0
  812. package/dist/scripts/typescript-migration-report.js +78 -0
  813. package/dist/scripts/ultra-router-auto-router-check.js +33 -0
  814. package/dist/scripts/ultra-router-classification-check.js +28 -0
  815. package/dist/scripts/update-gate-removed-check.js +9 -0
  816. package/dist/scripts/update-mad-zellij-notice-check.js +9 -0
  817. package/dist/scripts/update-notice-check.js +10 -0
  818. package/dist/scripts/update-preserves-supabase-keys-blackbox.js +27 -0
  819. package/dist/scripts/update-secret-migration-journal-check.js +8 -0
  820. package/dist/scripts/update-secret-preservation-guard-check.js +10 -0
  821. package/dist/scripts/ux-patch-swarm-route-blackbox.js +10 -0
  822. package/dist/scripts/ux-ppt-structured-extraction-check.js +21 -0
  823. package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +8 -0
  824. package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +15 -0
  825. package/dist/scripts/ux-review-generate-callouts-fixture-check.js +9 -0
  826. package/dist/scripts/ux-review-image-voxel-relations-check.js +31 -0
  827. package/dist/scripts/ux-review-imagegen-blackbox-check.js +67 -0
  828. package/dist/scripts/ux-review-no-fake-callouts-check.js +8 -0
  829. package/dist/scripts/ux-review-no-text-fallback-check.js +25 -0
  830. package/dist/scripts/ux-review-patch-diff-recheck-check.js +20 -0
  831. package/dist/scripts/ux-review-patch-handoff-fixture-check.js +8 -0
  832. package/dist/scripts/ux-review-real-imagegen-smoke-check.js +31 -0
  833. package/dist/scripts/ux-review-real-loop-fixture-check.js +24 -0
  834. package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +8 -0
  835. package/dist/scripts/ux-review-run-wires-imagegen-check.js +11 -0
  836. package/dist/scripts/worker-pane-communication-contract-check.js +54 -0
  837. package/dist/scripts/wrongness-fixture-check.js +65 -0
  838. package/dist/scripts/xai-mcp-capability-check.js +14 -0
  839. package/dist/scripts/zellij-capability-check.js +15 -0
  840. package/dist/scripts/zellij-dashboard-pane-check.js +70 -0
  841. package/dist/scripts/zellij-developer-controls-check.js +20 -0
  842. package/dist/scripts/zellij-doctor-readiness-check.js +63 -0
  843. package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +21 -0
  844. package/dist/scripts/zellij-fake-adapter-check.js +33 -0
  845. package/dist/scripts/zellij-first-slot-down-stack-check.js +21 -0
  846. package/dist/scripts/zellij-first-slot-down-stack-real-check.js +349 -0
  847. package/dist/scripts/zellij-homebrew-policy-check.js +4 -0
  848. package/dist/scripts/zellij-initial-main-only-blackbox.js +28 -0
  849. package/dist/scripts/zellij-lane-renderer-check.js +80 -0
  850. package/dist/scripts/zellij-launch-command-truth-check.js +75 -0
  851. package/dist/scripts/zellij-layout-valid-check.js +90 -0
  852. package/dist/scripts/zellij-pane-creation-lock-metrics-check.js +12 -0
  853. package/dist/scripts/zellij-pane-lock-concurrency-blackbox.js +80 -0
  854. package/dist/scripts/zellij-pane-lock-does-not-block-worker-check.js +14 -0
  855. package/dist/scripts/zellij-pane-lock-open-worker-integration-blackbox.js +137 -0
  856. package/dist/scripts/zellij-pane-proof-check.js +59 -0
  857. package/dist/scripts/zellij-qa-app-handoff-status-check.js +9 -0
  858. package/dist/scripts/zellij-real-session-cleanup-check.js +21 -0
  859. package/dist/scripts/zellij-real-session-heartbeat-check.js +49 -0
  860. package/dist/scripts/zellij-real-session-launch-check.js +57 -0
  861. package/dist/scripts/zellij-right-column-headless-overflow-check.js +22 -0
  862. package/dist/scripts/zellij-right-column-manager-check.js +27 -0
  863. package/dist/scripts/zellij-screen-proof-check.js +45 -0
  864. package/dist/scripts/zellij-self-heal-check.js +4 -0
  865. package/dist/scripts/zellij-self-heal-dry-run-check.js +4 -0
  866. package/dist/scripts/zellij-self-heal-status-contract-check.js +4 -0
  867. package/dist/scripts/zellij-self-heal-typed-blackbox.js +4 -0
  868. package/dist/scripts/zellij-slot-column-anchor-check.js +66 -0
  869. package/dist/scripts/zellij-slot-column-anchor-telemetry-check.js +9 -0
  870. package/dist/scripts/zellij-slot-only-ui-check.js +31 -0
  871. package/dist/scripts/zellij-slot-pane-renderer-check.js +150 -0
  872. package/dist/scripts/zellij-slot-pane-stale-detection-check.js +74 -0
  873. package/dist/scripts/zellij-slot-pane-telemetry-renderer-check.js +11 -0
  874. package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +59 -0
  875. package/dist/scripts/zellij-slot-telemetry-check.js +39 -0
  876. package/dist/scripts/zellij-slot-telemetry-incremental-check.js +48 -0
  877. package/dist/scripts/zellij-slot-telemetry-live-flush-check.js +57 -0
  878. package/dist/scripts/zellij-slot-telemetry-performance-check.js +34 -0
  879. package/dist/scripts/zellij-slot-telemetry-real-blackbox.js +20 -0
  880. package/dist/scripts/zellij-slot-telemetry-renderer-check.js +10 -0
  881. package/dist/scripts/zellij-slot-telemetry-runtime-check.js +23 -0
  882. package/dist/scripts/zellij-spawn-on-demand-layout-check.js +40 -0
  883. package/dist/scripts/zellij-stacked-capability-routing-check.js +11 -0
  884. package/dist/scripts/zellij-stacked-fallback-integration-blackbox.js +81 -0
  885. package/dist/scripts/zellij-stacked-version-matrix-check.js +31 -0
  886. package/dist/scripts/zellij-stacked-version-parser-check.js +21 -0
  887. package/dist/scripts/zellij-ui-design-check.js +105 -0
  888. package/dist/scripts/zellij-update-missing-self-heal-check.js +4 -0
  889. package/dist/scripts/zellij-update-prompt-matrix-check.js +18 -0
  890. package/dist/scripts/zellij-update-prompt-mode-check.js +20 -0
  891. package/dist/scripts/zellij-update-prompt-safety-check.js +10 -0
  892. package/dist/scripts/zellij-worker-pane-manager-check.js +109 -0
  893. package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +47 -0
  894. package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +202 -0
  895. package/dist/scripts/zellij-worker-pane-spawn-order-check.js +35 -0
  896. package/package.json +17 -7
  897. package/schemas/codex/app-server-0.142/codex_app_server_protocol.v2.schemas.json +18447 -0
  898. package/schemas/codex-release-manifest.schema.json +44 -0
@@ -0,0 +1,448 @@
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 { createHash } from 'node:crypto';
7
+ import { execFileSync } from 'node:child_process';
8
+ import { writeTextAtomic } from '../core/fsx.js';
9
+ const root = process.cwd();
10
+ const args = process.argv.slice(2);
11
+ const reportPath = path.join(root, '.sneakoscope', 'reports', 'readme-architecture-imagegen-attempt-1.18.8.json');
12
+ const promptPath = path.join(root, '.sneakoscope', 'reports', 'readme-architecture-imagegen-prompt-1.18.8.txt');
13
+ const assetPath = path.join(root, 'docs', 'assets', 'sneakoscope-architecture-pipeline.jpg');
14
+ const promptOnly = hasFlag('--print-prompt') || hasFlag('--prompt-only');
15
+ const suppliedOutput = String(argValue('--output', process.env.SKS_CODEX_APP_IMAGEGEN_OUTPUT || '')).trim();
16
+ const suppliedModel = String(argValue('--model', process.env.SKS_CODEX_APP_IMAGEGEN_MODEL || 'gpt-image-2')).trim();
17
+ const suppliedSurface = String(argValue('--surface', process.env.SKS_CODEX_APP_IMAGEGEN_SURFACE || 'codex_app_imagegen')).trim();
18
+ const suppliedOutputId = String(argValue('--output-id', process.env.SKS_CODEX_APP_IMAGEGEN_OUTPUT_ID || '')).trim() || null;
19
+ const suppliedCreatedAt = String(argValue('--created-at', process.env.SKS_CODEX_APP_IMAGEGEN_CREATED_AT || '')).trim() || null;
20
+ const autoPickLatest = hasFlag('--auto-pick-latest') || String(process.env.SKS_CODEX_APP_IMAGEGEN_AUTOPICK_LATEST || '').trim() === '1';
21
+ const waitMs = nonNegativeInt(argValue('--wait-ms', process.env.SKS_CODEX_APP_IMAGEGEN_WAIT_MS), 0);
22
+ const pollMs = Math.max(50, nonNegativeInt(argValue('--poll-ms', process.env.SKS_CODEX_APP_IMAGEGEN_POLL_MS), 1000));
23
+ const hostToolExposed = String(process.env.SKS_CODEX_APP_IMAGEGEN_TOOL_EXPOSED || '').trim() === '1';
24
+ const codexHome = String(process.env.CODEX_HOME || path.join(os.homedir(), '.codex'));
25
+ const generatedImagesRoot = path.join(codexHome, 'generated_images');
26
+ const promptExistedBeforeRun = fs.existsSync(promptPath);
27
+ const codexFeatureEvidence = detectCodexImageGenerationFeature();
28
+ const prompt = `Use case: infographic-diagram
29
+ Asset type: README architecture hero image for Sneakoscope Codex
30
+ Primary request: Use ChatGPT Images 2.0 / GPT Image 2.0 with gpt-image-2 to generate a polished, abstract architecture flow summary image for SKS 1.18.8.
31
+ Content intent: Show Codex App, SKS runtime, Team/Goal routing, MAD-SKS scoped permission widening, gpt-image-2 image evidence, validation gates, and release readiness as connected layers.
32
+ Visual constraints: 16:9 or wide landscape, premium technical product style, no logos, no mascot, no tiny unreadable text, no fake UI screenshots, no dark stock-photo look, no placeholder glyph soup.
33
+ Output requirement: real Codex App $imagegen/gpt-image-2 raster output. Save the selected output path, then run:
34
+ SKS_CODEX_APP_IMAGEGEN_OUTPUT=<path> SKS_CODEX_APP_IMAGEGEN_MODEL=gpt-image-2 SKS_CODEX_APP_IMAGEGEN_SURFACE=codex_app_imagegen npm run imagegen:readme-architecture
35
+ Use the selected file directly under $CODEX_HOME/generated_images; moved or copied files are not accepted as provenance evidence.
36
+ `;
37
+ await fs.promises.mkdir(path.dirname(reportPath), { recursive: true });
38
+ const promptWrite = await ensurePromptContract();
39
+ const promptMeta = await textArtifactMeta(promptPath, promptWrite);
40
+ const previousAsset = await imageMeta(assetPath).catch((err) => ({
41
+ ok: false,
42
+ path: assetPath,
43
+ error: err instanceof Error ? err.message : String(err)
44
+ }));
45
+ let generatedImagesAudit = await scanGeneratedImages(generatedImagesRoot);
46
+ let autoPickedOutput = null;
47
+ let waitResult = null;
48
+ if (promptOnly) {
49
+ const report = baseReport({
50
+ ok: true,
51
+ status: 'prompt_ready',
52
+ blocker: null,
53
+ prompt_path: relative(promptPath),
54
+ setup_guidance: 'Paste this prompt into Codex App $imagegen. After a real gpt-image-2 output appears under $CODEX_HOME/generated_images, rerun this script with --output <path> or --auto-pick-latest when exactly one current candidate exists.',
55
+ previous_asset: previousAsset,
56
+ existing_asset_overwritten: false
57
+ });
58
+ await writeReport(report);
59
+ console.log(JSON.stringify({ ...report, prompt }, null, 2));
60
+ process.exit(0);
61
+ }
62
+ if (promptWrite.changed && suppliedOutput) {
63
+ const report = baseReport({
64
+ ok: false,
65
+ status: 'blocked',
66
+ blocker: 'prompt_contract_changed_regenerate_image_required',
67
+ prompt_path: relative(promptPath),
68
+ setup_guidance: 'The README architecture image prompt changed. Regenerate with Codex App $imagegen/gpt-image-2 using the updated prompt artifact, then rerun this script.',
69
+ previous_asset: previousAsset,
70
+ existing_asset_overwritten: false
71
+ });
72
+ await writeReport(report);
73
+ console.log(JSON.stringify(report, null, 2));
74
+ process.exit(1);
75
+ }
76
+ autoPickedOutput = !suppliedOutput && autoPickLatest ? autoPickCurrentGeneratedImage(generatedImagesAudit) : null;
77
+ if (!suppliedOutput && !autoPickedOutput && waitMs > 0) {
78
+ waitResult = await waitForCurrentGeneratedImage(waitMs, pollMs);
79
+ generatedImagesAudit = waitResult.audit;
80
+ autoPickedOutput = waitResult.output;
81
+ }
82
+ const effectiveOutput = suppliedOutput || autoPickedOutput?.absolute_path || '';
83
+ if (!effectiveOutput) {
84
+ const blocker = missingOutputBlocker(generatedImagesAudit);
85
+ const report = baseReport({
86
+ ok: false,
87
+ status: 'blocked',
88
+ blocker,
89
+ prompt_path: relative(promptPath),
90
+ setup_guidance: blocker === 'official_codex_app_imagegen_output_ambiguous'
91
+ ? 'Multiple current generated_images candidates exist. Rerun with SKS_CODEX_APP_IMAGEGEN_OUTPUT pointing at the selected Codex App $imagegen/gpt-image-2 raster file.'
92
+ : 'Invoke Codex App $imagegen/gpt-image-2 with the prompt artifact, then rerun this script with SKS_CODEX_APP_IMAGEGEN_OUTPUT pointing at the generated raster file or SKS_CODEX_APP_IMAGEGEN_AUTOPICK_LATEST=1 when exactly one current candidate exists.',
93
+ previous_asset: previousAsset,
94
+ existing_asset_overwritten: false
95
+ });
96
+ await writeReport(report);
97
+ console.log(JSON.stringify(report, null, 2));
98
+ process.exitCode = 1;
99
+ }
100
+ else {
101
+ const sourcePath = path.resolve(root, effectiveOutput);
102
+ const source = await imageMeta(sourcePath).catch((err) => ({
103
+ ok: false,
104
+ path: sourcePath,
105
+ error: err instanceof Error ? err.message : String(err)
106
+ }));
107
+ const validation = validateSource(source, suppliedModel, suppliedSurface);
108
+ if (!validation.ok) {
109
+ const report = baseReport({
110
+ ok: false,
111
+ status: 'blocked',
112
+ blocker: 'official_codex_app_imagegen_output_invalid',
113
+ prompt_path: relative(promptPath),
114
+ validation,
115
+ supplied_output: source,
116
+ previous_asset: previousAsset,
117
+ existing_asset_overwritten: false
118
+ });
119
+ await writeReport(report);
120
+ console.log(JSON.stringify(report, null, 2));
121
+ process.exitCode = 1;
122
+ }
123
+ else {
124
+ await fs.promises.copyFile(sourcePath, assetPath);
125
+ const updatedAsset = await imageMeta(assetPath);
126
+ const report = baseReport({
127
+ ok: true,
128
+ status: 'replaced',
129
+ blocker: null,
130
+ prompt_path: relative(promptPath),
131
+ validation,
132
+ supplied_output: source,
133
+ previous_asset: previousAsset,
134
+ updated_asset: updatedAsset,
135
+ existing_asset_overwritten: true
136
+ });
137
+ await writeReport(report);
138
+ console.log(JSON.stringify(report, null, 2));
139
+ }
140
+ }
141
+ async function ensurePromptContract() {
142
+ if (!promptExistedBeforeRun) {
143
+ await writeTextAtomic(promptPath, prompt);
144
+ return { changed: true, reason: 'created' };
145
+ }
146
+ const existing = await fs.promises.readFile(promptPath, 'utf8').catch(() => null);
147
+ if (existing !== prompt) {
148
+ await writeTextAtomic(promptPath, prompt);
149
+ return { changed: true, reason: 'refreshed_prompt_changed' };
150
+ }
151
+ return { changed: false, reason: 'unchanged' };
152
+ }
153
+ async function waitForCurrentGeneratedImage(timeoutMs, intervalMs) {
154
+ const startedAt = Date.now();
155
+ let audit = generatedImagesAudit;
156
+ let output = autoPickCurrentGeneratedImage(audit);
157
+ while (!output && Date.now() - startedAt < timeoutMs) {
158
+ await sleep(Math.min(intervalMs, Math.max(0, timeoutMs - (Date.now() - startedAt))));
159
+ audit = await scanGeneratedImages(generatedImagesRoot);
160
+ output = autoPickCurrentGeneratedImage(audit);
161
+ }
162
+ return {
163
+ waited_ms: Date.now() - startedAt,
164
+ timeout_ms: timeoutMs,
165
+ poll_ms: intervalMs,
166
+ timed_out: !output,
167
+ output,
168
+ audit
169
+ };
170
+ }
171
+ function sleep(ms) {
172
+ return new Promise((resolve) => setTimeout(resolve, ms));
173
+ }
174
+ function missingOutputBlocker(audit) {
175
+ if ((autoPickLatest || waitMs > 0) && Number(audit?.current_request_candidate_count || 0) > 1) {
176
+ return 'official_codex_app_imagegen_output_ambiguous';
177
+ }
178
+ return 'official_codex_app_imagegen_output_missing';
179
+ }
180
+ function nonNegativeInt(value, fallback) {
181
+ const parsed = Number.parseInt(String(value ?? ''), 10);
182
+ return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback;
183
+ }
184
+ function baseReport(extra) {
185
+ return {
186
+ schema: 'sks.readme-architecture-imagegen-attempt.v1',
187
+ generated_at: new Date().toISOString(),
188
+ requested_asset: 'docs/assets/sneakoscope-architecture-pipeline.jpg',
189
+ model: 'gpt-image-2',
190
+ skill_surface: 'Official Codex App $imagegen/gpt-image-2 required; API/codex-lb fallback is non-Codex evidence',
191
+ codex_app_image_generation_feature_detected: codexFeatureEvidence.image_generation === true,
192
+ codex_app_image_generation_feature_evidence: codexFeatureEvidence,
193
+ codex_app_builtin_tool_exposed_to_this_turn: hostToolExposed,
194
+ codex_app_builtin_tool_exposure_source: hostToolExposed
195
+ ? 'SKS_CODEX_APP_IMAGEGEN_TOOL_EXPOSED=1'
196
+ : 'not exposed to this script/tool context; only an actual Codex App $imagegen output can satisfy replacement evidence',
197
+ official_docs_checked: [
198
+ 'https://developers.openai.com/codex/app/features#image-generation',
199
+ 'https://deploymentsafety.openai.com/chatgpt-images-2-0',
200
+ 'https://openai.com/index/introducing-chatgpt-images-2-0/',
201
+ 'https://developers.openai.com/api/docs/guides/image-generation',
202
+ 'https://developers.openai.com/api/docs/guides/tools-image-generation?lang=javascript',
203
+ 'https://developers.openai.com/api/docs/models/gpt-image-2'
204
+ ],
205
+ input_contract: {
206
+ env_output: 'SKS_CODEX_APP_IMAGEGEN_OUTPUT',
207
+ env_model: 'SKS_CODEX_APP_IMAGEGEN_MODEL=gpt-image-2',
208
+ env_surface: 'SKS_CODEX_APP_IMAGEGEN_SURFACE=codex_app_imagegen',
209
+ env_output_id: 'SKS_CODEX_APP_IMAGEGEN_OUTPUT_ID optional_metadata_only',
210
+ env_created_at: 'SKS_CODEX_APP_IMAGEGEN_CREATED_AT optional_metadata_only',
211
+ env_auto_pick_latest: 'SKS_CODEX_APP_IMAGEGEN_AUTOPICK_LATEST=1 optional_after_prompt_generated_images_pick',
212
+ env_wait_ms: 'SKS_CODEX_APP_IMAGEGEN_WAIT_MS optional_wait_for_after_prompt_generated_images_candidate',
213
+ env_poll_ms: 'SKS_CODEX_APP_IMAGEGEN_POLL_MS optional_wait_poll_interval',
214
+ cli_prompt_only: '--print-prompt or --prompt-only',
215
+ cli_output: '--output <path>',
216
+ cli_model: '--model gpt-image-2',
217
+ cli_surface: '--surface codex_app_imagegen',
218
+ cli_auto_pick_latest: '--auto-pick-latest',
219
+ cli_wait_ms: '--wait-ms <milliseconds>',
220
+ cli_poll_ms: '--poll-ms <milliseconds>',
221
+ output_id: suppliedOutputId,
222
+ created_at: suppliedCreatedAt,
223
+ prompt_only: promptOnly,
224
+ auto_pick_latest: autoPickLatest,
225
+ auto_pick_result: autoPickedOutput,
226
+ wait_ms: waitMs,
227
+ poll_ms: pollMs,
228
+ wait_result: waitResult,
229
+ moved_outputs_accepted: false,
230
+ api_or_codex_lb_fallback_allowed: false
231
+ },
232
+ prompt_contract: promptMeta,
233
+ codex_generated_images_audit: generatedImagesAudit,
234
+ ...extra
235
+ };
236
+ }
237
+ function autoPickCurrentGeneratedImage(audit) {
238
+ const candidates = Array.isArray(audit.current_request_candidates) ? audit.current_request_candidates : [];
239
+ if (candidates.length !== 1)
240
+ return null;
241
+ return candidates[0];
242
+ }
243
+ function hasFlag(name) {
244
+ return args.includes(name);
245
+ }
246
+ function argValue(name, fallback = '') {
247
+ const exactIndex = args.indexOf(name);
248
+ if (exactIndex >= 0 && exactIndex + 1 < args.length)
249
+ return args[exactIndex + 1];
250
+ const prefix = `${name}=`;
251
+ const found = args.find((arg) => String(arg).startsWith(prefix));
252
+ return found ? String(found).slice(prefix.length) : fallback;
253
+ }
254
+ function detectCodexImageGenerationFeature() {
255
+ try {
256
+ const stdout = execFileSync('codex', ['features', 'list'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });
257
+ const imageLine = stdout.split(/\r?\n/).find((line) => /^image_generation\s+/i.test(line.trim())) || '';
258
+ return {
259
+ checked: true,
260
+ detector: 'codex features list',
261
+ image_generation: /\bstable\b\s+true\b/i.test(imageLine),
262
+ image_generation_line: imageLine || null
263
+ };
264
+ }
265
+ catch (err) {
266
+ return {
267
+ checked: true,
268
+ detector: 'codex features list',
269
+ image_generation: false,
270
+ error: err instanceof Error ? err.message : String(err)
271
+ };
272
+ }
273
+ }
274
+ function validateSource(source, model, surface) {
275
+ const blockers = [];
276
+ const sourceUnderGeneratedImages = source.absolute_path
277
+ ? source.absolute_path.startsWith(`${path.resolve(generatedImagesRoot)}${path.sep}`)
278
+ : false;
279
+ if (source.ok !== true)
280
+ blockers.push('source_image_missing_or_unreadable');
281
+ if (model !== 'gpt-image-2')
282
+ blockers.push('model_must_be_gpt_image_2');
283
+ if (surface !== 'codex_app_imagegen')
284
+ blockers.push('surface_must_be_codex_app_imagegen');
285
+ if (!sourceUnderGeneratedImages)
286
+ blockers.push('codex_app_output_must_reside_under_generated_images');
287
+ const createdAtMs = suppliedCreatedAt ? Date.parse(suppliedCreatedAt) : null;
288
+ if (suppliedCreatedAt && !Number.isFinite(createdAtMs))
289
+ blockers.push('codex_app_created_at_must_be_iso8601');
290
+ if (sourceUnderGeneratedImages && Number(source.mtime_ms || 0) < Number(promptMeta.mtime_ms || 0))
291
+ blockers.push('generated_image_older_than_prompt_contract');
292
+ if (!['jpeg', 'png', 'webp'].includes(String(source.format || '')))
293
+ blockers.push('unsupported_image_format');
294
+ if (Number(source.width || 0) < 1000 || Number(source.height || 0) < 600)
295
+ blockers.push('image_too_small_for_readme_architecture_asset');
296
+ return {
297
+ ok: blockers.length === 0,
298
+ blockers,
299
+ required_surface: 'codex_app_imagegen',
300
+ required_model: 'gpt-image-2',
301
+ generated_images_root: generatedImagesRoot,
302
+ source_under_generated_images: sourceUnderGeneratedImages,
303
+ output_id_present: Boolean(suppliedOutputId),
304
+ created_at_present: Boolean(suppliedCreatedAt),
305
+ created_at_ms: Number.isFinite(createdAtMs) ? createdAtMs : null,
306
+ prompt_mtime: promptMeta.mtime,
307
+ min_dimensions: { width: 1000, height: 600 }
308
+ };
309
+ }
310
+ async function imageMeta(file) {
311
+ const stats = await fs.promises.stat(file);
312
+ const dims = await imageDimensions(file);
313
+ return {
314
+ ok: true,
315
+ path: relative(file),
316
+ absolute_path: path.resolve(file),
317
+ sha256: await sha256File(file),
318
+ bytes: stats.size,
319
+ mtime: stats.mtime.toISOString(),
320
+ mtime_ms: stats.mtimeMs,
321
+ ...dims
322
+ };
323
+ }
324
+ async function textArtifactMeta(file, promptWrite = null) {
325
+ const stats = await fs.promises.stat(file);
326
+ return {
327
+ path: relative(file),
328
+ absolute_path: path.resolve(file),
329
+ sha256: await sha256File(file),
330
+ bytes: stats.size,
331
+ mtime: stats.mtime.toISOString(),
332
+ mtime_ms: stats.mtimeMs,
333
+ existed_before_run: promptExistedBeforeRun,
334
+ write: promptWrite
335
+ };
336
+ }
337
+ async function writeReport(report) {
338
+ await writeTextAtomic(reportPath, `${JSON.stringify(report, null, 2)}\n`);
339
+ }
340
+ async function sha256File(file) {
341
+ return new Promise((resolve, reject) => {
342
+ const hash = createHash('sha256');
343
+ const input = fs.createReadStream(file);
344
+ input.on('error', reject);
345
+ input.on('data', (chunk) => hash.update(chunk));
346
+ input.on('end', () => resolve(hash.digest('hex')));
347
+ });
348
+ }
349
+ async function imageDimensions(file) {
350
+ const handle = await fs.promises.open(file, 'r');
351
+ try {
352
+ const header = Buffer.alloc(32);
353
+ const { bytesRead } = await handle.read(header, 0, header.length, 0);
354
+ if (bytesRead >= 24 && header.slice(0, 8).equals(Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]))) {
355
+ return { width: header.readUInt32BE(16), height: header.readUInt32BE(20), format: 'png' };
356
+ }
357
+ if (bytesRead >= 12 && header.slice(0, 4).toString('ascii') === 'RIFF' && header.slice(8, 12).toString('ascii') === 'WEBP') {
358
+ return await webpDimensions(file);
359
+ }
360
+ if (bytesRead >= 10 && header[0] === 0xff && header[1] === 0xd8)
361
+ return await jpegDimensions(file);
362
+ return { width: null, height: null, format: 'unknown' };
363
+ }
364
+ finally {
365
+ await handle.close().catch(() => { });
366
+ }
367
+ }
368
+ async function jpegDimensions(file) {
369
+ const buf = await fs.promises.readFile(file);
370
+ let offset = 2;
371
+ while (offset < buf.length) {
372
+ if (buf[offset] !== 0xff)
373
+ break;
374
+ const marker = buf.readUInt8(offset + 1);
375
+ const length = buf.readUInt16BE(offset + 2);
376
+ if (marker >= 0xc0 && marker <= 0xc3) {
377
+ return { width: buf.readUInt16BE(offset + 7), height: buf.readUInt16BE(offset + 5), format: 'jpeg' };
378
+ }
379
+ offset += 2 + length;
380
+ }
381
+ return { width: null, height: null, format: 'jpeg' };
382
+ }
383
+ async function webpDimensions(file) {
384
+ const buf = await fs.promises.readFile(file);
385
+ const chunk = buf.slice(12, 16).toString('ascii');
386
+ if (chunk === 'VP8X' && buf.length >= 30) {
387
+ return {
388
+ width: 1 + buf.readUIntLE(24, 3),
389
+ height: 1 + buf.readUIntLE(27, 3),
390
+ format: 'webp'
391
+ };
392
+ }
393
+ if (chunk === 'VP8 ' && buf.length >= 30) {
394
+ return { width: buf.readUInt16LE(26) & 0x3fff, height: buf.readUInt16LE(28) & 0x3fff, format: 'webp' };
395
+ }
396
+ return { width: null, height: null, format: 'webp' };
397
+ }
398
+ async function scanGeneratedImages(rootDir) {
399
+ const files = await listGeneratedImageFiles(rootDir).catch(() => []);
400
+ const rows = [];
401
+ for (const file of files) {
402
+ const stats = await fs.promises.stat(file).catch(() => null);
403
+ if (!stats)
404
+ continue;
405
+ rows.push({
406
+ path: relative(file),
407
+ absolute_path: path.resolve(file),
408
+ mtime: stats.mtime.toISOString(),
409
+ mtime_ms: stats.mtimeMs,
410
+ bytes: stats.size
411
+ });
412
+ }
413
+ rows.sort((a, b) => b.mtime_ms - a.mtime_ms);
414
+ const currentRequestCandidates = rows.filter((row) => Number(row.mtime_ms || 0) >= Number(promptMeta.mtime_ms || 0));
415
+ return {
416
+ root: rootDir,
417
+ total_png_candidates: rows.length,
418
+ latest_candidates: rows.slice(0, 5).map(({ mtime_ms, ...row }) => row),
419
+ current_request_candidates: currentRequestCandidates.slice(0, 5),
420
+ current_request_candidate_count: currentRequestCandidates.length,
421
+ latest_is_current_request_output: currentRequestCandidates.length > 0 && rows[0]?.absolute_path === currentRequestCandidates[0]?.absolute_path,
422
+ auto_pick_latest_available: currentRequestCandidates.length === 1,
423
+ note: 'Existing files under generated_images are discoverable, but SKS does not treat them as this README replacement unless the user provides SKS_CODEX_APP_IMAGEGEN_OUTPUT or opts into SKS_CODEX_APP_IMAGEGEN_AUTOPICK_LATEST=1 with exactly one generated_images candidate newer than the prompt contract.'
424
+ };
425
+ }
426
+ async function listGeneratedImageFiles(rootDir) {
427
+ const out = [];
428
+ const entries = await fs.promises.readdir(rootDir, { withFileTypes: true });
429
+ for (const entry of entries) {
430
+ const first = path.join(rootDir, entry.name);
431
+ if (entry.isDirectory()) {
432
+ const nested = await fs.promises.readdir(first, { withFileTypes: true }).catch(() => []);
433
+ for (const child of nested) {
434
+ if (child.isFile() && /\.(png|jpe?g|webp)$/i.test(child.name))
435
+ out.push(path.join(first, child.name));
436
+ }
437
+ }
438
+ else if (entry.isFile() && /\.(png|jpe?g|webp)$/i.test(entry.name)) {
439
+ out.push(first);
440
+ }
441
+ }
442
+ return out;
443
+ }
444
+ function relative(file) {
445
+ const rel = path.relative(root, path.resolve(file));
446
+ return rel.startsWith('..') ? path.resolve(file) : rel;
447
+ }
448
+ //# sourceMappingURL=readme-architecture-imagegen-official-check.js.map
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
3
+ const dag = await importDist('core/release/release-gate-dag.js');
4
+ const selectorMod = await importDist('core/release/release-gate-affected-selector.js');
5
+ const manifest = dag.loadReleaseGateManifest(root);
6
+ const gates = manifest.gates.filter((gate) => gate.preset.includes('release'));
7
+ const selected = selectorMod.selectAffectedReleaseGates(root, manifest, gates, { changedSince: 'HEAD', preset: 'affected' });
8
+ const ids = new Set(selected.selection.selected_gate_ids);
9
+ for (const id of ['release:version-truth', 'release:dag-full-coverage', 'runtime:ts-source-of-truth', 'typecheck', 'schema:check']) {
10
+ assertGate(ids.has(id), `affected selector must always keep ${id}`, selected.selection);
11
+ }
12
+ const codexCurrentOnly = selectorMod.selectAffectedReleaseGates(root, manifest, gates, {
13
+ changedFiles: ['src/core/codex-control/codex-sdk-adapter.ts'],
14
+ preset: 'affected'
15
+ });
16
+ const codexCurrentIds = new Set(codexCurrentOnly.selection.selected_gate_ids.map(String));
17
+ for (const id of ['release:codex-current', 'codex:0142:manifest', 'codex:0142:binary-identity', 'codex:0142:policy', 'codex:0142:app-server-v2', 'codex:0142:thread-store', 'codex:0142:capability']) {
18
+ assertGate(codexCurrentIds.has(id), `codex current surface change must select ${id}`, codexCurrentOnly.selection);
19
+ }
20
+ const releaseScriptOnly = selectorMod.selectAffectedReleaseGates(root, manifest, gates, {
21
+ changedFiles: ['src/scripts/release-full-parallelism-blackbox.ts'],
22
+ preset: 'affected'
23
+ });
24
+ const releaseScriptIds = new Set(releaseScriptOnly.selection.selected_gate_ids.map(String));
25
+ assertGate(releaseScriptIds.has('release:full-parallelism-blackbox'), 'release script change must select release gates', releaseScriptOnly.selection);
26
+ assertGate(![...releaseScriptIds].some((id) => id.startsWith('zellij:') || id.startsWith('naruto:') || id.startsWith('research:')), 'release script change must not expand to unrelated route gates', releaseScriptOnly.selection);
27
+ assertGate(releaseScriptIds.size < Math.ceil(gates.length / 3), 'release script change must stay affected-sized instead of near-full release', releaseScriptOnly.selection);
28
+ const schedulerScriptOnly = selectorMod.selectAffectedReleaseGates(root, manifest, gates, {
29
+ changedFiles: ['src/scripts/scheduler-utilization-integral-check.ts'],
30
+ preset: 'affected'
31
+ });
32
+ const schedulerScriptIds = new Set(schedulerScriptOnly.selection.selected_gate_ids.map(String));
33
+ assertGate(schedulerScriptIds.has('scheduler:utilization-integral'), 'scheduler script change must select scheduler gates', schedulerScriptOnly.selection);
34
+ assertGate(![...schedulerScriptIds].some((id) => id.startsWith('research:') || id.startsWith('zellij:')), 'scheduler script change must not expand to unrelated route gates', schedulerScriptOnly.selection);
35
+ emitGate('release:affected-selector', {
36
+ selected: ids.size,
37
+ skipped: selected.selection.skipped_gate_ids.length,
38
+ release_script_selected: releaseScriptIds.size,
39
+ scheduler_script_selected: schedulerScriptIds.size
40
+ });
41
+ //# sourceMappingURL=release-affected-selector-check.js.map
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
3
+ process.env.SKS_RELEASE_MAX_CPU_LIGHT = '7';
4
+ process.env.SKS_RELEASE_MAX_TOTAL = '2';
5
+ const governor = await importDist('core/release/release-gate-resource-governor.js');
6
+ const budget = governor.defaultReleaseGateBudget();
7
+ assertGate(budget['cpu-light'] === 7, 'resource governor must honor SKS_RELEASE_MAX_CPU_LIGHT', budget);
8
+ assertGate(governor.defaultReleaseGateMaxTotal() >= 8 && governor.defaultReleaseGateMaxTotal() <= 32, 'resource governor default total cap must be bounded by host capacity', { max_total: governor.defaultReleaseGateMaxTotal() });
9
+ const gate = (id) => ({ id, resource: ['cpu-light'], deps: [], command: 'true', side_effect: 'hermetic', timeout_ms: 1000, cache: { enabled: false, inputs: [] }, isolation: { report_dir: 'per-gate' }, preset: ['release'] });
10
+ const fsGate = (id) => ({ ...gate(id), resource: ['fs-read'] });
11
+ const timingGate = (id) => ({ ...gate(id), resource: ['timing-sensitive'] });
12
+ const picked = governor.pickLaunchableReleaseGates({ ready: [gate('a'), gate('b'), gate('c')], running: [], budget });
13
+ assertGate(picked.length === 2, 'resource governor must honor SKS_RELEASE_MAX_TOTAL', { picked: picked.map((row) => row.id) });
14
+ process.env.SKS_RELEASE_MAX_TOTAL = '9999';
15
+ const raisedTotal = governor.pickLaunchableReleaseGates({ ready: Array.from({ length: 80 }, (_, index) => fsGate(`fs-${index}`)), running: [], budget });
16
+ assertGate(raisedTotal.length <= governor.defaultReleaseGateMaxTotal(), 'SKS_RELEASE_MAX_TOTAL must not raise above the host-safe default cap', { picked: raisedTotal.length, default_cap: governor.defaultReleaseGateMaxTotal() });
17
+ process.env.SKS_RELEASE_MAX_TOTAL = '2';
18
+ const timingFirst = governor.pickLaunchableReleaseGates({ ready: [timingGate('timing'), gate('a')], running: [], budget });
19
+ assertGate(timingFirst.length === 1 && timingFirst[0].id === 'timing', 'timing-sensitive gate must launch alone when selected', { picked: timingFirst.map((row) => row.id) });
20
+ const timingAfterOther = governor.pickLaunchableReleaseGates({ ready: [gate('a'), timingGate('timing')], running: [], budget });
21
+ assertGate(timingAfterOther.length === 1 && timingAfterOther[0].id === 'a', 'timing-sensitive gate must wait behind already-selected non-exclusive work', { picked: timingAfterOther.map((row) => row.id) });
22
+ const blockedByTiming = governor.pickLaunchableReleaseGates({ ready: [gate('a')], running: [timingGate('timing')], budget });
23
+ assertGate(blockedByTiming.length === 0, 'running timing-sensitive gate must block co-scheduled release gates', { picked: blockedByTiming.map((row) => row.id) });
24
+ emitGate('release:aggressive-resource-governor', { cpu_light: budget['cpu-light'], total: picked.length });
25
+ //# sourceMappingURL=release-aggressive-resource-governor-check.js.map
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
3
+ const batch = await importDist('core/release/release-gate-batch-runner.js');
4
+ assertGate(typeof batch.runReleaseGateBatch === 'function', 'release batch runner export missing');
5
+ emitGate('release:batch-runner', { export: 'runReleaseGateBatch' });
6
+ //# sourceMappingURL=release-batch-runner-check.js.map
@@ -0,0 +1,23 @@
1
+ import { assertGate, emitGate, importDist, root } from './sks-1-18-gate-lib.js';
2
+ const cacheMod = await importDist('core/triwiki/triwiki-cache-key.js');
3
+ const bankMod = await importDist('core/triwiki/triwiki-proof-bank.js');
4
+ const releaseCacheMod = await importDist('core/release/release-gate-cache-v2.js');
5
+ const key = cacheMod.computeTriWikiCacheKey({ root, id: 'release:cache-bridge', inputs: ['package.json', 'release-gates.v2.json'] });
6
+ const status = bankMod.summarizeTriWikiProofBank(root);
7
+ assertGate(Boolean(key.release_gates_hash) && status.schema === 'sks.triwiki-proof-bank.v1', 'cache bridge material must be readable', { key, status });
8
+ const fixtureGate = {
9
+ id: 'release:cache-bridge',
10
+ command: 'npm run release:cache-bridge --silent',
11
+ deps: [],
12
+ resource: ['cpu-light'],
13
+ side_effect: 'hermetic',
14
+ timeout_ms: 300000,
15
+ cache: { enabled: true, inputs: ['package.json', 'release-gates.v2.json'] },
16
+ isolation: { home: 'temp', codex_home: 'temp', report_dir: 'per-gate' },
17
+ preset: ['release']
18
+ };
19
+ releaseCacheMod.writeReleaseGateCacheHit(root, fixtureGate, 7);
20
+ const hit = releaseCacheMod.readReleaseGateCacheRecord(root, fixtureGate);
21
+ assertGate(Boolean(hit) && hit.duration_ms === 7, 'release cache bridge must roundtrip through reusable TriWiki proof material', hit);
22
+ emitGate('release:cache-bridge', { cache_bridge_consistent: true, release_gates_hash: key.release_gates_hash, duration_ms: hit.duration_ms });
23
+ //# sourceMappingURL=release-cache-bridge-check.js.map
@@ -0,0 +1,42 @@
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 } from './sks-1-18-gate-lib.js';
7
+ import { expandGlob, releaseGateCacheKey } from '../core/release/release-gate-cache-v2.js';
8
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-cache-glob-'));
9
+ fs.mkdirSync(path.join(tmp, 'src/core/release'), { recursive: true });
10
+ fs.writeFileSync(path.join(tmp, 'package.json'), JSON.stringify({ version: '0.0.0' }));
11
+ fs.writeFileSync(path.join(tmp, 'release-gates.v2.json'), JSON.stringify({ schema: 'sks.release-gates.v2', gates: [] }));
12
+ fs.writeFileSync(path.join(tmp, 'src/core/release/a.ts'), 'a');
13
+ const gate = {
14
+ id: 'release:cache-glob-hashing-fixture',
15
+ command: 'node fixture',
16
+ deps: [],
17
+ resource: ['cpu-light'],
18
+ side_effect: 'hermetic',
19
+ timeout_ms: 1000,
20
+ cache: { enabled: true, inputs: ['src/core/release/**'] },
21
+ isolation: { home: 'temp', codex_home: 'temp', report_dir: 'per-gate' },
22
+ preset: ['release']
23
+ };
24
+ const before = releaseGateCacheKey(tmp, gate);
25
+ const expandedBefore = expandGlob(tmp, 'src/core/release/**');
26
+ fs.writeFileSync(path.join(tmp, 'src/core/release/b.ts'), 'b');
27
+ const afterAdd = releaseGateCacheKey(tmp, gate);
28
+ fs.writeFileSync(path.join(tmp, 'src/core/release/a.ts'), 'changed');
29
+ const afterChange = releaseGateCacheKey(tmp, gate);
30
+ const expandedAfter = expandGlob(tmp, 'src/core/release/**');
31
+ const report = {
32
+ schema: 'sks.release-cache-glob-hashing-check.v1',
33
+ ok: expandedBefore.length === 1 && expandedAfter.length === 2 && before !== afterAdd && afterAdd !== afterChange,
34
+ expanded_before: expandedBefore.map((file) => path.basename(file)),
35
+ expanded_after: expandedAfter.map((file) => path.basename(file)),
36
+ before,
37
+ after_add: afterAdd,
38
+ after_change: afterChange
39
+ };
40
+ assertGate(report.ok, 'release cache key must hash recursive glob file paths and contents', report);
41
+ emitGate('release:cache-glob-hashing', report);
42
+ //# sourceMappingURL=release-cache-glob-hashing-check.js.map
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ // @ts-nocheck
3
+ import { classifyReleaseCacheInputChange } from '../core/release/release-cache-key.js';
4
+ import { assertGate, emitGate } from './sks-1-18-gate-lib.js';
5
+ const pkgA = JSON.stringify({ name: 'sneakoscope', version: '3.0.0', scripts: { test: 'node a.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
6
+ const pkgB = JSON.stringify({ name: 'sneakoscope', version: '3.0.2', scripts: { test: 'node a.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
7
+ const pkgScript = JSON.stringify({ name: 'sneakoscope', version: '3.0.2', scripts: { test: 'node b.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
8
+ const versionOnly = classifyReleaseCacheInputChange({ file: 'package.json', before: pkgA, after: pkgB });
9
+ const scriptChange = classifyReleaseCacheInputChange({ file: 'package.json', before: pkgB, after: pkgScript });
10
+ assertGate(versionOnly.neutralizable === true && versionOnly.behavior_affecting === false, 'package version-only change must be neutralizable', versionOnly);
11
+ assertGate(scriptChange.neutralizable === false && scriptChange.behavior_affecting === true && scriptChange.reason.includes('scripts'), 'package script change must invalidate', scriptChange);
12
+ emitGate('release:cache-input-classifier', { versionOnly, scriptChange });
13
+ //# sourceMappingURL=release-cache-input-classifier-check.js.map
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ // @ts-nocheck
3
+ import { spawnSync } from 'node:child_process';
4
+ import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
5
+ const result = spawnSync(process.execPath, ['dist/scripts/release-speed-summary.js'], { cwd: root, encoding: 'utf8', timeout: 30000 });
6
+ assertGate(result.status === 0, 'release speed summary script failed', { stderr: result.stderr });
7
+ const summary = JSON.parse(result.stdout);
8
+ assertGate(summary.cache_key_policy === 'version-neutral-safe-v1', 'release speed summary missing cache key policy', summary);
9
+ assertGate(Array.isArray(summary.version_neutralized_inputs), 'release speed summary missing neutralized inputs', summary);
10
+ assertGate(Array.isArray(summary.behavior_affecting_inputs), 'release speed summary missing behavior-affecting inputs', summary);
11
+ assertGate(String(summary.cache_message || '').includes('Version correctness gates still ran uncached'), 'release speed summary missing neutralization operator message', summary);
12
+ emitGate('release:cache-neutralization-report', summary);
13
+ //# sourceMappingURL=release-cache-neutralization-report-check.js.map