sneakoscope 10.5.0 → 10.5.2

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 (393) hide show
  1. package/README.md +112 -161
  2. package/config/skills-hash-ledger.v1.json +4 -6
  3. package/crates/sks-core/Cargo.lock +1 -1
  4. package/crates/sks-core/Cargo.toml +1 -1
  5. package/dist/bin/sks-dispatch.js +4 -0
  6. package/dist/cli/command-loaders.js +75 -0
  7. package/dist/cli/command-manifest-lite.js +311 -99
  8. package/dist/cli/command-registry.js +89 -353
  9. package/dist/cli/feature-commands.js +2 -2
  10. package/dist/cli/help-fast.js +2 -2
  11. package/dist/cli/install-helpers-menubar.js +2 -2
  12. package/dist/cli/router.js +2 -10
  13. package/dist/commands/codex-native.js +1 -1
  14. package/dist/commands/conflicts.js +1 -1
  15. package/dist/commands/proof.js +17 -2
  16. package/dist/config/skills-manifest.json +9 -5
  17. package/dist/core/agent-bridge/agent-mode.js +0 -8
  18. package/dist/core/agents/agent-central-ledger.js +0 -54
  19. package/dist/core/agents/agent-cleanup-executor.js +618 -0
  20. package/dist/core/agents/agent-recursion-guard.js +0 -3
  21. package/dist/core/agents/agent-worker-pipeline.js +0 -14
  22. package/dist/core/agents/runtime-proof-summary.js +0 -4
  23. package/dist/core/agents/scout-policy.js +0 -42
  24. package/dist/core/architecture-map-review.js +3 -2
  25. package/dist/core/clarification-gate-state.js +9 -0
  26. package/dist/core/codex/context-management.js +14 -1
  27. package/dist/core/codex-app/codex-app-restart.js +0 -83
  28. package/dist/core/codex-app/codex-app-ui-clobber-guard.js +0 -42
  29. package/dist/core/codex-app/codex-context-window.js +1 -0
  30. package/dist/core/codex-app/codex-init-deep.js +1 -61
  31. package/dist/core/codex-control/codex-reliability-shield.js +0 -7
  32. package/dist/core/codex-hooks/codex-hook-config-writer.js +0 -21
  33. package/dist/core/codex-lb/desktop-bridge/compaction-adapter.js +229 -0
  34. package/dist/core/codex-lb/desktop-bridge/http-forward.js +178 -2
  35. package/dist/core/codex-lb/desktop-bridge/responses-websocket.js +56 -3
  36. package/dist/core/codex-lb/desktop-bridge/security.js +6 -1
  37. package/dist/core/codex-lb/desktop-service.js +76 -10
  38. package/dist/core/codex-runtime/resolve-codex-runtime.js +24 -2
  39. package/dist/core/commands/align-command.js +37 -9
  40. package/dist/core/commands/basic-cli.js +1 -2
  41. package/dist/core/commands/command-utils.js +1 -1
  42. package/dist/core/commands/gc-command.js +8 -12
  43. package/dist/core/commands/hproof-command.js +1 -1
  44. package/dist/core/commands/image-ux-review-command.js +1 -1
  45. package/dist/core/commands/pipeline-command.js +64 -4
  46. package/dist/core/commands/ppt-command.js +1 -1
  47. package/dist/core/commands/proof-field-command.js +2 -2
  48. package/dist/core/commands/status-command.js +2 -2
  49. package/dist/core/commands/stop-gate-command.js +1 -1
  50. package/dist/core/commands/triwiki-graph-command.js +3 -3
  51. package/dist/core/commands/trust-command.js +1 -1
  52. package/dist/core/commands/wiki-command.js +28 -466
  53. package/dist/core/config/supabase-secret-preservation.js +0 -4
  54. package/dist/core/config-adopt/config-adopt.js +0 -6
  55. package/dist/core/daemon/sksd-hook-daemon-entrypoint.js +5 -0
  56. package/dist/core/daemon/sksd-hook-daemon.js +11 -3
  57. package/dist/core/daemon/sksd-hook-dispatch.js +7 -4
  58. package/dist/core/daemon/sksd-hook-env.js +29 -0
  59. package/dist/core/decision-contract.js +3 -2
  60. package/dist/core/decisions/config.js +3 -2
  61. package/dist/core/decisions/openrouter.js +30 -24
  62. package/dist/core/decisions/recovery.js +0 -26
  63. package/dist/core/decisions/types.js +0 -2
  64. package/dist/core/doctor/current-project-guidance.js +3 -2
  65. package/dist/core/evaluation.js +1 -1
  66. package/dist/core/feature-fixtures.js +4 -32
  67. package/dist/core/feature-registry.js +4 -16
  68. package/dist/core/git-hygiene/git-policy.js +1 -1
  69. package/dist/core/git-simple.js +27 -1
  70. package/dist/core/hooks-runtime/exclusive-gui-surface-gate.js +1 -1
  71. package/dist/core/hooks-runtime/hook-context.js +2 -11
  72. package/dist/core/hooks-runtime/hook-io.js +12 -4
  73. package/dist/core/hooks-runtime/jev-spawn-routing.js +3 -0
  74. package/dist/core/hooks-runtime/naruto-decision-gate.js +3 -3
  75. package/dist/core/hooks-runtime/official-subagent-lifecycle.js +2 -8
  76. package/dist/core/hooks-runtime/subagent-artifact-dir.js +12 -0
  77. package/dist/core/hooks-runtime/subagent-spawn-policy.js +2 -0
  78. package/dist/core/hooks-runtime/tool-output-quarantine.js +4 -31
  79. package/dist/core/hooks-runtime.js +47 -84
  80. package/dist/core/image/reference-evidence/reference-registry.js +0 -66
  81. package/dist/core/init/skills.js +4 -4
  82. package/dist/core/init.js +13 -7
  83. package/dist/core/install/installed-package-smoke.js +7 -1
  84. package/dist/core/language-preference.js +2 -2
  85. package/dist/core/lean-engineering-policy.js +0 -90
  86. package/dist/core/mad-sks/immutable-harness-guard.js +0 -3
  87. package/dist/core/managed-assets/managed-assets-manifest.js +0 -14
  88. package/dist/core/managed-paths.js +1 -24
  89. package/dist/core/mcp/mcp-tool-policy.js +0 -74
  90. package/dist/core/naruto/naruto-task-hints.js +1 -26
  91. package/dist/core/naruto/naruto-work-item.js +0 -17
  92. package/dist/core/perf-bench.js +1 -1
  93. package/dist/core/performance-budgets.json +10 -15
  94. package/dist/core/pipeline-internals/pipeline-stage-builder.js +13 -2
  95. package/dist/core/pipeline-internals/runtime-core.js +114 -78
  96. package/dist/core/pipeline-internals/runtime-gates.js +3 -40
  97. package/dist/core/pipeline.js +1 -1
  98. package/dist/core/proof/route-adapter.js +1 -1
  99. package/dist/core/proof-field.js +1 -1
  100. package/dist/core/provider/provider-self-heal.js +0 -18
  101. package/dist/core/questions.js +1 -9
  102. package/dist/core/route-question-schema.js +9 -0
  103. package/dist/core/routes/constants.js +1 -1
  104. package/dist/core/routes/diagnostic-allowlist.js +1 -2
  105. package/dist/core/routes/dollar-manifest-lite.js +2 -2
  106. package/dist/core/routes.js +11 -101
  107. package/dist/core/runtime/task-profile.js +15 -1
  108. package/dist/core/safety/command-contract/contracts.js +53 -129
  109. package/dist/core/safety/intent-contract/intent-contract.js +0 -28
  110. package/dist/core/safety/ssot-authority-inventory.js +1 -1
  111. package/dist/core/search/context-graph-seeds.js +0 -183
  112. package/dist/core/security/high-risk-contracts.js +1 -20
  113. package/dist/core/skill-forge.js +2 -30
  114. package/dist/core/subagents/naruto-host-credentials.js +0 -18
  115. package/dist/core/subagents/official-subagent-preparation.js +4 -0
  116. package/dist/core/subagents/official-subagent-prompt.js +9 -9
  117. package/dist/core/triwiki/agents-md-projector.js +0 -3
  118. package/dist/core/triwiki/context-graph/architecture/policy.js +14 -0
  119. package/dist/core/triwiki/context-graph/compiler/cache-key.js +6 -0
  120. package/dist/core/triwiki/context-graph/compiler/fragment-manifest.js +0 -6
  121. package/dist/core/triwiki/context-graph/paths.js +0 -3
  122. package/dist/core/triwiki/context-graph/query/index.js +0 -22
  123. package/dist/core/triwiki/context-graph/store/architecture-map-store.js +3 -2
  124. package/dist/core/triwiki/context-graph/store/fragment-cache.js +0 -24
  125. package/dist/core/triwiki/context-graph/store/operation-journal-schema.js +0 -15
  126. package/dist/core/triwiki/triwiki-module-card.js +3 -3
  127. package/dist/core/triwiki/triwiki-proof-bank-index-store.js +0 -3
  128. package/dist/core/triwiki/triwiki-proof-bank-index.js +1 -41
  129. package/dist/core/triwiki-runtime.js +4 -16
  130. package/dist/core/triwiki-wrongness/wrongness-ledger.js +1 -1
  131. package/dist/core/update/update-migration-state/fast-mode-config.js +0 -13
  132. package/dist/core/verification-profile.js +4 -4
  133. package/dist/core/version.js +1 -1
  134. package/dist/scripts/sks-cli-gate-lib.js +3 -1
  135. package/package.json +26 -24
  136. package/runtime-required-scripts.json +64 -19
  137. package/config/competitor-scorecard-baseline.json +0 -76
  138. package/config/installed-public-surface-closure.v1.json +0 -13
  139. package/dist/commands/all-features.js +0 -5
  140. package/dist/commands/bench.js +0 -4
  141. package/dist/commands/code-structure.js +0 -5
  142. package/dist/commands/commands.js +0 -4
  143. package/dist/commands/dfix.js +0 -4
  144. package/dist/commands/features.js +0 -5
  145. package/dist/commands/harness.js +0 -5
  146. package/dist/commands/hproof.js +0 -5
  147. package/dist/commands/image-ux-review.js +0 -4
  148. package/dist/commands/init.js +0 -2
  149. package/dist/commands/paths.js +0 -4
  150. package/dist/commands/perf.js +0 -128
  151. package/dist/commands/ppt.js +0 -4
  152. package/dist/commands/profile.js +0 -5
  153. package/dist/commands/proof-field.js +0 -5
  154. package/dist/commands/qa-loop.js +0 -5
  155. package/dist/commands/research.js +0 -5
  156. package/dist/commands/rollback.js +0 -4
  157. package/dist/commands/rust.js +0 -4
  158. package/dist/commands/status.js +0 -4
  159. package/dist/commands/update-check.js +0 -2
  160. package/dist/commands/versioning.js +0 -26
  161. package/dist/core/bench.js +0 -389
  162. package/dist/core/commands/bench-command.js +0 -67
  163. package/dist/core/commands/check-command.js +0 -156
  164. package/dist/core/commands/daemon-command.js +0 -13
  165. package/dist/core/commands/gates-command.js +0 -62
  166. package/dist/core/commands/harness-command.js +0 -17
  167. package/dist/core/commands/loop-command.js +0 -22
  168. package/dist/core/commands/perf-command.js +0 -34
  169. package/dist/core/commands/profile-command.js +0 -26
  170. package/dist/core/commands/release-command.js +0 -176
  171. package/dist/core/commands/rollback-command.js +0 -45
  172. package/dist/core/commands/run-command.js +0 -655
  173. package/dist/core/commands/rust-command.js +0 -80
  174. package/dist/core/commands/task-command.js +0 -14
  175. package/dist/core/git-hygiene/shared-memory-manifest.js +0 -1
  176. package/dist/core/image-ux-review/reference-policy/reference-policy.js +0 -9
  177. package/dist/core/loops/loop-artifacts.js +0 -29
  178. package/dist/core/loops/loop-continuation-enforcer.js +0 -95
  179. package/dist/core/loops/loop-observability.js +0 -18
  180. package/dist/core/loops/loop-proof-validation.js +0 -38
  181. package/dist/core/loops/loop-schema.js +0 -1
  182. package/dist/core/ops/ops-maturity-scorecard.js +0 -75
  183. package/dist/core/release-parallel-full-coverage.js +0 -44
  184. package/dist/core/triwiki/context-graph/architecture/index.js +0 -15
  185. package/dist/core/triwiki/context-graph/compiler/fragment-manifest-store.js +0 -35
  186. package/dist/core/triwiki/context-graph/compiler/fragment-merge.js +0 -195
  187. package/dist/core/triwiki/context-graph/compiler/fragment-plan.js +0 -137
  188. package/dist/core/triwiki/context-graph/compiler/fragment-store.js +0 -82
  189. package/dist/core/triwiki/context-graph/compiler/incremental-build.js +0 -161
  190. package/dist/core/triwiki/context-graph/compiler/incremental-extract.js +0 -94
  191. package/dist/core/triwiki/context-graph/compiler/k-way-merge.js +0 -92
  192. package/dist/core/triwiki/context-graph/compiler/source-fragment.js +0 -74
  193. package/dist/core/triwiki/context-graph/projections/index.js +0 -12
  194. package/dist/core/triwiki/context-graph/store/graph-status.js +0 -93
  195. package/dist/core/triwiki-wrongness/validators.js +0 -3
  196. package/dist/core/trust-kernel/evidence-router.js +0 -1
  197. package/dist/core/wiki-image/computer-use-evidence.js +0 -1
  198. package/dist/scripts/agent-guidance-dedup-check.js +0 -23
  199. package/dist/scripts/agent-message-bus-reader-check.js +0 -17
  200. package/dist/scripts/all-feature-deep-completion-check.js +0 -42
  201. package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -85
  202. package/dist/scripts/architecture-guard-check.js +0 -80
  203. package/dist/scripts/architecture-map-check.js +0 -299
  204. package/dist/scripts/certificate-sla-check.js +0 -7
  205. package/dist/scripts/check-runtime-schemas.js +0 -130
  206. package/dist/scripts/cli-output-consistency-check.js +0 -54
  207. package/dist/scripts/codex-agent-role-rich-content-check.js +0 -3
  208. package/dist/scripts/codex-agent-role-sync-check.js +0 -3
  209. package/dist/scripts/codex-app-execution-profile-check.js +0 -3
  210. package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -31
  211. package/dist/scripts/codex-app-handoff-check.js +0 -22
  212. package/dist/scripts/codex-app-handoff-launch-check.js +0 -22
  213. package/dist/scripts/codex-control-all-pipelines-check.js +0 -29
  214. package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -8
  215. package/dist/scripts/codex-control-tool-output-continuity-audit-check.js +0 -25
  216. package/dist/scripts/codex-current-app-server-v2-check.js +0 -55
  217. package/dist/scripts/codex-current-binary-identity-check.js +0 -22
  218. package/dist/scripts/codex-current-capability-check.js +0 -17
  219. package/dist/scripts/codex-current-dependency-check.js +0 -21
  220. package/dist/scripts/codex-current-policy-check.js +0 -35
  221. package/dist/scripts/codex-current-thread-store-check.js +0 -53
  222. package/dist/scripts/codex-native-agent-role-content-check.js +0 -53
  223. package/dist/scripts/codex-native-feature-broker-blackbox.js +0 -3
  224. package/dist/scripts/codex-native-feature-broker-check.js +0 -3
  225. package/dist/scripts/codex-native-gate-lib.js +0 -400
  226. package/dist/scripts/codex-native-harness-compat-check.js +0 -3
  227. package/dist/scripts/codex-native-hook-lifecycle-proof-check.js +0 -3
  228. package/dist/scripts/codex-native-runtime-e2e-fixture.js +0 -61
  229. package/dist/scripts/codex-plugin-app-template-policy-check.js +0 -8
  230. package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -26
  231. package/dist/scripts/codex-sdk-backend-router-check.js +0 -73
  232. package/dist/scripts/codex-sdk-capability-check.js +0 -9
  233. package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -7
  234. package/dist/scripts/codex-sdk-real-smoke-check.js +0 -57
  235. package/dist/scripts/concurrent-session-collision-check.js +0 -75
  236. package/dist/scripts/context-graph-check.js +0 -191
  237. package/dist/scripts/context-graph-v2-check.js +0 -327
  238. package/dist/scripts/context7-evidence-dedupe-check.js +0 -52
  239. package/dist/scripts/core-skill-card-schema-check.js +0 -49
  240. package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -43
  241. package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -37
  242. package/dist/scripts/current-command-surface-check.js +0 -80
  243. package/dist/scripts/current-surface-update-e2e-check.js +0 -511
  244. package/dist/scripts/current-upgrade-matrix-check.js +0 -229
  245. package/dist/scripts/dfix-patch-handoff-check.js +0 -11
  246. package/dist/scripts/dfix-verification-recommendation-check.js +0 -13
  247. package/dist/scripts/docs-truthfulness-check.js +0 -80
  248. package/dist/scripts/doctor-codex-app-harness-check.js +0 -3
  249. package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -90
  250. package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -83
  251. package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -39
  252. package/dist/scripts/fixtures/fake-codex-config-loader.js +0 -45
  253. package/dist/scripts/gate-policy-audit-check.js +0 -281
  254. package/dist/scripts/geo-claim-evidence-check.js +0 -16
  255. package/dist/scripts/geo-cli-blackbox-check.js +0 -16
  256. package/dist/scripts/geo-crawler-policy-check.js +0 -14
  257. package/dist/scripts/git-worktree-checkpoint-check.js +0 -19
  258. package/dist/scripts/git-worktree-cross-rebase-check.js +0 -40
  259. package/dist/scripts/git-worktree-diff-envelope-check.js +0 -15
  260. package/dist/scripts/git-worktree-dirty-lock-check.js +0 -15
  261. package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -12
  262. package/dist/scripts/git-worktree-integration-primary-check.js +0 -22
  263. package/dist/scripts/git-worktree-manifest-append-check.js +0 -16
  264. package/dist/scripts/git-worktree-untracked-diff-check.js +0 -16
  265. package/dist/scripts/goal-artifact-compat-check.js +0 -7
  266. package/dist/scripts/gpt-final-all-pipelines-check.js +0 -18
  267. package/dist/scripts/harness-benchmark-check.js +0 -75
  268. package/dist/scripts/helper-dedup-check.js +0 -60
  269. package/dist/scripts/hook-latency-budget-check.js +0 -43
  270. package/dist/scripts/image-artifact-path-contract-check.js +0 -12
  271. package/dist/scripts/imagegen-real-smoke-check.js +0 -149
  272. package/dist/scripts/init-deep-backup-retention-check.js +0 -36
  273. package/dist/scripts/install-surface-ssot-check.js +0 -96
  274. package/dist/scripts/installed-package-smoke-check.js +0 -25
  275. package/dist/scripts/latest-version-guidance-check.js +0 -74
  276. package/dist/scripts/lib/codex-sdk-gate-lib.js +0 -74
  277. package/dist/scripts/lib/git-worktree-fixture.js +0 -27
  278. package/dist/scripts/lib/valid-png-fixture.js +0 -16
  279. package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -55
  280. package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -81
  281. package/dist/scripts/mad-sks-launch-sql-plane-boundary-check.js +0 -92
  282. package/dist/scripts/mad-sks-sql-plane-capability-check.js +0 -25
  283. package/dist/scripts/mad-sks-sql-plane-lifecycle-hook-decision-check.js +0 -16
  284. package/dist/scripts/mad-sks-sql-plane-result-lifecycle-check.js +0 -29
  285. package/dist/scripts/mcp-plugin-inventory-check.js +0 -9
  286. package/dist/scripts/model-call-concurrency-check.js +0 -13
  287. package/dist/scripts/mutation-callsite-analysis.js +0 -387
  288. package/dist/scripts/mutation-callsite-coverage-check.js +0 -242
  289. package/dist/scripts/naruto-ssot-gate-aliases-check.js +0 -9
  290. package/dist/scripts/naruto-ssot-pipeline-default-check.js +0 -10
  291. package/dist/scripts/naruto-ssot-route-normalization-check.js +0 -8
  292. package/dist/scripts/naruto-ssot-routing-check.js +0 -14
  293. package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -27
  294. package/dist/scripts/native-capability-repair-matrix-check.js +0 -11
  295. package/dist/scripts/native-image-generation-repair-check.js +0 -8
  296. package/dist/scripts/official-subagent-workflow-check.js +0 -150
  297. package/dist/scripts/package-published-contract-check.js +0 -71
  298. package/dist/scripts/packlist-performance-check.js +0 -164
  299. package/dist/scripts/pipeline-codex-native-doctor-mad-routing-check.js +0 -3
  300. package/dist/scripts/pipeline-codex-native-doctor-mad-routing-real-blackbox.js +0 -72
  301. package/dist/scripts/pipeline-codex-native-image-routing-check.js +0 -3
  302. package/dist/scripts/pipeline-codex-native-image-routing-real-blackbox.js +0 -48
  303. package/dist/scripts/pipeline-codex-native-qa-routing-check.js +0 -3
  304. package/dist/scripts/pipeline-codex-native-qa-routing-real-blackbox.js +0 -49
  305. package/dist/scripts/pipeline-codex-native-research-routing-check.js +0 -3
  306. package/dist/scripts/pipeline-codex-native-research-routing-real-blackbox.js +0 -43
  307. package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -146
  308. package/dist/scripts/ppt-real-export-adapter-check.js +0 -11
  309. package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -40
  310. package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -18
  311. package/dist/scripts/ppt-reexport-rereview-check.js +0 -17
  312. package/dist/scripts/probe-memoization-check.js +0 -9
  313. package/dist/scripts/product-design-plugin-routing-check.js +0 -99
  314. package/dist/scripts/prompt-placeholder-guard-check.js +0 -31
  315. package/dist/scripts/proof-root-cause-policy-check.js +0 -71
  316. package/dist/scripts/provider-badge-context-check.js +0 -68
  317. package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -51
  318. package/dist/scripts/qa-loop-app-handoff-capability-check.js +0 -7
  319. package/dist/scripts/qa-loop-app-handoff-check.js +0 -7
  320. package/dist/scripts/qa-loop-app-handoff-cli-check.js +0 -6
  321. package/dist/scripts/qa-loop-app-handoff-confirmation-check.js +0 -22
  322. package/dist/scripts/qa-loop-app-handoff-gate-lifecycle-check.js +0 -42
  323. package/dist/scripts/qa-loop-app-handoff-launch-check.js +0 -5
  324. package/dist/scripts/qa-loop-app-handoff-status-lifecycle-check.js +0 -5
  325. package/dist/scripts/qa-loop-budget-policy-check.js +0 -6
  326. package/dist/scripts/qa-loop-effort-escalation-check.js +0 -11
  327. package/dist/scripts/qa-loop-execution-profile-routing-check.js +0 -3
  328. package/dist/scripts/qa-loop-image-path-exposure-check.js +0 -7
  329. package/dist/scripts/qa-loop-image-path-prompt-injection-check.js +0 -6
  330. package/dist/scripts/real-execution-check-lib.js +0 -20
  331. package/dist/scripts/release-affected-selector-check.js +0 -118
  332. package/dist/scripts/release-aggressive-resource-governor-check.js +0 -24
  333. package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
  334. package/dist/scripts/release-cache-input-classifier-check.js +0 -11
  335. package/dist/scripts/release-cache-neutralization-report-check.js +0 -11
  336. package/dist/scripts/release-cache-version-neutral-fixture-check.js +0 -64
  337. package/dist/scripts/release-dynamic-presets-check.js +0 -32
  338. package/dist/scripts/release-full-parallelism-blackbox.js +0 -41
  339. package/dist/scripts/release-gate-batch-runner-check.js +0 -73
  340. package/dist/scripts/release-gate-dag-runner-check.js +0 -124
  341. package/dist/scripts/release-gate-dag-runner.js +0 -120
  342. package/dist/scripts/release-latency-slo-check.js +0 -26
  343. package/dist/scripts/release-metadata-check.js +0 -282
  344. package/dist/scripts/release-parallel-speed-budget-check.js +0 -101
  345. package/dist/scripts/release-proof-truth-check.js +0 -12
  346. package/dist/scripts/release-provenance-check.js +0 -146
  347. package/dist/scripts/release-real-check.js +0 -542
  348. package/dist/scripts/release-runtime-truth-matrix-check.js +0 -20
  349. package/dist/scripts/release-speed-summary.js +0 -66
  350. package/dist/scripts/research-blueprint-densifier-check.js +0 -19
  351. package/dist/scripts/research-claim-builder-check.js +0 -17
  352. package/dist/scripts/research-complete-package-fixture-check.js +0 -27
  353. package/dist/scripts/research-execution-profile-routing-check.js +0 -3
  354. package/dist/scripts/research-final-reviewer-blackbox.js +0 -68
  355. package/dist/scripts/responses-retry-policy-centralized-check.js +0 -17
  356. package/dist/scripts/runtime-domain-gate-lib.js +0 -97
  357. package/dist/scripts/runtime-proof-summary-check.js +0 -52
  358. package/dist/scripts/runtime-script-pack-closure-check.js +0 -95
  359. package/dist/scripts/scheduler-batch-dispatch-check.js +0 -15
  360. package/dist/scripts/scheduler-parallel-proof-consistency-check.js +0 -63
  361. package/dist/scripts/scheduler-utilization-integral-check.js +0 -103
  362. package/dist/scripts/search-visibility-gate-lib.js +0 -120
  363. package/dist/scripts/secret-preservation-check.js +0 -10
  364. package/dist/scripts/seo-audit-fixture-check.js +0 -14
  365. package/dist/scripts/seo-cli-blackbox-check.js +0 -16
  366. package/dist/scripts/seo-geo-geo-disambiguation-check.js +0 -10
  367. package/dist/scripts/seo-geo-route-identity-check.js +0 -36
  368. package/dist/scripts/seo-geo-skill-rich-content-check.js +0 -36
  369. package/dist/scripts/seo-no-mutation-by-default-check.js +0 -15
  370. package/dist/scripts/shared-memory-fixture-check.js +0 -25
  371. package/dist/scripts/side-effect-runtime-report-check.js +0 -17
  372. package/dist/scripts/skill-fixture-check-lib.js +0 -29
  373. package/dist/scripts/skill-name-canonicalizer-check.js +0 -8
  374. package/dist/scripts/skill-surface-modernization-check.js +0 -541
  375. package/dist/scripts/skills-manifest-continuity-check.js +0 -64
  376. package/dist/scripts/sks-uninstall-regression-check.js +0 -53
  377. package/dist/scripts/sksd-daemon-check.js +0 -17
  378. package/dist/scripts/super-search-provider-interface-check.js +0 -38
  379. package/dist/scripts/triwiki-cache-key-check.js +0 -7
  380. package/dist/scripts/triwiki-proof-bank-blackbox.js +0 -28
  381. package/dist/scripts/triwiki-proof-bank-check.js +0 -5
  382. package/dist/scripts/triwiki-proof-card-check.js +0 -21
  383. package/dist/scripts/trust-fixture-check.js +0 -66
  384. package/dist/scripts/type-surface-codex-app-check.js +0 -3
  385. package/dist/scripts/typed-routing-gate-lib.js +0 -233
  386. package/dist/scripts/ultra-router-auto-router-check.js +0 -31
  387. package/dist/scripts/uninstall-inventory-check.js +0 -2
  388. package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -13
  389. package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -94
  390. package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -18
  391. package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -29
  392. package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -28
  393. package/dist/scripts/wrongness-fixture-check.js +0 -63
@@ -1,27 +1,21 @@
1
+ import { USAGE_TOPICS } from '../core/routes/constants.js';
1
2
  import { narutoCommandInputSchema } from '../core/subagents/naruto-command-input-contract.js';
2
3
  const COMMAND_MANIFEST_LITE_BASE = [
3
4
  { name: 'help', summary: 'Show SKS help', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
4
5
  { name: 'version', summary: 'Show SKS version', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
5
6
  { name: 'commands', summary: 'List SKS commands', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
6
- { name: 'check', summary: 'Run five-minute proof-bank affected checks', maturity: 'stable', skipMigrationGate: true },
7
- { name: 'gates', summary: 'Run release gate DAG by gate id or preset', maturity: 'stable', skipMigrationGate: true },
8
- { name: 'task', summary: 'Run an SLA-bounded SKS task check', maturity: 'stable', skipMigrationGate: true },
9
- { name: 'release', summary: 'Run affected/full/background release gates', maturity: 'stable', skipMigrationGate: true },
10
7
  { name: 'triwiki', summary: 'Inspect TriWiki index, affected graph, and proof bank', maturity: 'stable', skipMigrationGate: true },
11
- { name: 'daemon', summary: 'Inspect or warm the local SKS daemon cache', maturity: 'stable', skipMigrationGate: true },
12
- { name: 'run', summary: 'Classify and execute a task through the SKS trust kernel', maturity: 'beta' },
13
8
  { name: 'plan', summary: 'Write a planning-only SKS plan artifact without code edits', maturity: 'stable' },
14
9
  { name: 'status', summary: 'Show concise active mission and trust status', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
15
10
  { name: 'review', summary: 'Review a git diff with machine evidence first', maturity: 'stable', allowedDuringActiveRoute: true },
16
11
  { name: 'root', summary: 'Show active SKS root', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
17
12
  { name: 'install', summary: 'Install the exact packaged SKS version globally and verify the resolved CLI', maturity: 'stable', skipMigrationGate: true },
18
- { name: 'update', summary: 'Inspect, review, apply, or roll back the global SKS update', maturity: 'stable' },
19
- { name: 'uninstall', summary: 'Uninstall SKS global skills, hooks, config, menu bar, and optional project residue', maturity: 'stable', allowedDuringActiveRoute: true },
13
+ { name: 'update', summary: 'Inspect, review, apply, or roll back the global SKS update', maturity: 'stable', skipMigrationGate: true },
14
+ { name: 'uninstall', summary: 'Uninstall SKS global skills, hooks, config, menu bar, and optional project residue', maturity: 'stable', skipMigrationGate: true, allowedDuringActiveRoute: true },
20
15
  { name: 'update-check', summary: 'Show the shared SKS, Codex CLI, and Menu Bar update status', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
21
16
  { name: 'config', summary: 'Adopt project Codex config into SKS management', maturity: 'stable', skipMigrationGate: true },
22
17
  { name: 'mcp', summary: 'Manage scoped Codex MCP configuration', maturity: 'beta', skipMigrationGate: true },
23
- { name: 'wizard', summary: 'Open setup wizard help', maturity: 'stable' },
24
- { name: 'usage', summary: 'Show focused usage topic', maturity: 'stable', readonly: true, allowedDuringActiveRoute: true, diagnostic: true },
18
+ { name: 'usage', summary: 'Show focused usage topic', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
25
19
  { name: 'quickstart', summary: 'Show quickstart flow', maturity: 'stable' },
26
20
  { name: 'setup', summary: 'Initialize SKS state', maturity: 'stable', skipMigrationGate: true },
27
21
  { name: 'bootstrap', summary: 'Initialize SKS project files', maturity: 'stable', skipMigrationGate: true },
@@ -30,8 +24,7 @@ const COMMAND_MANIFEST_LITE_BASE = [
30
24
  { name: 'fix-path', summary: 'Repair hook command paths', maturity: 'stable' },
31
25
  { name: 'doctor', summary: 'Check and repair SKS install', maturity: 'stable', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
32
26
  { name: 'git', summary: 'Inspect and enforce SKS git collaboration hygiene', maturity: 'beta' },
33
- { name: 'paths', summary: 'Inspect SKS managed paths', maturity: 'beta', readonly: true, allowedDuringActiveRoute: true, diagnostic: true },
34
- { name: 'rollback', summary: 'List or apply managed-path rollback actions', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
27
+ { name: 'paths', summary: 'Inspect SKS managed paths', maturity: 'beta', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
35
28
  { name: 'postinstall', summary: 'Restore package state; bootstrap only with explicit opt-in', maturity: 'stable', skipMigrationGate: true },
36
29
  { name: 'codex', summary: 'Check Codex CLI compatibility and vendored hook schemas', maturity: 'beta', skipMigrationGate: true },
37
30
  { name: 'codex-app', summary: 'Check Codex App readiness', maturity: 'beta', skipMigrationGate: true },
@@ -40,62 +33,48 @@ const COMMAND_MANIFEST_LITE_BASE = [
40
33
  { name: 'menubar', summary: 'Inspect/install/restart/uninstall SKS menu bar', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
41
34
  { name: 'remote', summary: 'Inspect official Remote readiness and run the proof-aware SSH stdio worker', maturity: 'beta' },
42
35
  { name: 'hooks', summary: 'Explain and inspect Codex hooks', maturity: 'beta', skipMigrationGate: true },
43
- { name: 'mad-sks', summary: 'MAD-SKS scoped permission modifier + SQL-plane execution', maturity: 'beta', mutatesRouteState: true },
36
+ { name: 'mad-sks', summary: 'MAD-SKS scoped permission modifier + SQL-plane execution', maturity: 'beta', mutatesRouteState: true, ownedGateFiles: ['mad-sks-gate.json'] },
44
37
  { name: 'auto-review', summary: 'Manage auto-review profile', maturity: 'beta' },
45
38
  { name: 'dollar-commands', summary: 'List Codex App dollar commands', maturity: 'stable', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
46
39
  { name: 'fast-mode', summary: 'Toggle SKS Fast mode default for dollar-command routes', maturity: 'stable', skipMigrationGate: true },
47
40
  { name: 'commit', summary: 'Create a simple git commit', maturity: 'stable' },
48
41
  { name: 'commit-and-push', summary: 'Create a simple git commit and push', maturity: 'stable' },
49
- { name: 'dfix', summary: 'Run DFix diagnose/plan/patch/verify loop', maturity: 'stable', mutatesRouteState: true },
50
- { name: 'naruto', summary: 'Run the $sks-naruto Codex official subagent workflow', maturity: 'labs', mutatesRouteState: true },
51
- { name: 'stop-gate', summary: 'Check canonical stop-gate resolution for a route/mission', maturity: 'beta', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
42
+ { name: 'dfix', summary: 'Run DFix diagnose/plan/patch/verify loop', maturity: 'stable', mutatesRouteState: true, ownedGateFiles: ['dfix-gate.json'] },
43
+ { name: 'naruto', summary: 'Run the $sks-naruto Codex official subagent workflow', maturity: 'labs', mutatesRouteState: true, ownedGateFiles: ['naruto-gate.json', 'stop-gate.json'] },
52
44
  { name: 'route', summary: 'Inspect or close active route state', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
53
- { name: 'loop', summary: 'Retired: use Codex native Goal for persisted goals/loops (NC-38)', maturity: 'labs' },
54
- { name: 'qa-loop', summary: 'Run QA loop missions', maturity: 'beta', mutatesRouteState: true },
55
- { name: 'research', summary: 'Run research missions', maturity: 'labs', mutatesRouteState: true },
56
- { name: 'autoresearch', summary: 'Alias for research/autoresearch route', maturity: 'labs', mutatesRouteState: true },
57
- { name: 'ppt', summary: 'Inspect/build PPT artifacts', maturity: 'labs', mutatesRouteState: true },
58
- { name: 'image-ux-review', summary: 'Inspect image UX artifacts', maturity: 'labs', mutatesRouteState: true },
59
- { name: 'computer-use', summary: 'Record native Mac/non-web Computer Use visual evidence', maturity: 'beta', mutatesRouteState: true },
45
+ { name: 'qa-loop', summary: 'Run QA loop missions', maturity: 'beta', mutatesRouteState: true, ownedGateFiles: ['qa-gate.json'] },
46
+ { name: 'research', summary: 'Run research missions', maturity: 'labs', mutatesRouteState: true, ownedGateFiles: ['research-gate.json'] },
47
+ { name: 'autoresearch', summary: 'Alias for research/autoresearch route', maturity: 'labs', mutatesRouteState: true, ownedGateFiles: ['research-gate.json'] },
48
+ { name: 'ppt', summary: 'Inspect/build PPT artifacts', maturity: 'labs', mutatesRouteState: true, ownedGateFiles: ['ppt-gate.json'] },
49
+ { name: 'image-ux-review', summary: 'Inspect image UX artifacts', maturity: 'labs', mutatesRouteState: true, ownedGateFiles: ['image-ux-review-gate.json'] },
50
+ { name: 'computer-use', summary: 'Record native Mac/non-web Computer Use visual evidence', maturity: 'beta', mutatesRouteState: true, ownedGateFiles: ['computer-use-gate.json'] },
60
51
  { name: 'context7', summary: 'Context7 checks and docs', maturity: 'beta' },
61
52
  { name: 'super-search', summary: 'Run Super-Search provider-independent source intelligence', maturity: 'beta' },
62
53
  { name: 'search', summary: 'Local files/text/structure/symbol/context search engines', maturity: 'beta', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
63
54
  { name: 'recallpulse', summary: 'RecallPulse evidence route', maturity: 'labs' },
64
- { name: 'pipeline', summary: 'Inspect pipeline missions', maturity: 'beta', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
55
+ { name: 'pipeline', summary: 'Inspect pipeline missions and seal a paused route\'s answers', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
65
56
  { name: 'guard', summary: 'Check harness guard', maturity: 'beta' },
66
57
  { name: 'conflicts', summary: 'Check harness conflicts', maturity: 'beta' },
67
- { name: 'versioning', summary: 'Manage release version metadata', maturity: 'stable' },
68
58
  { name: 'reasoning', summary: 'Show reasoning route', maturity: 'labs' },
69
59
  { name: 'aliases', summary: 'Show command aliases', maturity: 'stable' },
70
60
  { name: 'cleanup', summary: 'Permanently blank active TriWiki without retaining a previous generation', maturity: 'beta' },
71
- { name: 'align', summary: 'Create or replace TriWiki as a code-only repository navigation graph', maturity: 'beta', mutatesRouteState: true },
61
+ { name: 'align', summary: 'Create or replace TriWiki as a code-only repository navigation graph', maturity: 'beta', mutatesRouteState: true, ownedGateFiles: ['align-gate.json'] },
72
62
  { name: 'selftest', summary: 'Run local mock selftest', maturity: 'stable' },
73
63
  { name: 'goal', summary: 'Print stateless Codex native Goal controls', maturity: 'beta' },
74
64
  { name: 'seo-geo-optimizer', summary: 'Run unified SEO/GEO optimizer audit/plan/apply/verify plus research/strategy (--include-marketing) on the search-visibility kernel', maturity: 'beta' },
75
65
  { name: 'hook', summary: 'Codex hook entrypoint', maturity: 'beta', skipMigrationGate: true },
76
- { name: 'profile', summary: 'Inspect/set profile', maturity: 'labs' },
77
- { name: 'hproof', summary: 'Evaluate H-Proof gate', maturity: 'beta' },
78
- { name: 'validate-artifacts', summary: 'Validate mission artifacts', maturity: 'beta' },
79
- { name: 'proof', summary: 'Show and validate completion proof', maturity: 'beta' },
80
- { name: 'trust', summary: 'Report and validate route trust kernel evidence', maturity: 'beta' },
66
+ { name: 'proof', summary: 'Show and validate completion proof and the evidence behind it: route trust, stop gate, mission artifacts, H-Proof, proof field', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
81
67
  { name: 'wrongness', summary: 'Record and inspect TriWiki wrongness negative evidence', maturity: 'beta' },
82
- { name: 'proof-field', summary: 'Scan proof field', maturity: 'beta' },
83
68
  { name: 'skill-dream', summary: 'Track skill dream counters', maturity: 'labs' },
84
69
  { name: 'code-structure', summary: 'Scan source structure', maturity: 'labs' },
85
- { name: 'rust', summary: 'Inspect optional Rust accelerator status and smoke parity', maturity: 'beta' },
86
70
  { name: 'gx', summary: 'Render/validate GX cartridges', maturity: 'labs' },
87
71
  { name: 'eval', summary: 'Run eval reports', maturity: 'labs' },
88
- { name: 'harness', summary: 'Run harness fixtures', maturity: 'labs' },
89
72
  { name: 'wiki', summary: 'Manage TriWiki and image voxel ledgers', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
90
73
  { name: 'memory', summary: 'Project TriWiki memory into managed AGENTS.md blocks or run memory GC', maturity: 'beta' },
91
74
  { name: 'gc', summary: 'Compact/prune runtime state', maturity: 'labs', skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
92
- { name: 'stats', summary: 'Show storage stats', maturity: 'labs', readonly: true, diagnostic: true },
93
- { name: 'features', summary: 'Validate feature registry', maturity: 'beta' },
94
- { name: 'all-features', summary: 'Run all-features selftest', maturity: 'beta' },
95
- { name: 'perf', summary: 'Run performance checks', maturity: 'beta' },
96
- { name: 'bench', summary: 'Run core trust-kernel benchmark budgets', maturity: 'beta' },
75
+ { name: 'stats', summary: 'Show storage stats', maturity: 'labs', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
97
76
  { name: 'mcp-server', summary: 'Run a stdio MCP server exposing SKS commands as tools for MCP-capable agent hosts', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true },
98
- { name: 'agent-bridge', summary: 'Register SKS tools or run read-only tools with native Astra async calling', maturity: 'beta', readonly: true, diagnostic: true },
77
+ { name: 'agent-bridge', summary: 'Register SKS tools or run read-only tools with native Astra async calling', maturity: 'beta', readonly: true, skipMigrationGate: true, allowedDuringActiveRoute: true, diagnostic: true },
99
78
  { name: 'decision', summary: 'Manage optional Jev decisions through OpenRouter: status, enable, disable, probe, evaluate', maturity: 'labs', skipMigrationGate: true, allowedDuringActiveRoute: true },
100
79
  { name: 'imagegen', summary: 'Generate images with the active SKS image mode (Codex default or a custom OpenRouter model): status, models, enable, disable, generate', maturity: 'beta', skipMigrationGate: true, allowedDuringActiveRoute: true }
101
80
  ];
@@ -113,22 +92,14 @@ const COMMAND_CONTRACT_OVERRIDES_LITE = {
113
92
  imagegen: { risk: 'R2', latency: 'long', supportsJson: true, remoteAllowed: false, inputProfile: 'json-only' },
114
93
  cleanup: { risk: 'R3', latency: 'long', supportsJson: true, remoteAllowed: false, inputProfile: 'json-only' },
115
94
  autoresearch: { latency: 'long' },
116
- bench: { latency: 'long' },
117
95
  bridge: { risk: 'R3', latency: 'long', supportsJson: true, remoteAllowed: false, inputProfile: 'json-only' },
118
- check: { risk: 'R1', latency: 'long' },
119
96
  'commit-and-push': { risk: 'R3' },
120
97
  'computer-use': { latency: 'long' },
121
98
  config: { risk: 'R2', supportsJson: true, remoteAllowed: false, inputProfile: 'json-only' },
122
99
  dfix: { latency: 'long' },
123
- 'dollar-commands': { risk: 'R2', latency: 'normal' },
124
100
  eval: { latency: 'long' },
125
- gates: {
126
- risk: 'R1', latency: 'long', supportsJson: true, remoteAllowed: true, inputProfile: 'gates', requiredCapabilities: ['project.git', 'proof.gates']
127
- },
128
- harness: { latency: 'long' },
129
101
  'image-ux-review': { latency: 'long' },
130
102
  install: { risk: 'R2', latency: 'long' },
131
- loop: { latency: 'long' },
132
103
  'mad-sks': { risk: 'R3', latency: 'long' },
133
104
  mcp: { risk: 'R2', latency: 'long', supportsJson: true, inputProfile: 'json-only' },
134
105
  naruto: {
@@ -138,7 +109,6 @@ const COMMAND_CONTRACT_OVERRIDES_LITE = {
138
109
  supportsJson: true, remoteAllowed: true, inputProfile: 'paths',
139
110
  requiredCapabilities: ['project.fs.read']
140
111
  },
141
- perf: { latency: 'long' },
142
112
  pipeline: {
143
113
  risk: 'R2', latency: 'normal', supportsJson: true, remoteAllowed: true, inputProfile: 'pipeline-status',
144
114
  requiredCapabilities: ['proof.pipeline']
@@ -146,15 +116,13 @@ const COMMAND_CONTRACT_OVERRIDES_LITE = {
146
116
  postinstall: { latency: 'long' },
147
117
  ppt: { latency: 'long' },
148
118
  proof: {
149
- risk: 'R0', latency: 'fast', supportsJson: true, remoteAllowed: true, inputProfile: 'proof', requiredCapabilities: ['proof.read']
119
+ risk: 'R0', latency: 'fast', supportsJson: true, remoteAllowed: true, inputProfile: 'proof', requiredCapabilities: ['proof.read', 'proof.trust', 'proof.stop-gate']
150
120
  },
151
121
  'qa-loop': { latency: 'long' },
152
122
  recallpulse: { latency: 'long' },
153
- release: { risk: 'R1', latency: 'long' },
154
123
  remote: { risk: 'R2', latency: 'long', supportsJson: true, remoteAllowed: false, inputProfile: 'json-only' },
155
124
  research: { latency: 'long' },
156
125
  review: { risk: 'R1' },
157
- run: { latency: 'long' },
158
126
  search: { risk: 'R0', latency: 'normal', supportsJson: true, remoteAllowed: true, inputProfile: 'json-only' },
159
127
  stats: {
160
128
  supportsJson: true, remoteAllowed: true, inputProfile: 'stats',
@@ -164,29 +132,304 @@ const COMMAND_CONTRACT_OVERRIDES_LITE = {
164
132
  supportsJson: true, remoteAllowed: true, inputProfile: 'json-only',
165
133
  requiredCapabilities: ['proof.read']
166
134
  },
167
- 'stop-gate': {
168
- supportsJson: true, remoteAllowed: true, inputProfile: 'stop-gate',
169
- requiredCapabilities: ['proof.stop-gate']
170
- },
171
- task: { risk: 'R1', latency: 'long' },
172
- trust: {
173
- risk: 'R0', latency: 'fast', supportsJson: true, remoteAllowed: true, inputProfile: 'trust', requiredCapabilities: ['proof.trust']
174
- },
175
135
  uninstall: { risk: 'R3', latency: 'long' },
176
136
  update: { latency: 'long' },
177
137
  'update-check': {
178
138
  supportsJson: true, remoteAllowed: true, inputProfile: 'json-only',
179
139
  requiredCapabilities: ['network.npm.read']
180
140
  },
181
- 'validate-artifacts': {
182
- risk: 'R1', supportsJson: true, remoteAllowed: true, inputProfile: 'validate-artifacts',
183
- requiredCapabilities: ['proof.artifacts']
141
+ };
142
+ const COMMAND_HELP_LITE = {
143
+ help: {
144
+ usage: 'sks help [topic]',
145
+ description: 'Show CLI help or focused help for a topic.'
146
+ },
147
+ version: {
148
+ usage: 'sks version | sks --version',
149
+ description: 'Print the installed Sneakoscope Codex version.'
150
+ },
151
+ 'update-check': {
152
+ usage: 'sks update-check [--json]',
153
+ description: 'Refresh the shared update-status.v3 snapshot.'
154
+ },
155
+ mcp: {
156
+ usage: 'sks mcp config list|get|add|edit|duplicate|enable|disable|remove|test|login|logout|backups|restore [--scope global|project|effective] [--stdin-json] [--json]',
157
+ description: 'Manage global/project MCP configuration through the shared guarded MCP Config Domain v2.'
158
+ },
159
+ commands: {
160
+ usage: 'sks commands [--json]',
161
+ description: 'List every user-facing command with a short description.'
162
+ },
163
+ triwiki: {
164
+ usage: 'sks triwiki index|affected|proof-bank|graph-status|graph-lint|graph-query|atlas-status|atlas-lint|atlas-list|atlas-show|atlas-why [--json]',
165
+ description: 'Inspect TriWiki module cards, gate impact maps, affected graphs, proof bank status, and Architecture Map views.'
166
+ },
167
+ plan: {
168
+ usage: 'sks plan "task" [--json]',
169
+ description: 'Write a planning-only artifact under .sneakoscope/plans without editing code.'
170
+ },
171
+ status: {
172
+ usage: 'sks status [--json]',
173
+ description: 'Show the active mission, route, phase, proof, trust, official-subagent evidence, image voxel, DB safety, and next action.'
174
+ },
175
+ review: {
176
+ usage: 'sks review [--staged|--diff <ref>] [--fix] [--json]',
177
+ description: 'Review a diff with machine-evidence findings sorted above LLM review notes.'
178
+ },
179
+ usage: {
180
+ usage: `sks usage [${USAGE_TOPICS}]`,
181
+ description: 'Print copy-ready workflows for common tasks.'
182
+ },
183
+ quickstart: {
184
+ usage: 'sks quickstart',
185
+ description: 'Show the shortest safe setup and verification flow.'
186
+ },
187
+ bootstrap: {
188
+ usage: 'sks bootstrap [--install-scope global|project] [--local-only] [--json]',
189
+ description: 'Initialize the current project, install SKS Codex App files/skills, check Context7/Codex App/Codex CLI, and print ready true/false.'
190
+ },
191
+ root: {
192
+ usage: 'sks root [--json]',
193
+ description: 'Show whether SKS is using a project root or the per-user global SKS runtime root.'
194
+ },
195
+ update: {
196
+ usage: 'sks update status|check|review|now|rollback [--refresh] [--version <version>] [--json] [--dry-run]',
197
+ description: 'Inspect update-status.v3, review the exact staged operation, update the global package, or run guarded rollback.'
198
+ },
199
+ uninstall: {
200
+ usage: 'sks uninstall [--dry-run] [--yes] [--keep-config] [--keep-data] [--purge-projects] [--json]',
201
+ description: 'Remove SKS global skills, hooks, menu bar, state, temp files, and optional project residue while preserving user-owned content by default.'
202
+ },
203
+ deps: {
204
+ usage: 'sks deps check [--json] [--yes]',
205
+ description: 'Check Node/npm and Codex CLI readiness; pass --yes to repair missing Codex CLI tooling when supported.'
206
+ },
207
+ codex: {
208
+ usage: 'sks codex compatibility|version|update-status [--refresh]|update|doctor|schema|current [--json]',
209
+ description: 'Check Codex CLI compatibility/version/update status, run the official `codex update`, and inspect current manifest, capability, and hook-schema evidence.'
210
+ },
211
+ 'codex-app': {
212
+ usage: 'sks codex-app [check|status|restart|context-management [status|on|off]|context-1m [status|on|off]|product-design|chrome-extension|pat status|remote-control]',
213
+ description: 'Check Codex App integration, Desktop Bridge readiness, Product Design plugin readiness, Codex Chrome Extension web verification readiness, PAT-safe status, first-party MCP/plugin readiness, Codex CLI remote-control availability, and the opt-in Codex 1M context window toggle (each model gets its largest supported window) with automatic Codex restart. Provider routing is managed only by sks bridge.'
214
+ },
215
+ 'codex-native': {
216
+ usage: 'sks codex-native status|feature-broker|invocation-plan|init-deep [--json]',
217
+ description: 'Inspect Codex Native feature broker readiness, invocation routing, and managed memory setup.'
218
+ },
219
+ hooks: {
220
+ usage: 'sks hooks explain|status|trust-report|replay|codex-validate|warning-check ... [--json]',
221
+ description: 'Explain Codex hook events, validate current vendored event output schemas, replay fixtures, and enforce warning-zero SKS hook policies.'
222
+ },
223
+ remote: {
224
+ usage: 'sks remote readiness|machines|worker ... [--json]',
225
+ description: 'Inspect official Codex Remote readiness and the allowlisted proof-aware SSH stdio worker surface.'
226
+ },
227
+ 'mad-sks': {
228
+ usage: 'sks mad-sks plan|run|apply|sql|apply-migration|status|close|rollback-apply ... | sks --mad [--high]',
229
+ description: 'Open or inspect MAD-SKS scoped permission workflows, merged SQL-plane execution, and the native Codex permission launcher.'
230
+ },
231
+ 'auto-review': {
232
+ usage: 'sks auto-review status|enable|start [--high] | sks --Auto-review --high',
233
+ description: 'Enable Codex automatic approval review and launch the native Codex session with the auto-review profile.'
234
+ },
235
+ 'dollar-commands': {
236
+ usage: 'sks dollar-commands [--json]',
237
+ description: 'List Codex App $ commands such as $sks-dfix and $sks-naruto.'
238
+ },
239
+ 'fast-mode': {
240
+ usage: 'sks fast-mode on|off|status|clear [--project] [--json]',
241
+ description: 'Toggle the global Codex Desktop Fast (service tier) default used by $sks-fast-on/$sks-fast-off and keep project worker preference in sync; pass --project for project-local only.'
242
+ },
243
+ commit: {
244
+ usage: 'sks commit [--message "msg"] [--json]',
245
+ description: 'Stage current changes, summarize them, and create a simple git commit without the full SKS pipeline.'
246
+ },
247
+ 'commit-and-push': {
248
+ usage: 'sks commit-and-push [--message "msg"] [--json]',
249
+ description: 'Stage current changes, create a simple git commit, and push without the full SKS pipeline.'
250
+ },
251
+ dfix: {
252
+ usage: 'sks dfix',
253
+ description: 'Explain $sks-dfix ultralight direct-fix mode.'
254
+ },
255
+ 'qa-loop': {
256
+ usage: 'sks qa-loop prepare|answer|run|status ...',
257
+ description: 'Dogfood UI/API as human proxy with safety gates, safe fixes, rechecks, Codex Chrome Extension-first web UI evidence, report.'
258
+ },
259
+ ppt: {
260
+ usage: 'sks ppt build|status <mission-id|latest> [--json]',
261
+ description: 'Build or inspect $sks-ppt HTML/PDF artifacts from a sealed presentation decision contract.'
262
+ },
263
+ 'image-ux-review': {
264
+ usage: 'sks ux-review run --image <path> --fix --json | sks image-ux-review status <mission-id|latest> [--json]',
265
+ description: 'Run or inspect $sks-image-ux-review imagegen annotated UI/UX review artifacts, issue ledgers, safe fix loops, recapture, and proof gates.'
266
+ },
267
+ 'computer-use': {
268
+ usage: 'sks computer-use import|status|smoke|require ... [--json]',
269
+ description: 'Record native Mac/non-web Computer Use visual evidence while keeping web verification on the Chrome Extension path.'
270
+ },
271
+ context7: {
272
+ usage: 'sks context7 check|setup|tools|resolve|docs|evidence ...',
273
+ description: 'Check, configure, and call the local Context7 MCP requirement.'
274
+ },
275
+ 'super-search': {
276
+ usage: 'sks super-search doctor|run|x|fetch|status|inspect|sources|claims|cache|bench',
277
+ description: 'Run Super-Search provider-independent source intelligence.'
278
+ },
279
+ search: {
280
+ usage: 'sks search status|files|text|structure|symbol|context|benchmark|doctor [--json]',
281
+ description: 'Local SearchProvider engines for files/text/structure/symbol/context (no required rg/ast-grep/fd).'
282
+ },
283
+ recallpulse: {
284
+ usage: 'sks recallpulse run|status|eval|governance|checklist <mission-id|latest>',
285
+ description: 'Run report-only RecallPulse active recall, durable status, proof capsule, evidence envelope, and governance checks.'
286
+ },
287
+ pipeline: {
288
+ usage: 'sks pipeline status|resume|plan|answer ...',
289
+ description: 'Inspect the active skill-first route, materialized execution plan, ambiguity gates, and completion gates.'
290
+ },
291
+ guard: {
292
+ usage: 'sks guard check [--json]',
293
+ description: 'Check SKS harness self-protection lock, fingerprints, and source-repo exception state.'
294
+ },
295
+ conflicts: {
296
+ usage: 'sks conflicts check|prompt|cleanup --yes [--json]',
297
+ description: 'Detect other Codex harnesses such as OMX/DCodex, print a cleanup prompt, or quarantine them automatically.'
298
+ },
299
+ aliases: {
300
+ usage: 'sks aliases',
301
+ description: 'Show command aliases and npm binary names.'
302
+ },
303
+ cleanup: {
304
+ usage: 'sks cleanup plan|run|status|proof [--apply] [--json]',
305
+ description: 'Permanently blank active TriWiki without retaining a previous generation; preserve source and audit history.'
306
+ },
307
+ align: {
308
+ usage: 'sks align prepare|run|status|proof [mission|"scope"] [--json]',
309
+ description: 'Create or replace TriWiki as a code-only repository navigation graph with exact file/symbol/line coordinates and transactional publication.'
310
+ },
311
+ setup: {
312
+ usage: 'sks setup [--bootstrap] [--install-scope global|project] [--local-only] [--force] [--json]',
313
+ description: 'Initialize SKS state, Codex App files, hooks, skills, and rules.'
314
+ },
315
+ 'fix-path': {
316
+ usage: 'sks fix-path [--install-scope global|project] [--json]',
317
+ description: 'Refresh hook commands with the resolved SKS binary path.'
318
+ },
319
+ doctor: {
320
+ usage: 'sks doctor [--fix] [--local-only] [--json] [--install-scope global|project]',
321
+ description: 'Check and repair SKS generated files, while blocking setup if another Codex harness is detected.'
322
+ },
323
+ git: {
324
+ usage: 'sks git policy|install|status|doctor|precommit|publish-plan|summary [--json]',
325
+ description: 'Install and validate SKS git hygiene, merge-friendly shared TriWiki shards, ignored runtime state, and precommit checks.'
326
+ },
327
+ paths: {
328
+ usage: 'sks paths managed [--json]',
329
+ description: 'List SKS-owned managed paths and rollback eligibility.'
330
+ },
331
+ init: {
332
+ usage: 'sks init [--force] [--local-only] [--install-scope global|project]',
333
+ description: 'Initialize the local SKS control surface.'
334
+ },
335
+ selftest: {
336
+ usage: 'sks selftest [--mock]',
337
+ description: 'Run local smoke tests without calling a model.'
338
+ },
339
+ goal: {
340
+ usage: 'sks goal create|edit|pause|resume|clear|status ...',
341
+ description: 'Print a detailed Codex native /goal command without creating SKS Goal state.'
342
+ },
343
+ 'seo-geo-optimizer': {
344
+ usage: 'sks seo-geo-optimizer [seo|geo] doctor|audit|research|strategy|plan|apply|verify|status|rollback|fixture [mission|latest] [--mode seo|geo] [--target auto|website|docs|package] [--include-marketing] [--json]',
345
+ description: 'Run the unified SEO/GEO optimizer on the shared search-visibility kernel with mode-specific gates, marketing research/strategy, safe apply, and proof.'
346
+ },
347
+ research: {
348
+ usage: 'sks research prepare|run|status ...',
349
+ description: 'Run evidence-bound research missions with layered sources, independent review, paper, novelty, and falsification checks.'
350
+ },
351
+ proof: {
352
+ usage: 'sks proof show|latest|validate|export|smoke|trust report|validate|status|explain [latest|mission-id]|artifacts [mission-id|latest] [--required a,b]|stop-gate [check] [--route r] [--mission id]|hproof check [mission-id|latest]|field scan [--intent "task"] [--json|--md]',
353
+ description: 'Show, validate, export, or smoke-write the unified Completion Proof Engine surface, and run the evidence checks behind it: route trust-kernel validation, stop-gate resolution, schema-backed mission artifacts, the H-Proof done gate, and Potential Proof Field cones.'
354
+ },
355
+ eval: {
356
+ usage: 'sks eval run|compare|thresholds ...',
357
+ description: 'Run deterministic context-quality and performance evidence checks.'
358
+ },
359
+ wrongness: {
360
+ usage: 'sks wrongness list|show|add|resolve|summarize|validate|context|rules ...',
361
+ description: 'Record, retrieve, and validate TriWiki wrongness memory: negative evidence, failed assumptions, stale proof, visual/DB/hook mismatches, and avoidance rules.'
362
+ },
363
+ 'skill-dream': {
364
+ usage: 'sks skill-dream status|run|record [--json]',
365
+ description: 'Track generated-skill usage in lightweight JSON and periodically report keep, merge, prune, and improvement candidates without deleting skills automatically.'
366
+ },
367
+ 'code-structure': {
368
+ usage: 'sks code-structure scan [--json]',
369
+ description: 'Scan handwritten source files for 1000/2000/3000-line structure gates and split-review exceptions.'
370
+ },
371
+ wiki: {
372
+ usage: 'sks wiki coords|pack|refresh|publish|rebuild-index|validate|validate-shared|wrongness ...',
373
+ description: 'Build, refresh, publish shared shards, rebuild ignored indexes, validate, and attach wrongness-memory context to RGBA/trig LLM Wiki packs with attention.use_first and attention.hydrate_first for compact recall plus source hydration.'
374
+ },
375
+ memory: {
376
+ usage: 'sks memory build [--json] | sks memory gc [--dry-run]',
377
+ description: 'Project TriWiki context-pack memory into managed AGENTS.md blocks or run bounded memory cleanup.'
378
+ },
379
+ naruto: {
380
+ usage: 'sks naruto run "task" [--agents N] [--max-threads N] [--trusted-project] [--json] | sks naruto status|subagents|proof [latest|M-...] [--json] | sks naruto parent-summary --mission M-... --stdin [--json]',
381
+ description: 'Run or inspect the Codex official subagent workflow: an orchestrating parent (latest deep-tier standalone default), children on the newest model of their tier (Jev picks the tier on spawn when Jev mode is on), max_depth=1, and structured parent-thread completion evidence.'
382
+ },
383
+ reasoning: {
384
+ usage: 'sks reasoning ["prompt"] [--json]',
385
+ description: 'Show SKS temporary reasoning-effort routing: medium for simple tasks, high for logic, xhigh for research.'
386
+ },
387
+ gx: {
388
+ usage: 'sks gx init|render|validate|drift|snapshot [name]',
389
+ description: 'Create and verify deterministic SVG/HTML visual context cartridges.'
390
+ },
391
+ gc: {
392
+ usage: 'sks gc [--dry-run] [--json]',
393
+ description: 'Compact oversized logs and prune stale runtime artifacts.'
394
+ },
395
+ stats: {
396
+ usage: 'sks stats [--full] [--json]',
397
+ description: 'Show package and .sneakoscope storage size.'
398
+ },
399
+ 'mcp-server': {
400
+ usage: 'sks mcp-server [--expose-exec] [--probe]',
401
+ description: 'Run a modern stateless stdio MCP server exposing SKS read-only commands as tools for any MCP-capable agent host; --expose-exec also exposes non-read-only commands; --probe round-trips server/discover and tools/list, then exits.'
402
+ },
403
+ 'agent-bridge': {
404
+ usage: 'sks agent-bridge setup [--trusted-project] [--json] | async --prompt "task" [--tools status,stats] [--json]',
405
+ description: 'Publish the agent-bridge manifest or run selected read-only SKS tools with native Astra Async tool calling through the registered Codex-LB bridge.'
406
+ },
407
+ decision: {
408
+ usage: 'sks decision status|enable|disable|probe|evaluate [--json]',
409
+ description: 'Manage optional Jev decisions through the existing OpenRouter credential (off by default). Enable records cloud consent; a valid answer is compiled into SKS plan or context selection. There is no advisory mode and no local model runtime.'
410
+ },
411
+ imagegen: {
412
+ usage: 'sks imagegen status|models|enable --model <id>|disable|generate --prompt <text> --out <file> [--reference <file>] [--json]',
413
+ description: 'Generate images with the active SKS image mode. Off (default): Codex image generation, no pinned model. On: the OpenRouter image model chosen in SKS Control Center, called through the SKS Desktop Bridge. With Jev on, Jev picks the aspect ratio and quality you leave open. Each image gets a .sks-imagegen.json evidence file.'
184
414
  }
185
415
  };
416
+ function derivedRouteFields(entry) {
417
+ const activeRoutePolicy = entry.mutatesRouteState ? 'blocked-while-active'
418
+ : entry.readonly ? 'always'
419
+ : entry.diagnostic ? 'diagnostic-only'
420
+ : entry.allowedDuringActiveRoute ? 'always'
421
+ : undefined;
422
+ return {
423
+ ...(activeRoutePolicy ? { activeRoutePolicy } : {}),
424
+ ...((entry.ownedGateFiles?.length ?? 0) > 0 ? { ownsGates: true } : {})
425
+ };
426
+ }
186
427
  export const COMMAND_MANIFEST_LITE = COMMAND_MANIFEST_LITE_BASE.map((entry) => ({
187
428
  ...SAFE_COMMAND_CONTRACT_LITE,
188
- ...('readonly' in entry && entry.readonly === true ? { risk: 'R0', latency: 'fast' } : {}),
429
+ ...(entry.readonly === true ? { risk: 'R0', latency: 'fast' } : {}),
189
430
  ...entry,
431
+ ...derivedRouteFields(entry),
432
+ ...(COMMAND_HELP_LITE[entry.name] || {}),
190
433
  ...(COMMAND_CONTRACT_OVERRIDES_LITE[entry.name] || {})
191
434
  }));
192
435
  export function commandInputSchema(profile) {
@@ -209,45 +452,14 @@ export function commandInputSchema(profile) {
209
452
  }
210
453
  if (profile === 'stats')
211
454
  return objectSchema({ full: { type: 'boolean' }, json: { type: 'boolean' } });
212
- if (profile === 'stop-gate') {
213
- return objectSchema({
214
- route: boundedString(1, 80),
215
- mission: boundedString(1, 160),
216
- gate: boundedString(1, 1024),
217
- json: { type: 'boolean' }
218
- });
219
- }
220
455
  if (profile === 'proof') {
221
456
  return objectSchema({
222
- action: { type: 'string', enum: ['show', 'latest', 'validate', 'route'] },
457
+ action: { type: 'string', enum: ['show', 'latest', 'validate', 'route', 'trust', 'stop-gate'] },
223
458
  mission: boundedString(1, 160),
224
459
  completion: { type: 'boolean' },
225
- json: { type: 'boolean' }
226
- });
227
- }
228
- if (profile === 'trust') {
229
- return objectSchema({
230
- action: { type: 'string', enum: ['report', 'status', 'explain'] },
231
- mission: boundedString(1, 160),
232
- json: { type: 'boolean' }
233
- });
234
- }
235
- if (profile === 'gates') {
236
- return objectSchema({
237
- target: boundedString(1, 120),
238
- mode: { type: 'string', enum: ['preset', 'gate'] },
239
- full: { type: 'boolean' },
240
- json: { type: 'boolean' }
241
- });
242
- }
243
- if (profile === 'validate-artifacts') {
244
- return objectSchema({
245
- mission: boundedString(1, 160),
246
- required: {
247
- type: 'array',
248
- items: boundedString(1, 80),
249
- maxItems: 32
250
- },
460
+ trust_action: { type: 'string', enum: ['report', 'status', 'explain'] },
461
+ route: boundedString(1, 80),
462
+ gate: boundedString(1, 1024),
251
463
  json: { type: 'boolean' }
252
464
  });
253
465
  }