sneakoscope 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/crates/sks-core/src/main.rs +1 -1
- package/dist/.sks-build-stamp.json +4 -4
- package/dist/bin/sks.js +1 -1
- package/dist/cli/command-registry.js +1 -0
- package/dist/commands/mad-db.js +5 -0
- package/dist/commands/zellij-slot-pane.js +3 -1
- package/dist/core/agents/agent-orchestrator.js +11 -4
- package/dist/core/agents/agent-output-validator.js +1 -1
- package/dist/core/agents/agent-plan.js +3 -2
- package/dist/core/agents/native-cli-session-swarm.js +118 -0
- package/dist/core/agents/native-cli-worker.js +85 -0
- package/dist/core/codex-control/codex-fake-sdk-adapter.js +3 -3
- package/dist/core/codex-control/gpt-final-review-schema.js +61 -14
- package/dist/core/commands/basic-cli.js +1 -1
- package/dist/core/commands/command-suggestions.js +1 -1
- package/dist/core/commands/mad-db-command.js +106 -0
- package/dist/core/commands/mad-sks-command.js +50 -13
- package/dist/core/commands/naruto-command.js +82 -1
- package/dist/core/commands/research-command.js +83 -17
- package/dist/core/commands/team-command.js +25 -1
- package/dist/core/db-safety.js +26 -0
- package/dist/core/fsx.js +1 -1
- package/dist/core/mad-db/mad-db-capability.js +84 -0
- package/dist/core/mad-db/mad-db-ledger.js +17 -0
- package/dist/core/mad-db/mad-db-policy-resolver.js +46 -0
- package/dist/core/naruto/naruto-real-worker-child.js +11 -3
- package/dist/core/naruto/naruto-real-worker-runtime.js +4 -0
- package/dist/core/pipeline/final-gpt-patch-stage.js +20 -3
- package/dist/core/pipeline-internals/runtime-core.js +74 -8
- package/dist/core/pipeline-internals/runtime-gates.js +44 -0
- package/dist/core/proof/route-proof-gate.js +5 -3
- package/dist/core/proof/route-proof-policy.js +9 -1
- package/dist/core/release/release-gate-affected-selector.js +113 -0
- package/dist/core/release/release-gate-batch-runner.js +67 -0
- package/dist/core/release/release-gate-dag.js +22 -3
- package/dist/core/release/release-gate-resource-governor.js +23 -11
- package/dist/core/research/implementation-blueprint-densifier.js +124 -0
- package/dist/core/research/implementation-blueprint-markdown.js +1 -1
- package/dist/core/research/implementation-blueprint.js +68 -7
- package/dist/core/research/research-claim-builder.js +114 -0
- package/dist/core/research/research-cycle-runner.js +115 -11
- package/dist/core/research/research-final-reviewer.js +181 -1
- package/dist/core/research/research-handoff.js +69 -5
- package/dist/core/research/research-realistic-report.js +162 -0
- package/dist/core/research/research-repetition-detector.js +75 -0
- package/dist/core/research/research-report-quality.js +27 -5
- package/dist/core/research/research-source-ledger-merge.js +186 -0
- package/dist/core/research/research-source-shards.js +176 -0
- package/dist/core/research/research-stage-runner.js +537 -11
- package/dist/core/research/research-synthesis-prompt.js +52 -0
- package/dist/core/research/research-synthesis-writer.js +208 -0
- package/dist/core/research/research-work-graph.js +114 -23
- package/dist/core/research.js +72 -48
- package/dist/core/routes.js +23 -19
- package/dist/core/update/update-notice.js +120 -0
- package/dist/core/version.js +1 -1
- package/dist/core/zellij/zellij-dashboard-renderer.js +2 -0
- package/dist/core/zellij/zellij-slot-column-anchor.js +35 -1
- package/dist/core/zellij/zellij-slot-pane-renderer.js +57 -0
- package/dist/core/zellij/zellij-slot-telemetry.js +182 -0
- package/dist/scripts/release-gate-dag-runner.js +5 -0
- package/dist/scripts/release-speed-summary.js +25 -0
- package/package.json +67 -5
- package/schemas/codex/agent-result.schema.json +1 -1
- package/schemas/mad-db/mad-db-capability.schema.json +31 -0
- package/schemas/mad-db/mad-db-ledger.schema.json +14 -0
- package/schemas/research/implementation-blueprint.schema.json +6 -1
- package/schemas/research/research-final-review.schema.json +10 -0
- package/schemas/research/research-source-shard.schema.json +46 -0
- package/schemas/research/research-synthesis-output.schema.json +62 -0
- package/schemas/update/update-notice.schema.json +19 -0
- package/schemas/zellij/zellij-slot-telemetry.schema.json +89 -0
- package/dist/build-manifest.json +0 -1184
- package/dist/scripts/agent-ast-aware-work-graph-check.js +0 -25
- package/dist/scripts/agent-backfill-replenishment-check.js +0 -13
- package/dist/scripts/agent-backfill-route-blackbox.js +0 -5
- package/dist/scripts/agent-background-terminals-check.js +0 -16
- package/dist/scripts/agent-cleanup-command-ux-check.js +0 -12
- package/dist/scripts/agent-cleanup-executor-check.js +0 -53
- package/dist/scripts/agent-cleanup-executor-v2-check.js +0 -39
- package/dist/scripts/agent-cli-options-to-task-graph-check.js +0 -5
- package/dist/scripts/agent-codex-app-cockpit-check.js +0 -91
- package/dist/scripts/agent-codex-child-overlap-check.js +0 -21
- package/dist/scripts/agent-dynamic-cockpit-check.js +0 -10
- package/dist/scripts/agent-dynamic-pool-check.js +0 -13
- package/dist/scripts/agent-dynamic-pool-route-blackbox.js +0 -5
- package/dist/scripts/agent-fast-mode-default-check.js +0 -62
- package/dist/scripts/agent-fast-mode-worker-propagation-check.js +0 -7
- package/dist/scripts/agent-follow-up-work-schema-check.js +0 -80
- package/dist/scripts/agent-goal-mode-propagation-check.js +0 -9
- package/dist/scripts/agent-intelligent-work-graph-check.js +0 -25
- package/dist/scripts/agent-janitor-check.js +0 -76
- package/dist/scripts/agent-main-no-scout-check.js +0 -11
- package/dist/scripts/agent-model-authored-patch-envelope-check.js +0 -15
- package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
- package/dist/scripts/agent-native-cli-session-proof-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-10-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-20-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-check.js +0 -7
- package/dist/scripts/agent-no-subagent-scaling-check.js +0 -7
- package/dist/scripts/agent-parallel-write-blackbox.js +0 -56
- package/dist/scripts/agent-parallel-write-kernel-check.js +0 -103
- package/dist/scripts/agent-patch-conflict-rebase-check.js +0 -198
- package/dist/scripts/agent-patch-envelope-extraction-check.js +0 -17
- package/dist/scripts/agent-patch-proof-check.js +0 -41
- package/dist/scripts/agent-patch-proof-runtime-check.js +0 -63
- package/dist/scripts/agent-patch-queue-runtime-check.js +0 -36
- package/dist/scripts/agent-patch-rollback-check.js +0 -38
- package/dist/scripts/agent-patch-rollback-dag-check.js +0 -14
- package/dist/scripts/agent-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-check.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +0 -76
- package/dist/scripts/agent-patch-transaction-journal-check.js +0 -57
- package/dist/scripts/agent-patch-verification-dag-check.js +0 -14
- package/dist/scripts/agent-proof-contract-reconciled-check.js +0 -5
- package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +0 -166
- package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +0 -14
- package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +0 -229
- package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-check.js +0 -5
- package/dist/scripts/agent-role-config-repair-check.js +0 -33
- package/dist/scripts/agent-rollback-command-check.js +0 -86
- package/dist/scripts/agent-route-truth-backfill-check.js +0 -5
- package/dist/scripts/agent-scheduler-proof-check.js +0 -13
- package/dist/scripts/agent-scheduler-proof-hardening-check.js +0 -22
- package/dist/scripts/agent-session-generation-check.js +0 -21
- package/dist/scripts/agent-slot-pane-binding-proof-check.js +0 -64
- package/dist/scripts/agent-source-intelligence-propagation-check.js +0 -9
- package/dist/scripts/agent-strategy-to-lease-wiring-check.js +0 -32
- package/dist/scripts/agent-strategy-to-patch-strict-check.js +0 -54
- package/dist/scripts/agent-task-graph-expansion-check.js +0 -14
- package/dist/scripts/agent-terminal-generations-check.js +0 -23
- package/dist/scripts/agent-visual-consistency-check.js +0 -9
- package/dist/scripts/agent-wiki-context-proof-check.js +0 -62
- package/dist/scripts/agent-worker-backend-router-check.js +0 -63
- package/dist/scripts/agent-worker-scout-limited-check.js +0 -17
- package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +0 -34
- package/dist/scripts/agent-zellij-runtime-check.js +0 -84
- package/dist/scripts/all-feature-deep-completion-check.js +0 -31
- package/dist/scripts/appshots-capability-check.js +0 -18
- package/dist/scripts/appshots-evidence-check.js +0 -48
- package/dist/scripts/appshots-operator-policy-check.js +0 -25
- package/dist/scripts/appshots-privacy-safety-check.js +0 -48
- package/dist/scripts/appshots-source-intelligence-check.js +0 -53
- package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -87
- package/dist/scripts/appshots-triwiki-voxel-check.js +0 -46
- package/dist/scripts/architecture-guard-check.js +0 -55
- package/dist/scripts/changelog-check.js +0 -47
- package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
- package/dist/scripts/codex-0-134-official-compat-report.js +0 -110
- package/dist/scripts/codex-0-134-runner-truth-check.js +0 -66
- package/dist/scripts/codex-0-135-compat-check.js +0 -57
- package/dist/scripts/codex-0-136-compat-check.js +0 -30
- package/dist/scripts/codex-0-137-compat-check.js +0 -27
- package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -32
- package/dist/scripts/codex-app-provider-badge-check.js +0 -37
- package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
- package/dist/scripts/codex-app-ui-preservation-check.js +0 -96
- package/dist/scripts/codex-control-all-pipelines-check.js +0 -36
- package/dist/scripts/codex-control-capability-check.js +0 -10
- package/dist/scripts/codex-control-empty-result-retry-check.js +0 -43
- package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -10
- package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +0 -14
- package/dist/scripts/codex-control-no-legacy-fallback-check.js +0 -31
- package/dist/scripts/codex-control-side-effect-scope-check.js +0 -26
- package/dist/scripts/codex-control-stream-idle-watchdog-check.js +0 -18
- package/dist/scripts/codex-control-structured-output-check.js +0 -11
- package/dist/scripts/codex-control-thread-registry-check.js +0 -11
- package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +0 -14
- package/dist/scripts/codex-environment-scoped-approvals-check.js +0 -10
- package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +0 -33
- package/dist/scripts/codex-fast-mode-profile-propagation-check.js +0 -12
- package/dist/scripts/codex-history-search-check.js +0 -19
- package/dist/scripts/codex-hook-semantic-check.js +0 -15
- package/dist/scripts/codex-hook-strict-subset-check.js +0 -61
- package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
- package/dist/scripts/codex-lb-persistence-truth-check.js +0 -96
- package/dist/scripts/codex-lb-setup-fixture-check.js +0 -91
- package/dist/scripts/codex-lb-setup-truthfulness-check.js +0 -84
- package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +0 -24
- package/dist/scripts/codex-managed-proxy-env-check.js +0 -17
- package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
- package/dist/scripts/codex-permission-profiles-check.js +0 -36
- package/dist/scripts/codex-plugin-list-json-check.js +0 -8
- package/dist/scripts/codex-profile-primary-check.js +0 -13
- package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -51
- package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
- package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -32
- package/dist/scripts/codex-sdk-backend-router-check.js +0 -65
- package/dist/scripts/codex-sdk-capability-check.js +0 -11
- package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-dfix-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -9
- package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +0 -33
- package/dist/scripts/codex-sdk-qa-pipeline-check.js +0 -8
- package/dist/scripts/codex-sdk-real-smoke-check.js +0 -39
- package/dist/scripts/codex-sdk-release-review-pipeline-check.js +0 -13
- package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -15
- package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -21
- package/dist/scripts/codex-sdk-structured-output-check.js +0 -10
- package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +0 -12
- package/dist/scripts/codex-sdk-thread-registry-check.js +0 -11
- package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
- package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
- package/dist/scripts/codex-web-adapter-check.js +0 -12
- package/dist/scripts/computer-use-live-evidence-check.js +0 -55
- package/dist/scripts/computer-use-live-optional-check.js +0 -32
- package/dist/scripts/computer-use-policy-check.js +0 -69
- package/dist/scripts/computer-use-visual-route-fixture-check.js +0 -37
- package/dist/scripts/core-skill-card-schema-check.js +0 -61
- package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -54
- package/dist/scripts/core-skill-heldout-validation-check.js +0 -49
- package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -75
- package/dist/scripts/core-skill-patch-check.js +0 -79
- package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +0 -64
- package/dist/scripts/core-skill-rollout-scoring-check.js +0 -72
- package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -49
- package/dist/scripts/dfix-fast-blackbox-check.js +0 -37
- package/dist/scripts/dfix-fast-kernel-check.js +0 -26
- package/dist/scripts/dfix-fixture-check.js +0 -6
- package/dist/scripts/dfix-parallel-write-blackbox.js +0 -48
- package/dist/scripts/dfix-patch-handoff-check.js +0 -13
- package/dist/scripts/dfix-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/dfix-performance-check.js +0 -15
- package/dist/scripts/dfix-verification-check.js +0 -9
- package/dist/scripts/dfix-verification-recommendation-check.js +0 -15
- package/dist/scripts/docs-truthfulness-check.js +0 -61
- package/dist/scripts/doctor-codex-doctor-parity-check.js +0 -17
- package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -64
- package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -39
- package/dist/scripts/evidence-fixture-check.js +0 -26
- package/dist/scripts/evidence-flagship-coverage-check.js +0 -55
- package/dist/scripts/fake-real-proof-policy-v2-check.js +0 -27
- package/dist/scripts/fake-vs-real-proof-policy-check.js +0 -14
- package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -42
- package/dist/scripts/flagship-proof-graph-v2-check.js +0 -48
- package/dist/scripts/flagship-proof-graph-v3-check.js +0 -67
- package/dist/scripts/flagship-proof-graph-v4-check.js +0 -61
- package/dist/scripts/git-precommit-fixture-check.js +0 -41
- package/dist/scripts/git-worktree-cache-performance-check.js +0 -25
- package/dist/scripts/git-worktree-capability-check.js +0 -27
- package/dist/scripts/git-worktree-checkpoint-check.js +0 -20
- package/dist/scripts/git-worktree-cleanup-check.js +0 -27
- package/dist/scripts/git-worktree-cross-rebase-check.js +0 -39
- package/dist/scripts/git-worktree-diff-envelope-check.js +0 -17
- package/dist/scripts/git-worktree-diff-export-check.js +0 -43
- package/dist/scripts/git-worktree-dirty-lock-check.js +0 -17
- package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -14
- package/dist/scripts/git-worktree-integration-primary-check.js +0 -24
- package/dist/scripts/git-worktree-integration-primary-runtime-check.js +0 -20
- package/dist/scripts/git-worktree-manager-check.js +0 -37
- package/dist/scripts/git-worktree-manifest-append-check.js +0 -18
- package/dist/scripts/git-worktree-merge-queue-check.js +0 -31
- package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
- package/dist/scripts/git-worktree-untracked-diff-check.js +0 -18
- package/dist/scripts/goal-mode-official-default-check.js +0 -12
- package/dist/scripts/gpt-final-arbiter-check.js +0 -63
- package/dist/scripts/gpt-final-arbiter-performance-check.js +0 -36
- package/dist/scripts/gpt-image-2-request-validator-check.js +0 -35
- package/dist/scripts/hooks-0.134-context-parity-check.js +0 -20
- package/dist/scripts/hooks-actual-parity-check.js +0 -17
- package/dist/scripts/hooks-actual-parity-v2-check.js +0 -21
- package/dist/scripts/hooks-latest-schema-check.js +0 -20
- package/dist/scripts/hooks-managed-install-fixture-check.js +0 -21
- package/dist/scripts/hooks-official-hash-oracle-check.js +0 -35
- package/dist/scripts/hooks-official-hash-parity-check.js +0 -17
- package/dist/scripts/hooks-subagent-events-check.js +0 -17
- package/dist/scripts/hooks-trust-state-check.js +0 -14
- package/dist/scripts/image-fidelity-fixture-check.js +0 -24
- package/dist/scripts/imagegen-capability-check.js +0 -30
- package/dist/scripts/imagegen-real-smoke-check.js +0 -155
- package/dist/scripts/install-update-preserves-config-check.js +0 -87
- package/dist/scripts/json-schema-recursive-check.js +0 -78
- package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
- package/dist/scripts/legacy-upgrade-matrix-check.js +0 -300
- package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +0 -21
- package/dist/scripts/local-collab-gpt-final-availability-check.js +0 -58
- package/dist/scripts/local-collab-no-local-only-final-check.js +0 -27
- package/dist/scripts/local-collab-policy-check.js +0 -17
- package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +0 -63
- package/dist/scripts/local-llm-all-pipelines-check.js +0 -11
- package/dist/scripts/local-llm-cache-performance-check.js +0 -10
- package/dist/scripts/local-llm-capability-check.js +0 -14
- package/dist/scripts/local-llm-smoke-check.js +0 -23
- package/dist/scripts/local-llm-structured-output-check.js +0 -11
- package/dist/scripts/local-llm-throughput-check.js +0 -10
- package/dist/scripts/local-llm-tool-call-repair-check.js +0 -10
- package/dist/scripts/local-llm-warmup-check.js +0 -11
- package/dist/scripts/loop-blocker-check.js +0 -15
- package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -35
- package/dist/scripts/mad-sks-actual-executor-blackbox.js +0 -5
- package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -92
- package/dist/scripts/mad-sks-audit-proof-check.js +0 -34
- package/dist/scripts/mad-sks-db-executor-check.js +0 -5
- package/dist/scripts/mad-sks-executor-proof-graph-check.js +0 -5
- package/dist/scripts/mad-sks-fast-mode-propagation-check.js +0 -24
- package/dist/scripts/mad-sks-file-write-executor-check.js +0 -5
- package/dist/scripts/mad-sks-immutable-harness-check.js +0 -36
- package/dist/scripts/mad-sks-no-harness-modification-check.js +0 -25
- package/dist/scripts/mad-sks-package-executor-check.js +0 -5
- package/dist/scripts/mad-sks-permission-model-check.js +0 -22
- package/dist/scripts/mad-sks-rollback-apply-check.js +0 -5
- package/dist/scripts/mad-sks-service-executor-check.js +0 -5
- package/dist/scripts/mad-sks-shell-executor-check.js +0 -5
- package/dist/scripts/mad-sks-write-guard-check.js +0 -28
- package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +0 -37
- package/dist/scripts/mad-sks-zellij-launch-check.js +0 -102
- package/dist/scripts/mcp-0-134-modernization-check.js +0 -55
- package/dist/scripts/mcp-readonly-concurrency-check.js +0 -17
- package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +0 -20
- package/dist/scripts/mcp-tool-naming-parity-check.js +0 -16
- package/dist/scripts/memory-summary-rebuild-check.js +0 -22
- package/dist/scripts/mutation-callsite-coverage-check.js +0 -180
- package/dist/scripts/naruto-active-pool-check.js +0 -39
- package/dist/scripts/naruto-actual-worker-control-plane-check.js +0 -56
- package/dist/scripts/naruto-allocation-policy-check.js +0 -33
- package/dist/scripts/naruto-allocation-runtime-wiring-check.js +0 -92
- package/dist/scripts/naruto-concurrency-governor-check.js +0 -53
- package/dist/scripts/naruto-extreme-parallelism-check.js +0 -22
- package/dist/scripts/naruto-extreme-parallelism-real-check.js +0 -43
- package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
- package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
- package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
- package/dist/scripts/naruto-readonly-routing-check.js +0 -116
- package/dist/scripts/naruto-real-active-pool-check.js +0 -39
- package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -55
- package/dist/scripts/naruto-rebalance-policy-check.js +0 -41
- package/dist/scripts/naruto-role-distribution-check.js +0 -23
- package/dist/scripts/naruto-shadow-clone-swarm-check.js +0 -153
- package/dist/scripts/naruto-verification-pool-check.js +0 -36
- package/dist/scripts/naruto-work-graph-check.js +0 -24
- package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -29
- package/dist/scripts/naruto-worktree-coding-check.js +0 -44
- package/dist/scripts/naruto-worktree-gpt-final-check.js +0 -45
- package/dist/scripts/naruto-worktree-zellij-ui-check.js +0 -28
- package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +0 -48
- package/dist/scripts/naruto-zellij-massive-ui-check.js +0 -23
- package/dist/scripts/non-recursive-pipeline-check.js +0 -68
- package/dist/scripts/npm-publish-performance-check.js +0 -65
- package/dist/scripts/official-docs-compat-report.js +0 -304
- package/dist/scripts/packlist-performance-check.js +0 -83
- package/dist/scripts/parallel-verification-engine-check.js +0 -85
- package/dist/scripts/postinstall-safe-side-effects-check.js +0 -65
- package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
- package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -109
- package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
- package/dist/scripts/ppt-imagegen-blackbox-check.js +0 -46
- package/dist/scripts/ppt-imagegen-review-fixture-check.js +0 -6
- package/dist/scripts/ppt-issue-extraction-fixture-check.js +0 -7
- package/dist/scripts/ppt-no-mock-as-real-check.js +0 -8
- package/dist/scripts/ppt-no-text-fallback-check.js +0 -7
- package/dist/scripts/ppt-proof-trust-fixture-check.js +0 -10
- package/dist/scripts/ppt-real-export-adapter-check.js +0 -13
- package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -42
- package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -16
- package/dist/scripts/ppt-reexport-rereview-check.js +0 -19
- package/dist/scripts/ppt-slide-export-fixture-check.js +0 -7
- package/dist/scripts/prepublish-fast-check.js +0 -128
- package/dist/scripts/priority-full-closure-check.js +0 -12
- package/dist/scripts/product-design-auto-install-check.js +0 -119
- package/dist/scripts/product-design-plugin-routing-check.js +0 -101
- package/dist/scripts/prompt-placeholder-guard-check.js +0 -33
- package/dist/scripts/provider-badge-context-check.js +0 -26
- package/dist/scripts/provider-context-config-toml-check.js +0 -63
- package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -47
- package/dist/scripts/python-codex-sdk-capability-check.js +0 -75
- package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +0 -10
- package/dist/scripts/python-codex-sdk-stream-bridge-check.js +0 -12
- package/dist/scripts/python-tools-smoke-check.js +0 -71
- package/dist/scripts/qa-actual-route-backfill-check.js +0 -5
- package/dist/scripts/qa-backfill-route-blackbox.js +0 -5
- package/dist/scripts/qa-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/readme-architecture-imagegen-official-check.js +0 -448
- package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
- package/dist/scripts/release-dag-full-coverage-check.js +0 -53
- package/dist/scripts/release-dist-freshness-check.js +0 -8
- package/dist/scripts/release-dynamic-performance-check.js +0 -103
- package/dist/scripts/release-gate-budget-check.js +0 -36
- package/dist/scripts/release-gate-dag-runner-check.js +0 -17
- package/dist/scripts/release-metadata-1-11-check.js +0 -37
- package/dist/scripts/release-metadata-1-12-check.js +0 -48
- package/dist/scripts/release-metadata-1-13-check.js +0 -53
- package/dist/scripts/release-metadata-1-14-check.js +0 -63
- package/dist/scripts/release-metadata-1-16-check.js +0 -81
- package/dist/scripts/release-metadata-1-17-check.js +0 -51
- package/dist/scripts/release-metadata-1-19-check.js +0 -371
- package/dist/scripts/release-metadata-check.js +0 -7
- package/dist/scripts/release-native-agent-fixture-check.js +0 -41
- package/dist/scripts/release-parallel-check.js +0 -374
- package/dist/scripts/release-parallel-full-coverage-check.js +0 -13
- package/dist/scripts/release-parallel-speed-budget-check.js +0 -79
- package/dist/scripts/release-provenance-check.js +0 -150
- package/dist/scripts/release-readiness-report.js +0 -1146
- package/dist/scripts/release-real-check.js +0 -330
- package/dist/scripts/release-registry-check.js +0 -344
- package/dist/scripts/release-runtime-truth-matrix-check.js +0 -47
- package/dist/scripts/release-stability-report-check.js +0 -99
- package/dist/scripts/release-version-truth-check.js +0 -134
- package/dist/scripts/research-actual-route-backfill-check.js +0 -5
- package/dist/scripts/research-backfill-route-blackbox.js +0 -5
- package/dist/scripts/research-quality-gate-check.js +0 -86
- package/dist/scripts/responses-retry-policy-centralized-check.js +0 -19
- package/dist/scripts/retention-cleanup-safety-check.js +0 -155
- package/dist/scripts/route-blackbox-realism-check.js +0 -21
- package/dist/scripts/route-proof-artifact-structure-check.js +0 -145
- package/dist/scripts/runtime-dist-parity-check.js +0 -78
- package/dist/scripts/runtime-no-mjs-scripts-check.js +0 -45
- package/dist/scripts/runtime-no-src-mjs-check.js +0 -32
- package/dist/scripts/runtime-no-tmux-check.js +0 -113
- package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
- package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -74
- package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -55
- package/dist/scripts/safety-check.js +0 -23
- package/dist/scripts/shared-memory-fixture-check.js +0 -27
- package/dist/scripts/side-effect-runtime-report-check.js +0 -19
- package/dist/scripts/side-effect-zero-gate-check.js +0 -226
- package/dist/scripts/sks-1-11-fixture-check.js +0 -130
- package/dist/scripts/source-intelligence-all-modes-check.js +0 -32
- package/dist/scripts/source-intelligence-policy-check.js +0 -13
- package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +0 -22
- package/dist/scripts/strategy-file-ownership-plan-check.js +0 -18
- package/dist/scripts/strategy-parallel-modification-plan-check.js +0 -19
- package/dist/scripts/strategy-verification-rollback-dag-check.js +0 -19
- package/dist/scripts/team-actual-route-backfill-check.js +0 -5
- package/dist/scripts/team-backfill-route-blackbox.js +0 -5
- package/dist/scripts/team-parallel-write-blackbox.js +0 -55
- package/dist/scripts/team-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +0 -12
- package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
- package/dist/scripts/test-no-orphan-dist-imports-check.js +0 -73
- package/dist/scripts/trust-fixture-check.js +0 -33
- package/dist/scripts/typescript-migration-report.js +0 -78
- package/dist/scripts/ultra-router-auto-router-check.js +0 -33
- package/dist/scripts/ultra-router-classification-check.js +0 -28
- package/dist/scripts/ux-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/ux-ppt-structured-extraction-check.js +0 -21
- package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +0 -8
- package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -15
- package/dist/scripts/ux-review-generate-callouts-fixture-check.js +0 -9
- package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
- package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -67
- package/dist/scripts/ux-review-no-fake-callouts-check.js +0 -8
- package/dist/scripts/ux-review-no-text-fallback-check.js +0 -25
- package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -20
- package/dist/scripts/ux-review-patch-handoff-fixture-check.js +0 -8
- package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -31
- package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -24
- package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
- package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -11
- package/dist/scripts/worker-pane-communication-contract-check.js +0 -54
- package/dist/scripts/wrongness-fixture-check.js +0 -65
- package/dist/scripts/xai-mcp-capability-check.js +0 -14
- package/dist/scripts/zellij-capability-check.js +0 -15
- package/dist/scripts/zellij-dashboard-pane-check.js +0 -70
- package/dist/scripts/zellij-developer-controls-check.js +0 -20
- package/dist/scripts/zellij-doctor-readiness-check.js +0 -63
- package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -21
- package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
- package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -356
- package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -28
- package/dist/scripts/zellij-lane-renderer-check.js +0 -65
- package/dist/scripts/zellij-launch-command-truth-check.js +0 -75
- package/dist/scripts/zellij-layout-valid-check.js +0 -90
- package/dist/scripts/zellij-pane-proof-check.js +0 -59
- package/dist/scripts/zellij-real-session-cleanup-check.js +0 -21
- package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
- package/dist/scripts/zellij-real-session-launch-check.js +0 -57
- package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -22
- package/dist/scripts/zellij-right-column-manager-check.js +0 -27
- package/dist/scripts/zellij-screen-proof-check.js +0 -45
- package/dist/scripts/zellij-slot-column-anchor-check.js +0 -66
- package/dist/scripts/zellij-slot-only-ui-check.js +0 -26
- package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -106
- package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -59
- package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -40
- package/dist/scripts/zellij-ui-design-check.js +0 -105
- package/dist/scripts/zellij-worker-pane-manager-check.js +0 -109
- package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
- package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -202
- package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.input.schema.json +0 -61
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/permission-request.command.output.schema.json +0 -103
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.input.schema.json +0 -52
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-compact.command.output.schema.json +0 -24
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.input.schema.json +0 -67
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/post-tool-use.command.output.schema.json +0 -84
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.input.schema.json +0 -52
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-compact.command.output.schema.json +0 -24
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.input.schema.json +0 -65
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/pre-tool-use.command.output.schema.json +0 -105
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.input.schema.json +0 -59
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/session-start.command.output.schema.json +0 -63
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/snapshot-metadata.json +0 -31
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.input.schema.json +0 -63
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/stop.command.output.schema.json +0 -45
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.input.schema.json +0 -59
- package/dist/vendor/openai-codex/rust-v0.131.0/hooks/user-prompt-submit.command.output.schema.json +0 -81
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist, root, readJson } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const releaseVersion = readJson('package.json').version;
|
|
5
|
-
const mod = await importDist('core/proof/runtime-truth-matrix.js');
|
|
6
|
-
const matrix = await mod.buildRuntimeTruthMatrix({ root, releaseVersion });
|
|
7
|
-
await mod.writeRuntimeTruthMatrix(root, matrix);
|
|
8
|
-
const requiredRows = [
|
|
9
|
-
'zellij_pane',
|
|
10
|
-
'codex_dynamic',
|
|
11
|
-
'cleanup',
|
|
12
|
-
'intelligent_work_graph',
|
|
13
|
-
'source_intelligence',
|
|
14
|
-
'goal_mode',
|
|
15
|
-
'route_blackbox',
|
|
16
|
-
'dynamic_scheduler',
|
|
17
|
-
'warp_mad_lanes',
|
|
18
|
-
'codex_0_134',
|
|
19
|
-
'mcp_0_134',
|
|
20
|
-
'parallel_write',
|
|
21
|
-
'patch_proof',
|
|
22
|
-
'native_cli_session_swarm',
|
|
23
|
-
'real_codex_parallel_workers',
|
|
24
|
-
'native_worker_backend_router',
|
|
25
|
-
'codex_child_overlap',
|
|
26
|
-
'model_authored_patch_envelopes',
|
|
27
|
-
'fast_mode_child_propagation',
|
|
28
|
-
'cleanup_v4',
|
|
29
|
-
'ast_type_work_graph',
|
|
30
|
-
'warp_mad_right_lanes'
|
|
31
|
-
];
|
|
32
|
-
assertGate(matrix.schema === 'sks.runtime-truth-matrix.v1', 'runtime truth matrix schema mismatch', matrix);
|
|
33
|
-
for (const subsystem of requiredRows) {
|
|
34
|
-
const row = matrix.rows.find((item) => item.subsystem === subsystem);
|
|
35
|
-
assertGate(Boolean(row), `runtime truth matrix missing subsystem ${subsystem}`, matrix);
|
|
36
|
-
assertGate(typeof row.proof_level === 'string', `runtime truth row missing proof level: ${subsystem}`, row);
|
|
37
|
-
assertGate(Array.isArray(row.evidence_artifacts), `runtime truth row missing evidence artifacts: ${subsystem}`, row);
|
|
38
|
-
assertGate(Array.isArray(row.blockers), `runtime truth row missing blockers: ${subsystem}`, row);
|
|
39
|
-
assertGate(typeof row.next_action === 'string', `runtime truth row missing next action: ${subsystem}`, row);
|
|
40
|
-
assertGate(typeof row.required_mode === 'boolean', `runtime truth row missing required mode: ${subsystem}`, row);
|
|
41
|
-
}
|
|
42
|
-
for (const priority of ['P0', 'P1', 'P2', 'P3', 'P4', 'P5', 'P6']) {
|
|
43
|
-
assertGate(['closed', 'blocked', 'not_applicable_with_proof'].includes(matrix.priorities[priority]?.status), `runtime truth matrix missing ${priority}`, matrix);
|
|
44
|
-
}
|
|
45
|
-
assertGate(matrix.ok === true, 'runtime truth matrix has required blockers', matrix);
|
|
46
|
-
emitGate('release:runtime-truth-matrix', { subsystems: matrix.rows.length, version: releaseVersion });
|
|
47
|
-
//# sourceMappingURL=release-runtime-truth-matrix-check.js.map
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { assertGate, emitGate, readJson, root } from './sks-1-18-gate-lib.js';
|
|
6
|
-
const manifest = readJson('release-gates.v2.json');
|
|
7
|
-
const currentRunDir = process.env.SKS_REPORT_DIR ? path.dirname(process.env.SKS_REPORT_DIR) : null;
|
|
8
|
-
const latestReleaseRun = currentRunDir || latestDir(path.join(root, '.sneakoscope', 'reports', 'release-gates'));
|
|
9
|
-
const latestSummary = currentRunDir ? summarizeCurrentRun(currentRunDir) : latestReleaseRun ? readJsonIfExists(path.join(latestReleaseRun, 'summary.json')) : null;
|
|
10
|
-
const zellijReportPath = path.join(root, '.sneakoscope', 'reports', 'zellij-worker-pane-real-ui-blackbox.json');
|
|
11
|
-
const zellij = fs.existsSync(zellijReportPath) ? JSON.parse(fs.readFileSync(zellijReportPath, 'utf8')) : null;
|
|
12
|
-
const requiredGateIds = [
|
|
13
|
-
'release:dag-runner',
|
|
14
|
-
'release:parallel-speed-budget',
|
|
15
|
-
'git:worktree-manifest-append',
|
|
16
|
-
'git:worktree-dirty-main-detection',
|
|
17
|
-
'git:worktree-untracked-diff',
|
|
18
|
-
'git:worktree-diff-envelope',
|
|
19
|
-
'git:worktree-integration-primary',
|
|
20
|
-
'git:worktree-dirty-lock',
|
|
21
|
-
'naruto:worktree-coding:blackbox',
|
|
22
|
-
'release:version-truth'
|
|
23
|
-
];
|
|
24
|
-
const manifestIds = new Set(manifest.gates.map((gate) => gate.id));
|
|
25
|
-
const missing = requiredGateIds.filter((id) => !manifestIds.has(id));
|
|
26
|
-
const score = computeScore({ missing, latestSummary, zellij });
|
|
27
|
-
const report = {
|
|
28
|
-
schema: 'sks.release-stability-report.v1',
|
|
29
|
-
ok: score >= 9.5 && missing.length === 0 && latestSummary?.ok === true && zellij?.ok === true,
|
|
30
|
-
target_score: 9.5,
|
|
31
|
-
score,
|
|
32
|
-
manifest_gate_count: manifest.gates.length,
|
|
33
|
-
latest_release_summary: latestSummary ? path.relative(root, path.join(latestReleaseRun, 'summary.json')) : null,
|
|
34
|
-
release_check_ok: latestSummary?.ok === true,
|
|
35
|
-
release_check_passed: latestSummary?.completed || 0,
|
|
36
|
-
release_check_failed: latestSummary?.failed || 0,
|
|
37
|
-
zellij_real_worker_panes_ok: zellij?.ok === true,
|
|
38
|
-
zellij_real_worker_panes: zellij?.real_pane_ids || 0,
|
|
39
|
-
missing_required_gates: missing,
|
|
40
|
-
blockers: []
|
|
41
|
-
};
|
|
42
|
-
if (!report.ok) {
|
|
43
|
-
report.blockers = [
|
|
44
|
-
...(score >= 9.5 ? [] : ['stability_score_below_target']),
|
|
45
|
-
...(missing.length ? ['required_release_gate_missing'] : []),
|
|
46
|
-
...(latestSummary?.ok === true ? [] : ['latest_release_check_not_green']),
|
|
47
|
-
...(zellij?.ok === true ? [] : ['zellij_real_worker_panes_not_green'])
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
fs.mkdirSync(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
51
|
-
fs.writeFileSync(path.join(root, '.sneakoscope', 'reports', 'release-stability-report.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
52
|
-
assertGate(report.ok, 'release stability report must meet 9.5+ target', report);
|
|
53
|
-
emitGate('release:stability-report', report);
|
|
54
|
-
function computeScore({ missing, latestSummary, zellij }) {
|
|
55
|
-
let score = 10;
|
|
56
|
-
score -= missing.length * 0.25;
|
|
57
|
-
if (latestSummary?.ok !== true)
|
|
58
|
-
score -= 1.5;
|
|
59
|
-
if ((latestSummary?.failed || 0) > 0)
|
|
60
|
-
score -= 1;
|
|
61
|
-
if (zellij?.ok !== true)
|
|
62
|
-
score -= 1;
|
|
63
|
-
return Number(Math.max(0, score).toFixed(2));
|
|
64
|
-
}
|
|
65
|
-
function latestDir(dir) {
|
|
66
|
-
if (!fs.existsSync(dir))
|
|
67
|
-
return null;
|
|
68
|
-
const dirs = fs.readdirSync(dir)
|
|
69
|
-
.map((name) => path.join(dir, name))
|
|
70
|
-
.filter((candidate) => fs.statSync(candidate).isDirectory())
|
|
71
|
-
.sort((a, b) => fs.statSync(b).mtimeMs - fs.statSync(a).mtimeMs);
|
|
72
|
-
return dirs[0] || null;
|
|
73
|
-
}
|
|
74
|
-
function summarizeCurrentRun(runDir) {
|
|
75
|
-
const results = [];
|
|
76
|
-
for (const entry of fs.readdirSync(runDir)) {
|
|
77
|
-
const result = readJsonIfExists(path.join(runDir, entry, 'result.json'));
|
|
78
|
-
if (result && result.id !== 'release:stability-report')
|
|
79
|
-
results.push(result);
|
|
80
|
-
}
|
|
81
|
-
if (!results.length)
|
|
82
|
-
return null;
|
|
83
|
-
const failed = results.filter((result) => result.ok !== true);
|
|
84
|
-
return {
|
|
85
|
-
schema: 'sks.release-gate-current-run-summary.v1',
|
|
86
|
-
ok: failed.length === 0,
|
|
87
|
-
completed: results.filter((result) => result.ok === true).length,
|
|
88
|
-
failed: failed.length
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function readJsonIfExists(file) {
|
|
92
|
-
try {
|
|
93
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=release-stability-report-check.js.map
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { spawnSync } from 'node:child_process';
|
|
6
|
-
import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const pkg = readJson('package.json');
|
|
8
|
-
const expected = String(pkg.version || '');
|
|
9
|
-
const mismatches = [];
|
|
10
|
-
const warnings = [];
|
|
11
|
-
checkJson('package.json', 'version', pkg.version);
|
|
12
|
-
const lock = readJson('package-lock.json');
|
|
13
|
-
checkJson('package-lock.json', 'version', lock.version);
|
|
14
|
-
checkJson('package-lock.json', 'packages[""].version', lock.packages?.['']?.version);
|
|
15
|
-
checkRegex('src/core/version.ts', /PACKAGE_VERSION\s*=\s*['"]([^'"]+)['"]/, 'PACKAGE_VERSION');
|
|
16
|
-
checkRegex('src/core/fsx.ts', /PACKAGE_VERSION\s*=\s*['"]([^'"]+)['"]/, 'PACKAGE_VERSION');
|
|
17
|
-
checkRegex('src/bin/sks.ts', /FAST_PACKAGE_VERSION\s*=\s*['"]([^'"]+)['"]/, 'FAST_PACKAGE_VERSION');
|
|
18
|
-
checkRegex('crates/sks-core/Cargo.toml', /^version\s*=\s*"([^"]+)"/m, 'package.version');
|
|
19
|
-
checkCargoLock('crates/sks-core/Cargo.lock', 'sks-core');
|
|
20
|
-
const dist = readJson('dist/build-manifest.json', null);
|
|
21
|
-
checkJson('dist/build-manifest.json', 'package_version', dist?.package_version);
|
|
22
|
-
checkJson('dist/build-manifest.json', 'version', dist?.version);
|
|
23
|
-
checkChangelog();
|
|
24
|
-
checkReadme();
|
|
25
|
-
checkReleaseMetadataScript();
|
|
26
|
-
checkCargoMetadata();
|
|
27
|
-
const ok = mismatches.length === 0;
|
|
28
|
-
const report = {
|
|
29
|
-
schema: 'sks.release-version-truth.v1',
|
|
30
|
-
ok,
|
|
31
|
-
expected,
|
|
32
|
-
mismatches,
|
|
33
|
-
warnings,
|
|
34
|
-
generated_at: new Date().toISOString()
|
|
35
|
-
};
|
|
36
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'release-version-truth.json');
|
|
37
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
38
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
39
|
-
assertGate(ok, 'release version truth mismatch', { expected, mismatches });
|
|
40
|
-
emitGate('release:version-truth', { version: expected, checked: 13, warnings: warnings.length });
|
|
41
|
-
function checkJson(file, field, actual) {
|
|
42
|
-
if (actual !== expected)
|
|
43
|
-
mismatch(file, field, actual);
|
|
44
|
-
}
|
|
45
|
-
function checkRegex(file, re, field) {
|
|
46
|
-
const text = readText(file);
|
|
47
|
-
const match = text.match(re);
|
|
48
|
-
if (!match)
|
|
49
|
-
mismatch(file, field, null);
|
|
50
|
-
else if (match[1] !== expected)
|
|
51
|
-
mismatch(file, field, match[1]);
|
|
52
|
-
}
|
|
53
|
-
function checkCargoLock(file, name) {
|
|
54
|
-
const text = readText(file);
|
|
55
|
-
const block = text.split(/\n\[\[package\]\]\n/).find((part) => new RegExp(`name\\s*=\\s*"${escapeRe(name)}"`).test(part));
|
|
56
|
-
const match = block?.match(/version\s*=\s*"([^"]+)"/);
|
|
57
|
-
if (!match)
|
|
58
|
-
mismatch(file, `${name}.version`, null);
|
|
59
|
-
else if (match[1] !== expected)
|
|
60
|
-
mismatch(file, `${name}.version`, match[1]);
|
|
61
|
-
}
|
|
62
|
-
function checkChangelog() {
|
|
63
|
-
const text = readText('CHANGELOG.md');
|
|
64
|
-
const latest = latestVersionedChangelogSection(text);
|
|
65
|
-
if (latest !== expected)
|
|
66
|
-
mismatch('CHANGELOG.md', 'latest release section', latest);
|
|
67
|
-
}
|
|
68
|
-
function checkReadme() {
|
|
69
|
-
const text = readText('README.md');
|
|
70
|
-
const displayed = text.match(/SKS \*\*([0-9]+\.[0-9]+\.[0-9]+)\*\*/)?.[1] || null;
|
|
71
|
-
if (displayed && displayed !== expected)
|
|
72
|
-
mismatch('README.md', 'displayed current version', displayed);
|
|
73
|
-
}
|
|
74
|
-
function checkReleaseMetadataScript() {
|
|
75
|
-
const script = String(pkg.scripts?.['release:metadata'] || '');
|
|
76
|
-
if (!script.includes('dist/scripts/release-metadata-check.js')) {
|
|
77
|
-
mismatch('package.json', 'scripts.release:metadata', script || null, 'node ./dist/scripts/release-metadata-check.js');
|
|
78
|
-
}
|
|
79
|
-
const text = readText('src/scripts/release-metadata-check.ts');
|
|
80
|
-
if (!text.includes('release-metadata-1-19-check.js')) {
|
|
81
|
-
warnings.push({ file: 'src/scripts/release-metadata-check.ts', message: 'generic entrypoint does not reference historical implementation wrapper' });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function checkCargoMetadata() {
|
|
85
|
-
const res = spawnSync('cargo', ['metadata', '--no-deps', '--manifest-path', path.join(root, 'crates/sks-core/Cargo.toml'), '--format-version', '1'], {
|
|
86
|
-
cwd: root,
|
|
87
|
-
encoding: 'utf8',
|
|
88
|
-
timeout: 30000
|
|
89
|
-
});
|
|
90
|
-
if (res.status !== 0) {
|
|
91
|
-
warnings.push({ file: 'crates/sks-core/Cargo.toml', message: 'cargo metadata unavailable', stderr_tail: tail(res.stderr) });
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
try {
|
|
95
|
-
const metadata = JSON.parse(res.stdout);
|
|
96
|
-
const crate = metadata.packages?.find((row) => row.name === 'sks-core');
|
|
97
|
-
if (crate?.version !== expected)
|
|
98
|
-
mismatch('cargo metadata', 'sks-core.version', crate?.version || null);
|
|
99
|
-
}
|
|
100
|
-
catch (err) {
|
|
101
|
-
warnings.push({ file: 'cargo metadata', message: `unparseable:${err instanceof Error ? err.message : String(err)}` });
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function mismatch(file, field, actual, wanted = expected) {
|
|
105
|
-
mismatches.push({ file, field, expected: wanted, actual: actual ?? null });
|
|
106
|
-
}
|
|
107
|
-
function readJson(rel, fallback) {
|
|
108
|
-
try {
|
|
109
|
-
return JSON.parse(readText(rel));
|
|
110
|
-
}
|
|
111
|
-
catch (err) {
|
|
112
|
-
if (arguments.length > 1)
|
|
113
|
-
return fallback;
|
|
114
|
-
throw err;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function readText(rel) {
|
|
118
|
-
return fs.readFileSync(path.join(root, rel), 'utf8');
|
|
119
|
-
}
|
|
120
|
-
function escapeRe(value) {
|
|
121
|
-
return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
122
|
-
}
|
|
123
|
-
function latestVersionedChangelogSection(text) {
|
|
124
|
-
for (const match of text.matchAll(/^## \[([^\]]+)\]/gm)) {
|
|
125
|
-
if (/^[0-9]+\.[0-9]+\.[0-9]+$/.test(match[1]))
|
|
126
|
-
return match[1];
|
|
127
|
-
}
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
function tail(value, limit = 1000) {
|
|
131
|
-
const text = String(value || '');
|
|
132
|
-
return text.length > limit ? text.slice(-limit) : text;
|
|
133
|
-
}
|
|
134
|
-
//# sourceMappingURL=release-version-truth-check.js.map
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readText } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const mode = process.argv[2] || 'all';
|
|
5
|
-
const checks = {
|
|
6
|
-
'quality-contract': () => {
|
|
7
|
-
assertFileIncludes('src/core/research/research-quality-contract.ts', [
|
|
8
|
-
'min_sources_total: 12',
|
|
9
|
-
'min_source_layers_covered: 5',
|
|
10
|
-
'min_counterevidence_sources: 2',
|
|
11
|
-
'min_trianguled_claims: 6',
|
|
12
|
-
'min_key_claims: 8',
|
|
13
|
-
'min_report_words: 2200'
|
|
14
|
-
]);
|
|
15
|
-
assertFileIncludes('src/core/research.ts', ['quality_contract', 'writeResearchQualityContract', 'research_report_too_short']);
|
|
16
|
-
},
|
|
17
|
-
'claim-matrix': () => {
|
|
18
|
-
assertFileIncludes('src/core/research/claim-evidence-matrix.ts', ['CLAIM_EVIDENCE_MATRIX_ARTIFACT', 'validateClaimEvidenceMatrix', 'buildClaimEvidenceMatrixFromLedgers']);
|
|
19
|
-
assertFileIncludes('src/core/research.ts', ['claim_evidence_matrix_missing', 'key_claims_below_contract', 'triangulated_claims_below_contract']);
|
|
20
|
-
},
|
|
21
|
-
'source-quality-report': () => {
|
|
22
|
-
assertFileIncludes('src/core/research/source-quality-report.ts', ['SOURCE_QUALITY_REPORT_ARTIFACT', 'buildSourceQualityReport', 'claim_ids']);
|
|
23
|
-
assertFileIncludes('src/core/research.ts', ['source_quality_report_missing', 'writeSourceQualityReport']);
|
|
24
|
-
},
|
|
25
|
-
'implementation-blueprint': () => {
|
|
26
|
-
assertFileIncludes('src/core/research/implementation-blueprint.ts', ['IMPLEMENTATION_BLUEPRINT_ARTIFACT', 'validateImplementationBlueprint']);
|
|
27
|
-
assertFileIncludes('src/core/research.ts', ['implementation_blueprint_missing', 'renderImplementationBlueprintMarkdown']);
|
|
28
|
-
},
|
|
29
|
-
'experiment-plan': () => {
|
|
30
|
-
assertFileIncludes('src/core/research/experiment-plan.ts', ['EXPERIMENT_PLAN_JSON_ARTIFACT', 'min_experiment_steps', 'validateExperimentPlan']);
|
|
31
|
-
assertFileIncludes('src/core/research/experiment-plan.ts', ['experiment_plan_missing', 'experiment_plan_too_thin']);
|
|
32
|
-
assertFileIncludes('src/core/research.ts', ['experiment_plan_missing', 'validateExperimentPlan']);
|
|
33
|
-
},
|
|
34
|
-
'replication-pack': () => {
|
|
35
|
-
assertFileIncludes('src/core/research/replication-pack.ts', ['REPLICATION_PACK_ARTIFACT', 'validateReplicationPack']);
|
|
36
|
-
assertFileIncludes('src/core/research.ts', ['replication_pack_missing']);
|
|
37
|
-
},
|
|
38
|
-
'final-reviewer': () => {
|
|
39
|
-
assertFileIncludes('src/core/research/research-final-reviewer.ts', ['RESEARCH_FINAL_REVIEW_ARTIFACT', 'approved', 'runResearchFinalReviewer']);
|
|
40
|
-
assertFileIncludes('src/core/research.ts', ['research_final_review_not_approved']);
|
|
41
|
-
},
|
|
42
|
-
'work-graph': () => {
|
|
43
|
-
assertFileIncludes('src/core/research/research-work-graph.ts', ['RESEARCH_WORK_GRAPH_ARTIFACT', 'buildResearchWorkGraph', 'sks.naruto-work-graph.v1']);
|
|
44
|
-
assertFileIncludes('src/core/commands/research-command.ts', ['narutoWorkGraph: researchWorkGraph', 'readonly: true', 'runResearchCycle']);
|
|
45
|
-
},
|
|
46
|
-
'prompt-contract': () => {
|
|
47
|
-
assertFileIncludes('src/core/research/research-prompt-contract.ts', ['researchPromptContractText', 'validateResearchPromptContract']);
|
|
48
|
-
assertFileIncludes('src/core/research.ts', ['QUALITY CONTRACT:', 'researchPromptContractText()']);
|
|
49
|
-
},
|
|
50
|
-
'gate-thresholds': () => {
|
|
51
|
-
assertFileIncludes('src/core/research.ts', [
|
|
52
|
-
'source_entries_below_research_quality_contract',
|
|
53
|
-
'source_layer_coverage_below_contract',
|
|
54
|
-
'counterevidence_below_contract',
|
|
55
|
-
'required_artifact_missing'
|
|
56
|
-
]);
|
|
57
|
-
assertFileIncludes('src/core/research/falsification.ts', ['falsification_cases_below_contract']);
|
|
58
|
-
},
|
|
59
|
-
'schemas': () => {
|
|
60
|
-
for (const file of [
|
|
61
|
-
'schemas/research/research-quality-contract.schema.json',
|
|
62
|
-
'schemas/research/claim-evidence-matrix.schema.json',
|
|
63
|
-
'schemas/research/source-quality-report.schema.json',
|
|
64
|
-
'schemas/research/implementation-blueprint.schema.json',
|
|
65
|
-
'schemas/research/experiment-plan.schema.json',
|
|
66
|
-
'schemas/research/replication-pack.schema.json',
|
|
67
|
-
'schemas/research/research-final-review.schema.json'
|
|
68
|
-
])
|
|
69
|
-
assertGate(readText(file).includes('"$schema"'), `${file} missing JSON Schema header`);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
if (mode === 'all') {
|
|
73
|
-
for (const check of Object.values(checks))
|
|
74
|
-
check();
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
assertGate(Boolean(checks[mode]), `unknown research quality check: ${mode}`);
|
|
78
|
-
checks[mode]();
|
|
79
|
-
}
|
|
80
|
-
emitGate(`research:${mode}`, { mode });
|
|
81
|
-
function assertFileIncludes(file, tokens) {
|
|
82
|
-
const text = readText(file);
|
|
83
|
-
for (const token of tokens)
|
|
84
|
-
assertGate(text.includes(token), `${file} missing token ${token}`);
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=research-quality-gate-check.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'responses-retry-policy.js')).href);
|
|
10
|
-
const policy = mod.DEFAULT_RESPONSES_RETRY_POLICY;
|
|
11
|
-
const ok = policy.adapters.includes('source-intelligence') && policy.adapters.includes('codex-web') && policy.adapters.includes('mcp')
|
|
12
|
-
&& mod.shouldRetryResponsesError({ status: 429, attempt: 1 }) === true
|
|
13
|
-
&& mod.shouldRetryResponsesError({ status: 429, attempt: policy.max_attempts }) === false
|
|
14
|
-
&& mod.responsesRetryDelayMs(3) > mod.responsesRetryDelayMs(1);
|
|
15
|
-
emit({ schema: 'sks.responses-retry-policy-centralized-check.v1', ok, policy });
|
|
16
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
17
|
-
process.exitCode = 1; }
|
|
18
|
-
function fail(blocker, detail) { emit({ schema: 'sks.responses-retry-policy-centralized-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
|
|
19
|
-
//# sourceMappingURL=responses-retry-policy-centralized-check.js.map
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import fsp from 'node:fs/promises';
|
|
5
|
-
import os from 'node:os';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
import { pathToFileURL } from 'node:url';
|
|
8
|
-
import { assertGate, emitGate, root } from './sks-1-11-gate-lib.js';
|
|
9
|
-
const retentionPath = path.join(root, 'dist', 'core', 'retention.js');
|
|
10
|
-
assertGate(fs.existsSync(retentionPath), 'dist retention module missing; run npm run build first', { retentionPath });
|
|
11
|
-
const { enforceRetention } = await import(pathToFileURL(retentionPath).href);
|
|
12
|
-
const tmp = await fsp.mkdtemp(path.join(os.tmpdir(), 'sks-retention-cleanup-'));
|
|
13
|
-
try {
|
|
14
|
-
const applyRoot = path.join(tmp, 'apply');
|
|
15
|
-
const dryRoot = path.join(tmp, 'dry');
|
|
16
|
-
await writeFixture(applyRoot);
|
|
17
|
-
await writeFixture(dryRoot);
|
|
18
|
-
const applied = await enforceRetention(applyRoot, {
|
|
19
|
-
pruneReportLogs: true,
|
|
20
|
-
policy: { max_tmp_age_hours: 0, max_mission_age_days: 0, max_missions: 999 }
|
|
21
|
-
});
|
|
22
|
-
const dry = await enforceRetention(dryRoot, {
|
|
23
|
-
dryRun: true,
|
|
24
|
-
pruneReportLogs: true,
|
|
25
|
-
policy: { max_tmp_age_hours: 0, max_mission_age_days: 0, max_missions: 999 }
|
|
26
|
-
});
|
|
27
|
-
for (const rel of [
|
|
28
|
-
'.sneakoscope/memory/q2_facts/post-route-reflection.md',
|
|
29
|
-
'.sneakoscope/wiki/context-pack.json',
|
|
30
|
-
'.sneakoscope/wiki/records/learning.json',
|
|
31
|
-
'.sneakoscope/missions/M-done/completion-proof.json',
|
|
32
|
-
'.sneakoscope/missions/M-done/route-completion-contract.json',
|
|
33
|
-
'.sneakoscope/missions/M-done/evidence-index.json',
|
|
34
|
-
'.sneakoscope/missions/M-done/trust-report.json',
|
|
35
|
-
'.sneakoscope/missions/M-done/reflection.md',
|
|
36
|
-
'.sneakoscope/missions/M-done/reflection-gate.json',
|
|
37
|
-
'.sneakoscope/missions/M-done/agents/agent-proof-evidence.json',
|
|
38
|
-
'.sneakoscope/missions/M-old/completion-proof.json',
|
|
39
|
-
'.sneakoscope/missions/M-old/trust-report.json',
|
|
40
|
-
'.sneakoscope/missions/M-old/reflection.md',
|
|
41
|
-
'.sneakoscope/missions/M-done/sessions/terminal-transcript.log',
|
|
42
|
-
'.sneakoscope/missions/M-done/agents/sessions/session-1/terminal-transcript.log',
|
|
43
|
-
'.sneakoscope/missions/M-active/team-inbox/active.md',
|
|
44
|
-
'.sneakoscope/missions/M-blocked/team-inbox/blocked.md',
|
|
45
|
-
'.sneakoscope/missions/M-blocked/scout.stderr.log'
|
|
46
|
-
]) {
|
|
47
|
-
assertGate(exists(path.join(applyRoot, rel)), `durable or active artifact was removed: ${rel}`, { rel, actions: applied.actions });
|
|
48
|
-
}
|
|
49
|
-
for (const rel of [
|
|
50
|
-
'.sneakoscope/tmp/scratch.txt',
|
|
51
|
-
'.sneakoscope/missions/M-done/team-inbox/worker.md',
|
|
52
|
-
'.sneakoscope/missions/M-done/bus/event.jsonl',
|
|
53
|
-
'.sneakoscope/missions/M-done/agents/lanes/lane-1.json',
|
|
54
|
-
'.sneakoscope/missions/M-done/scout.stdout.log',
|
|
55
|
-
'.sneakoscope/missions/M-done/scout.stderr.log',
|
|
56
|
-
'.sneakoscope/missions/M-old/team-inbox/worker.md',
|
|
57
|
-
'.sneakoscope/missions/M-old/scout.stdout.log',
|
|
58
|
-
'.sneakoscope/reports/release-parallel-logs/build.stdout.log'
|
|
59
|
-
]) {
|
|
60
|
-
assertGate(!exists(path.join(applyRoot, rel)), `disposable artifact survived cleanup: ${rel}`, { rel, actions: applied.actions });
|
|
61
|
-
assertGate(exists(path.join(dryRoot, rel)), `dry-run removed artifact unexpectedly: ${rel}`, { rel, actions: dry.actions });
|
|
62
|
-
}
|
|
63
|
-
const actionKinds = new Set(applied.actions.map((row) => row.action));
|
|
64
|
-
for (const kind of ['remove_tmp', 'remove_closed_mission_raw_log', 'remove_disposable_report_log_dir']) {
|
|
65
|
-
assertGate(actionKinds.has(kind), `retention cleanup did not report action kind: ${kind}`, { actions: applied.actions });
|
|
66
|
-
}
|
|
67
|
-
assertGate(actionKinds.has('remove_closed_mission_workdir') || actionKinds.has('remove_old_mission_workdir'), 'retention cleanup did not report mission workdir cleanup', { actions: applied.actions });
|
|
68
|
-
assertGate(actionKinds.has('retain_mission_durable_context'), 'retention cleanup did not preserve old durable mission context', { actions: applied.actions });
|
|
69
|
-
assertGate(dry.actions.length >= applied.actions.length, 'dry-run should plan cleanup actions without deleting files', { applied: applied.actions.length, dry: dry.actions.length });
|
|
70
|
-
const report = {
|
|
71
|
-
schema: 'sks.retention-cleanup-safety.v1',
|
|
72
|
-
ok: true,
|
|
73
|
-
applied_actions: applied.actions.length,
|
|
74
|
-
dry_run_actions: dry.actions.length,
|
|
75
|
-
preserved_durable_context: applied.cleanup?.protected_durable_context || [],
|
|
76
|
-
removed_action_kinds: [...actionKinds].sort(),
|
|
77
|
-
generated_at: new Date().toISOString()
|
|
78
|
-
};
|
|
79
|
-
await fsp.mkdir(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
80
|
-
await fsp.writeFile(path.join(root, '.sneakoscope', 'reports', 'retention-cleanup-safety.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
81
|
-
emitGate('retention:cleanup-safety', report);
|
|
82
|
-
}
|
|
83
|
-
finally {
|
|
84
|
-
await fsp.rm(tmp, { recursive: true, force: true }).catch(() => { });
|
|
85
|
-
}
|
|
86
|
-
async function writeFixture(projectRoot) {
|
|
87
|
-
await write(path.join(projectRoot, '.sneakoscope', 'policy.json'), { retention: { max_tmp_age_hours: 0 } });
|
|
88
|
-
await write(path.join(projectRoot, '.sneakoscope', 'state', 'current.json'), { mission_id: 'M-active' });
|
|
89
|
-
await writeText(path.join(projectRoot, '.sneakoscope', 'tmp', 'scratch.txt'), 'temporary scratch\n');
|
|
90
|
-
await old(path.join(projectRoot, '.sneakoscope', 'tmp', 'scratch.txt'));
|
|
91
|
-
await writeText(path.join(projectRoot, '.sneakoscope', 'memory', 'q2_facts', 'post-route-reflection.md'), '# durable reflection\n');
|
|
92
|
-
await write(path.join(projectRoot, '.sneakoscope', 'wiki', 'context-pack.json'), { schema: 'sks.context-pack.v1', anchors: [] });
|
|
93
|
-
await write(path.join(projectRoot, '.sneakoscope', 'wiki', 'records', 'learning.json'), { schema: 'sks.triwiki-record.v1', durable: true });
|
|
94
|
-
await writeMission(projectRoot, 'M-done', true);
|
|
95
|
-
await writeMission(projectRoot, 'M-active', false);
|
|
96
|
-
await writeOldDurableMission(projectRoot);
|
|
97
|
-
await writeBlockedMission(projectRoot);
|
|
98
|
-
await writeText(path.join(projectRoot, '.sneakoscope', 'reports', 'release-parallel-logs', 'build.stdout.log'), 'summarized release log\n');
|
|
99
|
-
}
|
|
100
|
-
async function writeMission(projectRoot, missionId, closed) {
|
|
101
|
-
const dir = path.join(projectRoot, '.sneakoscope', 'missions', missionId);
|
|
102
|
-
await write(path.join(dir, 'mission.json'), { id: missionId, prompt: 'fixture' });
|
|
103
|
-
if (closed) {
|
|
104
|
-
await write(path.join(dir, 'completion-proof.json'), { schema: 'sks.completion-proof.v1', status: 'verified_partial', ok: true });
|
|
105
|
-
await write(path.join(dir, 'route-completion-contract.json'), { mission_id: missionId });
|
|
106
|
-
await write(path.join(dir, 'evidence-index.json'), { mission_id: missionId, evidence: [] });
|
|
107
|
-
await write(path.join(dir, 'trust-report.json'), { mission_id: missionId, status: 'verified_partial' });
|
|
108
|
-
await writeText(path.join(dir, 'reflection.md'), '# retained reflection\n');
|
|
109
|
-
await write(path.join(dir, 'reflection-gate.json'), { passed: true });
|
|
110
|
-
await write(path.join(dir, 'team-gate.json'), { passed: true });
|
|
111
|
-
await write(path.join(dir, 'team-session-cleanup.json'), { passed: true, all_sessions_closed: true });
|
|
112
|
-
await write(path.join(dir, 'agents', 'agent-proof-evidence.json'), { ok: true, all_sessions_closed: true });
|
|
113
|
-
await writeText(path.join(dir, 'sessions', 'terminal-transcript.log'), 'transcript stays\n');
|
|
114
|
-
await writeText(path.join(dir, 'agents', 'sessions', 'session-1', 'terminal-transcript.log'), 'agent transcript stays\n');
|
|
115
|
-
await writeText(path.join(dir, 'scout.stdout.log'), 'raw stdout\n');
|
|
116
|
-
await writeText(path.join(dir, 'scout.stderr.log'), 'raw stderr\n');
|
|
117
|
-
await writeText(path.join(dir, 'team-inbox', 'worker.md'), 'temporary inbox\n');
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
await writeText(path.join(dir, 'team-inbox', 'active.md'), 'active mission scratch stays\n');
|
|
121
|
-
}
|
|
122
|
-
await writeText(path.join(dir, 'bus', 'event.jsonl'), '{"event":"temporary"}\n');
|
|
123
|
-
await writeText(path.join(dir, 'agents', 'lanes', 'lane-1.json'), '{"lane":"temporary"}\n');
|
|
124
|
-
}
|
|
125
|
-
async function writeOldDurableMission(projectRoot) {
|
|
126
|
-
const dir = path.join(projectRoot, '.sneakoscope', 'missions', 'M-old');
|
|
127
|
-
await write(path.join(dir, 'completion-proof.json'), { schema: 'sks.completion-proof.v1', status: 'verified', blockers: [] });
|
|
128
|
-
await write(path.join(dir, 'trust-report.json'), { status: 'verified' });
|
|
129
|
-
await write(path.join(dir, 'evidence-index.json'), { evidence: [] });
|
|
130
|
-
await writeText(path.join(dir, 'reflection.md'), '# old retained reflection\n');
|
|
131
|
-
await writeText(path.join(dir, 'team-inbox', 'worker.md'), 'old scratch\n');
|
|
132
|
-
await writeText(path.join(dir, 'scout.stdout.log'), 'old raw log\n');
|
|
133
|
-
await old(dir);
|
|
134
|
-
}
|
|
135
|
-
async function writeBlockedMission(projectRoot) {
|
|
136
|
-
const dir = path.join(projectRoot, '.sneakoscope', 'missions', 'M-blocked');
|
|
137
|
-
await write(path.join(dir, 'completion-proof.json'), { schema: 'sks.completion-proof.v1', status: 'blocked', blockers: ['fixture_blocker'] });
|
|
138
|
-
await writeText(path.join(dir, 'team-inbox', 'blocked.md'), 'diagnostic scratch\n');
|
|
139
|
-
await writeText(path.join(dir, 'scout.stderr.log'), 'diagnostic raw log\n');
|
|
140
|
-
}
|
|
141
|
-
async function write(file, data) {
|
|
142
|
-
await writeText(file, `${JSON.stringify(data, null, 2)}\n`);
|
|
143
|
-
}
|
|
144
|
-
async function writeText(file, text) {
|
|
145
|
-
await fsp.mkdir(path.dirname(file), { recursive: true });
|
|
146
|
-
await fsp.writeFile(file, text, 'utf8');
|
|
147
|
-
}
|
|
148
|
-
async function old(file) {
|
|
149
|
-
const past = new Date(Date.now() - 60_000);
|
|
150
|
-
await fsp.utimes(file, past, past);
|
|
151
|
-
}
|
|
152
|
-
function exists(file) {
|
|
153
|
-
return fs.existsSync(file);
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=retention-cleanup-safety-check.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
const lib = fs.readFileSync(path.join(root, 'src', 'scripts', 'agent-route-blackbox-lib.ts'), 'utf8');
|
|
7
|
-
const proof = fs.readFileSync(path.join(root, 'src', 'core', 'agents', 'agent-proof-evidence.ts'), 'utf8');
|
|
8
|
-
const packageJson = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
|
9
|
-
for (const token of ['runActualAgentBackfillBlackbox', 'runActualTeamBackfillBlackbox', 'runActualResearchBackfillBlackbox', 'runActualQaBackfillBlackbox']) {
|
|
10
|
-
assertGate(lib.includes(token), `route blackbox helper missing ${token}`);
|
|
11
|
-
}
|
|
12
|
-
for (const token of ['actual_agent_command', 'actual_team_command', 'actual_research_command', 'actual_qa_command']) {
|
|
13
|
-
assertGate(lib.includes(token), `route blackbox helper missing exact kind ${token}`);
|
|
14
|
-
}
|
|
15
|
-
assertGate(proof.includes('non_agent_route_used_generic_agent_run_route_standin'), 'proof must block non-agent route stand-ins');
|
|
16
|
-
assertGate(proof.includes('real_route_command_used'), 'proof must record real_route_command_used');
|
|
17
|
-
assertGate(Boolean(packageJson.scripts['dfix:fixture']), 'DFix route fixture gate must exist');
|
|
18
|
-
assertGate(Boolean(packageJson.scripts['ppt:full-e2e-blackbox']), 'PPT route blackbox gate must exist');
|
|
19
|
-
assertGate(Boolean(packageJson.scripts['ux-review:imagegen-blackbox']), 'UX route blackbox gate must exist');
|
|
20
|
-
emitGate('route:blackbox-realism', { actual_route_helpers: 4, standin_blocker: true });
|
|
21
|
-
//# sourceMappingURL=route-blackbox-realism-check.js.map
|