sneakoscope 2.0.14 → 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-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/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 +81 -1
- package/dist/core/commands/research-command.js +13 -1
- 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/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 +1 -1
- package/dist/core/research/implementation-blueprint-markdown.js +1 -1
- package/dist/core/research/implementation-blueprint.js +68 -7
- package/dist/core/research/research-final-reviewer.js +27 -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-stage-runner.js +40 -13
- package/dist/core/research/research-synthesis-prompt.js +52 -0
- package/dist/core/research/research-synthesis-writer.js +208 -0
- package/dist/core/research.js +60 -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 +52 -5
- 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-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/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 -47
- 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 -66
- 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 -84
- package/dist/scripts/release-provenance-check.js +0 -150
- 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-blueprint-densifier-check.js +0 -21
- package/dist/scripts/research-claim-builder-check.js +0 -19
- package/dist/scripts/research-complete-package-fixture-check.js +0 -23
- package/dist/scripts/research-final-reviewer-blackbox.js +0 -22
- package/dist/scripts/research-parallel-source-shards-check.js +0 -22
- package/dist/scripts/research-quality-gate-check.js +0 -111
- package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +0 -14
- package/dist/scripts/research-short-report-rejection-check.js +0 -46
- package/dist/scripts/research-source-ledger-merge-check.js +0 -26
- package/dist/scripts/research-stage-cycle-runtime-blackbox.js +0 -24
- 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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
6
|
+
const reports = path.join(root, '.sneakoscope', 'reports', 'release-gates');
|
|
7
|
+
const runs = fs.existsSync(reports)
|
|
8
|
+
? fs.readdirSync(reports).map((name) => path.join(reports, name, 'summary.json')).filter((file) => fs.existsSync(file))
|
|
9
|
+
: [];
|
|
10
|
+
const latest = runs.sort((a, b) => fs.statSync(b).mtimeMs - fs.statSync(a).mtimeMs)[0];
|
|
11
|
+
const summary = latest ? JSON.parse(fs.readFileSync(latest, 'utf8')) : null;
|
|
12
|
+
console.log(JSON.stringify({
|
|
13
|
+
schema: 'sks.release-speed-summary.v1',
|
|
14
|
+
ok: true,
|
|
15
|
+
report: latest || null,
|
|
16
|
+
selected_gates: summary?.selected_gates || 0,
|
|
17
|
+
skipped_by_affected: summary?.skipped_by_affected?.length || 0,
|
|
18
|
+
cached: summary?.cached || 0,
|
|
19
|
+
executed: summary?.executed_gates?.length || 0,
|
|
20
|
+
wall_ms: summary?.wall_ms || 0,
|
|
21
|
+
cpu_time_saved_ms: summary?.cpu_time_saved_ms || 0,
|
|
22
|
+
parallelism_gain: summary?.parallelism_gain || 0,
|
|
23
|
+
slowest_gates: summary?.slowest_gates || []
|
|
24
|
+
}, null, 2));
|
|
25
|
+
//# sourceMappingURL=release-speed-summary.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.15",
|
|
5
5
|
"description": "Sneakoscope Codex: fast proof-first Codex trust layer with image-based Voxel TriWiki.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"!dist/build-manifest.json",
|
|
27
27
|
"!dist/vendor/openai-codex/rust-v0.131.0",
|
|
28
|
+
"!dist/scripts/*-blackbox.js",
|
|
29
|
+
"!dist/scripts/*-check.js",
|
|
30
|
+
"!dist/scripts/*-report.js",
|
|
28
31
|
"!dist/scripts/release-readiness-report.js",
|
|
29
32
|
"schemas",
|
|
30
33
|
"crates/sks-core/Cargo.lock",
|
|
@@ -316,13 +319,13 @@
|
|
|
316
319
|
"ultra-router:classification": "node ./dist/scripts/ultra-router-classification-check.js",
|
|
317
320
|
"ultra-router:auto-router": "node ./dist/scripts/ultra-router-auto-router-check.js",
|
|
318
321
|
"coverage": "node --experimental-test-coverage --test \"test/**/*.test.mjs\"",
|
|
319
|
-
"release:check": "npm run
|
|
322
|
+
"release:check": "npm run release:check:affected",
|
|
320
323
|
"release:real-check": "node ./dist/scripts/release-real-check.js",
|
|
321
324
|
"release:publish": "npm run publish:npm",
|
|
322
|
-
"publish:dry": "npm run release:metadata && npm run release:version-truth && npm run publish:packlist-performance && npm run
|
|
325
|
+
"publish:dry": "npm run release:metadata && npm run release:version-truth && npm run publish:packlist-performance && npm run release:check:full && node ./dist/scripts/check-publish-tag.js && node ./dist/scripts/release-check-stamp.js verify && npm run release:provenance -- --publish && npm run release:dist-freshness && node ./dist/scripts/release-registry-check.js --require-unpublished && npm --cache /tmp/sks-npm-cache publish --dry-run --ignore-scripts --registry https://registry.npmjs.org/ --access public",
|
|
323
326
|
"publish:npm": "npm --cache /tmp/sks-npm-cache publish --registry https://registry.npmjs.org/ --access public",
|
|
324
327
|
"prepack": "npm run build",
|
|
325
|
-
"prepublishOnly": "npm run release:metadata && npm run release:version-truth && npm run release:dist-freshness && npm run publish:packlist-performance && npm run
|
|
328
|
+
"prepublishOnly": "npm run release:metadata && npm run release:version-truth && npm run release:dist-freshness && npm run publish:packlist-performance && npm run release:check:full && node ./dist/scripts/check-publish-tag.js && node ./dist/scripts/release-check-stamp.js verify && npm run release:provenance -- --publish && node ./dist/scripts/release-registry-check.js --require-unpublished --require-publish-auth",
|
|
326
329
|
"dist:check": "node ./dist/scripts/check-dist-runtime.js",
|
|
327
330
|
"ux-review:run-wires-imagegen": "node ./dist/scripts/ux-review-run-wires-imagegen-check.js",
|
|
328
331
|
"ux-review:extract-wires-real-extractor": "node ./dist/scripts/ux-review-extract-wires-real-extractor-check.js",
|
|
@@ -408,6 +411,14 @@
|
|
|
408
411
|
"research:prompt-contract": "node ./dist/scripts/research-quality-gate-check.js prompt-contract",
|
|
409
412
|
"research:gate-thresholds": "node ./dist/scripts/research-quality-gate-check.js gate-thresholds",
|
|
410
413
|
"research:report-quality": "node ./dist/scripts/research-quality-gate-check.js report-quality",
|
|
414
|
+
"research:synthesis-writer": "node ./dist/scripts/research-synthesis-writer-check.js",
|
|
415
|
+
"research:synthesis-prompt-contract": "node ./dist/scripts/research-synthesis-prompt-contract-check.js",
|
|
416
|
+
"research:synthesis-writer-blackbox": "node ./dist/scripts/research-synthesis-writer-blackbox.js",
|
|
417
|
+
"research:repetition-detector": "node ./dist/scripts/research-repetition-detector-check.js",
|
|
418
|
+
"research:template-report-rejection": "node ./dist/scripts/research-template-report-rejection-check.js",
|
|
419
|
+
"research:real-synthesis-no-deterministic-renderer": "node ./dist/scripts/research-real-synthesis-no-deterministic-renderer-check.js",
|
|
420
|
+
"research:handoff-consumability": "node ./dist/scripts/research-handoff-consumability-check.js",
|
|
421
|
+
"research:ultra-stability-report": "node ./dist/scripts/research-ultra-stability-report.js",
|
|
411
422
|
"research:stage-cycle-runner": "node ./dist/scripts/research-quality-gate-check.js stage-cycle-runner",
|
|
412
423
|
"research:parallel-work-graph-runtime": "node ./dist/scripts/research-stage-cycle-runtime-blackbox.js",
|
|
413
424
|
"research:parallel-source-shards": "node ./dist/scripts/research-parallel-source-shards-check.js",
|
|
@@ -575,7 +586,43 @@
|
|
|
575
586
|
"git:worktree-integration-primary-runtime": "node ./dist/scripts/git-worktree-integration-primary-runtime-check.js",
|
|
576
587
|
"agent:role-config-repair": "node ./dist/scripts/agent-role-config-repair-check.js",
|
|
577
588
|
"release:dag-full-coverage": "node ./dist/scripts/release-dag-full-coverage-check.js",
|
|
578
|
-
"release:cache-glob-hashing": "node ./dist/scripts/release-cache-glob-hashing-check.js"
|
|
589
|
+
"release:cache-glob-hashing": "node ./dist/scripts/release-cache-glob-hashing-check.js",
|
|
590
|
+
"release:check:affected": "npm run build --silent && node ./dist/scripts/release-gate-dag-runner.js --preset affected --changed-since auto",
|
|
591
|
+
"release:check:full": "npm run build --silent && node ./dist/scripts/release-gate-dag-runner.js --preset release --full && node ./dist/scripts/release-check-stamp.js write",
|
|
592
|
+
"release:check:fast": "npm run build --silent && node ./dist/scripts/release-gate-dag-runner.js --preset fast --changed-since auto",
|
|
593
|
+
"release:check:research": "npm run build --silent && node ./dist/scripts/release-gate-dag-runner.js --preset research",
|
|
594
|
+
"zellij:slot-telemetry": "node ./dist/scripts/zellij-slot-telemetry-check.js",
|
|
595
|
+
"agent:slot-telemetry-wiring": "node ./dist/scripts/agent-slot-telemetry-wiring-check.js",
|
|
596
|
+
"zellij:slot-telemetry-renderer": "node ./dist/scripts/zellij-slot-telemetry-renderer-check.js",
|
|
597
|
+
"zellij:slot-telemetry-real": "node ./dist/scripts/zellij-slot-telemetry-real-blackbox.js",
|
|
598
|
+
"release:affected-selector": "node ./dist/scripts/release-affected-selector-check.js",
|
|
599
|
+
"release:dynamic-presets": "node ./dist/scripts/release-dynamic-presets-check.js",
|
|
600
|
+
"release:batch-runner": "node ./dist/scripts/release-batch-runner-check.js",
|
|
601
|
+
"release:aggressive-resource-governor": "node ./dist/scripts/release-aggressive-resource-governor-check.js",
|
|
602
|
+
"release:speed-summary": "node ./dist/scripts/release-speed-summary-check.js",
|
|
603
|
+
"release:speed-summary:check": "node ./dist/scripts/release-speed-summary-check.js",
|
|
604
|
+
"naruto:ssot-routing": "node ./dist/scripts/naruto-ssot-routing-check.js",
|
|
605
|
+
"sks:team-alias-to-naruto": "node ./dist/scripts/team-alias-to-naruto-check.js",
|
|
606
|
+
"update:notice": "node ./dist/scripts/update-notice-check.js",
|
|
607
|
+
"update:gate-removed": "node ./dist/scripts/update-gate-removed-check.js",
|
|
608
|
+
"update:mad-zellij-notice": "node ./dist/scripts/update-mad-zellij-notice-check.js",
|
|
609
|
+
"mad-db:capability": "node ./dist/scripts/mad-db-capability-check.js",
|
|
610
|
+
"mad-db:command": "node ./dist/scripts/mad-db-command-check.js",
|
|
611
|
+
"mad-db:mad-command": "node ./dist/scripts/mad-db-mad-command-check.js",
|
|
612
|
+
"mad-db:priority-resolver": "node ./dist/scripts/mad-db-priority-resolver-check.js",
|
|
613
|
+
"mad-db:ledger": "node ./dist/scripts/mad-db-ledger-check.js",
|
|
614
|
+
"mad-db:one-cycle-consumption": "node ./dist/scripts/mad-db-one-cycle-consumption-check.js",
|
|
615
|
+
"mad-db:safety-conflict-matrix": "node ./dist/scripts/mad-db-safety-conflict-matrix-check.js",
|
|
616
|
+
"zellij:slot-telemetry-runtime": "node ./dist/scripts/zellij-slot-telemetry-runtime-check.js",
|
|
617
|
+
"zellij:slot-pane-telemetry-renderer": "node ./dist/scripts/zellij-slot-pane-telemetry-renderer-check.js",
|
|
618
|
+
"zellij:slot-column-anchor-telemetry": "node ./dist/scripts/zellij-slot-column-anchor-telemetry-check.js",
|
|
619
|
+
"release:gate-batch-runner": "node ./dist/scripts/release-gate-batch-runner-check.js",
|
|
620
|
+
"naruto:ssot-route-normalization": "node ./dist/scripts/naruto-ssot-route-normalization-check.js",
|
|
621
|
+
"naruto:ssot-default": "node ./dist/scripts/naruto-ssot-default-check.js",
|
|
622
|
+
"naruto:ssot-gate-aliases": "node ./dist/scripts/naruto-ssot-gate-aliases-check.js",
|
|
623
|
+
"naruto:ssot-pipeline-default": "node ./dist/scripts/naruto-ssot-pipeline-default-check.js",
|
|
624
|
+
"team:alias-to-naruto": "node ./dist/scripts/team-alias-to-naruto-check.js",
|
|
625
|
+
"release:speed-summary:report": "node ./dist/scripts/release-speed-summary.js"
|
|
579
626
|
},
|
|
580
627
|
"keywords": [
|
|
581
628
|
"sneakoscope",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sks.mad-db-capability.v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "mission_id", "cycle_id", "enabled", "created_at", "expires_at", "one_cycle_only", "priority", "scope", "operator_ack", "consumed"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "sks.mad-db-capability.v1" },
|
|
8
|
+
"mission_id": { "type": "string", "pattern": "^M-" },
|
|
9
|
+
"cycle_id": { "type": "string" },
|
|
10
|
+
"enabled": { "type": "boolean" },
|
|
11
|
+
"created_at": { "type": "string" },
|
|
12
|
+
"expires_at": { "type": "string" },
|
|
13
|
+
"one_cycle_only": { "const": true },
|
|
14
|
+
"priority": { "const": "highest" },
|
|
15
|
+
"scope": { "const": "all_database_mutations" },
|
|
16
|
+
"operator_ack": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["phrase", "accepted_at", "cwd"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"phrase": { "const": "I AUTHORIZE ONE-CYCLE DB BREAK-GLASS" },
|
|
21
|
+
"accepted_at": { "type": "string" },
|
|
22
|
+
"cwd": { "type": "string" }
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": true
|
|
25
|
+
},
|
|
26
|
+
"consumed": { "type": "boolean" },
|
|
27
|
+
"consumed_at": { "type": ["string", "null"] },
|
|
28
|
+
"consumed_by": { "type": ["string", "null"] }
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": true
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sks.mad-db-ledger-event.v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "ts", "mission_id", "type"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "sks.mad-db-ledger-event.v1" },
|
|
8
|
+
"ts": { "type": "string" },
|
|
9
|
+
"mission_id": { "type": "string", "pattern": "^M-" },
|
|
10
|
+
"type": { "type": "string" },
|
|
11
|
+
"cycle_id": { "type": "string" }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -3,13 +3,18 @@
|
|
|
3
3
|
"$id": "https://sneakoscope.dev/schemas/research/implementation-blueprint.schema.json",
|
|
4
4
|
"title": "SKS Research Implementation Blueprint",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"required": ["schema", "generated_at", "prompt", "implementation_allowed_in_research", "handoff_route", "sections"],
|
|
6
|
+
"required": ["schema", "generated_at", "prompt", "implementation_allowed_in_research", "handoff_route", "repository_aware", "existing_files", "test_commands", "rollback_steps", "parallel_work_decomposition", "sections"],
|
|
7
7
|
"properties": {
|
|
8
8
|
"schema": { "const": "sks.research-implementation-blueprint.v1" },
|
|
9
9
|
"generated_at": { "type": "string" },
|
|
10
10
|
"prompt": { "type": "string" },
|
|
11
11
|
"implementation_allowed_in_research": { "type": "boolean" },
|
|
12
12
|
"handoff_route": { "type": "string" },
|
|
13
|
+
"repository_aware": { "type": "boolean" },
|
|
14
|
+
"existing_files": { "type": "array", "minItems": 3, "items": { "type": "string" } },
|
|
15
|
+
"test_commands": { "type": "array", "minItems": 3, "items": { "type": "string" } },
|
|
16
|
+
"rollback_steps": { "type": "array", "minItems": 2, "items": { "type": "string" } },
|
|
17
|
+
"parallel_work_decomposition": { "type": "array", "minItems": 4, "items": { "type": "string" } },
|
|
13
18
|
"sections": {
|
|
14
19
|
"type": "array",
|
|
15
20
|
"minItems": 8,
|
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
"approved": { "type": "boolean" },
|
|
11
11
|
"blockers": { "type": "array", "items": { "type": "string" } },
|
|
12
12
|
"checks": { "type": "object" },
|
|
13
|
+
"codex_review": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"template_like_prose": { "type": "boolean" },
|
|
17
|
+
"source_density_ok": { "type": "boolean" },
|
|
18
|
+
"implementation_concreteness_ok": { "type": "boolean" },
|
|
19
|
+
"evidence_bound_synthesis_ok": { "type": "boolean" }
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": true
|
|
22
|
+
},
|
|
13
23
|
"reviewer": { "type": "string" }
|
|
14
24
|
},
|
|
15
25
|
"additionalProperties": true
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sneakoscope.dev/research/research-synthesis-output.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schema",
|
|
7
|
+
"mission_id",
|
|
8
|
+
"generated_at",
|
|
9
|
+
"report_markdown",
|
|
10
|
+
"paper_markdown",
|
|
11
|
+
"synthesis_summary",
|
|
12
|
+
"quality_signals",
|
|
13
|
+
"blockers"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema": { "const": "sks.research-synthesis-output.v1" },
|
|
17
|
+
"mission_id": { "type": "string" },
|
|
18
|
+
"generated_at": { "type": "string" },
|
|
19
|
+
"report_markdown": { "type": "string" },
|
|
20
|
+
"paper_markdown": { "type": "string" },
|
|
21
|
+
"synthesis_summary": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": [
|
|
24
|
+
"key_claim_ids",
|
|
25
|
+
"source_ids_used",
|
|
26
|
+
"counterevidence_ids_used",
|
|
27
|
+
"blueprint_sections_used",
|
|
28
|
+
"experiment_steps_used"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"key_claim_ids": { "type": "array", "items": { "type": "string" } },
|
|
32
|
+
"source_ids_used": { "type": "array", "items": { "type": "string" } },
|
|
33
|
+
"counterevidence_ids_used": { "type": "array", "items": { "type": "string" } },
|
|
34
|
+
"blueprint_sections_used": { "type": "array", "items": { "type": "string" } },
|
|
35
|
+
"experiment_steps_used": { "type": "array", "items": { "type": "string" } }
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": true
|
|
38
|
+
},
|
|
39
|
+
"quality_signals": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": [
|
|
42
|
+
"report_word_count",
|
|
43
|
+
"source_citation_count",
|
|
44
|
+
"unique_source_ids_cited",
|
|
45
|
+
"key_claims_covered",
|
|
46
|
+
"repeated_paragraph_ratio",
|
|
47
|
+
"template_phrase_hits"
|
|
48
|
+
],
|
|
49
|
+
"properties": {
|
|
50
|
+
"report_word_count": { "type": "number" },
|
|
51
|
+
"source_citation_count": { "type": "number" },
|
|
52
|
+
"unique_source_ids_cited": { "type": "number" },
|
|
53
|
+
"key_claims_covered": { "type": "number" },
|
|
54
|
+
"repeated_paragraph_ratio": { "type": "number" },
|
|
55
|
+
"template_phrase_hits": { "type": "array", "items": { "type": "string" } }
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": true
|
|
58
|
+
},
|
|
59
|
+
"blockers": { "type": "array", "items": { "type": "string" } }
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sks.update-notice.v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "checked_at", "package_name", "current_version", "latest_version", "update_available", "source", "cache_ttl_ms", "message"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "sks.update-notice.v1" },
|
|
8
|
+
"checked_at": { "type": "string" },
|
|
9
|
+
"package_name": { "type": "string" },
|
|
10
|
+
"current_version": { "type": "string" },
|
|
11
|
+
"latest_version": { "type": ["string", "null"] },
|
|
12
|
+
"update_available": { "type": "boolean" },
|
|
13
|
+
"source": { "enum": ["npm-registry", "cache", "disabled", "error"] },
|
|
14
|
+
"cache_ttl_ms": { "type": "number", "minimum": 1 },
|
|
15
|
+
"message": { "type": "string" },
|
|
16
|
+
"error": { "type": "string" }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": true
|
|
19
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sks.zellij-slot-telemetry.v1",
|
|
4
|
+
"title": "SKS Zellij Slot Telemetry",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{ "$ref": "#/$defs/event" },
|
|
7
|
+
{ "$ref": "#/$defs/snapshot" }
|
|
8
|
+
],
|
|
9
|
+
"$defs": {
|
|
10
|
+
"event": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["schema", "ts", "mission_id", "slot_id", "generation_index", "worker_id", "event_type", "status"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schema": { "const": "sks.zellij-slot-telemetry-event.v1" },
|
|
15
|
+
"ts": { "type": "string" },
|
|
16
|
+
"mission_id": { "type": "string" },
|
|
17
|
+
"slot_id": { "type": "string" },
|
|
18
|
+
"generation_index": { "type": "integer", "minimum": 1 },
|
|
19
|
+
"worker_id": { "type": "string" },
|
|
20
|
+
"event_type": {
|
|
21
|
+
"enum": [
|
|
22
|
+
"slot_reserved",
|
|
23
|
+
"worker_spawned",
|
|
24
|
+
"heartbeat",
|
|
25
|
+
"task_started",
|
|
26
|
+
"task_progress",
|
|
27
|
+
"artifact_written",
|
|
28
|
+
"patch_candidate",
|
|
29
|
+
"verification_started",
|
|
30
|
+
"verification_passed",
|
|
31
|
+
"verification_failed",
|
|
32
|
+
"worker_completed",
|
|
33
|
+
"worker_failed",
|
|
34
|
+
"headless_overflow"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"status": {
|
|
38
|
+
"enum": ["queued", "launching", "running", "verifying", "completed", "failed", "headless", "drained"]
|
|
39
|
+
},
|
|
40
|
+
"role": { "type": "string" },
|
|
41
|
+
"backend": { "type": "string" },
|
|
42
|
+
"provider": { "type": "string" },
|
|
43
|
+
"service_tier": { "type": "string" },
|
|
44
|
+
"worktree_id": { "type": ["string", "null"] },
|
|
45
|
+
"worktree_path": { "type": ["string", "null"] },
|
|
46
|
+
"task_title": { "type": "string" },
|
|
47
|
+
"current_file": { "type": ["string", "null"] },
|
|
48
|
+
"progress": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"required": ["done", "total", "label"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"done": { "type": "integer", "minimum": 0 },
|
|
53
|
+
"total": { "type": "integer", "minimum": 0 },
|
|
54
|
+
"label": { "type": "string" }
|
|
55
|
+
},
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
},
|
|
58
|
+
"artifact_paths": { "type": "array", "items": { "type": "string" } },
|
|
59
|
+
"log_tail": { "type": "string" },
|
|
60
|
+
"blockers": { "type": "array", "items": { "type": "string" } }
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
"snapshot": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": ["schema", "mission_id", "updated_at", "slots", "counts"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"schema": { "const": "sks.zellij-slot-telemetry-snapshot.v1" },
|
|
69
|
+
"mission_id": { "type": "string" },
|
|
70
|
+
"updated_at": { "type": "string" },
|
|
71
|
+
"slots": { "type": "object" },
|
|
72
|
+
"counts": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["queued", "running", "verifying", "completed", "failed", "headless"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"queued": { "type": "integer", "minimum": 0 },
|
|
77
|
+
"running": { "type": "integer", "minimum": 0 },
|
|
78
|
+
"verifying": { "type": "integer", "minimum": 0 },
|
|
79
|
+
"completed": { "type": "integer", "minimum": 0 },
|
|
80
|
+
"failed": { "type": "integer", "minimum": 0 },
|
|
81
|
+
"headless": { "type": "integer", "minimum": 0 }
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,25 +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, importDist, root, readJson } from './sks-1-18-gate-lib.js';
|
|
6
|
-
const inventoryMod = await importDist('core/agents/work-partition/repo-inventory.js');
|
|
7
|
-
const depsMod = await importDist('core/agents/work-partition/dependency-graph.js');
|
|
8
|
-
const graphMod = await importDist('core/agents/intelligent-work-graph.js');
|
|
9
|
-
const inventory = await inventoryMod.collectRepoInventory(root, { maxFiles: 2000 });
|
|
10
|
-
const dependencyGraph = depsMod.buildDependencyGraph(inventory);
|
|
11
|
-
const graph = await graphMod.buildIntelligentWorkGraph({ root, inventory, dependencyGraph, route: '$Team', prompt: '1.18.6 AST-aware work graph release gate' });
|
|
12
|
-
const releaseVersion = readJson('package.json').version;
|
|
13
|
-
assertGate(graph.schema === 'sks.intelligent-work-graph.v2', 'intelligent work graph schema must be v2', graph);
|
|
14
|
-
assertGate(graph.ast_coverage > 0, 'AST-aware work graph must record AST coverage', graph);
|
|
15
|
-
assertGate(Object.keys(graph.file_to_symbols).length > 0, 'AST-aware work graph must build file-to-symbol map', graph);
|
|
16
|
-
assertGate(Object.keys(graph.symbol_to_files).length > 0, 'AST-aware work graph must build symbol-to-file map', graph);
|
|
17
|
-
assertGate(Object.keys(graph.exported_symbols).length > 0, 'AST-aware work graph must build exported symbol map', graph);
|
|
18
|
-
assertGate(Object.keys(graph.imported_symbols).length > 0, 'AST-aware work graph must build imported symbol map', graph);
|
|
19
|
-
assertGate(Object.keys(graph.command_to_module_ownership).length > 0, 'AST-aware work graph must build command ownership map', graph);
|
|
20
|
-
assertGate(graph.test_ownership_confidence >= 0, 'AST-aware work graph must record test ownership confidence', graph);
|
|
21
|
-
assertGate(['proven', 'partial', 'blocked'].includes(graph.proof_level), 'AST-aware work graph must report an honest proof level', graph);
|
|
22
|
-
fs.mkdirSync(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
23
|
-
fs.writeFileSync(path.join(root, '.sneakoscope', 'reports', `agent-intelligent-work-graph-v2-${releaseVersion}.json`), `${JSON.stringify(graphMod.compactIntelligentWorkGraph(graph), null, 2)}\n`);
|
|
24
|
-
emitGate('agent:ast-aware-work-graph', { score: graph.work_graph_quality_score, ast_coverage: graph.ast_coverage, proof_level: graph.proof_level });
|
|
25
|
-
//# sourceMappingURL=agent-ast-aware-work-graph-check.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate } from './sks-1-18-gate-lib.js';
|
|
4
|
-
import { runDynamicPoolFixture } from './agent-dynamic-pool-fixture.js';
|
|
5
|
-
const fixture = await runDynamicPoolFixture({ target: 5, total: 8 });
|
|
6
|
-
const backfills = fixture.events.filter((event) => event.event_type === 'backfill_event');
|
|
7
|
-
const firstSlowCompletionIndex = fixture.events.findIndex((event) => event.event_type === 'session_completed' && /work-00[3-5]/.test(String(event.work_item_id || '')));
|
|
8
|
-
const secondBackfillIndex = fixture.events.findIndex((event, index) => index > fixture.events.findIndex((row) => row.event_type === 'backfill_event') && event.event_type === 'backfill_event');
|
|
9
|
-
assertGate(backfills.length >= 2, 'two early completions must create two backfill events', { backfills });
|
|
10
|
-
assertGate(secondBackfillIndex >= 0 && (firstSlowCompletionIndex < 0 || secondBackfillIndex < firstSlowCompletionIndex), 'replacement sessions must launch before the remaining first wave drains', { firstSlowCompletionIndex, secondBackfillIndex });
|
|
11
|
-
assertGate(fixture.result.state.backfill_count >= fixture.result.state.expected_backfill_count, 'backfill count must satisfy expected backfills', fixture.result.state);
|
|
12
|
-
emitGate('agent:backfill-replenishment', { backfill_count: fixture.result.state.backfill_count, expected_backfill_count: fixture.result.state.expected_backfill_count });
|
|
13
|
-
//# sourceMappingURL=agent-backfill-replenishment-check.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const mod = await importDist('core/agents/agent-terminal-session.js');
|
|
8
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-agent-terminal-'));
|
|
9
|
-
await fs.writeFile(path.join(root, 'agent-sessions.json'), JSON.stringify({ schema: 'sks.agent-sessions.v1', sessions: { agent_1: { agent_id: 'agent_1', session_id: 's1', status: 'closed' } } }, null, 2));
|
|
10
|
-
const agent = { id: 'agent_1', session_id: 's1' };
|
|
11
|
-
await mod.startAgentTerminalSession(root, agent, { backend: 'fake', real: false });
|
|
12
|
-
await mod.closeAgentTerminalSession(root, agent, { exitCode: 0, status: 'done' });
|
|
13
|
-
const closed = await mod.assertAgentTerminalSessionsClosed(root);
|
|
14
|
-
assertGate(closed.ok === true, 'every agent terminal session must have close report', closed);
|
|
15
|
-
emitGate('agent:background-terminals', { terminal_sessions: closed.total_sessions });
|
|
16
|
-
//# sourceMappingURL=agent-background-terminals-check.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const surface = await importDist('core/agents/agent-command-surface.js');
|
|
5
|
-
const parsed = surface.parseAgentCommandArgs('agent', ['cleanup', 'latest', '--apply', '--dry-run', '--drain', '--stale-ms', '1234', '--json']);
|
|
6
|
-
assertGate(parsed.action === 'cleanup', 'agent command parser must parse cleanup action', parsed);
|
|
7
|
-
assertGate(parsed.apply === true, 'agent command parser must support --apply', parsed);
|
|
8
|
-
assertGate(parsed.dryRun === true, 'agent command parser must support --dry-run', parsed);
|
|
9
|
-
assertGate(parsed.drain === true, 'agent command parser must support --drain', parsed);
|
|
10
|
-
assertGate(parsed.staleMs === 1234, 'agent command parser must support --stale-ms', parsed);
|
|
11
|
-
emitGate('agent:cleanup-command-ux', { action: parsed.action, stale_ms: parsed.staleMs });
|
|
12
|
-
//# sourceMappingURL=agent-cleanup-command-ux-check.js.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const cleanup = await importDist('core/agents/agent-cleanup-executor.js');
|
|
8
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-cleanup-executor-'));
|
|
9
|
-
const missionDir = path.join(root, '.sneakoscope', 'missions', 'M-cleanup-fixture');
|
|
10
|
-
const agentRoot = path.join(missionDir, 'agents');
|
|
11
|
-
const projectHash = 'cleanupfixturehash';
|
|
12
|
-
const tempDir = path.join(os.tmpdir(), `sks-${projectHash}-orphan`);
|
|
13
|
-
const lockDir = path.join(os.tmpdir(), `sks-${projectHash}-locks`);
|
|
14
|
-
await fs.mkdir(path.join(agentRoot, 'sessions', 'slot-001', 'gen-1'), { recursive: true });
|
|
15
|
-
await fs.mkdir(tempDir, { recursive: true });
|
|
16
|
-
await fs.mkdir(lockDir, { recursive: true });
|
|
17
|
-
const lockFile = path.join(lockDir, 'stale.lock');
|
|
18
|
-
await fs.writeFile(lockFile, 'stale\n');
|
|
19
|
-
const staleTime = new Date(Date.now() - 60 * 60 * 1000);
|
|
20
|
-
await fs.utimes(lockFile, staleTime, staleTime);
|
|
21
|
-
await fs.writeFile(path.join(missionDir, 'project-session-namespace.json'), JSON.stringify({
|
|
22
|
-
schema: 'sks.project-session-namespace.v1',
|
|
23
|
-
mission_id: 'M-cleanup-fixture',
|
|
24
|
-
root_hash: projectHash,
|
|
25
|
-
orphan_temp_dirs: [tempDir, path.join(os.tmpdir(), 'foreign-temp')],
|
|
26
|
-
lock_dir: lockDir
|
|
27
|
-
}, null, 2));
|
|
28
|
-
await fs.writeFile(path.join(agentRoot, 'agent-sessions.json'), JSON.stringify({
|
|
29
|
-
sessions: {
|
|
30
|
-
active: { session_id: 'active-session', status: 'running' },
|
|
31
|
-
closed: { session_id: 'closed-session', status: 'closed' }
|
|
32
|
-
}
|
|
33
|
-
}, null, 2));
|
|
34
|
-
await fs.writeFile(path.join(agentRoot, 'sessions', 'slot-001', 'gen-1', 'agent-terminal-session.json'), '{}\n');
|
|
35
|
-
const dry = await cleanup.runAgentCleanupExecutor({ missionDir, missionId: 'M-cleanup-fixture', action: 'cleanup', dryRun: true, staleMs: 1 });
|
|
36
|
-
assertGate(dry.dry_run === true && dry.orphan_temp_dirs_found.includes(tempDir), 'cleanup dry-run must find orphan temp dir without applying', dry);
|
|
37
|
-
assertGate(await exists(tempDir), 'cleanup dry-run removed temp dir unexpectedly', { tempDir });
|
|
38
|
-
const applied = await cleanup.runAgentCleanupExecutor({ missionDir, missionId: 'M-cleanup-fixture', action: 'cleanup', apply: true, staleMs: 1 });
|
|
39
|
-
assertGate(applied.ok === true, 'cleanup apply proof must pass', applied);
|
|
40
|
-
assertGate(!(await exists(tempDir)), 'cleanup apply must remove namespaced orphan temp dir', applied);
|
|
41
|
-
assertGate(!(await exists(lockFile)), 'cleanup apply must remove stale lock file', applied);
|
|
42
|
-
assertGate(applied.terminal_transcripts_preserved.length === 1, 'cleanup must preserve terminal transcripts', applied);
|
|
43
|
-
emitGate('agent:cleanup-executor', { removed_temp_dirs: applied.orphan_temp_dirs_removed.length, removed_locks: applied.stale_locks_removed.length });
|
|
44
|
-
async function exists(file) {
|
|
45
|
-
try {
|
|
46
|
-
await fs.access(file);
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
catch {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=agent-cleanup-executor-check.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { spawn } from 'node:child_process';
|
|
7
|
-
import { assertGate, emitGate, importDist, root as repoRoot, readJson } from './sks-1-18-gate-lib.js';
|
|
8
|
-
const cleanup = await importDist('core/agents/agent-cleanup-executor.js');
|
|
9
|
-
const releaseVersion = readJson('package.json').version;
|
|
10
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-cleanup-v2-'));
|
|
11
|
-
const missionDir = path.join(root, '.sneakoscope', 'missions', 'M-cleanup-v2');
|
|
12
|
-
const agentRoot = path.join(missionDir, 'agents');
|
|
13
|
-
await fs.mkdir(path.join(agentRoot, 'sessions', 'slot-001', 'gen-1'), { recursive: true });
|
|
14
|
-
await fs.writeFile(path.join(missionDir, 'project-session-namespace.json'), JSON.stringify({ mission_id: 'M-cleanup-v2', root_hash: 'cleanupv2' }, null, 2));
|
|
15
|
-
await fs.writeFile(path.join(agentRoot, 'agent-sessions.json'), JSON.stringify({ sessions: { stale: { session_id: 'stale-session', status: 'closed' } } }, null, 2));
|
|
16
|
-
const child = spawn(process.execPath, ['-e', 'setInterval(() => {}, 1000)'], { stdio: 'ignore' });
|
|
17
|
-
await fs.writeFile(path.join(agentRoot, 'sessions', 'slot-001', 'gen-1', 'agent-process-report.json'), JSON.stringify({
|
|
18
|
-
session_id: 'stale-session',
|
|
19
|
-
pid: child.pid,
|
|
20
|
-
exit_code: 0,
|
|
21
|
-
project_hash: 'cleanupv2'
|
|
22
|
-
}, null, 2));
|
|
23
|
-
try {
|
|
24
|
-
const proof = await cleanup.runAgentCleanupExecutor({ missionDir, missionId: 'M-cleanup-v2', apply: true, staleMs: 1 });
|
|
25
|
-
assertGate(proof.schema === 'sks.agent-cleanup-proof.v2', 'cleanup proof schema must be v2', proof);
|
|
26
|
-
assertGate(proof.sigterm_sent.includes(String(child.pid)), 'cleanup must send SIGTERM before escalation', proof);
|
|
27
|
-
assertGate(proof.process_exit_verified.includes(String(child.pid)), 'cleanup must verify process exit', proof);
|
|
28
|
-
assertGate(proof.process_trees.some((row) => row.target === String(child.pid)), 'cleanup must record process tree', proof);
|
|
29
|
-
await fs.mkdir(path.join(repoRoot, '.sneakoscope', 'reports'), { recursive: true });
|
|
30
|
-
await fs.writeFile(path.join(repoRoot, '.sneakoscope', 'reports', `agent-cleanup-executor-v2-${releaseVersion}.json`), `${JSON.stringify(proof, null, 2)}\n`);
|
|
31
|
-
emitGate('agent:cleanup-executor-v2', { actions: proof.action_count, sigterm: proof.sigterm_sent.length, sigkill: proof.sigkill_escalations.length });
|
|
32
|
-
}
|
|
33
|
-
finally {
|
|
34
|
-
try {
|
|
35
|
-
process.kill(child.pid, 'SIGKILL');
|
|
36
|
-
}
|
|
37
|
-
catch { }
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=agent-cleanup-executor-v2-check.js.map
|