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,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
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { spawnSync } from 'node:child_process';
|
|
7
|
-
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
8
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
9
|
-
const issues = [];
|
|
10
|
-
for (const rel of ['src/core/agents/agent-codex-cockpit.ts', 'src/core/agents/agent-orchestrator.ts']) {
|
|
11
|
-
if (!fs.existsSync(path.join(root, rel)))
|
|
12
|
-
issues.push(`missing:${rel}`);
|
|
13
|
-
}
|
|
14
|
-
const source = read('src/core/agents/agent-codex-cockpit.ts');
|
|
15
|
-
for (const token of [
|
|
16
|
-
'agent-codex-dashboard.md',
|
|
17
|
-
'agent-codex-dashboard.json',
|
|
18
|
-
'agent-session-cards.md',
|
|
19
|
-
'agent-live-summary.json',
|
|
20
|
-
'agent-progress-timeline.md',
|
|
21
|
-
'NativeSessionStart',
|
|
22
|
-
'NativeSessionStop'
|
|
23
|
-
]) {
|
|
24
|
-
if (!source.includes(token))
|
|
25
|
-
issues.push(`cockpit_missing:${token}`);
|
|
26
|
-
}
|
|
27
|
-
if (!read('src/core/agents/agent-orchestrator.ts').includes('writeAgentCodexCockpitArtifacts')) {
|
|
28
|
-
issues.push('orchestrator_not_writing_cockpit');
|
|
29
|
-
}
|
|
30
|
-
if (!read('src/core/agents/agent-orchestrator.ts').includes('appendAgentCodexCockpitHookEvent')) {
|
|
31
|
-
issues.push('orchestrator_not_writing_cockpit_events');
|
|
32
|
-
}
|
|
33
|
-
for (const token of ['dashboard', 'cockpit', 'codexApp', 'agent-codex-dashboard.md']) {
|
|
34
|
-
if (!read('src/core/commands/agent-command.ts').includes(token) && !read('src/core/agents/agent-command-surface.ts').includes(token)) {
|
|
35
|
-
issues.push(`agent_command_cockpit_missing:${token}`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
await runFixture();
|
|
39
|
-
const result = { schema: 'sks.agent-codex-app-cockpit-check.v1', ok: issues.length === 0, issues };
|
|
40
|
-
console.log(JSON.stringify(result, null, 2));
|
|
41
|
-
if (!result.ok)
|
|
42
|
-
process.exitCode = 1;
|
|
43
|
-
function read(rel) {
|
|
44
|
-
try {
|
|
45
|
-
return fs.readFileSync(path.join(root, rel), 'utf8');
|
|
46
|
-
}
|
|
47
|
-
catch {
|
|
48
|
-
return '';
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async function runFixture() {
|
|
52
|
-
const built = path.join(root, 'dist', 'core', 'agents', 'agent-codex-cockpit.js');
|
|
53
|
-
if (!fs.existsSync(built)) {
|
|
54
|
-
issues.push('fixture_dist_cockpit_missing_run_build_first');
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-cockpit-'));
|
|
58
|
-
const missionDir = path.join(tmp, '.sneakoscope', 'missions', 'M-cockpit');
|
|
59
|
-
const agentDir = path.join(missionDir, 'agents');
|
|
60
|
-
fs.mkdirSync(agentDir, { recursive: true });
|
|
61
|
-
fs.writeFileSync(path.join(missionDir, 'mission.json'), JSON.stringify({ id: 'M-cockpit', mode: 'agent', created_at: '2026-05-25T00:00:00.000Z' }));
|
|
62
|
-
fs.writeFileSync(path.join(agentDir, 'agent-sessions.json'), JSON.stringify({ schema: 'sks.agent-sessions.v1', sessions: { agent_1: { agent_id: 'agent_1', session_id: 'session_1', status: 'closed', heartbeat_at: '2026-05-25T00:00:00.000Z' } } }));
|
|
63
|
-
fs.writeFileSync(path.join(agentDir, 'agent-proof-evidence.json'), JSON.stringify({ schema: 'sks.agent-proof-evidence.v1', ok: true, status: 'passed', mission_id: 'M-cockpit', backend: 'fake', agent_count: 1, all_sessions_closed: true, blockers: [] }));
|
|
64
|
-
const mod = await import(pathToFileURL(built).href);
|
|
65
|
-
await mod.appendAgentCodexCockpitHookEvent(missionDir, { hook_event_name: 'NativeSessionStart', agent_id: 'agent_1', session_id: 'session_1', cwd: tmp });
|
|
66
|
-
await mod.appendAgentCodexCockpitHookEvent(missionDir, { hook_event_name: 'NativeSessionStop', agent_id: 'agent_1', session_id: 'session_1', cwd: tmp, last_assistant_message: 'done' });
|
|
67
|
-
await mod.writeAgentCodexCockpitArtifacts(missionDir, { missionId: 'M-cockpit', projectHash: 'fixture' });
|
|
68
|
-
for (const artifact of ['agent-codex-dashboard.md', 'agent-codex-dashboard.json', 'agent-session-cards.md', 'agent-live-summary.json', 'agent-progress-timeline.md', 'agent-codex-cockpit-events.jsonl']) {
|
|
69
|
-
if (!fs.existsSync(path.join(agentDir, artifact)))
|
|
70
|
-
issues.push(`fixture_missing:${artifact}`);
|
|
71
|
-
}
|
|
72
|
-
const dashboard = JSON.parse(fs.readFileSync(path.join(agentDir, 'agent-codex-dashboard.json'), 'utf8'));
|
|
73
|
-
if (!dashboard.agents?.[0] || dashboard.agents[0].heartbeat_age_ms === undefined)
|
|
74
|
-
issues.push('fixture_heartbeat_age_missing');
|
|
75
|
-
if (dashboard.agents?.[0]?.status !== 'closed')
|
|
76
|
-
issues.push('fixture_object_session_status_not_rendered');
|
|
77
|
-
const eventStream = fs.readFileSync(path.join(agentDir, 'agent-codex-cockpit-events.jsonl'), 'utf8');
|
|
78
|
-
if (!eventStream.includes('NativeSessionStart') || !eventStream.includes('NativeSessionStop'))
|
|
79
|
-
issues.push('fixture_cockpit_event_stream_missing_native_session_lifecycle');
|
|
80
|
-
const cli = spawnSync(process.execPath, [path.join(root, 'dist/bin/sks.js'), 'agent', 'cockpit', 'M-cockpit'], { cwd: tmp, encoding: 'utf8' });
|
|
81
|
-
if (cli.status !== 0 || !cli.stdout.includes('Agent Codex Dashboard'))
|
|
82
|
-
issues.push('fixture_agent_cockpit_cli_failed');
|
|
83
|
-
const broken = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-cockpit-broken-'));
|
|
84
|
-
const brokenMission = path.join(broken, '.sneakoscope', 'missions', 'M-cockpit-broken');
|
|
85
|
-
fs.mkdirSync(path.join(brokenMission, 'agents'), { recursive: true });
|
|
86
|
-
await mod.writeAgentCodexCockpitArtifacts(brokenMission, { missionId: 'M-cockpit-broken', projectHash: 'fixture' });
|
|
87
|
-
const brokenDashboard = JSON.parse(fs.readFileSync(path.join(brokenMission, 'agents', 'agent-codex-dashboard.json'), 'utf8'));
|
|
88
|
-
if (!brokenDashboard.blockers?.includes('agent_sessions_missing'))
|
|
89
|
-
issues.push('fixture_missing_sessions_not_reported');
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=agent-codex-app-cockpit-check.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { emitGate, root } from './sks-1-18-gate-lib.js';
|
|
6
|
-
import { buildFixtureProof } from './lib/real-codex-parallel-proof-fixture.js';
|
|
7
|
-
const proof = await buildFixtureProof({ workers: 5, required: false });
|
|
8
|
-
const observedParallelism = Math.max(Number(proof.max_observed_codex_child_process_overlap || 0), Number(proof.max_observed_codex_sdk_parallelism || 0));
|
|
9
|
-
if (!proof.ok || observedParallelism < 5) {
|
|
10
|
-
console.error(JSON.stringify({ ok: false, proof }, null, 2));
|
|
11
|
-
process.exit(1);
|
|
12
|
-
}
|
|
13
|
-
fs.mkdirSync(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
14
|
-
fs.writeFileSync(path.join(root, '.sneakoscope', 'reports', 'agent-codex-child-overlap.json'), `${JSON.stringify({ ok: true, ...proof }, null, 2)}\n`);
|
|
15
|
-
emitGate('agent:codex-child-overlap', {
|
|
16
|
-
overlap: proof.max_observed_codex_child_process_overlap,
|
|
17
|
-
sdk_parallelism: proof.max_observed_codex_sdk_parallelism,
|
|
18
|
-
observed_parallelism: observedParallelism,
|
|
19
|
-
codex_child_process_count: proof.codex_child_process_count
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=agent-codex-child-overlap-check.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const orchestrator = await importDist('core/agents/agent-orchestrator.js');
|
|
5
|
-
const run = await orchestrator.runNativeAgentOrchestrator({ prompt: 'dynamic cockpit fixture', agents: 2, concurrency: 2, mock: true, backend: 'fake' });
|
|
6
|
-
assertGate(run.ok === true, 'fake orchestrator run must pass', run.proof);
|
|
7
|
-
assertGate(run.proof.target_active_slots === 2, 'proof must expose target active slots', run.proof);
|
|
8
|
-
assertGate(run.proof.session_generation_count === 2, 'proof must expose session generation count', run.proof);
|
|
9
|
-
emitGate('agent:dynamic-cockpit', { target_active_slots: run.proof.target_active_slots, session_generation_count: run.proof.session_generation_count });
|
|
10
|
-
//# sourceMappingURL=agent-dynamic-cockpit-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 state = fixture.result.state;
|
|
7
|
-
assertGate(fixture.result.ok === true, 'dynamic pool fixture must drain cleanly', state);
|
|
8
|
-
assertGate(state.target_active_slots === 5, 'target active slots must be 5', state);
|
|
9
|
-
assertGate(state.max_observed_active_slots === 5, 'scheduler must observe 5 active slots', state);
|
|
10
|
-
assertGate(state.pending_queue_drained === true, 'pending queue must drain', state);
|
|
11
|
-
assertGate(state.all_slots_closed_after_drain === true, 'all slots must close after drain', state);
|
|
12
|
-
emitGate('agent:dynamic-pool', { target_active_slots: state.target_active_slots, max_observed_active_slots: state.max_observed_active_slots, total_work_items: state.total_work_items });
|
|
13
|
-
//# sourceMappingURL=agent-dynamic-pool-check.js.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { execFileSync } from 'node:child_process';
|
|
6
|
-
import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const distCli = path.join(root, 'dist', 'bin', 'sks.js');
|
|
8
|
-
function run(extra = []) {
|
|
9
|
-
return JSON.parse(execFileSync(process.execPath, [
|
|
10
|
-
distCli,
|
|
11
|
-
'agent',
|
|
12
|
-
'run',
|
|
13
|
-
'fast mode default fixture',
|
|
14
|
-
'--mock',
|
|
15
|
-
'--agents',
|
|
16
|
-
'2',
|
|
17
|
-
'--concurrency',
|
|
18
|
-
'2',
|
|
19
|
-
'--work-items',
|
|
20
|
-
'2',
|
|
21
|
-
'--minimum-work-items',
|
|
22
|
-
'2',
|
|
23
|
-
'--json',
|
|
24
|
-
...extra
|
|
25
|
-
], { cwd: root, encoding: 'utf8', maxBuffer: 32 * 1024 * 1024 }));
|
|
26
|
-
}
|
|
27
|
-
const defaultRun = run();
|
|
28
|
-
const noFastRun = run(['--no-fast']);
|
|
29
|
-
const standardRun = run(['--service-tier', 'standard']);
|
|
30
|
-
const report = {
|
|
31
|
-
schema: 'sks.agent-fast-mode-default-check.v1',
|
|
32
|
-
ok: true,
|
|
33
|
-
default: {
|
|
34
|
-
mission_id: defaultRun.mission_id,
|
|
35
|
-
fast_mode: defaultRun.fast_mode_policy?.fast_mode,
|
|
36
|
-
service_tier: defaultRun.fast_mode_policy?.service_tier,
|
|
37
|
-
worker_report_count: defaultRun.fast_mode_propagation?.worker_process_report_count
|
|
38
|
-
},
|
|
39
|
-
no_fast: {
|
|
40
|
-
mission_id: noFastRun.mission_id,
|
|
41
|
-
fast_mode: noFastRun.fast_mode_policy?.fast_mode,
|
|
42
|
-
service_tier: noFastRun.fast_mode_policy?.service_tier,
|
|
43
|
-
disabled_by: noFastRun.fast_mode_policy?.disabled_by
|
|
44
|
-
},
|
|
45
|
-
standard: {
|
|
46
|
-
mission_id: standardRun.mission_id,
|
|
47
|
-
fast_mode: standardRun.fast_mode_policy?.fast_mode,
|
|
48
|
-
service_tier: standardRun.fast_mode_policy?.service_tier,
|
|
49
|
-
disabled_by: standardRun.fast_mode_policy?.disabled_by
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'agent-fast-mode-default.json');
|
|
53
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
54
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
55
|
-
assertGate(defaultRun.ok === true, 'default fast-mode agent run must pass', report);
|
|
56
|
-
assertGate(defaultRun.fast_mode_policy?.fast_mode === true, 'default run must record fast_mode true', report);
|
|
57
|
-
assertGate(defaultRun.fast_mode_policy?.service_tier === 'fast', 'default run must record service_tier fast', report);
|
|
58
|
-
assertGate(defaultRun.fast_mode_propagation?.worker_process_report_count >= 2, 'worker process reports must record fast mode', report);
|
|
59
|
-
assertGate(noFastRun.fast_mode_policy?.fast_mode === false && noFastRun.fast_mode_policy?.disabled_by === 'no-fast', '--no-fast must disable fast mode', report);
|
|
60
|
-
assertGate(standardRun.fast_mode_policy?.service_tier === 'standard' && standardRun.fast_mode_policy?.fast_mode === false, '--service-tier standard must record standard tier', report);
|
|
61
|
-
emitGate('agent:fast-mode-default', report.default);
|
|
62
|
-
//# sourceMappingURL=agent-fast-mode-default-check.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate } from './sks-1-18-gate-lib.js';
|
|
4
|
-
import { runNativeCliSwarmCheck } from './lib/native-cli-session-swarm-check-lib.js';
|
|
5
|
-
const report = runNativeCliSwarmCheck({ agents: 3, workItems: 3, reportName: 'agent-fast-mode-worker-propagation.json' });
|
|
6
|
-
emitGate('agent:fast-mode-worker-propagation', { worker_process_report_count: report.fast_mode_propagation.worker_process_report_count });
|
|
7
|
-
//# sourceMappingURL=agent-fast-mode-worker-propagation-check.js.map
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const validator = await importDist('core/agents/agent-worker-pipeline.js');
|
|
5
|
-
const queueMod = await importDist('core/agents/agent-work-queue.js');
|
|
6
|
-
const scheduler = await importDist('core/agents/agent-scheduler.js');
|
|
7
|
-
const valid = {
|
|
8
|
-
id: 'follow-up-001',
|
|
9
|
-
title: 'Follow-up',
|
|
10
|
-
description: 'Validate a schema-bound generated work item.',
|
|
11
|
-
required_persona_category: 'verifier',
|
|
12
|
-
priority: 1,
|
|
13
|
-
dependencies: [],
|
|
14
|
-
lease_requirements: [],
|
|
15
|
-
max_attempts: 1,
|
|
16
|
-
reason: 'fixture'
|
|
17
|
-
};
|
|
18
|
-
const base = {
|
|
19
|
-
schema: 'sks.agent-result.v1',
|
|
20
|
-
mission_id: 'M-follow-up',
|
|
21
|
-
agent_id: 'agent_1',
|
|
22
|
-
session_id: 'session-1',
|
|
23
|
-
persona_id: 'agent_1',
|
|
24
|
-
task_slice_id: 'slice-01',
|
|
25
|
-
status: 'done',
|
|
26
|
-
backend: 'fake',
|
|
27
|
-
summary: 'ok',
|
|
28
|
-
findings: [],
|
|
29
|
-
proposed_changes: [],
|
|
30
|
-
changed_files: [],
|
|
31
|
-
lease_compliance: { ok: true, violations: [] },
|
|
32
|
-
artifacts: [],
|
|
33
|
-
blockers: [],
|
|
34
|
-
confidence: 'fixture',
|
|
35
|
-
handoff_notes: '',
|
|
36
|
-
unverified: [],
|
|
37
|
-
writes: [],
|
|
38
|
-
recursion_guard: { ok: true, violations: [] },
|
|
39
|
-
verification: { status: 'fixture', checks: [] }
|
|
40
|
-
};
|
|
41
|
-
const normalized = validator.validateAgentWorkerResult({ ...base, follow_up_work_items: [valid] });
|
|
42
|
-
assertGate(normalized.status === 'done', 'valid follow_up_work_items must pass result validation', normalized);
|
|
43
|
-
assertGate(normalized.follow_up_work_items?.length === 1, 'valid follow_up_work_items must survive normalization', normalized);
|
|
44
|
-
const invalid = validator.validateAgentWorkerResult({ ...base, follow_up_work_items: [{ id: 'bad', title: 'bad' }] });
|
|
45
|
-
assertGate(invalid.status === 'blocked', 'invalid follow_up_work_items must block result validation', invalid);
|
|
46
|
-
const queue = queueMod.createAgentWorkQueue({ slices: [{ id: 'work-001', role: 'verifier', description: 'seed' }], maxQueueExpansion: 1 });
|
|
47
|
-
const enqueue = queueMod.enqueueFollowUpWorkItems(queue, [valid, { ...valid, id: 'follow-up-002' }], { originSessionId: 'session-1' });
|
|
48
|
-
assertGate(enqueue.accepted.length === 1, 'max_queue_expansion must cap accepted follow-up work', enqueue);
|
|
49
|
-
assertGate(enqueue.blocked_count >= 1, 'follow-up overflow must be reported as blocked', enqueue);
|
|
50
|
-
const result = await scheduler.runAgentScheduler({
|
|
51
|
-
root: await tempRoot(),
|
|
52
|
-
missionId: 'M-follow-up',
|
|
53
|
-
rootHash: 'fixture-root',
|
|
54
|
-
roster: { agent_count: 1, concurrency: 1, roster: [{ id: 'agent_1', persona_id: 'agent_1', role: 'verifier', write_policy: 'read-only', index: 1 }] },
|
|
55
|
-
partition: { slices: [{ id: 'work-001', role: 'verifier', description: 'seed' }] },
|
|
56
|
-
prompt: 'follow-up runtime fixture',
|
|
57
|
-
targetActiveSlots: 1,
|
|
58
|
-
sourceIntelligenceRefs: { ok: true, artifact: 'source-intelligence-evidence.json' },
|
|
59
|
-
goalModeRef: { ok: true, artifact: 'goal-mode-applied.json' },
|
|
60
|
-
maxQueueExpansion: 1,
|
|
61
|
-
launchSession: async ({ agent, workItem, generation }) => ({
|
|
62
|
-
...base,
|
|
63
|
-
mission_id: 'M-follow-up',
|
|
64
|
-
agent_id: agent.id,
|
|
65
|
-
session_id: generation.session_id,
|
|
66
|
-
persona_id: agent.persona_id,
|
|
67
|
-
task_slice_id: workItem.id,
|
|
68
|
-
follow_up_work_items: workItem.id === 'work-001' ? [valid] : []
|
|
69
|
-
})
|
|
70
|
-
});
|
|
71
|
-
assertGate(result.state.generated_work_item_count === 1, 'scheduler must count generated follow-up work items', result.state);
|
|
72
|
-
assertGate(result.state.total_work_items === 2, 'scheduler must enqueue generated follow-up work item', result.state);
|
|
73
|
-
emitGate('agent:follow-up-work-schema', { generated_work_item_count: result.state.generated_work_item_count, total_work_items: result.state.total_work_items });
|
|
74
|
-
async function tempRoot() {
|
|
75
|
-
const fs = await import('node:fs/promises');
|
|
76
|
-
const os = await import('node:os');
|
|
77
|
-
const path = await import('node:path');
|
|
78
|
-
return fs.mkdtemp(path.join(os.tmpdir(), 'sks-follow-up-work-'));
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=agent-follow-up-work-schema-check.js.map
|
|
@@ -1,9 +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 allResultsHaveRefs = fixture.result.results.every((result) => result.goal_mode_ref?.artifact === 'goal-mode-applied.json');
|
|
7
|
-
assertGate(allResultsHaveRefs, 'all dynamic generations must propagate Goal mode refs', fixture.result.results);
|
|
8
|
-
emitGate('agent:goal-mode-propagation', { result_count: fixture.result.results.length });
|
|
9
|
-
//# sourceMappingURL=agent-goal-mode-propagation-check.js.map
|
|
@@ -1,25 +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, root } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const inventoryMod = await importDist('core/agents/work-partition/repo-inventory.js');
|
|
8
|
-
const depsMod = await importDist('core/agents/work-partition/dependency-graph.js');
|
|
9
|
-
const graphMod = await importDist('core/agents/intelligent-work-graph.js');
|
|
10
|
-
const inventory = await inventoryMod.collectRepoInventory(root, { maxFiles: 2000 });
|
|
11
|
-
const dependencyGraph = depsMod.buildDependencyGraph(inventory);
|
|
12
|
-
const graph = await graphMod.buildIntelligentWorkGraph({ root, inventory, dependencyGraph, route: '$Team', prompt: '1.18.6 intelligent work graph release gate' });
|
|
13
|
-
const out = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-work-graph-'));
|
|
14
|
-
await graphMod.writeIntelligentWorkGraphArtifacts(out, graph);
|
|
15
|
-
assertGate(graph.schema === 'sks.intelligent-work-graph.v2', 'intelligent work graph schema mismatch', graph);
|
|
16
|
-
assertGate(graph.source_inventory_count > 0, 'source inventory must be populated', graph);
|
|
17
|
-
assertGate(graph.test_inventory_count > 0, 'test inventory must be populated', graph);
|
|
18
|
-
assertGate(graph.critical_path.length > 0, 'critical path must be computed', graph.critical_path);
|
|
19
|
-
assertGate(graph.parallelizable_groups.length > 0, 'parallelizable groups must be computed', graph);
|
|
20
|
-
assertGate(graph.work_graph_quality_score >= 0.55, 'work graph quality score too low for release gate', graph);
|
|
21
|
-
for (const file of ['agent-intelligent-work-graph.json', 'agent-test-ownership-map.json', 'agent-critical-path.json', 'agent-integration-bottlenecks.json']) {
|
|
22
|
-
await fs.access(path.join(out, file));
|
|
23
|
-
}
|
|
24
|
-
emitGate('agent:intelligent-work-graph', { score: graph.work_graph_quality_score, critical_path_length: graph.critical_path.length });
|
|
25
|
-
//# sourceMappingURL=agent-intelligent-work-graph-check.js.map
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
7
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
8
|
-
const issues = [];
|
|
9
|
-
for (const rel of ['src/core/agents/agent-janitor.ts', 'src/core/agents/agent-orchestrator.ts', 'src/core/agents/agent-proof-evidence.ts']) {
|
|
10
|
-
if (!fs.existsSync(path.join(root, rel)))
|
|
11
|
-
issues.push(`missing:${rel}`);
|
|
12
|
-
}
|
|
13
|
-
if (!read('src/core/agents/agent-orchestrator.ts').includes('runAgentJanitor'))
|
|
14
|
-
issues.push('orchestrator_not_running_janitor');
|
|
15
|
-
if (!read('src/core/agents/agent-orchestrator.ts').includes('periodic_janitor_blocked'))
|
|
16
|
-
issues.push('orchestrator_not_running_periodic_janitor');
|
|
17
|
-
if (!read('src/core/agents/agent-proof-evidence.ts').includes('janitor_ok'))
|
|
18
|
-
issues.push('proof_missing_janitor_ok');
|
|
19
|
-
await runFixture();
|
|
20
|
-
const result = { schema: 'sks.agent-janitor-check.v1', ok: issues.length === 0, issues };
|
|
21
|
-
console.log(JSON.stringify(result, null, 2));
|
|
22
|
-
if (!result.ok)
|
|
23
|
-
process.exitCode = 1;
|
|
24
|
-
function read(rel) {
|
|
25
|
-
try {
|
|
26
|
-
return fs.readFileSync(path.join(root, rel), 'utf8');
|
|
27
|
-
}
|
|
28
|
-
catch {
|
|
29
|
-
return '';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
async function runFixture() {
|
|
33
|
-
const built = path.join(root, 'dist', 'core', 'agents', 'agent-janitor.js');
|
|
34
|
-
if (!fs.existsSync(built))
|
|
35
|
-
return;
|
|
36
|
-
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-janitor-'));
|
|
37
|
-
const missionDir = path.join(tmp, '.sneakoscope', 'missions', 'M-janitor');
|
|
38
|
-
const agentDir = path.join(missionDir, 'agents');
|
|
39
|
-
fs.mkdirSync(agentDir, { recursive: true });
|
|
40
|
-
fs.writeFileSync(path.join(agentDir, 'agent-sessions.json'), JSON.stringify({ schema: 'sks.agent-sessions.v1', sessions: { agent_1: { agent_id: 'agent_1', session_id: 's1', status: 'closed', heartbeat_at: '2026-05-25T00:00:00.000Z' } } }));
|
|
41
|
-
const mod = await import(pathToFileURL(built).href);
|
|
42
|
-
const report = await mod.runAgentJanitor({ missionDir, missionId: 'M-janitor', projectHash: 'fixture', staleMs: 1 });
|
|
43
|
-
if (!report.ok)
|
|
44
|
-
issues.push('fixture_closed_session_marked_stale');
|
|
45
|
-
if (!fs.existsSync(path.join(agentDir, 'agent-janitor-report.json')))
|
|
46
|
-
issues.push('fixture_janitor_report_missing');
|
|
47
|
-
const negative = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-janitor-negative-'));
|
|
48
|
-
const negativeMission = path.join(negative, '.sneakoscope', 'missions', 'M-janitor-negative');
|
|
49
|
-
const negativeAgentDir = path.join(negativeMission, 'agents');
|
|
50
|
-
const negativeSessionDir = path.join(negativeAgentDir, 'sessions', 'agent_1');
|
|
51
|
-
const lockDir = path.join(negative, '.sneakoscope', 'locks', 'fixture');
|
|
52
|
-
fs.mkdirSync(negativeSessionDir, { recursive: true });
|
|
53
|
-
fs.mkdirSync(lockDir, { recursive: true });
|
|
54
|
-
const activeTemp = path.join(os.tmpdir(), 'sks-fixture-active');
|
|
55
|
-
fs.mkdirSync(activeTemp, { recursive: true });
|
|
56
|
-
fs.writeFileSync(path.join(negativeMission, 'project-session-namespace.json'), JSON.stringify({ mission_id: 'M-janitor-negative', root_hash: 'fixture', lock_dir: lockDir, temp_dir: activeTemp }));
|
|
57
|
-
fs.writeFileSync(path.join(negativeAgentDir, 'agent-sessions.json'), JSON.stringify({ schema: 'sks.agent-sessions.v1', sessions: { agent_1: { agent_id: 'agent_1', session_id: 's1', status: 'running', heartbeat_at: '2026-05-25T00:00:00.000Z' } } }));
|
|
58
|
-
fs.writeFileSync(path.join(negativeSessionDir, 'agent-process-report.json'), JSON.stringify({ schema: 'sks.agent-process-report.v1', agent_id: 'agent_1', session_id: 's1', pid: 999999999, exit_code: null }));
|
|
59
|
-
fs.writeFileSync(path.join(negativeSessionDir, 'agent-zellij-report.json'), JSON.stringify({ schema: 'sks.agent-zellij-report.v1', agent_id: 'agent_1', session_id: 's1', launch_mode: 'launched' }));
|
|
60
|
-
const lockFile = path.join(lockDir, 'agent.lock');
|
|
61
|
-
fs.writeFileSync(lockFile, 'lock');
|
|
62
|
-
const old = new Date(Date.now() - 60_000);
|
|
63
|
-
fs.utimesSync(lockFile, old, old);
|
|
64
|
-
fs.utimesSync(path.join(negativeSessionDir, 'agent-zellij-report.json'), old, old);
|
|
65
|
-
const blocked = await mod.runAgentJanitor({ missionDir: negativeMission, missionId: 'M-janitor-negative', projectHash: 'fixture', staleMs: 1 });
|
|
66
|
-
for (const token of ['stale_heartbeat:s1', 'zombie_process:s1', 'stale_zellij:s1']) {
|
|
67
|
-
if (!blocked.blockers.includes(token))
|
|
68
|
-
issues.push(`fixture_janitor_missing:${token}`);
|
|
69
|
-
}
|
|
70
|
-
if (!blocked.blockers.some((entry) => entry.startsWith('stale_lock:')))
|
|
71
|
-
issues.push('fixture_janitor_missing_stale_lock');
|
|
72
|
-
await mod.runAgentJanitor({ missionDir: negativeMission, missionId: 'M-janitor-negative', projectHash: 'fixture', staleMs: 1, cleanup: true });
|
|
73
|
-
if (!fs.existsSync(activeTemp))
|
|
74
|
-
issues.push('fixture_janitor_deleted_active_temp_dir');
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=agent-janitor-check.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertFiles, assertGate, emitGate, importDist, AGENT_118_FILES } from './sks-1-18-gate-lib.js';
|
|
4
|
-
assertFiles(AGENT_118_FILES);
|
|
5
|
-
const mod = await importDist('core/agents/scout-policy.js');
|
|
6
|
-
const ok = mod.detectMainScoutCall('native agent orchestrator creates workers');
|
|
7
|
-
const bad = mod.detectMainScoutCall('main orchestrator runs sks scouts run now');
|
|
8
|
-
assertGate(ok.ok === true, 'ordinary main text must pass no-Scout detector');
|
|
9
|
-
assertGate(bad.ok === false, 'main Scout call must be blocked');
|
|
10
|
-
emitGate('agent:main-no-scout', { violations_detected: bad.violations.length });
|
|
11
|
-
//# sourceMappingURL=agent-main-no-scout-check.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { emitGate, root } from './sks-1-18-gate-lib.js';
|
|
6
|
-
import { buildFixtureProof } from './lib/real-codex-parallel-proof-fixture.js';
|
|
7
|
-
const proof = await buildFixtureProof({ workers: 3, required: false });
|
|
8
|
-
if (!proof.ok || proof.model_authored_patch_envelope_count < 3 || proof.fixture_patch_envelope_count !== 0) {
|
|
9
|
-
console.error(JSON.stringify({ ok: false, proof }, null, 2));
|
|
10
|
-
process.exit(1);
|
|
11
|
-
}
|
|
12
|
-
fs.mkdirSync(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
13
|
-
fs.writeFileSync(path.join(root, '.sneakoscope', 'reports', 'agent-model-authored-patch-envelope.json'), `${JSON.stringify({ ok: true, ...proof }, null, 2)}\n`);
|
|
14
|
-
emitGate('agent:model-authored-patch-envelope', { model_authored_patch_envelope_count: proof.model_authored_patch_envelope_count });
|
|
15
|
-
//# sourceMappingURL=agent-model-authored-patch-envelope-check.js.map
|