sneakoscope 2.0.14 → 2.0.16
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 +2 -1
- package/dist/commands/mad-db.js +5 -0
- package/dist/commands/zellij-slot-pane.js +3 -1
- package/dist/core/agents/agent-orchestrator.js +66 -3
- package/dist/core/agents/agent-plan.js +3 -2
- package/dist/core/agents/agent-scheduler.js +204 -86
- package/dist/core/agents/agent-schema.js +1 -1
- package/dist/core/agents/native-cli-session-swarm.js +199 -15
- package/dist/core/agents/native-cli-worker.js +85 -0
- package/dist/core/agents/parallel-runtime-proof.js +217 -0
- package/dist/core/codex-control/codex-task-runner.js +32 -4
- package/dist/core/codex-control/model-call-concurrency.js +106 -0
- package/dist/core/commands/basic-cli.js +1 -1
- package/dist/core/commands/command-suggestions.js +1 -1
- package/dist/core/commands/mad-db-command.js +106 -0
- package/dist/core/commands/mad-sks-command.js +50 -13
- package/dist/core/commands/naruto-command.js +128 -5
- package/dist/core/commands/research-command.js +13 -1
- package/dist/core/commands/team-command.js +23 -175
- package/dist/core/db-safety.js +55 -1
- package/dist/core/fsx.js +1 -1
- package/dist/core/git/git-worktree-capability.js +18 -0
- package/dist/core/git/git-worktree-manager.js +80 -0
- package/dist/core/git/git-worktree-pool.js +4 -0
- package/dist/core/mad-db/mad-db-capability.js +116 -0
- package/dist/core/mad-db/mad-db-ledger.js +31 -0
- package/dist/core/mad-db/mad-db-policy-resolver.js +48 -0
- package/dist/core/naruto/naruto-concurrency-governor.js +14 -1
- package/dist/core/pipeline-internals/runtime-core.js +74 -8
- package/dist/core/pipeline-internals/runtime-gates.js +44 -0
- package/dist/core/proof/route-proof-gate.js +5 -3
- package/dist/core/proof/route-proof-policy.js +9 -1
- package/dist/core/release/release-gate-affected-selector.js +113 -0
- package/dist/core/release/release-gate-batch-runner.js +67 -0
- package/dist/core/release/release-gate-dag.js +22 -3
- package/dist/core/release/release-gate-resource-governor.js +23 -11
- package/dist/core/research/implementation-blueprint-densifier.js +1 -1
- package/dist/core/research/implementation-blueprint-markdown.js +1 -1
- package/dist/core/research/implementation-blueprint.js +68 -7
- package/dist/core/research/research-final-reviewer.js +27 -1
- package/dist/core/research/research-handoff.js +69 -5
- package/dist/core/research/research-realistic-report.js +162 -0
- package/dist/core/research/research-repetition-detector.js +75 -0
- package/dist/core/research/research-report-quality.js +27 -5
- package/dist/core/research/research-stage-runner.js +40 -13
- package/dist/core/research/research-synthesis-prompt.js +52 -0
- package/dist/core/research/research-synthesis-writer.js +208 -0
- package/dist/core/research.js +60 -48
- package/dist/core/routes.js +23 -19
- package/dist/core/update/update-notice.js +120 -0
- package/dist/core/version.js +1 -1
- package/dist/core/zellij/zellij-dashboard-renderer.js +2 -0
- package/dist/core/zellij/zellij-slot-column-anchor.js +35 -1
- package/dist/core/zellij/zellij-slot-pane-renderer.js +57 -0
- package/dist/core/zellij/zellij-slot-telemetry.js +237 -0
- package/dist/scripts/release-gate-dag-runner.js +5 -0
- package/dist/scripts/release-speed-summary.js +27 -0
- package/package.json +76 -5
- package/schemas/agents/parallel-runtime-proof.schema.json +48 -0
- package/schemas/mad-db/mad-db-capability.schema.json +31 -0
- package/schemas/mad-db/mad-db-ledger.schema.json +14 -0
- package/schemas/research/implementation-blueprint.schema.json +6 -1
- package/schemas/research/research-final-review.schema.json +10 -0
- package/schemas/research/research-synthesis-output.schema.json +62 -0
- package/schemas/update/update-notice.schema.json +19 -0
- package/schemas/zellij/zellij-slot-telemetry.schema.json +89 -0
- package/dist/scripts/agent-ast-aware-work-graph-check.js +0 -25
- package/dist/scripts/agent-backfill-replenishment-check.js +0 -13
- package/dist/scripts/agent-backfill-route-blackbox.js +0 -5
- package/dist/scripts/agent-background-terminals-check.js +0 -16
- package/dist/scripts/agent-cleanup-command-ux-check.js +0 -12
- package/dist/scripts/agent-cleanup-executor-check.js +0 -53
- package/dist/scripts/agent-cleanup-executor-v2-check.js +0 -39
- package/dist/scripts/agent-cli-options-to-task-graph-check.js +0 -5
- package/dist/scripts/agent-codex-app-cockpit-check.js +0 -91
- package/dist/scripts/agent-codex-child-overlap-check.js +0 -21
- package/dist/scripts/agent-dynamic-cockpit-check.js +0 -10
- package/dist/scripts/agent-dynamic-pool-check.js +0 -13
- package/dist/scripts/agent-dynamic-pool-route-blackbox.js +0 -5
- package/dist/scripts/agent-fast-mode-default-check.js +0 -62
- package/dist/scripts/agent-fast-mode-worker-propagation-check.js +0 -7
- package/dist/scripts/agent-follow-up-work-schema-check.js +0 -80
- package/dist/scripts/agent-goal-mode-propagation-check.js +0 -9
- package/dist/scripts/agent-intelligent-work-graph-check.js +0 -25
- package/dist/scripts/agent-janitor-check.js +0 -76
- package/dist/scripts/agent-main-no-scout-check.js +0 -11
- package/dist/scripts/agent-model-authored-patch-envelope-check.js +0 -15
- package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
- package/dist/scripts/agent-native-cli-session-proof-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-10-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-20-check.js +0 -7
- package/dist/scripts/agent-native-cli-session-swarm-check.js +0 -7
- package/dist/scripts/agent-no-subagent-scaling-check.js +0 -7
- package/dist/scripts/agent-parallel-write-blackbox.js +0 -56
- package/dist/scripts/agent-parallel-write-kernel-check.js +0 -103
- package/dist/scripts/agent-patch-conflict-rebase-check.js +0 -198
- package/dist/scripts/agent-patch-envelope-extraction-check.js +0 -17
- package/dist/scripts/agent-patch-proof-check.js +0 -41
- package/dist/scripts/agent-patch-proof-runtime-check.js +0 -63
- package/dist/scripts/agent-patch-queue-runtime-check.js +0 -36
- package/dist/scripts/agent-patch-rollback-check.js +0 -38
- package/dist/scripts/agent-patch-rollback-dag-check.js +0 -14
- package/dist/scripts/agent-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-check.js +0 -10
- package/dist/scripts/agent-patch-swarm-runtime-truth-check.js +0 -76
- package/dist/scripts/agent-patch-transaction-journal-check.js +0 -57
- package/dist/scripts/agent-patch-verification-dag-check.js +0 -14
- package/dist/scripts/agent-proof-contract-reconciled-check.js +0 -5
- package/dist/scripts/agent-real-codex-dynamic-smoke-check.js +0 -166
- package/dist/scripts/agent-real-codex-dynamic-smoke-v2-check.js +0 -14
- package/dist/scripts/agent-real-codex-in-zellij-worker-pane-check.js +0 -229
- package/dist/scripts/agent-real-codex-parallel-workers-10-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-20-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-5-check.js +0 -5
- package/dist/scripts/agent-real-codex-parallel-workers-check.js +0 -5
- package/dist/scripts/agent-role-config-repair-check.js +0 -33
- package/dist/scripts/agent-rollback-command-check.js +0 -86
- package/dist/scripts/agent-route-truth-backfill-check.js +0 -5
- package/dist/scripts/agent-scheduler-proof-check.js +0 -13
- package/dist/scripts/agent-scheduler-proof-hardening-check.js +0 -22
- package/dist/scripts/agent-session-generation-check.js +0 -21
- package/dist/scripts/agent-slot-pane-binding-proof-check.js +0 -64
- package/dist/scripts/agent-source-intelligence-propagation-check.js +0 -9
- package/dist/scripts/agent-strategy-to-lease-wiring-check.js +0 -32
- package/dist/scripts/agent-strategy-to-patch-strict-check.js +0 -54
- package/dist/scripts/agent-task-graph-expansion-check.js +0 -14
- package/dist/scripts/agent-terminal-generations-check.js +0 -23
- package/dist/scripts/agent-visual-consistency-check.js +0 -9
- package/dist/scripts/agent-wiki-context-proof-check.js +0 -62
- package/dist/scripts/agent-worker-backend-router-check.js +0 -63
- package/dist/scripts/agent-worker-scout-limited-check.js +0 -17
- package/dist/scripts/agent-zellij-dynamic-backfill-panes-check.js +0 -34
- package/dist/scripts/agent-zellij-runtime-check.js +0 -84
- package/dist/scripts/all-feature-deep-completion-check.js +0 -31
- package/dist/scripts/appshots-capability-check.js +0 -18
- package/dist/scripts/appshots-evidence-check.js +0 -48
- package/dist/scripts/appshots-operator-policy-check.js +0 -25
- package/dist/scripts/appshots-privacy-safety-check.js +0 -48
- package/dist/scripts/appshots-source-intelligence-check.js +0 -53
- package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -87
- package/dist/scripts/appshots-triwiki-voxel-check.js +0 -46
- package/dist/scripts/architecture-guard-check.js +0 -55
- package/dist/scripts/changelog-check.js +0 -47
- package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
- package/dist/scripts/codex-0-134-official-compat-report.js +0 -110
- package/dist/scripts/codex-0-134-runner-truth-check.js +0 -66
- package/dist/scripts/codex-0-135-compat-check.js +0 -57
- package/dist/scripts/codex-0-136-compat-check.js +0 -30
- package/dist/scripts/codex-0-137-compat-check.js +0 -27
- package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -32
- package/dist/scripts/codex-app-provider-badge-check.js +0 -37
- package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
- package/dist/scripts/codex-app-ui-preservation-check.js +0 -96
- package/dist/scripts/codex-control-all-pipelines-check.js +0 -36
- package/dist/scripts/codex-control-capability-check.js +0 -10
- package/dist/scripts/codex-control-empty-result-retry-check.js +0 -43
- package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -10
- package/dist/scripts/codex-control-keepalive-no-cot-leak-check.js +0 -14
- package/dist/scripts/codex-control-no-legacy-fallback-check.js +0 -31
- package/dist/scripts/codex-control-side-effect-scope-check.js +0 -26
- package/dist/scripts/codex-control-stream-idle-watchdog-check.js +0 -18
- package/dist/scripts/codex-control-structured-output-check.js +0 -11
- package/dist/scripts/codex-control-thread-registry-check.js +0 -11
- package/dist/scripts/codex-control-tool-call-sequence-repair-check.js +0 -14
- package/dist/scripts/codex-environment-scoped-approvals-check.js +0 -10
- package/dist/scripts/codex-exec-output-schema-actual-syntax-check.js +0 -33
- package/dist/scripts/codex-fast-mode-profile-propagation-check.js +0 -12
- package/dist/scripts/codex-history-search-check.js +0 -19
- package/dist/scripts/codex-hook-semantic-check.js +0 -15
- package/dist/scripts/codex-hook-strict-subset-check.js +0 -61
- package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
- package/dist/scripts/codex-lb-persistence-truth-check.js +0 -96
- package/dist/scripts/codex-lb-setup-fixture-check.js +0 -91
- package/dist/scripts/codex-lb-setup-truthfulness-check.js +0 -84
- package/dist/scripts/codex-legacy-profile-consumers-removed-check.js +0 -24
- package/dist/scripts/codex-managed-proxy-env-check.js +0 -17
- package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
- package/dist/scripts/codex-permission-profiles-check.js +0 -36
- package/dist/scripts/codex-plugin-list-json-check.js +0 -8
- package/dist/scripts/codex-profile-primary-check.js +0 -13
- package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -51
- package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
- package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -32
- package/dist/scripts/codex-sdk-backend-router-check.js +0 -65
- package/dist/scripts/codex-sdk-capability-check.js +0 -11
- package/dist/scripts/codex-sdk-core-skill-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-dfix-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -9
- package/dist/scripts/codex-sdk-no-legacy-fallback-check.js +0 -33
- package/dist/scripts/codex-sdk-qa-pipeline-check.js +0 -8
- package/dist/scripts/codex-sdk-real-smoke-check.js +0 -39
- package/dist/scripts/codex-sdk-release-review-pipeline-check.js +0 -13
- package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -47
- package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -21
- package/dist/scripts/codex-sdk-structured-output-check.js +0 -10
- package/dist/scripts/codex-sdk-team-naruto-agent-pipeline-check.js +0 -12
- package/dist/scripts/codex-sdk-thread-registry-check.js +0 -11
- package/dist/scripts/codex-sdk-ux-ppt-review-pipeline-check.js +0 -9
- package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
- package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
- package/dist/scripts/codex-web-adapter-check.js +0 -12
- package/dist/scripts/computer-use-live-evidence-check.js +0 -55
- package/dist/scripts/computer-use-live-optional-check.js +0 -32
- package/dist/scripts/computer-use-policy-check.js +0 -69
- package/dist/scripts/computer-use-visual-route-fixture-check.js +0 -37
- package/dist/scripts/core-skill-card-schema-check.js +0 -61
- package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -54
- package/dist/scripts/core-skill-heldout-validation-check.js +0 -49
- package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -75
- package/dist/scripts/core-skill-patch-check.js +0 -79
- package/dist/scripts/core-skill-promotion-side-effect-ledger-check.js +0 -64
- package/dist/scripts/core-skill-rollout-scoring-check.js +0 -72
- package/dist/scripts/core-skill-route-runtime-integration-check.js +0 -49
- package/dist/scripts/dfix-fast-blackbox-check.js +0 -37
- package/dist/scripts/dfix-fast-kernel-check.js +0 -26
- package/dist/scripts/dfix-fixture-check.js +0 -6
- package/dist/scripts/dfix-parallel-write-blackbox.js +0 -48
- package/dist/scripts/dfix-patch-handoff-check.js +0 -13
- package/dist/scripts/dfix-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/dfix-performance-check.js +0 -15
- package/dist/scripts/dfix-verification-check.js +0 -9
- package/dist/scripts/dfix-verification-recommendation-check.js +0 -15
- package/dist/scripts/docs-truthfulness-check.js +0 -61
- package/dist/scripts/doctor-codex-doctor-parity-check.js +0 -17
- package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -64
- package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -39
- package/dist/scripts/evidence-fixture-check.js +0 -26
- package/dist/scripts/evidence-flagship-coverage-check.js +0 -55
- package/dist/scripts/fake-real-proof-policy-v2-check.js +0 -27
- package/dist/scripts/fake-vs-real-proof-policy-check.js +0 -14
- package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -42
- package/dist/scripts/flagship-proof-graph-v2-check.js +0 -48
- package/dist/scripts/flagship-proof-graph-v3-check.js +0 -67
- package/dist/scripts/flagship-proof-graph-v4-check.js +0 -61
- package/dist/scripts/git-precommit-fixture-check.js +0 -41
- package/dist/scripts/git-worktree-cache-performance-check.js +0 -25
- package/dist/scripts/git-worktree-capability-check.js +0 -27
- package/dist/scripts/git-worktree-checkpoint-check.js +0 -20
- package/dist/scripts/git-worktree-cleanup-check.js +0 -27
- package/dist/scripts/git-worktree-cross-rebase-check.js +0 -39
- package/dist/scripts/git-worktree-diff-envelope-check.js +0 -17
- package/dist/scripts/git-worktree-diff-export-check.js +0 -43
- package/dist/scripts/git-worktree-dirty-lock-check.js +0 -17
- package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -14
- package/dist/scripts/git-worktree-integration-primary-check.js +0 -24
- package/dist/scripts/git-worktree-integration-primary-runtime-check.js +0 -20
- package/dist/scripts/git-worktree-manager-check.js +0 -37
- package/dist/scripts/git-worktree-manifest-append-check.js +0 -18
- package/dist/scripts/git-worktree-merge-queue-check.js +0 -31
- package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
- package/dist/scripts/git-worktree-untracked-diff-check.js +0 -18
- package/dist/scripts/goal-mode-official-default-check.js +0 -12
- package/dist/scripts/gpt-final-arbiter-check.js +0 -63
- package/dist/scripts/gpt-final-arbiter-performance-check.js +0 -36
- package/dist/scripts/gpt-image-2-request-validator-check.js +0 -35
- package/dist/scripts/hooks-0.134-context-parity-check.js +0 -20
- package/dist/scripts/hooks-actual-parity-check.js +0 -17
- package/dist/scripts/hooks-actual-parity-v2-check.js +0 -21
- package/dist/scripts/hooks-latest-schema-check.js +0 -20
- package/dist/scripts/hooks-managed-install-fixture-check.js +0 -21
- package/dist/scripts/hooks-official-hash-oracle-check.js +0 -35
- package/dist/scripts/hooks-official-hash-parity-check.js +0 -17
- package/dist/scripts/hooks-subagent-events-check.js +0 -17
- package/dist/scripts/hooks-trust-state-check.js +0 -14
- package/dist/scripts/image-fidelity-fixture-check.js +0 -24
- package/dist/scripts/imagegen-capability-check.js +0 -30
- package/dist/scripts/imagegen-real-smoke-check.js +0 -155
- package/dist/scripts/install-update-preserves-config-check.js +0 -87
- package/dist/scripts/json-schema-recursive-check.js +0 -78
- package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
- package/dist/scripts/legacy-upgrade-matrix-check.js +0 -300
- package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +0 -21
- package/dist/scripts/local-collab-gpt-final-availability-check.js +0 -58
- package/dist/scripts/local-collab-no-local-only-final-check.js +0 -27
- package/dist/scripts/local-collab-policy-check.js +0 -17
- package/dist/scripts/local-collab-worktree-gpt-final-apply-policy-check.js +0 -63
- package/dist/scripts/local-llm-all-pipelines-check.js +0 -11
- package/dist/scripts/local-llm-cache-performance-check.js +0 -10
- package/dist/scripts/local-llm-capability-check.js +0 -14
- package/dist/scripts/local-llm-smoke-check.js +0 -23
- package/dist/scripts/local-llm-structured-output-check.js +0 -11
- package/dist/scripts/local-llm-throughput-check.js +0 -10
- package/dist/scripts/local-llm-tool-call-repair-check.js +0 -10
- package/dist/scripts/local-llm-warmup-check.js +0 -11
- package/dist/scripts/loop-blocker-check.js +0 -15
- package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -35
- package/dist/scripts/mad-sks-actual-executor-blackbox.js +0 -5
- package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +0 -92
- package/dist/scripts/mad-sks-audit-proof-check.js +0 -34
- package/dist/scripts/mad-sks-db-executor-check.js +0 -5
- package/dist/scripts/mad-sks-executor-proof-graph-check.js +0 -5
- package/dist/scripts/mad-sks-fast-mode-propagation-check.js +0 -24
- package/dist/scripts/mad-sks-file-write-executor-check.js +0 -5
- package/dist/scripts/mad-sks-immutable-harness-check.js +0 -36
- package/dist/scripts/mad-sks-no-harness-modification-check.js +0 -25
- package/dist/scripts/mad-sks-package-executor-check.js +0 -5
- package/dist/scripts/mad-sks-permission-model-check.js +0 -22
- package/dist/scripts/mad-sks-rollback-apply-check.js +0 -5
- package/dist/scripts/mad-sks-service-executor-check.js +0 -5
- package/dist/scripts/mad-sks-shell-executor-check.js +0 -5
- package/dist/scripts/mad-sks-write-guard-check.js +0 -28
- package/dist/scripts/mad-sks-zellij-default-pane-worker-check.js +0 -37
- package/dist/scripts/mad-sks-zellij-launch-check.js +0 -102
- package/dist/scripts/mcp-0-134-modernization-check.js +0 -55
- package/dist/scripts/mcp-readonly-concurrency-check.js +0 -17
- package/dist/scripts/mcp-readonly-runtime-scheduler-check.js +0 -20
- package/dist/scripts/mcp-tool-naming-parity-check.js +0 -16
- package/dist/scripts/memory-summary-rebuild-check.js +0 -22
- package/dist/scripts/mutation-callsite-coverage-check.js +0 -180
- package/dist/scripts/naruto-active-pool-check.js +0 -39
- package/dist/scripts/naruto-actual-worker-control-plane-check.js +0 -56
- package/dist/scripts/naruto-allocation-policy-check.js +0 -33
- package/dist/scripts/naruto-allocation-runtime-wiring-check.js +0 -92
- package/dist/scripts/naruto-concurrency-governor-check.js +0 -53
- package/dist/scripts/naruto-extreme-parallelism-check.js +0 -22
- package/dist/scripts/naruto-extreme-parallelism-real-check.js +0 -43
- package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
- package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
- package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
- package/dist/scripts/naruto-readonly-routing-check.js +0 -116
- package/dist/scripts/naruto-real-active-pool-check.js +0 -39
- package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -55
- package/dist/scripts/naruto-rebalance-policy-check.js +0 -41
- package/dist/scripts/naruto-role-distribution-check.js +0 -23
- package/dist/scripts/naruto-shadow-clone-swarm-check.js +0 -153
- package/dist/scripts/naruto-verification-pool-check.js +0 -36
- package/dist/scripts/naruto-work-graph-check.js +0 -24
- package/dist/scripts/naruto-worktree-coding-blackbox.js +0 -29
- package/dist/scripts/naruto-worktree-coding-check.js +0 -44
- package/dist/scripts/naruto-worktree-gpt-final-check.js +0 -45
- package/dist/scripts/naruto-worktree-zellij-ui-check.js +0 -28
- package/dist/scripts/naruto-zellij-dynamic-right-column-check.js +0 -48
- package/dist/scripts/naruto-zellij-massive-ui-check.js +0 -23
- package/dist/scripts/non-recursive-pipeline-check.js +0 -68
- package/dist/scripts/npm-publish-performance-check.js +0 -65
- package/dist/scripts/official-docs-compat-report.js +0 -304
- package/dist/scripts/packlist-performance-check.js +0 -83
- package/dist/scripts/parallel-verification-engine-check.js +0 -85
- package/dist/scripts/postinstall-safe-side-effects-check.js +0 -65
- package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
- package/dist/scripts/ppt-full-e2e-blackbox-check.js +0 -109
- package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
- package/dist/scripts/ppt-imagegen-blackbox-check.js +0 -46
- package/dist/scripts/ppt-imagegen-review-fixture-check.js +0 -6
- package/dist/scripts/ppt-issue-extraction-fixture-check.js +0 -7
- package/dist/scripts/ppt-no-mock-as-real-check.js +0 -8
- package/dist/scripts/ppt-no-text-fallback-check.js +0 -7
- package/dist/scripts/ppt-proof-trust-fixture-check.js +0 -10
- package/dist/scripts/ppt-real-export-adapter-check.js +0 -13
- package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -42
- package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -16
- package/dist/scripts/ppt-reexport-rereview-check.js +0 -19
- package/dist/scripts/ppt-slide-export-fixture-check.js +0 -7
- package/dist/scripts/prepublish-fast-check.js +0 -128
- package/dist/scripts/priority-full-closure-check.js +0 -12
- package/dist/scripts/product-design-auto-install-check.js +0 -119
- package/dist/scripts/product-design-plugin-routing-check.js +0 -101
- package/dist/scripts/prompt-placeholder-guard-check.js +0 -33
- package/dist/scripts/provider-badge-context-check.js +0 -26
- package/dist/scripts/provider-context-config-toml-check.js +0 -63
- package/dist/scripts/python-codex-sdk-all-pipelines-check.js +0 -47
- package/dist/scripts/python-codex-sdk-capability-check.js +0 -75
- package/dist/scripts/python-codex-sdk-sandbox-policy-check.js +0 -10
- package/dist/scripts/python-codex-sdk-stream-bridge-check.js +0 -12
- package/dist/scripts/python-tools-smoke-check.js +0 -71
- package/dist/scripts/qa-actual-route-backfill-check.js +0 -5
- package/dist/scripts/qa-backfill-route-blackbox.js +0 -5
- package/dist/scripts/qa-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/readme-architecture-imagegen-official-check.js +0 -448
- package/dist/scripts/release-cache-glob-hashing-check.js +0 -42
- package/dist/scripts/release-dag-full-coverage-check.js +0 -66
- package/dist/scripts/release-dist-freshness-check.js +0 -8
- package/dist/scripts/release-dynamic-performance-check.js +0 -103
- package/dist/scripts/release-gate-budget-check.js +0 -36
- package/dist/scripts/release-gate-dag-runner-check.js +0 -17
- package/dist/scripts/release-metadata-1-11-check.js +0 -37
- package/dist/scripts/release-metadata-1-12-check.js +0 -48
- package/dist/scripts/release-metadata-1-13-check.js +0 -53
- package/dist/scripts/release-metadata-1-14-check.js +0 -63
- package/dist/scripts/release-metadata-1-16-check.js +0 -81
- package/dist/scripts/release-metadata-1-17-check.js +0 -51
- package/dist/scripts/release-metadata-1-19-check.js +0 -371
- package/dist/scripts/release-metadata-check.js +0 -7
- package/dist/scripts/release-native-agent-fixture-check.js +0 -41
- package/dist/scripts/release-parallel-check.js +0 -374
- package/dist/scripts/release-parallel-full-coverage-check.js +0 -13
- package/dist/scripts/release-parallel-speed-budget-check.js +0 -84
- package/dist/scripts/release-provenance-check.js +0 -150
- package/dist/scripts/release-real-check.js +0 -330
- package/dist/scripts/release-registry-check.js +0 -344
- package/dist/scripts/release-runtime-truth-matrix-check.js +0 -47
- package/dist/scripts/release-stability-report-check.js +0 -99
- package/dist/scripts/release-version-truth-check.js +0 -134
- package/dist/scripts/research-actual-route-backfill-check.js +0 -5
- package/dist/scripts/research-backfill-route-blackbox.js +0 -5
- package/dist/scripts/research-blueprint-densifier-check.js +0 -21
- package/dist/scripts/research-claim-builder-check.js +0 -19
- package/dist/scripts/research-complete-package-fixture-check.js +0 -23
- package/dist/scripts/research-final-reviewer-blackbox.js +0 -22
- package/dist/scripts/research-parallel-source-shards-check.js +0 -22
- package/dist/scripts/research-quality-gate-check.js +0 -111
- package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +0 -14
- package/dist/scripts/research-short-report-rejection-check.js +0 -46
- package/dist/scripts/research-source-ledger-merge-check.js +0 -26
- package/dist/scripts/research-stage-cycle-runtime-blackbox.js +0 -24
- package/dist/scripts/responses-retry-policy-centralized-check.js +0 -19
- package/dist/scripts/retention-cleanup-safety-check.js +0 -155
- package/dist/scripts/route-blackbox-realism-check.js +0 -21
- package/dist/scripts/route-proof-artifact-structure-check.js +0 -145
- package/dist/scripts/runtime-dist-parity-check.js +0 -78
- package/dist/scripts/runtime-no-mjs-scripts-check.js +0 -45
- package/dist/scripts/runtime-no-src-mjs-check.js +0 -32
- package/dist/scripts/runtime-no-tmux-check.js +0 -113
- package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
- package/dist/scripts/runtime-ts-rust-boundary-check.js +0 -74
- package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -55
- package/dist/scripts/safety-check.js +0 -23
- package/dist/scripts/shared-memory-fixture-check.js +0 -27
- package/dist/scripts/side-effect-runtime-report-check.js +0 -19
- package/dist/scripts/side-effect-zero-gate-check.js +0 -226
- package/dist/scripts/sks-1-11-fixture-check.js +0 -130
- package/dist/scripts/source-intelligence-all-modes-check.js +0 -32
- package/dist/scripts/source-intelligence-policy-check.js +0 -13
- package/dist/scripts/strategy-adhd-orchestrating-gate-check.js +0 -22
- package/dist/scripts/strategy-file-ownership-plan-check.js +0 -18
- package/dist/scripts/strategy-parallel-modification-plan-check.js +0 -19
- package/dist/scripts/strategy-verification-rollback-dag-check.js +0 -19
- package/dist/scripts/team-actual-route-backfill-check.js +0 -5
- package/dist/scripts/team-backfill-route-blackbox.js +0 -5
- package/dist/scripts/team-parallel-write-blackbox.js +0 -55
- package/dist/scripts/team-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/terminal-keyboard-enhancement-safety-check.js +0 -12
- package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
- package/dist/scripts/test-no-orphan-dist-imports-check.js +0 -73
- package/dist/scripts/trust-fixture-check.js +0 -33
- package/dist/scripts/typescript-migration-report.js +0 -78
- package/dist/scripts/ultra-router-auto-router-check.js +0 -33
- package/dist/scripts/ultra-router-classification-check.js +0 -28
- package/dist/scripts/ux-patch-swarm-route-blackbox.js +0 -10
- package/dist/scripts/ux-ppt-structured-extraction-check.js +0 -21
- package/dist/scripts/ux-review-extract-real-callouts-fixture-check.js +0 -8
- package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -15
- package/dist/scripts/ux-review-generate-callouts-fixture-check.js +0 -9
- package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
- package/dist/scripts/ux-review-imagegen-blackbox-check.js +0 -67
- package/dist/scripts/ux-review-no-fake-callouts-check.js +0 -8
- package/dist/scripts/ux-review-no-text-fallback-check.js +0 -25
- package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -20
- package/dist/scripts/ux-review-patch-handoff-fixture-check.js +0 -8
- package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -31
- package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -24
- package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
- package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -11
- package/dist/scripts/worker-pane-communication-contract-check.js +0 -54
- package/dist/scripts/wrongness-fixture-check.js +0 -65
- package/dist/scripts/xai-mcp-capability-check.js +0 -14
- package/dist/scripts/zellij-capability-check.js +0 -15
- package/dist/scripts/zellij-dashboard-pane-check.js +0 -70
- package/dist/scripts/zellij-developer-controls-check.js +0 -20
- package/dist/scripts/zellij-doctor-readiness-check.js +0 -63
- package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +0 -21
- package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -20
- package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -356
- package/dist/scripts/zellij-initial-main-only-blackbox.js +0 -28
- package/dist/scripts/zellij-lane-renderer-check.js +0 -65
- package/dist/scripts/zellij-launch-command-truth-check.js +0 -75
- package/dist/scripts/zellij-layout-valid-check.js +0 -90
- package/dist/scripts/zellij-pane-proof-check.js +0 -59
- package/dist/scripts/zellij-real-session-cleanup-check.js +0 -21
- package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
- package/dist/scripts/zellij-real-session-launch-check.js +0 -57
- package/dist/scripts/zellij-right-column-headless-overflow-check.js +0 -22
- package/dist/scripts/zellij-right-column-manager-check.js +0 -27
- package/dist/scripts/zellij-screen-proof-check.js +0 -45
- package/dist/scripts/zellij-slot-column-anchor-check.js +0 -66
- package/dist/scripts/zellij-slot-only-ui-check.js +0 -26
- package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -106
- package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +0 -59
- package/dist/scripts/zellij-spawn-on-demand-layout-check.js +0 -40
- package/dist/scripts/zellij-ui-design-check.js +0 -105
- package/dist/scripts/zellij-worker-pane-manager-check.js +0 -109
- package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +0 -47
- package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +0 -202
- package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// Release gate: no test file may import a `dist/...` module whose TypeScript
|
|
4
|
-
// source no longer exists. This catches "test rot" left behind when a source
|
|
5
|
-
// module is deleted (e.g. the tmux runtime removed in the Zellij migration)
|
|
6
|
-
// but its test file is not — those tests fail with ERR_MODULE_NOT_FOUND and,
|
|
7
|
-
// because they live under test/unit + test/integration (which no release gate
|
|
8
|
-
// executes), the rot stays invisible. This gate makes it visible.
|
|
9
|
-
import fs from 'node:fs';
|
|
10
|
-
import path from 'node:path';
|
|
11
|
-
import { assertGate, emitGate, root } from './sks-1-18-gate-lib.js';
|
|
12
|
-
const testDir = path.join(root, 'test');
|
|
13
|
-
// Match real ES import references to a dist module, NOT string-literal args:
|
|
14
|
-
// import x from '../../core/foo.js'
|
|
15
|
-
// import { y } from "../bar.js"
|
|
16
|
-
// await import('../../baz.js')
|
|
17
|
-
// The leading `from`/`import(` requirement is what excludes assertion strings
|
|
18
|
-
// like `{ file: 'dist/index.js' }` from being treated as imports.
|
|
19
|
-
const IMPORT_RE = /(?:\bfrom\s*|\bimport\s*\(\s*)['"]([^'"]*\bdist\/[^'"]+\.js)['"]/g;
|
|
20
|
-
const orphans = [];
|
|
21
|
-
let scanned = 0;
|
|
22
|
-
let importEdges = 0;
|
|
23
|
-
for (const file of walk(testDir)) {
|
|
24
|
-
if (!file.endsWith('.test.mjs'))
|
|
25
|
-
continue;
|
|
26
|
-
scanned += 1;
|
|
27
|
-
const text = fs.readFileSync(file, 'utf8');
|
|
28
|
-
const rel = path.relative(root, file);
|
|
29
|
-
const seen = new Set();
|
|
30
|
-
for (const match of text.matchAll(IMPORT_RE)) {
|
|
31
|
-
const ref = normalizeDistRef(match[1]);
|
|
32
|
-
if (!ref || seen.has(ref))
|
|
33
|
-
continue;
|
|
34
|
-
seen.add(ref);
|
|
35
|
-
importEdges += 1;
|
|
36
|
-
const srcPath = path.join(root, 'src', ref.replace(/^dist\//, '').replace(/\.js$/, '.ts'));
|
|
37
|
-
const distPath = path.join(root, ref);
|
|
38
|
-
// Pass if EITHER the TS source exists (module is real, just not built yet)
|
|
39
|
-
// OR a built artifact exists. Only when both are missing is it an orphan.
|
|
40
|
-
if (!fs.existsSync(srcPath) && !fs.existsSync(distPath)) {
|
|
41
|
-
orphans.push({ test: rel, missing_import: ref, expected_source: path.relative(root, srcPath) });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
assertGate(orphans.length === 0, 'test files import deleted dist modules (orphan tests; delete them or restore the source)', { orphans });
|
|
46
|
-
emitGate('test:no-orphan-dist-imports', {
|
|
47
|
-
schema: 'sks.test-no-orphan-dist-imports.v1',
|
|
48
|
-
test_files_scanned: scanned,
|
|
49
|
-
dist_import_edges: importEdges
|
|
50
|
-
});
|
|
51
|
-
function normalizeDistRef(raw) {
|
|
52
|
-
const idx = raw.lastIndexOf('dist/');
|
|
53
|
-
return idx >= 0 ? raw.slice(idx) : '';
|
|
54
|
-
}
|
|
55
|
-
function walk(dir) {
|
|
56
|
-
const out = [];
|
|
57
|
-
let entries;
|
|
58
|
-
try {
|
|
59
|
-
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
return out;
|
|
63
|
-
}
|
|
64
|
-
for (const entry of entries) {
|
|
65
|
-
const full = path.join(dir, entry.name);
|
|
66
|
-
if (entry.isDirectory())
|
|
67
|
-
out.push(...walk(full));
|
|
68
|
-
else
|
|
69
|
-
out.push(full);
|
|
70
|
-
}
|
|
71
|
-
return out;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=test-no-orphan-dist-imports-check.js.map
|
|
@@ -1,33 +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 root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-trust-fixture-'));
|
|
8
|
-
await fs.writeFile(path.join(root, 'package.json'), '{"private":true,"name":"sks-trust-fixture"}\n');
|
|
9
|
-
await runProcess('git', ['init', '-q'], {
|
|
10
|
-
cwd: root,
|
|
11
|
-
timeoutMs: 10_000,
|
|
12
|
-
maxOutputBytes: 64 * 1024,
|
|
13
|
-
env: { CI: 'true' }
|
|
14
|
-
});
|
|
15
|
-
const sks = path.join(process.cwd(), 'dist', 'bin', 'sks.js');
|
|
16
|
-
const run = await runJson(root, sks, ['run', 'fixture', '--mock', '--json']);
|
|
17
|
-
const trust = await runJson(root, sks, ['trust', 'validate', run.mission_id, '--json']);
|
|
18
|
-
const ok = run.ok === true && ['verified', 'verified_partial'].includes(trust.status);
|
|
19
|
-
console.log(JSON.stringify({ schema: 'sks.trust-fixture-check.v1', ok, mission_id: run.mission_id, trust_status: trust.status, issues: trust.issues || [] }, null, 2));
|
|
20
|
-
if (!ok)
|
|
21
|
-
process.exitCode = 1;
|
|
22
|
-
async function runJson(rootDir, sksBin, args) {
|
|
23
|
-
const result = await runProcess(process.execPath, [sksBin, ...args], {
|
|
24
|
-
cwd: rootDir,
|
|
25
|
-
timeoutMs: 60_000,
|
|
26
|
-
maxOutputBytes: 512 * 1024,
|
|
27
|
-
env: { SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' }
|
|
28
|
-
});
|
|
29
|
-
if (result.code !== 0)
|
|
30
|
-
throw new Error(`${args.join(' ')} failed: ${result.stderr || result.stdout}`);
|
|
31
|
-
return JSON.parse(result.stdout);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=trust-fixture-check.js.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/**
|
|
4
|
-
* Writes .sneakoscope/reports/typescript-migration.{json,md}
|
|
5
|
-
*/
|
|
6
|
-
import fs from 'node:fs';
|
|
7
|
-
import path from 'node:path';
|
|
8
|
-
import { fileURLToPath } from 'node:url';
|
|
9
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
|
|
10
|
-
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
|
11
|
-
const srcRoot = path.join(root, 'src');
|
|
12
|
-
const distRoot = path.join(root, 'dist');
|
|
13
|
-
function walkTs(dir, out) {
|
|
14
|
-
if (!fs.existsSync(dir))
|
|
15
|
-
return;
|
|
16
|
-
for (const ent of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
17
|
-
const p = path.join(dir, ent.name);
|
|
18
|
-
if (ent.isDirectory())
|
|
19
|
-
walkTs(p, out);
|
|
20
|
-
else if (ent.isFile() && ent.name.endsWith('.ts'))
|
|
21
|
-
out.push(p);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function walk(dir, patt, acc) {
|
|
25
|
-
if (!fs.existsSync(dir))
|
|
26
|
-
return;
|
|
27
|
-
for (const ent of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
28
|
-
const p = path.join(dir, ent.name);
|
|
29
|
-
if (ent.isDirectory())
|
|
30
|
-
walk(p, patt, acc);
|
|
31
|
-
else if (ent.isFile() && patt(ent.name))
|
|
32
|
-
acc.push(p);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
const tsFiles = [];
|
|
36
|
-
walkTs(srcRoot, tsFiles);
|
|
37
|
-
let nocheck = 0;
|
|
38
|
-
let tsignore = 0;
|
|
39
|
-
let expectErrBad = 0;
|
|
40
|
-
for (const f of tsFiles) {
|
|
41
|
-
const t = fs.readFileSync(f, 'utf8');
|
|
42
|
-
if (/^\s*\/\/\s*@ts-nocheck/m.test(t) || /\n\/\/\s*@ts-nocheck/.test(t))
|
|
43
|
-
nocheck += 1;
|
|
44
|
-
if (/@ts-ignore\b/.test(t))
|
|
45
|
-
tsignore += 1;
|
|
46
|
-
for (const line of t.split('\n'))
|
|
47
|
-
if (/@ts-expect-error\b/.test(line) && !/SKS-/.test(line))
|
|
48
|
-
expectErrBad += 1;
|
|
49
|
-
}
|
|
50
|
-
const mjs = [];
|
|
51
|
-
walk(distRoot, (n) => n.endsWith('.mjs'), mjs);
|
|
52
|
-
const srcMjs = [];
|
|
53
|
-
walk(srcRoot, (n) => n.endsWith('.mjs'), srcMjs);
|
|
54
|
-
const registryText = fs.readFileSync(path.join(srcRoot, 'cli', 'command-registry.ts'), 'utf8');
|
|
55
|
-
const typedEntries = (registryText.match(/\bentry\(/g) || []).length;
|
|
56
|
-
const report = {
|
|
57
|
-
schema: 'sks.typescript-migration.v1',
|
|
58
|
-
version: pkg.version,
|
|
59
|
-
runtime_ts_files: tsFiles.length,
|
|
60
|
-
runtime_mjs_files: srcMjs.length,
|
|
61
|
-
src_mjs_runtime_files: srcMjs.length,
|
|
62
|
-
src_mjs_removed: srcMjs.length === 0,
|
|
63
|
-
ts_nocheck: nocheck,
|
|
64
|
-
ts_ignore: tsignore,
|
|
65
|
-
ts_expect_error_without_reason: expectErrBad,
|
|
66
|
-
typed_command_entries: typedEntries,
|
|
67
|
-
dist_mjs_files: mjs.length,
|
|
68
|
-
status: nocheck === 0 && tsignore === 0 && expectErrBad === 0 && srcMjs.length === 0 ? 'verified' : 'blocked',
|
|
69
|
-
};
|
|
70
|
-
const outDir = path.join(root, '.sneakoscope', 'reports');
|
|
71
|
-
fs.mkdirSync(outDir, { recursive: true });
|
|
72
|
-
const jsonPath = path.join(outDir, 'typescript-migration.json');
|
|
73
|
-
const mdPath = path.join(outDir, 'typescript-migration.md');
|
|
74
|
-
fs.writeFileSync(jsonPath, `${JSON.stringify(report, null, 2)}\n`);
|
|
75
|
-
const md = `# TypeScript Migration Report (${report.version})\n\n\`\`\`json\n${JSON.stringify(report, null, 2)}\n\`\`\`\n`;
|
|
76
|
-
fs.writeFileSync(mdPath, md);
|
|
77
|
-
console.log(JSON.stringify({ schema: `${report.schema}-write.v1`, ok: true, jsonPath, mdPath }, null, 2));
|
|
78
|
-
//# sourceMappingURL=typescript-migration-report.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const router = await importDist('core/router/ultra-router.js');
|
|
5
|
-
const cache = await importDist('core/router/route-cache.js');
|
|
6
|
-
cache.clearRouteCache();
|
|
7
|
-
const simpleWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-001', workItemId: 'slice-1' }));
|
|
8
|
-
const cachedWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-001', workItemId: 'slice-1' }));
|
|
9
|
-
const imageWorker = router.routeCodexTask(baseTask({ tier: 'worker', slotId: 'slot-002', workItemId: 'slice-2', inputImages: ['screen.png'] }));
|
|
10
|
-
const orchestrator = router.routeCodexTask(baseTask({ tier: 'orchestrator', prompt: 'conflict resolution final synthesis' }));
|
|
11
|
-
assertGate(simpleWorker.selected_profile === 'fast-worker', 'simple worker should choose cheapest good-enough profile', simpleWorker);
|
|
12
|
-
assertGate(cachedWorker.cache_hit === true, 'second identical routing decision must hit cache', cachedWorker);
|
|
13
|
-
assertGate(imageWorker.selected_profile === 'vision-worker', 'image worker must hard-filter non-vision candidates', imageWorker);
|
|
14
|
-
assertGate(orchestrator.tier === 'orchestrator' && orchestrator.selected_profile.includes('orchestrator'), 'orchestrator task must stay orchestrator tier', orchestrator);
|
|
15
|
-
assertGate(orchestrator.reason.includes('score>=threshold') || orchestrator.reason.includes('deterministic-default'), 'router must emit deterministic reason', orchestrator);
|
|
16
|
-
emitGate('ultra-router:auto-router', { worker: simpleWorker.selected_profile, image_worker: imageWorker.selected_profile, cache_hit: cachedWorker.cache_hit, orchestrator: orchestrator.selected_profile });
|
|
17
|
-
function baseTask(extra = {}) {
|
|
18
|
-
return {
|
|
19
|
-
route: '$Agent',
|
|
20
|
-
missionId: 'M-ultra-router-auto',
|
|
21
|
-
cwd: process.cwd(),
|
|
22
|
-
prompt: 'fixture',
|
|
23
|
-
inputFiles: [],
|
|
24
|
-
inputImages: [],
|
|
25
|
-
outputSchemaId: 'sks.agent-worker-result.v1',
|
|
26
|
-
outputSchema: {},
|
|
27
|
-
sandboxPolicy: 'read-only',
|
|
28
|
-
requestedScopeContract: { read_only: true },
|
|
29
|
-
mutationLedgerRoot: process.cwd(),
|
|
30
|
-
...extra
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=ultra-router-auto-router-check.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
|
|
4
|
-
const classifier = await importDist('core/router/task-classifier.js');
|
|
5
|
-
const orchestrator = classifier.classifyCodexTask(baseTask({ prompt: 'strategy planning and final synthesis', route: '$Team' }));
|
|
6
|
-
const worker = classifier.classifyCodexTask(baseTask({ prompt: 'work item patch shard', route: '$Naruto', slotId: 'slot-001', workItemId: 'slice-1' }));
|
|
7
|
-
const imageWorker = classifier.classifyCodexTask(baseTask({ prompt: 'image QA shard', inputImages: ['screen.png'], slotId: 'slot-002', workItemId: 'slice-2' }));
|
|
8
|
-
assertGate(orchestrator.tier === 'orchestrator', 'main route must classify as orchestrator', orchestrator);
|
|
9
|
-
assertGate(worker.tier === 'worker', 'worker slot must classify as worker', worker);
|
|
10
|
-
assertGate(imageWorker.image_required === true, 'image task must carry image hard filter signal', imageWorker);
|
|
11
|
-
emitGate('ultra-router:classification', { orchestrator: orchestrator.tier, worker: worker.tier, image_required: imageWorker.image_required });
|
|
12
|
-
function baseTask(extra = {}) {
|
|
13
|
-
return {
|
|
14
|
-
route: '$Agent',
|
|
15
|
-
missionId: 'M-ultra-router-classification',
|
|
16
|
-
cwd: process.cwd(),
|
|
17
|
-
prompt: 'fixture',
|
|
18
|
-
inputFiles: [],
|
|
19
|
-
inputImages: [],
|
|
20
|
-
outputSchemaId: 'sks.agent-worker-result.v1',
|
|
21
|
-
outputSchema: {},
|
|
22
|
-
sandboxPolicy: 'read-only',
|
|
23
|
-
requestedScopeContract: { read_only: true },
|
|
24
|
-
mutationLedgerRoot: process.cwd(),
|
|
25
|
-
...extra
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=ultra-router-classification-check.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { runPatchSwarmRouteBlackbox } from './agent-patch-swarm-gate-lib.js';
|
|
4
|
-
await runPatchSwarmRouteBlackbox({
|
|
5
|
-
gate: 'ux:patch-swarm-route-blackbox',
|
|
6
|
-
route: '$UX-Review',
|
|
7
|
-
routeCommand: 'sks ux-review',
|
|
8
|
-
reportName: 'ux-patch-swarm-route-blackbox'
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=ux-patch-swarm-route-blackbox.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
const schemas = [
|
|
6
|
-
'schemas/codex/image-ux-issue-ledger.schema.json',
|
|
7
|
-
'schemas/codex/ppt-slide-issue-ledger.schema.json',
|
|
8
|
-
'schemas/codex/ppt-slide-extraction-report.schema.json'
|
|
9
|
-
].map((rel) => ({ rel, json: JSON.parse(fs.readFileSync(path.join(process.cwd(), rel), 'utf8')) }));
|
|
10
|
-
const checks = schemas.map(({ rel, json }) => ({
|
|
11
|
-
rel,
|
|
12
|
-
root_strict: json.additionalProperties === false,
|
|
13
|
-
issue_strict: rel.includes('extraction-report')
|
|
14
|
-
? json.properties.slide_reports.items.additionalProperties === false
|
|
15
|
-
: (json.properties.issues.items.additionalProperties === false || json.$defs?.issue?.additionalProperties === false)
|
|
16
|
-
}));
|
|
17
|
-
const ok = checks.every((check) => check.root_strict && check.issue_strict);
|
|
18
|
-
console.log(JSON.stringify({ schema: 'sks.ux-ppt-structured-extraction-check.v1', ok, checks }, null, 2));
|
|
19
|
-
if (!ok)
|
|
20
|
-
process.exitCode = 1;
|
|
21
|
-
//# sourceMappingURL=ux-ppt-structured-extraction-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runUxFixture();
|
|
5
|
-
const issues = readMissionJson(result.mission_id, 'image-ux-issue-ledger.json');
|
|
6
|
-
assertGate(issues.schema === 'sks.image-ux-issue-ledger.v3' && Array.isArray(issues.issues), 'image UX issue extraction ledger invalid', issues);
|
|
7
|
-
emitGate('ux-review:extract-real-callouts-fixture', { mission_id: result.mission_id, issues: issues.issues.length });
|
|
8
|
-
//# sourceMappingURL=ux-review-extract-real-callouts-fixture-check.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ux-review:extract-wires-real-extractor', 'src/core/commands/image-ux-review-command.ts', [
|
|
5
|
-
'extractIssuesImageUxReview',
|
|
6
|
-
'extractRealCallouts',
|
|
7
|
-
'IMAGE_UX_REVIEW_CALLOUT_EXTRACTION_REPORT_ARTIFACT'
|
|
8
|
-
]);
|
|
9
|
-
requireContains('ux-review:extract-wires-real-extractor', 'src/core/image-ux-review.ts', [
|
|
10
|
-
'sks.image-ux-callout-extraction-report.v1',
|
|
11
|
-
'bbox_validation_issues',
|
|
12
|
-
'verified_cap'
|
|
13
|
-
]);
|
|
14
|
-
emitGate('ux-review:extract-wires-real-extractor', { artifact: 'image-ux-callout-extraction-report.json' });
|
|
15
|
-
//# sourceMappingURL=ux-review-extract-wires-real-extractor-check.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runUxFixture();
|
|
5
|
-
const ledger = readMissionJson(result.mission_id, 'image-ux-generated-review-ledger.json');
|
|
6
|
-
assertGate(ledger.status === 'generated'
|
|
7
|
-
|| (ledger.generated_images || ledger.review_images || ledger.generated_review_images || []).length > 0, 'generated image UX callout ledger missing generated evidence', ledger);
|
|
8
|
-
emitGate('ux-review:generate-callouts-fixture', { mission_id: result.mission_id });
|
|
9
|
-
//# sourceMappingURL=ux-review-generate-callouts-fixture-check.js.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
import fs from 'node:fs/promises';
|
|
5
|
-
import os from 'node:os';
|
|
6
|
-
import path from 'node:path';
|
|
7
|
-
import { pathToFileURL } from 'node:url';
|
|
8
|
-
const root = process.cwd();
|
|
9
|
-
const ledgerMod = await import(pathToFileURL(path.join(root, 'dist/core/wiki-image/image-voxel-ledger.js')));
|
|
10
|
-
const validationMod = await import(pathToFileURL(path.join(root, 'dist/core/wiki-image/validation.js')));
|
|
11
|
-
const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-ux-rel-'));
|
|
12
|
-
await fs.mkdir(path.join(tmp, 'img'), { recursive: true });
|
|
13
|
-
const png = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMB/axX7V8AAAAASUVORK5CYII=', 'base64');
|
|
14
|
-
await fs.writeFile(path.join(tmp, 'img/source.png'), png);
|
|
15
|
-
await fs.writeFile(path.join(tmp, 'img/generated.png'), png);
|
|
16
|
-
await ledgerMod.ingestImage(tmp, 'img/source.png', { id: 'source-screen', missionId: 'M-fixture' });
|
|
17
|
-
await ledgerMod.ingestImage(tmp, 'img/generated.png', { id: 'generated-callout', missionId: 'M-fixture' });
|
|
18
|
-
const relation = await ledgerMod.addImageRelation(tmp, {
|
|
19
|
-
missionId: 'M-fixture',
|
|
20
|
-
type: 'generated_callout_review_of',
|
|
21
|
-
beforeImageId: 'source-screen',
|
|
22
|
-
afterImageId: 'generated-callout',
|
|
23
|
-
sourceImageId: 'source-screen',
|
|
24
|
-
generatedImageId: 'generated-callout',
|
|
25
|
-
verification: 'fixture',
|
|
26
|
-
status: 'verified_partial'
|
|
27
|
-
});
|
|
28
|
-
const validation = validationMod.validateImageVoxelLedger(relation.ledger, { requireRelations: true });
|
|
29
|
-
assert.equal(validation.ok, true, validation.issues.join(', '));
|
|
30
|
-
console.log(JSON.stringify({ schema: 'sks.ux-review-image-voxel-relations.v1', ok: true, relations: relation.ledger.relations.length }, null, 2));
|
|
31
|
-
//# sourceMappingURL=ux-review-image-voxel-relations-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 { osTempPngFixtureArg } from './lib/valid-png-fixture.js';
|
|
7
|
-
const sourceImage = osTempPngFixtureArg('ux-review-imagegen-blackbox-source.png');
|
|
8
|
-
const run = spawnSync(process.execPath, ['./dist/bin/sks.js', 'ux-review', 'run', '--image', sourceImage, '--generate-callouts', '--json'], {
|
|
9
|
-
cwd: process.cwd(),
|
|
10
|
-
env: { ...process.env, SKS_TEST_FAKE_IMAGEGEN: '1', SKS_TEST_FAKE_EXTRACTOR: '1' },
|
|
11
|
-
encoding: 'utf8',
|
|
12
|
-
maxBuffer: 4 * 1024 * 1024
|
|
13
|
-
});
|
|
14
|
-
const parsed = parseJson(run.stdout);
|
|
15
|
-
const missionDir = parsed?.mission_id ? path.join(process.cwd(), '.sneakoscope', 'missions', parsed.mission_id) : null;
|
|
16
|
-
const request = missionDir ? readJson(path.join(missionDir, 'image-ux-gpt-image-2-request.json')) : null;
|
|
17
|
-
const response = missionDir ? readJson(path.join(missionDir, 'image-ux-gpt-image-2-response.json')) : null;
|
|
18
|
-
const issues = missionDir ? readJson(path.join(missionDir, 'image-ux-issue-ledger.json')) : null;
|
|
19
|
-
const generated = missionDir ? readJson(path.join(missionDir, 'image-ux-generated-review-ledger.json')) : null;
|
|
20
|
-
const proof = missionDir ? readJson(path.join(missionDir, 'completion-proof.json')) : null;
|
|
21
|
-
const ok = Boolean(parsed?.mission_id)
|
|
22
|
-
&& run.status === 0
|
|
23
|
-
&& parsed?.status === 'verified_partial_reference'
|
|
24
|
-
&& request?.validation?.ok === true
|
|
25
|
-
&& response?.fake_adapter === true
|
|
26
|
-
&& generated?.generated_count === 1
|
|
27
|
-
&& generated?.real_generated_count === 0
|
|
28
|
-
&& generated?.non_real_generated_count === 1
|
|
29
|
-
&& generated?.generated_review_images?.[0]?.mock === true
|
|
30
|
-
&& Array.isArray(issues?.issues)
|
|
31
|
-
&& issues.issues.length > 0
|
|
32
|
-
&& issues.issues.every((issue) => issue.source === 'mock_fixture')
|
|
33
|
-
&& proof?.status === 'verified_partial'
|
|
34
|
-
&& proof?.evidence?.image_ux_review?.reference_only === true
|
|
35
|
-
&& proof?.evidence?.image_ux_review?.generated_gpt_image_2_callout_images_count === 0;
|
|
36
|
-
console.log(JSON.stringify({
|
|
37
|
-
schema: 'sks.ux-review-imagegen-blackbox-check.v1',
|
|
38
|
-
ok,
|
|
39
|
-
process_status: run.status,
|
|
40
|
-
mission_id: parsed?.mission_id || null,
|
|
41
|
-
gate_status: parsed?.status || null,
|
|
42
|
-
proof_status: proof?.status || null,
|
|
43
|
-
reference_only: proof?.evidence?.image_ux_review?.reference_only === true,
|
|
44
|
-
source_image: sourceImage,
|
|
45
|
-
request,
|
|
46
|
-
response,
|
|
47
|
-
issue_count: issues?.issues?.length || 0
|
|
48
|
-
}, null, 2));
|
|
49
|
-
if (!ok)
|
|
50
|
-
process.exitCode = 1;
|
|
51
|
-
function parseJson(text) {
|
|
52
|
-
try {
|
|
53
|
-
return JSON.parse(text);
|
|
54
|
-
}
|
|
55
|
-
catch {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function readJson(file) {
|
|
60
|
-
try {
|
|
61
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
62
|
-
}
|
|
63
|
-
catch {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=ux-review-imagegen-blackbox-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runUxFixture();
|
|
5
|
-
const proof = readMissionJson(result.mission_id, 'completion-proof.json');
|
|
6
|
-
assertGate(proof.status !== 'verified' && JSON.stringify(proof).includes('mock'), 'mock image UX callouts were allowed to claim full real verification', { status: proof.status });
|
|
7
|
-
emitGate('ux-review:no-fake-callouts', { mission_id: result.mission_id, status: proof.status });
|
|
8
|
-
//# sourceMappingURL=ux-review-no-fake-callouts-check.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
const root = process.cwd();
|
|
7
|
-
const mod = await import(pathToFileURL(path.join(root, 'dist/core/image-ux-review.js')));
|
|
8
|
-
const contract = { prompt: 'text-only fallback fixture', answers: { IMAGE_UX_REVIEW_SOURCE_IMAGES: ['test/fixtures/images/one-by-one.png'] } };
|
|
9
|
-
const inventory = await mod.hydrateImageUxScreenInventory(root, mod.buildImageUxScreenInventory(contract));
|
|
10
|
-
const generatedReviewLedger = mod.buildImageUxGeneratedReviewLedger(contract, inventory, {
|
|
11
|
-
generated_review_images: [{
|
|
12
|
-
id: 'text-only-review',
|
|
13
|
-
source_screen_id: 'screen-1',
|
|
14
|
-
text_only: true,
|
|
15
|
-
status: 'text_only',
|
|
16
|
-
mock: false,
|
|
17
|
-
real_generated: false
|
|
18
|
-
}]
|
|
19
|
-
});
|
|
20
|
-
const issueLedger = mod.buildImageUxIssueLedger(contract, generatedReviewLedger, null);
|
|
21
|
-
const gate = mod.defaultImageUxReviewGate(contract, { inventory, generatedReviewLedger, issueLedger });
|
|
22
|
-
assert.equal(gate.passed, false);
|
|
23
|
-
assert.ok(gate.blockers.includes('ux_review_text_only_fallback'));
|
|
24
|
-
console.log(JSON.stringify({ schema: 'sks.ux-review-no-text-fallback.v1', ok: true, blockers: gate.blockers }, null, 2));
|
|
25
|
-
//# sourceMappingURL=ux-review-no-text-fallback-check.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ux-review:patch-diff-recheck', 'src/core/image-ux-review/fix-loop.ts', [
|
|
5
|
-
'changed_files',
|
|
6
|
-
'recapture_required',
|
|
7
|
-
'no_op_patch_wrongness',
|
|
8
|
-
'regression'
|
|
9
|
-
]);
|
|
10
|
-
requireContains('ux-review:patch-diff-recheck', 'src/core/image-ux-review/patch-handoff.ts', [
|
|
11
|
-
'explicit_apply_opt_in',
|
|
12
|
-
'dry_run',
|
|
13
|
-
'recapture_required'
|
|
14
|
-
]);
|
|
15
|
-
requireContains('ux-review:patch-diff-recheck', 'src/core/commands/image-ux-review-command.ts', [
|
|
16
|
-
'attachAfterImageCommand',
|
|
17
|
-
'recheck'
|
|
18
|
-
]);
|
|
19
|
-
emitGate('ux-review:patch-diff-recheck', { patch_handoff: 'dry-run-by-default', recapture: 'required-after-change' });
|
|
20
|
-
//# sourceMappingURL=ux-review-patch-diff-recheck-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runUxFixture();
|
|
5
|
-
const plan = readMissionJson(result.mission_id, 'image-ux-fix-task-plan.json');
|
|
6
|
-
assertGate(/^sks\.image-ux-fix-task-plan\.v[12]$/.test(plan.schema) && Array.isArray(plan.tasks), 'image UX patch handoff plan invalid', plan);
|
|
7
|
-
emitGate('ux-review:patch-handoff-fixture', { mission_id: result.mission_id, tasks: plan.tasks.length });
|
|
8
|
-
//# sourceMappingURL=ux-review-patch-handoff-fixture-check.js.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { spawnSync } from 'node:child_process';
|
|
4
|
-
const enabled = process.env.SKS_TEST_REAL_IMAGEGEN === '1' || process.env.SKS_REAL_IMAGEGEN === '1';
|
|
5
|
-
const hasKey = Boolean(process.env.OPENAI_API_KEY || process.env.SKS_CODEX_APP_IMAGEGEN === '1');
|
|
6
|
-
if (!enabled || !hasKey) {
|
|
7
|
-
const result = {
|
|
8
|
-
schema: 'sks.ux-real-imagegen-smoke.v1',
|
|
9
|
-
ok: true,
|
|
10
|
-
status: 'integration_optional',
|
|
11
|
-
reason: !enabled ? 'SKS_TEST_REAL_IMAGEGEN=1 not set' : 'OPENAI_API_KEY or Codex App imagegen capability not configured',
|
|
12
|
-
fake_adapter: false,
|
|
13
|
-
real_generated: false
|
|
14
|
-
};
|
|
15
|
-
console.log(JSON.stringify(result, null, 2));
|
|
16
|
-
process.exit(0);
|
|
17
|
-
}
|
|
18
|
-
const run = spawnSync(process.execPath, ['./dist/scripts/imagegen-real-smoke-check.js'], { cwd: process.cwd(), env: process.env, encoding: 'utf8', maxBuffer: 8 * 1024 * 1024 });
|
|
19
|
-
const result = {
|
|
20
|
-
schema: 'sks.ux-real-imagegen-smoke.v1',
|
|
21
|
-
ok: run.status === 0,
|
|
22
|
-
status: run.status === 0 ? 'passed' : 'blocked',
|
|
23
|
-
fake_adapter: false,
|
|
24
|
-
real_generated: run.status === 0,
|
|
25
|
-
stdout_tail: run.stdout.slice(-4000),
|
|
26
|
-
stderr_tail: run.stderr.slice(-4000)
|
|
27
|
-
};
|
|
28
|
-
console.log(JSON.stringify(result, null, 2));
|
|
29
|
-
if (!result.ok)
|
|
30
|
-
process.exitCode = 1;
|
|
31
|
-
//# sourceMappingURL=ux-review-real-imagegen-smoke-check.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
import { spawnSync } from 'node:child_process';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
const root = process.cwd();
|
|
7
|
-
const result = spawnSync(process.execPath, [path.join(root, 'dist/bin/sks.js'), 'image-ux-review', 'fixture', '--mock', '--json'], {
|
|
8
|
-
cwd: root,
|
|
9
|
-
encoding: 'utf8',
|
|
10
|
-
env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', CI: 'true' },
|
|
11
|
-
timeout: Number(process.env.SKS_UX_REVIEW_REAL_LOOP_FIXTURE_TIMEOUT_MS || 180_000)
|
|
12
|
-
});
|
|
13
|
-
assert.equal(result.status, 0, JSON.stringify({
|
|
14
|
-
stderr: result.stderr,
|
|
15
|
-
stdout: result.stdout,
|
|
16
|
-
signal: result.signal,
|
|
17
|
-
error: result.error?.message || null
|
|
18
|
-
}, null, 2));
|
|
19
|
-
const json = JSON.parse(result.stdout);
|
|
20
|
-
assert.equal(json.artifacts.gate.mock_fixture_cannot_claim_real, true);
|
|
21
|
-
assert.equal(json.artifacts.generated_review_ledger.real_generated_count, 0);
|
|
22
|
-
assert.equal(json.artifacts.generated_review_ledger.generated_count, 1);
|
|
23
|
-
console.log(JSON.stringify({ schema: 'sks.ux-review-real-loop-fixture.v1', ok: true, mission_id: json.mission_id }, null, 2));
|
|
24
|
-
//# sourceMappingURL=ux-review-real-loop-fixture-check.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { assertGate, emitGate, readMissionJson, runUxFixture } from './sks-1-11-gate-lib.js';
|
|
4
|
-
const result = runUxFixture();
|
|
5
|
-
const recapture = readMissionJson(result.mission_id, 'image-ux-recapture-plan.json');
|
|
6
|
-
assertGate(recapture.changed_screens_rechecked_or_not_applicable === true, 'image UX recapture/recheck did not pass', recapture);
|
|
7
|
-
emitGate('ux-review:recapture-recheck-fixture', { mission_id: result.mission_id });
|
|
8
|
-
//# sourceMappingURL=ux-review-recapture-recheck-fixture-check.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import { emitGate, requireContains } from './sks-1-12-real-execution-check-lib.js';
|
|
4
|
-
requireContains('ux-review:run-wires-imagegen', 'src/core/commands/image-ux-review-command.ts', [
|
|
5
|
-
'const shouldGenerateCallouts = flag(args, \'--generate-callouts\') || flag(args, \'--fix\')',
|
|
6
|
-
'generateGptImage2CalloutReview',
|
|
7
|
-
'extractRealCallouts',
|
|
8
|
-
'buildImageUxCalloutExtractionReport'
|
|
9
|
-
]);
|
|
10
|
-
emitGate('ux-review:run-wires-imagegen', { command_path: 'sks ux-review run', imagegen_adapter: 'generateGptImage2CalloutReview' });
|
|
11
|
-
//# sourceMappingURL=ux-review-run-wires-imagegen-check.js.map
|
|
@@ -1,54 +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 { writeWorkerPaneCommunicationContract, evaluateWorkerPaneCommunicationContract } from '../core/agents/worker-pane-communication-contract.js';
|
|
6
|
-
import { packageRoot } from '../core/fsx.js';
|
|
7
|
-
const root = packageRoot();
|
|
8
|
-
const tmp = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-worker-pane-contract-'));
|
|
9
|
-
const workerDir = path.join('sessions', 'slot-001', 'gen-1', 'worker');
|
|
10
|
-
await fs.mkdir(path.join(tmp, workerDir), { recursive: true });
|
|
11
|
-
await fs.writeFile(path.join(tmp, 'agent-native-cli-session-swarm.json'), `${JSON.stringify({
|
|
12
|
-
records: [{
|
|
13
|
-
session_id: 'slot-001-gen-1',
|
|
14
|
-
slot_id: 'slot-001',
|
|
15
|
-
generation_index: 1,
|
|
16
|
-
worker_artifact_dir: workerDir,
|
|
17
|
-
worker_intake: path.join(workerDir, 'worker-intake.json'),
|
|
18
|
-
result_path: path.join(workerDir, 'worker-result.json'),
|
|
19
|
-
heartbeat_path: path.join(workerDir, 'worker-heartbeat.jsonl'),
|
|
20
|
-
patch_envelope_path: path.join(workerDir, 'worker-patch-envelope.json'),
|
|
21
|
-
scaling_primitive: 'native_cli_process_in_zellij_worker_pane'
|
|
22
|
-
}]
|
|
23
|
-
}, null, 2)}\n`);
|
|
24
|
-
await fs.writeFile(path.join(tmp, workerDir, 'worker-intake.json'), '{"ok":true}\n');
|
|
25
|
-
await fs.writeFile(path.join(tmp, workerDir, 'worker-result.json'), '{"status":"done"}\n');
|
|
26
|
-
await fs.writeFile(path.join(tmp, workerDir, 'worker-heartbeat.jsonl'), '{"event":"started"}\n');
|
|
27
|
-
await fs.writeFile(path.join(tmp, workerDir, 'worker-process-report.json'), '{"pid":1234}\n');
|
|
28
|
-
await fs.writeFile(path.join(tmp, workerDir, 'codex-control-proof.json'), '{"ok":true,"sdk_thread_id":"sdk-thread-1"}\n');
|
|
29
|
-
await fs.writeFile(path.join(tmp, workerDir, 'worker-no-patch-reason.json'), '{"ok":true}\n');
|
|
30
|
-
await fs.writeFile(path.join(tmp, workerDir, 'zellij-worker-pane-events.jsonl'), [
|
|
31
|
-
'{"event_type":"session_launch_started"}',
|
|
32
|
-
'{"event_type":"zellij_worker_pane_created"}',
|
|
33
|
-
'{"event_type":"worker_started"}',
|
|
34
|
-
'{"event_type":"codex_sdk_thread_started"}',
|
|
35
|
-
'{"event_type":"result_written"}',
|
|
36
|
-
'{"event_type":"pane_closed"}'
|
|
37
|
-
].join('\n') + '\n');
|
|
38
|
-
await fs.writeFile(path.join(tmp, workerDir, 'zellij-worker-pane.json'), `${JSON.stringify({
|
|
39
|
-
schema: 'sks.zellij-worker-pane.v1',
|
|
40
|
-
pane_id: '9',
|
|
41
|
-
parent_child_transport: 'worker-result-json-and-heartbeat'
|
|
42
|
-
})}\n`);
|
|
43
|
-
const report = await writeWorkerPaneCommunicationContract(tmp, { requireZellij: true, reportPath: path.join(root, '.sneakoscope', 'reports', 'worker-pane-communication-contract.json') });
|
|
44
|
-
const badRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-worker-pane-contract-bad-'));
|
|
45
|
-
await fs.writeFile(path.join(badRoot, 'agent-native-cli-session-swarm.json'), '{"records":[{"worker_artifact_dir":"worker","scaling_primitive":"native_cli_process_in_zellij_worker_pane"}]}\n');
|
|
46
|
-
const bad = await evaluateWorkerPaneCommunicationContract(badRoot, { requireZellij: true });
|
|
47
|
-
const ok = report.ok && bad.ok === false && bad.blockers.includes('worker_pane_contract_result_missing') && bad.blockers.includes('worker_pane_contract_codex_control_proof_missing');
|
|
48
|
-
emit({ schema: 'sks.worker-pane-communication-contract-check.v1', ok, report, bad, blockers: ok ? [] : ['worker_pane_communication_contract_check_failed'] });
|
|
49
|
-
function emit(report) {
|
|
50
|
-
console.log(JSON.stringify(report, null, 2));
|
|
51
|
-
if (!report.ok)
|
|
52
|
-
process.exitCode = 1;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=worker-pane-communication-contract-check.js.map
|