sneakoscope 6.1.2 → 6.4.0
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 +18 -13
- package/config/architecture-budgets.v1.json +70 -0
- package/config/perf-budgets.v1.json +9 -1
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/dist/bin/fast-inline.js +4 -5
- package/dist/bin/install.js +2 -3
- package/dist/bin/sks-dispatch.js +2 -7
- package/dist/bin/sks.js +1 -1
- package/dist/cli/args.js +0 -3
- package/dist/cli/cli-theme.js +0 -1
- package/dist/cli/codex-app-command.js +0 -1
- package/dist/cli/command-manifest-lite.js +10 -16
- package/dist/cli/command-registry.js +109 -19
- package/dist/cli/commands-fast.js +0 -1
- package/dist/cli/context7-command.js +0 -1
- package/dist/cli/feature-commands.js +0 -1
- package/dist/cli/global-mode-router.js +31 -1
- package/dist/cli/help-fast.js +2 -4
- package/dist/cli/install-helpers-codex-lb-chain.js +274 -0
- package/dist/cli/install-helpers-codex-lb-config.js +191 -0
- package/dist/cli/install-helpers-codex-lb-selftest-chain.js +115 -0
- package/dist/cli/install-helpers-codex-lb-selftest.js +501 -0
- package/dist/cli/install-helpers-codex-lb-shared.js +52 -0
- package/dist/cli/install-helpers-install-support.js +343 -0
- package/dist/cli/install-helpers.js +31 -1403
- package/dist/cli/install-tool-helpers.js +0 -1
- package/dist/cli/main.js +0 -1
- package/dist/cli/output.js +0 -1
- package/dist/cli/recallpulse-command.js +0 -1
- package/dist/cli/root-fast.js +0 -1
- package/dist/cli/router.js +2 -12
- package/dist/cli/super-search-command.js +0 -1
- package/dist/commands/aliases.js +0 -1
- package/dist/commands/all-features.js +0 -1
- package/dist/commands/auto-review.js +0 -1
- package/dist/commands/autoresearch.js +0 -1
- package/dist/commands/bench.js +0 -1
- package/dist/commands/bootstrap.js +0 -1
- package/dist/commands/code-structure.js +0 -1
- package/dist/commands/codex-app.js +0 -1
- package/dist/commands/codex-lb.js +9 -10
- package/dist/commands/codex-native.js +0 -1
- package/dist/commands/codex.js +0 -1
- package/dist/commands/commands.js +0 -1
- package/dist/commands/commit-and-push.js +0 -1
- package/dist/commands/commit.js +0 -1
- package/dist/commands/computer-use.js +0 -1
- package/dist/commands/conflicts.js +0 -1
- package/dist/commands/context7.js +0 -1
- package/dist/commands/deps.js +0 -1
- package/dist/commands/dfix.js +0 -1
- package/dist/commands/doctor.js +27 -32
- package/dist/commands/dollar-commands.js +0 -1
- package/dist/commands/eval.js +0 -1
- package/dist/commands/features.js +0 -1
- package/dist/commands/fix-path.js +0 -1
- package/dist/commands/gc.js +0 -1
- package/dist/commands/git.js +0 -1
- package/dist/commands/goal.js +0 -1
- package/dist/commands/guard.js +0 -1
- package/dist/commands/gx.js +0 -1
- package/dist/commands/harness.js +0 -1
- package/dist/commands/help.js +0 -1
- package/dist/commands/hook.js +0 -1
- package/dist/commands/hooks.js +0 -1
- package/dist/commands/hproof.js +0 -1
- package/dist/commands/image-ux-review.js +0 -1
- package/dist/commands/init.js +0 -1
- package/dist/commands/mad-sks.js +0 -1
- package/dist/commands/memory.js +0 -1
- package/dist/commands/paths.js +0 -1
- package/dist/commands/perf.js +0 -1
- package/dist/commands/pipeline.js +0 -1
- package/dist/commands/postinstall.js +0 -1
- package/dist/commands/ppt.js +0 -1
- package/dist/commands/profile.js +0 -1
- package/dist/commands/proof-field.js +0 -1
- package/dist/commands/proof.js +0 -1
- package/dist/commands/qa-loop.js +0 -1
- package/dist/commands/quickstart.js +0 -1
- package/dist/commands/reasoning.js +0 -1
- package/dist/commands/recallpulse.js +0 -1
- package/dist/commands/research.js +0 -1
- package/dist/commands/rollback.js +0 -1
- package/dist/commands/root.js +0 -1
- package/dist/commands/run.js +0 -1
- package/dist/commands/rust.js +0 -1
- package/dist/commands/selftest.js +0 -1
- package/dist/commands/setup.js +0 -1
- package/dist/commands/skill-dream.js +0 -1
- package/dist/commands/stats.js +0 -1
- package/dist/commands/status.js +0 -1
- package/dist/commands/trust.js +0 -1
- package/dist/commands/update-check.js +0 -1
- package/dist/commands/usage.js +0 -1
- package/dist/commands/validate-artifacts.js +0 -1
- package/dist/commands/version.js +0 -1
- package/dist/commands/versioning.js +0 -1
- package/dist/commands/wiki.js +0 -1
- package/dist/commands/zellij-lane.js +0 -1
- package/dist/commands/zellij-monitor-pane.js +0 -1
- package/dist/commands/zellij-slot-column-anchor.js +0 -1
- package/dist/commands/zellij-slot-pane.js +0 -1
- package/dist/commands/zellij-viewport-pane.js +0 -1
- package/dist/commands/zellij.js +2 -3
- package/dist/config/skills-manifest.json +130 -183
- package/dist/core/agent-bridge/agent-manifest.js +30 -45
- package/dist/core/agent-bridge/agent-mode.js +0 -1
- package/dist/core/agent-bridge/mcp-server.js +51 -20
- package/dist/core/agents/agent-central-ledger.js +0 -1
- package/dist/core/agents/agent-cleanup.js +0 -1
- package/dist/core/agents/agent-codex-cockpit.js +6 -7
- package/dist/core/agents/agent-conflict-graph.js +0 -1
- package/dist/core/agents/agent-consensus.js +0 -1
- package/dist/core/agents/agent-effort-policy.js +28 -21
- package/dist/core/agents/agent-follow-up-work-items.js +1 -2
- package/dist/core/agents/agent-heartbeat.js +0 -1
- package/dist/core/agents/agent-janitor.js +0 -1
- package/dist/core/agents/agent-lease.js +0 -1
- package/dist/core/agents/agent-lifecycle.js +0 -1
- package/dist/core/agents/agent-merge-coordinator.js +0 -1
- package/dist/core/agents/agent-message-bus.js +0 -1
- package/dist/core/agents/agent-namespace-safety.js +0 -1
- package/dist/core/agents/agent-orchestrator.js +54 -230
- package/dist/core/agents/agent-output-validator.js +1 -2
- package/dist/core/agents/agent-patch-apply-worker.js +0 -1
- package/dist/core/agents/agent-patch-conflict-rebase.js +0 -1
- package/dist/core/agents/agent-patch-proof.js +0 -1
- package/dist/core/agents/agent-patch-queue-store.js +0 -1
- package/dist/core/agents/agent-patch-queue.js +0 -1
- package/dist/core/agents/agent-patch-schema.js +0 -1
- package/dist/core/agents/agent-patch-transaction-journal.js +0 -1
- package/dist/core/agents/agent-persona.js +1 -2
- package/dist/core/agents/agent-plan.js +38 -28
- package/dist/core/agents/agent-proof-evidence.js +34 -37
- package/dist/core/agents/agent-recursion-guard.js +5 -8
- package/dist/core/agents/agent-role-config.js +168 -35
- package/dist/core/agents/agent-roster.js +2 -154
- package/dist/core/agents/agent-runner-codex-exec.js +0 -1
- package/dist/core/agents/agent-runner-fake.js +1 -2
- package/dist/core/agents/agent-runner-ollama.js +2 -3
- package/dist/core/agents/agent-runner-process.js +0 -1
- package/dist/core/agents/agent-runner-zellij.js +1 -2
- package/dist/core/agents/agent-scheduler.js +0 -1
- package/dist/core/agents/agent-schema.js +2 -7
- package/dist/core/agents/agent-session-generation.js +0 -1
- package/dist/core/agents/agent-session-rows.js +0 -1
- package/dist/core/agents/agent-slot-pane-binding-proof.js +1 -2
- package/dist/core/agents/agent-task-graph.js +3 -4
- package/dist/core/agents/agent-task-slicer.js +0 -1
- package/dist/core/agents/agent-terminal-session.js +0 -1
- package/dist/core/agents/agent-trust-report.js +23 -17
- package/dist/core/agents/agent-work-partition.js +2 -3
- package/dist/core/agents/agent-work-queue.js +0 -1
- package/dist/core/agents/agent-worker-pipeline.js +0 -1
- package/dist/core/agents/agent-worker-slot.js +0 -1
- package/dist/core/agents/agent-wrongness.js +2 -4
- package/dist/core/agents/fast-mode-policy.js +0 -1
- package/dist/core/agents/intelligent-work-graph.js +2 -3
- package/dist/core/agents/native-cli-worker-entry.js +6 -0
- package/dist/core/agents/{native-cli-session-proof.js → native-cli-worker-runtime-proof.js} +25 -26
- package/dist/core/agents/{native-cli-session-swarm.js → native-cli-worker-runtime.js} +62 -110
- package/dist/core/agents/native-cli-worker.js +0 -2
- package/dist/core/agents/native-worker-backend-router.js +5 -9
- package/dist/core/agents/no-subagent-scaling-policy.js +8 -9
- package/dist/core/agents/official-subagent-helper-policy.js +2 -3
- package/dist/core/agents/ollama-worker-config.js +0 -1
- package/dist/core/agents/parallel-runtime-proof.js +0 -1
- package/dist/core/agents/parallel-write-fixture.js +0 -1
- package/dist/core/agents/real-codex-parallel-proof.js +11 -7
- package/dist/core/agents/route-collaboration-ledger.js +9 -17
- package/dist/core/agents/runtime-proof-summary.js +5 -6
- package/dist/core/agents/scout-policy.js +0 -1
- package/dist/core/agents/work-partition/conflict-detector.js +0 -1
- package/dist/core/agents/work-partition/dependency-graph.js +0 -1
- package/dist/core/agents/work-partition/lease-planner.js +0 -1
- package/dist/core/agents/work-partition/no-overlap-proof.js +0 -1
- package/dist/core/agents/work-partition/repo-inventory.js +0 -1
- package/dist/core/agents/work-partition/semantic-domain-graph.js +1 -2
- package/dist/core/agents/work-partition/task-slicer.js +1 -2
- package/dist/core/agents/worker-pane-communication-contract.js +1 -2
- package/dist/core/agents/zellij-lane-supervisor.js +0 -1
- package/dist/core/agents/zellij-right-lane-cockpit.js +1 -2
- package/dist/core/artifact-schemas.js +27 -36
- package/dist/core/auto-review.js +94 -5
- package/dist/core/bench.js +7 -8
- package/dist/core/build/build-once-runner.js +0 -1
- package/dist/core/code-structure.js +1 -2
- package/dist/core/codex/agent-config-file-repair.js +0 -1
- package/dist/core/codex/app-mentions.js +0 -1
- package/dist/core/codex/appshots-detector.js +0 -1
- package/dist/core/codex/appshots-operator-policy.js +0 -1
- package/dist/core/codex/codex-0-134-compat.js +0 -1
- package/dist/core/codex/codex-0-135-compat.js +0 -1
- package/dist/core/codex/codex-0-136-compat.js +0 -1
- package/dist/core/codex/codex-0-137-compat.js +0 -1
- package/dist/core/codex/codex-cli-syntax-builder.js +0 -1
- package/dist/core/codex/codex-cli-update.js +0 -1
- package/dist/core/codex/codex-config-eperm-repair.js +0 -1
- package/dist/core/codex/codex-config-guard.js +178 -8
- package/dist/core/codex/codex-config-readability.js +21 -9
- package/dist/core/codex/codex-config-toml.js +14 -12
- package/dist/core/codex/codex-permission-profiles.js +0 -1
- package/dist/core/codex/codex-project-config-policy.js +0 -1
- package/dist/core/codex/codex-resume-inventory.js +0 -1
- package/dist/core/codex/codex-startup-config-postcheck.js +0 -1
- package/dist/core/codex/codex-web-search-adapter.js +0 -1
- package/dist/core/codex/managed-proxy-env.js +0 -1
- package/dist/core/codex/official-goal-mode.js +0 -1
- package/dist/core/codex-adapter.js +0 -1
- package/dist/core/codex-app/codex-agent-role-sync.js +0 -1
- package/dist/core/codex-app/codex-agent-type-probe.js +0 -1
- package/dist/core/codex-app/codex-app-execution-profile.js +0 -1
- package/dist/core/codex-app/codex-app-fast-ui-preservation.js +0 -1
- package/dist/core/codex-app/codex-app-fast-ui-repair.js +0 -1
- package/dist/core/codex-app/codex-app-handoff.js +0 -1
- package/dist/core/codex-app/codex-app-harness-matrix.js +0 -1
- package/dist/core/codex-app/codex-app-launcher.js +0 -1
- package/dist/core/codex-app/codex-app-provider-badge.js +0 -1
- package/dist/core/codex-app/codex-app-restart.js +0 -1
- package/dist/core/codex-app/codex-app-types.js +0 -1
- package/dist/core/codex-app/codex-app-ui-clobber-guard.js +0 -1
- package/dist/core/codex-app/codex-app-ui-state-snapshot.js +0 -1
- package/dist/core/codex-app/codex-hook-approval-probe.js +0 -1
- package/dist/core/codex-app/codex-hook-lifecycle.js +1 -2
- package/dist/core/codex-app/codex-init-deep.js +0 -1
- package/dist/core/codex-app/codex-skill-sync.js +0 -1
- package/dist/core/codex-app/glm-model-profile.js +0 -1
- package/dist/core/codex-app/glm-profile-installer.js +0 -1
- package/dist/core/codex-app/glm-profile-schema.js +0 -1
- package/dist/core/codex-app/mcp-manager.js +74 -0
- package/dist/core/codex-app/menubar/action-runner.js +68 -0
- package/dist/core/codex-app/menubar/app-bundle.js +55 -0
- package/dist/core/codex-app/menubar/build-stamp.js +25 -0
- package/dist/core/codex-app/menubar/config.js +52 -0
- package/dist/core/codex-app/menubar/constants.js +39 -0
- package/dist/core/codex-app/menubar/generation-transaction-journal.js +111 -0
- package/dist/core/codex-app/menubar/generation-transaction.js +258 -0
- package/dist/core/codex-app/menubar/index.js +10 -0
- package/dist/core/codex-app/menubar/installer.js +367 -0
- package/dist/core/codex-app/menubar/launch-agent.js +226 -0
- package/dist/core/codex-app/menubar/migration.js +32 -0
- package/dist/core/codex-app/menubar/paths.js +43 -0
- package/dist/core/codex-app/menubar/resources.js +112 -0
- package/dist/core/codex-app/menubar/rollback.js +341 -0
- package/dist/core/codex-app/menubar/signature.js +21 -0
- package/dist/core/codex-app/menubar/status.js +146 -0
- package/dist/core/codex-app/menubar/types.js +1 -0
- package/dist/core/codex-app/sks-menubar.js +2 -1889
- package/dist/core/codex-app.js +0 -1
- package/dist/core/codex-compat/codex-0-132.js +0 -1
- package/dist/core/codex-compat/codex-0-133.js +0 -1
- package/dist/core/codex-compat/codex-compat-report.js +0 -1
- package/dist/core/codex-compat/codex-config-policy.js +0 -1
- package/dist/core/codex-compat/codex-hook-events.js +0 -1
- package/dist/core/codex-compat/codex-hook-issues.js +0 -1
- package/dist/core/codex-compat/codex-hook-output-builders.js +0 -1
- package/dist/core/codex-compat/codex-hook-output-normalizer.js +0 -1
- package/dist/core/codex-compat/codex-hook-schema.js +0 -1
- package/dist/core/codex-compat/codex-hook-semantic-validator.js +0 -1
- package/dist/core/codex-compat/codex-hook-warning-detector.js +0 -1
- package/dist/core/codex-compat/codex-release-manifest.js +0 -1
- package/dist/core/codex-compat/codex-schema-snapshot.js +0 -1
- package/dist/core/codex-compat/codex-version-policy.js +0 -1
- package/dist/core/codex-compat/codex-version.js +0 -1
- package/dist/core/codex-control/codex-0138-capability.js +0 -1
- package/dist/core/codex-control/codex-0139-capability.js +0 -1
- package/dist/core/codex-control/codex-0139-doctor-real-probe.js +0 -1
- package/dist/core/codex-control/codex-0139-image-path-real-probe.js +0 -1
- package/dist/core/codex-control/codex-0139-plugin-real-probes.js +0 -1
- package/dist/core/codex-control/codex-0139-probe-runner.js +0 -1
- package/dist/core/codex-control/codex-0139-real-probe-summary.js +0 -1
- package/dist/core/codex-control/codex-0139-real-probes.js +0 -1
- package/dist/core/codex-control/codex-0139-rich-schema-real-probe.js +0 -1
- package/dist/core/codex-control/codex-0139-sandbox-real-probe.js +0 -1
- package/dist/core/codex-control/codex-0139-web-search-probe.js +0 -1
- package/dist/core/codex-control/codex-0140-capability.js +0 -1
- package/dist/core/codex-control/codex-0140-feature-probes.js +0 -1
- package/dist/core/codex-control/codex-0140-probe-runner.js +0 -1
- package/dist/core/codex-control/codex-0140-real-probe-summary.js +0 -1
- package/dist/core/codex-control/codex-0140-real-probes.js +0 -1
- package/dist/core/codex-control/codex-0140-usage-parser.js +0 -1
- package/dist/core/codex-control/codex-0141-capability.js +0 -1
- package/dist/core/codex-control/codex-0144-capability.js +0 -1
- package/dist/core/codex-control/codex-0144-collab-agent-real-probe.js +0 -1
- package/dist/core/codex-control/codex-app-server-v2-client.js +0 -1
- package/dist/core/codex-control/codex-control-plane.js +0 -1
- package/dist/core/codex-control/codex-control-proof.js +0 -1
- package/dist/core/codex-control/codex-event-translator.js +0 -1
- package/dist/core/codex-control/codex-fake-sdk-adapter.js +0 -1
- package/dist/core/codex-control/codex-lb-launch-recovery.js +15 -1
- package/dist/core/codex-control/codex-model-capabilities.js +0 -1
- package/dist/core/codex-control/codex-model-metadata.js +0 -1
- package/dist/core/codex-control/codex-multi-agent-event-normalizer.js +0 -1
- package/dist/core/codex-control/codex-output-schemas.js +0 -1
- package/dist/core/codex-control/codex-reliability-shield.js +0 -1
- package/dist/core/codex-control/codex-sdk-adapter.js +0 -1
- package/dist/core/codex-control/codex-sdk-capability.js +0 -1
- package/dist/core/codex-control/codex-sdk-config-policy.js +0 -1
- package/dist/core/codex-control/codex-sdk-env-policy.js +0 -1
- package/dist/core/codex-control/codex-sdk-sandbox-policy.js +0 -1
- package/dist/core/codex-control/codex-task-runner.js +0 -1
- package/dist/core/codex-control/codex-thread-registry.js +0 -1
- package/dist/core/codex-control/codex-tool-schema-fixtures.js +0 -1
- package/dist/core/codex-control/gpt-final-arbiter.js +0 -1
- package/dist/core/codex-control/gpt-final-context-compressor.js +0 -1
- package/dist/core/codex-control/gpt-final-proof-pack.js +0 -1
- package/dist/core/codex-control/gpt-final-review-schema.js +0 -1
- package/dist/core/codex-control/model-call-concurrency.js +0 -1
- package/dist/core/codex-control/python-codex-sdk-adapter.js +0 -1
- package/dist/core/codex-control/python-codex-sdk-event-translator.js +0 -1
- package/dist/core/codex-control/schemas/agent-worker-result.schema.js +0 -1
- package/dist/core/codex-exec-output-schema.js +0 -1
- package/dist/core/codex-hooks/codex-hook-actual-discovery.js +0 -1
- package/dist/core/codex-hooks/codex-hook-config-writer.js +0 -1
- package/dist/core/codex-hooks/codex-hook-hash.js +0 -1
- package/dist/core/codex-hooks/codex-hook-managed-install.js +0 -1
- package/dist/core/codex-hooks/codex-hook-official-hash-oracle.js +0 -1
- package/dist/core/codex-hooks/codex-hook-official-parity.js +0 -1
- package/dist/core/codex-hooks/codex-hook-state-writer.js +0 -1
- package/dist/core/codex-hooks/codex-hook-trust-doctor.js +0 -1
- package/dist/core/codex-hooks/codex-hook-trust-state.js +0 -1
- package/dist/core/codex-lb/codex-lb-env.js +16 -7
- package/dist/core/codex-lb/codex-lb-setup.js +1 -2
- package/dist/core/codex-lb/codex-lb-tool-catalog.js +0 -1
- package/dist/core/codex-lb/codex-lb-tool-output-recovery.js +0 -1
- package/dist/core/codex-lb-circuit.js +0 -1
- package/dist/core/codex-model-guard.js +0 -1
- package/dist/core/codex-native/codex-native-capability-cache.js +0 -1
- package/dist/core/codex-native/codex-native-feature-broker.js +0 -1
- package/dist/core/codex-native/codex-native-feature-matrix.js +0 -1
- package/dist/core/codex-native/codex-native-harness-compat.js +0 -1
- package/dist/core/codex-native/codex-native-interop-policy.js +0 -1
- package/dist/core/codex-native/codex-native-invocation-router.js +0 -1
- package/dist/core/codex-native/codex-native-pattern-analysis.js +0 -1
- package/dist/core/codex-native/codex-native-reference-cache.js +0 -1
- package/dist/core/codex-native/codex-native-reference-evidence.js +0 -1
- package/dist/core/codex-native/codex-native-reference-source.js +0 -1
- package/dist/core/codex-native/codex-native-rename-map.js +0 -1
- package/dist/core/codex-native/codex-native-repair-transaction.js +0 -1
- package/dist/core/codex-native/core-skill-integrity.js +2 -3
- package/dist/core/codex-native/core-skill-manifest.js +36 -9
- package/dist/core/codex-native/native-capability-postcheck.js +0 -1
- package/dist/core/codex-native/native-capability-repair-matrix.js +0 -1
- package/dist/core/codex-native/native-capability-repair.js +0 -1
- package/dist/core/codex-native/native-media-computer-repair.js +0 -1
- package/dist/core/codex-native/project-skill-dedupe.js +0 -1
- package/dist/core/codex-native/skill-name-canonicalizer.js +0 -1
- package/dist/core/codex-native/skill-registry-ledger.js +0 -1
- package/dist/core/codex-plugins/codex-plugin-cache.js +0 -1
- package/dist/core/codex-plugins/codex-plugin-diff.js +0 -1
- package/dist/core/codex-plugins/codex-plugin-json.js +0 -1
- package/dist/core/codex-plugins/codex-plugin-repair.js +0 -1
- package/dist/core/codex-runtime/codex-desktop-config-policy.js +0 -1
- package/dist/core/codex-runtime/resolve-codex-runtime.js +0 -1
- package/dist/core/commands/agent-bridge-command.js +0 -1
- package/dist/core/commands/autoresearch-command.js +0 -1
- package/dist/core/commands/basic-cli.js +105 -51
- package/dist/core/commands/bench-command.js +0 -1
- package/dist/core/commands/check-command.js +0 -1
- package/dist/core/commands/code-structure-command.js +0 -1
- package/dist/core/commands/command-suggestions.js +0 -1
- package/dist/core/commands/command-utils.js +3 -4
- package/dist/core/commands/computer-use-command.js +0 -1
- package/dist/core/commands/daemon-command.js +0 -1
- package/dist/core/commands/dfix-command.js +0 -1
- package/dist/core/commands/eval-command.js +0 -1
- package/dist/core/commands/fast-mode-command.js +0 -1
- package/dist/core/commands/gate-result-contract.js +0 -1
- package/dist/core/commands/gates-command.js +0 -1
- package/dist/core/commands/gc-command.js +0 -1
- package/dist/core/commands/git-command.js +3 -4
- package/dist/core/commands/glm-command.js +28 -4
- package/dist/core/commands/goal-command.js +0 -1
- package/dist/core/commands/gx-command.js +0 -1
- package/dist/core/commands/harness-command.js +0 -1
- package/dist/core/commands/hproof-command.js +0 -1
- package/dist/core/commands/image-ux-review-command.js +0 -1
- package/dist/core/commands/local-model-command.js +0 -1
- package/dist/core/commands/loop-command.js +0 -1
- package/dist/core/commands/mad-sks-command.js +91 -246
- package/dist/core/commands/mcp-config-command.js +212 -0
- package/dist/core/commands/mcp-server-command.js +0 -1
- package/dist/core/commands/menubar-command.js +60 -5
- package/dist/core/commands/naruto-command.js +42 -100
- package/dist/core/commands/paths-command.js +0 -1
- package/dist/core/commands/perf-command.js +0 -1
- package/dist/core/commands/pipeline-command.js +1 -2
- package/dist/core/commands/plan-command.js +0 -1
- package/dist/core/commands/ppt-command.js +0 -1
- package/dist/core/commands/profile-command.js +0 -1
- package/dist/core/commands/proof-field-command.js +0 -1
- package/dist/core/commands/qa-loop-command.js +0 -1
- package/dist/core/commands/recallpulse-command.js +0 -1
- package/dist/core/commands/release-command.js +0 -1
- package/dist/core/commands/remote-command.js +100 -0
- package/dist/core/commands/research-command.js +2 -3
- package/dist/core/commands/review-command.js +0 -1
- package/dist/core/commands/rollback-command.js +0 -1
- package/dist/core/commands/route-command.js +0 -1
- package/dist/core/commands/route-success-helpers.js +0 -1
- package/dist/core/commands/run-command.js +4 -24
- package/dist/core/commands/rust-command.js +0 -1
- package/dist/core/commands/seo-command.js +0 -1
- package/dist/core/commands/skill-dream-command.js +0 -1
- package/dist/core/commands/status-command.js +1 -2
- package/dist/core/commands/stop-gate-command.js +0 -1
- package/dist/core/commands/task-command.js +0 -1
- package/dist/core/commands/telegram-command.js +143 -0
- package/dist/core/commands/triwiki-command.js +0 -1
- package/dist/core/commands/trust-command.js +0 -1
- package/dist/core/commands/ui-command.js +1 -2
- package/dist/core/commands/uninstall-command.js +0 -1
- package/dist/core/commands/validate-artifacts-command.js +0 -1
- package/dist/core/commands/wiki-command.js +15 -10
- package/dist/core/commands/wrongness-command.js +0 -1
- package/dist/core/computer-use-live-evidence.js +0 -1
- package/dist/core/computer-use-status.js +0 -1
- package/dist/core/config/config-migration-journal.js +0 -1
- package/dist/core/config/managed-config-merge.js +0 -1
- package/dist/core/config/secret-preservation.js +0 -1
- package/dist/core/config/supabase-secret-preservation.js +0 -1
- package/dist/core/context7-client.js +0 -1
- package/dist/core/daemon/sksd-client.js +0 -1
- package/dist/core/daemon/sksd-hook-daemon-entrypoint.js +0 -1
- package/dist/core/daemon/sksd-hook-daemon.js +0 -1
- package/dist/core/daemon/sksd-hook-dispatch.js +0 -1
- package/dist/core/daemon/sksd-ipc.js +0 -1
- package/dist/core/daemon/sksd.js +0 -1
- package/dist/core/db-safety.js +32 -32
- package/dist/core/decision-contract.js +0 -1
- package/dist/core/decision-lattice.js +5 -6
- package/dist/core/dfix/codex-handoff.js +0 -1
- package/dist/core/dfix/dfix-cache.js +0 -1
- package/dist/core/dfix/error-signature.js +0 -1
- package/dist/core/dfix/patch-runner.js +0 -1
- package/dist/core/dfix/patch-templates.js +0 -1
- package/dist/core/dfix/path-decision.js +0 -1
- package/dist/core/dfix/performance.js +0 -1
- package/dist/core/dfix/root-cause-ranking.js +0 -1
- package/dist/core/dfix/verification-runner.js +0 -1
- package/dist/core/dfix/verification-selector.js +0 -1
- package/dist/core/dfix.js +0 -1
- package/dist/core/doctor/browser-use-repair.js +0 -1
- package/dist/core/doctor/codex-0138-doctor.js +0 -1
- package/dist/core/doctor/codex-0139-doctor.js +0 -1
- package/dist/core/doctor/codex-doctor-bridge.js +0 -1
- package/dist/core/doctor/codex-startup-config-repair.js +3 -2
- package/dist/core/doctor/command-alias-cleanup.js +157 -24
- package/dist/core/doctor/computer-use-repair.js +0 -1
- package/dist/core/doctor/confirm-repair.js +0 -1
- package/dist/core/doctor/context7-mcp-repair.js +1 -2
- package/dist/core/doctor/current-project-guidance-nested.js +76 -0
- package/dist/core/doctor/current-project-guidance.js +343 -0
- package/dist/core/doctor/doctor-codex-startup-repair.js +0 -1
- package/dist/core/doctor/doctor-context7-repair.js +0 -1
- package/dist/core/doctor/doctor-dirty-planner.js +0 -1
- package/dist/core/doctor/doctor-idempotence.js +0 -1
- package/dist/core/doctor/doctor-native-capability-repair.js +0 -1
- package/dist/core/doctor/doctor-readiness-matrix.js +0 -6
- package/dist/core/doctor/doctor-repair-postcheck.js +0 -1
- package/dist/core/doctor/doctor-transaction.js +0 -1
- package/dist/core/doctor/doctor-zellij-repair.js +0 -1
- package/dist/core/doctor/global-sks-install-cleanup.js +0 -1
- package/dist/core/doctor/imagegen-repair.js +0 -1
- package/dist/core/doctor/legacy-global-hook-cleanup.js +0 -1
- package/dist/core/doctor/macos-tcc-diagnostic.js +0 -1
- package/dist/core/doctor/mcp-transport-collision-repair.js +0 -1
- package/dist/core/doctor/retired-auto-review-config.js +5 -0
- package/dist/core/doctor/retired-managed-projection-residue.js +195 -0
- package/dist/core/doctor/retired-managed-residue-artifact-helpers.js +135 -0
- package/dist/core/doctor/retired-managed-residue-artifacts.js +33 -0
- package/dist/core/doctor/retired-managed-residue-missions.js +393 -0
- package/dist/core/doctor/retired-managed-residue-private.js +73 -0
- package/dist/core/doctor/retired-managed-residue-runtime.js +133 -0
- package/dist/core/doctor/retired-managed-residue-state.js +270 -0
- package/dist/core/doctor/retired-managed-residue.js +40 -0
- package/dist/core/doctor/supabase-mcp-repair.js +2 -3
- package/dist/core/dogfood-loop.js +0 -1
- package/dist/core/effort-orchestrator.js +0 -1
- package/dist/core/errors/blocker-humanizer.js +0 -1
- package/dist/core/errors/next-action-map.js +0 -1
- package/dist/core/evaluation.js +4 -5
- package/dist/core/evidence/evidence-dedupe.js +0 -1
- package/dist/core/evidence/evidence-freshness.js +0 -1
- package/dist/core/evidence/evidence-proof-linker.js +0 -1
- package/dist/core/evidence/evidence-redaction.js +0 -1
- package/dist/core/evidence/evidence-router.js +0 -1
- package/dist/core/evidence/evidence-schema.js +0 -1
- package/dist/core/evidence/evidence-store.js +0 -1
- package/dist/core/feature-fixture-executor.js +1 -2
- package/dist/core/feature-fixture-runner.js +0 -1
- package/dist/core/feature-fixtures.js +12 -30
- package/dist/core/feature-registry.js +66 -61
- package/dist/core/features/feature-completion.js +0 -1
- package/dist/core/features/feature-fixtures.js +0 -1
- package/dist/core/features/feature-registry.js +0 -1
- package/dist/core/from-chat-img-forensics.js +0 -1
- package/dist/core/fsx.js +6 -9
- package/dist/core/git/git-integration-worktree.js +0 -1
- package/dist/core/git/git-repo-detection.js +0 -1
- package/dist/core/git/git-worktree-cache-policy.js +0 -1
- package/dist/core/git/git-worktree-capability.js +0 -1
- package/dist/core/git/git-worktree-checkpoint.js +0 -1
- package/dist/core/git/git-worktree-cleanup.js +0 -1
- package/dist/core/git/git-worktree-conflict-resolver.js +0 -1
- package/dist/core/git/git-worktree-cross-rebase.js +0 -1
- package/dist/core/git/git-worktree-diff.js +0 -1
- package/dist/core/git/git-worktree-manager.js +0 -1
- package/dist/core/git/git-worktree-merge-queue.js +0 -1
- package/dist/core/git/git-worktree-patch-envelope.js +0 -1
- package/dist/core/git/git-worktree-pool.js +0 -1
- package/dist/core/git/git-worktree-root.js +0 -1
- package/dist/core/git/git-worktree-runner.js +0 -1
- package/dist/core/git-hygiene/collaboration-trust.js +0 -1
- package/dist/core/git-hygiene/git-doctor.js +1 -2
- package/dist/core/git-hygiene/git-policy.js +6 -7
- package/dist/core/git-hygiene/git-precommit.js +1 -2
- package/dist/core/git-hygiene/git-status.js +0 -1
- package/dist/core/git-hygiene/gitattributes-writer.js +0 -1
- package/dist/core/git-hygiene/gitignore-writer.js +0 -1
- package/dist/core/git-hygiene/shared-memory-manifest.js +0 -1
- package/dist/core/git-hygiene/shared-memory-publish.js +0 -1
- package/dist/core/git-hygiene/shared-memory-security.js +0 -1
- package/dist/core/git-hygiene/validators.js +1 -2
- package/dist/core/git-simple.js +0 -1
- package/dist/core/goal-workflow.js +0 -3
- package/dist/core/gx-renderer.js +0 -1
- package/dist/core/harness-conflicts.js +0 -1
- package/dist/core/harness-guard.js +0 -1
- package/dist/core/hooks-runtime/code-pack-freshness-preflight.js +11 -16
- package/dist/core/hooks-runtime/hook-invocation-dedupe.js +0 -1
- package/dist/core/hooks-runtime/hook-io.js +0 -3
- package/dist/core/hooks-runtime/light-turn.js +0 -1
- package/dist/core/hooks-runtime/naruto-decision-gate.js +184 -0
- package/dist/core/hooks-runtime/payload-signals.js +0 -1
- package/dist/core/hooks-runtime/skill-reconcile-preflight.js +2 -3
- package/dist/core/hooks-runtime/stop-repeat-guard.js +88 -0
- package/dist/core/hooks-runtime/tool-output-quarantine.js +0 -1
- package/dist/core/hooks-runtime.js +72 -180
- package/dist/core/hproof.js +0 -1
- package/dist/core/image/image-artifact-path-contract.js +0 -1
- package/dist/core/image/image-artifact-registry.js +0 -1
- package/dist/core/image-ux-review/callout-extraction.js +0 -1
- package/dist/core/image-ux-review/codex-app-generated-image-discovery.js +0 -1
- package/dist/core/image-ux-review/fix-loop.js +0 -1
- package/dist/core/image-ux-review/fix-task-planner.js +0 -1
- package/dist/core/image-ux-review/imagegen-adapter.js +0 -1
- package/dist/core/image-ux-review/patch-handoff.js +0 -1
- package/dist/core/image-ux-review/real-callout-extractor.js +0 -1
- package/dist/core/image-ux-review/recapture.js +0 -1
- package/dist/core/image-ux-review.js +0 -1
- package/dist/core/imagegen/gpt-image-2-request-validator.js +0 -1
- package/dist/core/imagegen/imagegen-auth-readiness.js +0 -1
- package/dist/core/imagegen/imagegen-capability.js +0 -1
- package/dist/core/imagegen/require-imagegen.js +0 -1
- package/dist/core/init/skills.js +664 -85
- package/dist/core/init.js +51 -34
- package/dist/core/install/installed-package-smoke.js +340 -34
- package/dist/core/json-schema-validator.js +0 -1
- package/dist/core/language-preference.js +0 -1
- package/dist/core/lean-engineering-policy.js +0 -1
- package/dist/core/local-llm/local-collaboration-policy.js +0 -1
- package/dist/core/local-llm/local-llm-backpressure.js +0 -1
- package/dist/core/local-llm/local-llm-capability.js +0 -1
- package/dist/core/local-llm/local-llm-client.js +0 -1
- package/dist/core/local-llm/local-llm-config.js +0 -1
- package/dist/core/local-llm/local-llm-context-cache.js +0 -1
- package/dist/core/local-llm/local-llm-control-adapter.js +0 -1
- package/dist/core/local-llm/local-llm-json-repair.js +0 -1
- package/dist/core/local-llm/local-llm-metrics.js +0 -1
- package/dist/core/local-llm/local-llm-ollama-client.js +0 -1
- package/dist/core/local-llm/local-llm-openai-compatible-client.js +0 -1
- package/dist/core/local-llm/local-llm-prompt-cache.js +0 -1
- package/dist/core/local-llm/local-llm-scheduler.js +0 -1
- package/dist/core/local-llm/local-llm-schema-enforcer.js +0 -1
- package/dist/core/local-llm/local-llm-smoke.js +0 -1
- package/dist/core/local-llm/local-llm-warmup.js +0 -1
- package/dist/core/local-llm/local-worker-eligibility.js +0 -1
- package/dist/core/locks/file-lock.js +0 -1
- package/dist/core/loop-blocker.js +0 -1
- package/dist/core/loops/goal-to-loop-compat.js +0 -1
- package/dist/core/loops/loop-artifacts.js +0 -1
- package/dist/core/loops/loop-checkpoint.js +0 -1
- package/dist/core/loops/loop-concurrency-budget.js +0 -1
- package/dist/core/loops/loop-continuation-enforcer.js +0 -1
- package/dist/core/loops/loop-decomposer.js +1 -2
- package/dist/core/loops/loop-final-arbiter-contract.js +0 -1
- package/dist/core/loops/loop-finalizer.js +0 -1
- package/dist/core/loops/loop-fixture-policy.js +0 -1
- package/dist/core/loops/loop-gate-ladder.js +0 -1
- package/dist/core/loops/loop-gate-registry.js +0 -1
- package/dist/core/loops/loop-gate-runner.js +0 -1
- package/dist/core/loops/loop-gate-selector.js +3 -4
- package/dist/core/loops/loop-gpt-final-arbiter.js +0 -1
- package/dist/core/loops/loop-integration-merge.js +0 -1
- package/dist/core/loops/loop-interrupt-registry.js +0 -1
- package/dist/core/loops/loop-iteration-runner.js +0 -1
- package/dist/core/loops/loop-lease.js +0 -1
- package/dist/core/loops/loop-merge-strategy.js +0 -1
- package/dist/core/loops/loop-mutation-ledger.js +0 -1
- package/dist/core/loops/loop-observability.js +0 -1
- package/dist/core/loops/loop-owner-inference.js +0 -1
- package/dist/core/loops/loop-owner-ledger.js +0 -1
- package/dist/core/loops/loop-planner.js +0 -1
- package/dist/core/loops/loop-proof-summary.js +0 -1
- package/dist/core/loops/loop-proof.js +0 -1
- package/dist/core/loops/loop-risk-classifier.js +2 -3
- package/dist/core/loops/loop-runtime-control.js +0 -1
- package/dist/core/loops/loop-runtime.js +0 -1
- package/dist/core/loops/loop-scheduler.js +0 -1
- package/dist/core/loops/loop-schema.js +0 -1
- package/dist/core/loops/loop-side-effect-scanner.js +0 -1
- package/dist/core/loops/loop-state.js +0 -1
- package/dist/core/loops/loop-worker-prompts.js +0 -1
- package/dist/core/loops/loop-worker-runtime.js +1 -3
- package/dist/core/loops/loop-worktree-runtime.js +0 -1
- package/dist/core/mad-sks/audit-ledger.js +0 -1
- package/dist/core/mad-sks/authorization-manifest.js +0 -1
- package/dist/core/mad-sks/executors/computer-use-executor.js +0 -1
- package/dist/core/mad-sks/executors/db-write-executor.js +1 -2
- package/dist/core/mad-sks/executors/executor-base.js +0 -1
- package/dist/core/mad-sks/executors/file-write-executor.js +0 -1
- package/dist/core/mad-sks/executors/index.js +0 -1
- package/dist/core/mad-sks/executors/package-install-executor.js +0 -1
- package/dist/core/mad-sks/executors/service-control-executor.js +0 -1
- package/dist/core/mad-sks/executors/shell-command-executor.js +0 -1
- package/dist/core/mad-sks/executors/sql-plane-executor.js +12 -13
- package/dist/core/mad-sks/guard-middleware.js +0 -1
- package/dist/core/mad-sks/immutable-harness-guard.js +0 -1
- package/dist/core/mad-sks/permission-model.js +0 -1
- package/dist/core/mad-sks/proof-evidence.js +0 -1
- package/dist/core/mad-sks/rollback-apply.js +0 -1
- package/dist/core/mad-sks/rollback-plan.js +0 -1
- package/dist/core/mad-sks/shell-argv-classifier.js +0 -1
- package/dist/core/mad-sks/sql-plane/capability.js +202 -0
- package/dist/core/{mad-db/mad-db-coordinator.js → mad-sks/sql-plane/coordinator.js} +88 -87
- package/dist/core/mad-sks/sql-plane/ledger.js +36 -0
- package/dist/core/{mad-db/mad-db-lock.js → mad-sks/sql-plane/lock.js} +5 -6
- package/dist/core/{mad-db/mad-db-executor.js → mad-sks/sql-plane/mcp-executor.js} +24 -25
- package/dist/core/{mad-db/mad-db-operation-store.js → mad-sks/sql-plane/operation-store.js} +18 -19
- package/dist/core/mad-sks/sql-plane/paths.js +16 -0
- package/dist/core/mad-sks/sql-plane/policy-resolver.js +127 -0
- package/dist/core/{mad-db/mad-db-policy.js → mad-sks/sql-plane/policy.js} +29 -32
- package/dist/core/{mad-db/mad-db-postconditions.js → mad-sks/sql-plane/postconditions.js} +4 -5
- package/dist/core/{mad-db/mad-db-recovery.js → mad-sks/sql-plane/recovery.js} +8 -8
- package/dist/core/{mad-db/mad-db-result-lifecycle.js → mad-sks/sql-plane/result-lifecycle.js} +13 -14
- package/dist/core/{mad-db/mad-db-runtime-profile.js → mad-sks/sql-plane/runtime-profile.js} +16 -16
- package/dist/core/{mad-db/mad-db-target.js → mad-sks/sql-plane/target.js} +12 -13
- package/dist/core/mad-sks/write-guard.js +0 -1
- package/dist/core/managed-assets/managed-assets-manifest.js +185 -36
- package/dist/core/managed-path-safety.js +287 -0
- package/dist/core/managed-paths.js +0 -1
- package/dist/core/mcp/mcp-0-134-policy.js +0 -1
- package/dist/core/mcp/mcp-config-preservation.js +0 -1
- package/dist/core/mcp/mcp-plugin-inventory.js +0 -1
- package/dist/core/mcp/mcp-server-policy.js +2 -3
- package/dist/core/mcp/mcp-tool-name-normalizer.js +0 -1
- package/dist/core/mcp-config/backup.js +102 -0
- package/dist/core/mcp-config/codex-cli-adapter.js +165 -0
- package/dist/core/mcp-config/config-reader.js +148 -0
- package/dist/core/mcp-config/effective-merge.js +24 -0
- package/dist/core/mcp-config/guarded-patch.js +259 -0
- package/dist/core/mcp-config/health-check.js +324 -0
- package/dist/core/mcp-config/index.js +14 -0
- package/dist/core/mcp-config/inventory.js +82 -0
- package/dist/core/mcp-config/mutation.js +366 -0
- package/dist/core/mcp-config/oauth.js +44 -0
- package/dist/core/mcp-config/redaction.js +84 -0
- package/dist/core/mcp-config/restore.js +106 -0
- package/dist/core/mcp-config/scope.js +69 -0
- package/dist/core/mcp-config/secret-policy.js +196 -0
- package/dist/core/mcp-config/types.js +8 -0
- package/dist/core/memory-governor.js +0 -1
- package/dist/core/memory-summary.js +0 -1
- package/dist/core/migration/migration-transaction-journal.js +0 -1
- package/dist/core/mission.js +0 -1
- package/dist/core/mistake-memory.js +0 -1
- package/dist/core/mistake-recall.js +0 -1
- package/dist/core/naruto/hardware-capacity-probe.js +0 -1
- package/dist/core/naruto/naruto-active-pool.js +0 -1
- package/dist/core/naruto/naruto-allocation-policy.js +0 -1
- package/dist/core/naruto/naruto-backpressure.js +0 -1
- package/dist/core/naruto/naruto-concurrency-governor.js +14 -15
- package/dist/core/naruto/naruto-finalizer.js +0 -1
- package/dist/core/naruto/naruto-generation-scheduler.js +0 -1
- package/dist/core/naruto/naruto-gpt-final-pack.js +0 -1
- package/dist/core/naruto/naruto-loop-mesh.js +0 -1
- package/dist/core/naruto/naruto-loop-worker-router.js +0 -1
- package/dist/core/naruto/naruto-parallel-patch-apply.js +0 -1
- package/dist/core/naruto/naruto-patch-transaction-batch.js +0 -1
- package/dist/core/naruto/naruto-real-worker-child.js +0 -1
- package/dist/core/naruto/naruto-real-worker-runtime.js +1 -2
- package/dist/core/naruto/naruto-real-write-proof.js +1 -2
- package/dist/core/naruto/naruto-rebalance-policy.js +0 -1
- package/dist/core/naruto/naruto-role-policy.js +0 -1
- package/dist/core/naruto/naruto-task-hints.js +0 -1
- package/dist/core/naruto/naruto-verification-dag.js +0 -1
- package/dist/core/naruto/naruto-verification-pool.js +0 -1
- package/dist/core/naruto/naruto-work-graph.js +6 -7
- package/dist/core/naruto/naruto-work-item.js +0 -1
- package/dist/core/naruto/naruto-write-e2e.js +1 -2
- package/dist/core/naruto/normalize-worker-prompt-text.js +0 -1
- package/dist/core/naruto/resource-pressure-monitor.js +0 -1
- package/dist/core/naruto/solution-tournament.js +0 -1
- package/dist/core/no-question-guard.js +0 -1
- package/dist/core/official-subagent-review-policy.js +17 -0
- package/dist/core/ops/diagnostics-bundle.js +0 -1
- package/dist/core/ops/ops-maturity-scorecard.js +0 -1
- package/dist/core/ops/reporting.js +0 -1
- package/dist/core/ops/upgrade-migration-fixtures.js +1 -2
- package/dist/core/perf/fsx-hotpath.js +0 -1
- package/dist/core/perf/import-graph-budget.js +0 -1
- package/dist/core/perf/lru-cache.js +0 -1
- package/dist/core/perf/perf-budget.js +0 -1
- package/dist/core/perf/performance-profiler.js +0 -1
- package/dist/core/perf/release-latency-slo.js +317 -0
- package/dist/core/perf-bench.js +1 -2
- package/dist/core/performance-budgets.json +6 -6
- package/dist/core/permission-gates.js +0 -1
- package/dist/core/pipeline/active-context.js +0 -1
- package/dist/core/pipeline/agent-stage-policy.js +0 -1
- package/dist/core/pipeline/final-gpt-patch-stage.js +0 -1
- package/dist/core/pipeline/final-gpt-review-stage.js +0 -1
- package/dist/core/pipeline/finalize-pipeline-result.js +0 -1
- package/dist/core/pipeline/gpt-final-required.js +0 -1
- package/dist/core/pipeline/pipeline-plan-writer.js +0 -1
- package/dist/core/pipeline/plan-schema.js +0 -1
- package/dist/core/pipeline/prompt-context-answer.js +0 -1
- package/dist/core/pipeline/prompt-context-computer-use.js +0 -1
- package/dist/core/pipeline/prompt-context-dfix.js +0 -1
- package/dist/core/pipeline/prompt-context.js +0 -1
- package/dist/core/pipeline/route-prep-db.js +0 -1
- package/dist/core/pipeline/route-prep-gx.js +0 -1
- package/dist/core/pipeline/route-prep-image-ux.js +0 -1
- package/dist/core/pipeline/route-prep-ppt.js +0 -1
- package/dist/core/pipeline/route-prep-qa.js +0 -1
- package/dist/core/pipeline/route-prep-research.js +0 -1
- package/dist/core/pipeline/route-prep.js +0 -1
- package/dist/core/pipeline/stage-policy.js +0 -1
- package/dist/core/pipeline/stop-gate-context7.js +0 -1
- package/dist/core/pipeline/stop-gate-proof.js +0 -1
- package/dist/core/pipeline/stop-gate-subagents.js +0 -1
- package/dist/core/pipeline/stop-gate.js +0 -1
- package/dist/core/pipeline/validation.js +0 -1
- package/dist/core/pipeline-internals/runtime-core.js +66 -144
- package/dist/core/pipeline-internals/runtime-gates.js +14 -139
- package/dist/core/pipeline.js +0 -1
- package/dist/core/ppt/artifacts.js +0 -1
- package/dist/core/ppt/html.js +0 -1
- package/dist/core/ppt/style-tokens.js +0 -1
- package/dist/core/ppt-imagegen-review.js +0 -1
- package/dist/core/ppt-review/deck-issue-ledger.js +0 -1
- package/dist/core/ppt-review/index.js +0 -1
- package/dist/core/ppt-review/ppt-fix-task-planner.js +0 -1
- package/dist/core/ppt-review/ppt-patch-handoff.js +0 -1
- package/dist/core/ppt-review/reexport-rereview.js +0 -1
- package/dist/core/ppt-review/slide-exporter.js +0 -1
- package/dist/core/ppt-review/slide-imagegen-review.js +0 -1
- package/dist/core/ppt-review/slide-issue-extraction.js +0 -1
- package/dist/core/ppt.js +2 -3
- package/dist/core/preflight/parallel-preflight-engine.js +16 -4
- package/dist/core/probes/probe-memoization.js +0 -1
- package/dist/core/product-design-app-server.js +0 -1
- package/dist/core/product-design-plugin.js +9 -10
- package/dist/core/prompt/prompt-placeholder-guard.js +0 -1
- package/dist/core/prompt-context-builder.js +0 -1
- package/dist/core/proof/auto-finalize.js +3 -74
- package/dist/core/proof/claim-ledger.js +0 -1
- package/dist/core/proof/command-ledger.js +0 -1
- package/dist/core/proof/evidence-collector.js +0 -1
- package/dist/core/proof/fake-real-proof-policy.js +208 -60
- package/dist/core/proof/file-change-ledger.js +0 -1
- package/dist/core/proof/proof-reader.js +0 -1
- package/dist/core/proof/proof-redaction.test-helper.js +0 -1
- package/dist/core/proof/proof-schema.js +0 -1
- package/dist/core/proof/proof-writer.js +0 -1
- package/dist/core/proof/root-cause-policy.js +0 -1
- package/dist/core/proof/route-adapter.js +9 -6
- package/dist/core/proof/route-finalizer-fixtures.js +1 -2
- package/dist/core/proof/route-finalizer-policy.js +0 -1
- package/dist/core/proof/route-finalizer.js +0 -1
- package/dist/core/proof/route-proof-gate.js +14 -31
- package/dist/core/proof/route-proof-policy.js +8 -10
- package/dist/core/proof/runtime-truth-matrix.js +44 -66
- package/dist/core/proof/selftest-proof-fixtures.js +12 -15
- package/dist/core/proof/validation.js +0 -1
- package/dist/core/proof-field.js +17 -18
- package/dist/core/provider/model-router.js +15 -7
- package/dist/core/provider/provider-badge.js +0 -1
- package/dist/core/provider/provider-context.js +1 -2
- package/dist/core/provider/provider-self-heal.js +0 -1
- package/dist/core/providers/glm/bench/glm-bench-comparison.js +0 -1
- package/dist/core/providers/glm/bench/glm-bench-fixture.js +0 -1
- package/dist/core/providers/glm/bench/glm-bench-model-lock-proof.js +0 -1
- package/dist/core/providers/glm/bench/glm-bench-report.js +0 -1
- package/dist/core/providers/glm/bench/glm-benchmark-runner.js +0 -1
- package/dist/core/providers/glm/bench/glm-benchmark-types.js +0 -1
- package/dist/core/providers/glm/bench/glm-direct-bench-runner.js +0 -1
- package/dist/core/providers/glm/glm-52-profile.js +0 -1
- package/dist/core/providers/glm/glm-52-request.js +0 -1
- package/dist/core/providers/glm/glm-52-response-guard.js +0 -1
- package/dist/core/providers/glm/glm-52-settings.js +0 -1
- package/dist/core/providers/glm/glm-context-budget.js +0 -1
- package/dist/core/providers/glm/glm-context-cache.js +0 -1
- package/dist/core/providers/glm/glm-direct-run.js +0 -1
- package/dist/core/providers/glm/glm-interactive-launch.js +1 -2
- package/dist/core/providers/glm/glm-latency-trace.js +0 -1
- package/dist/core/providers/glm/glm-loop-guard.js +0 -1
- package/dist/core/providers/glm/glm-mad-launch.js +0 -1
- package/dist/core/providers/glm/glm-mad-mode.js +0 -1
- package/dist/core/providers/glm/glm-model-meta-cache.js +0 -1
- package/dist/core/providers/glm/glm-patch-apply.js +16 -2
- package/dist/core/providers/glm/glm-patch-parser.js +0 -1
- package/dist/core/providers/glm/glm-profile-resolver.js +0 -1
- package/dist/core/providers/glm/glm-readiness.js +0 -1
- package/dist/core/providers/glm/glm-reasoning-policy.js +0 -1
- package/dist/core/providers/glm/glm-request-cache.js +0 -1
- package/dist/core/providers/glm/glm-run-controller.js +0 -1
- package/dist/core/providers/glm/glm-run-state.js +0 -1
- package/dist/core/providers/glm/glm-run-timeout.js +0 -1
- package/dist/core/providers/glm/glm-speed-context.js +0 -1
- package/dist/core/providers/glm/glm-speed-gate.js +0 -1
- package/dist/core/providers/glm/glm-speed-output-parser.js +0 -1
- package/dist/core/providers/glm/glm-tool-schema-cache.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-apply-transaction.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-artifacts.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-bench.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-budget.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-combined-patch.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-command.js +2 -3
- package/dist/core/providers/glm/naruto/glm-naruto-concurrency-governor.js +2 -3
- package/dist/core/providers/glm/naruto/glm-naruto-conflict-graph.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-critical-path.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-decomposer.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-file-lease.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-final-seal.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-finalizer.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-hunk-conflict.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-hunk-parser.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-isolation-policy.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-judge.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-merge-planner.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-metrics.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-orchestrator.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-parallelism-summary.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-patch-candidate-gate.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-patch-candidate-parser.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-patch-envelope.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-quorum.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-rate-limiter.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-repair-wave.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-requirement-coverage.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-requirement-ledger.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-scoreboard.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-secret-audit.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-session-id.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-shard-planner.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-stage-scheduler.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-targeted-checks.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-task-size-classifier.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-terminal.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-trace.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-types.js +2 -3
- package/dist/core/providers/glm/naruto/glm-naruto-usage-extractor.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-verifier-output.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-work-graph.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worker-artifacts.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worker-pool.js +1 -2
- package/dist/core/providers/glm/naruto/glm-naruto-worker-runtime.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worker-scheduler.js +1 -2
- package/dist/core/providers/glm/naruto/glm-naruto-worker.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worktree-cleanup.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worktree-manager.js +16 -2
- package/dist/core/providers/glm/naruto/glm-naruto-worktree-worker.js +0 -1
- package/dist/core/providers/glm/naruto/glm-naruto-worktree.js +16 -2
- package/dist/core/providers/openrouter/openrouter-client.js +0 -1
- package/dist/core/providers/openrouter/openrouter-error.js +0 -1
- package/dist/core/providers/openrouter/openrouter-provider-health.js +0 -1
- package/dist/core/providers/openrouter/openrouter-secret-store.js +0 -1
- package/dist/core/providers/openrouter/openrouter-stream.js +0 -1
- package/dist/core/providers/openrouter/openrouter-types.js +0 -1
- package/dist/core/python-tools/python-tool-runner.js +0 -1
- package/dist/core/qa-loop/qa-app-server-driver.js +0 -1
- package/dist/core/qa-loop/qa-contract.js +0 -1
- package/dist/core/qa-loop/qa-gate.js +0 -1
- package/dist/core/qa-loop/qa-loop-app-handoff-confirmation.js +0 -1
- package/dist/core/qa-loop/qa-loop-budget-policy.js +0 -1
- package/dist/core/qa-loop/qa-runtime-artifacts.js +0 -1
- package/dist/core/qa-loop/qa-surface-router.js +0 -1
- package/dist/core/qa-loop/qa-types.js +0 -1
- package/dist/core/qa-loop.js +2 -3
- package/dist/core/quality/competitor-scorecard.js +0 -1
- package/dist/core/questions.js +3 -4
- package/dist/core/recallpulse/policy.js +1 -2
- package/dist/core/recallpulse.js +6 -7
- package/dist/core/release/critical-path-ledger.js +0 -1
- package/dist/core/release/extreme-parallel-scheduler.js +0 -1
- package/dist/core/release/file-ownership.js +153 -0
- package/dist/core/release/gate-cache.js +0 -1
- package/dist/core/release/gate-manifest.js +8 -8
- package/dist/core/release/gate-pack-assertion.js +0 -1
- package/dist/core/release/gate-pack-fixture-cache.js +0 -1
- package/dist/core/release/gate-pack-manifest.js +0 -1
- package/dist/core/release/gate-pack-runner.js +0 -1
- package/dist/core/release/gate-timing.js +0 -1
- package/dist/core/release/macos-menubar-proof.js +167 -0
- package/dist/core/release/main-push-guard.js +135 -0
- package/dist/core/release/main-push-receipt.js +147 -0
- package/dist/core/release/npm-pack-proof.js +41 -16
- package/dist/core/release/package-dist-snapshot.js +0 -1
- package/dist/core/release/package-size-budget.js +2 -7
- package/dist/core/release/release-authorization-snapshot.js +0 -1
- package/dist/core/release/release-cache-key.js +0 -1
- package/dist/core/release/release-closure-contract.js +29 -0
- package/dist/core/release/release-closure-helpers.js +293 -0
- package/dist/core/release/release-closure-validation.js +271 -0
- package/dist/core/release/release-closure.js +134 -0
- package/dist/core/release/release-gate-affected-selector.js +2 -3
- package/dist/core/release/release-gate-batch-runner.js +0 -1
- package/dist/core/release/release-gate-cache-v2.js +2 -12
- package/dist/core/release/release-gate-contract.js +9 -8
- package/dist/core/release/release-gate-dag.js +34 -10
- package/dist/core/release/release-gate-hermetic-env.js +1 -2
- package/dist/core/release/release-gate-node.js +0 -1
- package/dist/core/release/release-gate-report.js +0 -1
- package/dist/core/release/release-gate-resource-governor.js +0 -1
- package/dist/core/release/release-gate-scheduler.js +0 -1
- package/dist/core/release/release-origin.js +29 -0
- package/dist/core/release/release-pack-content-scanner.js +98 -0
- package/dist/core/release/release-pack-contract.js +2 -0
- package/dist/core/release/release-pack-receipt.js +330 -0
- package/dist/core/release/release-pack-tarball.js +64 -0
- package/dist/core/release/release-proof-truth.js +0 -1
- package/dist/core/release/release-real-contract.js +1 -3
- package/dist/core/release/release-stamp-proof.js +127 -0
- package/dist/core/release/resource-class-budget.js +0 -1
- package/dist/core/release/runtime-script-pack-closure.js +344 -0
- package/dist/core/release/sla-scheduler.js +0 -1
- package/dist/core/release-parallel-full-coverage.js +0 -1
- package/dist/core/remote/audit-idempotency.js +209 -0
- package/dist/core/remote/index.js +10 -0
- package/dist/core/remote/machine-registry.js +162 -0
- package/dist/core/remote/owner-proof.js +224 -0
- package/dist/core/remote/protocol.js +263 -0
- package/dist/core/remote/readiness.js +158 -0
- package/dist/core/remote/session-index.js +76 -0
- package/dist/core/remote/session-snapshot.js +197 -0
- package/dist/core/remote/ssh-worker-client.js +377 -0
- package/dist/core/remote/types.js +10 -0
- package/dist/core/remote/worker.js +343 -0
- package/dist/core/reporting/markdown-table.js +0 -1
- package/dist/core/research/claim-evidence-matrix.js +0 -1
- package/dist/core/research/experiment-plan.js +0 -1
- package/dist/core/research/falsification.js +0 -1
- package/dist/core/research/implementation-blueprint-densifier.js +0 -1
- package/dist/core/research/implementation-blueprint-markdown.js +0 -1
- package/dist/core/research/implementation-blueprint.js +0 -1
- package/dist/core/research/mock-result.js +0 -1
- package/dist/core/research/replication-pack.js +0 -1
- package/dist/core/research/research-adversarial-review.js +1 -3
- package/dist/core/research/research-claim-builder.js +0 -1
- package/dist/core/research/research-claim-synthesizer.js +0 -1
- package/dist/core/research/research-cycle-runner.js +0 -1
- package/dist/core/research/research-falsification-runner.js +0 -1
- package/dist/core/research/research-final-reviewer.js +0 -1
- package/dist/core/research/research-handoff.js +3 -4
- package/dist/core/research/research-plan-markdown.js +122 -0
- package/dist/core/research/research-prompt-contract.js +0 -1
- package/dist/core/research/research-quality-contract.js +0 -1
- package/dist/core/research/research-realistic-report.js +2 -3
- package/dist/core/research/research-repetition-detector.js +0 -1
- package/dist/core/research/research-report-quality.js +0 -1
- package/dist/core/research/research-review-artifact-digest.js +0 -1
- package/dist/core/research/research-source-evidence.js +0 -1
- package/dist/core/research/research-source-layer-catalog.js +0 -1
- package/dist/core/research/research-source-ledger-merge.js +0 -1
- package/dist/core/research/research-source-shards.js +0 -1
- package/dist/core/research/research-stage-runner.js +1 -2
- package/dist/core/research/research-super-search.js +8 -5
- package/dist/core/research/research-synthesis-prompt.js +0 -1
- package/dist/core/research/research-synthesis-writer.js +0 -1
- package/dist/core/research/research-work-graph.js +3 -5
- package/dist/core/research/source-quality-report.js +0 -1
- package/dist/core/research.js +5 -121
- package/dist/core/responses-retry-policy.js +0 -1
- package/dist/core/results.js +0 -1
- package/dist/core/retention/retention-budget.js +0 -1
- package/dist/core/retention.js +70 -3
- package/dist/core/router/capability-card.js +0 -1
- package/dist/core/router/route-cache.js +0 -1
- package/dist/core/router/router-proof.js +0 -1
- package/dist/core/router/task-classifier.js +0 -1
- package/dist/core/router/ultra-router.js +0 -1
- package/dist/core/routes/constants.js +18 -19
- package/dist/core/routes/design-policy.js +0 -1
- package/dist/core/routes/diagnostic-allowlist.js +0 -1
- package/dist/core/routes/dollar-manifest-lite.js +19 -13
- package/dist/core/routes/dollar-prefix.js +25 -0
- package/dist/core/routes/evidence.js +0 -1
- package/dist/core/routes/model-mode-router.js +1 -2
- package/dist/core/routes/ppt-policy.js +6 -8
- package/dist/core/routes.js +152 -119
- package/dist/core/runtime/task-profile.js +20 -3
- package/dist/core/runtime/verification-budget.js +0 -1
- package/dist/core/rust-accelerator.js +1 -2
- package/dist/core/safety/command-contract/contracts.js +210 -0
- package/dist/core/safety/command-contract/index.js +3 -0
- package/dist/core/safety/command-contract/json-schema.js +91 -0
- package/dist/core/safety/command-contract/types.js +1 -0
- package/dist/core/safety/mutation-guard.js +0 -1
- package/dist/core/safety/mutation-ledger.js +0 -1
- package/dist/core/safety/requested-scope-contract.js +0 -0
- package/dist/core/safety/side-effect-runtime-report.js +0 -1
- package/dist/core/safety/ssot-guard.js +7 -8
- package/dist/core/search-visibility/adapter-registry.js +0 -1
- package/dist/core/search-visibility/adapters/next-app.js +0 -1
- package/dist/core/search-visibility/adapters/next-pages.js +0 -1
- package/dist/core/search-visibility/adapters/static-site.js +0 -1
- package/dist/core/search-visibility/analyzers.js +0 -1
- package/dist/core/search-visibility/artifacts.js +0 -1
- package/dist/core/search-visibility/discovery.js +0 -1
- package/dist/core/search-visibility/index.js +0 -1
- package/dist/core/search-visibility/marketing-truthfulness.js +2 -3
- package/dist/core/search-visibility/marketing.js +1 -2
- package/dist/core/search-visibility/mission.js +0 -1
- package/dist/core/search-visibility/mutation.js +0 -1
- package/dist/core/search-visibility/types.js +0 -1
- package/dist/core/search-visibility/verifier.js +0 -1
- package/dist/core/secret-redaction.js +0 -1
- package/dist/core/security/high-risk-contracts.js +0 -1
- package/dist/core/security/redact-secrets.js +0 -1
- package/dist/core/session/project-namespace.js +1 -2
- package/dist/core/skill-forge.js +5 -6
- package/dist/core/skills/core-rollout-trace.js +0 -1
- package/dist/core/skills/core-skill-card.js +0 -0
- package/dist/core/skills/core-skill-deployment.js +0 -1
- package/dist/core/skills/core-skill-epoch.js +0 -1
- package/dist/core/skills/core-skill-meta-update.js +0 -1
- package/dist/core/skills/core-skill-patch-apply.js +0 -1
- package/dist/core/skills/core-skill-patch.js +0 -1
- package/dist/core/skills/core-skill-reflection.js +0 -1
- package/dist/core/skills/core-skill-runtime.js +0 -1
- package/dist/core/skills/core-skill-scorer.js +0 -1
- package/dist/core/skills/core-skill-trainer.js +0 -1
- package/dist/core/skills/core-skill-types.js +0 -1
- package/dist/core/skills/core-skill-validation.js +0 -1
- package/dist/core/skills/rejected-skill-patch-buffer.js +0 -1
- package/dist/core/source-intelligence/appshots-evidence.js +0 -1
- package/dist/core/source-intelligence/codex-history-search.js +0 -1
- package/dist/core/source-intelligence/source-intelligence-policy.js +0 -1
- package/dist/core/source-intelligence/source-intelligence-proof.js +0 -1
- package/dist/core/source-intelligence/source-intelligence-runner.js +0 -1
- package/dist/core/stop-gate/gate-evaluator.js +0 -1
- package/dist/core/stop-gate/stop-gate-check.js +0 -1
- package/dist/core/stop-gate/stop-gate-diagnostics.js +0 -1
- package/dist/core/stop-gate/stop-gate-resolver.js +0 -1
- package/dist/core/stop-gate/stop-gate-types.js +0 -1
- package/dist/core/stop-gate/stop-gate-writer.js +0 -1
- package/dist/core/strategy/adhd-orchestrating-gate.js +0 -1
- package/dist/core/strategy/strategy-compiler.js +1 -2
- package/dist/core/strategy/strategy-gate.js +0 -1
- package/dist/core/structured-output-adapter.js +0 -1
- package/dist/core/subagents/agent-catalog.js +148 -27
- package/dist/core/subagents/model-policy.js +189 -49
- package/dist/core/subagents/naruto-help-contract.js +14 -12
- package/dist/core/subagents/official-subagent-config.js +43 -28
- package/dist/core/subagents/official-subagent-preparation.js +131 -32
- package/dist/core/subagents/official-subagent-prompt.js +178 -27
- package/dist/core/subagents/official-subagent-runner.js +1 -3
- package/dist/core/subagents/subagent-evidence.js +0 -1
- package/dist/core/subagents/terminology.js +0 -1
- package/dist/core/subagents/thread-budget.js +52 -5
- package/dist/core/subagents/triwiki-attention.js +117 -15
- package/dist/core/super-search/doctor.js +1 -2
- package/dist/core/super-search/index.js +0 -1
- package/dist/core/super-search/local-http-smoke.js +0 -1
- package/dist/core/super-search/runtime-helpers.js +0 -1
- package/dist/core/super-search/runtime.js +0 -1
- package/dist/core/super-search/source-records.js +0 -1
- package/dist/core/super-search/types.js +0 -1
- package/dist/core/telegram/bot-api.js +99 -0
- package/dist/core/telegram/config.js +88 -0
- package/dist/core/telegram/hub.js +241 -0
- package/dist/core/telegram/index.js +8 -0
- package/dist/core/telegram/ledgers.js +207 -0
- package/dist/core/telegram/messages.js +292 -0
- package/dist/core/telegram/owner-lock.js +134 -0
- package/dist/core/telegram/runtime-projection.js +88 -0
- package/dist/core/telegram/runtime.js +369 -0
- package/dist/core/telegram/types.js +1 -0
- package/dist/core/triwiki/agents-md-projector.js +0 -1
- package/dist/core/triwiki/code-index-scanner.js +0 -1
- package/dist/core/triwiki/code-pack-head-freshness.js +290 -0
- package/dist/core/triwiki/code-pack.js +0 -1
- package/dist/core/triwiki/triwiki-affected-graph.js +0 -1
- package/dist/core/triwiki/triwiki-cache-key.js +0 -1
- package/dist/core/triwiki/triwiki-gate-impact-map.js +0 -1
- package/dist/core/triwiki/triwiki-invalidation.js +0 -1
- package/dist/core/triwiki/triwiki-module-card.js +1 -2
- package/dist/core/triwiki/triwiki-proof-bank.js +0 -1
- package/dist/core/triwiki/triwiki-proof-card.js +0 -1
- package/dist/core/triwiki/triwiki-sla-certificate.js +0 -1
- package/dist/core/triwiki-attention.js +20 -6
- package/dist/core/triwiki-provenance.js +0 -1
- package/dist/core/triwiki-runtime.js +0 -1
- package/dist/core/triwiki-wrongness/avoidance-rules.js +0 -1
- package/dist/core/triwiki-wrongness/image-wrongness.js +0 -1
- package/dist/core/triwiki-wrongness/validators.js +0 -1
- package/dist/core/triwiki-wrongness/wrongness-cli.js +0 -1
- package/dist/core/triwiki-wrongness/wrongness-ledger.js +2 -3
- package/dist/core/triwiki-wrongness/wrongness-proof-linker.js +0 -1
- package/dist/core/triwiki-wrongness/wrongness-retrieval.js +0 -1
- package/dist/core/triwiki-wrongness/wrongness-schema.js +0 -1
- package/dist/core/triwiki-wrongness/wrongness-trust-policy.js +0 -1
- package/dist/core/trust-kernel/completion-contract.js +1 -2
- package/dist/core/trust-kernel/evidence-router.js +0 -1
- package/dist/core/trust-kernel/route-contract.js +0 -1
- package/dist/core/trust-kernel/route-state-machine.js +0 -1
- package/dist/core/trust-kernel/trust-kernel-schema.js +0 -1
- package/dist/core/trust-kernel/trust-report.js +0 -1
- package/dist/core/trust-kernel/trust-status.js +0 -1
- package/dist/core/ui/dashboard-html.js +0 -1
- package/dist/core/update/semver.js +66 -0
- package/dist/core/update/temporary-install-smoke.js +95 -0
- package/dist/core/update/update-migration-state.js +136 -56
- package/dist/core/update/update-notice.js +49 -132
- package/dist/core/update/update-operation.js +220 -0
- package/dist/core/update/update-status.js +299 -0
- package/dist/core/update-check.js +569 -107
- package/dist/core/usage/codex-account-usage.js +0 -1
- package/dist/core/validators/completion-proof-validator.js +0 -1
- package/dist/core/validators/evidence-validator.js +0 -1
- package/dist/core/validators/feature-fixture-validator.js +0 -1
- package/dist/core/validators/image-voxel-validator.js +0 -1
- package/dist/core/validators/route-contract-validator.js +0 -1
- package/dist/core/validators/trust-report-validator.js +0 -1
- package/dist/core/validators/validation-error.js +0 -1
- package/dist/core/verification/diff-quality.js +0 -1
- package/dist/core/verification/impact-scan.js +0 -1
- package/dist/core/verification/machine-feedback.js +0 -1
- package/dist/core/verification/mistake-rule-compiler.js +0 -1
- package/dist/core/verification/real-evidence-policy.js +0 -1
- package/dist/core/verification/verification-artifact-lock.js +0 -1
- package/dist/core/verification/verification-dag.js +0 -1
- package/dist/core/verification/verification-proof.js +0 -1
- package/dist/core/verification/verification-result.js +0 -1
- package/dist/core/verification/verification-worker-pool.js +0 -1
- package/dist/core/version-manager.js +0 -1
- package/dist/core/version.js +1 -2
- package/dist/core/wiki-coordinate.js +1 -2
- package/dist/core/wiki-image/bbox.js +0 -1
- package/dist/core/wiki-image/before-after-relation.js +0 -1
- package/dist/core/wiki-image/callout-parser.js +0 -1
- package/dist/core/wiki-image/computer-use-evidence.js +0 -1
- package/dist/core/wiki-image/computer-use-ledger.js +0 -1
- package/dist/core/wiki-image/generated-review-parser.js +0 -1
- package/dist/core/wiki-image/image-hash.js +0 -1
- package/dist/core/wiki-image/image-relation.js +0 -1
- package/dist/core/wiki-image/image-ux-evidence.js +0 -1
- package/dist/core/wiki-image/image-voxel-ledger.js +0 -1
- package/dist/core/wiki-image/image-voxel-schema.js +0 -1
- package/dist/core/wiki-image/ppt-image-evidence.js +0 -1
- package/dist/core/wiki-image/proof-linker.js +0 -1
- package/dist/core/wiki-image/route-image-evidence.js +0 -1
- package/dist/core/wiki-image/validation.js +0 -1
- package/dist/core/wiki-image/visual-anchor.js +0 -1
- package/dist/core/work-order-ledger.js +32 -9
- package/dist/core/zellij/homebrew-policy.js +0 -1
- package/dist/core/zellij/zellij-capability.js +0 -1
- package/dist/core/zellij/zellij-clipboard-config.js +0 -1
- package/dist/core/zellij/zellij-command.js +0 -1
- package/dist/core/zellij/zellij-dashboard-pane.js +0 -1
- package/dist/core/zellij/zellij-dashboard-renderer.js +0 -1
- package/dist/core/zellij/zellij-fake-adapter.js +0 -1
- package/dist/core/zellij/zellij-lane-renderer.js +23 -24
- package/dist/core/zellij/zellij-lane-runtime.js +0 -1
- package/dist/core/zellij/zellij-launcher.js +15 -13
- package/dist/core/zellij/zellij-layout-builder.js +3 -4
- package/dist/core/zellij/zellij-monitor-renderer.js +0 -1
- package/dist/core/zellij/zellij-naruto-dashboard.js +0 -1
- package/dist/core/zellij/zellij-official-subagent-activity.js +0 -1
- package/dist/core/zellij/zellij-official-subagent-telemetry.js +0 -1
- package/dist/core/zellij/zellij-pane-proof.js +9 -2
- package/dist/core/zellij/zellij-right-column-manager.js +0 -1
- package/dist/core/zellij/zellij-screen-proof.js +0 -1
- package/dist/core/zellij/zellij-self-heal-types.js +0 -1
- package/dist/core/zellij/zellij-self-heal.js +0 -1
- package/dist/core/zellij/zellij-slot-column-anchor.js +19 -20
- package/dist/core/zellij/zellij-slot-pane-renderer.js +0 -1
- package/dist/core/zellij/zellij-slot-telemetry.js +0 -1
- package/dist/core/zellij/zellij-theme.js +0 -1
- package/dist/core/zellij/zellij-ui-mode.js +0 -1
- package/dist/core/zellij/zellij-update.js +14 -2
- package/dist/core/zellij/zellij-viewport-binder.js +0 -1
- package/dist/core/zellij/zellij-worker-pane-manager.js +3 -4
- package/dist/core/zellij/zellij-worker-pane-summary.js +0 -1
- package/dist/native/sks-menubar/Info.plist.template +24 -0
- package/dist/native/sks-menubar/Resources/AppIcon.icns +0 -0
- package/dist/native/sks-menubar/Resources/Localizable.strings +4 -0
- package/dist/native/sks-menubar/Resources/SKSStatusAttentionTemplate.pdf +0 -0
- package/dist/native/sks-menubar/Resources/SKSStatusTemplate.pdf +0 -0
- package/dist/native/sks-menubar/Resources/SKSStatusUpdateTemplate.pdf +0 -0
- package/dist/native/sks-menubar/Resources/SKSStatusWarningTemplate.pdf +0 -0
- package/dist/native/sks-menubar/Sources/AlertFactory.swift +61 -0
- package/dist/native/sks-menubar/Sources/AppDelegate.swift +47 -0
- package/dist/native/sks-menubar/Sources/AppIdentity.swift +20 -0
- package/dist/native/sks-menubar/Sources/ControlCenterWindowController.swift +108 -0
- package/dist/native/sks-menubar/Sources/DiagnosticsViewController.swift +29 -0
- package/dist/native/sks-menubar/Sources/MCPServersViewController.swift +418 -0
- package/dist/native/sks-menubar/Sources/NotificationCoordinator.swift +119 -0
- package/dist/native/sks-menubar/Sources/OperationCoordinator.swift +230 -0
- package/dist/native/sks-menubar/Sources/OverviewViewController.swift +135 -0
- package/dist/native/sks-menubar/Sources/ProcessClient.swift +110 -0
- package/dist/native/sks-menubar/Sources/ProvidersViewController.swift +64 -0
- package/dist/native/sks-menubar/Sources/RemoteTelegramViewController.swift +66 -0
- package/dist/native/sks-menubar/Sources/SettingsViewController.swift +39 -0
- package/dist/native/sks-menubar/Sources/SidebarItem.swift +11 -0
- package/dist/native/sks-menubar/Sources/StatusItemController.swift +233 -0
- package/dist/native/sks-menubar/Sources/UpdatesViewController.swift +237 -0
- package/dist/native/sks-menubar/Sources/main.swift +18 -0
- package/dist/scripts/agent-message-bus-reader-check.js +0 -1
- package/dist/scripts/all-feature-deep-completion-check.js +0 -1
- package/dist/scripts/appshots-thread-attachment-discovery-check.js +0 -1
- package/dist/scripts/architecture-guard-check.js +31 -3
- package/dist/scripts/build-dist.js +9 -2
- package/dist/scripts/build-once-runner-check.js +0 -1
- package/dist/scripts/canonical-test-runner.js +7 -2
- package/dist/scripts/certificate-sla-check.js +0 -1
- package/dist/scripts/changelog-check.js +0 -1
- package/dist/scripts/check-architecture.js +209 -91
- package/dist/scripts/check-cli-entrypoint.js +0 -1
- package/dist/scripts/check-command-module-budget.js +0 -1
- package/dist/scripts/check-feature-quality.js +0 -1
- package/dist/scripts/check-legacy-free.js +0 -1
- package/dist/scripts/check-pipeline-budget.js +0 -1
- package/dist/scripts/check-pipeline-runtime.js +0 -1
- package/dist/scripts/check-publish-tag.js +0 -1
- package/dist/scripts/check-route-modularity.js +3 -4
- package/dist/scripts/check-runtime-schemas.js +19 -2
- package/dist/scripts/cli-output-consistency-check.js +0 -1
- package/dist/scripts/codex-0-134-runner-truth-check.js +0 -1
- package/dist/scripts/codex-0-137-compat-check.js +0 -1
- package/dist/scripts/codex-0138-capability-artifact-check.js +0 -1
- package/dist/scripts/codex-0138-capability-check.js +0 -1
- package/dist/scripts/codex-0138-doctor-check.js +0 -1
- package/dist/scripts/codex-0138-feature-probes-check.js +0 -1
- package/dist/scripts/codex-0140-capability-check.js +0 -1
- package/dist/scripts/codex-0140-feature-probes-check.js +0 -1
- package/dist/scripts/codex-0144-app-server-v2-check.js +0 -1
- package/dist/scripts/codex-0144-binary-identity-check.js +0 -1
- package/dist/scripts/codex-0144-capability-check.js +0 -1
- package/dist/scripts/codex-0144-core-real-probes-check.js +0 -1
- package/dist/scripts/codex-0144-manifest-check.js +0 -1
- package/dist/scripts/codex-0144-policy-check.js +0 -1
- package/dist/scripts/codex-0144-thread-store-check.js +0 -1
- package/dist/scripts/codex-agent-role-rich-content-check.js +0 -1
- package/dist/scripts/codex-agent-role-sync-check.js +0 -1
- package/dist/scripts/codex-agent-type-routing-check.js +0 -1
- package/dist/scripts/codex-app-execution-profile-check.js +0 -1
- package/dist/scripts/codex-app-fast-ui-preservation-check.js +0 -1
- package/dist/scripts/codex-app-handoff-check.js +0 -1
- package/dist/scripts/codex-app-handoff-launch-check.js +0 -1
- package/dist/scripts/codex-config-load-probe.js +0 -1
- package/dist/scripts/codex-control-all-pipelines-check.js +0 -4
- package/dist/scripts/codex-control-event-stream-ledger-check.js +0 -1
- package/dist/scripts/codex-control-tool-output-continuity-audit-check.js +0 -1
- package/dist/scripts/codex-lb-fast-mode-truth-check.js +11 -2
- package/dist/scripts/codex-lb-fast-ui-preservation-check.js +9 -3
- package/dist/scripts/codex-lb-gpt56-fast-profile-check.js +14 -4
- package/dist/scripts/codex-native-agent-role-content-check.js +13 -2
- package/dist/scripts/codex-native-feature-broker-blackbox.js +3 -0
- package/dist/scripts/codex-native-feature-broker-check.js +0 -1
- package/dist/scripts/codex-native-harness-compat-check.js +0 -1
- package/dist/scripts/codex-native-hook-lifecycle-proof-check.js +0 -1
- package/dist/scripts/codex-native-runtime-e2e-fixture.js +0 -1
- package/dist/scripts/codex-permission-profiles-check.js +0 -1
- package/dist/scripts/codex-plugin-app-template-policy-check.js +0 -1
- package/dist/scripts/codex-project-config-policy-splitter-check.js +0 -1
- package/dist/scripts/codex-sdk-all-pipelines-check.js +0 -4
- package/dist/scripts/codex-sdk-backend-router-check.js +13 -2
- package/dist/scripts/codex-sdk-capability-check.js +0 -1
- package/dist/scripts/codex-sdk-event-stream-ledger-check.js +0 -1
- package/dist/scripts/codex-sdk-real-smoke-check.js +1 -2
- package/dist/scripts/competitor-scorecard-check.js +0 -1
- package/dist/scripts/concurrent-session-collision-check.js +0 -1
- package/dist/scripts/context7-evidence-dedupe-check.js +0 -1
- package/dist/scripts/core-skill-card-schema-check.js +0 -1
- package/dist/scripts/core-skill-deployment-snapshot-check.js +0 -1
- package/dist/scripts/core-skill-heldout-validation-check.js +0 -1
- package/dist/scripts/core-skill-no-drift-check.js +2 -3
- package/dist/scripts/core-skill-no-inference-optimizer-check.js +0 -1
- package/dist/scripts/core-skill-patch-check.js +0 -1
- package/dist/scripts/core-skill-route-runtime-integration-check.js +1 -2
- package/dist/scripts/current-command-surface-check.js +76 -0
- package/dist/scripts/current-surface-update-e2e-check.js +488 -0
- package/dist/scripts/{legacy-upgrade-matrix-check.js → current-upgrade-matrix-check.js} +18 -69
- package/dist/scripts/db-route-materialization-check.js +0 -1
- package/dist/scripts/dfix-fixture-check.js +0 -1
- package/dist/scripts/dfix-patch-handoff-check.js +0 -1
- package/dist/scripts/dfix-verification-check.js +0 -1
- package/dist/scripts/dfix-verification-recommendation-check.js +0 -1
- package/dist/scripts/docs-truthfulness-check.js +52 -2
- package/dist/scripts/doctor-codex-app-harness-check.js +0 -1
- package/dist/scripts/doctor-context7-mcp-repair-blackbox.js +0 -1
- package/dist/scripts/doctor-fastpath-check.js +0 -1
- package/dist/scripts/doctor-fix-production-blackbox.js +0 -1
- package/dist/scripts/doctor-fix-proves-codex-read-check.js +0 -1
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +0 -1
- package/dist/scripts/doctor-idempotence-check.js +0 -1
- package/dist/scripts/doctor-ops-semantics-check.js +0 -1
- package/dist/scripts/doctor-startup-config-repair-blackbox.js +0 -1
- package/dist/scripts/doctor-supabase-mcp-repair-blackbox.js +0 -1
- package/dist/scripts/ensure-bin-executable.js +0 -1
- package/dist/scripts/evidence-flagship-coverage-check.js +0 -1
- package/dist/scripts/fast-codex-service-tier-proof-check.js +0 -1
- package/dist/scripts/fixtures/fake-codex-config-loader.js +0 -1
- package/dist/scripts/fsx-hotpath-check.js +0 -1
- package/dist/scripts/gate-policy-audit-check.js +35 -8
- package/dist/scripts/geo-claim-evidence-check.js +0 -1
- package/dist/scripts/geo-cli-blackbox-check.js +17 -0
- package/dist/scripts/geo-crawler-policy-check.js +0 -1
- package/dist/scripts/git-worktree-checkpoint-check.js +0 -1
- package/dist/scripts/git-worktree-cross-rebase-check.js +0 -1
- package/dist/scripts/git-worktree-diff-envelope-check.js +0 -1
- package/dist/scripts/git-worktree-dirty-lock-check.js +0 -1
- package/dist/scripts/git-worktree-dirty-main-detection-check.js +0 -1
- package/dist/scripts/git-worktree-integration-primary-check.js +0 -1
- package/dist/scripts/git-worktree-manifest-append-check.js +0 -1
- package/dist/scripts/git-worktree-untracked-diff-check.js +0 -1
- package/dist/scripts/goal-artifact-compat-check.js +0 -1
- package/dist/scripts/harness-benchmark-check.js +4 -5
- package/dist/scripts/high-risk-contracts-check.js +0 -1
- package/dist/scripts/hook-latency-budget-check.js +0 -1
- package/dist/scripts/hook-latency-quantum-check.js +1 -2
- package/dist/scripts/image-artifact-path-contract-check.js +0 -1
- package/dist/scripts/imagegen-real-smoke-check.js +0 -1
- package/dist/scripts/import-graph-budget-check.js +0 -1
- package/dist/scripts/init-deep-backup-retention-check.js +0 -1
- package/dist/scripts/installed-package-smoke-check.js +14 -3
- package/dist/scripts/legacy-gate-inventory-check.js +0 -1
- package/dist/scripts/legacy-gate-purge-check.js +36 -5
- package/dist/scripts/legacy-strong-inventory-check.js +0 -1
- package/dist/scripts/lib/codex-sdk-gate-lib.js +6 -3
- package/dist/scripts/lib/ensure-dist-fresh.js +0 -1
- package/dist/scripts/lib/git-worktree-fixture.js +0 -1
- package/dist/scripts/lib/valid-png-fixture.js +0 -1
- package/dist/scripts/local-collab-all-pipelines-final-gpt-check.js +1 -2
- package/dist/scripts/loop-directive-check-lib.js +0 -1
- package/dist/scripts/loop-integration-finalizer-check.js +2 -0
- package/dist/scripts/loop-worker-fixture-child.js +0 -1
- package/dist/scripts/mad-preflight-blocks-unreadable-config-check.js +0 -1
- package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +1 -5
- package/dist/scripts/{mad-db-mad-command-check.js → mad-sks-launch-sql-plane-boundary-check.js} +13 -25
- package/dist/scripts/mad-sks-sql-plane-capability-check.js +25 -0
- package/dist/scripts/mad-sks-sql-plane-lifecycle-hook-decision-check.js +17 -0
- package/dist/scripts/{mad-db-mcp-result-lifecycle-check.js → mad-sks-sql-plane-result-lifecycle-check.js} +11 -12
- package/dist/scripts/managed-config-merge-check.js +0 -1
- package/dist/scripts/mcp-plugin-inventory-check.js +0 -1
- package/dist/scripts/mcp-tool-naming-parity-check.js +0 -1
- package/dist/scripts/model-call-concurrency-check.js +0 -1
- package/dist/scripts/mutation-callsite-coverage-check.js +0 -1
- package/dist/scripts/naruto-codex-e2e-check.js +0 -1
- package/dist/scripts/naruto-worktree-coding-blackbox.js +28 -0
- package/dist/scripts/naruto-write-e2e-check.js +0 -1
- package/dist/scripts/native-capability-postcheck-check.js +0 -1
- package/dist/scripts/native-capability-repair-matrix-check.js +0 -1
- package/dist/scripts/native-image-generation-repair-check.js +0 -1
- package/dist/scripts/official-subagent-workflow-check.js +4 -4
- package/dist/scripts/ops-diagnostics-bundle-check.js +0 -1
- package/dist/scripts/package-published-contract-check.js +0 -1
- package/dist/scripts/packlist-performance-check.js +34 -29
- package/dist/scripts/parallel-production-smoke-check.js +0 -1
- package/dist/scripts/perf-budget-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-doctor-mad-routing-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-doctor-mad-routing-real-blackbox.js +76 -0
- package/dist/scripts/pipeline-codex-native-image-routing-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-image-routing-real-blackbox.js +49 -0
- package/dist/scripts/pipeline-codex-native-loop-routing-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-loop-routing-real-blackbox.js +73 -0
- package/dist/scripts/pipeline-codex-native-qa-routing-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-qa-routing-real-blackbox.js +50 -0
- package/dist/scripts/pipeline-codex-native-research-routing-check.js +0 -1
- package/dist/scripts/pipeline-codex-native-research-routing-real-blackbox.js +44 -0
- package/dist/scripts/ppt-full-e2e-blackbox-check.js +147 -0
- package/dist/scripts/ppt-real-export-adapter-check.js +0 -1
- package/dist/scripts/ppt-real-imagegen-smoke-check.js +0 -1
- package/dist/scripts/ppt-real-imagegen-wiring-check.js +0 -1
- package/dist/scripts/ppt-reexport-rereview-check.js +0 -1
- package/dist/scripts/prepublish-fast-check.js +0 -1
- package/dist/scripts/prepublish-release-check-or-fast.js +25 -16
- package/dist/scripts/probe-memoization-check.js +0 -1
- package/dist/scripts/product-design-plugin-routing-check.js +0 -1
- package/dist/scripts/project-skill-dedupe-blackbox.js +0 -1
- package/dist/scripts/prompt-placeholder-guard-check.js +0 -1
- package/dist/scripts/proof-root-cause-policy-check.js +0 -1
- package/dist/scripts/provider-badge-context-check.js +2 -3
- package/dist/scripts/python-codex-sdk-all-pipelines-check.js +9 -2
- package/dist/scripts/qa-loop-app-handoff-capability-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-cli-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-confirmation-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-gate-lifecycle-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-launch-check.js +0 -1
- package/dist/scripts/qa-loop-app-handoff-status-lifecycle-check.js +0 -1
- package/dist/scripts/qa-loop-budget-policy-check.js +0 -1
- package/dist/scripts/qa-loop-effort-escalation-check.js +0 -1
- package/dist/scripts/qa-loop-execution-profile-routing-check.js +0 -1
- package/dist/scripts/qa-loop-image-path-exposure-check.js +0 -1
- package/dist/scripts/qa-loop-image-path-prompt-injection-check.js +0 -1
- package/dist/scripts/release-affected-selector-check.js +1 -2
- package/dist/scripts/release-aggressive-resource-governor-check.js +0 -1
- package/dist/scripts/release-cache-glob-hashing-check.js +0 -1
- package/dist/scripts/release-cache-input-classifier-check.js +0 -1
- package/dist/scripts/release-cache-neutralization-report-check.js +0 -1
- package/dist/scripts/release-cache-version-neutral-fixture-check.js +0 -1
- package/dist/scripts/release-check-stamp.js +1 -2
- package/dist/scripts/release-dag-full-coverage-check.js +0 -1
- package/dist/scripts/release-dist-freshness-check.js +0 -1
- package/dist/scripts/release-dynamic-presets-check.js +0 -1
- package/dist/scripts/release-file-ownership-check.js +35 -0
- package/dist/scripts/release-full-parallelism-blackbox.js +41 -0
- package/dist/scripts/release-gate-batch-runner-check.js +0 -1
- package/dist/scripts/release-gate-budget-check.js +0 -1
- package/dist/scripts/release-gate-dag-runner-check.js +3 -2
- package/dist/scripts/release-gate-dag-runner.js +0 -1
- package/dist/scripts/release-gate-script-parity-check.js +8 -5
- package/dist/scripts/release-latency-slo-check.js +23 -0
- package/dist/scripts/release-macos-menubar-proof.js +167 -0
- package/dist/scripts/release-main-push-guard.js +37 -0
- package/dist/scripts/release-main-push-receipt.js +43 -0
- package/dist/scripts/release-metadata-1-19-check.js +255 -0
- package/dist/scripts/release-metadata-check.js +0 -1
- package/dist/scripts/release-pack-receipt.js +144 -0
- package/dist/scripts/release-parallel-speed-budget-check.js +0 -1
- package/dist/scripts/release-proof-truth-check.js +0 -1
- package/dist/scripts/release-provenance-check.js +0 -1
- package/dist/scripts/release-real-check.js +1 -3
- package/dist/scripts/release-runtime-truth-matrix-check.js +0 -1
- package/dist/scripts/release-speed-summary.js +0 -1
- package/dist/scripts/release-version-truth-check.js +0 -1
- package/dist/scripts/research-blueprint-densifier-check.js +1 -2
- package/dist/scripts/research-claim-builder-check.js +0 -1
- package/dist/scripts/research-complete-package-fixture-check.js +0 -1
- package/dist/scripts/research-execution-profile-routing-check.js +0 -1
- package/dist/scripts/research-final-reviewer-blackbox.js +69 -0
- package/dist/scripts/responses-retry-policy-centralized-check.js +0 -1
- package/dist/scripts/retention-apply-smoke-check.js +0 -1
- package/dist/scripts/retention-budget-check.js +0 -1
- package/dist/scripts/retention-dry-run-check.js +0 -1
- package/dist/scripts/rollback-recovery-smoke-check.js +0 -1
- package/dist/scripts/route-intent-regression-check.js +0 -1
- package/dist/scripts/{runtime-no-tmux-check.js → runtime-current-terminal-check.js} +6 -11
- package/dist/scripts/runtime-dist-parity-check.js +0 -1
- package/dist/scripts/runtime-no-src-mjs-check.js +0 -1
- package/dist/scripts/runtime-proof-summary-check.js +1 -2
- package/dist/scripts/runtime-script-pack-closure-check.js +89 -0
- package/dist/scripts/runtime-ts-rust-boundary-check.js +1 -2
- package/dist/scripts/runtime-ts-source-of-truth-check.js +0 -1
- package/dist/scripts/scheduler-batch-dispatch-check.js +0 -1
- package/dist/scripts/scheduler-parallel-proof-consistency-check.js +0 -1
- package/dist/scripts/scheduler-utilization-integral-check.js +0 -1
- package/dist/scripts/search-visibility-gate-lib.js +0 -1
- package/dist/scripts/secret-preservation-check.js +0 -1
- package/dist/scripts/secret-preservation-guard-check.js +0 -1
- package/dist/scripts/seo-audit-fixture-check.js +1 -2
- package/dist/scripts/seo-cli-blackbox-check.js +17 -0
- package/dist/scripts/seo-geo-geo-disambiguation-check.js +0 -1
- package/dist/scripts/seo-geo-route-identity-check.js +0 -1
- package/dist/scripts/seo-geo-skill-rich-content-check.js +2 -3
- package/dist/scripts/seo-marketing-truthfulness-check.js +0 -1
- package/dist/scripts/seo-metadata-sync-check.js +1 -2
- package/dist/scripts/seo-no-mutation-by-default-check.js +0 -1
- package/dist/scripts/shared-memory-fixture-check.js +0 -1
- package/dist/scripts/side-effect-runtime-report-check.js +0 -1
- package/dist/scripts/sizecheck.js +0 -5
- package/dist/scripts/skill-name-canonicalizer-check.js +0 -1
- package/dist/scripts/skills-manifest-continuity-check.js +5 -5
- package/dist/scripts/sks-1-11-gate-lib.js +0 -1
- package/dist/scripts/sks-1-12-real-execution-check-lib.js +0 -1
- package/dist/scripts/sks-1-18-gate-lib.js +0 -1
- package/dist/scripts/sks-3-1-4-directive-check-lib.js +0 -1
- package/dist/scripts/sks-3-1-5-directive-check-lib.js +1 -2
- package/dist/scripts/sks-3-1-6-directive-check-lib.js +1 -2
- package/dist/scripts/sks-3-1-8-check-lib.js +0 -1
- package/dist/scripts/sks-menubar-install-check.js +306 -301
- package/dist/scripts/sks-uninstall-regression-check.js +0 -1
- package/dist/scripts/sksd-daemon-check.js +0 -1
- package/dist/scripts/supabase-secret-preservation-blackbox.js +0 -1
- package/dist/scripts/super-search-live-smoke-check.js +0 -1
- package/dist/scripts/super-search-local-http-smoke-check.js +0 -1
- package/dist/scripts/super-search-offline-contract-check.js +0 -1
- package/dist/scripts/super-search-provider-interface-check.js +31 -19
- package/dist/scripts/triwiki-cache-key-check.js +0 -1
- package/dist/scripts/triwiki-proof-bank-blackbox.js +29 -0
- package/dist/scripts/triwiki-proof-bank-check.js +0 -1
- package/dist/scripts/triwiki-proof-card-check.js +0 -1
- package/dist/scripts/trust-fixture-check.js +0 -1
- package/dist/scripts/type-surface-codex-app-check.js +0 -1
- package/dist/scripts/ultra-router-auto-router-check.js +1 -2
- package/dist/scripts/uninstall-inventory-check.js +2 -0
- package/dist/scripts/update-fastpath-check.js +0 -1
- package/dist/scripts/update-preserves-supabase-keys-blackbox.js +0 -1
- package/dist/scripts/upgrade-migration-matrix-check.js +0 -1
- package/dist/scripts/ux-review-extract-wires-real-extractor-check.js +0 -1
- package/dist/scripts/ux-review-imagegen-blackbox-check.js +71 -0
- package/dist/scripts/ux-review-patch-diff-recheck-check.js +0 -1
- package/dist/scripts/ux-review-real-imagegen-smoke-check.js +0 -1
- package/dist/scripts/ux-review-run-wires-imagegen-check.js +0 -1
- package/dist/scripts/write-build-manifest.js +0 -1
- package/dist/scripts/wrongness-fixture-check.js +1 -2
- package/dist/scripts/zellij-capability-check.js +0 -1
- package/dist/scripts/zellij-dashboard-pane-check.js +0 -1
- package/dist/scripts/zellij-dashboard-watch.js +0 -1
- package/dist/scripts/zellij-developer-controls-check.js +2 -3
- package/dist/scripts/zellij-doctor-readiness-check.js +3 -4
- package/dist/scripts/zellij-dynamic-pane-lifecycle-check.js +2 -3
- package/dist/scripts/zellij-fake-adapter-check.js +0 -1
- package/dist/scripts/zellij-first-slot-down-stack-check.js +0 -1
- package/dist/scripts/zellij-first-slot-down-stack-real-check.js +0 -1
- package/dist/scripts/zellij-homebrew-policy-check.js +0 -1
- package/dist/scripts/zellij-initial-main-only-blackbox.js +27 -0
- package/dist/scripts/zellij-lane-renderer-check.js +2 -3
- package/dist/scripts/zellij-launch-command-truth-check.js +0 -1
- package/dist/scripts/zellij-layout-valid-check.js +1 -2
- package/dist/scripts/zellij-pane-creation-lock-metrics-check.js +0 -1
- package/dist/scripts/zellij-pane-lock-concurrency-blackbox.js +79 -0
- package/dist/scripts/zellij-pane-lock-does-not-block-worker-check.js +4 -5
- package/dist/scripts/zellij-pane-lock-open-worker-integration-blackbox.js +136 -0
- package/dist/scripts/zellij-pane-proof-check.js +0 -1
- package/dist/scripts/zellij-qa-app-handoff-status-check.js +0 -1
- package/dist/scripts/zellij-real-session-cleanup-check.js +0 -1
- package/dist/scripts/zellij-real-session-launch-check.js +0 -1
- package/dist/scripts/zellij-right-column-geometry-proof.js +0 -1
- package/dist/scripts/zellij-right-column-headless-overflow-check.js +3 -4
- package/dist/scripts/zellij-right-column-manager-check.js +0 -1
- package/dist/scripts/zellij-screen-proof-check.js +0 -1
- package/dist/scripts/zellij-self-heal-check.js +0 -1
- package/dist/scripts/zellij-self-heal-dry-run-check.js +0 -1
- package/dist/scripts/zellij-self-heal-status-contract-check.js +0 -1
- package/dist/scripts/zellij-self-heal-typed-blackbox.js +3 -0
- package/dist/scripts/zellij-slot-column-anchor-check.js +0 -1
- package/dist/scripts/zellij-slot-column-anchor-telemetry-check.js +1 -2
- package/dist/scripts/zellij-slot-only-ui-check.js +4 -5
- package/dist/scripts/zellij-slot-pane-renderer-check.js +0 -1
- package/dist/scripts/zellij-slot-pane-stale-detection-check.js +0 -1
- package/dist/scripts/zellij-slot-pane-telemetry-renderer-check.js +0 -1
- package/dist/scripts/zellij-slot-renderer-proof-semantics-check.js +5 -6
- package/dist/scripts/zellij-slot-telemetry-check.js +0 -1
- package/dist/scripts/zellij-slot-telemetry-incremental-check.js +0 -1
- package/dist/scripts/zellij-slot-telemetry-live-flush-check.js +0 -1
- package/dist/scripts/zellij-slot-telemetry-performance-check.js +0 -1
- package/dist/scripts/zellij-slot-telemetry-real-blackbox.js +19 -0
- package/dist/scripts/zellij-slot-telemetry-renderer-check.js +1 -2
- package/dist/scripts/zellij-slot-telemetry-runtime-check.js +3 -4
- package/dist/scripts/zellij-spawn-on-demand-layout-check.js +1 -2
- package/dist/scripts/zellij-stacked-capability-routing-check.js +0 -1
- package/dist/scripts/zellij-stacked-fallback-integration-blackbox.js +80 -0
- package/dist/scripts/zellij-stacked-version-matrix-check.js +0 -1
- package/dist/scripts/zellij-stacked-version-parser-check.js +0 -1
- package/dist/scripts/zellij-ui-design-check.js +2 -3
- package/dist/scripts/zellij-update-missing-self-heal-check.js +0 -1
- package/dist/scripts/zellij-update-prompt-matrix-check.js +0 -1
- package/dist/scripts/zellij-update-prompt-mode-check.js +0 -1
- package/dist/scripts/zellij-update-prompt-safety-check.js +0 -1
- package/dist/scripts/zellij-worker-pane-manager-check.js +1 -2
- package/dist/scripts/zellij-worker-pane-manager-single-owner-check.js +5 -5
- package/dist/scripts/zellij-worker-pane-real-ui-blackbox.js +201 -0
- package/infra-harness-gates.json +6 -6
- package/package.json +25 -43
- package/release-gates.v2.json +146 -60
- package/runtime-required-scripts.json +38 -0
- package/schemas/codex/agent-result.schema.json +473 -191
- package/schemas/{mad-db/mad-db-capability.schema.json → mad-sks/sql-plane/capability.schema.json} +3 -3
- package/schemas/{mad-db/mad-db-ledger.schema.json → mad-sks/sql-plane/ledger.schema.json} +2 -2
- package/schemas/naruto/naruto-concurrency-governor.schema.json +2 -2
- package/schemas/naruto/naruto-work-graph.schema.json +2 -2
- package/dist/cli/xai-command.js +0 -35
- package/dist/commands/mad-db.js +0 -5
- package/dist/commands/team.js +0 -3
- package/dist/commands/tmux.js +0 -25
- package/dist/core/agents/agent-cleanup-executor.js +0 -733
- package/dist/core/agents/agent-command-surface.js +0 -108
- package/dist/core/agents/agent-gate.js +0 -70
- package/dist/core/agents/agent-ledger-schemas.js +0 -194
- package/dist/core/agents/codex-exec-worker-adapter.js +0 -147
- package/dist/core/commands/agent-command.js +0 -250
- package/dist/core/commands/mad-db-command.js +0 -110
- package/dist/core/commands/team-command.js +0 -94
- package/dist/core/commands/team-legacy-observe-command.js +0 -135
- package/dist/core/evidence/flagship-proof-graph-validator.js +0 -320
- package/dist/core/hooks-runtime/team-digest.js +0 -85
- package/dist/core/mad-db/mad-db-capability.js +0 -253
- package/dist/core/mad-db/mad-db-ledger.js +0 -37
- package/dist/core/mad-db/mad-db-policy-resolver.js +0 -128
- package/dist/core/pipeline/route-prep-team.js +0 -2
- package/dist/core/team-dag.js +0 -58
- package/dist/core/team-dashboard-renderer.js +0 -23
- package/dist/core/team-live.js +0 -167
- package/dist/core/team-review-policy.js +0 -62
- 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-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-dynamic-cockpit-check.js +0 -10
- package/dist/scripts/agent-dynamic-pool-check.js +0 -13
- package/dist/scripts/agent-dynamic-pool-fixture.js +0 -80
- package/dist/scripts/agent-fast-mode-default-check.js +0 -107
- 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 -29
- package/dist/scripts/agent-janitor-check.js +0 -79
- package/dist/scripts/agent-main-no-scout-check.js +0 -11
- package/dist/scripts/agent-multi-project-isolation-check.js +0 -86
- 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-official-subagent-helper-policy-check.js +0 -71
- 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-gate-lib.js +0 -113
- 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 -227
- 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-real-codex-patch-envelope-smoke.js +0 -126
- package/dist/scripts/agent-role-config-repair-check.js +0 -60
- 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-slot-telemetry-wiring-check.js +0 -11
- 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 -76
- 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 -85
- 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-triwiki-voxel-check.js +0 -46
- package/dist/scripts/brand-neutrality-generated-artifacts-check.js +0 -161
- package/dist/scripts/brand-neutrality-zero-leakage-check.js +0 -4
- package/dist/scripts/check-dist-runtime.js +0 -101
- package/dist/scripts/check-package-boundary.js +0 -108
- package/dist/scripts/check-ts-contracts.js +0 -69
- package/dist/scripts/check-ts-suppressions.js +0 -58
- package/dist/scripts/clean-dist.js +0 -8
- package/dist/scripts/cli-five-minute-task-check.js +0 -6
- package/dist/scripts/codex-0-133-official-compat-report.js +0 -53
- 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-0139-capability-check.js +0 -26
- package/dist/scripts/codex-0139-code-mode-web-search-real-check.js +0 -10
- package/dist/scripts/codex-0139-doctor-env-real-check.js +0 -10
- package/dist/scripts/codex-0139-doctor-env-redaction-check.js +0 -18
- package/dist/scripts/codex-0139-feature-probes-check.js +0 -30
- package/dist/scripts/codex-0139-image-path-real-check.js +0 -10
- package/dist/scripts/codex-0139-interrupt-agent-check.js +0 -18
- package/dist/scripts/codex-0139-interrupt-agent-real-check.js +0 -8
- package/dist/scripts/codex-0139-marketplace-source-check.js +0 -13
- package/dist/scripts/codex-0139-plugin-cache-real-check.js +0 -10
- package/dist/scripts/codex-0139-plugin-marketplace-real-check.js +0 -10
- package/dist/scripts/codex-0139-real-probe-summary-check.js +0 -14
- package/dist/scripts/codex-0139-rich-tool-schema-check.js +0 -12
- package/dist/scripts/codex-0139-rich-tool-schema-real-check.js +0 -10
- package/dist/scripts/codex-0139-sandbox-profile-alias-check.js +0 -13
- package/dist/scripts/codex-0139-sandbox-profile-alias-real-check.js +0 -10
- package/dist/scripts/codex-0139-sandbox-proxy-real-check.js +0 -10
- package/dist/scripts/codex-0140-bedrock-managed-auth-check.js +0 -4
- package/dist/scripts/codex-0140-deep-probes-check.js +0 -40
- package/dist/scripts/codex-0140-feature-gate-lib.js +0 -14
- package/dist/scripts/codex-0140-goal-attachment-preservation-check.js +0 -8
- package/dist/scripts/codex-0140-goal-attachment-roundtrip-check.js +0 -9
- package/dist/scripts/codex-0140-import-check.js +0 -4
- package/dist/scripts/codex-0140-large-repo-performance-check.js +0 -4
- package/dist/scripts/codex-0140-mcp-reliability-check.js +0 -4
- package/dist/scripts/codex-0140-non-tty-interrupt-check.js +0 -4
- package/dist/scripts/codex-0140-real-probes-check.js +0 -9
- package/dist/scripts/codex-0140-session-delete-check.js +0 -4
- package/dist/scripts/codex-0140-sqlite-recovery-check.js +0 -4
- package/dist/scripts/codex-0140-unified-mentions-check.js +0 -4
- package/dist/scripts/codex-0140-usage-check.js +0 -4
- package/dist/scripts/codex-0140-usage-real-parser-check.js +0 -17
- package/dist/scripts/codex-0141-capability-check.js +0 -17
- package/dist/scripts/codex-0144-doctor-wiring-check.js +0 -21
- package/dist/scripts/codex-account-usage-autodiscovery-check.js +0 -22
- package/dist/scripts/codex-account-usage-check.js +0 -9
- package/dist/scripts/codex-app-harness-matrix-check.js +0 -4
- package/dist/scripts/codex-app-launcher-check.js +0 -17
- package/dist/scripts/codex-app-provider-badge-check.js +0 -37
- package/dist/scripts/codex-app-provider-model-ui-check.js +0 -163
- package/dist/scripts/codex-app-type-safety-check.js +0 -4
- package/dist/scripts/codex-app-ui-clobber-guard-check.js +0 -22
- package/dist/scripts/codex-app-ui-preservation-check.js +0 -137
- package/dist/scripts/codex-config-eperm-fixture.js +0 -32
- 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-keepalive-no-cot-leak-check.js +0 -14
- package/dist/scripts/codex-control-model-capacity-fallback-check.js +0 -53
- 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 -34
- 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-effort-auto-discovery-check.js +0 -17
- package/dist/scripts/codex-effort-order-check.js +0 -9
- 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 -14
- package/dist/scripts/codex-history-search-check.js +0 -19
- package/dist/scripts/codex-hook-approval-matrix-check.js +0 -4
- package/dist/scripts/codex-hook-approval-probe-check.js +0 -4
- package/dist/scripts/codex-hook-lifecycle-check.js +0 -4
- 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-init-deep-check.js +0 -4
- package/dist/scripts/codex-init-deep-managed-agents-check.js +0 -4
- package/dist/scripts/codex-lb-config-toml-safety-check.js +0 -85
- package/dist/scripts/codex-lb-missing-env-regression.js +0 -39
- 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 -89
- 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-model-metadata-check.js +0 -10
- package/dist/scripts/codex-native-broker-read-only-check.js +0 -44
- package/dist/scripts/codex-native-invocation-defaults-check.js +0 -4
- package/dist/scripts/codex-native-invocation-router-check.js +0 -4
- package/dist/scripts/codex-native-pattern-analysis-check.js +0 -4
- package/dist/scripts/codex-native-reference-cache-check.js +0 -30
- package/dist/scripts/codex-native-reference-evidence-check.js +0 -4
- package/dist/scripts/codex-native-repair-transaction-check.js +0 -47
- package/dist/scripts/codex-native-route-map-check.js +0 -4
- package/dist/scripts/codex-native-skill-content-check.js +0 -24
- package/dist/scripts/codex-output-schema-fixture-check.js +0 -25
- package/dist/scripts/codex-plugin-cache-check.js +0 -15
- package/dist/scripts/codex-plugin-diff-check.js +0 -16
- package/dist/scripts/codex-plugin-inventory-check.js +0 -15
- package/dist/scripts/codex-plugin-json-check.js +0 -10
- package/dist/scripts/codex-plugin-list-json-check.js +0 -8
- package/dist/scripts/codex-plugin-parallel-detail-fetch-check.js +0 -12
- package/dist/scripts/codex-profile-primary-check.js +0 -13
- package/dist/scripts/codex-project-config-policy-merge-regression.js +0 -92
- package/dist/scripts/codex-resume-cwd-truth-check.js +0 -17
- 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-release-review-pipeline-check.js +0 -13
- package/dist/scripts/codex-sdk-research-pipeline-check.js +0 -69
- package/dist/scripts/codex-sdk-sandbox-policy-check.js +0 -25
- 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-version-compat-check.js +0 -11
- package/dist/scripts/codex-sdk-zellij-pane-binding-check.js +0 -13
- package/dist/scripts/codex-skill-rich-content-check.js +0 -4
- package/dist/scripts/codex-skill-sync-check.js +0 -4
- package/dist/scripts/codex-thread-runtime-choice-check.js +0 -10
- package/dist/scripts/codex-web-adapter-check.js +0 -12
- package/dist/scripts/coding-bench-check.js +0 -142
- 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-immutable-sync-check.js +0 -19
- package/dist/scripts/core-skill-manifest-check.js +0 -20
- 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-trainer-check.js +0 -116
- package/dist/scripts/dfix-fast-kernel-check.js +0 -26
- package/dist/scripts/dfix-performance-check.js +0 -15
- package/dist/scripts/docs-codex-0139-wording-check.js +0 -21
- package/dist/scripts/docs-loop-productionization-check.js +0 -3
- package/dist/scripts/docs-loop-runtime-check.js +0 -3
- package/dist/scripts/doctor-codex-startup-repair-check.js +0 -146
- package/dist/scripts/doctor-context7-mcp-repair-check.js +0 -11
- package/dist/scripts/doctor-context7-repair-check.js +0 -48
- package/dist/scripts/doctor-dirty-plan-check.js +0 -9
- package/dist/scripts/doctor-dirty-repair-check.js +0 -8
- package/dist/scripts/doctor-dirty-semantic-check.js +0 -7
- package/dist/scripts/doctor-fix-recovers-corrupted-config-check.js +0 -122
- package/dist/scripts/doctor-imagegen-repair-check.js +0 -77
- package/dist/scripts/doctor-native-capability-repair-check.js +0 -10
- package/dist/scripts/doctor-native-repair-output-check.js +0 -18
- package/dist/scripts/doctor-plain-fix-native-assets-check.js +0 -12
- package/dist/scripts/doctor-post-repair-authoritative-check.js +0 -39
- package/dist/scripts/doctor-startup-config-repair-check.js +0 -20
- package/dist/scripts/doctor-supabase-mcp-repair-check.js +0 -12
- package/dist/scripts/doctor-transaction-engine-check.js +0 -32
- package/dist/scripts/doctor-transaction-owns-mutations-check.js +0 -14
- package/dist/scripts/doctor-warning-only-not-blocker-check.js +0 -56
- package/dist/scripts/doctor-zellij-fix-output-check.js +0 -4
- package/dist/scripts/doctor-zellij-repair-check.js +0 -4
- package/dist/scripts/evidence-fixture-check.js +0 -26
- 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/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/gate-pack-fixture-cache-check.js +0 -9
- package/dist/scripts/gate-pack-runner-check.js +0 -6
- package/dist/scripts/geo-llms-txt-optional-check.js +0 -19
- 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-cleanup-check.js +0 -27
- package/dist/scripts/git-worktree-diff-export-check.js +0 -43
- 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-merge-queue-check.js +0 -31
- package/dist/scripts/git-worktree-pool-performance-check.js +0 -20
- package/dist/scripts/git-worktree-prewarm-runtime-check.js +0 -7
- package/dist/scripts/goal-legacy-runtime-escape-check.js +0 -3
- package/dist/scripts/goal-loop-compat-check.js +0 -3
- package/dist/scripts/goal-loop-runtime-default-check.js +0 -3
- package/dist/scripts/goal-mode-official-default-check.js +0 -12
- package/dist/scripts/gpt-final-arbiter-check.js +0 -66
- 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-no-unsupported-handlers.js +0 -15
- 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-runtime-replay-warning-zero-v2.js +0 -26
- package/dist/scripts/hooks-runtime-replay-warning-zero.js +0 -10
- package/dist/scripts/hooks-subagent-events-check.js +0 -17
- package/dist/scripts/hooks-trust-state-check.js +0 -14
- package/dist/scripts/hooks-trust-warning-zero.js +0 -14
- package/dist/scripts/image-artifact-registry-check.js +0 -14
- package/dist/scripts/image-fidelity-fixture-check.js +0 -24
- package/dist/scripts/image-followup-edit-path-check.js +0 -14
- package/dist/scripts/image-generation-path-handoff-check.js +0 -8
- package/dist/scripts/image-global-path-contract-check.js +0 -38
- package/dist/scripts/imagegen-capability-check.js +0 -30
- package/dist/scripts/init-deep-memory-scope-safety-check.js +0 -23
- package/dist/scripts/install-update-preserves-config-check.js +0 -182
- package/dist/scripts/json-schema-recursive-check.js +0 -78
- package/dist/scripts/legacy-multiagent-removal-check.js +0 -85
- package/dist/scripts/legacy-purge-final-check.js +0 -5
- package/dist/scripts/legacy-update-e2e-check.js +0 -228
- package/dist/scripts/lib/mad-sks-actual-executor-check-lib.js +0 -255
- package/dist/scripts/lib/native-cli-session-swarm-check-lib.js +0 -242
- package/dist/scripts/lib/real-codex-parallel-gate.js +0 -94
- package/dist/scripts/lib/real-codex-parallel-proof-fixture.js +0 -55
- 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-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 -32
- 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-hardening-check-lib.js +0 -289
- package/dist/scripts/machine-local-evidence-zero-check.js +0 -22
- package/dist/scripts/mad-db-capability-check.js +0 -26
- package/dist/scripts/mad-db-command-check.js +0 -18
- package/dist/scripts/mad-db-direct-apply-migration-hook-check.js +0 -73
- package/dist/scripts/mad-db-hook-idempotency-check.js +0 -21
- package/dist/scripts/mad-db-lifecycle-hook-decision-check.js +0 -18
- package/dist/scripts/mad-db-one-cycle-bounded-check.js +0 -24
- package/dist/scripts/mad-db-one-cycle-consumption-check.js +0 -16
- package/dist/scripts/mad-db-operation-lifecycle-ledger-check.js +0 -17
- package/dist/scripts/mad-db-parallel-lifecycle-check.js +0 -24
- package/dist/scripts/mad-db-policy-v2-check.js +0 -20
- package/dist/scripts/mad-db-priority-resolver-check.js +0 -20
- package/dist/scripts/mad-db-real-supabase-e2e.js +0 -166
- package/dist/scripts/mad-db-route-identity-check.js +0 -30
- package/dist/scripts/mad-db-runtime-profile-lifecycle-check.js +0 -24
- package/dist/scripts/mad-db-safety-conflict-matrix-check.js +0 -45
- package/dist/scripts/mad-db-skill-policy-snapshot-check.js +0 -18
- package/dist/scripts/mad-db-supabase-transport-diagnostics-check.js +0 -47
- 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-live-protected-core-smoke.js +0 -5
- 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 -38
- package/dist/scripts/mad-sks-zellij-launch-check.js +0 -108
- package/dist/scripts/mad-zellij-no-contradictory-output-check.js +0 -4
- package/dist/scripts/mad-zellij-self-heal-check.js +0 -4
- package/dist/scripts/managed-role-manifest-parity-check.js +0 -24
- 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/memory-summary-rebuild-check.js +0 -22
- 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 -45
- package/dist/scripts/naruto-gpt-final-pack-check.js +0 -34
- package/dist/scripts/naruto-loop-maker-checker-check.js +0 -3
- package/dist/scripts/naruto-loop-mesh-check.js +0 -3
- package/dist/scripts/naruto-loop-worker-router-check.js +0 -3
- package/dist/scripts/naruto-orchestrator-runtime-source-check.js +0 -70
- package/dist/scripts/naruto-parallel-gate-consistency-check.js +0 -8
- package/dist/scripts/naruto-parallel-patch-apply-check.js +0 -41
- package/dist/scripts/naruto-parallel-runtime-proof-check.js +0 -9
- package/dist/scripts/naruto-parallelism-mode-check.js +0 -13
- package/dist/scripts/naruto-parallelism-ux-check.js +0 -8
- package/dist/scripts/naruto-proof-message-summary-check.js +0 -9
- package/dist/scripts/naruto-proof-zellij-stacked-summary-check.js +0 -47
- package/dist/scripts/naruto-readonly-routing-check.js +0 -119
- package/dist/scripts/naruto-real-active-pool-check.js +0 -39
- package/dist/scripts/naruto-real-active-pool-runtime-check.js +0 -85
- package/dist/scripts/naruto-real-local-gpt-final-smoke.js +0 -25
- 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 -6
- package/dist/scripts/naruto-ssot-default-check.js +0 -9
- package/dist/scripts/naruto-ssot-gate-aliases-check.js +0 -10
- package/dist/scripts/naruto-ssot-pipeline-default-check.js +0 -11
- package/dist/scripts/naruto-ssot-route-normalization-check.js +0 -9
- package/dist/scripts/naruto-ssot-routing-check.js +0 -13
- package/dist/scripts/naruto-verification-pool-check.js +0 -36
- package/dist/scripts/naruto-visible-vs-active-workers-check.js +0 -10
- package/dist/scripts/naruto-work-graph-check.js +0 -24
- 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/native-app-screenshot-repair-check.js +0 -11
- package/dist/scripts/native-capability-repair-check.js +0 -15
- package/dist/scripts/native-chrome-web-review-repair-check.js +0 -11
- package/dist/scripts/native-computer-use-repair-check.js +0 -11
- package/dist/scripts/native-swarm-process-spawn-proof-check.js +0 -7
- package/dist/scripts/native-swarm-zellij-does-not-block-workers-check.js +0 -11
- package/dist/scripts/no-ts-nocheck-release-scripts-check.js +0 -4
- package/dist/scripts/non-recursive-pipeline-check.js +0 -68
- package/dist/scripts/npm-publish-performance-check.js +0 -74
- package/dist/scripts/orphan-strong-detection-check.js +0 -12
- package/dist/scripts/parallel-missing-pid-rejection-check.js +0 -55
- package/dist/scripts/parallel-runtime-proof-check.js +0 -23
- package/dist/scripts/parallel-runtime-proof-events-check.js +0 -13
- package/dist/scripts/parallel-strict-pid-proof-check.js +0 -54
- package/dist/scripts/parallel-verification-engine-check.js +0 -85
- package/dist/scripts/perf-gate.js +0 -39
- package/dist/scripts/pipeline-codex-0140-integration-check.js +0 -30
- package/dist/scripts/pipeline-five-minute-sla-check.js +0 -7
- package/dist/scripts/postinstall-safe-side-effects-check.js +0 -71
- package/dist/scripts/ppt-full-e2e-artifact-graph-check.js +0 -40
- package/dist/scripts/ppt-image-voxel-relations-check.js +0 -9
- 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 -10
- 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-slide-export-fixture-check.js +0 -7
- package/dist/scripts/priority-full-closure-check.js +0 -12
- package/dist/scripts/product-design-auto-install-check.js +0 -119
- package/dist/scripts/project-skill-dedupe-check.js +0 -34
- package/dist/scripts/provider-context-config-toml-check.js +0 -63
- 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-loop-app-server-driver-check.js +0 -74
- package/dist/scripts/qa-loop-surface-router-check.js +0 -49
- package/dist/scripts/quantum-baseline-report.js +0 -38
- package/dist/scripts/release-3112-required-gates.js +0 -30
- package/dist/scripts/release-3113-required-gates.js +0 -25
- package/dist/scripts/release-4000-required-gates.js +0 -36
- package/dist/scripts/release-4001-required-gates.js +0 -13
- package/dist/scripts/release-4002-required-gates.js +0 -14
- package/dist/scripts/release-cache-bridge-check.js +0 -23
- package/dist/scripts/release-check-dynamic-execute.js +0 -256
- package/dist/scripts/release-check-dynamic.js +0 -98
- package/dist/scripts/release-dynamic-performance-check.js +0 -109
- package/dist/scripts/release-gate-existence-audit.js +0 -78
- package/dist/scripts/release-gate-worker.js +0 -10
- 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-native-agent-fixture-check.js +0 -41
- package/dist/scripts/release-parallel-full-coverage-check.js +0 -19
- package/dist/scripts/release-registry-check.js +0 -417
- package/dist/scripts/release-script-type-safety-check.js +0 -4
- package/dist/scripts/release-speed-summary-check.js +0 -20
- package/dist/scripts/release-stability-report-check.js +0 -103
- package/dist/scripts/release-triwiki-first-runner-check.js +0 -9
- package/dist/scripts/repo-audit.js +0 -83
- package/dist/scripts/research-actual-route-backfill-check.js +0 -5
- package/dist/scripts/research-handoff-consumability-check.js +0 -23
- package/dist/scripts/research-parallel-source-shards-check.js +0 -22
- package/dist/scripts/research-real-cycle-no-legacy-final-md-check.js +0 -18
- package/dist/scripts/research-real-synthesis-no-deterministic-renderer-check.js +0 -14
- package/dist/scripts/research-repetition-detector-check.js +0 -19
- 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-synthesis-prompt-contract-check.js +0 -36
- package/dist/scripts/research-synthesis-writer-check.js +0 -26
- package/dist/scripts/research-template-report-rejection-check.js +0 -56
- package/dist/scripts/research-ultra-stability-report.js +0 -45
- package/dist/scripts/retention-cleanup-safety-check.js +0 -174
- package/dist/scripts/route-proof-artifact-structure-check.js +0 -146
- package/dist/scripts/runtime-proof-summary-cli-check.js +0 -51
- package/dist/scripts/runtime-proof-summary-messages-check.js +0 -37
- package/dist/scripts/runtime-proof-zellij-stacked-summary-check.js +0 -58
- package/dist/scripts/runtime-ts-python-boundary-check.js +0 -59
- package/dist/scripts/rust-smoke.js +0 -5
- package/dist/scripts/safety-check.js +0 -23
- package/dist/scripts/scheduler-critical-path-check.js +0 -9
- package/dist/scripts/scheduler-extreme-parallel-check.js +0 -7
- package/dist/scripts/scheduler-resource-budget-check.js +0 -7
- package/dist/scripts/scheduler-utilization-proof-check.js +0 -8
- package/dist/scripts/secret-line-rollback-check.js +0 -35
- package/dist/scripts/seo-canonical-locale-check.js +0 -19
- package/dist/scripts/seo-geo-feature-fixture-quality-check.js +0 -18
- package/dist/scripts/seo-geo-no-unsupported-ranking-claims-check.js +0 -18
- package/dist/scripts/seo-mutation-rollback-check.js +0 -23
- package/dist/scripts/seo-structured-data-visible-content-check.js +0 -19
- package/dist/scripts/side-effect-zero-gate-check.js +0 -226
- package/dist/scripts/skill-registry-ledger-check.js +0 -14
- package/dist/scripts/skill-sync-atomic-check.js +0 -35
- package/dist/scripts/sks-1-11-fixture-check.js +0 -130
- package/dist/scripts/sks-3-1-7-directive-check-lib.js +0 -58
- package/dist/scripts/source-intelligence-all-modes-check.js +0 -22
- 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/super-search-name-guard-check.js +0 -98
- package/dist/scripts/team-actual-route-backfill-check.js +0 -5
- package/dist/scripts/team-legacy-create-removed-check.js +0 -12
- package/dist/scripts/terminal-tui-output-stability-check.js +0 -35
- package/dist/scripts/tmux-removal-inventory.js +0 -36
- package/dist/scripts/triwiki-affected-graph-check.js +0 -10
- package/dist/scripts/triwiki-gate-impact-map-check.js +0 -8
- package/dist/scripts/triwiki-module-card-check.js +0 -7
- package/dist/scripts/triwiki-stale-proof-rejection-check.js +0 -25
- package/dist/scripts/typescript-migration-report.js +0 -78
- package/dist/scripts/ultra-router-classification-check.js +0 -28
- package/dist/scripts/update-concurrent-lock-check.js +0 -11
- package/dist/scripts/update-default-command-check.js +0 -30
- package/dist/scripts/update-doctor-lifecycle-check.js +0 -13
- package/dist/scripts/update-first-command-migration-check.js +0 -15
- package/dist/scripts/update-mad-zellij-notice-check.js +0 -9
- package/dist/scripts/update-new-binary-reexec-check.js +0 -12
- package/dist/scripts/update-notice-check.js +0 -10
- package/dist/scripts/update-secret-migration-journal-check.js +0 -8
- package/dist/scripts/update-secret-preservation-guard-check.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-generate-callouts-fixture-check.js +0 -9
- package/dist/scripts/ux-review-image-voxel-relations-check.js +0 -31
- 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-handoff-fixture-check.js +0 -8
- package/dist/scripts/ux-review-real-loop-fixture-check.js +0 -29
- package/dist/scripts/ux-review-recapture-recheck-fixture-check.js +0 -8
- package/dist/scripts/worker-pane-communication-contract-check.js +0 -53
- package/dist/scripts/zellij-real-session-heartbeat-check.js +0 -49
- package/dist/scripts/zellij-viewport-binder-check.js +0 -9
- package/dist/scripts/zellij-worker-pane-spawn-order-check.js +0 -35
package/dist/core/init/skills.js
CHANGED
|
@@ -1,72 +1,122 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import fsp from 'node:fs/promises';
|
|
3
|
+
import os from 'node:os';
|
|
3
4
|
import { ensureDir, exists, nowIso, PACKAGE_VERSION, readJson, readText, sha256, withScratchDir, writeJsonAtomic, writeTextAtomic } from '../fsx.js';
|
|
4
|
-
import {
|
|
5
|
-
import { buildSksCoreSkillManifest, isCoreSkillName } from '../codex-native/core-skill-manifest.js';
|
|
5
|
+
import { buildSksCoreSkillManifest, isCoreSkillName, legacyCoreSkillNames } from '../codex-native/core-skill-manifest.js';
|
|
6
6
|
import { syncCoreSkillsIntegrity } from '../codex-native/core-skill-integrity.js';
|
|
7
|
-
import { dbSafetyGuardSkillText,
|
|
7
|
+
import { dbSafetyGuardSkillText, madSksSqlPlanePolicyText } from '../mad-sks/sql-plane/policy.js';
|
|
8
8
|
import { SKILL_DREAM_POLICY, skillDreamPolicyText } from '../skill-forge.js';
|
|
9
9
|
import { installOfficialSubagentAgentConfigs } from '../subagents/official-subagent-config.js';
|
|
10
|
-
import {
|
|
10
|
+
import { reconcileRetiredAgentRoleResidue } from '../agents/agent-role-config.js';
|
|
11
|
+
import { ensureConfinedDirectory, inspectConfinedPath, moveConfinedPath, publicPathError, removeConfinedDirectoryIfEmpty, removeManagedPathVerified, uniqueConfinedPath } from '../managed-path-safety.js';
|
|
12
|
+
import { collectNestedProjectRoots } from '../doctor/current-project-guidance-nested.js';
|
|
13
|
+
import { AWESOME_DESIGN_MD_REFERENCE, CODEX_APP_IMAGE_GENERATION_DOC_URL, CODEX_COMPUTER_USE_ONLY_POLICY, CODEX_IMAGEGEN_EVIDENCE_SOURCE, CODEX_IMAGEGEN_REQUIRED_POLICY, CODEX_WEB_VERIFICATION_POLICY, DEFAULT_CODEX_APP_PLUGINS, DESIGN_SYSTEM_SSOT, DOLLAR_COMMANDS, DOLLAR_SKILL_NAMES, FROM_CHAT_IMG_CHECKLIST_ARTIFACT, FROM_CHAT_IMG_COVERAGE_ARTIFACT, FROM_CHAT_IMG_QA_LOOP_ARTIFACT, FROM_CHAT_IMG_TEMP_TRIWIKI_ARTIFACT, FROM_CHAT_IMG_TEMP_TRIWIKI_SESSIONS, GETDESIGN_REFERENCE, IMAGEGEN_SOCIAL_SOURCE_POLICY, LEGACY_DOLLAR_SKILL_NAMES, OPENAI_CHATGPT_IMAGES_2_DOC_URL, OPENAI_GPT_IMAGE_2_MODEL_DOC_URL, OPENAI_IMAGE_GENERATION_DOC_URL, PPT_CONDITIONAL_SKILL_ALLOWLIST, PPT_PIPELINE_MCP_ALLOWLIST, PPT_PIPELINE_SKILL_ALLOWLIST, RECOMMENDED_SKILLS, RESERVED_CODEX_PLUGIN_SKILL_NAMES, SOLUTION_SCOUT_SKILL_NAME, chatCaptureIntakeText, context7ConfigToml, getdesignReferencePolicyText, imageUxReviewPipelinePolicyText, leanEngineeringCompactText, outcomeRubricPolicyText, pptPipelineAllowlistPolicyText, productDesignPluginPolicyText, solutionScoutPolicyText, speedLanePolicyText, stackCurrentDocsPolicyText, triwikiContextTrackingText, triwikiStagePolicyText } from '../routes.js';
|
|
14
|
+
import { prefixKnownSksDollarReferences, sksPrefixedSkillName } from '../routes/dollar-prefix.js';
|
|
11
15
|
const SKS_SKILL_MANIFEST_FILE = '.sks-generated.json';
|
|
12
16
|
const PACKAGED_SKILLS_MANIFEST_SCHEMA = 'sks.skills-manifest.v1';
|
|
13
17
|
const GENERATED_PRUNE_POLICY = 'remove_previous_sks_generated_paths_absent_from_current_manifest';
|
|
14
18
|
const REFLECTION_MEMORY_PATH = '.sneakoscope/memory/q2_facts/post-route-reflection.md';
|
|
15
19
|
const MANAGED_SKILL_MARKER_RE = /BEGIN SKS (?:IMMUTABLE CORE|MANAGED) SKILL/;
|
|
16
20
|
const FORGE_SKILL_MARKER_RE = /BEGIN SKS FORGE SKILL/;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export const REMOVED_SKS_SKILL_NAMES = [
|
|
22
|
+
'old-workflow',
|
|
23
|
+
'team-legacy',
|
|
24
|
+
'team',
|
|
25
|
+
'agent-team',
|
|
26
|
+
'agent',
|
|
27
|
+
'mad-db',
|
|
28
|
+
'tmux',
|
|
29
|
+
'xai',
|
|
30
|
+
'swarm',
|
|
31
|
+
'shadow-clone',
|
|
32
|
+
'shadow-clone-legacy',
|
|
33
|
+
'kage-bunshin',
|
|
34
|
+
'qaloop',
|
|
35
|
+
'wiki-refresh',
|
|
36
|
+
'wikirefresh',
|
|
37
|
+
'ralph',
|
|
38
|
+
'ralph-supervisor',
|
|
39
|
+
'ralph-resolver'
|
|
40
|
+
];
|
|
41
|
+
const LEGACY_SKS_SUPPORT_SKILL_NAMES = [
|
|
42
|
+
'autoresearch-loop',
|
|
43
|
+
'context7-docs',
|
|
44
|
+
'db-safety-guard',
|
|
45
|
+
'design-artifact-expert',
|
|
46
|
+
'design-system-builder',
|
|
47
|
+
'design-ui-editor',
|
|
48
|
+
'from-chat-img',
|
|
49
|
+
'getdesign-reference',
|
|
50
|
+
'gx-visual-generate',
|
|
51
|
+
'gx-visual-read',
|
|
52
|
+
'gx-visual-validate',
|
|
53
|
+
'honest-mode',
|
|
54
|
+
'hproof-claim-ledger',
|
|
55
|
+
'hproof-evidence-bind',
|
|
56
|
+
'imagegen',
|
|
57
|
+
'imagegen-source-scout',
|
|
58
|
+
'performance-evaluator',
|
|
59
|
+
'pipeline-runner',
|
|
60
|
+
'prompt-pipeline',
|
|
61
|
+
'reasoning-router',
|
|
62
|
+
'reflection',
|
|
63
|
+
'research-discovery',
|
|
64
|
+
'solution-scout',
|
|
65
|
+
'turbo-context-pack'
|
|
66
|
+
];
|
|
67
|
+
export const LEGACY_UNPREFIXED_SKS_SKILL_NAMES = Array.from(new Set([
|
|
68
|
+
...LEGACY_DOLLAR_SKILL_NAMES,
|
|
69
|
+
...legacyCoreSkillNames(),
|
|
70
|
+
...LEGACY_SKS_SUPPORT_SKILL_NAMES
|
|
71
|
+
].map((name) => canonicalSkillNameFromValue(name)).filter((name) => name && name !== 'sks'))).sort();
|
|
72
|
+
const SKS_SKILL_NAMES_TO_CLEAN_UP = Array.from(new Set([
|
|
73
|
+
...REMOVED_SKS_SKILL_NAMES,
|
|
74
|
+
...LEGACY_UNPREFIXED_SKS_SKILL_NAMES
|
|
75
|
+
]));
|
|
76
|
+
const REMOVED_SKS_SKILL_NAME_SET = new Set(SKS_SKILL_NAMES_TO_CLEAN_UP);
|
|
77
|
+
const SKILL_ALIASES = {};
|
|
25
78
|
function reflectionInstructionText(commandPrefix = 'sks') {
|
|
26
79
|
return `Post-route reflection: full routes load \`reflection\` after work/tests and before final; DFix/Answer/Help/Wiki/SKS discovery are exempt. Write reflection.md; record only real misses/gaps, or no_issue_acknowledged. For lessons, append TriWiki claim rows to ${REFLECTION_MEMORY_PATH}. Run "${commandPrefix} wiki refresh" or pack, validate, then pass reflection-gate.json.`;
|
|
27
80
|
}
|
|
28
81
|
async function installOfficialSkills(root) {
|
|
29
82
|
const imageUxReviewSkill = (name) => `---\nname: ${name}\ndescription: $Image-UX-Review/$UX-Review imagegen/gpt-image-2 annotated UI/UX review loop.\n---\n\nUse only for $Image-UX-Review, $UX-Review, $visual-review, or $ui-ux-review UI/UX review requests. ${imageUxReviewPipelinePolicyText()} Route start must check Codex App imagegen capability and run the SKS imagegen repair loop once; if $imagegen/gpt-image-2 is still unavailable, stop with codex_imagegen_unavailable instead of doing text-only review or direct API substitution. Core loop: capture or attach source UI screenshots, then invoke Codex App $imagegen with gpt-image-2 to create a new generated annotated review image from each source screenshot, then analyze the generated review image with vision/OCR into image-ux-issue-ledger.json, then apply only requested safe fixes and recheck changed screens. Text-only screenshot critique cannot satisfy full verification; missing generated annotated review images keep full image-ux-review-gate.json verification blocked, but may close verified_partial/reference-only when source screenshots plus hashes, docs evidence, source Image Voxel anchors, and Honest Mode evidence exist. For live web/browser/webapp capture use Codex Chrome Extension first and halt if it is not installed/enabled; use Codex Computer Use only for native Mac/non-web app screens. Required artifacts: image-ux-review-policy.json, image-ux-screen-inventory.json, image-ux-generated-review-ledger.json, image-ux-issue-ledger.json, image-ux-iteration-report.json, image-ux-review-gate.json. Finish with reflection and Honest Mode.\n`;
|
|
30
|
-
const
|
|
83
|
+
const canonicalMadSksSqlPlanePolicy = madSksSqlPlanePolicyText()
|
|
84
|
+
.replace(/^---[\s\S]*?---\s*/, '')
|
|
85
|
+
.trim();
|
|
31
86
|
const skills = {
|
|
32
|
-
'dfix': `---\nname: dfix\ndescription: Direct Fix mode for $DFix or $dfix requests and inferred tiny copy/config/docs/labels/spacing/translation/simple mechanical edits.\n---\n\nUse for tiny copy/config/docs/labels/spacing/translation/simple mechanical edits. List exact micro-edits, inspect only needed files, apply only those edits, and run cheap verification. Keep broad implementation routed to
|
|
87
|
+
'dfix': `---\nname: dfix\ndescription: Direct Fix mode for $DFix or $dfix requests and inferred tiny copy/config/docs/labels/spacing/translation/simple mechanical edits.\n---\n\nUse for tiny copy/config/docs/labels/spacing/translation/simple mechanical edits. List exact micro-edits, inspect only needed files, apply only those edits, and run cheap verification. Keep broad implementation routed to Naruto; for UI/UX micro-edits read \`design.md\` when present and use imagegen for image/logo/raster assets. Bypass broad SKS routing, mission state, TriWiki/TriFix/reflection/state recording, Goal, Research, eval, redesign, and repeated full-route Honest Mode loops. Start the final answer with \`DFix 완료 요약:\` and include one \`DFix 솔직모드:\` line covering verified, not verified, and remaining issues. ${CODEX_IMAGEGEN_REQUIRED_POLICY}\n`,
|
|
33
88
|
'answer': `---\nname: answer\ndescription: Answer-only research route for ordinary questions that should not start implementation.\n---\n\nUse for explanations, comparisons, status, facts, source-backed research, or docs guidance. Use repo/TriWiki first for project-local facts; hydrate low-trust claims from source. Browse or use Context7 for current external package/API/framework/MCP docs. End with a concise answer summary plus Honest Mode; do not create missions, subagents, or file edits.\n`,
|
|
34
|
-
'sks': `---\nname: sks\ndescription: General Sneakoscope Codex command route for $SKS or $sks usage, setup, status, and workflow help.\n---\n\nUse local SKS commands: bootstrap, deps, commands, quickstart, codex-app, context7, guard, conflicts, reasoning, wiki, pipeline status, pipeline plan, skill-dream. Promote code-changing work to
|
|
89
|
+
'sks': `---\nname: sks\ndescription: General Sneakoscope Codex command route for $SKS or $sks usage, setup, status, and workflow help.\n---\n\nUse local SKS commands: bootstrap, deps, commands, quickstart, codex-app, context7, guard, conflicts, reasoning, wiki, pipeline status, pipeline plan, skill-dream. Promote code-changing work to Naruto unless Answer/DFix/Help/Wiki/safety route fits. Surface route/guard/scope, use TriWiki, do not edit installed harness files outside this engine repo, and require human-approved conflict cleanup. ${skillDreamPolicyText()}\n`,
|
|
35
90
|
'plan': `---\nname: plan\ndescription: Plan scaffold only - writes a fixed-template .sneakoscope/plans/<slug>.md, never touches code. Not project-specific decision-complete planning. 예: $Plan "결제 모듈 리팩터"\n---\n\nUse when the user invokes $Plan or asks for a plan-only frontdoor. Produce a concrete plan artifact under .sneakoscope/plans/<slug>.md with goal, scope, files to inspect, implementation steps, acceptance checks, and rollback notes. Do not edit product/source files, generated harness files, package metadata, or docs beyond the plan artifact. Keep implementation_allowed=false and hand off execution to $Work only after the user or route explicitly moves from planning to work. Finish with what is planned, what remains unimplemented, and Honest Mode.\n`,
|
|
36
|
-
'work': `---\nname: work\ndescription: Execute the latest plan with evidence-gated completion. 예: $Work\n---\n\nUse when the user invokes $Work or asks to execute the latest SKS plan. Resolve the newest .sneakoscope/plans/*.md, route execution through Naruto
|
|
37
|
-
'swarm': `---\nname: swarm\ndescription: Deprecated $Swarm compatibility alias for the $Naruto Codex official subagent workflow.\n---\n\nWarn once that $Swarm is a deprecated alias, then follow the naruto skill. Use Codex official subagents and agent threads through \`sks naruto run "<task>" [--agents N] [--max-threads N] [--json]\`. The parent runs on GPT-5.6 Sol Max, clear bounded worker slices use GPT-5.6 Luna Max, and reasoning-sensitive expert slices use GPT-5.6 Sol Max. Wait for all requested subagents and keep write slices disjoint. SubagentStart/SubagentStop prove lifecycle only; completion requires subagent-parent-summary.json with one structured parent outcome per thread. Canonical artifacts are subagent-plan.json, subagent-events.jsonl, subagent-parent-summary.json, subagent-evidence.json, naruto-summary.json, and naruto-gate.json. Finish with scoped verification, reflection when required, and Honest Mode.\n`,
|
|
91
|
+
'work': `---\nname: work\ndescription: Execute the latest plan with evidence-gated completion. 예: $Work\n---\n\nUse when the user invokes $Work or asks to execute the latest SKS plan. Resolve the newest .sneakoscope/plans/*.md, route execution through Naruto evidence gates, keep leases and verification artifacts current, and do not claim completion without machine evidence or explicit blocker evidence. If no plan exists, block with a clear next action: run $Plan first or provide a task.\n`,
|
|
38
92
|
'review': `---\nname: review\ndescription: Parallel diff review with machine-evidence first findings. 예: $Review 또는 sks review --staged\n---\n\nUse when the user asks for $Review or sks review. Review the selected diff read-only unless --fix is explicitly supplied. Machine evidence such as TypeScript, lint, tests, conflict markers, or secret scans outranks LLM findings and must be tagged evidence: machine; judgment-only findings must be tagged evidence: llm. --fix may attempt at most one machine-evidence fix pass and must re-run verification once. Do not mutate code for LLM-only opinions.\n`,
|
|
39
|
-
'fast-mode': `---\nname: fast-mode\ndescription: Dollar-command route for $Fast-Mode, $Fast-On, and $Fast-Off global Codex Desktop Fast mode toggles.\n---\n\nUse when the user invokes $Fast-Mode, $Fast-On, $Fast-Off, or asks to turn SKS Fast mode on/off. Prefer \`sks fast-mode on|off|status|clear --json\`. By default on/off updates the global Codex Desktop config so GPT 5.5 Fast persists and also keeps .sneakoscope/state/fast-mode.json in sync for SKS workers. Use \`--project\` only when the user explicitly wants project-local worker preference without touching global Codex config. Explicit runtime flags still win: \`--fast\`, \`--no-fast\`, and \`--service-tier standard|fast\` override the saved preference for that run. Finish with a short status and Honest Mode; do not start
|
|
93
|
+
'fast-mode': `---\nname: fast-mode\ndescription: Dollar-command route for $Fast-Mode, $Fast-On, and $Fast-Off global Codex Desktop Fast mode toggles.\n---\n\nUse when the user invokes $Fast-Mode, $Fast-On, $Fast-Off, or asks to turn SKS Fast mode on/off. Prefer \`sks fast-mode on|off|status|clear --json\`. By default on/off updates the global Codex Desktop config so GPT 5.5 Fast persists and also keeps .sneakoscope/state/fast-mode.json in sync for SKS workers. Use \`--project\` only when the user explicitly wants project-local worker preference without touching global Codex config. Explicit runtime flags still win: \`--fast\`, \`--no-fast\`, and \`--service-tier standard|fast\` override the saved preference for that run. Finish with a short status and Honest Mode; do not start Naruto or broad implementation for a toggle-only request.\n`,
|
|
40
94
|
'fast-on': `---\nname: fast-on\ndescription: Alias for $Fast-On global Codex Desktop GPT 5.5 Fast enablement.\n---\n\nUse the same rules as fast-mode. Run or instruct \`sks fast-mode on --json\`, then report Global (desktop), Project (sks workers), state file, and the fact that explicit per-run flags still override the saved preference.\n`,
|
|
41
95
|
'fast-off': `---\nname: fast-off\ndescription: Alias for $Fast-Off global Codex Desktop Fast mode disablement.\n---\n\nUse the same rules as fast-mode. Run or instruct \`sks fast-mode off --json\`, then report Global (desktop), Project (sks workers), state file, and the fact that explicit per-run flags still override the saved preference.\n`,
|
|
42
|
-
'with-local-llm-on': `---\nname: with-local-llm-on\ndescription: Dollar-command route for $with-local-llm-on local Ollama worker enablement.\n---\n\nUse when the user invokes $with-local-llm-on or asks to enable the optional local Ollama worker backend. Prefer \`sks with-local-llm on --json\`. The command writes the machine-local config at \`~/.sneakoscope/local-model.json\`. Default off means SKS stays GPT-only until this command enables local workers. Enabled mode only lets policy-eligible simple code patch-envelope or read-only collection worker slices use Ollama; GPT/Codex still owns strategy, planning, design, review, verification, safety, and integration. \`--no-ollama\` and \`SKS_OLLAMA_WORKERS=0\` still force local workers off for a run. Finish with a short status and Honest Mode; do not start
|
|
43
|
-
'with-local-llm-off': `---\nname: with-local-llm-off\ndescription: Dollar-command route for $with-local-llm-off local Ollama worker disablement.\n---\n\nUse when the user invokes $with-local-llm-off or asks to disable the optional local Ollama worker backend. Prefer \`sks with-local-llm off --json\`. The command writes the machine-local config at \`~/.sneakoscope/local-model.json\`. Disabled mode keeps SKS GPT-only by default. Strategy, planning, design, review, verification, safety, and integration remain GPT/Codex-owned regardless of this toggle. Finish with a short status and Honest Mode; do not start
|
|
96
|
+
'with-local-llm-on': `---\nname: with-local-llm-on\ndescription: Dollar-command route for $with-local-llm-on local Ollama worker enablement.\n---\n\nUse when the user invokes $with-local-llm-on or asks to enable the optional local Ollama worker backend. Prefer \`sks with-local-llm on --json\`. The command writes the machine-local config at \`~/.sneakoscope/local-model.json\`. Default off means SKS stays GPT-only until this command enables local workers. Enabled mode only lets policy-eligible simple code patch-envelope or read-only collection worker slices use Ollama; GPT/Codex still owns strategy, planning, design, review, verification, safety, and integration. \`--no-ollama\` and \`SKS_OLLAMA_WORKERS=0\` still force local workers off for a run. Finish with a short status and Honest Mode; do not start Naruto for a toggle-only request.\n`,
|
|
97
|
+
'with-local-llm-off': `---\nname: with-local-llm-off\ndescription: Dollar-command route for $with-local-llm-off local Ollama worker disablement.\n---\n\nUse when the user invokes $with-local-llm-off or asks to disable the optional local Ollama worker backend. Prefer \`sks with-local-llm off --json\`. The command writes the machine-local config at \`~/.sneakoscope/local-model.json\`. Disabled mode keeps SKS GPT-only by default. Strategy, planning, design, review, verification, safety, and integration remain GPT/Codex-owned regardless of this toggle. Finish with a short status and Honest Mode; do not start Naruto for a toggle-only request.\n`,
|
|
44
98
|
'wiki': `---\nname: wiki\ndescription: Dollar-command route for $Wiki TriWiki refresh, pack, validate, and prune commands.\n---\n\nUse for $Wiki or Korean wiki-refresh requests. Refresh/update/갱신: run sks wiki refresh, then validate .sneakoscope/wiki/context-pack.json. Pack: run sks wiki pack, then validate. Prune/clean/정리: use sks wiki refresh --prune, or sks wiki prune --dry-run for inspection. Report claims, anchors, trust, attention.use_first/hydrate_first, validation, and blockers. Do not start ambiguity-gated implementation, subagents, or unrelated work.\n`,
|
|
45
|
-
'
|
|
46
|
-
'from-chat-img': `---\nname: from-chat-img\ndescription: Explicit $From-Chat-IMG Naruto add-on gate for chat screenshot plus attachment analysis.\n---\n\nUse only for From-Chat-IMG/$From-Chat-IMG. It enters the Naruto pipeline with from_chat_img_required=true and an add-on coverage gate, not the legacy Team pipeline. Treat uploads as chat screenshot plus originals. For web/browser/webapp targets use Codex Chrome Extension first; for native Mac/non-web app surfaces use Codex Computer Use visual inspection when available. List requirements first, match regions to attachments with confidence, write ${FROM_CHAT_IMG_COVERAGE_ARTIFACT}, ${FROM_CHAT_IMG_CHECKLIST_ARTIFACT}, ${FROM_CHAT_IMG_TEMP_TRIWIKI_ARTIFACT}, and ${FROM_CHAT_IMG_QA_LOOP_ARTIFACT}, then continue Naruto worker proof, review, reflection, and Honest Mode. ${CODEX_WEB_VERIFICATION_POLICY} ${CODEX_COMPUTER_USE_ONLY_POLICY} The ledger must account for every visible customer request, screenshot image region, and separate attachment; ${FROM_CHAT_IMG_CHECKLIST_ARTIFACT} must have a checked item for each request, image-region/attachment match, work item, scoped QA-LOOP, and verification step; ${FROM_CHAT_IMG_TEMP_TRIWIKI_ARTIFACT} stores temporary TriWiki-backed session context with expires_after_sessions=${FROM_CHAT_IMG_TEMP_TRIWIKI_SESSIONS}. ${FROM_CHAT_IMG_QA_LOOP_ARTIFACT} must prove QA-LOOP ran over the exact customer-request work-order range after implementation, with every work item covered, post-fix verification complete, and zero unresolved findings. naruto-gate.json cannot pass From-Chat-IMG completion until from_chat_img_request_coverage=true, unresolved_items is empty, every checklist box is checked, and scoped_qa_loop_completed=true.\n`,
|
|
47
|
-
'shadow-clone': `---\nname: shadow-clone\ndescription: Deprecated $ShadowClone compatibility alias for the $Naruto Codex official subagent workflow.\n---\n\nEmit one deprecation warning, translate the request to $Naruto, and use \`sks naruto run "<task>" [--agents N] [--max-threads N] [--json]\`. Do not describe the new default as clones, a process swarm, or a native kernel. Follow the naruto skill's Sol Max parent, Luna Max worker, Sol Max expert, lifecycle-only event evidence, structured subagent-parent-summary.json, max_depth=1, canonical six-artifact contract, scoped verification, reflection, and Honest Mode rules.\n`,
|
|
48
|
-
'kage-bunshin': `---\nname: kage-bunshin\ndescription: Deprecated $Kagebunshin compatibility alias for the $Naruto Codex official subagent workflow.\n---\n\nEmit one deprecation warning, translate the request to $Naruto, and use \`sks naruto run "<task>" [--agents N] [--max-threads N] [--json]\`. Legacy 影分身 terminology is compatibility-only and must not define the new runtime. Follow the naruto skill's Sol Max parent, Luna Max worker, Sol Max expert, lifecycle-only event evidence, structured subagent-parent-summary.json, max_depth=1, canonical six-artifact contract, scoped verification, reflection, and Honest Mode rules.\n`,
|
|
99
|
+
'from-chat-img': `---\nname: from-chat-img\ndescription: Explicit $From-Chat-IMG Naruto add-on gate for chat screenshot plus attachment analysis.\n---\n\nUse only for From-Chat-IMG/$From-Chat-IMG. It enters the Naruto pipeline with from_chat_img_required=true and an add-on coverage gate. Treat uploads as chat screenshot plus originals. For web/browser/webapp targets use Codex Chrome Extension first; for native Mac/non-web app surfaces use Codex Computer Use visual inspection when available. List requirements first, match regions to attachments with confidence, write ${FROM_CHAT_IMG_COVERAGE_ARTIFACT}, ${FROM_CHAT_IMG_CHECKLIST_ARTIFACT}, ${FROM_CHAT_IMG_TEMP_TRIWIKI_ARTIFACT}, and ${FROM_CHAT_IMG_QA_LOOP_ARTIFACT}, then continue Naruto worker proof, review, reflection, and Honest Mode. ${CODEX_WEB_VERIFICATION_POLICY} ${CODEX_COMPUTER_USE_ONLY_POLICY} The ledger must account for every visible customer request, screenshot image region, and separate attachment; ${FROM_CHAT_IMG_CHECKLIST_ARTIFACT} must have a checked item for each request, image-region/attachment match, work item, scoped QA-LOOP, and verification step; ${FROM_CHAT_IMG_TEMP_TRIWIKI_ARTIFACT} stores temporary TriWiki-backed session context with expires_after_sessions=${FROM_CHAT_IMG_TEMP_TRIWIKI_SESSIONS}. ${FROM_CHAT_IMG_QA_LOOP_ARTIFACT} must prove QA-LOOP ran over the exact customer-request work-order range after implementation, with every work item covered, post-fix verification complete, and zero unresolved findings. naruto-gate.json cannot pass From-Chat-IMG completion until from_chat_img_request_coverage=true, unresolved_items is empty, every checklist box is checked, and scoped_qa_loop_completed=true.\n`,
|
|
49
100
|
'qa-loop': `---\nname: qa-loop\ndescription: $QA-LOOP dogfoods UI/API as human proxy with safety gates, Codex Chrome Extension-first web UI evidence, safe fixes, rechecks, and a QA report.\n---\n\nUse only $QA-LOOP. Infer scope, target, mutation policy, and login boundary from the prompt plus TriWiki/current-code defaults; do not surface a prequestion sheet. Credentials are runtime-only; never save secrets. Web/browser/webapp UI-level E2E must run the Codex Chrome Extension readiness gate first; if the extension is missing or disabled, rapidly halt and ask the user to set it up, then resume only after the user confirms installation is complete. Codex Computer Use is reserved for native Mac/non-web surfaces and must not satisfy web UI evidence. Playwright, Selenium, Puppeteer, Browser Use, Chrome MCP, screenshots fabricated from code, and prose-only checks do not satisfy web UI/browser verification. ${CODEX_WEB_VERIFICATION_POLICY} Deployed targets are read-only; destructive removal is forbidden. After answer/run, dogfood real flows, apply safe contract-allowed code/test/docs fixes, recheck, and do not pass qa-gate.json with unresolved findings or without post_fix_verification_complete. Finish qa-ledger, date/version report, gate, completion summary, and Honest Mode.\n`,
|
|
50
101
|
'ppt': `---\nname: ppt\ndescription: $PPT information-first HTML/PDF presentation pipeline with inferred STP, audience, pain-point, format, research, design-system, and verification contract.\n---\n\nUse only when the user invokes $PPT or asks to create a presentation, deck, slides, pitch deck, proposal deck, HTML presentation, or PDF presentation artifact. Before artifact work, auto-seal presentation-specific answers from prompt, TriWiki/current-code defaults, and conservative policy: delivery context, target audience profile including role/average age/job/industry/topic familiarity/decision power, STP strategy, decision context and objections, and 3+ pain-point to solution mappings with expected aha moments. Do not surface a prequestion sheet. Presentation design must be simple, restrained, and information-first: avoid over-designed decoration, ornamental gradients, nested cards, and effects that compete with the message. Design detail should be embedded through typography hierarchy, spacing, alignment, thin rules, source clarity, and subtle accents. ${pptPipelineAllowlistPolicyText()} Use Product Design plugin first for context, ideation, prototype direction, audit, design QA, and share handoff. Use design.md only as an existing project-local cache or fallback SSOT when Product Design is unavailable; if fallback creation is needed, use docs/Design-Sys-Prompt.md plus getdesign-reference and curated DESIGN.md examples from ${AWESOME_DESIGN_MD_REFERENCE.url} only as source inputs, then fuse them into route-local PPT style tokens with a recorded design_ssot instead of treating references as parallel authorities. The $PPT route always loads imagegen as a required skill, checks Codex App imagegen at route start, and runs SKS auto-repair once before any image-dependent build/review work. If repair fails, stop with codex_imagegen_unavailable and do not continue with image-free or API-substituted evidence. When the sealed contract needs a generated raster asset or generated slide visual critique, immediately invoke Codex App \`$imagegen\` with gpt-image-2, move/copy the selected output into the mission assets or review evidence path, and record the real file path in ppt-image-asset-ledger.json or ppt-review-ledger.json before building or passing the gate. Direct API fallback, placeholder files, HTML/CSS stand-ins, and prose-only substitutes do not satisfy the route gate. ${productDesignPluginPolicyText()} ${CODEX_IMAGEGEN_REQUIRED_POLICY} Use web or Context7 evidence only when external facts/libraries/current docs are required by the PPT contract, record verified claims in ppt-fact-ledger.json, record generated image asset plans/results/blockers in ppt-image-asset-ledger.json, then create the PDF plus editable source HTML under source-html/, keep independent strategy/render/file-write phases parallel where inputs allow, record ppt-parallel-report.json, run the bounded ppt-review-policy/ppt-review-ledger/ppt-iteration-report loop, and verify readability, overlap, format fit, source coverage, export state, unsupported-claim status, image-asset completion, review-loop termination, and temporary build files cleanup. Finish with reflection and Honest Mode.\n`,
|
|
51
|
-
'computer-use-fast': `---\nname: computer-use-fast\ndescription: Alias for the maximum-speed $Computer-Use/$CU native Codex Computer Use lane.\n---\n\nUse the same rules as computer-use: skip
|
|
102
|
+
'computer-use-fast': `---\nname: computer-use-fast\ndescription: Alias for the maximum-speed $Computer-Use/$CU native Codex Computer Use lane.\n---\n\nUse the same rules as computer-use: skip Naruto delegation, QA-LOOP clarification, upfront TriWiki refresh, Context7, subagents, and reflection unless explicitly requested. Use Codex Computer Use directly only for native macOS, desktop-app, OS-settings, or non-web visual tasks. Browser, localhost, website, webapp, and web-based app verification must use the Codex Chrome Extension path first and must halt if that extension is not installed/enabled. At the end only, refresh/pack TriWiki, validate it, then provide a concise completion summary plus Honest Mode. ${CODEX_WEB_VERIFICATION_POLICY} ${CODEX_COMPUTER_USE_ONLY_POLICY}\n`,
|
|
52
103
|
'cu': `---\nname: cu\ndescription: Short alias for the maximum-speed native $Computer-Use Codex Computer Use lane.\n---\n\nUse the same rules as computer-use. This is a speed lane for native macOS, desktop-app, OS-settings, and non-web visual tasks requiring Codex Computer Use evidence, with TriWiki refresh/validate and Honest Mode deferred to final closeout. Web/browser/webapp verification must use Codex Chrome Extension first and stop if the extension is not installed/enabled. ${CODEX_WEB_VERIFICATION_POLICY} ${CODEX_COMPUTER_USE_ONLY_POLICY}\n`,
|
|
53
|
-
'goal': `---\nname: goal\ndescription: Fast $Goal/$goal bridge overlay for Codex native persisted /goal workflows.\n---\n\nUse when the user invokes $Goal/$goal or asks to persist a workflow with Codex native /goal continuation. Prepare with sks goal create or the $Goal route, write only the lightweight bridge artifacts, then use native Codex /goal create, pause, resume, and clear controls where available. Goal does not replace
|
|
54
|
-
'release-review': `---\nname: release-review\ndescription: Official Codex subagent release review route for $Release-Review.\n---\n\nUse only when the user invokes $Release-Review or asks for a release-readiness review. Run it through \`sks naruto run \"$Release-Review release audit\" --agents <n> --read-only --json\` or the current Codex parent session. The parent owns decomposition, waits for every official worker/expert thread, integrates one structured outcome per thread, and records subagent-plan.json, subagent-events.jsonl, subagent-parent-summary.json, and subagent-evidence.json.
|
|
55
|
-
'commit': `---\nname: commit\ndescription: Simple git-only route for $Commit requests that stage current changes and create one commit without the full SKS pipeline.\n---\n\nUse only when the user invokes $Commit or explicitly asks to commit the current repository changes without pushing. Keep this route lightweight: inspect git status and the relevant diff summary, avoid
|
|
56
|
-
'commit-and-push': `---\nname: commit-and-push\ndescription: Simple git-only route for $Commit-And-Push requests that stage current changes, create one commit, and push without the full SKS pipeline.\n---\n\nUse only when the user invokes $Commit-And-Push or explicitly asks to commit and push the current repository changes. Keep this route lightweight: inspect git status and the relevant diff summary, avoid
|
|
104
|
+
'goal': `---\nname: goal\ndescription: Fast $Goal/$goal bridge overlay for Codex native persisted /goal workflows.\n---\n\nUse when the user invokes $Goal/$goal or asks to persist a workflow with Codex native /goal continuation. Prepare with sks goal create or the $Goal route, write only the lightweight bridge artifacts, then use native Codex /goal create, pause, resume, and clear controls where available. Goal does not replace Naruto, QA, DB, or other SKS execution routes; continue implementation through the selected route and use Context7 only when external API/library docs are involved. Do not recreate the old no-question loop.\n`,
|
|
105
|
+
'release-review': `---\nname: release-review\ndescription: Official Codex subagent release review route for $Release-Review.\n---\n\nUse only when the user invokes $Release-Review or asks for a release-readiness review. Run it through \`sks naruto run \"$Release-Review release audit\" --agents <n> --read-only --json\` or the current Codex parent session. The parent owns decomposition, waits for every official worker/expert thread, integrates one structured outcome per thread, and records subagent-plan.json, subagent-events.jsonl, subagent-parent-summary.json, and subagent-evidence.json. No alternate Release-Review runtime is supported. Finish with release-readiness verification and Honest Mode.\n`,
|
|
106
|
+
'commit': `---\nname: commit\ndescription: Simple git-only route for $Commit requests that stage current changes and create one commit without the full SKS pipeline.\n---\n\nUse only when the user invokes $Commit or explicitly asks to commit the current repository changes without pushing. Keep this route lightweight: inspect git status and the relevant diff summary, avoid Naruto/pipeline/TriWiki route work unless separately requested, stage the intended current changes, and create one git commit. The commit message must summarize the actual work and include exactly one trailer: Co-authored-by: Codex <noreply@openai.com>. Do not push. If there are no changes, report that no commit was created. Finish with a concise result and a one-line Honest Mode covering the commit hash and any unverified items.\n`,
|
|
107
|
+
'commit-and-push': `---\nname: commit-and-push\ndescription: Simple git-only route for $Commit-And-Push requests that stage current changes, create one commit, and push without the full SKS pipeline.\n---\n\nUse only when the user invokes $Commit-And-Push or explicitly asks to commit and push the current repository changes. Keep this route lightweight: inspect git status and the relevant diff summary, avoid Naruto/pipeline/TriWiki route work unless separately requested, stage the intended current changes, create one git commit, then push the current branch. The commit message must summarize the actual work and include exactly one trailer: Co-authored-by: Codex <noreply@openai.com>. If there are no changes, do not create an empty commit unless the user explicitly asks for one. Finish with a concise result and a one-line Honest Mode covering the commit hash, pushed branch, and any unverified items.\n`,
|
|
57
108
|
'research': `---\nname: research\ndescription: Dollar-command route for $Research or $research frontier discovery workflows.\n---\n\nUse when the user invokes $Research/$research or asks for research, hypotheses, new mechanisms, falsification, or testable predictions. Prefer sks research prepare and sks research run. Research is not an implementation route: do not edit repository source, docs, package metadata, generated skills, or harness files; write only route-local mission artifacts under .sneakoscope/missions/<mission-id>/. First run layered Super Search across current papers, primary/official sources, standards, public discourse, practitioner evidence, background sources, and explicit counterevidence; only verified-content source rows may support real-run reviewer claims. Then run exactly three independent official Codex subagent threads using the project custom agent research_reviewer with GPT-5.6 Sol Max: Einstein Agent (first principles, explanation, experiments), von Neumann Agent (formal systems, algorithms, strategy, scaling), and Skeptic Agent (counterevidence, base rates, replication). These are composite persona-inspired lenses, not impersonations. Do not launch a custom debate scheduler, worker pool, or synthetic model fanout. Each reviewer must return the structured adversarial outcome, one literal "Eureka!" idea, source ids, falsifiers, cheap probes, and zero unresolved objections before approval. If any reviewer requests revision, revise the manuscript and run a fresh three-thread review cycle within the bounded cycle cap; convergence requires unanimous approval and trustworthy parent outcomes for all threads. agent-ledger.json and debate-ledger.json are compatibility projections from official reviewer outcomes, not independent runtime proof. Record research-source-skill.md, source-ledger.json, claim-evidence-matrix.json, novelty-ledger.json, falsification-ledger.json, research-report.md, the dated research paper, research-adversarial-review.json, research-revision-ledger.json, research-adversarial-convergence.json, genius-opinion-summary.md, research-honest-mode.json, and research-gate.json. Context7 is required only when the topic depends on current package/API/framework docs. Do not use --mock except for selftests; if live source execution is unavailable, record a blocker and keep the gate unpassed. Do not use for ordinary code edits.\n`,
|
|
58
109
|
'autoresearch': `---\nname: autoresearch\ndescription: Dollar-command route for $AutoResearch or $autoresearch iterative experiment loops.\n---\n\nUse for $AutoResearch, iterative improvement, ranking, workflow, benchmark, or experiments. Define program, hypothesis, experiment, metric, keep/discard, falsification, next step, and Honest Mode. Do not become the parent identity for SEO/GEO; $SEO-GEO-OPTIMIZER may call research as a child stage for query, market, or competitor discovery while keeping the parent mission, gate, and Completion Proof on $SEO-GEO-OPTIMIZER.\n`,
|
|
59
|
-
'db': `---\nname: db\ndescription: Dollar-command route for $DB or $db database and Supabase safety checks.\n---\n\nUse when the user invokes $DB/$db or the task touches SQL, Supabase, Postgres, migrations, Prisma, Drizzle, Knex, MCP database tools, or production data. The $DB route automatically materializes db-safety-scan.json and db-review.json from the internal DB safety engine; inspect those artifacts and current source/docs evidence
|
|
60
|
-
'mad-
|
|
61
|
-
'mad-sks': `---\nname: mad-sks\ndescription: Explicit high-risk authorization modifier plus merged SQL-plane executor for $MAD-SKS.\n---\n\nUse only when the user explicitly invokes $MAD-SKS, top-level sks --mad, or \`sks mad-sks plan|run|apply|sql|apply-migration|status|close|rollback-apply\`. MAD-SKS is the single high-risk MAD route: it combines scoped permission widening across approved target-project surfaces with the former MAD-DB SQL-plane execution model. It can be combined with another route, such as $MAD-SKS $Team or $DB ... $MAD-SKS; in that case the other command remains the primary workflow and MAD-SKS is the temporary permission grant or sql-plane executor. The widened permission applies only while the active mission gate is open, must be deactivated when the task ends, and can open approved scopes such as target-project file writes, shell commands, package installs, local service control, network operations, browser/Computer Use workflows, generated assets, file permissions, migrations, Supabase MCP database writes, column/schema cleanup, direct execute SQL, and normal targeted DB writes.\n\nMerged SQL-plane policy from mad-db:\n${mergedMadDbSqlPlanePolicy}\n\nCatastrophic SQL boundary: TRUNCATE, all-row UPDATE/DELETE, table/schema/database DROP, and equivalent reset operations are allowed only through the sql-plane executor and only when the user's prompt or CLI SQL statement literally names that operation. Other MAD-SKS executors, including db-write, keep those catastrophic categories blocked. Whole database/schema/table removal outside sql-plane, dangerous project/branch management, credential exfiltration, persistent security weakening, destructive delete without explicit confirmation, and unrequested fallback implementation remain blocked. Do not carry MAD-SKS permission into later prompts or routes. The permission profile source is centralized in src/core/permission-gates.ts and emitted as dist/core/permission-gates.js so skill/hook/MCP-style gates share one decision function.\n`,
|
|
110
|
+
'db': `---\nname: db\ndescription: Dollar-command route for $DB or $db database and Supabase safety checks.\n---\n\nUse when the user invokes $DB/$db or the task touches SQL, Supabase, Postgres, migrations, Prisma, Drizzle, Knex, MCP database tools, or production data. The $DB route automatically materializes db-safety-scan.json and db-review.json from the internal DB safety engine; inspect those artifacts and current source/docs evidence directly. Keep analysis read-only by default. Destructive database operations remain forbidden; explicitly authorized SQL-plane work uses sks mad-sks plan|sql|apply-migration under an active scoped permission mission.\n`,
|
|
111
|
+
'mad-sks': `---\nname: mad-sks\ndescription: Explicit high-risk authorization modifier plus SQL-plane executor for $MAD-SKS.\n---\n\nUse only when the user explicitly invokes $MAD-SKS, top-level sks --mad, or \`sks mad-sks plan|run|apply|sql|apply-migration|status|close|rollback-apply\`. MAD-SKS is the single high-risk route for scoped permission widening and bound SQL-plane execution. It can be combined with another route, such as $MAD-SKS $Naruto or $DB ... $MAD-SKS; in that case the other command remains the primary workflow and MAD-SKS is the temporary permission grant or SQL-plane executor. The widened permission applies only while the active mission gate is open, must be deactivated when the task ends, and can open approved scopes such as target-project file writes, shell commands, package installs, local service control, network operations, browser/Computer Use workflows, generated assets, file permissions, migrations, Supabase MCP database writes, column/schema cleanup, direct execute SQL, and normal targeted DB writes.\n\nSQL-plane policy:\n${canonicalMadSksSqlPlanePolicy}\n\nCatastrophic SQL boundary: TRUNCATE, all-row UPDATE/DELETE, table/schema/database DROP, and equivalent reset operations are allowed only through the SQL-plane executor and only when the user's prompt or CLI SQL statement literally names that operation. Other MAD-SKS executors, including db-write, keep those catastrophic categories blocked. Whole database/schema/table removal outside SQL-plane, dangerous project/branch management, credential exfiltration, persistent security weakening, destructive delete without explicit confirmation, and unrequested fallback implementation remain blocked. Do not carry MAD-SKS permission into later prompts or routes. The permission profile source is centralized in src/core/permission-gates.ts and emitted as dist/core/permission-gates.js so skill/hook/MCP-style gates share one decision function.\n`,
|
|
62
112
|
'gx': `---\nname: gx\ndescription: Dollar-command route for $GX or $gx deterministic GX visual context cartridges.\n---\n\nUse when the user invokes $GX/$gx or asks for architecture/context visualization through SKS. Prefer sks gx init, render, validate, drift, and snapshot. vgraph.json remains the source of truth.\n`,
|
|
63
113
|
'help': `---\nname: help\ndescription: Dollar-command route for $Help or $help explaining installed SKS commands and workflows.\n---\n\nUse when the user invokes $Help/$help or asks what commands exist. Prefer concise output from sks commands, sks usage <topic>, sks quickstart, sks aliases, and sks codex-app.\n`,
|
|
64
|
-
'prompt-pipeline': `---\nname: prompt-pipeline\ndescription: Default SKS prompt optimization pipeline for execution prompts; Answer and DFix bypass it.\n---\n\nClassify intent: Answer only for real questions; question-shaped implicit instructions, complaints, and mandatory-policy statements route to
|
|
114
|
+
'prompt-pipeline': `---\nname: prompt-pipeline\ndescription: Default SKS prompt optimization pipeline for execution prompts; Answer and DFix bypass it.\n---\n\nClassify intent: Answer only for real questions; question-shaped implicit instructions, complaints, and mandatory-policy statements route to Naruto. DFix handles Direct Fix work: tiny copy/config/docs/labels/spacing/translation/simple mechanical edits; code and broad implementation default to Naruto unless safety/research/GX route fits. Infer goal, target, constraints, acceptance, risk, and smallest safe route from prompt, TriWiki/current-code defaults, and conservative SKS policy. Do not surface a prequestion sheet. Materialize pipeline-plan.json for the runtime lane, kept/skipped stages, no-fallback invariant, lean_decision, and verification; inspect with sks pipeline plan, adding --proof-field when changed files are known. Code work surfaces route/guard/scopes, materializes the official subagent plan with disjoint write scopes, and keeps parent-owned integration/tests/Context7/Honest Mode. ${leanEngineeringCompactText()} ${outcomeRubricPolicyText()} ${speedLanePolicyText()} ${solutionScoutPolicyText('fix this broken behavior')} ${skillDreamPolicyText()}\n\n${chatCaptureIntakeText()}\n\nDesign: non-PPT UI/UX uses Product Design plugin first; legacy design.md/design-system-builder/design-ui-editor/design-artifact-expert/getdesign-reference are fallback only when the plugin is unavailable or an existing project design.md must be respected. Use imagegen for image/logo/raster, and imagegen must prefer Codex App built-in image generation (${CODEX_APP_IMAGE_GENERATION_DOC_URL}) before API generation. ${productDesignPluginPolicyText()} ${CODEX_IMAGEGEN_REQUIRED_POLICY} For UI/UX review/audit requests that mention image generation, gpt-image-2, callouts, or annotated review images, route to $Image-UX-Review/$UX-Review and require generated annotated review image evidence before issue extraction; do not satisfy that route with text-only critique. For $PPT, ${pptPipelineAllowlistPolicyText()} ${getdesignReferencePolicyText()} TriWiki context-tracking SSOT: .sneakoscope/wiki/context-pack.json; read only the latest coordinate+voxel overlay pack before every route stage, run sks wiki refresh/pack after changes, validate before handoffs/final.\n`,
|
|
65
115
|
[SOLUTION_SCOUT_SKILL_NAME]: `---\nname: ${SOLUTION_SCOUT_SKILL_NAME}\ndescription: Web-similarity scout hook for SKS problem-solving and repair requests.\n---\n\n${solutionScoutPolicyText('fix this broken behavior')}\n\nUse this as a pipeline hook, not as a standalone route: when a user asks to solve, fix, repair, troubleshoot, or investigate broken behavior, search first for similar resolution cases, summarize the useful patterns with sources, then combine them with current repo evidence before editing. If browsing is unavailable, mark the external scout unverified and continue with local evidence only.\n`,
|
|
66
116
|
'reasoning-router': `---\nname: reasoning-router\ndescription: Temporary SKS reasoning-effort routing for every command and pipeline route.\n---\n\nmedium: simple copy/color/discovery/setup/mechanical edits. high: logic, safety, architecture, DB, orchestration, refactor, multi-file work. xhigh: research, AutoResearch, falsification, benchmarks, SEO/GEO, open-ended discovery, and From-Chat-IMG image work-order analysis. Routing is temporary; return to default after the gate. Inspect with sks reasoning and sks pipeline status.\n`,
|
|
67
|
-
'pipeline-runner': `---\nname: pipeline-runner\ndescription: Execute SKS dollar-command routes as stateful pipelines with mission artifacts, route gates, Context7 evidence, temporary reasoning routing, reflection, and Honest Mode.\n---\n\nEvery $ command is a route. Use current.json, mission artifacts, and pipeline-plan.json as the execution plan: it records the lane, skipped stages, kept stages, verification, lean_decision, and no-unrequested-fallback invariant. Use temporary reasoning, TriWiki before stages, source hydration, Context7 when required,
|
|
117
|
+
'pipeline-runner': `---\nname: pipeline-runner\ndescription: Execute SKS dollar-command routes as stateful pipelines with mission artifacts, route gates, Context7 evidence, temporary reasoning routing, reflection, and Honest Mode.\n---\n\nEvery $ command is a route. Use current.json, mission artifacts, and pipeline-plan.json as the execution plan: it records the lane, skipped stages, kept stages, verification, lean_decision, and no-unrequested-fallback invariant. Use temporary reasoning, TriWiki before stages, source hydration, Context7 when required, Naruto cleanup before reflection, reflection for full routes, and completion summary plus Honest Mode before final. Surface guard/scopes, record evidence, refresh/pack/validate TriWiki, and check sks pipeline status/resume/plan. ${leanEngineeringCompactText()} ${speedLanePolicyText()} ${skillDreamPolicyText()}\n`,
|
|
68
118
|
'context7-docs': `---\nname: context7-docs\ndescription: Enforce Context7 MCP documentation evidence for SKS routes that depend on external libraries, frameworks, APIs, MCPs, package managers, DB SDKs, or generated docs.\n---\n\nWhen required, resolve-library-id, then query-docs for the resolved id. Legacy get-library-docs evidence is accepted. Prefer sks context7 tools/resolve/docs/evidence and finish only after both evidence stages exist. Check setup with sks context7 check.\n`,
|
|
69
|
-
'super-search': `---\nname: super-search\ndescription: Dollar-command route for $Super-Search provider-independent source intelligence.\n---\n\nUse when the user invokes $Super-Search or asks for Super-Search source intelligence, source acquisition, X-search-style collection, URL acquisition, source normalization, claim ledgers, or citation proof. Prefer \`sks super-search doctor --json\` for readiness and \`sks super-search run "<query>" --mode balanced --json\` for provider-independent source proof; use \`sks super-search x "<query>" --json\` for X-search intent and \`sks super-search fetch "<url>" --json\` for URL acquisition. Context7 is required only when the query depends on current package/API/framework/MCP/generated documentation behavior.
|
|
119
|
+
'super-search': `---\nname: super-search\ndescription: Dollar-command route for $Super-Search provider-independent source intelligence.\n---\n\nUse when the user invokes $Super-Search or asks for Super-Search source intelligence, source acquisition, X-search-style collection, URL acquisition, source normalization, claim ledgers, or citation proof. Prefer \`sks super-search doctor --json\` for readiness and \`sks super-search run "<query>" --mode balanced --json\` for provider-independent source proof; use \`sks super-search x "<query>" --json\` for X-search intent and \`sks super-search fetch "<url>" --json\` for URL acquisition. Context7 is required only when the query depends on current package/API/framework/MCP/generated documentation behavior. Provider-specific credentials are optional and must not be required for route readiness. Evidence/artifacts remain under \`.sneakoscope/missions/<super-search-* or route mission>/super-search/\`: intent.json, axes.json, query-variants.json, provider-plan.json, source-ledger.json, lead-ledger.json, claim-ledger.json, attempt-ledger.json, synthesis.md, super-search-proof.json, super-search-gate.json, and super-search-result.json. Do not turn weak discovery into supported claims; finish with an Honest Mode summary of verified sources, blockers, and unverified external coverage.\n`,
|
|
70
120
|
'search-visibility-core': `---\nname: search-visibility-core\ndescription: Shared kernel for seo-geo-optimizer audit, plan, explicit apply, rollback, verification, gates, and Completion Proof.\n---\n\nPurpose: keep Search Engine Optimization and Generative Engine Optimization on one typed search-visibility kernel instead of duplicate implementations. Use when $SEO-GEO-OPTIMIZER or \`sks seo-geo-optimizer\` is selected. Workflow: doctor detects package/static/Next evidence; audit writes source-backed inventory and findings; plan compiles safe mutation operations; apply requires explicit \`--apply\`; verify separates source, build, HTTP, browser, production, and measured outcome; rollback only reverses mission-owned operations. Safety: default read-only, never overwrite unmanaged robots.txt, sitemap, llms.txt, metadata, or structured data; do not hard-code customer routes; do not invent prices, reviews, availability, rankings, traffic, or AI citation outcomes. Evidence/artifacts: search-visibility/intake.json, adapter-detection.json, site-inventory.json, route-graph.json, robots-policy.json, structured-data-ledger.json, mutation-plan.json, mutation-journal.jsonl, rollback-manifest.json, verification-report.json, route gate, and completion-proof.json. Failure/recovery: unsupported frameworks stay audit/plan-only; missing production/browser/Search Console evidence remains unverified, not fabricated. CLI entrypoint: \`sks seo-geo-optimizer ... --mode seo|geo\`.\n`,
|
|
71
121
|
'seo-geo-optimizer': `---\nname: seo-geo-optimizer\ndescription: Unified $SEO-GEO-OPTIMIZER route for Search Engine Optimization and Generative Engine Optimization.\n---\n\nPurpose: use one route name for SEO and GEO work while keeping the internal search-visibility mode explicit. Use when: the user asks for SEO audit/fix/verification, package/npm/GitHub search visibility, canonical, sitemap, robots.txt, hreflang, metadata, structured data, AI answer visibility, LLM citation readiness, answerability, entity/claim provenance, crawler policy, OAI-SearchBot/GPTBot/ChatGPT-User, Claude-SearchBot/ClaudeBot/Claude-User, or optional llms.txt planning. GEO means Generative Engine Optimization, not geolocation, GeoIP, maps, CDN geography, location permission, or regional redirect bugs. Workflow: run \`sks seo-geo-optimizer doctor --mode seo|geo\`, then audit, plan, explicit apply, verify, status, and rollback. Use \`--mode seo\` for technical/package search optimization and \`--mode geo\` for entity facts, claim evidence, answerability, crawler policy, and optional llms.txt. Safety: audit and plan must not mutate source; apply checks base hashes, ownership, scope, protected paths, rollback manifest, and post-verify. AI crawler policy must split search, training, user-directed retrieval, and ads/other; never use one allow_ai toggle and never auto-allow training crawlers. Evidence/artifacts: site-inventory.json, route-graph.json, seo-findings.json or geo-findings.json, entity-facts.json, claim-evidence-ledger.json, answerability-report.json, ai-crawler-policy.json, llms-txt-plan.json, mutation-plan.json, verification-report.json, seo-gate.json or geo-gate.json, completion-proof.json. Failure/recovery: unsupported frameworks stay plan-only; browser/production/Search Console/analytics outcomes are marked unverified when not actually run. Forbidden claims: no ranking, indexing, traffic lift, rich-result, answer inclusion, or AI citation guarantee; no keyword stuffing, doorway pages, fake reviews, fake prices, fake availability, fake shipping, fake awards, hidden AI-only text, or scaled spam. CLI entrypoint: \`sks seo-geo-optimizer doctor|audit|plan|apply|verify|status|rollback|fixture --mode seo|geo\`.\n`,
|
|
72
122
|
'reflection': `---\nname: reflection\ndescription: Post-route self-review for full SKS routes that records real misses, gaps, and corrective lessons into TriWiki memory.\n---\n\nUse after full route work/tests and before final. DFix, Answer, Help, Wiki, SKS discovery are exempt. Do not invent faults. Write reflection.md; append real lessons to ${REFLECTION_MEMORY_PATH}; refresh/pack, validate context-pack.json, pass reflection-gate.json.\n\n${reflectionInstructionText()}\n`,
|
|
@@ -86,25 +136,28 @@ async function installOfficialSkills(root) {
|
|
|
86
136
|
'visual-review': imageUxReviewSkill('visual-review'),
|
|
87
137
|
'ui-ux-review': imageUxReviewSkill('ui-ux-review'),
|
|
88
138
|
'imagegen': `---\nname: imagegen\ndescription: Required bridge to Codex App built-in image generation for logos, image assets, raster visuals, and image edits.\n---\n\nUse for generated or edited image assets: logo, product image, illustration, sprite, mockup, texture, cutout, or bitmap. Prefer the official Codex App built-in image generation feature documented at ${CODEX_APP_IMAGE_GENERATION_DOC_URL}: ask naturally or invoke \`$imagegen\`. SKS route code checks capability before image-dependent routes, attempts doctor imagegen repair once, and reports codex_imagegen_unavailable if Codex App $imagegen still is not ready. For newest-model requests, make the prompt explicit: "Use ChatGPT Images 2.0 / GPT Image 2.0 with gpt-image-2." Useful official references are ${OPENAI_CHATGPT_IMAGES_2_DOC_URL}, ${OPENAI_GPT_IMAGE_2_MODEL_DOC_URL}, and ${OPENAI_IMAGE_GENERATION_DOC_URL}. Codex App image generation counts against Codex usage limits. Capability detection is not output proof; full SKS evidence requires a real selected raster output path or generated review image artifact. Direct OpenAI API fallback is non-Codex evidence and does not satisfy SKS route evidence unless a separate non-Codex API task is explicitly requested. ${IMAGEGEN_SOCIAL_SOURCE_POLICY} ${CODEX_IMAGEGEN_REQUIRED_POLICY} Do not substitute placeholder SVG/HTML/CSS for requested raster assets; follow design.md when relevant.\n`,
|
|
89
|
-
'imagegen-source-scout': `---\nname: imagegen-source-scout\ndescription: Source scout for current GPT Image 2.0/gpt-image-2 prompt guidance, official docs, and X/social workflow signals.\n---\n\nUse when the user asks for the latest imagegen docs, ChatGPT Images 2.0 / GPT Image 2.0 / gpt-image-2 behavior, X/social reactions, prompt examples, or community workflow hints before creating an image prompt or SKS imagegen policy. Source order: official OpenAI announcement (${OPENAI_CHATGPT_IMAGES_2_DOC_URL}), Codex App image generation docs (${CODEX_APP_IMAGE_GENERATION_DOC_URL}), gpt-image-2 model docs (${OPENAI_GPT_IMAGE_2_MODEL_DOC_URL}), OpenAI Image Generation API docs (${OPENAI_IMAGE_GENERATION_DOC_URL}), then public X/social/community search for prompt-quality heuristics only. ${IMAGEGEN_SOCIAL_SOURCE_POLICY} If
|
|
139
|
+
'imagegen-source-scout': `---\nname: imagegen-source-scout\ndescription: Source scout for current GPT Image 2.0/gpt-image-2 prompt guidance, official docs, and X/social workflow signals.\n---\n\nUse when the user asks for the latest imagegen docs, ChatGPT Images 2.0 / GPT Image 2.0 / gpt-image-2 behavior, X/social reactions, prompt examples, or community workflow hints before creating an image prompt or SKS imagegen policy. Source order: official OpenAI announcement (${OPENAI_CHATGPT_IMAGES_2_DOC_URL}), Codex App image generation docs (${CODEX_APP_IMAGE_GENERATION_DOC_URL}), gpt-image-2 model docs (${OPENAI_GPT_IMAGE_2_MODEL_DOC_URL}), OpenAI Image Generation API docs (${OPENAI_IMAGE_GENERATION_DOC_URL}), then public X/social/community search for prompt-quality heuristics only. ${IMAGEGEN_SOCIAL_SOURCE_POLICY} If social or web search is unavailable, record that social coverage is unverified and continue from official docs. Output a compact evidence split: official capability/evidence rules, prompt heuristics, social/workflow signals, and blockers. Do not generate images itself; pair this with the imagegen skill for actual raster output.\n`,
|
|
90
140
|
'getdesign-reference': `---\nname: getdesign-reference\ndescription: Use getdesign.md official design reference as an input to the design.md SSOT for UI/UX, presentation, and HTML/PDF systems.\n---\n\nUse when creating or improving design.md, UI/UX design systems, deck-like HTML artifacts, presentation PDFs, or brand-inspired visual systems. design.md is the only design decision SSOT; reference ${GETDESIGN_REFERENCE.url}, ${GETDESIGN_REFERENCE.docs_url}, and ${AWESOME_DESIGN_MD_REFERENCE.url} only as source inputs to synthesize or update that SSOT or a route-local style-token artifact. Prefer the official Codex skill if available with \`${GETDESIGN_REFERENCE.codex_skill_install}\`. If the skill CLI is unavailable, use this generated skill plus official docs/API/CLI/SDK references and curated DESIGN.md examples as inputs. Do not claim getdesign MCP is configured unless a current official MCP surface is actually installed.\n`,
|
|
91
141
|
'design-system-builder': `---\nname: design-system-builder\ndescription: Legacy fallback to create design.md from docs/Design-Sys-Prompt.md only when Product Design plugin is unavailable or explicit local SSOT is required.\n---\n\nUse Product Design plugin first. Only when the plugin is unavailable or the route explicitly needs a local fallback SSOT, read docs/Design-Sys-Prompt.md as the builder prompt, inspect product/UI context, and use getdesign-reference, official getdesign.md docs, and curated DESIGN.md examples from ${AWESOME_DESIGN_MD_REFERENCE.url} only as source inputs. Fuse those inputs into one design.md fallback/cache with tokens, components, states, imagery, accessibility, and verification rules; do not leave multiple design files or references as competing authorities. Use the plan tool only for real ambiguity plus default font recommendation. Use imagegen for assets. ${productDesignPluginPolicyText()} ${CODEX_IMAGEGEN_REQUIRED_POLICY}\n`,
|
|
92
142
|
'design-ui-editor': `---\nname: design-ui-editor\ndescription: Legacy fallback UI/UX editor for existing design.md systems when Product Design plugin is unavailable.\n---\n\nUse Product Design plugin first. When falling back, read \`design.md\`, inspect relevant UI/assets/tests, consult getdesign-reference when improving the design system, apply the smallest design-system-conformant change, use imagegen for image/logo/raster assets, and verify render quality. ${productDesignPluginPolicyText()} ${CODEX_IMAGEGEN_REQUIRED_POLICY} If design.md is missing and Product Design is unavailable, use design-system-builder as fallback.\n`,
|
|
93
143
|
'design-artifact-expert': `---\nname: design-artifact-expert\ndescription: Legacy fallback for high-fidelity HTML/UI/prototype artifacts when Product Design plugin cannot be used.\n---\n\nUse Product Design plugin first for design/UI/prototype work. When falling back, read design.md when present, consult getdesign-reference for design-system grounding, build the usable artifact first, preserve state, verify overlap/readability/responsiveness, and use imagegen for required assets. ${productDesignPluginPolicyText()} ${CODEX_IMAGEGEN_REQUIRED_POLICY}\n`
|
|
94
144
|
};
|
|
95
|
-
const nonCoreSkillNames = Object.keys(skills)
|
|
96
|
-
|
|
145
|
+
const nonCoreSkillNames = Array.from(new Set(Object.keys(skills)
|
|
146
|
+
.map(currentSksInstalledSkillName)
|
|
147
|
+
.filter((name) => !isCoreSkillName(name))));
|
|
148
|
+
for (const [legacyName, content] of Object.entries(skills)) {
|
|
149
|
+
const name = currentSksInstalledSkillName(legacyName);
|
|
97
150
|
if (isCoreSkillName(name))
|
|
98
151
|
continue;
|
|
99
152
|
const dir = path.join(root, '.agents', 'skills', name);
|
|
100
|
-
const skillContent = markManagedSkill(name, enrichSkillContent(
|
|
101
|
-
const existingText = await
|
|
153
|
+
const skillContent = markManagedSkill(name, currentSurfaceSkillText(enrichSkillContent(legacyName, content), name));
|
|
154
|
+
const existingText = await readConfinedOfficialSkillText(root, dir, name);
|
|
102
155
|
if (typeof existingText === 'string' && !isSksManagedOrGeneratedOfficialSkill(existingText)) {
|
|
103
156
|
await quarantineSkillDir(root, dir, name, 'global-official-name-user-collision');
|
|
104
157
|
}
|
|
105
|
-
await
|
|
158
|
+
await ensureConfinedDirectory(root, dir);
|
|
106
159
|
await writeTextAtomic(path.join(dir, 'SKILL.md'), `${skillContent.trim()}\n`);
|
|
107
|
-
await writeSkillMetadata(dir, name);
|
|
160
|
+
await writeSkillMetadata(root, dir, name);
|
|
108
161
|
}
|
|
109
162
|
const coreManifest = buildSksCoreSkillManifest();
|
|
110
163
|
const coreByName = new Map(coreManifest.skills.map((skill) => [skill.canonical_name, skill.content_sha256]));
|
|
@@ -118,7 +171,7 @@ async function installOfficialSkills(root) {
|
|
|
118
171
|
.filter((row) => row.after_sha256 === coreByName.get(row.canonical_name) && row.action !== 'skip-user-authored')
|
|
119
172
|
.map((row) => row.canonical_name);
|
|
120
173
|
for (const name of managedCoreSkillNames) {
|
|
121
|
-
await writeSkillMetadata(path.join(root, '.agents', 'skills', name), name);
|
|
174
|
+
await writeSkillMetadata(root, path.join(root, '.agents', 'skills', name), name);
|
|
122
175
|
}
|
|
123
176
|
const skillNames = [...nonCoreSkillNames, ...managedCoreSkillNames];
|
|
124
177
|
const removedStaleGeneratedSkills = await removeStaleGeneratedSkillsFromManifest(root, skillNames);
|
|
@@ -140,6 +193,47 @@ async function installOfficialSkills(root) {
|
|
|
140
193
|
removed_codex_skill_mirrors: await removeGeneratedCodexSkillMirrors(root, skillNames)
|
|
141
194
|
};
|
|
142
195
|
}
|
|
196
|
+
async function readConfinedOfficialSkillText(root, dir, name) {
|
|
197
|
+
const dirInspection = await inspectConfinedPath(root, dir);
|
|
198
|
+
if (!dirInspection.exists)
|
|
199
|
+
return null;
|
|
200
|
+
if (dirInspection.leafSymlink || !dirInspection.stat?.isDirectory()) {
|
|
201
|
+
await quarantineSkillDir(root, dir, name, 'global-official-path-collision');
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
const expected = [
|
|
205
|
+
{ target: path.join(dir, 'SKILL.md'), kind: 'file' },
|
|
206
|
+
{ target: path.join(dir, 'agents'), kind: 'directory' },
|
|
207
|
+
{ target: path.join(dir, 'agents', 'openai.yaml'), kind: 'file' }
|
|
208
|
+
];
|
|
209
|
+
for (const row of expected) {
|
|
210
|
+
const inspected = await inspectConfinedPath(root, row.target);
|
|
211
|
+
if (!inspected.exists)
|
|
212
|
+
continue;
|
|
213
|
+
const wrongType = row.kind === 'file' ? !inspected.stat?.isFile() : !inspected.stat?.isDirectory();
|
|
214
|
+
if (inspected.leafSymlink || wrongType) {
|
|
215
|
+
await quarantineSkillDir(root, dir, name, 'global-official-nested-path-collision');
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const skillPath = path.join(dir, 'SKILL.md');
|
|
220
|
+
const skillInspection = await inspectConfinedPath(root, skillPath);
|
|
221
|
+
return skillInspection.exists ? fsp.readFile(skillPath, 'utf8') : null;
|
|
222
|
+
}
|
|
223
|
+
function currentSksInstalledSkillName(value) {
|
|
224
|
+
const canonical = canonicalSkillNameFromValue(value);
|
|
225
|
+
return sksPrefixedSkillName(canonical);
|
|
226
|
+
}
|
|
227
|
+
function currentSurfaceSkillText(content, installedName) {
|
|
228
|
+
const prefixed = prefixKnownSksDollarReferences(content, [
|
|
229
|
+
...LEGACY_DOLLAR_SKILL_NAMES,
|
|
230
|
+
...legacyCoreSkillNames(),
|
|
231
|
+
...LEGACY_SKS_SUPPORT_SKILL_NAMES.filter((name) => name !== 'imagegen')
|
|
232
|
+
]);
|
|
233
|
+
return installedName
|
|
234
|
+
? prefixed.replace(/^name:\s*.+$/m, `name: ${installedName}`)
|
|
235
|
+
: prefixed;
|
|
236
|
+
}
|
|
143
237
|
export async function installGlobalSkills(home) {
|
|
144
238
|
return reconcileSkills({ targetDir: path.join(home, '.agents', 'skills'), scope: 'global', fix: true });
|
|
145
239
|
}
|
|
@@ -149,15 +243,384 @@ export async function installProjectSkills(root) {
|
|
|
149
243
|
export async function installSkills(root) {
|
|
150
244
|
return installGlobalSkills(root);
|
|
151
245
|
}
|
|
246
|
+
export async function cleanupRemovedSksSkillResidue(opts) {
|
|
247
|
+
const projectRoot = path.resolve(opts.root);
|
|
248
|
+
const home = path.resolve(opts.home || os.homedir());
|
|
249
|
+
const globalRuntimeRoot = path.resolve(opts.globalRuntimeRoot || process.env.SKS_GLOBAL_ROOT || path.join(home, '.sneakoscope-global'));
|
|
250
|
+
const targets = [
|
|
251
|
+
{ scope: 'global', ownerRoot: home, targetDir: path.join(home, '.agents', 'skills') },
|
|
252
|
+
{ scope: 'global-codex', ownerRoot: home, targetDir: path.join(home, '.codex', 'skills') },
|
|
253
|
+
{ scope: 'project', ownerRoot: projectRoot, targetDir: path.join(projectRoot, '.agents', 'skills') },
|
|
254
|
+
{ scope: 'project-codex', ownerRoot: projectRoot, targetDir: path.join(projectRoot, '.codex', 'skills') },
|
|
255
|
+
{ scope: 'global-runtime', ownerRoot: globalRuntimeRoot, targetDir: path.join(globalRuntimeRoot, '.agents', 'skills') },
|
|
256
|
+
{ scope: 'global-runtime-codex', ownerRoot: globalRuntimeRoot, targetDir: path.join(globalRuntimeRoot, '.codex', 'skills') }
|
|
257
|
+
];
|
|
258
|
+
if (projectRoot !== home && projectRoot !== globalRuntimeRoot) {
|
|
259
|
+
const scan = await collectNestedProjectRoots(projectRoot, new Set([home, globalRuntimeRoot]));
|
|
260
|
+
for (const root of scan.roots)
|
|
261
|
+
targets.push({ scope: 'project', ownerRoot: projectRoot, targetDir: path.join(root, '.agents', 'skills') }, { scope: 'project-codex', ownerRoot: projectRoot, targetDir: path.join(root, '.codex', 'skills') });
|
|
262
|
+
}
|
|
263
|
+
return reconcileRemovedSkillTargets(targets, opts.fix);
|
|
264
|
+
}
|
|
265
|
+
async function reconcileRemovedSkillTargets(targets, fix) {
|
|
266
|
+
const detected = [];
|
|
267
|
+
const removed = [];
|
|
268
|
+
const quarantinedUserCollisions = [];
|
|
269
|
+
const rewrittenManifests = [];
|
|
270
|
+
const quarantinedManifestCollisions = [];
|
|
271
|
+
const remaining = [];
|
|
272
|
+
const errors = [];
|
|
273
|
+
const uniqueTargets = new Map();
|
|
274
|
+
for (const target of targets) {
|
|
275
|
+
const key = path.resolve(target.targetDir);
|
|
276
|
+
if (!uniqueTargets.has(key))
|
|
277
|
+
uniqueTargets.set(key, target);
|
|
278
|
+
}
|
|
279
|
+
for (const target of uniqueTargets.values()) {
|
|
280
|
+
const ownerRoot = path.resolve(target.ownerRoot);
|
|
281
|
+
const targetDir = path.resolve(target.targetDir);
|
|
282
|
+
let ownerStat;
|
|
283
|
+
try {
|
|
284
|
+
ownerStat = await fsp.lstat(ownerRoot);
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
if (nodeErrorCode(error) === 'ENOENT')
|
|
288
|
+
continue;
|
|
289
|
+
errors.push(`${displayRemovedSkillPath(target, targetDir)}:${publicPathError(error, ownerRoot)}`);
|
|
290
|
+
remaining.push(displayRemovedSkillPath(target, targetDir));
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
if (ownerStat.isSymbolicLink() || !ownerStat.isDirectory()) {
|
|
294
|
+
const code = ownerStat.isSymbolicLink() ? 'managed_path_boundary_symlink_refused' : 'managed_path_boundary_not_directory';
|
|
295
|
+
errors.push(`${displayRemovedSkillPath(target, targetDir)}:${code}:${ownerRoot}`);
|
|
296
|
+
remaining.push(displayRemovedSkillPath(target, targetDir));
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
let targetInspection;
|
|
300
|
+
try {
|
|
301
|
+
targetInspection = await inspectConfinedPath(ownerRoot, targetDir);
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
errors.push(`${displayRemovedSkillPath(target, targetDir)}:${publicPathError(error, targetDir)}`);
|
|
305
|
+
remaining.push(displayRemovedSkillPath(target, targetDir));
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
if (!targetInspection.exists)
|
|
309
|
+
continue;
|
|
310
|
+
if (targetInspection.leafSymlink) {
|
|
311
|
+
const displayPath = displayRemovedSkillPath(target, targetDir);
|
|
312
|
+
detected.push({
|
|
313
|
+
scope: target.scope,
|
|
314
|
+
name: '@skills-root',
|
|
315
|
+
path: displayPath,
|
|
316
|
+
ownership: 'user_authored'
|
|
317
|
+
});
|
|
318
|
+
if (fix) {
|
|
319
|
+
try {
|
|
320
|
+
await quarantineSkillDir(ownerRoot, targetDir, 'skills-root', 'skills-root-symlink-collision');
|
|
321
|
+
quarantinedUserCollisions.push(displayPath);
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
errors.push(`${displayPath}:${publicPathError(error, targetDir)}`);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
if (await confinedPathStillExists(ownerRoot, targetDir, errors, displayPath))
|
|
328
|
+
remaining.push(displayPath);
|
|
329
|
+
if (fix)
|
|
330
|
+
await removeEmptySkillParents(target, errors);
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
if (!targetInspection.stat?.isDirectory()) {
|
|
334
|
+
const displayPath = displayRemovedSkillPath(target, targetDir);
|
|
335
|
+
errors.push(`${displayPath}:managed_path_directory_not_directory:${targetDir}`);
|
|
336
|
+
remaining.push(displayPath);
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
let rows;
|
|
340
|
+
try {
|
|
341
|
+
rows = await fsp.readdir(targetDir, { withFileTypes: true, encoding: 'utf8' });
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
const displayPath = displayRemovedSkillPath(target, targetDir);
|
|
345
|
+
errors.push(`${displayPath}:${publicPathError(error, targetDir)}`);
|
|
346
|
+
remaining.push(displayPath);
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
const rowByName = new Map(rows.map((row) => [row.name, row]));
|
|
350
|
+
for (const row of rows) {
|
|
351
|
+
const name = canonicalSkillNameFromValue(row.name);
|
|
352
|
+
if (!REMOVED_SKS_SKILL_NAME_SET.has(name))
|
|
353
|
+
continue;
|
|
354
|
+
const dir = path.join(targetDir, row.name);
|
|
355
|
+
const displayPath = displayRemovedSkillPath(target, dir);
|
|
356
|
+
let managed = false;
|
|
357
|
+
try {
|
|
358
|
+
managed = await isManagedRemovedSkillPath(ownerRoot, dir, name);
|
|
359
|
+
}
|
|
360
|
+
catch (error) {
|
|
361
|
+
errors.push(`${displayPath}:${publicPathError(error, dir)}`);
|
|
362
|
+
remaining.push(displayPath);
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
detected.push({
|
|
366
|
+
scope: target.scope,
|
|
367
|
+
name,
|
|
368
|
+
path: displayPath,
|
|
369
|
+
ownership: managed ? 'sks_managed' : 'user_authored'
|
|
370
|
+
});
|
|
371
|
+
if (fix) {
|
|
372
|
+
try {
|
|
373
|
+
if (managed) {
|
|
374
|
+
await removeManagedPathVerified(ownerRoot, dir);
|
|
375
|
+
removed.push(displayPath);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
await quarantineSkillDir(ownerRoot, dir, row.name, 'removed-skill-name-user-collision');
|
|
379
|
+
quarantinedUserCollisions.push(displayPath);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
catch (error) {
|
|
383
|
+
errors.push(`${displayPath}:${publicPathError(error, dir)}`);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
if (await confinedPathStillExists(ownerRoot, dir, errors, displayPath))
|
|
387
|
+
remaining.push(displayPath);
|
|
388
|
+
}
|
|
389
|
+
await reconcileRemovedSkillManifests(target, rowByName, fix, {
|
|
390
|
+
rewrittenManifests,
|
|
391
|
+
quarantinedManifestCollisions,
|
|
392
|
+
remaining,
|
|
393
|
+
errors
|
|
394
|
+
});
|
|
395
|
+
if (fix)
|
|
396
|
+
await removeEmptySkillParents(target, errors);
|
|
397
|
+
}
|
|
398
|
+
return {
|
|
399
|
+
schema: 'sks.removed-skill-residue.v1',
|
|
400
|
+
ok: remaining.length === 0 && errors.length === 0,
|
|
401
|
+
fix,
|
|
402
|
+
detected,
|
|
403
|
+
removed: Array.from(new Set(removed)).sort(),
|
|
404
|
+
quarantined_user_collisions: Array.from(new Set(quarantinedUserCollisions)).sort(),
|
|
405
|
+
rewritten_manifests: Array.from(new Set(rewrittenManifests)).sort(),
|
|
406
|
+
quarantined_manifest_collisions: Array.from(new Set(quarantinedManifestCollisions)).sort(),
|
|
407
|
+
remaining: Array.from(new Set(remaining)).sort(),
|
|
408
|
+
errors: Array.from(new Set(errors)).sort()
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
function displayRemovedSkillPath(target, dir) {
|
|
412
|
+
const rel = path.relative(target.ownerRoot, dir).split(path.sep).join('/');
|
|
413
|
+
if (target.scope.startsWith('global-runtime'))
|
|
414
|
+
return `$SKS_GLOBAL_ROOT/${rel}`;
|
|
415
|
+
return target.scope.startsWith('global') ? `~/${rel}` : rel;
|
|
416
|
+
}
|
|
417
|
+
async function isManagedRemovedSkillPath(ownerRoot, dir, name) {
|
|
418
|
+
const dirInspection = await inspectConfinedPath(ownerRoot, dir);
|
|
419
|
+
if (!dirInspection.exists || dirInspection.leafSymlink || !dirInspection.stat?.isDirectory())
|
|
420
|
+
return false;
|
|
421
|
+
const skillPath = path.join(dir, 'SKILL.md');
|
|
422
|
+
const skillInspection = await inspectConfinedPath(ownerRoot, skillPath);
|
|
423
|
+
if (!skillInspection.exists || skillInspection.leafSymlink || !skillInspection.stat?.isFile())
|
|
424
|
+
return false;
|
|
425
|
+
const text = await fsp.readFile(skillPath, 'utf8');
|
|
426
|
+
return isGeneratedRemovedSksSkill(text, name);
|
|
427
|
+
}
|
|
428
|
+
async function confinedPathStillExists(ownerRoot, targetPath, errors, displayPath) {
|
|
429
|
+
try {
|
|
430
|
+
return (await inspectConfinedPath(ownerRoot, targetPath)).exists;
|
|
431
|
+
}
|
|
432
|
+
catch (error) {
|
|
433
|
+
errors.push(`${displayPath}:${publicPathError(error, targetPath)}`);
|
|
434
|
+
return true;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
async function removeEmptySkillParents(target, errors) {
|
|
438
|
+
for (const directory of [target.targetDir, path.dirname(target.targetDir)]) {
|
|
439
|
+
try {
|
|
440
|
+
await removeConfinedDirectoryIfEmpty(target.ownerRoot, directory);
|
|
441
|
+
}
|
|
442
|
+
catch (error) {
|
|
443
|
+
errors.push(`${displayRemovedSkillPath(target, directory)}:${publicPathError(error, directory)}`);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
async function reconcileRemovedSkillManifests(target, rowByName, fix, report) {
|
|
448
|
+
for (const fileName of [SKS_SKILL_MANIFEST_FILE, 'skills-manifest.json']) {
|
|
449
|
+
if (!rowByName.has(fileName))
|
|
450
|
+
continue;
|
|
451
|
+
const manifestPath = path.join(target.targetDir, fileName);
|
|
452
|
+
const displayPath = displayRemovedSkillPath(target, manifestPath);
|
|
453
|
+
let inspection;
|
|
454
|
+
try {
|
|
455
|
+
inspection = await inspectConfinedPath(target.ownerRoot, manifestPath);
|
|
456
|
+
}
|
|
457
|
+
catch (error) {
|
|
458
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
459
|
+
report.remaining.push(displayPath);
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
if (!inspection.exists)
|
|
463
|
+
continue;
|
|
464
|
+
if (inspection.leafSymlink || !inspection.stat?.isFile()) {
|
|
465
|
+
if (fix) {
|
|
466
|
+
try {
|
|
467
|
+
await quarantineSkillDir(target.ownerRoot, manifestPath, fileName, 'removed-skill-manifest-collision');
|
|
468
|
+
report.quarantinedManifestCollisions.push(displayPath);
|
|
469
|
+
}
|
|
470
|
+
catch (error) {
|
|
471
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (await confinedPathStillExists(target.ownerRoot, manifestPath, report.errors, displayPath)) {
|
|
475
|
+
report.remaining.push(displayPath);
|
|
476
|
+
}
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
let text;
|
|
480
|
+
try {
|
|
481
|
+
text = await fsp.readFile(manifestPath, 'utf8');
|
|
482
|
+
}
|
|
483
|
+
catch (error) {
|
|
484
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
485
|
+
report.remaining.push(displayPath);
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
let parsed;
|
|
489
|
+
try {
|
|
490
|
+
parsed = JSON.parse(text);
|
|
491
|
+
}
|
|
492
|
+
catch {
|
|
493
|
+
if (!manifestTextContainsRetiredJsonValue(text))
|
|
494
|
+
continue;
|
|
495
|
+
if (fix) {
|
|
496
|
+
try {
|
|
497
|
+
await quarantineSkillDir(target.ownerRoot, manifestPath, fileName, 'unparseable-removed-skill-manifest-collision');
|
|
498
|
+
report.quarantinedManifestCollisions.push(displayPath);
|
|
499
|
+
}
|
|
500
|
+
catch (error) {
|
|
501
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
if (await confinedPathStillExists(target.ownerRoot, manifestPath, report.errors, displayPath)) {
|
|
505
|
+
report.remaining.push(displayPath);
|
|
506
|
+
}
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
const scrubbed = scrubRemovedSkillManifest(fileName, parsed);
|
|
510
|
+
if (!scrubbed.valid) {
|
|
511
|
+
if (!scrubbed.hasRetiredResidue)
|
|
512
|
+
continue;
|
|
513
|
+
if (fix) {
|
|
514
|
+
try {
|
|
515
|
+
await quarantineSkillDir(target.ownerRoot, manifestPath, fileName, 'unmanaged-removed-skill-manifest-collision');
|
|
516
|
+
report.quarantinedManifestCollisions.push(displayPath);
|
|
517
|
+
}
|
|
518
|
+
catch (error) {
|
|
519
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
if (await confinedPathStillExists(target.ownerRoot, manifestPath, report.errors, displayPath)) {
|
|
523
|
+
report.remaining.push(displayPath);
|
|
524
|
+
}
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
if (!scrubbed.changed)
|
|
528
|
+
continue;
|
|
529
|
+
if (!fix) {
|
|
530
|
+
report.remaining.push(displayPath);
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
try {
|
|
534
|
+
await writeJsonAtomic(manifestPath, scrubbed.next);
|
|
535
|
+
const verified = JSON.parse(await fsp.readFile(manifestPath, 'utf8'));
|
|
536
|
+
if (manifestHasRetiredResidue(fileName, verified)) {
|
|
537
|
+
throw new Error('removed_skill_manifest_verification_failed');
|
|
538
|
+
}
|
|
539
|
+
report.rewrittenManifests.push(displayPath);
|
|
540
|
+
}
|
|
541
|
+
catch (error) {
|
|
542
|
+
report.errors.push(`${displayPath}:${publicPathError(error, manifestPath)}`);
|
|
543
|
+
report.remaining.push(displayPath);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function scrubRemovedSkillManifest(fileName, parsed) {
|
|
548
|
+
const hasRetiredResidue = manifestHasRetiredResidue(fileName, parsed);
|
|
549
|
+
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
550
|
+
return { valid: false, changed: false, hasRetiredResidue, next: parsed };
|
|
551
|
+
}
|
|
552
|
+
if (fileName === SKS_SKILL_MANIFEST_FILE) {
|
|
553
|
+
if (parsed.generated_by !== 'sneakoscope' || !Array.isArray(parsed.skills) || !Array.isArray(parsed.files)) {
|
|
554
|
+
return { valid: false, changed: false, hasRetiredResidue, next: parsed };
|
|
555
|
+
}
|
|
556
|
+
const next = {
|
|
557
|
+
...parsed,
|
|
558
|
+
skills: parsed.skills.filter((name) => !isRemovedSkillName(name)),
|
|
559
|
+
files: parsed.files.filter((file) => !generatedFileReferencesRemovedSkill(file))
|
|
560
|
+
};
|
|
561
|
+
return {
|
|
562
|
+
valid: true,
|
|
563
|
+
changed: JSON.stringify(next) !== JSON.stringify(parsed),
|
|
564
|
+
hasRetiredResidue,
|
|
565
|
+
next
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
if (parsed.schema !== PACKAGED_SKILLS_MANIFEST_SCHEMA || !Array.isArray(parsed.skills)) {
|
|
569
|
+
return { valid: false, changed: false, hasRetiredResidue, next: parsed };
|
|
570
|
+
}
|
|
571
|
+
const next = normalizeSkillsManifest(parsed);
|
|
572
|
+
return {
|
|
573
|
+
valid: true,
|
|
574
|
+
changed: JSON.stringify(next) !== JSON.stringify(parsed),
|
|
575
|
+
hasRetiredResidue,
|
|
576
|
+
next
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function manifestHasRetiredResidue(fileName, parsed) {
|
|
580
|
+
if (!parsed || typeof parsed !== 'object')
|
|
581
|
+
return false;
|
|
582
|
+
if (fileName === SKS_SKILL_MANIFEST_FILE) {
|
|
583
|
+
return (Array.isArray(parsed.skills) && parsed.skills.some(isRemovedSkillName))
|
|
584
|
+
|| (Array.isArray(parsed.files) && parsed.files.some(generatedFileReferencesRemovedSkill));
|
|
585
|
+
}
|
|
586
|
+
return Object.hasOwn(parsed, 'removed_skills')
|
|
587
|
+
|| (Array.isArray(parsed.skills) && parsed.skills.some((skill) => (isRemovedSkillName(skill?.canonical_name)
|
|
588
|
+
|| (Array.isArray(skill?.deprecated_aliases) && skill.deprecated_aliases.some(isRemovedSkillName)))));
|
|
589
|
+
}
|
|
590
|
+
function manifestTextContainsRetiredJsonValue(text) {
|
|
591
|
+
return SKS_SKILL_NAMES_TO_CLEAN_UP.some((name) => new RegExp(`"${escapeRegExp(name)}"`, 'i').test(text));
|
|
592
|
+
}
|
|
593
|
+
function isRemovedSkillName(value) {
|
|
594
|
+
return REMOVED_SKS_SKILL_NAME_SET.has(canonicalSkillNameFromValue(value));
|
|
595
|
+
}
|
|
596
|
+
function generatedFileReferencesRemovedSkill(value) {
|
|
597
|
+
const parts = String(value || '').replaceAll('\\', '/').split('/').filter(Boolean);
|
|
598
|
+
return parts.some((part, index) => canonicalSkillNameFromValue(part) === 'skills'
|
|
599
|
+
&& isRemovedSkillName(parts[index + 1]));
|
|
600
|
+
}
|
|
601
|
+
function nodeErrorCode(error) {
|
|
602
|
+
return error && typeof error === 'object' && 'code' in error ? String(error.code) : '';
|
|
603
|
+
}
|
|
604
|
+
function isGeneratedRemovedSksSkill(text, name) {
|
|
605
|
+
if (typeof text !== 'string')
|
|
606
|
+
return false;
|
|
607
|
+
if (MANAGED_SKILL_MARKER_RE.test(text))
|
|
608
|
+
return true;
|
|
609
|
+
const declared = /^name:\s*(.+)\s*$/m.exec(text)?.[1]?.trim() || '';
|
|
610
|
+
if (canonicalSkillNameFromValue(declared) !== canonicalSkillNameFromValue(name))
|
|
611
|
+
return false;
|
|
612
|
+
return isGeneratedSksAgentSkill(text, declared) || isGeneratedSksLegacySkill(text, declared);
|
|
613
|
+
}
|
|
152
614
|
export async function reconcileSkills(opts) {
|
|
153
615
|
const targetDir = path.resolve(opts.targetDir);
|
|
154
616
|
const root = rootFromSkillsDir(targetDir);
|
|
155
617
|
const manifest = await loadSkillsManifest();
|
|
156
618
|
const officialNames = new Set(manifest.skills.map((skill) => canonicalSkillNameFromValue(skill.canonical_name)));
|
|
157
619
|
const aliasNames = new Set(manifest.skills.flatMap((skill) => (skill.deprecated_aliases || []).map((name) => canonicalSkillNameFromValue(name))));
|
|
158
|
-
const removedNames = new Set(
|
|
620
|
+
const removedNames = new Set(SKS_SKILL_NAMES_TO_CLEAN_UP.map((name) => canonicalSkillNameFromValue(name)));
|
|
159
621
|
const report = {
|
|
160
622
|
schema: 'sks.skill-reconcile.v1',
|
|
623
|
+
ok: true,
|
|
161
624
|
scope: opts.scope,
|
|
162
625
|
target_dir: targetDir,
|
|
163
626
|
fix: opts.fix === true,
|
|
@@ -170,7 +633,55 @@ export async function reconcileSkills(opts) {
|
|
|
170
633
|
warnings: [],
|
|
171
634
|
core_skill_integrity: { ok: true, installed_count: 0, restored_count: 0, user_collision_count: 0 }
|
|
172
635
|
};
|
|
173
|
-
|
|
636
|
+
const removedResidueTargets = [
|
|
637
|
+
{
|
|
638
|
+
scope: opts.scope === 'global' ? 'global' : 'project',
|
|
639
|
+
ownerRoot: root,
|
|
640
|
+
targetDir
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
scope: opts.scope === 'global' ? 'global-codex' : 'project-codex',
|
|
644
|
+
ownerRoot: root,
|
|
645
|
+
targetDir: path.join(root, '.codex', 'skills')
|
|
646
|
+
}
|
|
647
|
+
];
|
|
648
|
+
if (opts.scope === 'global') {
|
|
649
|
+
const globalRuntimeRoot = path.resolve(process.env.SKS_GLOBAL_ROOT || path.join(root, '.sneakoscope-global'));
|
|
650
|
+
removedResidueTargets.push({
|
|
651
|
+
scope: 'global-runtime',
|
|
652
|
+
ownerRoot: globalRuntimeRoot,
|
|
653
|
+
targetDir: path.join(globalRuntimeRoot, '.agents', 'skills')
|
|
654
|
+
}, {
|
|
655
|
+
scope: 'global-runtime-codex',
|
|
656
|
+
ownerRoot: globalRuntimeRoot,
|
|
657
|
+
targetDir: path.join(globalRuntimeRoot, '.codex', 'skills')
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
const removedResidue = await reconcileRemovedSkillTargets(removedResidueTargets, opts.fix);
|
|
661
|
+
report.retired_residue = {
|
|
662
|
+
detected_count: removedResidue.detected.length,
|
|
663
|
+
removed_count: removedResidue.removed.length,
|
|
664
|
+
quarantined_user_collision_count: removedResidue.quarantined_user_collisions.length,
|
|
665
|
+
rewritten_manifest_count: removedResidue.rewritten_manifests?.length || 0,
|
|
666
|
+
quarantined_manifest_collision_count: removedResidue.quarantined_manifest_collisions?.length || 0,
|
|
667
|
+
remaining_count: removedResidue.remaining.length,
|
|
668
|
+
error_count: removedResidue.errors.length
|
|
669
|
+
};
|
|
670
|
+
if (removedResidue.errors.length)
|
|
671
|
+
report.warnings.push(`retired_skill_cleanup_failed:${removedResidue.errors.length}`);
|
|
672
|
+
report.ok = removedResidue.errors.length === 0 && (!opts.fix || removedResidue.remaining.length === 0);
|
|
673
|
+
if (!report.ok && opts.fix)
|
|
674
|
+
return report;
|
|
675
|
+
try {
|
|
676
|
+
await ensureConfinedDirectory(root, targetDir);
|
|
677
|
+
}
|
|
678
|
+
catch (error) {
|
|
679
|
+
report.ok = false;
|
|
680
|
+
report.retired_residue.error_count += 1;
|
|
681
|
+
report.retired_residue.remaining_count += 1;
|
|
682
|
+
report.warnings.push(`skill_target_prepare_failed:${publicPathError(error, targetDir)}`);
|
|
683
|
+
return report;
|
|
684
|
+
}
|
|
174
685
|
const existing = await listSkillDirs(targetDir);
|
|
175
686
|
if (opts.scope === 'project') {
|
|
176
687
|
await reconcileProjectSkillEntries(root, targetDir, existing, officialNames, aliasNames, removedNames, report, opts.fix);
|
|
@@ -185,12 +696,15 @@ export async function reconcileSkills(opts) {
|
|
|
185
696
|
await pruneProjectGeneratedManifest(targetDir);
|
|
186
697
|
report.installed_skills = [];
|
|
187
698
|
report.generated_files = [];
|
|
699
|
+
report.removed = currentSurfaceSkillPaths(report.removed);
|
|
700
|
+
report.quarantined_user_collisions = currentSurfaceSkillPaths(report.quarantined_user_collisions);
|
|
188
701
|
report.removed_stale_generated_skills = [...report.removed];
|
|
189
702
|
report.removed_agent_skill_aliases = [];
|
|
190
703
|
report.removed_codex_skill_mirrors = [];
|
|
191
704
|
report.core_skill_integrity = { ok: true, installed_count: 0, restored_count: 0, user_collision_count: 0 };
|
|
192
705
|
await removeDirIfEmpty(targetDir);
|
|
193
706
|
await removeDirIfEmpty(path.dirname(targetDir));
|
|
707
|
+
report.ok = report.ok && report.retired_residue.error_count === 0 && report.retired_residue.remaining_count === 0;
|
|
194
708
|
return report;
|
|
195
709
|
}
|
|
196
710
|
const before = new Map(existing.map((entry) => [entry.canonical, entry.hash]));
|
|
@@ -198,7 +712,7 @@ export async function reconcileSkills(opts) {
|
|
|
198
712
|
if (opts.fix) {
|
|
199
713
|
install = await installOfficialSkills(root);
|
|
200
714
|
report.installed.push(...(install.installed_skills || []));
|
|
201
|
-
report.removed.push(...(install.removed_stale_generated_skills || []));
|
|
715
|
+
report.removed.push(...currentSurfaceSkillPaths(install.removed_stale_generated_skills || []));
|
|
202
716
|
}
|
|
203
717
|
else {
|
|
204
718
|
for (const skill of manifest.skills) {
|
|
@@ -217,11 +731,20 @@ export async function reconcileSkills(opts) {
|
|
|
217
731
|
report.installed_skills = install?.installed_skills || [...report.installed];
|
|
218
732
|
report.generated_files = install?.generated_files || generatedSkillFiles(report.installed_skills);
|
|
219
733
|
report.core_skill_integrity = install?.core_skill_integrity || { ok: true, installed_count: 0, restored_count: 0, user_collision_count: 0 };
|
|
220
|
-
report.removed_stale_generated_skills = install?.removed_stale_generated_skills ||
|
|
221
|
-
report.removed_agent_skill_aliases = install?.removed_agent_skill_aliases || [];
|
|
222
|
-
report.removed_codex_skill_mirrors = install?.removed_codex_skill_mirrors || [];
|
|
734
|
+
report.removed_stale_generated_skills = currentSurfaceSkillPaths(install?.removed_stale_generated_skills || report.removed);
|
|
735
|
+
report.removed_agent_skill_aliases = currentSurfaceSkillPaths(install?.removed_agent_skill_aliases || []);
|
|
736
|
+
report.removed_codex_skill_mirrors = currentSurfaceSkillPaths(install?.removed_codex_skill_mirrors || []);
|
|
737
|
+
report.removed = currentSurfaceSkillPaths(report.removed);
|
|
738
|
+
report.quarantined_user_collisions = currentSurfaceSkillPaths(report.quarantined_user_collisions);
|
|
739
|
+
report.ok = report.ok && report.core_skill_integrity.ok && report.retired_residue.error_count === 0 && report.retired_residue.remaining_count === 0;
|
|
223
740
|
return report;
|
|
224
741
|
}
|
|
742
|
+
function currentSurfaceSkillPaths(values) {
|
|
743
|
+
return Array.from(new Set(values.filter((value) => {
|
|
744
|
+
const segments = String(value || '').split(/[\\/]/).map((segment) => canonicalSkillNameFromValue(segment));
|
|
745
|
+
return !segments.some((segment) => REMOVED_SKS_SKILL_NAME_SET.has(segment));
|
|
746
|
+
}))).sort();
|
|
747
|
+
}
|
|
225
748
|
function looksGeneratedOfficialSkill(text) {
|
|
226
749
|
return /Sneakoscope|SKS|Codex App pipeline activation|Dollar-command route|Context tracking|Honest Mode|Route:/i.test(String(text || ''));
|
|
227
750
|
}
|
|
@@ -246,7 +769,7 @@ async function reconcileProjectSkillEntries(root, targetDir, entries, officialNa
|
|
|
246
769
|
}
|
|
247
770
|
if (managed) {
|
|
248
771
|
if (fix)
|
|
249
|
-
await
|
|
772
|
+
await removeManagedPathVerified(root, entry.dir);
|
|
250
773
|
report.removed.push(path.relative(root, entry.dir).split(path.sep).join('/'));
|
|
251
774
|
continue;
|
|
252
775
|
}
|
|
@@ -256,13 +779,13 @@ async function reconcileProjectSkillEntries(root, targetDir, entries, officialNa
|
|
|
256
779
|
}
|
|
257
780
|
async function quarantineSkillDir(root, sourceDir, name, reason) {
|
|
258
781
|
const stamp = `${Date.now()}-${process.pid}-${Math.random().toString(36).slice(2, 8)}`;
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
await
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
await writeJsonAtomic(
|
|
782
|
+
const boundary = path.resolve(root);
|
|
783
|
+
const base = path.join(boundary, '.sneakoscope', 'quarantine', 'skills', canonicalSkillNameFromValue(name), stamp);
|
|
784
|
+
const container = await uniqueConfinedPath(boundary, base);
|
|
785
|
+
const target = path.join(container, path.basename(sourceDir));
|
|
786
|
+
await ensureConfinedDirectory(boundary, container);
|
|
787
|
+
const recordPath = path.join(container, 'quarantine-record.json');
|
|
788
|
+
await writeJsonAtomic(recordPath, {
|
|
266
789
|
schema: 'sks.skill-quarantine-record.v1',
|
|
267
790
|
generated_at: nowIso(),
|
|
268
791
|
source_path: sourceDir,
|
|
@@ -270,6 +793,14 @@ async function quarantineSkillDir(root, sourceDir, name, reason) {
|
|
|
270
793
|
canonical_name: canonicalSkillNameFromValue(name),
|
|
271
794
|
reason
|
|
272
795
|
});
|
|
796
|
+
try {
|
|
797
|
+
await moveConfinedPath(boundary, sourceDir, target);
|
|
798
|
+
}
|
|
799
|
+
catch (error) {
|
|
800
|
+
await removeManagedPathVerified(boundary, recordPath).catch(() => undefined);
|
|
801
|
+
await removeConfinedDirectoryIfEmpty(boundary, container).catch(() => undefined);
|
|
802
|
+
throw error;
|
|
803
|
+
}
|
|
273
804
|
return target;
|
|
274
805
|
}
|
|
275
806
|
export async function loadSkillsManifest() {
|
|
@@ -280,10 +811,21 @@ export async function loadSkillsManifest() {
|
|
|
280
811
|
for (const file of candidates) {
|
|
281
812
|
const data = await readJson(file, null);
|
|
282
813
|
if (data?.schema === PACKAGED_SKILLS_MANIFEST_SCHEMA && Array.isArray(data.skills))
|
|
283
|
-
return data;
|
|
814
|
+
return normalizeSkillsManifest(data);
|
|
284
815
|
}
|
|
285
816
|
return buildFallbackSkillsManifest();
|
|
286
817
|
}
|
|
818
|
+
function normalizeSkillsManifest(manifest) {
|
|
819
|
+
const skills = (manifest.skills || [])
|
|
820
|
+
.map((skill) => ({
|
|
821
|
+
...skill,
|
|
822
|
+
deprecated_aliases: (skill.deprecated_aliases || [])
|
|
823
|
+
.filter((name) => !REMOVED_SKS_SKILL_NAME_SET.has(canonicalSkillNameFromValue(name)))
|
|
824
|
+
}))
|
|
825
|
+
.filter((skill) => !REMOVED_SKS_SKILL_NAME_SET.has(canonicalSkillNameFromValue(skill.canonical_name)));
|
|
826
|
+
const { removed_skills: _retiredInventory, ...current } = manifest || {};
|
|
827
|
+
return { ...current, skills };
|
|
828
|
+
}
|
|
287
829
|
export async function generatePackagedSkillsManifest() {
|
|
288
830
|
return withScratchDir('skills-manifest-', async (dir) => {
|
|
289
831
|
await installOfficialSkills(dir);
|
|
@@ -296,14 +838,13 @@ export async function generatePackagedSkillsManifest() {
|
|
|
296
838
|
type: isCoreSkillName(entry.canonical) ? 'core' : 'official',
|
|
297
839
|
content_sha256: entry.hash,
|
|
298
840
|
hash_history: [],
|
|
299
|
-
deprecated_aliases:
|
|
841
|
+
deprecated_aliases: SKILL_ALIASES[entry.canonical] || []
|
|
300
842
|
}))
|
|
301
843
|
.sort((a, b) => a.canonical_name.localeCompare(b.canonical_name));
|
|
302
844
|
return {
|
|
303
845
|
schema: PACKAGED_SKILLS_MANIFEST_SCHEMA,
|
|
304
846
|
package_version: PACKAGE_VERSION,
|
|
305
|
-
skills
|
|
306
|
-
removed_skills: REMOVED_OFFICIAL_SKILLS
|
|
847
|
+
skills
|
|
307
848
|
};
|
|
308
849
|
});
|
|
309
850
|
}
|
|
@@ -318,7 +859,7 @@ function buildFallbackSkillsManifest() {
|
|
|
318
859
|
...RECOMMENDED_SKILLS.map((name) => canonicalSkillNameFromValue(name)),
|
|
319
860
|
...DOLLAR_COMMANDS.map((command) => canonicalSkillNameFromValue(String(command.command || '').replace(/^\$/, ''))),
|
|
320
861
|
...buildSksCoreSkillManifest().skills.map((skill) => skill.canonical_name)
|
|
321
|
-
].filter(Boolean));
|
|
862
|
+
].filter((name) => Boolean(name) && !REMOVED_SKS_SKILL_NAME_SET.has(String(name))));
|
|
322
863
|
return {
|
|
323
864
|
schema: PACKAGED_SKILLS_MANIFEST_SCHEMA,
|
|
324
865
|
package_version: PACKAGE_VERSION,
|
|
@@ -327,22 +868,37 @@ function buildFallbackSkillsManifest() {
|
|
|
327
868
|
type: isCoreSkillName(name) ? 'core' : 'official',
|
|
328
869
|
content_sha256: '',
|
|
329
870
|
hash_history: [],
|
|
330
|
-
deprecated_aliases:
|
|
331
|
-
}))
|
|
332
|
-
removed_skills: REMOVED_OFFICIAL_SKILLS
|
|
871
|
+
deprecated_aliases: SKILL_ALIASES[name] || []
|
|
872
|
+
}))
|
|
333
873
|
};
|
|
334
874
|
}
|
|
335
875
|
async function listSkillDirs(targetDir) {
|
|
336
|
-
const
|
|
876
|
+
const boundary = rootFromSkillsDir(targetDir);
|
|
877
|
+
let rootInspection;
|
|
878
|
+
try {
|
|
879
|
+
rootInspection = await inspectConfinedPath(boundary, targetDir);
|
|
880
|
+
}
|
|
881
|
+
catch (error) {
|
|
882
|
+
if (nodeErrorCode(error) === 'ENOENT')
|
|
883
|
+
return [];
|
|
884
|
+
throw error;
|
|
885
|
+
}
|
|
886
|
+
if (!rootInspection.exists)
|
|
887
|
+
return [];
|
|
888
|
+
if (rootInspection.leafSymlink || !rootInspection.stat?.isDirectory()) {
|
|
889
|
+
throw new Error(`skill_target_not_safe_directory:${targetDir}`);
|
|
890
|
+
}
|
|
891
|
+
const rows = await fsp.readdir(targetDir, { withFileTypes: true });
|
|
337
892
|
const out = [];
|
|
338
893
|
for (const row of rows) {
|
|
339
|
-
if (!row.isDirectory())
|
|
894
|
+
if (row.isSymbolicLink() || !row.isDirectory())
|
|
340
895
|
continue;
|
|
341
896
|
const dir = path.join(targetDir, row.name);
|
|
342
897
|
const skillMdPath = path.join(dir, 'SKILL.md');
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
898
|
+
const inspected = await inspectConfinedPath(boundary, skillMdPath);
|
|
899
|
+
if (!inspected.exists || inspected.leafSymlink || !inspected.stat?.isFile())
|
|
345
900
|
continue;
|
|
901
|
+
const text = await fsp.readFile(skillMdPath, 'utf8');
|
|
346
902
|
const displayName = /^name:\s*(.+)\s*$/m.exec(text)?.[1] || row.name;
|
|
347
903
|
out.push({
|
|
348
904
|
name: row.name,
|
|
@@ -413,6 +969,9 @@ async function removeStaleGeneratedSkillsFromManifest(root, skillNames) {
|
|
|
413
969
|
const dir = path.join(root, '.agents', 'skills', skillName);
|
|
414
970
|
if (!(await exists(dir)))
|
|
415
971
|
continue;
|
|
972
|
+
const text = await readText(path.join(dir, 'SKILL.md'), null);
|
|
973
|
+
if (!isSksManagedOrGeneratedOfficialSkill(String(text || '')))
|
|
974
|
+
continue;
|
|
416
975
|
await fsp.rm(dir, { recursive: true, force: true });
|
|
417
976
|
removed.push(path.relative(root, dir));
|
|
418
977
|
}
|
|
@@ -442,7 +1001,7 @@ function isGeneratedSksPluginCollisionSkill(text, name) {
|
|
|
442
1001
|
return /Maximum-speed \$Computer-Use\/\$CU lane|Codex App pipeline activation:|Sneakoscope generated|Dollar-command route generated by SKS/i.test(s);
|
|
443
1002
|
}
|
|
444
1003
|
function enrichSkillContent(name, content) {
|
|
445
|
-
if (!['sks', 'answer', 'wiki', '
|
|
1004
|
+
if (!['sks', 'answer', 'wiki', 'qa-loop', 'ppt', 'image-ux-review', 'ux-review', 'visual-review', 'ui-ux-review', 'computer-use-fast', 'cu', 'goal', 'research', 'autoresearch', 'db', 'gx', 'reflection', 'prompt-pipeline', 'pipeline-runner', 'context7-docs', 'turbo-context-pack', 'hproof-evidence-bind'].includes(name))
|
|
446
1005
|
return content;
|
|
447
1006
|
const text = String(content || '').trimEnd();
|
|
448
1007
|
const activation = pipelineActivationText(name);
|
|
@@ -456,11 +1015,11 @@ Context tracking:
|
|
|
456
1015
|
- TriWiki SSOT: .sneakoscope/wiki/context-pack.json. Use only the latest coordinate+voxel overlay pack; coordinate-only legacy packs are invalid and must be refreshed before use. Use attention.use_first for compact high-trust recall and hydrate attention.hydrate_first from source before risky/lower-trust decisions. Refresh/pack after findings or artifact changes; validate before handoffs/final claims.
|
|
457
1016
|
- ${stackCurrentDocsPolicyText()}
|
|
458
1017
|
- Keep non-selected claims hydratable by id, hash, source path, and RGBA/trig coordinate. Hydrate low-trust claims before relying on them.
|
|
459
|
-
- Hook output is limited; use mission files,
|
|
1018
|
+
- Hook output is limited; use mission files, official subagent events, or normal updates for live detail.
|
|
460
1019
|
`;
|
|
461
1020
|
}
|
|
462
1021
|
function pipelineActivationText(name) {
|
|
463
|
-
const stateful = new Set(['sks', '
|
|
1022
|
+
const stateful = new Set(['sks', 'qa-loop', 'ppt', 'image-ux-review', 'ux-review', 'visual-review', 'ui-ux-review', 'computer-use-fast', 'cu', 'goal', 'research', 'autoresearch', 'db', 'gx', 'prompt-pipeline', 'pipeline-runner']);
|
|
464
1023
|
if (!stateful.has(name))
|
|
465
1024
|
return '';
|
|
466
1025
|
return `Codex App pipeline activation:
|
|
@@ -469,13 +1028,14 @@ function pipelineActivationText(name) {
|
|
|
469
1028
|
- Use the returned \`hookSpecificOutput.additionalContext\` as authoritative route context before answering or editing. If it creates a mission, continue through \`sks pipeline status\`, \`sks pipeline plan\`, and \`sks pipeline answer\` as directed.
|
|
470
1029
|
- Do not treat this skill text alone as completion of the SKS route; a stateful SKS route must materialize mission/pipeline artifacts or explicitly report why the hook could not run.`;
|
|
471
1030
|
}
|
|
472
|
-
async function writeSkillMetadata(dir, name) {
|
|
473
|
-
const
|
|
1031
|
+
async function writeSkillMetadata(root, dir, name) {
|
|
1032
|
+
const policyName = String(name || '').replace(/^sks-/, '');
|
|
1033
|
+
const effort = ['computer-use-fast', 'cu'].includes(policyName)
|
|
474
1034
|
? 'low'
|
|
475
|
-
: ['research', 'autoresearch', 'research-discovery', 'autoresearch-loop', 'from-chat-img'].includes(
|
|
1035
|
+
: ['research', 'autoresearch', 'research-discovery', 'autoresearch-loop', 'from-chat-img'].includes(policyName)
|
|
476
1036
|
? 'xhigh'
|
|
477
|
-
: (['dfix', 'sks', 'help'].includes(
|
|
478
|
-
await
|
|
1037
|
+
: (['dfix', 'sks', 'help'].includes(policyName) ? 'medium' : 'high');
|
|
1038
|
+
await ensureConfinedDirectory(root, path.join(dir, 'agents'));
|
|
479
1039
|
await writeTextAtomic(path.join(dir, 'agents', 'openai.yaml'), `name: ${name}\nmodel_reasoning_effort: ${effort}\nrouting: temporary\nreturn_to_default_after_route: true\n`);
|
|
480
1040
|
}
|
|
481
1041
|
async function removeGeneratedCodexSkillMirrors(root, skillNames) {
|
|
@@ -483,7 +1043,15 @@ async function removeGeneratedCodexSkillMirrors(root, skillNames) {
|
|
|
483
1043
|
if (!(await exists(legacyRoot)))
|
|
484
1044
|
return [];
|
|
485
1045
|
const removed = [];
|
|
486
|
-
const names = Array.from(new Set([
|
|
1046
|
+
const names = Array.from(new Set([
|
|
1047
|
+
...skillNames,
|
|
1048
|
+
...DOLLAR_COMMANDS.map((c) => c.command.slice(1)),
|
|
1049
|
+
...SKS_SKILL_NAMES_TO_CLEAN_UP,
|
|
1050
|
+
'ralph',
|
|
1051
|
+
'Ralph',
|
|
1052
|
+
'ralph-supervisor',
|
|
1053
|
+
'ralph-resolver'
|
|
1054
|
+
]));
|
|
487
1055
|
for (const name of names) {
|
|
488
1056
|
const dir = path.join(legacyRoot, name);
|
|
489
1057
|
const skillPath = path.join(dir, 'SKILL.md');
|
|
@@ -499,7 +1067,15 @@ async function removeGeneratedCodexSkillMirrors(root, skillNames) {
|
|
|
499
1067
|
}
|
|
500
1068
|
async function removeGeneratedAgentSkillAliases(root, skillNames) {
|
|
501
1069
|
const current = new Set(skillNames);
|
|
502
|
-
const obsolete = [
|
|
1070
|
+
const obsolete = [
|
|
1071
|
+
...SKS_SKILL_NAMES_TO_CLEAN_UP,
|
|
1072
|
+
'qaloop',
|
|
1073
|
+
'wiki-refresh',
|
|
1074
|
+
'wikirefresh',
|
|
1075
|
+
'ralph',
|
|
1076
|
+
'ralph-supervisor',
|
|
1077
|
+
'ralph-resolver'
|
|
1078
|
+
];
|
|
503
1079
|
const removed = [];
|
|
504
1080
|
for (const name of obsolete) {
|
|
505
1081
|
if (current.has(name))
|
|
@@ -527,7 +1103,12 @@ function isGeneratedSksAgentSkill(text, name) {
|
|
|
527
1103
|
function isGeneratedSksLegacySkill(text, name) {
|
|
528
1104
|
if (typeof text !== 'string')
|
|
529
1105
|
return false;
|
|
530
|
-
|
|
1106
|
+
if (!text.startsWith('---') || !new RegExp(`^name:\\s*${escapeRegExp(name)}\\s*$`, 'm').test(text))
|
|
1107
|
+
return false;
|
|
1108
|
+
if (/\bnot generated by SKS\b/i.test(text))
|
|
1109
|
+
return false;
|
|
1110
|
+
return MANAGED_SKILL_MARKER_RE.test(text)
|
|
1111
|
+
|| /Sneakoscope generated|Fallback Codex App picker alias|Codex App picker alias for|Dollar-command route generated by SKS|Deprecated \$?(?:Team|MAD-DB|Swarm|ShadowClone|Kagebunshin) compatibility alias|Codex App pipeline activation:/i.test(text);
|
|
531
1112
|
}
|
|
532
1113
|
function escapeRegExp(value) {
|
|
533
1114
|
return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -541,7 +1122,9 @@ async function removeDirIfEmpty(dir) {
|
|
|
541
1122
|
catch { }
|
|
542
1123
|
}
|
|
543
1124
|
export async function installCodexAgents(root) {
|
|
544
|
-
|
|
1125
|
+
const retiredRoleCleanup = await reconcileRetiredAgentRoleResidue({ root, fix: true });
|
|
1126
|
+
const installed = await installOfficialSubagentAgentConfigs(root, { apply: true });
|
|
1127
|
+
return { ...installed, retired_role_cleanup: retiredRoleCleanup };
|
|
545
1128
|
}
|
|
546
1129
|
export function currentGeneratedFileInventory(skillInstall = {}, agentInstall = {}, opts = {}) {
|
|
547
1130
|
return Array.from(new Set([
|
|
@@ -586,9 +1169,6 @@ function normalizeGeneratedRelPath(value) {
|
|
|
586
1169
|
function isPrunableGeneratedPath(rel) {
|
|
587
1170
|
if (rel.startsWith('.agents/skills/'))
|
|
588
1171
|
return true;
|
|
589
|
-
// Inventory drift alone never proves agent-file ownership. The official
|
|
590
|
-
// installer separately removes exact marker-backed legacy SKS templates;
|
|
591
|
-
// this generic pruner preserves user-authored or modified role TOMLs.
|
|
592
1172
|
if (rel.startsWith('.codex/agents/'))
|
|
593
1173
|
return false;
|
|
594
1174
|
if (rel.startsWith('.codex/skills/'))
|
|
@@ -634,4 +1214,3 @@ async function removeEmptyGeneratedParents(root, rel) {
|
|
|
634
1214
|
if (rel.startsWith('.codex/skills/'))
|
|
635
1215
|
await removeDirIfEmpty(path.join(root, '.codex', 'skills'));
|
|
636
1216
|
}
|
|
637
|
-
//# sourceMappingURL=skills.js.map
|