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,64 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { spawnSync } from 'node:child_process';
|
|
4
|
-
import fs from 'node:fs/promises';
|
|
5
|
-
import os from 'node:os';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
const repo = process.cwd();
|
|
8
|
-
const fixture = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-doctor-fix-'));
|
|
9
|
-
const home = path.join(fixture, 'home');
|
|
10
|
-
await fs.mkdir(home, { recursive: true });
|
|
11
|
-
const run = spawnSync(process.execPath, [
|
|
12
|
-
path.join(repo, 'dist', 'bin', 'sks.js'),
|
|
13
|
-
'doctor',
|
|
14
|
-
'--fix',
|
|
15
|
-
'--json',
|
|
16
|
-
'--codex-bin',
|
|
17
|
-
path.join(repo, 'dist', 'scripts', 'fixtures', 'fake-codex-config-loader.js')
|
|
18
|
-
], {
|
|
19
|
-
cwd: fixture,
|
|
20
|
-
env: {
|
|
21
|
-
...process.env,
|
|
22
|
-
HOME: home,
|
|
23
|
-
CODEX_HOME: path.join(home, '.codex'),
|
|
24
|
-
SKS_FAKE_CODEX_CONFIG_EPERM: '1',
|
|
25
|
-
SKS_DISABLE_UPDATE_CHECK: '1'
|
|
26
|
-
},
|
|
27
|
-
encoding: 'utf8',
|
|
28
|
-
timeout: 180000
|
|
29
|
-
});
|
|
30
|
-
const parsed = parseLastJson(run.stdout || '{}');
|
|
31
|
-
const ok = run.status !== 0
|
|
32
|
-
&& parsed.ready?.ready === false
|
|
33
|
-
&& parsed.ready?.blockers?.includes('codex_cli_config_eperm')
|
|
34
|
-
&& parsed.ready?.next_actions?.length > 0;
|
|
35
|
-
console.log(JSON.stringify({
|
|
36
|
-
schema: 'sks.doctor-fix-proves-codex-read-check.v1',
|
|
37
|
-
ok,
|
|
38
|
-
status: run.status,
|
|
39
|
-
signal: run.signal,
|
|
40
|
-
error: run.error ? String(run.error.message || run.error) : null,
|
|
41
|
-
parsed,
|
|
42
|
-
stdout_tail: String(run.stdout || '').slice(-1000),
|
|
43
|
-
stderr_tail: String(run.stderr || '').slice(-1000)
|
|
44
|
-
}, null, 2));
|
|
45
|
-
if (!ok)
|
|
46
|
-
process.exitCode = 1;
|
|
47
|
-
function parseLastJson(text) {
|
|
48
|
-
const source = String(text || '').trim();
|
|
49
|
-
if (!source)
|
|
50
|
-
return {};
|
|
51
|
-
const starts = [];
|
|
52
|
-
for (let index = source.indexOf('{'); index >= 0; index = source.indexOf('{', index + 1))
|
|
53
|
-
starts.push(index);
|
|
54
|
-
for (let i = starts.length - 1; i >= 0; i -= 1) {
|
|
55
|
-
try {
|
|
56
|
-
return JSON.parse(source.slice(starts[i]));
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
// Continue searching for the outer JSON object; pretty JSON may contain nested objects.
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=doctor-fix-proves-codex-read-check.js.map
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// Proves `sks doctor --fix` (via repairCodexConfigEperm) RECOVERS an already-corrupted
|
|
4
|
-
// Codex config — both the project config and the global CODEX_HOME config — by hoisting
|
|
5
|
-
// machine-local keys that a prior buggy move absorbed into a trailing table back to the
|
|
6
|
-
// top of the file, restoring a loadable config.toml. Also proves the structural repair
|
|
7
|
-
// is a no-op on a healthy config.
|
|
8
|
-
import fs from 'node:fs/promises';
|
|
9
|
-
import os from 'node:os';
|
|
10
|
-
import path from 'node:path';
|
|
11
|
-
import { pathToFileURL } from 'node:url';
|
|
12
|
-
import { ensureDistFresh, root as repoRoot } from './lib/ensure-dist-fresh.js';
|
|
13
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
14
|
-
if (!freshness.ok)
|
|
15
|
-
fail('dist_not_fresh', { freshness });
|
|
16
|
-
const distUrl = (rel) => pathToFileURL(path.join(repoRoot, 'dist', rel)).href;
|
|
17
|
-
const policy = await import(distUrl('core/codex/codex-project-config-policy.js'));
|
|
18
|
-
const eperm = await import(distUrl('core/codex/codex-config-eperm-repair.js'));
|
|
19
|
-
const results = [];
|
|
20
|
-
// Corruption signature: machine-local keys absorbed into the trailing env table.
|
|
21
|
-
const corrupted = [
|
|
22
|
-
'[mcp_servers.xai-grok]',
|
|
23
|
-
'command = "npx"',
|
|
24
|
-
'',
|
|
25
|
-
'[mcp_servers.xai-grok.env]',
|
|
26
|
-
'XAI_API_KEY = "xai-123"',
|
|
27
|
-
'# SKS moved machine-local Codex config from .codex/config.toml at 2026-05-29T00:00:00Z',
|
|
28
|
-
'model_provider = "codex-lb"',
|
|
29
|
-
'notify = ["notify-send", "SKS"]',
|
|
30
|
-
''
|
|
31
|
-
].join('\n');
|
|
32
|
-
// helper: top-level key index vs first table index
|
|
33
|
-
function keyBeforeFirstTable(text, key) {
|
|
34
|
-
const lines = text.split('\n');
|
|
35
|
-
const firstTable = lines.findIndex((l) => /^\s*\[/.test(l));
|
|
36
|
-
const keyIdx = lines.findIndex((l) => new RegExp(`^\\s*${key}\\s*=`).test(l));
|
|
37
|
-
return keyIdx >= 0 && firstTable >= 0 && keyIdx < firstTable;
|
|
38
|
-
}
|
|
39
|
-
function envTableHasMachineKey(text) {
|
|
40
|
-
// model_provider/notify must NOT appear after the env header
|
|
41
|
-
return /\[mcp_servers\.xai-grok\.env\][\s\S]*\b(model_provider|notify)\s*=/.test(text);
|
|
42
|
-
}
|
|
43
|
-
// --- Case 1: standalone structural repair hoists keys back to root ---
|
|
44
|
-
{
|
|
45
|
-
const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-struct-'));
|
|
46
|
-
const cfg = path.join(dir, 'config.toml');
|
|
47
|
-
await fs.writeFile(cfg, corrupted);
|
|
48
|
-
const rep = await policy.repairCodexConfigStructure(cfg, { apply: true });
|
|
49
|
-
const after = await fs.readFile(cfg, 'utf8');
|
|
50
|
-
const ok = rep.changed === true &&
|
|
51
|
-
rep.applied === true &&
|
|
52
|
-
rep.hoisted_keys.includes('model_provider') &&
|
|
53
|
-
rep.hoisted_keys.includes('notify') &&
|
|
54
|
-
keyBeforeFirstTable(after, 'model_provider') &&
|
|
55
|
-
keyBeforeFirstTable(after, 'notify') &&
|
|
56
|
-
!envTableHasMachineKey(after) &&
|
|
57
|
-
/XAI_API_KEY = "xai-123"/.test(after) &&
|
|
58
|
-
rep.backup_path &&
|
|
59
|
-
rep.parse_smoke.ok === true;
|
|
60
|
-
results.push({ case: 'structure_repair_hoists_keys', ok, hoisted: rep.hoisted_keys, status: rep.status, after });
|
|
61
|
-
}
|
|
62
|
-
// --- Case 2: structural repair is a no-op on a healthy config ---
|
|
63
|
-
{
|
|
64
|
-
const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-struct-ok-'));
|
|
65
|
-
const cfg = path.join(dir, 'config.toml');
|
|
66
|
-
const healthy = [
|
|
67
|
-
'model_provider = "codex-lb"',
|
|
68
|
-
'notify = ["notify-send", "SKS"]',
|
|
69
|
-
'',
|
|
70
|
-
'[mcp_servers.xai-grok.env]',
|
|
71
|
-
'XAI_API_KEY = "xai-123"',
|
|
72
|
-
'',
|
|
73
|
-
'[profiles.sks-mad-high]',
|
|
74
|
-
'model_provider = "codex-lb"',
|
|
75
|
-
'model_reasoning_effort = "high"',
|
|
76
|
-
''
|
|
77
|
-
].join('\n');
|
|
78
|
-
await fs.writeFile(cfg, healthy);
|
|
79
|
-
const rep = await policy.repairCodexConfigStructure(cfg, { apply: true });
|
|
80
|
-
const after = await fs.readFile(cfg, 'utf8');
|
|
81
|
-
// profiles.* model_provider must be preserved inside the profile (NOT hoisted).
|
|
82
|
-
const profileIntact = /\[profiles\.sks-mad-high\][\s\S]*model_provider = "codex-lb"/.test(after);
|
|
83
|
-
const ok = rep.changed === false && rep.status === 'structure_ok' && profileIntact;
|
|
84
|
-
results.push({ case: 'structure_repair_noop_on_healthy', ok, status: rep.status, profile_intact: profileIntact });
|
|
85
|
-
}
|
|
86
|
-
// --- Case 3: doctor --fix recovers the GLOBAL CODEX_HOME config end-to-end ---
|
|
87
|
-
{
|
|
88
|
-
const fixture = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-doctor-fix-'));
|
|
89
|
-
const codexHome = path.join(fixture, 'home', '.codex');
|
|
90
|
-
await fs.mkdir(codexHome, { recursive: true });
|
|
91
|
-
await fs.writeFile(path.join(codexHome, 'config.toml'), corrupted);
|
|
92
|
-
// Project has only a benign config so the project path is healthy.
|
|
93
|
-
await fs.mkdir(path.join(fixture, '.codex'), { recursive: true });
|
|
94
|
-
await fs.writeFile(path.join(fixture, '.codex', 'config.toml'), 'sandbox_mode = "workspace-write"\n');
|
|
95
|
-
const report = await eperm.repairCodexConfigEperm(fixture, {
|
|
96
|
-
fix: true,
|
|
97
|
-
codexHome,
|
|
98
|
-
// no real codex needed; structural repair runs regardless
|
|
99
|
-
actualCodex: false,
|
|
100
|
-
codexProbe: false,
|
|
101
|
-
writeReport: false
|
|
102
|
-
});
|
|
103
|
-
const homeAfter = await fs.readFile(path.join(codexHome, 'config.toml'), 'utf8');
|
|
104
|
-
const homeRepair = (report.structure_repairs || []).find((r) => r.scope === 'codex_home');
|
|
105
|
-
const ok = Boolean(homeRepair) &&
|
|
106
|
-
homeRepair.applied === true &&
|
|
107
|
-
homeRepair.hoisted_keys.includes('model_provider') &&
|
|
108
|
-
homeRepair.hoisted_keys.includes('notify') &&
|
|
109
|
-
keyBeforeFirstTable(homeAfter, 'model_provider') &&
|
|
110
|
-
keyBeforeFirstTable(homeAfter, 'notify') &&
|
|
111
|
-
!envTableHasMachineKey(homeAfter);
|
|
112
|
-
results.push({ case: 'doctor_fix_recovers_codex_home', ok, home_repair: homeRepair, home_after: homeAfter });
|
|
113
|
-
}
|
|
114
|
-
const ok = results.every((r) => r.ok);
|
|
115
|
-
console.log(JSON.stringify({ schema: 'sks.doctor-fix-recovers-corrupted-config-check.v1', ok, results }, null, 2));
|
|
116
|
-
if (!ok)
|
|
117
|
-
process.exitCode = 1;
|
|
118
|
-
function fail(blocker, detail) {
|
|
119
|
-
console.log(JSON.stringify({ schema: 'sks.doctor-fix-recovers-corrupted-config-check.v1', ok: false, blocker, detail }, null, 2));
|
|
120
|
-
process.exit(1);
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=doctor-fix-recovers-corrupted-config-check.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import os from 'node:os';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { repairCodexAppFastUi } from '../core/codex-app/codex-app-fast-ui-repair.js';
|
|
6
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-doctor-fast-ui-'));
|
|
7
|
-
const codexHome = path.join(root, 'home', '.codex');
|
|
8
|
-
await fs.mkdir(path.join(root, '.codex'), { recursive: true });
|
|
9
|
-
await fs.mkdir(codexHome, { recursive: true });
|
|
10
|
-
await fs.writeFile(path.join(root, '.codex', 'config.toml'), 'model_provider = "codex-lb"\n');
|
|
11
|
-
await fs.writeFile(path.join(codexHome, 'config.toml'), '# SKS forced fast UI during legacy install\nservice_tier = "fast"\n[features]\nfast_mode = false # user disabled, must remain untouched\n');
|
|
12
|
-
const plan = await repairCodexAppFastUi(root, { codexHome, apply: false });
|
|
13
|
-
const repaired = await repairCodexAppFastUi(root, { codexHome, apply: true });
|
|
14
|
-
const projectAfter = await fs.readFile(path.join(root, '.codex', 'config.toml'), 'utf8');
|
|
15
|
-
const homeAfter = await fs.readFile(path.join(codexHome, 'config.toml'), 'utf8');
|
|
16
|
-
const backups = repaired.actions.filter((action) => action.changed).map((action) => action.backup_path).filter(Boolean);
|
|
17
|
-
const unsafeRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-doctor-fast-ui-unsafe-'));
|
|
18
|
-
const unsafeCodexHome = path.join(unsafeRoot, 'home', '.codex');
|
|
19
|
-
await fs.mkdir(path.join(unsafeRoot, '.codex'), { recursive: true });
|
|
20
|
-
await fs.mkdir(unsafeCodexHome, { recursive: true });
|
|
21
|
-
await fs.writeFile(path.join(unsafeCodexHome, 'config.toml'), 'service_tier = "standard"\n');
|
|
22
|
-
const unsafePlan = await repairCodexAppFastUi(unsafeRoot, { codexHome: unsafeCodexHome, apply: false });
|
|
23
|
-
const ok = plan.fast_selector === 'manual_action_required'
|
|
24
|
-
&& plan.safe_auto_apply === true
|
|
25
|
-
&& repaired.fast_selector === 'repaired'
|
|
26
|
-
&& repaired.safe_auto_apply === true
|
|
27
|
-
&& backups.length >= 2
|
|
28
|
-
&& !/model_provider\s*=/.test(projectAfter)
|
|
29
|
-
&& !/service_tier\s*=/.test(homeAfter)
|
|
30
|
-
&& /fast_mode = false/.test(homeAfter)
|
|
31
|
-
&& unsafePlan.requires_confirmation === true
|
|
32
|
-
&& unsafePlan.safe_auto_apply === false;
|
|
33
|
-
emit({ schema: 'sks.doctor-fixes-codex-app-fast-ui-check.v1', ok, plan, repaired, unsafe_plan: unsafePlan, project_after: projectAfter, home_after: homeAfter, blockers: ok ? [] : ['doctor_fixes_codex_app_fast_ui_check_failed'] });
|
|
34
|
-
function emit(report) {
|
|
35
|
-
console.log(JSON.stringify(report, null, 2));
|
|
36
|
-
if (!report.ok)
|
|
37
|
-
process.exitCode = 1;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=doctor-fixes-codex-app-fast-ui-check.js.map
|
|
@@ -1,26 +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 { writeEvidenceIndexForProof } from '../core/evidence/evidence-router.js';
|
|
7
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-evidence-fixture-'));
|
|
8
|
-
const mission = path.join(root, '.sneakoscope', 'missions', 'M-evidence');
|
|
9
|
-
await fs.mkdir(mission, { recursive: true });
|
|
10
|
-
await fs.writeFile(path.join(mission, 'completion-proof.json'), '{}\n');
|
|
11
|
-
await fs.writeFile(path.join(mission, 'route-gate.json'), '{}\n');
|
|
12
|
-
const index = await writeEvidenceIndexForProof(root, {
|
|
13
|
-
schema: 'sks.completion-proof.v1',
|
|
14
|
-
mission_id: 'M-evidence',
|
|
15
|
-
route: '$Team',
|
|
16
|
-
status: 'verified_partial',
|
|
17
|
-
evidence: { artifacts: ['route-gate.json'] },
|
|
18
|
-
claims: [],
|
|
19
|
-
unverified: ['fixture evidence'],
|
|
20
|
-
blockers: []
|
|
21
|
-
});
|
|
22
|
-
const ok = index.status === 'verified_partial' && index.records.every((record) => record.source !== 'mock' || record.trust !== 'high');
|
|
23
|
-
console.log(JSON.stringify({ schema: 'sks.evidence-fixture-check.v1', ok, status: index.status, records: index.records.length, issues: index.issues }, null, 2));
|
|
24
|
-
if (!ok)
|
|
25
|
-
process.exitCode = 1;
|
|
26
|
-
//# sourceMappingURL=evidence-fixture-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 { emitGate, requireContains, root } from './sks-1-12-real-execution-check-lib.js';
|
|
6
|
-
requireContains('evidence:flagship-coverage', 'src/core/commands/image-ux-review-command.ts', [
|
|
7
|
-
'visualEvidence: { image_ux_review',
|
|
8
|
-
'IMAGE_UX_REVIEW_CALLOUT_EXTRACTION_REPORT_ARTIFACT'
|
|
9
|
-
]);
|
|
10
|
-
requireContains('evidence:flagship-coverage', 'src/core/commands/ppt-command.ts', [
|
|
11
|
-
'visualEvidence: { ppt_review',
|
|
12
|
-
'PPT_REVIEW_ARTIFACT_PATHS'
|
|
13
|
-
]);
|
|
14
|
-
requireContains('evidence:flagship-coverage', 'src/core/dfix.ts', [
|
|
15
|
-
'visualEvidence: { dfix',
|
|
16
|
-
'DFIX_VERIFICATION_SUGGESTION_ARTIFACT'
|
|
17
|
-
]);
|
|
18
|
-
requireContains('evidence:flagship-coverage', 'src/scripts/release-readiness-report.ts', [
|
|
19
|
-
'all_features_completion',
|
|
20
|
-
'image_ux_review',
|
|
21
|
-
'ppt_imagegen_review',
|
|
22
|
-
'dfix'
|
|
23
|
-
]);
|
|
24
|
-
requireContains('evidence:flagship-coverage', 'src/core/proof/route-finalizer.ts', [
|
|
25
|
-
'wrongnessProofEvidence',
|
|
26
|
-
'writeRouteCompletionProof'
|
|
27
|
-
]);
|
|
28
|
-
requireContains('evidence:flagship-coverage', 'src/core/trust-kernel/trust-report.ts', [
|
|
29
|
-
'buildTrustReport',
|
|
30
|
-
'evaluateWrongnessTrust'
|
|
31
|
-
]);
|
|
32
|
-
requireContains('evidence:flagship-coverage', 'src/core/evidence/flagship-proof-graph-validator.ts', [
|
|
33
|
-
'completionProofStatusOk',
|
|
34
|
-
'trustStatusOk'
|
|
35
|
-
]);
|
|
36
|
-
const report = {
|
|
37
|
-
schema: 'sks.evidence-flagship-coverage.v1',
|
|
38
|
-
ok: true,
|
|
39
|
-
gate: 'evidence:flagship-coverage',
|
|
40
|
-
flagship_routes: ['UX-Review', 'PPT Imagegen Review', 'DFix', 'All-feature completion'],
|
|
41
|
-
evidence_index_linked: true,
|
|
42
|
-
completion_proof_linked: true,
|
|
43
|
-
trust_linked: true,
|
|
44
|
-
wrongness_behavior_defined: true,
|
|
45
|
-
completion_proof_link_source: 'static_source_contract_and_status_validator',
|
|
46
|
-
trust_link_source: 'static_source_contract_and_status_validator',
|
|
47
|
-
wrongness_link_source: 'static_source_contract',
|
|
48
|
-
mock_real_cap_checked: true,
|
|
49
|
-
local_only_policy_checked: true
|
|
50
|
-
};
|
|
51
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'evidence-flagship-coverage.json');
|
|
52
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
53
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
54
|
-
emitGate('evidence:flagship-coverage', report);
|
|
55
|
-
//# sourceMappingURL=evidence-flagship-coverage-check.js.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const mod = await importDist('core/proof/fake-real-proof-policy.js');
|
|
5
|
-
const fixtureReal = mod.evaluateFakeRealProofPolicy({
|
|
6
|
-
backend: 'codex-sdk',
|
|
7
|
-
real_parallel_claim: true,
|
|
8
|
-
output_schema_used: true,
|
|
9
|
-
output_last_message_path: 'result.json',
|
|
10
|
-
fixture_instrumented_real: true,
|
|
11
|
-
work_graph_quality_score: 0.8,
|
|
12
|
-
cleanup_proof: { ok: true }
|
|
13
|
-
});
|
|
14
|
-
const requiredMissing = mod.evaluateFakeRealProofPolicy({
|
|
15
|
-
backend: 'codex-sdk',
|
|
16
|
-
real_parallel_claim: true,
|
|
17
|
-
integration_optional: true,
|
|
18
|
-
require_real_dynamic_agents: true
|
|
19
|
-
});
|
|
20
|
-
const zellij = mod.evaluateFakeRealProofPolicy({ backend: 'zellij', zellij_pane_verified: true, work_graph_quality_score: 0.8, cleanup_proof: { ok: true } });
|
|
21
|
-
assertGate(fixtureReal.proof_level === 'fixture_instrumented_real', 'fixture-instrumented real smoke must not be plain proven', fixtureReal);
|
|
22
|
-
assertGate(requiredMissing.proof_level === 'real_required_missing' && requiredMissing.ok === false, 'required missing real runtime must block', requiredMissing);
|
|
23
|
-
assertGate(zellij.subsystem_levels.zellij_pane === 'proven', 'real Zellij pane proof must be subsystem-proven', zellij);
|
|
24
|
-
assertGate(zellij.subsystem_levels.cleanup === 'proven', 'cleanup proof level must be included', zellij);
|
|
25
|
-
assertGate(zellij.subsystem_levels.work_graph === 'proven', 'work graph proof level must be included', zellij);
|
|
26
|
-
emitGate('proof:fake-real-policy-v2', { fixture_real: fixtureReal.proof_level, required_missing: requiredMissing.proof_level });
|
|
27
|
-
//# sourceMappingURL=fake-real-proof-policy-v2-check.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const mod = await importDist('core/proof/fake-real-proof-policy.js');
|
|
5
|
-
const fake = mod.evaluateFakeRealProofPolicy({ backend: 'fake', real_parallel_claim: false });
|
|
6
|
-
assertGate(fake.ok === true && fake.proof_level === 'fixture_only', 'fake backend must be fixture_only', fake);
|
|
7
|
-
const badFake = mod.evaluateFakeRealProofPolicy({ backend: 'fake', real_parallel_claim: true });
|
|
8
|
-
assertGate(badFake.ok === false && badFake.blockers.includes('fake_backend_claimed_real_parallel'), 'fake backend cannot claim real parallel', badFake);
|
|
9
|
-
const zellij = mod.evaluateFakeRealProofPolicy({ backend: 'zellij', zellij_pane_verified: true });
|
|
10
|
-
assertGate(zellij.ok === true && zellij.proof_level === 'proven', 'real Zellij with pane evidence must be proven', zellij);
|
|
11
|
-
const optional = mod.evaluateFakeRealProofPolicy({ backend: 'codex-sdk', real_parallel_claim: true, integration_optional: true });
|
|
12
|
-
assertGate(optional.ok === true && optional.proof_level === 'integration_optional', 'unavailable real smoke must be integration_optional', optional);
|
|
13
|
-
emitGate('proof:fake-vs-real-policy', { fake: fake.proof_level, zellij: zellij.proof_level, optional: optional.proof_level });
|
|
14
|
-
//# sourceMappingURL=fake-vs-real-proof-policy-check.js.map
|
|
@@ -1,42 +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 { 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 syntax = await import(pathToFileURL(path.join(root, 'dist', 'core', 'codex', 'codex-cli-syntax-builder.js')).href);
|
|
12
|
-
const fastMode = await import(pathToFileURL(path.join(root, 'dist', 'core', 'agents', 'fast-mode-policy.js')).href);
|
|
13
|
-
const args = syntax.buildCodexExecArgs({ prompt: 'fixture', sandbox: 'workspace-write', serviceTier: 'fast' });
|
|
14
|
-
const temp = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-fast-tier-proof-'));
|
|
15
|
-
const reportDir = path.join(temp, 'sessions', 'agent');
|
|
16
|
-
fs.mkdirSync(reportDir, { recursive: true });
|
|
17
|
-
fs.writeFileSync(path.join(reportDir, 'agent-process-report.json'), `${JSON.stringify({
|
|
18
|
-
schema: 'sks.agent-process-report.v1',
|
|
19
|
-
backend: 'codex-sdk',
|
|
20
|
-
fast_mode: true,
|
|
21
|
-
service_tier: 'fast',
|
|
22
|
-
sdk_config_service_tier: 'fast'
|
|
23
|
-
})}\n`);
|
|
24
|
-
fs.writeFileSync(path.join(reportDir, 'worker-fast-mode.json'), `${JSON.stringify({
|
|
25
|
-
schema: 'sks.native-cli-worker-fast-mode.v1',
|
|
26
|
-
fast_mode: true,
|
|
27
|
-
service_tier: 'fast'
|
|
28
|
-
})}\n`);
|
|
29
|
-
const proof = await fastMode.writeFastModePropagationProof(temp, { policy: fastMode.resolveFastModePolicy() });
|
|
30
|
-
const ok = args.includes('-c')
|
|
31
|
-
&& args.includes('service_tier=fast')
|
|
32
|
-
&& !args.includes('--full-auto')
|
|
33
|
-
&& !args.includes('--dangerously-bypass-approvals-and-sandbox')
|
|
34
|
-
&& proof.ok === true;
|
|
35
|
-
console.log(JSON.stringify({ schema: 'sks.fast-codex-service-tier-proof-check.v1', ok, args, proof }, null, 2));
|
|
36
|
-
if (!ok)
|
|
37
|
-
process.exitCode = 1;
|
|
38
|
-
function fail(blocker, detail) {
|
|
39
|
-
console.log(JSON.stringify({ schema: 'sks.fast-codex-service-tier-proof-check.v1', ok: false, blocker, detail }, null, 2));
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=fast-codex-service-tier-proof-check.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { spawnSync } from 'node:child_process';
|
|
6
|
-
import { writeCodexHookOfficialParityReport } from '../core/codex-hooks/codex-hook-official-parity.js';
|
|
7
|
-
import { validateFlagshipProofGraph } from '../core/evidence/flagship-proof-graph-validator.js';
|
|
8
|
-
const root = process.cwd();
|
|
9
|
-
await refreshDependencyReports(root);
|
|
10
|
-
const report = await validateFlagshipProofGraph(process.cwd());
|
|
11
|
-
const out = path.join(process.cwd(), '.sneakoscope', 'reports', 'flagship-proof-graph-v2.json');
|
|
12
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
13
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
14
|
-
console.log(JSON.stringify(report, null, 2));
|
|
15
|
-
if (!report.ok)
|
|
16
|
-
process.exitCode = 1;
|
|
17
|
-
async function refreshDependencyReports(root) {
|
|
18
|
-
await writeCodexHookOfficialParityReport(root, {
|
|
19
|
-
outputPath: path.join(root, '.sneakoscope', 'reports', 'codex-hook-parity-1.14.1.json')
|
|
20
|
-
});
|
|
21
|
-
for (const script of [
|
|
22
|
-
'./dist/scripts/imagegen-real-smoke-check.js',
|
|
23
|
-
'./dist/scripts/ppt-full-e2e-blackbox-check.js',
|
|
24
|
-
'./dist/scripts/evidence-flagship-coverage-check.js'
|
|
25
|
-
]) {
|
|
26
|
-
const run = spawnSync(process.execPath, [script], {
|
|
27
|
-
cwd: root,
|
|
28
|
-
env: process.env,
|
|
29
|
-
encoding: 'utf8',
|
|
30
|
-
maxBuffer: 8 * 1024 * 1024
|
|
31
|
-
});
|
|
32
|
-
if (run.status !== 0) {
|
|
33
|
-
const report = {
|
|
34
|
-
schema: 'sks.flagship-proof-graph.v2',
|
|
35
|
-
ok: false,
|
|
36
|
-
blocker: `dependency_report_failed:${script}`,
|
|
37
|
-
stdout_tail: run.stdout.slice(-2000),
|
|
38
|
-
stderr_tail: run.stderr.slice(-2000)
|
|
39
|
-
};
|
|
40
|
-
const out = path.join(root, '.sneakoscope', 'reports', 'flagship-proof-graph-v2.json');
|
|
41
|
-
fs.mkdirSync(path.dirname(out), { recursive: true });
|
|
42
|
-
fs.writeFileSync(out, `${JSON.stringify(report, null, 2)}\n`);
|
|
43
|
-
console.log(JSON.stringify(report, null, 2));
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=flagship-proof-graph-v2-check.js.map
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { spawnSync } from 'node:child_process';
|
|
6
|
-
import { pathToFileURL } from 'node:url';
|
|
7
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
8
|
-
const reportDir = path.join(root, '.sneakoscope', 'reports');
|
|
9
|
-
fs.mkdirSync(reportDir, { recursive: true });
|
|
10
|
-
const initialFreshness = ensureDistFresh({ rebuild: true });
|
|
11
|
-
if (!initialFreshness.ok) {
|
|
12
|
-
const report = { schema: 'sks.flagship-proof-graph.v3', ok: false, blocker: 'dist_not_fresh_before_dependencies', freshness: initialFreshness };
|
|
13
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v3.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
14
|
-
console.log(JSON.stringify(report, null, 2));
|
|
15
|
-
process.exit(1);
|
|
16
|
-
}
|
|
17
|
-
const dependencies = [
|
|
18
|
-
['flagship-proof-graph-v2.json', './dist/scripts/flagship-proof-graph-v2-check.js'],
|
|
19
|
-
['mad-sks-permission-model.json', './dist/scripts/mad-sks-permission-model-check.js'],
|
|
20
|
-
['mad-sks-immutable-harness.json', './dist/scripts/mad-sks-immutable-harness-check.js'],
|
|
21
|
-
['mad-sks-write-guard.json', './dist/scripts/mad-sks-write-guard-check.js'],
|
|
22
|
-
['mad-sks-audit-proof.json', './dist/scripts/mad-sks-audit-proof-check.js'],
|
|
23
|
-
['mad-sks-no-harness-modification.json', './dist/scripts/mad-sks-no-harness-modification-check.js'],
|
|
24
|
-
['legacy-multiagent-removal.json', './dist/scripts/legacy-multiagent-removal-check.js'],
|
|
25
|
-
['release-native-agent-fixture-check.json', './dist/scripts/release-native-agent-fixture-check.js'],
|
|
26
|
-
['codex-exec-output-schema-actual-syntax.json', './dist/scripts/codex-exec-output-schema-actual-syntax-check.js'],
|
|
27
|
-
['release-dist-freshness.json', './dist/scripts/release-dist-freshness-check.js']
|
|
28
|
-
];
|
|
29
|
-
for (const [name, script] of dependencies) {
|
|
30
|
-
const run = spawnSync(process.execPath, [script], { cwd: root, encoding: 'utf8', env: process.env, maxBuffer: 20 * 1024 * 1024 });
|
|
31
|
-
const parsed = parseLastJson(run.stdout);
|
|
32
|
-
if (parsed)
|
|
33
|
-
fs.writeFileSync(path.join(reportDir, name), `${JSON.stringify(parsed, null, 2)}\n`);
|
|
34
|
-
if (run.status !== 0) {
|
|
35
|
-
const report = { schema: 'sks.flagship-proof-graph.v3', ok: false, blocker: `dependency_failed:${script}`, stdout_tail: run.stdout.slice(-3000), stderr_tail: run.stderr.slice(-3000) };
|
|
36
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v3.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
37
|
-
console.log(JSON.stringify(report, null, 2));
|
|
38
|
-
process.exit(1);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
42
|
-
if (!freshness.ok) {
|
|
43
|
-
const report = { schema: 'sks.flagship-proof-graph.v3', ok: false, blocker: 'dist_not_fresh', freshness };
|
|
44
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v3.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
45
|
-
console.log(JSON.stringify(report, null, 2));
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'evidence', 'flagship-proof-graph-validator.js')).href);
|
|
49
|
-
const report = await mod.validateFlagshipProofGraphV3(root);
|
|
50
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v3.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
51
|
-
console.log(JSON.stringify(report, null, 2));
|
|
52
|
-
if (!report.ok)
|
|
53
|
-
process.exitCode = 1;
|
|
54
|
-
function parseLastJson(text) {
|
|
55
|
-
const raw = String(text || '').trim();
|
|
56
|
-
if (!raw)
|
|
57
|
-
return null;
|
|
58
|
-
const start = raw.lastIndexOf('\n{');
|
|
59
|
-
const jsonText = start >= 0 ? raw.slice(start + 1) : raw;
|
|
60
|
-
try {
|
|
61
|
-
return JSON.parse(jsonText);
|
|
62
|
-
}
|
|
63
|
-
catch {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=flagship-proof-graph-v3-check.js.map
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { spawnSync } from 'node:child_process';
|
|
6
|
-
import { pathToFileURL } from 'node:url';
|
|
7
|
-
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
8
|
-
const reportDir = path.join(root, '.sneakoscope', 'reports');
|
|
9
|
-
fs.mkdirSync(reportDir, { recursive: true });
|
|
10
|
-
const initialFreshness = ensureDistFresh({ rebuild: true });
|
|
11
|
-
if (!initialFreshness.ok)
|
|
12
|
-
fail('dist_not_fresh_before_dependencies', { freshness: initialFreshness });
|
|
13
|
-
const dependencies = [
|
|
14
|
-
['flagship-proof-graph-v3.json', './dist/scripts/flagship-proof-graph-v3-check.js'],
|
|
15
|
-
['mad-sks-actual-executor-blackbox.json', './dist/scripts/mad-sks-actual-executor-blackbox.js'],
|
|
16
|
-
['mad-sks-file-write-executor.json', './dist/scripts/mad-sks-file-write-executor-check.js'],
|
|
17
|
-
['mad-sks-shell-executor.json', './dist/scripts/mad-sks-shell-executor-check.js'],
|
|
18
|
-
['mad-sks-package-executor.json', './dist/scripts/mad-sks-package-executor-check.js'],
|
|
19
|
-
['mad-sks-service-executor.json', './dist/scripts/mad-sks-service-executor-check.js'],
|
|
20
|
-
['mad-sks-db-executor.json', './dist/scripts/mad-sks-db-executor-check.js'],
|
|
21
|
-
['mad-sks-rollback-apply.json', './dist/scripts/mad-sks-rollback-apply-check.js'],
|
|
22
|
-
['mad-sks-live-protected-core-smoke.json', './dist/scripts/mad-sks-live-protected-core-smoke.js'],
|
|
23
|
-
['mad-sks-executor-proof-graph.json', './dist/scripts/mad-sks-executor-proof-graph-check.js']
|
|
24
|
-
];
|
|
25
|
-
for (const [name, script] of dependencies) {
|
|
26
|
-
const run = spawnSync(process.execPath, [script], { cwd: root, encoding: 'utf8', env: process.env, maxBuffer: 20 * 1024 * 1024 });
|
|
27
|
-
const parsed = parseLastJson(run.stdout);
|
|
28
|
-
if (parsed)
|
|
29
|
-
fs.writeFileSync(path.join(reportDir, name), `${JSON.stringify(parsed, null, 2)}\n`);
|
|
30
|
-
if (run.status !== 0)
|
|
31
|
-
fail(`dependency_failed:${script}`, { stdout_tail: run.stdout.slice(-3000), stderr_tail: run.stderr.slice(-3000) });
|
|
32
|
-
}
|
|
33
|
-
const freshness = ensureDistFresh({ rebuild: true });
|
|
34
|
-
if (!freshness.ok)
|
|
35
|
-
fail('dist_not_fresh', { freshness });
|
|
36
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist', 'core', 'evidence', 'flagship-proof-graph-validator.js')).href);
|
|
37
|
-
const report = await mod.validateFlagshipProofGraphV4(root);
|
|
38
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v4.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
39
|
-
console.log(JSON.stringify(report, null, 2));
|
|
40
|
-
if (!report.ok)
|
|
41
|
-
process.exitCode = 1;
|
|
42
|
-
function fail(blocker, extra = {}) {
|
|
43
|
-
const report = { schema: 'sks.flagship-proof-graph.v4', ok: false, blocker, ...extra };
|
|
44
|
-
fs.writeFileSync(path.join(reportDir, 'flagship-proof-graph-v4.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
45
|
-
console.log(JSON.stringify(report, null, 2));
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
function parseLastJson(text) {
|
|
49
|
-
const raw = String(text || '').trim();
|
|
50
|
-
if (!raw)
|
|
51
|
-
return null;
|
|
52
|
-
const start = raw.lastIndexOf('\n{');
|
|
53
|
-
const jsonText = start >= 0 ? raw.slice(start + 1) : raw;
|
|
54
|
-
try {
|
|
55
|
-
return JSON.parse(jsonText);
|
|
56
|
-
}
|
|
57
|
-
catch {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=flagship-proof-graph-v4-check.js.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import os from 'node:os';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import assert from 'node:assert/strict';
|
|
6
|
-
import { runProcess } from '../core/fsx.js';
|
|
7
|
-
const bin = path.join(process.cwd(), 'dist', 'bin', 'sks.js');
|
|
8
|
-
const runtimeRoot = await fixtureRoot('runtime');
|
|
9
|
-
await runProcess('git', ['init'], { cwd: runtimeRoot });
|
|
10
|
-
await runSks(runtimeRoot, ['git', 'install', '--json']);
|
|
11
|
-
await fs.mkdir(path.join(runtimeRoot, '.sneakoscope', 'missions'), { recursive: true });
|
|
12
|
-
await fs.writeFile(path.join(runtimeRoot, '.sneakoscope', 'missions', 'runtime.json'), '{}\n');
|
|
13
|
-
await runProcess('git', ['add', '-f', '.sneakoscope/missions/runtime.json'], { cwd: runtimeRoot });
|
|
14
|
-
const blocked = await runProcess(process.execPath, [bin, 'git', 'precommit', '--json'], { cwd: runtimeRoot });
|
|
15
|
-
assert.equal(blocked.code, 1, blocked.stdout || blocked.stderr);
|
|
16
|
-
assert.match(blocked.stdout, /runtime_noise_not_staged/);
|
|
17
|
-
const sharedRoot = await fixtureRoot('shared');
|
|
18
|
-
await runProcess('git', ['init'], { cwd: sharedRoot });
|
|
19
|
-
await runSks(sharedRoot, ['git', 'install', '--json']);
|
|
20
|
-
await fs.mkdir(path.join(sharedRoot, '.sneakoscope', 'wiki', 'records', 'claims'), { recursive: true });
|
|
21
|
-
await fs.writeFile(path.join(sharedRoot, '.sneakoscope', 'wiki', 'records', 'claims', 'ok.json'), JSON.stringify({
|
|
22
|
-
schema: 'sks.triwiki-claim-record.v1',
|
|
23
|
-
id: 'ok',
|
|
24
|
-
status: 'supported',
|
|
25
|
-
claim: { text: 'Valid shared claim.' }
|
|
26
|
-
}, null, 2));
|
|
27
|
-
await runProcess('git', ['add', '.sneakoscope/wiki/records/claims/ok.json'], { cwd: sharedRoot });
|
|
28
|
-
const allowed = await runProcess(process.execPath, [bin, 'git', 'precommit', '--json'], { cwd: sharedRoot });
|
|
29
|
-
assert.equal(allowed.code, 0, allowed.stdout || allowed.stderr);
|
|
30
|
-
console.log(JSON.stringify({ ok: true, schema: 'sks.git-precommit-fixture.v1' }, null, 2));
|
|
31
|
-
async function fixtureRoot(name) {
|
|
32
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), `sks-precommit-fixture-${name}-`));
|
|
33
|
-
await fs.writeFile(path.join(root, 'package.json'), '{"name":"fixture","private":true}\n');
|
|
34
|
-
return root;
|
|
35
|
-
}
|
|
36
|
-
async function runSks(root, args) {
|
|
37
|
-
const result = await runProcess(process.execPath, [bin, ...args], { cwd: root, env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' } });
|
|
38
|
-
assert.equal(result.code, 0, result.stdout || result.stderr);
|
|
39
|
-
return JSON.parse(result.stdout);
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=git-precommit-fixture-check.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const policyMod = await importDist('core/git/git-worktree-cache-policy.js');
|
|
5
|
-
const now = Date.now();
|
|
6
|
-
const entries = Array.from({ length: 1000 }, (_, index) => ({
|
|
7
|
-
path: `/tmp/wt-${index}`,
|
|
8
|
-
updated_at_ms: now - index * 60000,
|
|
9
|
-
bytes: 1024 * (index + 1),
|
|
10
|
-
dirty: index % 137 === 0
|
|
11
|
-
}));
|
|
12
|
-
const start = Date.now();
|
|
13
|
-
const plan = policyMod.planGitWorktreeCachePolicy({ entries, nowMs: now, maxEntries: 120, maxBytes: 40 * 1024 * 1024, ttlMs: 2 * 60 * 60 * 1000 });
|
|
14
|
-
const elapsed = Date.now() - start;
|
|
15
|
-
assertGate(plan.ok === true, 'cache policy plan must pass', plan);
|
|
16
|
-
assertGate(plan.keep.length <= 120 || plan.dirty_retained.length > 0, 'cache policy must bound retained clean entries', plan);
|
|
17
|
-
assertGate(plan.dirty_retained.length > 0, 'dirty entries must be retained by cache policy', plan);
|
|
18
|
-
assertGate(elapsed < 250, 'cache policy must stay fast on 1000 entries', { elapsed });
|
|
19
|
-
emitGate('git:worktree-cache-performance', {
|
|
20
|
-
elapsed_ms: elapsed,
|
|
21
|
-
keep: plan.keep.length,
|
|
22
|
-
prune: plan.prune.length,
|
|
23
|
-
dirty_retained: plan.dirty_retained.length
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=git-worktree-cache-performance-check.js.map
|