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,35 +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 { pathToFileURL } from 'node:url';
|
|
7
|
-
import { ensureDistFresh, root as repoRoot } from './lib/ensure-dist-fresh.js';
|
|
8
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
9
|
-
if (!freshness.ok)
|
|
10
|
-
fail('dist_not_fresh', { freshness });
|
|
11
|
-
const fixture = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-mad-preflight-'));
|
|
12
|
-
await fs.mkdir(path.join(fixture, '.codex'), { recursive: true });
|
|
13
|
-
await fs.mkdir(path.join(fixture, '.sneakoscope', 'reports'), { recursive: true });
|
|
14
|
-
await fs.writeFile(path.join(fixture, '.codex', 'config.toml'), 'sandbox_mode = "workspace-write"\n');
|
|
15
|
-
const mod = await import(pathToFileURL(path.join(repoRoot, 'dist', 'core', 'preflight', 'parallel-preflight-engine.js')).href);
|
|
16
|
-
const old = process.env.SKS_FAKE_CODEX_CONFIG_EPERM;
|
|
17
|
-
process.env.SKS_FAKE_CODEX_CONFIG_EPERM = '1';
|
|
18
|
-
const report = await mod.runCodexLaunchPreflight(fixture, {
|
|
19
|
-
fix: false,
|
|
20
|
-
codexBin: path.join(repoRoot, 'dist', 'scripts', 'fixtures', 'fake-codex-config-loader.js'),
|
|
21
|
-
tmuxSmoke: false
|
|
22
|
-
});
|
|
23
|
-
if (old === undefined)
|
|
24
|
-
delete process.env.SKS_FAKE_CODEX_CONFIG_EPERM;
|
|
25
|
-
else
|
|
26
|
-
process.env.SKS_FAKE_CODEX_CONFIG_EPERM = old;
|
|
27
|
-
const ok = report.ok === false && report.blockers.includes('codex_cli_config_eperm');
|
|
28
|
-
console.log(JSON.stringify({ schema: 'sks.mad-preflight-blocks-unreadable-config-check.v1', ok, report }, null, 2));
|
|
29
|
-
if (!ok)
|
|
30
|
-
process.exitCode = 1;
|
|
31
|
-
function fail(blocker, detail) {
|
|
32
|
-
console.log(JSON.stringify({ schema: 'sks.mad-preflight-blocks-unreadable-config-check.v1', ok: false, blocker, detail }, null, 2));
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=mad-preflight-blocks-unreadable-config-check.js.map
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { madHighCommand } from '../core/commands/mad-sks-command.js';
|
|
7
|
-
import { sha256 } from '../core/fsx.js';
|
|
8
|
-
const original = {
|
|
9
|
-
cwd: process.cwd(),
|
|
10
|
-
home: process.env.HOME,
|
|
11
|
-
codexHome: process.env.CODEX_HOME,
|
|
12
|
-
noAttach: process.env.SKS_NO_ZELLIJ_ATTACH,
|
|
13
|
-
requireZellij: process.env.SKS_REQUIRE_ZELLIJ,
|
|
14
|
-
madSwarm: process.env.SKS_MAD_NATIVE_SWARM,
|
|
15
|
-
skipNpm: process.env.SKS_SKIP_NPM_FRESHNESS_CHECK
|
|
16
|
-
};
|
|
17
|
-
const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-mad-ui-no-mutation-'));
|
|
18
|
-
const home = path.join(tmp, 'home');
|
|
19
|
-
const codexHome = path.join(home, '.codex');
|
|
20
|
-
const configPath = path.join(codexHome, 'config.toml');
|
|
21
|
-
try {
|
|
22
|
-
await fs.mkdir(codexHome, { recursive: true });
|
|
23
|
-
await fs.mkdir(path.join(tmp, '.sneakoscope'), { recursive: true });
|
|
24
|
-
await fs.writeFile(configPath, [
|
|
25
|
-
'service_tier = "fast"',
|
|
26
|
-
'[features]',
|
|
27
|
-
'fast_mode = true',
|
|
28
|
-
'[plugins."chrome@openai-bundled"]',
|
|
29
|
-
'enabled = false',
|
|
30
|
-
''
|
|
31
|
-
].join('\n'));
|
|
32
|
-
const before = await fs.readFile(configPath, 'utf8');
|
|
33
|
-
process.chdir(tmp);
|
|
34
|
-
process.env.HOME = home;
|
|
35
|
-
process.env.CODEX_HOME = codexHome;
|
|
36
|
-
process.env.SKS_NO_ZELLIJ_ATTACH = '1';
|
|
37
|
-
process.env.SKS_REQUIRE_ZELLIJ = '0';
|
|
38
|
-
process.env.SKS_MAD_NATIVE_SWARM = '0';
|
|
39
|
-
process.env.SKS_SKIP_NPM_FRESHNESS_CHECK = '1';
|
|
40
|
-
process.exitCode = 0;
|
|
41
|
-
await madHighCommand(['--no-attach', '--no-swarm'], {
|
|
42
|
-
maybePromptSksUpdateForLaunch: async () => ({ status: 'skipped' }),
|
|
43
|
-
maybePromptCodexUpdateForLaunch: async () => ({ status: 'skipped' }),
|
|
44
|
-
ensureMadLaunchDependencies: async () => ({ ready: true, actions: [] }),
|
|
45
|
-
maybePromptCodexLbSetupForLaunch: async () => ({ status: 'skipped' })
|
|
46
|
-
});
|
|
47
|
-
const after = await fs.readFile(configPath, 'utf8');
|
|
48
|
-
const entries = await fs.readdir(codexHome);
|
|
49
|
-
assert.equal(after, before);
|
|
50
|
-
assert.equal(entries.some((entry) => entry === 'sks-mad-high.config.toml'), false);
|
|
51
|
-
assert.equal(/\[profiles\.sks-mad-high\]/.test(after), false);
|
|
52
|
-
assert.equal(/enabled\s*=\s*false/.test(after), true);
|
|
53
|
-
process.exitCode = 0;
|
|
54
|
-
emit({
|
|
55
|
-
schema: 'sks.mad-sks-app-ui-no-mutation-check.v1',
|
|
56
|
-
ok: true,
|
|
57
|
-
before_hash: sha256(before),
|
|
58
|
-
after_hash: sha256(after),
|
|
59
|
-
profile_files_written: entries.filter((entry) => /sks-mad-high/.test(entry)),
|
|
60
|
-
plugin_disabled_preserved: true,
|
|
61
|
-
blockers: []
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
emit({
|
|
66
|
-
schema: 'sks.mad-sks-app-ui-no-mutation-check.v1',
|
|
67
|
-
ok: false,
|
|
68
|
-
error: err?.message || String(err),
|
|
69
|
-
blockers: ['mad_sks_app_ui_no_mutation_failed']
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
finally {
|
|
73
|
-
process.chdir(original.cwd);
|
|
74
|
-
restoreEnv('HOME', original.home);
|
|
75
|
-
restoreEnv('CODEX_HOME', original.codexHome);
|
|
76
|
-
restoreEnv('SKS_NO_ZELLIJ_ATTACH', original.noAttach);
|
|
77
|
-
restoreEnv('SKS_REQUIRE_ZELLIJ', original.requireZellij);
|
|
78
|
-
restoreEnv('SKS_MAD_NATIVE_SWARM', original.madSwarm);
|
|
79
|
-
restoreEnv('SKS_SKIP_NPM_FRESHNESS_CHECK', original.skipNpm);
|
|
80
|
-
}
|
|
81
|
-
function restoreEnv(key, value) {
|
|
82
|
-
if (value == null)
|
|
83
|
-
delete process.env[key];
|
|
84
|
-
else
|
|
85
|
-
process.env[key] = value;
|
|
86
|
-
}
|
|
87
|
-
function emit(report) {
|
|
88
|
-
console.log(JSON.stringify(report, null, 2));
|
|
89
|
-
if (!report.ok)
|
|
90
|
-
process.exitCode = 1;
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=mad-sks-app-ui-no-mutation-check.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const permissionMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'permission-model.js')).href);
|
|
10
|
-
const authMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'authorization-manifest.js')).href);
|
|
11
|
-
const auditMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'audit-ledger.js')).href);
|
|
12
|
-
const rollbackMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'rollback-plan.js')).href);
|
|
13
|
-
const proofMod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'proof-evidence.js')).href);
|
|
14
|
-
const permission = permissionMod.buildMadSksPermissionModel({ targetRoot: root, flags: permissionMod.parseMadSksFlags(['--mad-sks', '--allow-system']) });
|
|
15
|
-
const authorization = authMod.createMadSksAuthorizationManifest({ permission, userIntent: 'fixture' });
|
|
16
|
-
const ledger = auditMod.createMadSksAuditLedger({ targetRoot: root, actions: [auditMod.madSksAuditAction({ type: 'file_write', target: path.join(root, '.sneakoscope/tmp/file'), rollback_available: true })] });
|
|
17
|
-
const rollback = rollbackMod.createMadSksRollbackPlan({ targetRoot: root, fileRollbacks: [{ path: '.sneakoscope/tmp/file', previous_content_hash: 'abc' }] });
|
|
18
|
-
const proof = proofMod.createMadSksProofEvidence({
|
|
19
|
-
authorizationManifestPath: 'mad-sks-authorization.json',
|
|
20
|
-
auditLedgerPath: 'mad-sks-audit-ledger.json',
|
|
21
|
-
rollbackPlanPath: 'mad-sks-rollback-plan.json',
|
|
22
|
-
protectedCoreComparison: { ok: true },
|
|
23
|
-
verification: [{ command: 'fixture', ok: true }]
|
|
24
|
-
});
|
|
25
|
-
const ok = authorization.schema === 'sks.mad-sks-authorization.v1'
|
|
26
|
-
&& ledger.schema === 'sks.mad-sks-audit-ledger.v1'
|
|
27
|
-
&& rollback.schema === 'sks.mad-sks-rollback-plan.v1'
|
|
28
|
-
&& proof.schema === 'sks.mad-sks-proof-evidence.v1'
|
|
29
|
-
&& proof.ok === true;
|
|
30
|
-
emit({ schema: 'sks.mad-sks-audit-proof-check.v1', ok, authorization, ledger, rollback, proof });
|
|
31
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
32
|
-
process.exitCode = 1; }
|
|
33
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-audit-proof-check.v1', ok: false, blocker, detail }); process.exit(1); }
|
|
34
|
-
//# sourceMappingURL=mad-sks-audit-proof-check.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { pathToFileURL } from 'node:url';
|
|
6
|
-
import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'agents', 'fast-mode-policy.js')).href);
|
|
8
|
-
const policy = mod.resolveFastModePolicy({});
|
|
9
|
-
const env = mod.fastModeEnv(policy);
|
|
10
|
-
const report = {
|
|
11
|
-
schema: 'sks.mad-sks-fast-mode-propagation-check.v1',
|
|
12
|
-
ok: policy.fast_mode === true && policy.service_tier === 'fast' && env.SKS_FAST_MODE === '1' && env.SKS_SERVICE_TIER === 'fast',
|
|
13
|
-
mad_target_worker_env: env,
|
|
14
|
-
fast_mode: policy.fast_mode,
|
|
15
|
-
service_tier: policy.service_tier,
|
|
16
|
-
proof_level: 'fixture_instrumented_real',
|
|
17
|
-
blockers: []
|
|
18
|
-
};
|
|
19
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'mad-sks-fast-mode-propagation.json');
|
|
20
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
21
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
22
|
-
assertGate(report.ok, 'MAD-SKS target worker fast env must default to fast', report);
|
|
23
|
-
emitGate('mad-sks:fast-mode-propagation', { service_tier: report.service_tier });
|
|
24
|
-
//# sourceMappingURL=mad-sks-fast-mode-propagation-check.js.map
|
|
@@ -1,36 +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 { pathToFileURL } from 'node:url';
|
|
7
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
8
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
9
|
-
if (!freshness.ok)
|
|
10
|
-
fail('dist_not_fresh', { freshness });
|
|
11
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'immutable-harness-guard.js')).href);
|
|
12
|
-
const core = mod.resolveProtectedCore({ packageRoot: root, targetRoot: root });
|
|
13
|
-
const engineAllowed = await mod.evaluateMadSksWrite({ packageRoot: root, targetRoot: root, operation: 'file_write', path: path.join(root, 'src', 'core', 'version.ts') });
|
|
14
|
-
const installedRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-installed-core-'));
|
|
15
|
-
await fs.mkdir(path.join(installedRoot, 'src', 'core'), { recursive: true });
|
|
16
|
-
await fs.mkdir(path.join(installedRoot, 'scripts'), { recursive: true });
|
|
17
|
-
await fs.writeFile(path.join(installedRoot, 'package.json'), '{"name":"sneakoscope","version":"1.18.13"}\n');
|
|
18
|
-
await fs.writeFile(path.join(installedRoot, 'src', 'core', 'version.ts'), 'export const PACKAGE_VERSION = "1.18.13";\n');
|
|
19
|
-
const installedCore = mod.resolveProtectedCore({ packageRoot: installedRoot, targetRoot: installedRoot });
|
|
20
|
-
const blocked = await mod.evaluateMadSksWrite({ packageRoot: installedRoot, targetRoot: installedRoot, operation: 'file_write', path: path.join(installedRoot, 'src', 'core', 'version.ts') });
|
|
21
|
-
const allowed = await mod.evaluateMadSksWrite({ packageRoot: root, targetRoot: root, operation: 'file_write', path: path.join(root, '.sneakoscope', 'tmp', 'target.txt') });
|
|
22
|
-
const before = await mod.snapshotProtectedCore(root, 'before');
|
|
23
|
-
const after = await mod.snapshotProtectedCore(root, 'after');
|
|
24
|
-
const comparison = mod.compareProtectedCoreSnapshots(before, after);
|
|
25
|
-
const ok = core.schema === 'sks.mad-sks-protected-core.v1'
|
|
26
|
-
&& core.engine_source_exception === true
|
|
27
|
-
&& engineAllowed.decision === 'allowed'
|
|
28
|
-
&& installedCore.engine_source_exception === false
|
|
29
|
-
&& blocked.decision === 'blocked'
|
|
30
|
-
&& allowed.decision === 'allowed'
|
|
31
|
-
&& comparison.ok === true;
|
|
32
|
-
emit({ schema: 'sks.mad-sks-immutable-harness-check.v1', ok, core_count: core.protected_paths.length, core, engineAllowed, installedCore, blocked, allowed, comparison });
|
|
33
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
34
|
-
process.exitCode = 1; }
|
|
35
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-immutable-harness-check.v1', ok: false, blocker, detail }); process.exit(1); }
|
|
36
|
-
//# sourceMappingURL=mad-sks-immutable-harness-check.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'immutable-harness-guard.js')).href);
|
|
10
|
-
const before = await mod.snapshotProtectedCore(root, 'before');
|
|
11
|
-
const engineSource = await mod.evaluateMadSksWrite({ packageRoot: root, targetRoot: root, operation: 'file_write', path: path.join(root, 'dist', 'bin', 'sks.js') });
|
|
12
|
-
const installedRoot = path.join(root, 'node_modules', 'sneakoscope');
|
|
13
|
-
const blocked = await mod.evaluateMadSksWrite({ packageRoot: installedRoot, targetRoot: installedRoot, operation: 'file_write', path: path.join(installedRoot, 'dist', 'bin', 'sks.js') });
|
|
14
|
-
const after = await mod.snapshotProtectedCore(root, 'after');
|
|
15
|
-
const comparison = mod.compareProtectedCoreSnapshots(before, after);
|
|
16
|
-
const ok = engineSource.decision === 'allowed'
|
|
17
|
-
&& engineSource.protected_core?.engine_source_exception === true
|
|
18
|
-
&& blocked.decision === 'blocked'
|
|
19
|
-
&& blocked.protected_core?.engine_source_exception === false
|
|
20
|
-
&& comparison.ok === true;
|
|
21
|
-
emit({ schema: 'sks.mad-sks-no-harness-modification-check.v1', ok, engineSource, blocked, comparison });
|
|
22
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
23
|
-
process.exitCode = 1; }
|
|
24
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-no-harness-modification-check.v1', ok: false, blocker, detail }); process.exit(1); }
|
|
25
|
-
//# sourceMappingURL=mad-sks-no-harness-modification-check.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'permission-model.js')).href);
|
|
10
|
-
const permission = mod.buildMadSksPermissionModel({
|
|
11
|
-
targetRoot: path.join(root, 'fixture-target'),
|
|
12
|
-
flags: mod.parseMadSksFlags(['--mad-sks', '--allow-system', '--allow-db-write', '--allow-package-install', '--allow-service-control', '--allow-network', '--allow-computer-use'])
|
|
13
|
-
});
|
|
14
|
-
const ok = permission.schema === 'sks.mad-sks-permission-model.v1'
|
|
15
|
-
&& permission.mode === 'full_system_authority'
|
|
16
|
-
&& permission.forbidden_scopes.includes('sks_harness_code')
|
|
17
|
-
&& permission.allowed_scopes.includes('computer_use');
|
|
18
|
-
emit({ schema: 'sks.mad-sks-permission-model-check.v1', ok, permission });
|
|
19
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
20
|
-
process.exitCode = 1; }
|
|
21
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-permission-model-check.v1', ok: false, blocker, detail }); process.exit(1); }
|
|
22
|
-
//# sourceMappingURL=mad-sks-permission-model-check.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mad-sks', 'write-guard.js')).href);
|
|
10
|
-
const engineSource = await mod.guardMadSksFileOperation({ targetPath: path.join(root, 'package.json'), operation: 'file_write', root, targetRoot: root });
|
|
11
|
-
const installedRoot = path.join(root, 'node_modules', 'sneakoscope');
|
|
12
|
-
const blocked = await mod.guardMadSksFileOperation({ targetPath: path.join(installedRoot, 'package.json'), operation: 'file_write', root: installedRoot, targetRoot: installedRoot });
|
|
13
|
-
const shell = await mod.classifyMadSksShellCommand({ command: 'sudo rm -rf ./src/core', cwd: root, root });
|
|
14
|
-
const fakeOpenAi = `${'OPENAI'}_${'API'}_${'KEY'}=${'sk'}-${'proj'}-${'secretsecretsecret'}`;
|
|
15
|
-
const fakeGithub = `${'github'}_${'pat'}_${'abcdef'}`;
|
|
16
|
-
const redacted = mod.redactMadSksSecrets(`${fakeOpenAi} ${fakeGithub}`);
|
|
17
|
-
const ok = engineSource.action === 'allow'
|
|
18
|
-
&& engineSource.protected_core?.engine_source_exception === true
|
|
19
|
-
&& blocked.action === 'block'
|
|
20
|
-
&& blocked.protected_core?.engine_source_exception === false
|
|
21
|
-
&& shell.action === 'confirm'
|
|
22
|
-
&& !redacted.includes(fakeOpenAi.split('=').at(-1))
|
|
23
|
-
&& !redacted.includes(fakeGithub);
|
|
24
|
-
emit({ schema: 'sks.mad-sks-write-guard-check.v1', ok, engineSource, blocked, shell, redacted });
|
|
25
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
26
|
-
process.exitCode = 1; }
|
|
27
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-write-guard-check.v1', ok: false, blocker, detail }); process.exit(1); }
|
|
28
|
-
//# sourceMappingURL=mad-sks-write-guard-check.js.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { packageRoot } from '../core/fsx.js';
|
|
5
|
-
const root = packageRoot();
|
|
6
|
-
const mad = await fs.readFile(path.join(root, 'src', 'core', 'commands', 'mad-sks-command.ts'), 'utf8');
|
|
7
|
-
const parser = await fs.readFile(path.join(root, 'src', 'core', 'agents', 'agent-command-surface.ts'), 'utf8');
|
|
8
|
-
const swarm = await fs.readFile(path.join(root, 'src', 'core', 'agents', 'native-cli-session-swarm.ts'), 'utf8');
|
|
9
|
-
const manager = await fs.readFile(path.join(root, 'src', 'core', 'zellij', 'zellij-worker-pane-manager.ts'), 'utf8');
|
|
10
|
-
const commandBody = mad.slice(mad.indexOf('export async function madHighCommand'), mad.indexOf('export async function startMadNativeSwarm'));
|
|
11
|
-
const launchIndex = commandBody.indexOf('launchMadZellijUi(');
|
|
12
|
-
const swarmIndex = commandBody.indexOf('startMadNativeSwarm(');
|
|
13
|
-
const checks = {
|
|
14
|
-
no_runtime_enable_profile: !commandBody.includes('enableMadHighProfile('),
|
|
15
|
-
read_only_launch_profile: mad.includes('buildMadHighLaunchProfileNoWrite()'),
|
|
16
|
-
preflight_fix_default_false: mad.includes('fix: allowMadRepair'),
|
|
17
|
-
zellij_session_before_swarm: launchIndex >= 0 && swarmIndex >= 0 && launchIndex < swarmIndex,
|
|
18
|
-
main_only_session: mad.includes('slotCount: 0'),
|
|
19
|
-
zellij_default_backend: /return 'zellij'/.test(mad) && mad.includes("list.includes('--json')") && mad.includes("list.includes('--no-attach')"),
|
|
20
|
-
worker_command_real_zellij: mad.includes("command.push('--real')") && mad.includes("command.push('--zellij-session-name'") && mad.includes("command.push('--zellij-pane-worker')") && mad.includes("command.push('--worker-placement'"),
|
|
21
|
-
parser_accepts_worker_flags: parser.includes('--zellij-session-name') && parser.includes('--zellij-pane-worker') && parser.includes('--no-zellij-pane-worker'),
|
|
22
|
-
native_worker_pane_path: swarm.includes("this.input.backend === 'zellij'") && swarm.includes('ctx.opts.zellijPaneWorker !== false') && swarm.includes('openWorkerPane({'),
|
|
23
|
-
right_pane_requested: manager.includes("'--direction', directionRequested") && manager.includes("'--near-current-pane'")
|
|
24
|
-
};
|
|
25
|
-
const ok = Object.values(checks).every(Boolean);
|
|
26
|
-
emit({
|
|
27
|
-
schema: 'sks.mad-sks-zellij-default-pane-worker-check.v1',
|
|
28
|
-
ok,
|
|
29
|
-
checks,
|
|
30
|
-
blockers: ok ? [] : Object.entries(checks).filter(([, passed]) => !passed).map(([name]) => name)
|
|
31
|
-
});
|
|
32
|
-
function emit(report) {
|
|
33
|
-
console.log(JSON.stringify(report, null, 2));
|
|
34
|
-
if (!report.ok)
|
|
35
|
-
process.exitCode = 1;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=mad-sks-zellij-default-pane-worker-check.js.map
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { pathToFileURL } from 'node:url';
|
|
6
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
7
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
8
|
-
if (!freshness.ok)
|
|
9
|
-
fail('dist_not_fresh', { freshness });
|
|
10
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-launcher.js')).href);
|
|
11
|
-
const report = await mod.launchMadZellijUi(['--workspace', 'sks-mad-check'], {
|
|
12
|
-
root,
|
|
13
|
-
missionId: 'M-zellij-launch-check',
|
|
14
|
-
ledgerRoot: path.join(root, '.sneakoscope', 'missions', 'M-zellij-launch-check', 'agents'),
|
|
15
|
-
dryRun: true,
|
|
16
|
-
codexArgs: ['--profile', 'sks-mad-high', '--sandbox', 'danger-full-access', '--ask-for-approval', 'never', '-c', 'service_tier=fast', '-c', 'model_provider="codex-lb"'],
|
|
17
|
-
launchEnv: { SKS_MAD_SKS_TARGET_ROOT: root, SKS_PROTECTED_CORE_POLICY: path.join(root, '.sneakoscope', 'missions', 'M-zellij-launch-check', 'mad-sks-protected-core-policy.json') }
|
|
18
|
-
});
|
|
19
|
-
const paneProofExists = await fs.access(path.join(root, '.sneakoscope', 'missions', 'M-zellij-launch-check', 'zellij-pane-proof.json')).then(() => true).catch(() => false);
|
|
20
|
-
const layoutText = await fs.readFile(report.layout_path, 'utf8');
|
|
21
|
-
const installHelpers = await fs.readFile(path.join(root, 'src', 'cli', 'install-helpers.ts'), 'utf8');
|
|
22
|
-
const madCommand = await fs.readFile(path.join(root, 'src', 'core', 'commands', 'mad-sks-command.ts'), 'utf8');
|
|
23
|
-
const installSafetyOk = !installHelpers.includes("--from-postinstall', '--install-scope', 'global', '--force', '--yes")
|
|
24
|
-
&& installHelpers.includes('SKS_POSTINSTALL_AUTO_INSTALL_CLI_TOOLS')
|
|
25
|
-
&& installHelpers.includes('(zellijRepair as any).error || zellij.blockers[0]')
|
|
26
|
-
&& installHelpers.includes('Codex CLI is missing. Install latest Codex CLI');
|
|
27
|
-
const consoleDetailOk = madCommand.includes("['stderr_tail'")
|
|
28
|
-
&& madCommand.includes("['stdout_tail'")
|
|
29
|
-
&& madCommand.includes('report: ${launch.report_path}');
|
|
30
|
-
const autoAttachOk = madCommand.includes('shouldAutoAttachZellij(args)')
|
|
31
|
-
&& madCommand.includes('attachZellijSessionInteractive(launch.session_name')
|
|
32
|
-
&& madCommand.includes("list.includes('--no-attach')")
|
|
33
|
-
&& madCommand.includes("list.includes('--json')")
|
|
34
|
-
&& madCommand.includes('process.env.ZELLIJ')
|
|
35
|
-
&& madCommand.includes("list.includes('--attach')")
|
|
36
|
-
&& madCommand.includes('process.stdout.isTTY && process.stdin.isTTY');
|
|
37
|
-
const nativeSwarmOk = madCommand.includes('startMadNativeSwarm(')
|
|
38
|
-
&& madCommand.includes('stripMadLaunchOnlyArgs(args)')
|
|
39
|
-
&& madCommand.includes('function madLaunchValueFlags()')
|
|
40
|
-
&& madCommand.includes("route: '$MAD-SKS'")
|
|
41
|
-
&& madCommand.includes("route_command: 'sks --mad native swarm'")
|
|
42
|
-
&& madCommand.includes("same_mission_ledger: true")
|
|
43
|
-
&& madCommand.includes('slotCount: 0')
|
|
44
|
-
&& madCommand.includes('zellijSessionName: launch.session_name')
|
|
45
|
-
&& madCommand.includes('mad_sks.native_swarm_started');
|
|
46
|
-
const codexPaneChecks = {
|
|
47
|
-
main_pane_kind: report.main_pane_kind === 'codex_interactive',
|
|
48
|
-
report_enabled: report.codex_pane?.enabled === true,
|
|
49
|
-
report_no_alt_screen_arg: report.codex_pane.args.includes('--no-alt-screen'),
|
|
50
|
-
report_profile_arg: report.codex_pane.args.includes('--profile') && report.codex_pane.args.includes('sks-mad-high'),
|
|
51
|
-
report_sandbox_arg: report.codex_pane.args.includes('--sandbox') && report.codex_pane.args.includes('danger-full-access'),
|
|
52
|
-
report_approval_arg: report.codex_pane.args.includes('--ask-for-approval') && report.codex_pane.args.includes('never'),
|
|
53
|
-
report_service_tier_arg: report.codex_pane.args.includes('service_tier=fast'),
|
|
54
|
-
report_provider_arg: report.codex_pane.args.some((arg) => /model_provider=.*codex-lb/.test(arg)),
|
|
55
|
-
report_target_env: report.codex_pane.launch_env_keys.includes('SKS_MAD_SKS_TARGET_ROOT'),
|
|
56
|
-
report_policy_env: report.codex_pane.launch_env_keys.includes('SKS_PROTECTED_CORE_POLICY'),
|
|
57
|
-
layout_orchestrator_pane: layoutText.includes('pane name="orchestrator" command="sh"'),
|
|
58
|
-
layout_codex_exec: /exec\s+'?codex'?/.test(layoutText),
|
|
59
|
-
layout_no_alt_screen_arg: layoutText.includes('--no-alt-screen'),
|
|
60
|
-
layout_profile_arg: layoutText.includes('--profile') && layoutText.includes('sks-mad-high'),
|
|
61
|
-
layout_sandbox_arg: layoutText.includes('--sandbox') && layoutText.includes('danger-full-access'),
|
|
62
|
-
layout_approval_arg: layoutText.includes('--ask-for-approval') && layoutText.includes('never'),
|
|
63
|
-
layout_service_tier_arg: layoutText.includes('service_tier=fast'),
|
|
64
|
-
layout_provider_arg: /model_provider=.*codex-lb/.test(layoutText),
|
|
65
|
-
layout_not_status_shell: !layoutText.includes('sks status --json || true; exec')
|
|
66
|
-
};
|
|
67
|
-
const codexPaneOk = Object.values(codexPaneChecks).every(Boolean);
|
|
68
|
-
const clipboardCliOk = report.launch_command.includes('--copy-command')
|
|
69
|
-
&& report.launch_command.includes('pbcopy')
|
|
70
|
-
&& report.launch_command.includes('--copy-on-select')
|
|
71
|
-
&& report.launch_command.includes('true')
|
|
72
|
-
&& report.launch_command.includes('--mouse-mode')
|
|
73
|
-
&& report.launch_command[report.launch_command.indexOf('--mouse-mode') + 1] === 'true'
|
|
74
|
-
&& report.clipboard_mouse_mode === true
|
|
75
|
-
&& !report.launch_command.includes('--copy-clipboard');
|
|
76
|
-
const ok = report.kind === 'mad'
|
|
77
|
-
&& report.layout_artifact
|
|
78
|
-
&& report.layout_path
|
|
79
|
-
&& report.pane_proof_path
|
|
80
|
-
&& paneProofExists
|
|
81
|
-
&& Array.isArray(report.launch_command)
|
|
82
|
-
&& report.launch_command.join(' ').includes('attach --create-background')
|
|
83
|
-
&& report.launch_command.includes('--default-layout')
|
|
84
|
-
&& !report.launch_command.includes('--layout')
|
|
85
|
-
&& !JSON.stringify(report).includes('tmux attach')
|
|
86
|
-
&& installSafetyOk
|
|
87
|
-
&& consoleDetailOk
|
|
88
|
-
&& autoAttachOk
|
|
89
|
-
&& nativeSwarmOk
|
|
90
|
-
&& clipboardCliOk
|
|
91
|
-
&& codexPaneOk;
|
|
92
|
-
const gate = { schema: 'sks.mad-sks-zellij-launch-check.v1', ok, install_safety_ok: installSafetyOk, console_detail_ok: consoleDetailOk, auto_attach_ok: autoAttachOk, native_swarm_ok: nativeSwarmOk, clipboard_cli_ok: clipboardCliOk, codex_pane_ok: codexPaneOk, codex_pane_checks: codexPaneChecks, report };
|
|
93
|
-
await writeMadZellijLaunchGate(gate);
|
|
94
|
-
emit(gate);
|
|
95
|
-
async function writeMadZellijLaunchGate(gate) {
|
|
96
|
-
await fs.mkdir(path.join(root, '.sneakoscope', 'reports'), { recursive: true });
|
|
97
|
-
await fs.writeFile(path.join(root, '.sneakoscope', 'reports', 'mad-sks-zellij-launch.json'), `${JSON.stringify(gate, null, 2)}\n`);
|
|
98
|
-
}
|
|
99
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
100
|
-
process.exitCode = 1; }
|
|
101
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mad-sks-zellij-launch-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
|
|
102
|
-
//# sourceMappingURL=mad-sks-zellij-launch-check.js.map
|
|
@@ -1,55 +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 } from './sks-1-18-gate-lib.js';
|
|
6
|
-
const mod = await importDist('core/mcp/mcp-0-134-policy.js');
|
|
7
|
-
const policy = mod.detectMcp0134PolicyFromConfig([
|
|
8
|
-
{
|
|
9
|
-
path: 'fixture.json',
|
|
10
|
-
text: JSON.stringify({
|
|
11
|
-
mcp_servers: {
|
|
12
|
-
docs: {
|
|
13
|
-
transport: 'streamable_http',
|
|
14
|
-
env: { DOCS_TOKEN: 'x' },
|
|
15
|
-
oauth: { client_id: 'fixture' }
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
path: 'fixture.toml',
|
|
22
|
-
text: '[mcp_servers.docs_toml]\ntransport = "streamable_http"\n[mcp_servers.docs_toml.env]\nDOCS_TOKEN = "x"\n[mcp_servers.docs_toml.oauth]\nclient_id = "fixture"\n'
|
|
23
|
-
}
|
|
24
|
-
]);
|
|
25
|
-
const readOnly = mod.classifyMcpToolForConcurrency({ name: 'docs_search', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
26
|
-
const destructive = mod.classifyMcpToolForConcurrency({ name: 'docs_delete', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
27
|
-
const camelCaseDestructive = mod.classifyMcpToolForConcurrency({ name: 'writeFile', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
28
|
-
const namespacedDestructive = mod.classifyMcpToolForConcurrency({ name: 'filesystem.writeFile', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
29
|
-
const compacted = mod.compactMcpToolSchema({ type: 'object', properties: { item: { $ref: '#/$defs/Item' } }, $defs: { Item: { type: 'string' } }, description: 'x'.repeat(10000) }, 512);
|
|
30
|
-
const compactedDefinitions = mod.compactMcpToolSchema({ type: 'object', properties: { item: { $ref: '#/definitions/Item' } }, definitions: { Item: { type: 'string' } }, description: 'x'.repeat(10000) }, 512);
|
|
31
|
-
const report = {
|
|
32
|
-
schema: 'sks.mcp-0.134-modernization-check.v1',
|
|
33
|
-
ok: true,
|
|
34
|
-
policy,
|
|
35
|
-
readOnly,
|
|
36
|
-
destructive,
|
|
37
|
-
camelCaseDestructive,
|
|
38
|
-
namespacedDestructive,
|
|
39
|
-
compacted,
|
|
40
|
-
compactedDefinitions
|
|
41
|
-
};
|
|
42
|
-
assertGate(policy.per_server_environment_supported === true, 'MCP 0.134 policy must detect per-server env targeting', report);
|
|
43
|
-
assertGate(policy.streamable_http_oauth_supported === true, 'MCP 0.134 policy must detect streamable HTTP OAuth', report);
|
|
44
|
-
assertGate(policy.servers.some((server) => server.name === 'docs_toml' && server.environment_keys.includes('DOCS_TOKEN')), 'MCP 0.134 policy must detect nested TOML per-server env tables', report);
|
|
45
|
-
assertGate(readOnly.concurrency === 'candidate_parallel_readonly', 'readOnlyHint safe tool should be candidate parallel readonly', report);
|
|
46
|
-
assertGate(destructive.concurrency === 'serial_required', 'destructive readOnlyHint tool must remain serial', report);
|
|
47
|
-
assertGate(camelCaseDestructive.concurrency === 'serial_required', 'camelCase destructive readOnlyHint tool must remain serial', report);
|
|
48
|
-
assertGate(namespacedDestructive.concurrency === 'serial_required', 'namespaced destructive readOnlyHint tool must remain serial', report);
|
|
49
|
-
assertGate(compacted.preserved_ref_defs === true, 'schema compaction must preserve $ref/$defs evidence', report);
|
|
50
|
-
assertGate(compactedDefinitions.schema.definitions?.Item?.type === 'string', 'schema compaction must preserve definitions refs without moving them to $defs', report);
|
|
51
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'mcp-0-134-modernization.json');
|
|
52
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
53
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
54
|
-
emitGate('mcp:0.134-modernization', { servers: policy.servers.length });
|
|
55
|
-
//# sourceMappingURL=mcp-0-134-modernization-check.js.map
|
|
@@ -1,17 +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 } from './sks-1-18-gate-lib.js';
|
|
6
|
-
const mod = await importDist('core/mcp/mcp-0-134-policy.js');
|
|
7
|
-
const readOnly = mod.classifyMcpToolForConcurrency({ name: 'search_docs', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
8
|
-
const destructive = mod.classifyMcpToolForConcurrency({ name: 'delete_docs', annotations: { readOnlyHint: true }, inputSchema: { type: 'object' } });
|
|
9
|
-
const report = { schema: 'sks.mcp-readonly-concurrency-check.v1', ok: readOnly.concurrency === 'candidate_parallel_readonly' && destructive.concurrency === 'serial_required', readOnly, destructive };
|
|
10
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'mcp-readonly-concurrency.json');
|
|
11
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
12
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
13
|
-
assertGate(readOnly.concurrency === 'candidate_parallel_readonly', 'readOnlyHint non-destructive tools may be parallel candidates', report);
|
|
14
|
-
assertGate(destructive.concurrency === 'serial_required', 'destructive tools remain serial even with readOnlyHint', report);
|
|
15
|
-
assertGate(readOnly.advisory_only === true, 'readOnlyHint must remain advisory only', report);
|
|
16
|
-
emitGate('mcp:readonly-concurrency', { read_only: readOnly.concurrency, destructive: destructive.concurrency });
|
|
17
|
-
//# sourceMappingURL=mcp-readonly-concurrency-check.js.map
|
|
@@ -1,20 +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 } from './sks-1-18-gate-lib.js';
|
|
6
|
-
const mod = await importDist('core/mcp/mcp-0-134-policy.js');
|
|
7
|
-
const proof = await mod.proveMcpReadOnlyRuntimeScheduler();
|
|
8
|
-
const report = { schema: 'sks.mcp-readonly-runtime-scheduler-check.v1', ok: proof.ok, proof };
|
|
9
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'mcp-readonly-runtime-scheduler.json');
|
|
10
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
11
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
12
|
-
assertGate(proof.read_only_parallel === true, 'readOnlyHint fixtures must overlap at runtime', report);
|
|
13
|
-
assertGate(proof.write_serial === true, 'write-capable MCP fixtures must be serialized', report);
|
|
14
|
-
assertGate(proof.destructive_false_positive_blocked === true, 'destructive readOnlyHint false positive must be blocked', report);
|
|
15
|
-
assertGate(proof.tools.every((row) => Number.isFinite(row.started_at_ms) && Number.isFinite(row.ended_at_ms)), 'MCP scheduler proof must include timestamps', report);
|
|
16
|
-
assertGate(proof.ok === true, 'MCP runtime scheduler proof must be blocker-free', report);
|
|
17
|
-
assertGate(proof.overlap_evidence.length >= 1, 'MCP scheduler proof must include actual overlap evidence rows', report);
|
|
18
|
-
assertGate(proof.tools.filter((row) => row.scheduled_mode === 'parallel_readonly_batch').length >= 3, 'MCP scheduler proof must use at least three read-only tools', report);
|
|
19
|
-
emitGate('mcp:readonly-runtime-scheduler', { overlaps: proof.overlap_evidence.length });
|
|
20
|
-
//# sourceMappingURL=mcp-readonly-runtime-scheduler-check.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
7
|
-
if (!freshness.ok)
|
|
8
|
-
fail('dist_not_fresh', { freshness });
|
|
9
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'mcp', 'mcp-tool-name-normalizer.js')).href);
|
|
10
|
-
const report = mod.normalizeMcpToolInventory([{ server: 'github', name: 'search issues' }, { server: 'github', name: 'search_issues' }]);
|
|
11
|
-
const ok = report.ok && report.collision_count === 1 && report.normalized.every((row) => row.normalized_name.includes('github'));
|
|
12
|
-
emit({ schema: 'sks.mcp-tool-naming-parity-check.v1', ok, report });
|
|
13
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
14
|
-
process.exitCode = 1; }
|
|
15
|
-
function fail(blocker, detail) { emit({ schema: 'sks.mcp-tool-naming-parity-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
|
|
16
|
-
//# sourceMappingURL=mcp-tool-naming-parity-check.js.map
|