sneakoscope 7.1.0 → 7.3.0
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.
- package/README.md +9 -1
- package/config/architecture-budgets.v1.json +1 -8
- package/crates/sks-core/Cargo.lock +225 -1
- package/crates/sks-core/Cargo.toml +8 -1
- package/crates/sks-core/src/main.rs +7 -1
- package/crates/sks-core/src/search/files.rs +114 -0
- package/crates/sks-core/src/search/mod.rs +274 -0
- package/crates/sks-core/src/search/text.rs +175 -0
- package/dist/bin/sks-dispatch.js +4 -3
- package/dist/cli/command-manifest-lite.js +177 -6
- package/dist/cli/command-registry.js +42 -8
- package/dist/cli/help.js +30 -0
- package/dist/cli/install-helpers-codex-lb-config.js +9 -6
- package/dist/cli/install-helpers-codex-lb-selftest-chain.js +1 -1
- package/dist/cli/install-helpers-install-support.js +1 -1
- package/dist/cli/install-helpers.js +19 -9
- package/dist/cli/router.js +16 -3
- package/dist/commands/codex-app.js +40 -5
- package/dist/commands/doctor-profile.js +78 -0
- package/dist/commands/doctor.js +29 -69
- package/dist/commands/search.js +4 -0
- package/dist/config/skills-manifest.json +53 -60
- package/dist/core/agent-bridge/agent-manifest.js +22 -26
- package/dist/core/agent-bridge/host-capability-policy.js +109 -8
- package/dist/core/agent-bridge/host-capability-runtime.js +178 -50
- package/dist/core/agent-guidance/directive-registry.js +123 -0
- package/dist/core/agents/agent-effort-policy.js +45 -6
- package/dist/core/agents/agent-worker-pipeline.js +1 -3
- package/dist/core/agents/native-worker-backend-router.js +43 -19
- package/dist/core/auto-review.js +1 -3
- package/dist/core/code-structure.js +282 -19
- package/dist/core/codex/codex-config-guard.js +14 -4
- package/dist/core/codex/codex-config-toml.js +1 -3
- package/dist/core/codex-app/codex-agent-role-sync.js +1 -3
- package/dist/core/codex-app/codex-app-fast-ui-repair.js +14 -1
- package/dist/core/codex-app/codex-app-types.js +2 -3
- package/dist/core/codex-app/codex-desktop-routing-ownership.js +91 -0
- package/dist/core/codex-app/codex-hook-approval-probe.js +1 -3
- package/dist/core/codex-app/codex-hook-lifecycle.js +1 -3
- package/dist/core/codex-app/codex-init-deep.js +22 -10
- package/dist/core/codex-app/codex-model-catalog.js +384 -0
- package/dist/core/codex-app/codex-models-cache.js +160 -0
- package/dist/core/codex-app/desktop-routing-snapshot.js +233 -0
- package/dist/core/codex-app/glm-profile-installer.js +1 -3
- package/dist/core/codex-app/mcp-manager.js +1 -3
- package/dist/core/codex-app/menubar/constants.js +3 -0
- package/dist/core/codex-app/menubar/installer.js +11 -1
- package/dist/core/codex-app/multi-provider-router-support.js +202 -0
- package/dist/core/codex-app/multi-provider-router.js +379 -0
- package/dist/core/codex-app/openrouter-activate.js +189 -26
- package/dist/core/codex-app/openrouter-base-instructions.js +1 -0
- package/dist/core/codex-app/openrouter-model-catalog.js +217 -0
- package/dist/core/codex-app/role-model-catalog-priority.js +61 -0
- package/dist/core/codex-app.js +30 -6
- package/dist/core/codex-compat/codex-hook-semantic-validator.js +1 -3
- package/dist/core/codex-control/codex-app-server-v2-client.js +39 -2
- package/dist/core/codex-lb/codex-lb-env.js +1 -3
- package/dist/core/codex-lb/codex-lb-tool-catalog.js +6 -1
- package/dist/core/codex-native/codex-native-feature-broker.js +2 -6
- package/dist/core/codex-native/codex-native-interop-policy.js +1 -3
- package/dist/core/codex-native/codex-native-reference-cache.js +1 -3
- package/dist/core/codex-native/codex-native-reference-source.js +1 -3
- package/dist/core/codex-native/codex-native-repair-transaction.js +1 -3
- package/dist/core/codex-native/core-skill-manifest.js +3 -2
- package/dist/core/codex-native/native-capability-repair-matrix.js +1 -3
- package/dist/core/codex-plugins/codex-plugin-repair.js +1 -3
- package/dist/core/codex-runtime/codex-desktop-config-policy.js +4 -4
- package/dist/core/commands/agent-bridge-command.js +24 -3
- package/dist/core/commands/image-ux-review-command.js +5 -11
- package/dist/core/commands/menubar-command.js +1 -1
- package/dist/core/commands/naruto-command.js +40 -13
- package/dist/core/commands/pipeline-command.js +5 -2
- package/dist/core/commands/release-command.js +63 -1
- package/dist/core/commands/remote-command.js +18 -0
- package/dist/core/commands/search-command.js +151 -0
- package/dist/core/commands/telegram-command.js +251 -108
- package/dist/core/commands/uninstall-command.js +1 -1
- package/dist/core/config/secret-preservation.js +1 -3
- package/dist/core/context7-client.js +2 -1
- package/dist/core/db-review.js +704 -0
- package/dist/core/db-safety.js +17 -23
- package/dist/core/doctor/browser-use-repair.js +1 -3
- package/dist/core/doctor/codex-startup-config-repair.js +1 -3
- package/dist/core/doctor/computer-use-repair.js +1 -3
- package/dist/core/doctor/context7-mcp-repair.js +1 -3
- package/dist/core/doctor/current-project-guidance.js +1 -3
- package/dist/core/doctor/doctor-codex-startup-repair.js +1 -3
- package/dist/core/doctor/doctor-dirty-planner.js +2 -2
- package/dist/core/doctor/doctor-native-capability-repair.js +1 -3
- package/dist/core/doctor/doctor-transaction.js +1 -3
- package/dist/core/doctor/imagegen-repair.js +1 -3
- package/dist/core/doctor/legacy-global-hook-cleanup.js +1 -3
- package/dist/core/doctor/mcp-transport-collision-repair.js +1 -3
- package/dist/core/doctor/retired-managed-residue-private.js +1 -3
- package/dist/core/doctor/supabase-mcp-repair.js +1 -3
- package/dist/core/engineering-sanity-review.js +186 -0
- package/dist/core/errors/message.js +3 -0
- package/dist/core/evidence/evidence-schema.js +1 -3
- package/dist/core/feature-fixtures.js +1 -0
- package/dist/core/feature-registry.js +1 -3
- package/dist/core/fsx.js +13 -0
- package/dist/core/git-hygiene/shared-memory-publish.js +1 -3
- package/dist/core/git-hygiene/validators.js +1 -3
- package/dist/core/harness-guard.js +21 -3
- package/dist/core/hooks-runtime/hook-context.js +2 -2
- package/dist/core/image-ux-review/imagegen-adapter.js +52 -56
- package/dist/core/image-ux-review/real-callout-extractor.js +6 -1
- package/dist/core/image-ux-review.js +3 -5
- package/dist/core/imagegen/codex-lb-imagegen-target.js +70 -0
- package/dist/core/imagegen/imagegen-capability.js +11 -11
- package/dist/core/imagegen/imagegen-evidence.js +32 -0
- package/dist/core/init/skills.js +9 -11
- package/dist/core/init.js +4 -6
- package/dist/core/json/records.js +9 -0
- package/dist/core/json-schema-validator.js +1 -3
- package/dist/core/lean-engineering-policy.js +54 -0
- package/dist/core/loops/loop-continuation-enforcer.js +1 -3
- package/dist/core/mad-sks/sql-plane/mcp-executor.js +2 -1
- package/dist/core/mad-sks/sql-plane/policy.js +2 -1
- package/dist/core/managed-assets/managed-assets-manifest.js +4 -3
- package/dist/core/mcp-config/codex-cli-adapter.js +1 -3
- package/dist/core/mcp-config/config-reader.js +2 -3
- package/dist/core/mcp-config/guarded-patch.js +1 -1
- package/dist/core/mcp-config/health-check.js +2 -1
- package/dist/core/mcp-config/mutation.js +1 -1
- package/dist/core/mcp-config/restore.js +1 -1
- package/dist/core/mcp-config/secret-policy.js +1 -3
- package/dist/core/migration/migration-transaction-journal.js +3 -3
- package/dist/core/naruto/naruto-concurrency-governor.js +2 -2
- package/dist/core/perf/import-graph-budget.js +91 -1
- package/dist/core/pipeline/pipeline-plan-writer.js +1 -1
- package/dist/core/pipeline-internals/runtime-core.js +121 -23
- package/dist/core/pipeline-internals/runtime-gates.js +193 -4
- package/dist/core/pipeline.js +1 -1
- package/dist/core/ppt-review/slide-imagegen-review.js +7 -7
- package/dist/core/ppt.js +3 -3
- package/dist/core/product-design-app-server.js +2 -1
- package/dist/core/proof/fake-real-proof-policy.js +1 -3
- package/dist/core/proof/root-cause-policy.js +1 -3
- package/dist/core/proof/validation.js +1 -3
- package/dist/core/provider/model-router.js +4 -0
- package/dist/core/provider/provider-context.js +1 -3
- package/dist/core/providers/openrouter/openrouter-account.js +1 -3
- package/dist/core/quality/helper-dedup.js +0 -0
- package/dist/core/recallpulse.js +1 -1
- package/dist/core/release/file-ownership.js +26 -17
- package/dist/core/release/macos-menubar-proof.js +59 -1
- package/dist/core/release/main-push-guard.js +288 -24
- package/dist/core/release/main-push-receipt.js +10 -45
- package/dist/core/release/package-size-budget.js +1 -1
- package/dist/core/release/release-gate-contract.js +2 -0
- package/dist/core/release/release-pack-receipt.js +1 -1
- package/dist/core/release/release-proof-io.js +33 -0
- package/dist/core/release/release-upgrade-baseline.js +9 -0
- package/dist/core/release/runtime-script-pack-closure.js +153 -4
- package/dist/core/release/stage-publish.js +194 -0
- package/dist/core/remote/index.js +2 -0
- package/dist/core/remote/local-worker-client.js +35 -0
- package/dist/core/remote/machine-registry.js +18 -13
- package/dist/core/remote/owner-proof.js +1 -3
- package/dist/core/remote/protocol.js +1 -3
- package/dist/core/remote/readiness.js +1 -3
- package/dist/core/remote/session-binding.js +153 -0
- package/dist/core/remote/session-index.js +1 -3
- package/dist/core/remote/types.js +1 -0
- package/dist/core/remote/worker.js +228 -14
- package/dist/core/responses-stream.js +151 -0
- package/dist/core/routes/dollar-manifest-lite.js +1 -1
- package/dist/core/routes.js +8 -8
- package/dist/core/rust-accelerator.js +12 -2
- package/dist/core/safety/ssot-guard.js +1 -3
- package/dist/core/search/benchmark.js +358 -0
- package/dist/core/search/cache.js +65 -0
- package/dist/core/search/context.js +144 -0
- package/dist/core/search/doctor.js +74 -0
- package/dist/core/search/files.js +192 -0
- package/dist/core/search/index.js +5 -0
- package/dist/core/search/ipc.js +64 -0
- package/dist/core/search/provider.js +142 -0
- package/dist/core/search/rust-bridge.js +24 -0
- package/dist/core/search/structure.js +230 -0
- package/dist/core/search/symbol.js +272 -0
- package/dist/core/search/text.js +146 -0
- package/dist/core/search/types.js +22 -0
- package/dist/core/search/typescript-ls.js +215 -0
- package/dist/core/search-visibility/discovery.js +1 -3
- package/dist/core/skill-forge.js +1 -1
- package/dist/core/stop-gate/gate-evaluator.js +3 -3
- package/dist/core/stop-gate/stop-gate-check.js +1 -3
- package/dist/core/structured-output-adapter.js +62 -2
- package/dist/core/subagents/agent-catalog.js +56 -43
- package/dist/core/subagents/model-policy.js +17 -7
- package/dist/core/subagents/naruto-proof-projection.js +2 -6
- package/dist/core/subagents/official-subagent-config.js +1 -3
- package/dist/core/subagents/official-subagent-preparation.js +73 -10
- package/dist/core/subagents/official-subagent-prompt.js +85 -18
- package/dist/core/subagents/official-subagent-runner.js +10 -5
- package/dist/core/subagents/role-model-preferences.js +202 -44
- package/dist/core/subagents/subagent-evidence.js +1 -3
- package/dist/core/subagents/thread-budget.js +1 -1
- package/dist/core/subagents/triwiki-attention.js +1 -5
- package/dist/core/telegram/config.js +29 -12
- package/dist/core/telegram/hub.js +8 -2
- package/dist/core/telegram/index.js +2 -0
- package/dist/core/telegram/messages.js +8 -2
- package/dist/core/telegram/runtime-projection.js +8 -5
- package/dist/core/telegram/runtime.js +19 -9
- package/dist/core/telegram/service.js +181 -0
- package/dist/core/telegram/setup.js +220 -0
- package/dist/core/text/regex.js +3 -0
- package/dist/core/text/strings.js +6 -0
- package/dist/core/triwiki-wrongness/image-wrongness.js +1 -3
- package/dist/core/triwiki-wrongness/wrongness-ledger.js +1 -3
- package/dist/core/triwiki-wrongness/wrongness-proof-linker.js +1 -3
- package/dist/core/triwiki-wrongness/wrongness-retrieval.js +1 -3
- package/dist/core/triwiki-wrongness/wrongness-schema.js +1 -3
- package/dist/core/triwiki-wrongness/wrongness-trust-policy.js +1 -3
- package/dist/core/trust-kernel/completion-contract.js +1 -3
- package/dist/core/trust-kernel/route-contract.js +1 -3
- package/dist/core/update/update-migration-state.js +1 -3
- package/dist/core/update-check.js +20 -6
- package/dist/core/verification/diff-quality.js +3 -4
- package/dist/core/verification/impact-scan.js +36 -89
- package/dist/core/verification/mistake-rule-compiler.js +17 -4
- package/dist/core/version-manager.js +3 -20
- package/dist/core/version.js +1 -1
- package/dist/native/sks-menubar/Sources/ControlCenterWindowController.swift +23 -3
- package/dist/native/sks-menubar/Sources/ControlKit.swift +102 -0
- package/dist/native/sks-menubar/Sources/DiagnosticsViewController.swift +23 -11
- package/dist/native/sks-menubar/Sources/MCPServersViewController.swift +7 -3
- package/dist/native/sks-menubar/Sources/OperationCoordinator.swift +17 -1
- package/dist/native/sks-menubar/Sources/OverviewViewController.swift +22 -15
- package/dist/native/sks-menubar/Sources/ProcessClient.swift +15 -5
- package/dist/native/sks-menubar/Sources/ProvidersMultiProvider.swift +324 -0
- package/dist/native/sks-menubar/Sources/ProvidersOpenRouter.swift +154 -214
- package/dist/native/sks-menubar/Sources/ProvidersRoleModels.swift +252 -0
- package/dist/native/sks-menubar/Sources/ProvidersViewController.swift +77 -71
- package/dist/native/sks-menubar/Sources/RemoteTelegramViewController.swift +167 -51
- package/dist/native/sks-menubar/Sources/SettingsViewController.swift +14 -5
- package/dist/native/sks-menubar/Sources/SidebarItem.swift +15 -1
- package/dist/native/sks-menubar/Sources/StatusItemController.swift +2 -2
- package/dist/native/sks-menubar/Sources/UpdatesViewController.swift +16 -12
- package/dist/scripts/agent-guidance-dedup-check.js +23 -0
- package/dist/scripts/agent-message-bus-reader-check.js +1 -1
- package/dist/scripts/all-feature-deep-completion-check.js +1 -1
- package/dist/scripts/appshots-thread-attachment-discovery-check.js +1 -1
- package/dist/scripts/architecture-guard-check.js +1 -2
- package/dist/scripts/certificate-sla-check.js +1 -1
- package/dist/scripts/cli-output-consistency-check.js +1 -1
- package/dist/scripts/codex-0-134-runner-truth-check.js +1 -1
- package/dist/scripts/codex-0138-capability-artifact-check.js +1 -1
- package/dist/scripts/codex-0138-capability-check.js +1 -1
- package/dist/scripts/codex-0138-doctor-check.js +1 -1
- package/dist/scripts/codex-0138-feature-probes-check.js +1 -1
- package/dist/scripts/codex-0144-app-server-v2-check.js +1 -1
- package/dist/scripts/codex-0144-binary-identity-check.js +1 -1
- package/dist/scripts/codex-0144-capability-check.js +1 -1
- package/dist/scripts/codex-0144-core-real-probes-check.js +1 -1
- package/dist/scripts/codex-0144-manifest-check.js +1 -1
- package/dist/scripts/codex-0144-policy-check.js +1 -1
- package/dist/scripts/codex-0144-thread-store-check.js +1 -1
- package/dist/scripts/codex-agent-role-rich-content-check.js +2 -2
- package/dist/scripts/codex-agent-role-sync-check.js +2 -2
- package/dist/scripts/codex-agent-type-routing-check.js +2 -2
- package/dist/scripts/codex-app-execution-profile-check.js +2 -2
- package/dist/scripts/codex-app-handoff-check.js +1 -1
- package/dist/scripts/codex-app-handoff-launch-check.js +1 -1
- package/dist/scripts/codex-control-tool-output-continuity-audit-check.js +1 -1
- package/dist/scripts/codex-lb-fast-ui-preservation-check.js +1 -3
- package/dist/scripts/codex-native-feature-broker-blackbox.js +2 -2
- package/dist/scripts/codex-native-feature-broker-check.js +2 -2
- package/dist/scripts/{sks-3-1-6-directive-check-lib.js → codex-native-gate-lib.js} +5 -5
- package/dist/scripts/codex-native-harness-compat-check.js +2 -2
- package/dist/scripts/codex-native-hook-lifecycle-proof-check.js +2 -2
- package/dist/scripts/codex-plugin-app-template-policy-check.js +1 -1
- package/dist/scripts/codex-sdk-backend-router-check.js +1 -1
- package/dist/scripts/codex-sdk-capability-check.js +1 -1
- package/dist/scripts/context7-evidence-dedupe-check.js +1 -1
- package/dist/scripts/core-skill-card-schema-check.js +1 -1
- package/dist/scripts/core-skill-deployment-snapshot-check.js +1 -1
- package/dist/scripts/core-skill-heldout-validation-check.js +1 -1
- package/dist/scripts/core-skill-no-inference-optimizer-check.js +1 -1
- package/dist/scripts/core-skill-patch-check.js +1 -1
- package/dist/scripts/core-skill-route-runtime-integration-check.js +1 -1
- package/dist/scripts/current-command-surface-check.js +1 -1
- package/dist/scripts/current-surface-update-e2e-check.js +4 -1
- package/dist/scripts/current-upgrade-matrix-check.js +1 -1
- package/dist/scripts/dfix-fixture-check.js +1 -1
- package/dist/scripts/dfix-patch-handoff-check.js +1 -1
- package/dist/scripts/dfix-verification-check.js +1 -1
- package/dist/scripts/dfix-verification-recommendation-check.js +1 -1
- package/dist/scripts/docs-truthfulness-check.js +16 -3
- package/dist/scripts/doctor-codex-app-harness-check.js +2 -2
- package/dist/scripts/evidence-flagship-coverage-check.js +1 -1
- package/dist/scripts/{sks-1-18-gate-lib.js → gate-lib.js} +1 -1
- package/dist/scripts/gate-policy-audit-check.js +4 -1
- package/dist/scripts/git-worktree-checkpoint-check.js +1 -1
- package/dist/scripts/git-worktree-cross-rebase-check.js +1 -1
- package/dist/scripts/git-worktree-diff-envelope-check.js +1 -1
- package/dist/scripts/git-worktree-dirty-lock-check.js +1 -1
- package/dist/scripts/git-worktree-dirty-main-detection-check.js +1 -1
- package/dist/scripts/git-worktree-integration-primary-check.js +1 -1
- package/dist/scripts/git-worktree-manifest-append-check.js +1 -1
- package/dist/scripts/git-worktree-untracked-diff-check.js +1 -1
- package/dist/scripts/harness-benchmark-check.js +1 -1
- package/dist/scripts/helper-dedup-check.js +62 -0
- package/dist/scripts/hook-latency-budget-check.js +1 -1
- package/dist/scripts/image-artifact-path-contract-check.js +1 -1
- package/dist/scripts/imagegen-real-smoke-check.js +2 -5
- package/dist/scripts/installed-package-smoke-check.js +1 -1
- package/dist/scripts/legacy-gate-inventory-check.js +1 -1
- package/dist/scripts/legacy-gate-purge-check.js +1 -1
- package/dist/scripts/legacy-strong-inventory-check.js +1 -1
- package/dist/scripts/lib/codex-sdk-gate-lib.js +1 -1
- package/dist/scripts/mad-sks-launch-sql-plane-boundary-check.js +1 -1
- package/dist/scripts/mad-sks-sql-plane-capability-check.js +1 -1
- package/dist/scripts/mad-sks-sql-plane-lifecycle-hook-decision-check.js +1 -1
- package/dist/scripts/mad-sks-sql-plane-result-lifecycle-check.js +1 -1
- package/dist/scripts/managed-config-merge-check.js +1 -1
- package/dist/scripts/mcp-plugin-inventory-check.js +1 -1
- package/dist/scripts/model-call-concurrency-check.js +1 -1
- package/dist/scripts/mutation-callsite-coverage-check.js +1 -1
- package/dist/scripts/naruto-ssot-gate-aliases-check.js +1 -1
- package/dist/scripts/naruto-ssot-pipeline-default-check.js +1 -1
- package/dist/scripts/naruto-ssot-route-normalization-check.js +1 -1
- package/dist/scripts/naruto-ssot-routing-check.js +1 -1
- package/dist/scripts/naruto-worktree-coding-blackbox.js +1 -1
- package/dist/scripts/native-capability-repair-matrix-check.js +1 -1
- package/dist/scripts/native-image-generation-repair-check.js +1 -1
- package/dist/scripts/official-subagent-workflow-check.js +3 -3
- package/dist/scripts/package-published-contract-check.js +37 -4
- package/dist/scripts/packlist-performance-check.js +17 -1
- package/dist/scripts/pipeline-codex-native-doctor-mad-routing-real-blackbox.js +1 -3
- package/dist/scripts/ppt-real-export-adapter-check.js +1 -1
- package/dist/scripts/ppt-real-imagegen-wiring-check.js +1 -1
- package/dist/scripts/ppt-reexport-rereview-check.js +1 -1
- package/dist/scripts/prepublish-fast-check.js +1 -1
- package/dist/scripts/probe-memoization-check.js +2 -2
- package/dist/scripts/prompt-placeholder-guard-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-capability-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-cli-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-confirmation-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-gate-lifecycle-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-launch-check.js +1 -1
- package/dist/scripts/qa-loop-app-handoff-status-lifecycle-check.js +1 -1
- package/dist/scripts/qa-loop-budget-policy-check.js +1 -1
- package/dist/scripts/qa-loop-effort-escalation-check.js +1 -1
- package/dist/scripts/qa-loop-execution-profile-routing-check.js +2 -2
- package/dist/scripts/qa-loop-image-path-exposure-check.js +1 -1
- package/dist/scripts/qa-loop-image-path-prompt-injection-check.js +1 -1
- package/dist/scripts/{sks-1-12-real-execution-check-lib.js → real-execution-check-lib.js} +1 -1
- package/dist/scripts/release-affected-selector-check.js +1 -1
- package/dist/scripts/release-aggressive-resource-governor-check.js +1 -1
- package/dist/scripts/release-cache-glob-hashing-check.js +1 -1
- package/dist/scripts/release-cache-input-classifier-check.js +1 -1
- package/dist/scripts/release-cache-neutralization-report-check.js +1 -1
- package/dist/scripts/release-cache-version-neutral-fixture-check.js +1 -1
- package/dist/scripts/release-dynamic-presets-check.js +2 -2
- package/dist/scripts/release-full-parallelism-blackbox.js +1 -1
- package/dist/scripts/release-gate-batch-runner-check.js +1 -1
- package/dist/scripts/release-gate-budget-check.js +1 -1
- package/dist/scripts/release-gate-dag-runner-check.js +1 -1
- package/dist/scripts/release-latency-slo-check.js +1 -1
- package/dist/scripts/release-metadata-check.js +256 -2
- package/dist/scripts/release-parallel-speed-budget-check.js +1 -1
- package/dist/scripts/release-proof-truth-check.js +1 -1
- package/dist/scripts/release-provenance-check.js +4 -2
- package/dist/scripts/release-runtime-truth-matrix-check.js +1 -1
- package/dist/scripts/research-blueprint-densifier-check.js +1 -1
- package/dist/scripts/research-claim-builder-check.js +1 -1
- package/dist/scripts/research-complete-package-fixture-check.js +1 -1
- package/dist/scripts/research-execution-profile-routing-check.js +2 -2
- package/dist/scripts/research-final-reviewer-blackbox.js +1 -1
- package/dist/scripts/{sks-3-1-4-directive-check-lib.js → runtime-domain-gate-lib.js} +2 -2
- package/dist/scripts/runtime-proof-summary-check.js +1 -1
- package/dist/scripts/runtime-script-pack-closure-check.js +7 -1
- package/dist/scripts/scheduler-batch-dispatch-check.js +1 -1
- package/dist/scripts/scheduler-parallel-proof-consistency-check.js +1 -1
- package/dist/scripts/scheduler-utilization-integral-check.js +1 -1
- package/dist/scripts/search-visibility-gate-lib.js +1 -1
- package/dist/scripts/secret-preservation-check.js +1 -1
- package/dist/scripts/seo-geo-geo-disambiguation-check.js +1 -1
- package/dist/scripts/seo-geo-skill-rich-content-check.js +1 -1
- package/dist/scripts/side-effect-runtime-report-check.js +1 -1
- package/dist/scripts/{sks-3-1-8-check-lib.js → skill-fixture-check-lib.js} +1 -1
- package/dist/scripts/skill-name-canonicalizer-check.js +1 -1
- package/dist/scripts/skills-manifest-continuity-check.js +1 -1
- package/dist/scripts/sks-uninstall-regression-check.js +1 -1
- package/dist/scripts/sksd-daemon-check.js +1 -1
- package/dist/scripts/super-search-provider-interface-check.js +1 -1
- package/dist/scripts/triwiki-cache-key-check.js +1 -1
- package/dist/scripts/triwiki-proof-bank-blackbox.js +2 -2
- package/dist/scripts/triwiki-proof-bank-check.js +1 -1
- package/dist/scripts/triwiki-proof-card-check.js +1 -1
- package/dist/scripts/type-surface-codex-app-check.js +2 -2
- package/dist/scripts/{sks-3-1-5-directive-check-lib.js → typed-routing-gate-lib.js} +2 -2
- package/dist/scripts/ultra-router-auto-router-check.js +1 -1
- package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +1 -1
- package/dist/scripts/ux-review-patch-diff-recheck-check.js +1 -1
- package/dist/scripts/ux-review-run-wires-imagegen-check.js +9 -2
- package/package.json +5 -7
- package/release-gates.v2.json +66 -11
- package/runtime-required-scripts.json +138 -14
- package/config/bench-baseline.json +0 -7
- package/dist/core/codex-app/sks-menubar.js +0 -1
- package/dist/core/release/release-closure-contract.js +0 -30
- package/dist/core/release/release-closure-helpers.js +0 -293
- package/dist/core/release/release-closure-validation.js +0 -284
- package/dist/core/release/release-closure.js +0 -163
- package/dist/scripts/build-dist.js +0 -124
- package/dist/scripts/build-once-runner-check.js +0 -6
- package/dist/scripts/canonical-test-runner.js +0 -234
- package/dist/scripts/changelog-check.js +0 -45
- package/dist/scripts/check-architecture.js +0 -295
- package/dist/scripts/check-cli-entrypoint.js +0 -41
- package/dist/scripts/check-command-module-budget.js +0 -77
- package/dist/scripts/check-feature-quality.js +0 -51
- package/dist/scripts/check-legacy-free.js +0 -64
- package/dist/scripts/check-pipeline-budget.js +0 -49
- package/dist/scripts/check-pipeline-runtime.js +0 -16
- package/dist/scripts/check-publish-tag.js +0 -56
- package/dist/scripts/check-route-modularity.js +0 -72
- package/dist/scripts/codex-0140-capability-check.js +0 -14
- package/dist/scripts/codex-0140-feature-probes-check.js +0 -23
- package/dist/scripts/codex-permission-profiles-check.js +0 -34
- package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -49
- package/dist/scripts/competitor-scorecard-check.js +0 -24
- package/dist/scripts/core-skill-no-drift-check.js +0 -23
- package/dist/scripts/db-route-materialization-check.js +0 -32
- package/dist/scripts/doctor-context7-mcp-repair-blackbox.js +0 -15
- package/dist/scripts/doctor-fastpath-check.js +0 -25
- package/dist/scripts/doctor-fix-production-blackbox.js +0 -35
- package/dist/scripts/doctor-idempotence-check.js +0 -6
- package/dist/scripts/doctor-ops-semantics-check.js +0 -83
- package/dist/scripts/doctor-startup-config-repair-blackbox.js +0 -18
- package/dist/scripts/doctor-supabase-mcp-repair-blackbox.js +0 -13
- package/dist/scripts/ensure-bin-executable.js +0 -16
- package/dist/scripts/fsx-hotpath-check.js +0 -9
- package/dist/scripts/high-risk-contracts-check.js +0 -183
- package/dist/scripts/hook-latency-quantum-check.js +0 -120
- package/dist/scripts/import-graph-budget-check.js +0 -9
- package/dist/scripts/mcp-tool-naming-parity-check.js +0 -14
- package/dist/scripts/naruto-codex-e2e-check.js +0 -105
- package/dist/scripts/naruto-write-e2e-check.js +0 -31
- package/dist/scripts/native-capability-postcheck-check.js +0 -16
- package/dist/scripts/ops-diagnostics-bundle-check.js +0 -11
- package/dist/scripts/parallel-production-smoke-check.js +0 -20
- package/dist/scripts/perf-budget-check.js +0 -12
- package/dist/scripts/project-skill-dedupe-blackbox.js +0 -62
- package/dist/scripts/release-dag-full-coverage-check.js +0 -98
- package/dist/scripts/release-dist-freshness-check.js +0 -6
- package/dist/scripts/release-file-ownership-check.js +0 -35
- package/dist/scripts/release-gate-script-parity-check.js +0 -148
- package/dist/scripts/release-macos-menubar-proof.js +0 -167
- package/dist/scripts/release-main-push-guard.js +0 -37
- package/dist/scripts/release-main-push-receipt.js +0 -43
- package/dist/scripts/release-metadata-1-19-check.js +0 -257
- package/dist/scripts/release-version-truth-check.js +0 -138
- package/dist/scripts/retention-apply-smoke-check.js +0 -19
- package/dist/scripts/retention-budget-check.js +0 -6
- package/dist/scripts/retention-dry-run-check.js +0 -8
- package/dist/scripts/rollback-recovery-smoke-check.js +0 -70
- package/dist/scripts/route-intent-regression-check.js +0 -42
- package/dist/scripts/runtime-current-terminal-check.js +0 -108
- package/dist/scripts/runtime-dist-parity-check.js +0 -76
- package/dist/scripts/runtime-no-src-mjs-check.js +0 -30
- package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -58
- package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -53
- package/dist/scripts/secret-preservation-guard-check.js +0 -36
- package/dist/scripts/seo-marketing-truthfulness-check.js +0 -98
- package/dist/scripts/seo-metadata-sync-check.js +0 -60
- package/dist/scripts/sizecheck.js +0 -148
- package/dist/scripts/sks-menubar-install-check.js +0 -333
- package/dist/scripts/supabase-secret-preservation-blackbox.js +0 -28
- package/dist/scripts/super-search-live-smoke-check.js +0 -115
- package/dist/scripts/super-search-local-http-smoke-check.js +0 -16
- package/dist/scripts/super-search-offline-contract-check.js +0 -43
- package/dist/scripts/update-fastpath-check.js +0 -28
- package/dist/scripts/update-preserves-supabase-keys-blackbox.js +0 -26
- package/dist/scripts/upgrade-migration-matrix-check.js +0 -351
- package/dist/scripts/write-build-manifest.js +0 -70
- package/dist/scripts/zellij-capability-check.js +0 -13
- package/dist/scripts/zellij-developer-controls-check.js +0 -16
- package/dist/scripts/zellij-doctor-readiness-check.js +0 -49
- package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -19
- package/dist/scripts/zellij-fake-adapter-check.js +0 -31
- package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
- package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -348
- package/dist/scripts/zellij-homebrew-policy-check.js +0 -3
- package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -21
- package/dist/scripts/zellij-lane-renderer-check.js +0 -78
- package/dist/scripts/zellij-launch-command-truth-check.js +0 -62
- package/dist/scripts/zellij-layout-valid-check.js +0 -120
- package/dist/scripts/zellij-pane-creation-lock-metrics-check.js +0 -10
- package/dist/scripts/zellij-pane-lock-concurrency-blackbox.js +0 -78
- package/dist/scripts/zellij-pane-lock-does-not-block-worker-check.js +0 -12
- package/dist/scripts/zellij-pane-lock-open-worker-integration-blackbox.js +0 -134
- package/dist/scripts/zellij-qa-app-handoff-status-check.js +0 -7
- package/dist/scripts/zellij-right-column-geometry-proof.js +0 -158
- package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -20
- package/dist/scripts/zellij-right-column-manager-check.js +0 -24
- package/dist/scripts/zellij-self-heal-check.js +0 -3
- package/dist/scripts/zellij-self-heal-dry-run-check.js +0 -3
- package/dist/scripts/zellij-self-heal-status-contract-check.js +0 -3
- package/dist/scripts/zellij-self-heal-typed-blackbox.js +0 -3
- package/dist/scripts/zellij-slot-column-anchor-check.js +0 -65
- package/dist/scripts/zellij-slot-column-anchor-telemetry-check.js +0 -8
- package/dist/scripts/zellij-slot-only-ui-check.js +0 -29
- package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -149
- package/dist/scripts/zellij-slot-pane-stale-detection-check.js +0 -65
- package/dist/scripts/zellij-slot-pane-telemetry-renderer-check.js +0 -11
- package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -58
- package/dist/scripts/zellij-slot-telemetry-check.js +0 -38
- package/dist/scripts/zellij-slot-telemetry-incremental-check.js +0 -46
- package/dist/scripts/zellij-slot-telemetry-live-flush-check.js +0 -55
- package/dist/scripts/zellij-slot-telemetry-performance-check.js +0 -32
- package/dist/scripts/zellij-slot-telemetry-real-blackbox.js +0 -19
- package/dist/scripts/zellij-slot-telemetry-renderer-check.js +0 -11
- package/dist/scripts/zellij-slot-telemetry-runtime-check.js +0 -23
- package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -45
- package/dist/scripts/zellij-stacked-capability-routing-check.js +0 -9
- package/dist/scripts/zellij-stacked-fallback-integration-blackbox.js +0 -78
- package/dist/scripts/zellij-stacked-version-matrix-check.js +0 -29
- package/dist/scripts/zellij-stacked-version-parser-check.js +0 -19
- package/dist/scripts/zellij-ui-design-check.js +0 -92
- package/dist/scripts/zellij-update-missing-self-heal-check.js +0 -3
- package/dist/scripts/zellij-update-prompt-matrix-check.js +0 -16
- package/dist/scripts/zellij-update-prompt-mode-check.js +0 -18
- package/dist/scripts/zellij-update-prompt-safety-check.js +0 -8
- package/dist/scripts/zellij-worker-pane-manager-check.js +0 -108
- package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
- package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -199
- /package/dist/scripts/{sks-1-11-gate-lib.js → sks-cli-gate-lib.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertGate, emitGate, readJson, readText } from './
|
|
1
|
+
import { assertGate, emitGate, readJson, readText } from './gate-lib.js';
|
|
2
2
|
const gates = (readJson('release-gates.v2.json').gates || []);
|
|
3
3
|
const migration = readText('docs/sks-4-migration.md');
|
|
4
4
|
const currentVersion = String(readJson('package.json').version || '');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import { assertGate, emitGate, readText, root } from './
|
|
2
|
+
import { assertGate, emitGate, readText, root } from './gate-lib.js';
|
|
3
3
|
const registry = readText('src/cli/command-registry.ts');
|
|
4
4
|
const routes = readText('src/core/routes.ts');
|
|
5
5
|
const skills = readText('src/core/init/skills.ts');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertGate, emitGate, importDist, readJson, readText, root } from './
|
|
1
|
+
import { assertGate, emitGate, importDist, readJson, readText, root } from './gate-lib.js';
|
|
2
2
|
const impactMod = await importDist('core/triwiki/triwiki-gate-impact-map.js');
|
|
3
3
|
const map = impactMod.buildTriWikiGateImpactMap(root);
|
|
4
4
|
const migration = readText('docs/sks-4-migration.md');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { tmpdir } from '../../core/fsx.js';
|
|
4
|
-
import { assertGate, emitGate, importDist, readJson, readText, root } from '../
|
|
4
|
+
import { assertGate, emitGate, importDist, readJson, readText, root } from '../gate-lib.js';
|
|
5
5
|
export { assertGate, emitGate, importDist, readJson, readText, root };
|
|
6
6
|
export async function readJsonFile(file) {
|
|
7
7
|
return JSON.parse(await fs.readFile(file, 'utf8'));
|
|
@@ -5,7 +5,7 @@ import os from 'node:os';
|
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
import { madHighCommand } from '../core/commands/mad-sks-command.js';
|
|
7
7
|
import { checkDbOperation } from '../core/db-safety.js';
|
|
8
|
-
import { assertGate, emitGate } from './
|
|
8
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
9
9
|
const original = {
|
|
10
10
|
cwd: process.cwd(),
|
|
11
11
|
home: process.env.HOME,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, importDist } from './
|
|
5
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
6
6
|
const missionMod = await importDist('core/mission.js');
|
|
7
7
|
const capMod = await importDist('core/mad-sks/sql-plane/capability.js');
|
|
8
8
|
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-mad-sks-sql-plane-cap-'));
|
|
@@ -5,7 +5,7 @@ import path from 'node:path';
|
|
|
5
5
|
import { checkDbOperation, madSksSqlPlaneLifecycleHookFromDecision } from '../core/db-safety.js';
|
|
6
6
|
import { createMadSksSqlPlaneCapability, MAD_SKS_SQL_PLANE_ACK } from '../core/mad-sks/sql-plane/capability.js';
|
|
7
7
|
import { createMission } from '../core/mission.js';
|
|
8
|
-
import { assertGate, emitGate } from './
|
|
8
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
9
9
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-mad-sks-sql-plane-hook-decision-'));
|
|
10
10
|
const mission = await createMission(root, { mode: 'mad-sks', prompt: 'hook fixture' });
|
|
11
11
|
await createMadSksSqlPlaneCapability(root, { missionId: mission.id, ack: MAD_SKS_SQL_PLANE_ACK, ttlMs: 60000, projectRef: 'fixture-project-ref', status: 'active' });
|
|
@@ -6,7 +6,7 @@ import { checkDbOperation, madSksSqlPlaneLifecycleHookFromDecision } from '../co
|
|
|
6
6
|
import { evaluateHookPayload } from '../core/hooks-runtime.js';
|
|
7
7
|
import { createMadSksSqlPlaneCapability, MAD_SKS_SQL_PLANE_ACK } from '../core/mad-sks/sql-plane/capability.js';
|
|
8
8
|
import { createMission, missionDir } from '../core/mission.js';
|
|
9
|
-
import { assertGate, emitGate } from './
|
|
9
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
10
10
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-mad-sks-sql-plane-mcp-result-'));
|
|
11
11
|
const mission = await createMission(root, { mode: 'mad-sks', prompt: 'mcp result fixture' });
|
|
12
12
|
await createMadSksSqlPlaneCapability(root, { missionId: mission.id, ack: MAD_SKS_SQL_PLANE_ACK, ttlMs: 60000, projectRef: 'fixture-project-ref', status: 'active' });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'node:fs/promises';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { assertGate, emitGate, makeTempRoot, writeText } from './
|
|
4
|
+
import { assertGate, emitGate, makeTempRoot, writeText } from './skill-fixture-check-lib.js';
|
|
5
5
|
import { writeManagedEnvConfig, writeManagedJsonConfig, writeManagedTomlConfig } from '../core/config/managed-config-merge.js';
|
|
6
6
|
const root = await makeTempRoot('sks-managed-merge-');
|
|
7
7
|
const envFile = path.join(root, '.env.local');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
process.env.SKS_CODEX_0138_FAKE = '1';
|
|
4
4
|
process.env.SKS_CODEX_PLUGIN_JSON_FAKE = '1';
|
|
5
5
|
const pluginMod = await importDist('core/codex-plugins/codex-plugin-json.js');
|
|
@@ -4,7 +4,7 @@ import os from 'node:os';
|
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { withModelCallSlot } from '../core/codex-control/model-call-concurrency.js';
|
|
6
6
|
import { writeParallelRuntimeProof } from '../core/agents/parallel-runtime-proof.js';
|
|
7
|
-
import { assertGate, emitGate } from './
|
|
7
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
8
8
|
const missionId = 'M-model-call-concurrency';
|
|
9
9
|
const ledgerRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-model-call-'));
|
|
10
10
|
await Promise.all(Array.from({ length: 8 }, (_, i) => withModelCallSlot({ root: ledgerRoot, missionId, provider: 'codex-sdk', budget: 3, slotId: `slot-${i}`, generationIndex: 1, sessionId: `s-${i}`, backend: 'codex-sdk' }, () => new Promise((resolve) => setTimeout(resolve, 80)))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { assertGate, emitGate, root } from './
|
|
4
|
+
import { assertGate, emitGate, root } from './gate-lib.js';
|
|
5
5
|
const allowlistPath = path.join(root, 'safety-mutation-allowlist.json');
|
|
6
6
|
const allowlist = readAllowlist();
|
|
7
7
|
const allowlistHits = new Set();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const proofPolicy = readText('src/core/proof/route-proof-policy.ts');
|
|
4
4
|
const proofGate = readText('src/core/proof/route-proof-gate.ts');
|
|
5
5
|
const runtimeGates = readText('src/core/pipeline-internals/runtime-gates.ts');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const runtimeCore = readText('src/core/pipeline-internals/runtime-core.ts');
|
|
4
4
|
const agentPlan = readText('src/core/agents/agent-plan.ts');
|
|
5
5
|
const routes = readText('src/core/routes.ts');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
const routes = await importDist('core/routes.js');
|
|
4
4
|
const removedTeam = routes.routePrompt('$Team fix a release bug');
|
|
5
5
|
const explicitNaruto = routes.routePrompt('$Naruto fix a release bug');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist, readText } from './
|
|
2
|
+
import { assertGate, emitGate, importDist, readText } from './gate-lib.js';
|
|
3
3
|
const routes = await importDist('core/routes.js');
|
|
4
4
|
const removedTeam = routes.routePrompt('$Team fix the release gate');
|
|
5
5
|
const ordinaryWork = routes.routePrompt('implement a fix for the release gate');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, importDist } from './
|
|
5
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
6
6
|
import { makeGitFixture, run } from './lib/git-worktree-fixture.js';
|
|
7
7
|
const managerMod = await importDist('core/git/git-worktree-manager.js');
|
|
8
8
|
const diffMod = await importDist('core/git/git-worktree-diff.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, makeTempRoot } from './
|
|
2
|
+
import { assertGate, emitGate, makeTempRoot } from './skill-fixture-check-lib.js';
|
|
3
3
|
import { buildNativeCapabilityRepairMatrix, NATIVE_CAPABILITY_IDS } from '../core/codex-native/native-capability-repair-matrix.js';
|
|
4
4
|
const root = await makeTempRoot('sks-native-matrix-');
|
|
5
5
|
const matrix = await buildNativeCapabilityRepairMatrix({ root, fixture: 'manual-required' });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, makeTempRoot } from './
|
|
2
|
+
import { assertGate, emitGate, makeTempRoot } from './skill-fixture-check-lib.js';
|
|
3
3
|
import { repairNativeCapabilities } from '../core/codex-native/native-capability-repair.js';
|
|
4
4
|
const root = await makeTempRoot('sks-native-image-');
|
|
5
5
|
const report = await repairNativeCapabilities({ root, fix: true, yes: true, capabilities: ['image_generation', 'image_followup_edit', 'saved_artifact_path_contract'], fixture: 'all-repairable' });
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, root } from './
|
|
5
|
+
import { assertGate, emitGate, root } from './gate-lib.js';
|
|
6
6
|
import { buildOfficialSubagentPrompt } from '../core/subagents/official-subagent-prompt.js';
|
|
7
7
|
import { SUBAGENT_PARENT_SUMMARY_FILENAME, persistOrReuseTrustworthySubagentParentSummary, writeSubagentEvidence } from '../core/subagents/subagent-evidence.js';
|
|
8
|
-
import { resolveSubagentThreadBudget } from '../core/subagents/thread-budget.js';
|
|
8
|
+
import { DEFAULT_NARUTO_REQUESTED_SUBAGENTS, resolveSubagentThreadBudget } from '../core/subagents/thread-budget.js';
|
|
9
9
|
import { runOfficialSubagentWorkflow } from '../core/subagents/official-subagent-runner.js';
|
|
10
10
|
const counts = [4, 8, 12, 20, 100].map((requested) => resolveSubagentThreadBudget({
|
|
11
11
|
requested,
|
|
12
12
|
configuredMaxThreads: requested === 20 ? 12 : undefined
|
|
13
13
|
}));
|
|
14
14
|
const implicitCount = resolveSubagentThreadBudget();
|
|
15
|
-
assertGate(implicitCount.requestedSubagents ===
|
|
15
|
+
assertGate(implicitCount.requestedSubagents === DEFAULT_NARUTO_REQUESTED_SUBAGENTS, `implicit Naruto must default to ${DEFAULT_NARUTO_REQUESTED_SUBAGENTS} independent children (automatic bounded-work fan-out)`, implicitCount);
|
|
16
16
|
assertGate(counts[0]?.requestedSubagents === 4, 'requested 4 must remain 4', counts);
|
|
17
17
|
assertGate(counts[1]?.requestedSubagents === 8, 'requested 8 must remain 8', counts);
|
|
18
18
|
assertGate(counts[2]?.requestedSubagents === 12, 'requested 12 must remain 12', counts);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { assertGate, emitGate, readJson, root } from './
|
|
3
|
+
import { assertGate, emitGate, readJson, root } from './gate-lib.js';
|
|
4
4
|
import { readCurrentNpmPackProof } from '../core/release/npm-pack-proof.js';
|
|
5
5
|
const pkg = readJson('package.json');
|
|
6
6
|
const scripts = pkg.scripts || {};
|
|
@@ -8,9 +8,14 @@ const packProof = readCurrentNpmPackProof(root);
|
|
|
8
8
|
assertGate(packProof.ok && packProof.proof, 'current npm pack proof is required for package contract check', { blockers: packProof.blockers });
|
|
9
9
|
const info = packProof.proof.info;
|
|
10
10
|
const files = new Set((info.files || []).map((row) => String(row.path || '').replace(/\\/g, '/')));
|
|
11
|
+
const LIFECYCLE_SCRIPTS = [
|
|
12
|
+
'preinstall', 'install', 'postinstall', 'prepare',
|
|
13
|
+
'prepack', 'postpack', 'prepublish', 'prepublishOnly', 'publish', 'postpublish'
|
|
14
|
+
];
|
|
15
|
+
const publishedScripts = resolvePublishedScriptClosure();
|
|
11
16
|
const missingTargets = [];
|
|
12
|
-
for (const
|
|
13
|
-
for (const target of scriptTargets(String(
|
|
17
|
+
for (const name of publishedScripts) {
|
|
18
|
+
for (const target of scriptTargets(String(scripts[name] || ''))) {
|
|
14
19
|
const normalized = target.replace(/^\.\//, '').replace(/\\/g, '/');
|
|
15
20
|
if (normalized.startsWith('dist/') && !files.has(normalized))
|
|
16
21
|
missingTargets.push({ script: name, target: normalized });
|
|
@@ -18,14 +23,42 @@ for (const [name, command] of Object.entries(scripts)) {
|
|
|
18
23
|
}
|
|
19
24
|
assertGate(missingTargets.length === 0, 'published package scripts must not reference missing tarball files', {
|
|
20
25
|
missingTargets: missingTargets.slice(0, 50),
|
|
21
|
-
missing_count: missingTargets.length
|
|
26
|
+
missing_count: missingTargets.length,
|
|
27
|
+
published_scripts: [...publishedScripts]
|
|
22
28
|
});
|
|
23
29
|
emitGate('package:published-contract', {
|
|
24
30
|
files: files.size,
|
|
25
31
|
script_count: Object.keys(scripts).length,
|
|
32
|
+
published_script_count: publishedScripts.size,
|
|
33
|
+
published_scripts: [...publishedScripts],
|
|
26
34
|
missing_targets: 0,
|
|
27
35
|
package: path.basename(info.filename || '')
|
|
28
36
|
});
|
|
37
|
+
function resolvePublishedScriptClosure() {
|
|
38
|
+
const seen = new Set();
|
|
39
|
+
const queue = LIFECYCLE_SCRIPTS.filter((name) => typeof scripts[name] === 'string');
|
|
40
|
+
while (queue.length) {
|
|
41
|
+
const name = queue.shift();
|
|
42
|
+
if (seen.has(name))
|
|
43
|
+
continue;
|
|
44
|
+
seen.add(name);
|
|
45
|
+
for (const next of npmRunTargets(String(scripts[name] || ''))) {
|
|
46
|
+
if (typeof scripts[next] === 'string' && !seen.has(next))
|
|
47
|
+
queue.push(next);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return seen;
|
|
51
|
+
}
|
|
52
|
+
function npmRunTargets(command) {
|
|
53
|
+
const names = [];
|
|
54
|
+
const re = /npm\s+run\s+([A-Za-z0-9:_-]+)/g;
|
|
55
|
+
let match;
|
|
56
|
+
while ((match = re.exec(command))) {
|
|
57
|
+
if (match[1])
|
|
58
|
+
names.push(match[1]);
|
|
59
|
+
}
|
|
60
|
+
return names;
|
|
61
|
+
}
|
|
29
62
|
function scriptTargets(command) {
|
|
30
63
|
const targets = [];
|
|
31
64
|
const re = /(?:node|tsx|ts-node)\s+((?:\.\/)?dist\/[^\s;&|]+\.js)/g;
|
|
@@ -5,7 +5,8 @@ import path from 'node:path';
|
|
|
5
5
|
import { spawnSync } from 'node:child_process';
|
|
6
6
|
import { DEFAULT_MAX_PACK_BYTES, DEFAULT_MAX_UNPACKED_BYTES } from '../core/release/package-size-budget.js';
|
|
7
7
|
import { npmPackAtomicTempPaths, writeNpmPackProof } from '../core/release/npm-pack-proof.js';
|
|
8
|
-
import {
|
|
8
|
+
import { analyzeRuntimeScriptPackClosure } from '../core/release/runtime-script-pack-closure.js';
|
|
9
|
+
import { assertGate, emitGate, root } from './gate-lib.js';
|
|
9
10
|
const MAX_FILES = Number(process.env.SKS_MAX_PACK_FILES || 2100);
|
|
10
11
|
const MAX_UNPACKED = Number(process.env.SKS_MAX_UNPACKED_BYTES || DEFAULT_MAX_UNPACKED_BYTES);
|
|
11
12
|
const MAX_PACKED = Number(process.env.SKS_MAX_PACK_BYTES || DEFAULT_MAX_PACK_BYTES);
|
|
@@ -59,12 +60,19 @@ assertGate(atomicTempFiles.length === 0, 'npm_pack_atomic_temp_files_present', {
|
|
|
59
60
|
const files = info.files.map((f) => f.path);
|
|
60
61
|
const packProof = writeNpmPackProof(root, info, packMs);
|
|
61
62
|
const runtimeManifest = JSON.parse(fs.readFileSync(path.join(root, 'runtime-required-scripts.json'), 'utf8'));
|
|
63
|
+
const runtimeScriptClosure = analyzeRuntimeScriptPackClosure(root);
|
|
62
64
|
const customerPayloadForbidden = [
|
|
63
65
|
'dist/core/agents/agent-cleanup-executor.js',
|
|
64
66
|
'dist/core/release/npm-stage-tarball-verifier.js',
|
|
65
67
|
'dist/core/release/npm-stage-tarball-verifier-support.js'
|
|
66
68
|
];
|
|
67
69
|
assertGate(runtimeManifest.schema === 'sks.runtime-required-scripts.v1' && Array.isArray(runtimeManifest.scripts), 'runtime required scripts manifest invalid', runtimeManifest);
|
|
70
|
+
assertGate(runtimeScriptClosure.root_mode === 'manifest_ssot', 'runtime script manifest SSOT disabled', {
|
|
71
|
+
root_mode: runtimeScriptClosure.root_mode
|
|
72
|
+
});
|
|
73
|
+
assertGate(runtimeScriptClosure.declaration_issues.length === 0, 'runtime script closure declaration invalid', {
|
|
74
|
+
issues: runtimeScriptClosure.declaration_issues
|
|
75
|
+
});
|
|
68
76
|
assertGate(info.entryCount <= MAX_FILES, 'packlist_file_count_over_limit', { entryCount: info.entryCount, max_files: MAX_FILES });
|
|
69
77
|
assertGate(info.unpackedSize <= MAX_UNPACKED, 'packlist_unpacked_over_limit', { unpackedSize: info.unpackedSize, max_unpacked: MAX_UNPACKED });
|
|
70
78
|
assertGate(info.size <= MAX_PACKED, 'packlist_packed_over_limit', { size: info.size, max_packed: MAX_PACKED });
|
|
@@ -72,6 +80,13 @@ assertGate(files.includes('dist/bin/sks.js'), 'packlist_missing_runtime_entry',
|
|
|
72
80
|
for (const entry of runtimeManifest.scripts) {
|
|
73
81
|
assertGate(files.includes(entry.path), 'packlist_missing_runtime_required_script', { missing: entry.path, reason: entry.reason });
|
|
74
82
|
}
|
|
83
|
+
const packedScripts = files
|
|
84
|
+
.filter((file) => file.startsWith('dist/scripts/') && file.endsWith('.js'))
|
|
85
|
+
.sort();
|
|
86
|
+
assertGate(JSON.stringify(packedScripts) === JSON.stringify(runtimeScriptClosure.closure), 'packlist_runtime_script_closure_mismatch', {
|
|
87
|
+
missing: runtimeScriptClosure.closure.filter((file) => !packedScripts.includes(file)),
|
|
88
|
+
unexpected: packedScripts.filter((file) => !runtimeScriptClosure.closure.includes(file))
|
|
89
|
+
});
|
|
75
90
|
assertGate(files.includes('package.json'), 'packlist_missing_runtime_entry', { missing: 'package.json' });
|
|
76
91
|
assertGate(files.includes('README.md'), 'packlist_missing_runtime_entry', { missing: 'README.md' });
|
|
77
92
|
assertGate(files.includes('LICENSE'), 'packlist_missing_runtime_entry', { missing: 'LICENSE' });
|
|
@@ -109,6 +124,7 @@ const report = {
|
|
|
109
124
|
pack_file_list_sha256: packProof.file_list_digest,
|
|
110
125
|
runtime_required_scripts: runtimeManifest.scripts.map((entry) => entry.path),
|
|
111
126
|
runtime_required_missing: runtimeManifest.scripts.filter((entry) => !files.includes(entry.path)).map((entry) => entry.path),
|
|
127
|
+
runtime_script_closure: runtimeScriptClosure.closure,
|
|
112
128
|
customer_payload_forbidden: customerPayloadForbidden,
|
|
113
129
|
max_files: MAX_FILES,
|
|
114
130
|
max_packed: MAX_PACKED,
|
|
@@ -5,6 +5,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
5
5
|
import { runProcess } from '../core/fsx.js';
|
|
6
6
|
import { resolveCodexNativeInvocationPlan } from '../core/codex-native/codex-native-invocation-router.js';
|
|
7
7
|
import { createCodexNativeRuntimeFixture, withFixtureEnv } from './codex-native-runtime-e2e-fixture.js';
|
|
8
|
+
import { messageOf } from '../core/errors/message.js';
|
|
8
9
|
export async function runCodexNativeDoctorMadRoutingRealBlackbox() {
|
|
9
10
|
const fixture = await createCodexNativeRuntimeFixture({
|
|
10
11
|
hook: 'unknown',
|
|
@@ -71,6 +72,3 @@ function assertGate(condition, message, detail = {}) {
|
|
|
71
72
|
function emitGate(gate) {
|
|
72
73
|
console.log(JSON.stringify({ schema: 'sks.release-gate.v1', ok: true, gate }, null, 2));
|
|
73
74
|
}
|
|
74
|
-
function messageOf(err) {
|
|
75
|
-
return err instanceof Error ? err.message : String(err);
|
|
76
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { emitGate, requireContains } from './
|
|
2
|
+
import { emitGate, requireContains } from './real-execution-check-lib.js';
|
|
3
3
|
requireContains('ppt:real-export-adapter', 'src/core/ppt-review/slide-exporter.ts', [
|
|
4
4
|
'soffice',
|
|
5
5
|
'libreoffice',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { emitGate, requireContains } from './
|
|
2
|
+
import { emitGate, requireContains } from './real-execution-check-lib.js';
|
|
3
3
|
requireContains('ppt:real-imagegen-wiring', 'src/core/ppt-review/slide-imagegen-review.ts', [
|
|
4
4
|
'generateGptImage2CalloutReview',
|
|
5
5
|
'PPT_SLIDE_IMAGEGEN_REQUEST_ARTIFACT',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { emitGate, requireContains } from './
|
|
2
|
+
import { emitGate, requireContains } from './real-execution-check-lib.js';
|
|
3
3
|
requireContains('ppt:reexport-rereview', 'src/core/commands/ppt-command.ts', [
|
|
4
4
|
'attach-fixed-deck',
|
|
5
5
|
'fixedDeckPath',
|
|
@@ -3,7 +3,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
3
3
|
import crypto from 'node:crypto';
|
|
4
4
|
import fs from 'node:fs';
|
|
5
5
|
import path from 'node:path';
|
|
6
|
-
import { root } from './
|
|
6
|
+
import { root } from './gate-lib.js';
|
|
7
7
|
const stampPath = process.env.SKS_RELEASE_STAMP_PATH || path.join(root, '.sneakoscope', 'reports', 'release-check-stamp.json');
|
|
8
8
|
function sha256(value) {
|
|
9
9
|
return crypto.createHash('sha256').update(value).digest('hex');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertGate, emitGate, makeTempRoot } from './
|
|
2
|
-
import { importDist } from './
|
|
1
|
+
import { assertGate, emitGate, makeTempRoot } from './skill-fixture-check-lib.js';
|
|
2
|
+
import { importDist } from './gate-lib.js';
|
|
3
3
|
const tmp = await makeTempRoot('probe-memo-');
|
|
4
4
|
const mod = await importDist('core/probes/probe-memoization.js');
|
|
5
5
|
let calls = 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
const guardMod = await importDist('core/prompt/prompt-placeholder-guard.js');
|
|
4
4
|
const blocked = guardMod.checkPromptPlaceholders({
|
|
5
5
|
prompt: 'Use @filename and INSERT_PATH_HERE to patch the bug',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
const handoff = readText('src/core/codex-app/codex-app-handoff.ts');
|
|
5
5
|
assertGate(command.includes('writeCodex0138CapabilityArtifacts'), 'QA-LOOP must snapshot Codex 0.138 capability before handoff');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
const core = readText('src/core/qa-loop.ts');
|
|
5
5
|
assertGate(command.includes('runCodexAppHandoff') && command.includes('--app-handoff-required'), 'QA-LOOP command must wire Codex App /app handoff flags');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
assertGate(command.includes('[--app-handoff] [--app-handoff-required]') && command.includes('status <mission-id|latest> [--desktop]'), 'QA-LOOP help must expose app handoff run/status flags');
|
|
5
5
|
assertGate(command.includes('blocked_for_desktop_review') && command.includes('desktop_app_handoff'), 'QA-LOOP CLI must emit desktop handoff status');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs/promises';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, importDist } from './
|
|
5
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
6
6
|
const mod = await importDist('core/qa-loop/qa-loop-app-handoff-confirmation.js');
|
|
7
7
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-app-confirm-'));
|
|
8
8
|
const missionDir = path.join(root, '.sneakoscope', 'missions', 'M-fixture');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs/promises';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, importDist } from './
|
|
5
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
6
6
|
const qa = await importDist('core/qa-loop.js');
|
|
7
7
|
const confirm = await importDist('core/qa-loop/qa-loop-app-handoff-confirmation.js');
|
|
8
8
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-app-gate-'));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
assertGate(command.includes('--app-handoff-launch') && command.includes('--app-handoff-artifact-only') && command.includes('launch_mode'), 'QA-LOOP must expose launch/artifact-only handoff flags and pass launch_mode');
|
|
5
5
|
emitGate('qa-loop:app-handoff-launch');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
assertGate(command.includes('desktop_app_confirmation') && command.includes('desktop_review_complete') && command.includes('launch:'), 'QA status --desktop must include handoff launch, confirmation, and complete lifecycle');
|
|
5
5
|
emitGate('qa-loop:app-handoff-status-lifecycle');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
const mod = await importDist('core/qa-loop/qa-loop-budget-policy.js');
|
|
4
4
|
const policy = mod.buildQaLoopBudgetPolicy({ usage: { source: 'fake', token_usage: { total_tokens: 95 }, usage_limit_tokens: 100 } });
|
|
5
5
|
assertGate(policy.near_limit === true && policy.local_llm_draft_preferred === true && policy.final_reviewer_gpt_backed === true, 'QA budget policy must reduce remote concurrency near account limit while keeping GPT final reviewer', policy);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
const mod = await importDist('core/qa-loop/qa-loop-budget-policy.js');
|
|
4
4
|
const one = mod.selectQaLoopEscalatedEffort({ failureCount: 1, currentEffort: 'medium' });
|
|
5
5
|
const two = mod.selectQaLoopEscalatedEffort({ failureCount: 2, currentEffort: 'medium' });
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
await
|
|
2
|
+
import { runTypedRoutingGate } from './typed-routing-gate-lib.js';
|
|
3
|
+
await runTypedRoutingGate('qa-loop:execution-profile-routing');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, readText } from './
|
|
2
|
+
import { assertGate, emitGate, readText } from './gate-lib.js';
|
|
3
3
|
const command = readText('src/core/commands/qa-loop-command.ts');
|
|
4
4
|
const core = readText('src/core/qa-loop.ts');
|
|
5
5
|
assertGate(command.includes('discoverImageArtifactsInDir') && command.includes('image-artifact-path-contract.json'), 'QA-LOOP must discover image artifacts and write image path contract');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
const qa = await importDist('core/qa-loop.js');
|
|
4
4
|
const prompt = qa.buildQaLoopPrompt({ id: 'M', mission: { prompt: 'fixture' }, contract: {}, cycle: 1, previous: '', reportFile: '2026-06-09-v2.0.19-qa-report.md', imagePathContract: { images: [{ id: 'img', model_visible_path: '/tmp/a.png', mime_type: 'image/png', width: 1, height: 1, followup_edit_hint: 'use /tmp/a.png' }], blockers: [] } });
|
|
5
5
|
assertGate(prompt.includes('/tmp/a.png') && prompt.includes('mime_type') && prompt.includes('width') && prompt.includes('Use model_visible_path values'), 'QA prompt must inject image id, model-visible path, dimensions/mime, and follow-up edit hint');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { assertGate, emitGate, root, runSksJson } from './sks-
|
|
4
|
+
import { assertGate, emitGate, root, runSksJson } from './sks-cli-gate-lib.js';
|
|
5
5
|
export { assertGate, emitGate, root, runSksJson };
|
|
6
6
|
export function read(rel) {
|
|
7
7
|
return fs.readFileSync(path.join(root, rel), 'utf8');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist, root } from './
|
|
2
|
+
import { assertGate, emitGate, importDist, root } from './gate-lib.js';
|
|
3
3
|
const dag = await importDist('core/release/release-gate-dag.js');
|
|
4
4
|
const selectorMod = await importDist('core/release/release-gate-affected-selector.js');
|
|
5
5
|
const manifest = dag.loadReleaseGateManifest(root);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, importDist } from './
|
|
2
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
3
3
|
process.env.SKS_RELEASE_MAX_CPU_LIGHT = '7';
|
|
4
4
|
process.env.SKS_RELEASE_MAX_TOTAL = '2';
|
|
5
5
|
const governor = await importDist('core/release/release-gate-resource-governor.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate } from './
|
|
5
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
6
6
|
import { expandGlob, releaseGateCacheKey } from '../core/release/release-gate-cache-v2.js';
|
|
7
7
|
delete process.env.SKS_RELEASE_GATE_CACHE_MEMOIZE;
|
|
8
8
|
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-cache-glob-'));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { classifyReleaseCacheInputChange } from '../core/release/release-cache-key.js';
|
|
3
|
-
import { assertGate, emitGate } from './
|
|
3
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
4
4
|
const pkgA = JSON.stringify({ name: 'sneakoscope', version: '3.0.0', scripts: { test: 'node a.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
|
|
5
5
|
const pkgB = JSON.stringify({ name: 'sneakoscope', version: '3.0.2', scripts: { test: 'node a.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
|
|
6
6
|
const pkgScript = JSON.stringify({ name: 'sneakoscope', version: '3.0.2', scripts: { test: 'node b.js' }, dependencies: { left: '1.0.0' }, files: ['dist'] }, null, 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawnSync } from 'node:child_process';
|
|
3
|
-
import { assertGate, emitGate, root } from './
|
|
3
|
+
import { assertGate, emitGate, root } from './gate-lib.js';
|
|
4
4
|
const result = spawnSync(process.execPath, ['dist/scripts/release-speed-summary.js'], { cwd: root, encoding: 'utf8', timeout: 30000 });
|
|
5
5
|
assertGate(result.status === 0, 'release speed summary script failed', { stderr: result.stderr });
|
|
6
6
|
const summary = JSON.parse(result.stdout);
|
|
@@ -3,7 +3,7 @@ import fs from 'node:fs/promises';
|
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { releaseGateCacheKey } from '../core/release/release-gate-cache-v2.js';
|
|
6
|
-
import { assertGate, emitGate } from './
|
|
6
|
+
import { assertGate, emitGate } from './gate-lib.js';
|
|
7
7
|
const gate = {
|
|
8
8
|
id: 'fixture:release-cache',
|
|
9
9
|
command: 'node fixture.js',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { assertGate, emitGate, packageScripts, readText } from './
|
|
3
|
-
import { importDist, root } from './
|
|
2
|
+
import { assertGate, emitGate, packageScripts, readText } from './gate-lib.js';
|
|
3
|
+
import { importDist, root } from './gate-lib.js';
|
|
4
4
|
const scripts = packageScripts();
|
|
5
5
|
const dagMod = await importDist('core/release/release-gate-dag.js');
|
|
6
6
|
const manifest = dagMod.loadReleaseGateManifest(root);
|
|
@@ -4,7 +4,7 @@ import os from 'node:os';
|
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { performance } from 'node:perf_hooks';
|
|
6
6
|
import { runReleaseGateBatch } from '../core/release/release-gate-batch-runner.js';
|
|
7
|
-
import { assertGate, emitGate, root } from './
|
|
7
|
+
import { assertGate, emitGate, root } from './gate-lib.js';
|
|
8
8
|
const reportRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-release-full-'));
|
|
9
9
|
const gates = Array.from({ length: 80 }, (_, i) => ({ id: `synthetic:${i + 1}`, command: `${process.execPath} -e \"setTimeout(()=>process.exit(0),1000)\"`, deps: [], resource: ['cpu-light', 'fs-read'], side_effect: 'hermetic', timeout_ms: 15000, cache: { enabled: false, inputs: [] }, isolation: { home: 'temp', codex_home: 'temp', report_dir: 'per-gate' }, preset: ['release'] }));
|
|
10
10
|
const started = performance.now();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, importDist } from './
|
|
5
|
+
import { assertGate, emitGate, importDist } from './gate-lib.js';
|
|
6
6
|
const batch = await importDist('core/release/release-gate-batch-runner.js');
|
|
7
7
|
assertGate(typeof batch.runReleaseGateBatch === 'function', 'release batch runner export missing');
|
|
8
8
|
assertGate(typeof batch.isReleaseGateBatchable === 'function', 'release batchable predicate export missing');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { assertGate, emitGate, importDist, root } from './
|
|
4
|
+
import { assertGate, emitGate, importDist, root } from './gate-lib.js';
|
|
5
5
|
const { readGateCache } = await importDist('core/release/gate-cache.js');
|
|
6
6
|
const SOFT_BUDGET_MS = Number(process.env.SKS_GATE_BUDGET_MS || 120_000);
|
|
7
7
|
const HARD_CEILING_MS = Number(process.env.SKS_GATE_HARD_CEILING_MS || 600_000);
|