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,96 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fsp from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { exists, readText, runProcess } from '../core/fsx.js';
|
|
7
|
-
const entry = './dist/bin/sks.js';
|
|
8
|
-
const results = [];
|
|
9
|
-
async function runSetup(name, args, input = 'sk-clb-test\n') {
|
|
10
|
-
const home = await fsp.mkdtemp(path.join(os.tmpdir(), `sks-lb-persist-${name}-`));
|
|
11
|
-
const result = await runProcess(process.execPath, [entry, 'codex-lb', 'setup', '--host', 'lb.example.test', '--api-key-stdin', '--json', ...args], {
|
|
12
|
-
input,
|
|
13
|
-
env: { ...process.env, HOME: home, CI: 'true', SKS_CODEX_LB_CHAIN_CHECK: '0', SKS_SKIP_CODEX_LB_LAUNCH_ENV: '1' },
|
|
14
|
-
timeoutMs: 20_000,
|
|
15
|
-
maxOutputBytes: 256 * 1024
|
|
16
|
-
});
|
|
17
|
-
return {
|
|
18
|
-
home,
|
|
19
|
-
result,
|
|
20
|
-
json: parseJson(result.stdout),
|
|
21
|
-
configPath: path.join(home, '.codex', 'config.toml'),
|
|
22
|
-
envPath: path.join(home, '.codex', 'sks-codex-lb.env')
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
{
|
|
26
|
-
const row = await runSetup('plan', ['--plan', '--no-env-file', '--no-keychain', '--no-launchctl', '--shell-profile', 'skip']);
|
|
27
|
-
results.push({
|
|
28
|
-
name: 'plan_writes_nothing_and_reports_process_only',
|
|
29
|
-
ok: row.result.code === 0
|
|
30
|
-
&& row.json.writes === false
|
|
31
|
-
&& row.json.persistence?.effective_mode === 'process_only_ephemeral'
|
|
32
|
-
&& !(await exists(row.configPath))
|
|
33
|
-
&& !(await exists(row.envPath))
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
{
|
|
37
|
-
const row = await runSetup('requires-yes', ['--no-env-file', '--no-keychain', '--no-launchctl', '--shell-profile', 'skip']);
|
|
38
|
-
results.push({
|
|
39
|
-
name: 'process_only_requires_yes',
|
|
40
|
-
ok: row.result.code === 1 && row.json.status === 'process_only_requires_yes' && row.json.persistence?.warning === 'process_only_ephemeral'
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
{
|
|
44
|
-
const row = await runSetup('process-only', ['--yes', '--no-env-file', '--no-keychain', '--no-launchctl', '--shell-profile', 'skip']);
|
|
45
|
-
results.push({
|
|
46
|
-
name: 'process_only_warns_and_writes_no_env',
|
|
47
|
-
ok: row.result.code === 0
|
|
48
|
-
&& row.json.persistence?.effective_mode === 'process_only_ephemeral'
|
|
49
|
-
&& row.json.persistence?.durable === false
|
|
50
|
-
&& row.json.persistence?.warnings?.includes('next_shell_requires_setup_or_env')
|
|
51
|
-
&& !(await exists(row.envPath))
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
{
|
|
55
|
-
const row = await runSetup('durable-env', ['--yes', '--write-env-file', '--no-keychain', '--no-launchctl']);
|
|
56
|
-
const envText = await readText(row.envPath, '');
|
|
57
|
-
results.push({
|
|
58
|
-
name: 'durable_env_file_mode',
|
|
59
|
-
ok: row.result.code === 0
|
|
60
|
-
&& row.json.persistence?.applied_modes?.includes('durable_env_file')
|
|
61
|
-
&& row.json.persistence?.durable === true
|
|
62
|
-
&& /CODEX_LB_API_KEY/.test(envText)
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
{
|
|
66
|
-
const row = await runSetup('action-report', ['--yes', '--write-env-file', '--no-keychain', '--no-launchctl', '--shell-profile', 'skip']);
|
|
67
|
-
const actions = row.json.applied_actions?.map((action) => action.type) || [];
|
|
68
|
-
results.push({
|
|
69
|
-
name: 'applied_actions_match_actual_choices',
|
|
70
|
-
ok: row.result.code === 0
|
|
71
|
-
&& actions.includes('write_env_file')
|
|
72
|
-
&& !actions.includes('store_keychain')
|
|
73
|
-
&& !actions.includes('sync_launchctl')
|
|
74
|
-
&& !actions.includes('install_shell_profile_snippet')
|
|
75
|
-
&& row.json.drift?.length === 0
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
const secretLeaked = /sk-clb-test/.test(results.map((row) => JSON.stringify(row)).join('\n'));
|
|
79
|
-
const ok = results.every((row) => row.ok) && !secretLeaked;
|
|
80
|
-
console.log(JSON.stringify({
|
|
81
|
-
schema: 'sks.codex-lb-persistence-truth-check.v1',
|
|
82
|
-
ok,
|
|
83
|
-
results,
|
|
84
|
-
secret_leaked: secretLeaked
|
|
85
|
-
}, null, 2));
|
|
86
|
-
if (!ok)
|
|
87
|
-
process.exitCode = 1;
|
|
88
|
-
function parseJson(text) {
|
|
89
|
-
try {
|
|
90
|
-
return JSON.parse(text);
|
|
91
|
-
}
|
|
92
|
-
catch {
|
|
93
|
-
return {};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=codex-lb-persistence-truth-check.js.map
|
|
@@ -1,91 +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 { runProcess } from '../core/fsx.js';
|
|
7
|
-
const home = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-codex-lb-fixture-home-'));
|
|
8
|
-
const entry = path.resolve('dist/bin/sks.js');
|
|
9
|
-
const status = await runProcess(process.execPath, [entry, 'codex-lb', 'status', '--json'], {
|
|
10
|
-
env: { ...process.env, HOME: home, CI: 'true' },
|
|
11
|
-
timeoutMs: 15_000,
|
|
12
|
-
maxOutputBytes: 128 * 1024
|
|
13
|
-
});
|
|
14
|
-
const setup = await runProcess(process.execPath, [entry, 'codex-lb', 'setup', '--host', 'lb.example.test', '--api-key-stdin', '--yes', '--json'], {
|
|
15
|
-
input: 'sk-fixture-secret\n',
|
|
16
|
-
env: { ...process.env, HOME: home, CI: 'true', SKS_CODEX_LB_CHAIN_CHECK: '0', SKS_SKIP_CODEX_LB_LAUNCH_ENV: '1' },
|
|
17
|
-
timeoutMs: 15_000,
|
|
18
|
-
maxOutputBytes: 128 * 1024
|
|
19
|
-
});
|
|
20
|
-
const combined = `${status.stdout}\n${status.stderr}\n${setup.stdout}\n${setup.stderr}`;
|
|
21
|
-
const leaks = [];
|
|
22
|
-
if (/Missing environment variable/i.test(combined))
|
|
23
|
-
leaks.push('raw_missing_env_message');
|
|
24
|
-
if (/sk-fixture-secret/.test(combined))
|
|
25
|
-
leaks.push('api_key_leak');
|
|
26
|
-
let statusJson = {};
|
|
27
|
-
let setupJson = {};
|
|
28
|
-
try {
|
|
29
|
-
statusJson = JSON.parse(status.stdout);
|
|
30
|
-
}
|
|
31
|
-
catch { }
|
|
32
|
-
try {
|
|
33
|
-
setupJson = JSON.parse(setup.stdout);
|
|
34
|
-
}
|
|
35
|
-
catch { }
|
|
36
|
-
const envPath = path.join(home, '.codex', 'sks-codex-lb.env');
|
|
37
|
-
const envStat = await fs.stat(envPath).catch(() => null);
|
|
38
|
-
const mode = envStat ? (envStat.mode & 0o777).toString(8) : null;
|
|
39
|
-
const ok = status.code === 0
|
|
40
|
-
&& setup.code === 0
|
|
41
|
-
&& statusJson.setup_needed === true
|
|
42
|
-
&& setupJson.ok === true
|
|
43
|
-
&& setupJson.api_key?.redacted === true
|
|
44
|
-
&& mode === '600'
|
|
45
|
-
&& leaks.length === 0;
|
|
46
|
-
console.log(JSON.stringify({
|
|
47
|
-
schema: 'sks.codex-lb-setup-fixture-check.v1',
|
|
48
|
-
ok,
|
|
49
|
-
home,
|
|
50
|
-
status_code: status.code,
|
|
51
|
-
setup_code: setup.code,
|
|
52
|
-
setup_needed: statusJson.setup_needed === true,
|
|
53
|
-
configured: setupJson.ok === true,
|
|
54
|
-
env_mode: mode,
|
|
55
|
-
leaks
|
|
56
|
-
}, null, 2));
|
|
57
|
-
if (!ok && leaks.length)
|
|
58
|
-
await recordCodexLbWrongness(leaks);
|
|
59
|
-
if (!ok)
|
|
60
|
-
process.exitCode = 1;
|
|
61
|
-
async function recordCodexLbWrongness(leaks) {
|
|
62
|
-
const { addWrongnessRecord } = await import('../core/triwiki-wrongness/wrongness-ledger.js');
|
|
63
|
-
await addWrongnessRecord(process.cwd(), {
|
|
64
|
-
route: '$CodexLB',
|
|
65
|
-
wrongness_kind: 'codex_lb_missing_env_raw_message',
|
|
66
|
-
severity: 'high',
|
|
67
|
-
claim: { text: `codex-lb fixture exposed forbidden output: ${leaks.join(', ')}` },
|
|
68
|
-
detected_by: {
|
|
69
|
-
source: 'codex_lb_setup_fixture',
|
|
70
|
-
command: 'npm run codex-lb:setup-fixture',
|
|
71
|
-
artifact: 'dist/scripts/codex-lb-setup-fixture-check.js',
|
|
72
|
-
detail: leaks.join(', ')
|
|
73
|
-
},
|
|
74
|
-
root_cause: {
|
|
75
|
-
category: 'route_policy_gap',
|
|
76
|
-
explanation: 'codex-lb setup/status must convert missing key states into structured setup guidance without secret leakage.'
|
|
77
|
-
},
|
|
78
|
-
corrective_action: {
|
|
79
|
-
summary: 'Repair codex-lb env loading, setup output, or redaction before release.',
|
|
80
|
-
required_evidence: ['npm run codex-lb:setup-fixture'],
|
|
81
|
-
patch_status: 'pending'
|
|
82
|
-
},
|
|
83
|
-
avoidance_rule: {
|
|
84
|
-
text: 'Do not print raw CODEX_LB_API_KEY missing messages; use setup wizard guidance and redaction.',
|
|
85
|
-
applies_to: ['codex-lb', 'release'],
|
|
86
|
-
severity: 'high'
|
|
87
|
-
},
|
|
88
|
-
links: { tests: ['npm run codex-lb:setup-fixture'], files: ['dist/scripts/codex-lb-setup-fixture-check.js'] }
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=codex-lb-setup-fixture-check.js.map
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fsp from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { runProcess, exists, readText } from '../core/fsx.js';
|
|
7
|
-
const entry = './dist/bin/sks.js';
|
|
8
|
-
const results = [];
|
|
9
|
-
async function runSetup(name, args, input = 'sk-clb-test\n') {
|
|
10
|
-
const home = await fsp.mkdtemp(path.join(os.tmpdir(), `sks-lb-truth-${name}-`));
|
|
11
|
-
const result = await runProcess(process.execPath, [entry, 'codex-lb', 'setup', '--host', 'lb.example.test', '--api-key-stdin', '--yes', '--json', ...args], {
|
|
12
|
-
input,
|
|
13
|
-
env: { ...process.env, HOME: home, CI: 'true', SKS_CODEX_LB_CHAIN_CHECK: '0', SKS_SKIP_CODEX_LB_LAUNCH_ENV: '1' },
|
|
14
|
-
timeoutMs: 20_000,
|
|
15
|
-
maxOutputBytes: 256 * 1024
|
|
16
|
-
});
|
|
17
|
-
let json = {};
|
|
18
|
-
try {
|
|
19
|
-
json = JSON.parse(result.stdout);
|
|
20
|
-
}
|
|
21
|
-
catch { }
|
|
22
|
-
return {
|
|
23
|
-
home,
|
|
24
|
-
code: result.code,
|
|
25
|
-
stdout: result.stdout,
|
|
26
|
-
stderr: result.stderr,
|
|
27
|
-
json,
|
|
28
|
-
configPath: path.join(home, '.codex', 'config.toml'),
|
|
29
|
-
envPath: path.join(home, '.codex', 'sks-codex-lb.env')
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
{
|
|
33
|
-
const row = await runSetup('plan', ['--plan']);
|
|
34
|
-
results.push({
|
|
35
|
-
name: 'plan_writes_nothing',
|
|
36
|
-
ok: row.code === 0 && row.json.writes === false && !(await exists(row.configPath)) && !(await exists(row.envPath))
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
{
|
|
40
|
-
const row = await runSetup('no-default', ['--no-default-provider']);
|
|
41
|
-
const config = await readText(row.configPath, '');
|
|
42
|
-
results.push({
|
|
43
|
-
name: 'no_default_provider',
|
|
44
|
-
ok: row.code === 0 && row.json.ok === true && config.includes('[model_providers.codex-lb]') && !/^\s*model_provider\s*=\s*"codex-lb"/m.test(config)
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
{
|
|
48
|
-
const row = await runSetup('no-env', ['--no-env-file']);
|
|
49
|
-
results.push({
|
|
50
|
-
name: 'no_env_file',
|
|
51
|
-
ok: row.code === 0 && row.json.ok === true && !(await exists(row.envPath))
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
{
|
|
55
|
-
const row = await runSetup('shell-skip', ['--shell-profile', 'skip']);
|
|
56
|
-
const touched = ['.zshrc', '.bashrc', '.config/fish/config.fish'];
|
|
57
|
-
results.push({
|
|
58
|
-
name: 'shell_profile_skip',
|
|
59
|
-
ok: row.code === 0 && touched.every((file) => !row.json.applied_actions?.some((action) => action.type === 'install_shell_profile_snippet') && !row.stdout.includes(file))
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
{
|
|
63
|
-
const row = await runSetup('report', ['--no-keychain', '--no-launchctl']);
|
|
64
|
-
const actions = row.json.applied_actions?.map((action) => action.type) || [];
|
|
65
|
-
results.push({
|
|
66
|
-
name: 'action_report_matches_choices',
|
|
67
|
-
ok: row.code === 0
|
|
68
|
-
&& actions.includes('write_config_provider')
|
|
69
|
-
&& actions.includes('write_env_file')
|
|
70
|
-
&& !actions.includes('store_keychain')
|
|
71
|
-
&& !actions.includes('sync_launchctl')
|
|
72
|
-
&& row.json.drift?.length === 0
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
const text = results.map((row) => `${row.name}:${row.ok}`).join('\n');
|
|
76
|
-
const ok = results.every((row) => row.ok) && !/sk-clb-test/.test(text);
|
|
77
|
-
console.log(JSON.stringify({
|
|
78
|
-
schema: 'sks.codex-lb-setup-truthfulness-check.v1',
|
|
79
|
-
ok,
|
|
80
|
-
results
|
|
81
|
-
}, null, 2));
|
|
82
|
-
if (!ok)
|
|
83
|
-
process.exitCode = 1;
|
|
84
|
-
//# sourceMappingURL=codex-lb-setup-truthfulness-check.js.map
|
|
@@ -1,24 +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 { root } from './lib/ensure-dist-fresh.js';
|
|
6
|
-
const files = [
|
|
7
|
-
'src/core/codex/codex-project-config-policy.ts',
|
|
8
|
-
'src/core/codex/codex-cli-syntax-builder.ts',
|
|
9
|
-
'src/core/agents/agent-runner-codex-exec.ts',
|
|
10
|
-
'src/core/agents/codex-exec-worker-adapter.ts'
|
|
11
|
-
];
|
|
12
|
-
const issues = [];
|
|
13
|
-
for (const rel of files) {
|
|
14
|
-
const text = await fs.readFile(path.join(root, rel), 'utf8');
|
|
15
|
-
if (/\$\{profileName\}\.config\.toml|selected_profile_table_moved_to_profile_config/.test(text))
|
|
16
|
-
issues.push(`${rel}:legacy_profile_config_file_consumer`);
|
|
17
|
-
if (/codex_permission_profile[^]*--profile/.test(text))
|
|
18
|
-
issues.push(`${rel}:permission_profile_confused_with_config_profile`);
|
|
19
|
-
}
|
|
20
|
-
const ok = issues.length === 0;
|
|
21
|
-
emit({ schema: 'sks.codex-legacy-profile-consumers-removed-check.v1', ok, files, issues });
|
|
22
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
23
|
-
process.exitCode = 1; }
|
|
24
|
-
//# sourceMappingURL=codex-legacy-profile-consumers-removed-check.js.map
|
|
@@ -1,17 +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/codex/managed-proxy-env.js');
|
|
5
|
-
const env = {
|
|
6
|
-
HTTPS_PROXY: 'http://user:secret@example.test:8080',
|
|
7
|
-
NO_PROXY: 'localhost,127.0.0.1'
|
|
8
|
-
};
|
|
9
|
-
const childEnv = mod.managedProxyEnvForChild(env);
|
|
10
|
-
const report = mod.detectManagedProxyEnv(env);
|
|
11
|
-
assertGate(report.ok === true, 'managed proxy env report must be ok', report);
|
|
12
|
-
assertGate(report.keys_present.includes('HTTPS_PROXY'), 'managed proxy env must detect HTTPS_PROXY', report);
|
|
13
|
-
assertGate(childEnv.HTTPS_PROXY.includes('secret'), 'child env keeps the real proxy value for process propagation', report);
|
|
14
|
-
assertGate(!JSON.stringify(report).includes('secret'), 'managed proxy env report must not persist raw proxy secret', report);
|
|
15
|
-
assertGate(!report.redacted.HTTPS_PROXY.includes('secret'), 'redacted report must not expose proxy password', report);
|
|
16
|
-
emitGate('codex:managed-proxy-env', { keys: report.keys_present });
|
|
17
|
-
//# sourceMappingURL=codex-managed-proxy-env-check.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { pathToFileURL } from 'node:url';
|
|
6
|
-
const root = process.cwd();
|
|
7
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist/core/codex-exec-output-schema.js')));
|
|
8
|
-
const availability = await mod.detectCodexExecResumeOutputSchema({
|
|
9
|
-
codexBin: process.execPath,
|
|
10
|
-
versionText: 'codex-cli 0.133.0',
|
|
11
|
-
resumeHelpText: 'Usage: codex exec resume [OPTIONS]\n --output-schema <FILE>\n -o, --output-last-message <FILE>'
|
|
12
|
-
});
|
|
13
|
-
assert.equal(availability.output_schema_supported, true);
|
|
14
|
-
assert.equal(availability.status, 'available');
|
|
15
|
-
const schemaPath = path.join(root, 'schemas/codex/image-ux-issue-ledger.schema.json');
|
|
16
|
-
const args = await mod.buildCodexExecResumeOutputSchemaArgs({
|
|
17
|
-
sessionId: 'fixture-session-123',
|
|
18
|
-
prompt: 'return fixture json',
|
|
19
|
-
outputSchemaPath: schemaPath,
|
|
20
|
-
outputFile: path.join(root, '.sneakoscope/tmp/codex-output-schema-fixture.json')
|
|
21
|
-
});
|
|
22
|
-
assert.ok(args.includes('--output-schema'));
|
|
23
|
-
assert.ok(args.includes(schemaPath));
|
|
24
|
-
console.log(JSON.stringify({ schema: 'sks.codex-output-schema-fixture.v1', ok: true, args }, null, 2));
|
|
25
|
-
//# sourceMappingURL=codex-output-schema-fixture-check.js.map
|
|
@@ -1,36 +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', 'codex', 'codex-permission-profiles.js')).href);
|
|
11
|
-
const report = await mod.inventoryCodexPermissionProfiles(root, { writeReport: true });
|
|
12
|
-
const names = new Set(report.sks_profiles.map((profile) => profile.name));
|
|
13
|
-
const deprecatedPolicy = `${'on'}-failure`;
|
|
14
|
-
const deprecatedProfiles = report.sks_profiles.filter((profile) => profile.approval_policy === deprecatedPolicy).map((profile) => profile.name);
|
|
15
|
-
const productionFiles = [
|
|
16
|
-
'src/core/codex/codex-permission-profiles.ts',
|
|
17
|
-
'src/core/permission-gates.ts',
|
|
18
|
-
'package.json'
|
|
19
|
-
];
|
|
20
|
-
const deprecatedMatches = [];
|
|
21
|
-
for (const rel of productionFiles) {
|
|
22
|
-
const file = path.join(root, rel);
|
|
23
|
-
const text = await fs.readFile(file, 'utf8').catch(() => '');
|
|
24
|
-
if (text.includes(deprecatedPolicy))
|
|
25
|
-
deprecatedMatches.push(rel);
|
|
26
|
-
}
|
|
27
|
-
const ok = ['sks-safe', 'sks-fast', 'sks-mad', 'sks-mad-target-write', 'sks-mad-system'].every((name) => names.has(name))
|
|
28
|
-
&& report.codex_config_profile_field === 'codex_config_profile'
|
|
29
|
-
&& report.codex_permission_profile_field === 'codex_permission_profile'
|
|
30
|
-
&& deprecatedProfiles.length === 0
|
|
31
|
-
&& deprecatedMatches.length === 0;
|
|
32
|
-
emit({ schema: 'sks.codex-permission-profiles-check.v1', ok, report, deprecated_profiles: deprecatedProfiles, deprecated_matches: deprecatedMatches });
|
|
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.codex-permission-profiles-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
|
|
36
|
-
//# sourceMappingURL=codex-permission-profiles-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readText } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const source = readText('src/core/codex/codex-0-137-compat.ts');
|
|
5
|
-
assertGate(source.includes("run(['plugin', 'list', '--json'])"), '0.137 evidence must run codex plugin list --json');
|
|
6
|
-
assertGate(source.includes('looksLikeJson'), '0.137 plugin list JSON parser missing');
|
|
7
|
-
emitGate('codex:plugin-list-json', { detector: 'codex plugin list --json' });
|
|
8
|
-
//# sourceMappingURL=codex-plugin-list-json-check.js.map
|
|
@@ -1,13 +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/agents/agent-runner-codex-exec.js');
|
|
5
|
-
const agent = { id: 'agent-profile-fixture', session_id: 'session-01', persona_id: 'verifier' };
|
|
6
|
-
const withProfile = mod.buildCodexExecAgentArgs(agent, 'fixture prompt', { profile: 'sks-mad-high', resultFile: 'result.json' }).args;
|
|
7
|
-
const withoutProfile = mod.buildCodexExecAgentArgs(agent, 'fixture prompt', { resultFile: 'result.json' }).args;
|
|
8
|
-
assertGate(withProfile.includes('--profile'), 'codex exec agent args must include --profile when requested', { withProfile });
|
|
9
|
-
assertGate(withProfile.includes('sks-mad-high'), 'codex exec agent args must include requested profile value', { withProfile });
|
|
10
|
-
assertGate(!withProfile.includes('--ignore-user-config'), 'profile runs must not ignore user config because profile v2 lives in user config', { withProfile });
|
|
11
|
-
assertGate(withoutProfile.includes('--ignore-user-config'), 'non-profile dry fixture should keep hermetic ignore-user-config behavior', { withoutProfile });
|
|
12
|
-
emitGate('codex:profile-primary', { profile_arg_index: withProfile.indexOf('--profile') });
|
|
13
|
-
//# sourceMappingURL=codex-profile-primary-check.js.map
|
|
@@ -1,51 +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-config-splitter-'));
|
|
12
|
-
const codexHome = path.join(fixture, 'home', '.codex');
|
|
13
|
-
const deprecatedPolicy = `${'on'}-failure`;
|
|
14
|
-
await fs.mkdir(path.join(fixture, '.codex'), { recursive: true });
|
|
15
|
-
await fs.writeFile(path.join(fixture, '.codex', 'config.toml'), [
|
|
16
|
-
'# project comment',
|
|
17
|
-
'profile = "sks-mad-high"',
|
|
18
|
-
`approval_policy = "${deprecatedPolicy}"`,
|
|
19
|
-
'sandbox_mode = "workspace-write"',
|
|
20
|
-
'instructions = """',
|
|
21
|
-
'[not.a.table]',
|
|
22
|
-
'keep this text',
|
|
23
|
-
'"""',
|
|
24
|
-
'project_inline = { keep = true, value = "[literal]" }',
|
|
25
|
-
'',
|
|
26
|
-
'[profiles.sks-mad-high]',
|
|
27
|
-
'model_reasoning_effort = "high"',
|
|
28
|
-
'',
|
|
29
|
-
'[model_providers.codex-lb]',
|
|
30
|
-
'base_url = "https://lb.example.test"',
|
|
31
|
-
''
|
|
32
|
-
].join('\n'));
|
|
33
|
-
const mod = await import(pathToFileURL(path.join(repoRoot, 'dist', 'core', 'codex', 'codex-project-config-policy.js')).href);
|
|
34
|
-
const report = await mod.splitCodexProjectConfigPolicy(fixture, { apply: true, codexHome });
|
|
35
|
-
const project = await fs.readFile(path.join(fixture, '.codex', 'config.toml'), 'utf8');
|
|
36
|
-
const user = await fs.readFile(path.join(codexHome, 'config.toml'), 'utf8');
|
|
37
|
-
const ok = report.ok === true
|
|
38
|
-
&& !/^profile\s*=/m.test(project)
|
|
39
|
-
&& !project.includes(deprecatedPolicy)
|
|
40
|
-
&& /approval_policy = "on-request"/.test(project)
|
|
41
|
-
&& /project_inline = \{ keep = true/.test(project)
|
|
42
|
-
&& /\[not\.a\.table\]/.test(project)
|
|
43
|
-
&& /^\[model_providers\.codex-lb\]/m.test(user);
|
|
44
|
-
console.log(JSON.stringify({ schema: 'sks.codex-project-config-policy-splitter-check.v1', ok, report }, null, 2));
|
|
45
|
-
if (!ok)
|
|
46
|
-
process.exitCode = 1;
|
|
47
|
-
function fail(blocker, detail) {
|
|
48
|
-
console.log(JSON.stringify({ schema: 'sks.codex-project-config-policy-splitter-check.v1', ok: false, blocker, detail }, null, 2));
|
|
49
|
-
process.exit(1);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=codex-project-config-policy-splitter-check.js.map
|
|
@@ -1,17 +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', 'codex', 'codex-resume-inventory.js')).href);
|
|
10
|
-
const okReport = mod.buildCodexResumeInventory({ cwd: root, workspace: root, root, execSessions: [{ id: 'exec-1', non_interactive: true }] });
|
|
11
|
-
const mismatch = mod.buildCodexResumeInventory({ cwd: path.join(root, 'src'), workspace: root, root, execSessions: [{ id: 'exec-2', non_interactive: true }] });
|
|
12
|
-
const ok = okReport.non_interactive_exec_session_count === 1 && mismatch.resume_cwd_mismatch === true && mismatch.blockers.includes('resume_cwd_mismatch');
|
|
13
|
-
emit({ schema: 'sks.codex-resume-cwd-truth-check.v1', ok, ok_report: okReport, mismatch_report: mismatch });
|
|
14
|
-
function emit(report) { console.log(JSON.stringify(report, null, 2)); if (!report.ok)
|
|
15
|
-
process.exitCode = 1; }
|
|
16
|
-
function fail(blocker, detail) { emit({ schema: 'sks.codex-resume-cwd-truth-check.v1', ok: false, blockers: [blocker], detail }); process.exit(1); }
|
|
17
|
-
//# sourceMappingURL=codex-resume-cwd-truth-check.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, packageScripts, readText, runFakeCodexSdkTaskFixture } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const scripts = packageScripts();
|
|
5
|
-
const required = [
|
|
6
|
-
'codex-sdk:dfix-pipeline',
|
|
7
|
-
'codex-sdk:qa-pipeline',
|
|
8
|
-
'codex-sdk:research-pipeline',
|
|
9
|
-
'codex-sdk:team-naruto-agent-pipeline',
|
|
10
|
-
'codex-sdk:release-review-pipeline',
|
|
11
|
-
'codex-sdk:ux-ppt-review-pipeline',
|
|
12
|
-
'codex-sdk:core-skill-pipeline'
|
|
13
|
-
];
|
|
14
|
-
for (const name of required)
|
|
15
|
-
assertGate(Boolean(scripts[name]), `required pipeline gate missing: ${name}`);
|
|
16
|
-
const sources = {
|
|
17
|
-
team: readText('src/core/commands/team-command.ts'),
|
|
18
|
-
qa: readText('src/core/commands/qa-loop-command.ts'),
|
|
19
|
-
research: readText('src/core/commands/research-command.ts'),
|
|
20
|
-
naruto: readText('src/core/commands/naruto-command.ts'),
|
|
21
|
-
dfix: readText('src/core/commands/dfix-command.ts'),
|
|
22
|
-
coreSkill: readText('src/core/skills/core-skill-types.ts')
|
|
23
|
-
};
|
|
24
|
-
assertGate(sources.team.includes("mock ? 'fake' : 'codex-sdk'"), 'Team must route native agents through codex-sdk');
|
|
25
|
-
assertGate(sources.qa.includes("mock ? 'fake' : 'codex-sdk'"), 'QA must route native agents through codex-sdk');
|
|
26
|
-
assertGate(sources.research.includes("mock ? 'fake' : 'codex-sdk'"), 'Research must route native agents through codex-sdk');
|
|
27
|
-
assertGate(sources.naruto.includes("backend: 'codex-sdk'"), 'Naruto defaults must name codex-sdk');
|
|
28
|
-
assertGate(sources.coreSkill.includes("'codex-sdk'"), 'Core skill backend type must include codex-sdk');
|
|
29
|
-
const fixture = await runFakeCodexSdkTaskFixture('all-pipelines');
|
|
30
|
-
assertGate(fixture.result.ok === true, 'all pipeline SDK fixture must pass', fixture.result);
|
|
31
|
-
emitGate('codex-sdk:all-pipelines', { scripts: required.length, sdk_thread_id: fixture.result.sdkThreadId });
|
|
32
|
-
//# sourceMappingURL=codex-sdk-all-pipelines-check.js.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs/promises';
|
|
4
|
-
import os from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
7
|
-
const mod = await importDist('core/agents/native-cli-worker.js');
|
|
8
|
-
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-codex-sdk-router-'));
|
|
9
|
-
const old = snapshotEnv();
|
|
10
|
-
process.env.NODE_ENV = 'test';
|
|
11
|
-
process.env.SKS_CODEX_SDK_FAKE = '1';
|
|
12
|
-
process.env.SKS_DISABLE_ROUTE_RECURSION = '1';
|
|
13
|
-
process.env.SKS_AGENT_WORKER = '1';
|
|
14
|
-
process.env.SKS_FAST_MODE = '1';
|
|
15
|
-
process.env.SKS_SERVICE_TIER = 'fast';
|
|
16
|
-
try {
|
|
17
|
-
const result = await mod.runNativeCliWorker({
|
|
18
|
-
intakeJson: {
|
|
19
|
-
mission_id: 'M-codex-sdk-router',
|
|
20
|
-
parent_mission_id: 'M-codex-sdk-router',
|
|
21
|
-
route: '$Agent',
|
|
22
|
-
backend: 'codex-sdk',
|
|
23
|
-
agent_root: root,
|
|
24
|
-
agent: { id: 'sdk-router-agent', session_id: 'sdk-router-session', slot_id: 'slot-001', generation_index: 1, persona_id: 'executor' },
|
|
25
|
-
slice: { id: 'sdk-router-task', write_paths: [], description: 'exercise Codex SDK backend router' },
|
|
26
|
-
worker_artifact_dir: 'sessions/slot-001/gen-1/worker',
|
|
27
|
-
result_path: 'sessions/slot-001/gen-1/worker/worker-result.json',
|
|
28
|
-
heartbeat_path: 'sessions/slot-001/gen-1/worker/worker-heartbeat.jsonl',
|
|
29
|
-
patch_envelope_path: 'sessions/slot-001/gen-1/worker/worker-patch-envelope.json',
|
|
30
|
-
fast_mode: true,
|
|
31
|
-
service_tier: 'fast'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const workerDir = path.join(root, 'sessions', 'slot-001', 'gen-1', 'worker');
|
|
35
|
-
const router = JSON.parse(await fs.readFile(path.join(workerDir, 'worker-backend-router-report.json'), 'utf8'));
|
|
36
|
-
const proof = JSON.parse(await fs.readFile(path.join(workerDir, 'codex-control-proof.json'), 'utf8'));
|
|
37
|
-
assertGate(result.status === 'done', 'Codex SDK worker result must be done', result);
|
|
38
|
-
assertGate(router.selected_backend === 'codex-sdk', 'router selected backend mismatch', router);
|
|
39
|
-
assertGate(router.sdk_thread_id, 'router must record sdk_thread_id', router);
|
|
40
|
-
assertGate(router.stream_event_count >= 1, 'router must record SDK event stream count', router);
|
|
41
|
-
assertGate(proof.output_schema_id === 'sks.agent-worker-result.v1', 'proof output schema mismatch', proof);
|
|
42
|
-
emitGate('codex-sdk:backend-router', { backend: router.selected_backend, stream_event_count: router.stream_event_count });
|
|
43
|
-
}
|
|
44
|
-
finally {
|
|
45
|
-
restoreEnv(old);
|
|
46
|
-
}
|
|
47
|
-
function snapshotEnv() {
|
|
48
|
-
return {
|
|
49
|
-
NODE_ENV: process.env.NODE_ENV,
|
|
50
|
-
SKS_CODEX_SDK_FAKE: process.env.SKS_CODEX_SDK_FAKE,
|
|
51
|
-
SKS_DISABLE_ROUTE_RECURSION: process.env.SKS_DISABLE_ROUTE_RECURSION,
|
|
52
|
-
SKS_AGENT_WORKER: process.env.SKS_AGENT_WORKER,
|
|
53
|
-
SKS_FAST_MODE: process.env.SKS_FAST_MODE,
|
|
54
|
-
SKS_SERVICE_TIER: process.env.SKS_SERVICE_TIER
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function restoreEnv(old) {
|
|
58
|
-
for (const [key, value] of Object.entries(old)) {
|
|
59
|
-
if (value === undefined)
|
|
60
|
-
delete process.env[key];
|
|
61
|
-
else
|
|
62
|
-
process.env[key] = value;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=codex-sdk-backend-router-check.js.map
|
|
@@ -1,11 +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/codex-control/codex-sdk-capability.js');
|
|
5
|
-
const capability = await mod.detectCodexSdkCapability();
|
|
6
|
-
assertGate(capability.ok, 'Codex SDK capability must be available', capability);
|
|
7
|
-
assertGate(capability.package_name === '@openai/codex-sdk', 'Codex SDK package name mismatch', capability);
|
|
8
|
-
assertGate(capability.dynamic_import_ok === true, 'Codex SDK dynamic import failed', capability);
|
|
9
|
-
assertGate(String(capability.package_version || '').length > 0, 'Codex SDK package version missing', capability);
|
|
10
|
-
emitGate('codex-sdk:capability', { package_version: capability.package_version, node_version: capability.node_version });
|
|
11
|
-
//# sourceMappingURL=codex-sdk-capability-check.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, packageScripts, readText } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const scripts = packageScripts();
|
|
5
|
-
assertGate(Boolean(scripts['core-skill:route-runtime-integration']), 'Core skill route integration gate missing');
|
|
6
|
-
assertGate(readText('src/core/skills/core-skill-types.ts').includes("'codex-sdk'"), 'Core skill backend type must include codex-sdk');
|
|
7
|
-
assertGate(readText('src/core/agents/agent-roster.ts').includes("backend === 'codex-sdk'"), 'Agent roster must treat codex-sdk as heavy backend');
|
|
8
|
-
emitGate('codex-sdk:core-skill-pipeline', { core_skill_backend: 'codex-sdk' });
|
|
9
|
-
//# sourceMappingURL=codex-sdk-core-skill-pipeline-check.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readText } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const dfix = readText('src/core/commands/dfix-command.ts');
|
|
5
|
-
const patchSwarm = readText('src/scripts/dfix-patch-swarm-route-blackbox.ts');
|
|
6
|
-
assertGate(dfix.includes('DFIX') || dfix.includes('dfix'), 'DFix command source missing');
|
|
7
|
-
assertGate(patchSwarm.includes('dfix'), 'DFix patch swarm blackbox must exist');
|
|
8
|
-
emitGate('codex-sdk:dfix-pipeline', { source: 'dfix-command.ts' });
|
|
9
|
-
//# sourceMappingURL=codex-sdk-dfix-pipeline-check.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, runFakeCodexSdkTaskFixture } from './lib/codex-sdk-gate-lib.js';
|
|
4
|
-
const fixture = await runFakeCodexSdkTaskFixture('event-stream');
|
|
5
|
-
assertGate(fixture.events.length >= 1, 'SDK event ledger must contain events', fixture.events);
|
|
6
|
-
assertGate(fixture.proof.stream_event_count === fixture.result.streamEventCount, 'proof stream count mismatch', fixture.proof);
|
|
7
|
-
assertGate(fixture.proof.translated_event_count === fixture.events.length, 'translated event count mismatch', fixture.proof);
|
|
8
|
-
emitGate('codex-sdk:event-stream-ledger', { event_count: fixture.events.length, event_types: fixture.result.eventTypes });
|
|
9
|
-
//# sourceMappingURL=codex-sdk-event-stream-ledger-check.js.map
|