@jtf19/vibecoding-kit 0.1.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/AGENTS.md +84 -0
- package/CHANGELOG.md +28 -0
- package/CLAUDE.md +137 -0
- package/CODE_OF_CONDUCT.md +30 -0
- package/CONTRIBUTING.md +69 -0
- package/LICENSE +67 -0
- package/README.md +162 -0
- package/SECURITY.md +34 -0
- package/adapters/claude/install.md +70 -0
- package/adapters/claude/plugin.json +38 -0
- package/adapters/claude/settings.example.json +15 -0
- package/adapters/codex/hooks.example.json +15 -0
- package/adapters/codex/install.md +72 -0
- package/adapters/codex/plugin.json +58 -0
- package/adapters/cursor/hooks.example.json +17 -0
- package/adapters/cursor/install.md +72 -0
- package/adapters/cursor/plugin.json +42 -0
- package/adapters/opencode/install.md +95 -0
- package/adapters/opencode/plugin.js +56 -0
- package/adapters/opencode/plugin.json +58 -0
- package/adapters/pi/extension.ts +56 -0
- package/adapters/pi/install.md +95 -0
- package/adapters/pi/plugin.json +58 -0
- package/bin/vibe-cli-usage.mjs +43 -0
- package/bin/vibe.mjs +120 -0
- package/docs/acceptance-checklist.md +1226 -0
- package/docs/architecture-debt-burndown.md +537 -0
- package/docs/architecture.md +77 -0
- package/docs/ci-evidence-onboarding.md +143 -0
- package/docs/development.md +71 -0
- package/docs/evidence-authoring.md +188 -0
- package/docs/golden-path.md +179 -0
- package/docs/install-acceptance-checklist.md +90 -0
- package/docs/install-claude.md +41 -0
- package/docs/install-codex.md +41 -0
- package/docs/install-cursor.md +41 -0
- package/docs/install-experience-roadmap.md +394 -0
- package/docs/install.md +119 -0
- package/docs/maintainer-guide.md +197 -0
- package/docs/phase-1-implementation.md +848 -0
- package/docs/phase-2-roadmap.md +142 -0
- package/docs/quick-recipes.md +115 -0
- package/docs/readiness-interpretation.md +105 -0
- package/docs/readiness-troubleshooting.md +209 -0
- package/docs/release-check-reference.md +63 -0
- package/docs/release-guide.md +481 -0
- package/docs/release-notes.md +75 -0
- package/docs/runtime-contract.md +1010 -0
- package/docs/runtime-maintainer-validation.md +212 -0
- package/docs/runtime-roadmap.md +2265 -0
- package/docs/skill-authoring-guide.md +150 -0
- package/docs/submodule-guide.md +131 -0
- package/docs/team-adoption.md +113 -0
- package/docs/user-guide.md +108 -0
- package/docs/vibecoding-fork-analysis.md +398 -0
- package/docs/workflow-chaining.md +539 -0
- package/examples/ci/README.md +61 -0
- package/examples/ci/ci-evidence-input.example.json +56 -0
- package/examples/ci/generate-diff-coverage.mjs +90 -0
- package/examples/ci/generate-test-evidence.mjs +82 -0
- package/examples/ci/github-actions-readiness.yml +108 -0
- package/examples/claude-project/README.md +57 -0
- package/examples/codex-project/README.md +57 -0
- package/examples/cursor-project/README.md +57 -0
- package/examples/full-chain/README.md +63 -0
- package/examples/full-chain/architecture-design.md +128 -0
- package/examples/full-chain/commit-readiness.json +31 -0
- package/examples/full-chain/delivery-traceability.yaml +32 -0
- package/examples/full-chain/diff-coverage.json +73 -0
- package/examples/full-chain/evidence.json +20 -0
- package/examples/full-chain/implementation-plan.md +54 -0
- package/examples/full-chain/product-acceptance.md +86 -0
- package/examples/full-chain/product-discovery.md +84 -0
- package/examples/full-chain/product-spec.md +88 -0
- package/examples/full-chain/scenario-acceptance.yaml +32 -0
- package/examples/full-chain/test-evidence.json +29 -0
- package/examples/full-chain/ui-design-contract.md +87 -0
- package/examples/golden-path/README.md +84 -0
- package/examples/golden-path/diff-coverage.json +66 -0
- package/examples/golden-path/implementation-plan.md +62 -0
- package/examples/golden-path/product-spec.md +96 -0
- package/examples/golden-path/test-evidence.json +29 -0
- package/examples/runtime-fixtures/architecture-design.md +128 -0
- package/examples/runtime-fixtures/commit-readiness.json +31 -0
- package/examples/runtime-fixtures/delivery-traceability.yaml +32 -0
- package/examples/runtime-fixtures/diff-coverage.json +73 -0
- package/examples/runtime-fixtures/evidence.json +20 -0
- package/examples/runtime-fixtures/implementation-plan.md +54 -0
- package/examples/runtime-fixtures/negative/commit-readiness-boundary-escalated.json +27 -0
- package/examples/runtime-fixtures/negative/delivery-traceability-bad-ref.yaml +32 -0
- package/examples/runtime-fixtures/negative/diff-coverage-changed-file-without-task-ref.json +40 -0
- package/examples/runtime-fixtures/negative/diff-coverage-operation-mismatch.json +38 -0
- package/examples/runtime-fixtures/negative/diff-coverage-required-task-missing.json +24 -0
- package/examples/runtime-fixtures/negative/diff-coverage-unexpected-file.json +20 -0
- package/examples/runtime-fixtures/negative/test-evidence-missing-output-digest.json +23 -0
- package/examples/runtime-fixtures/negative/test-evidence-risky-task-missing.json +29 -0
- package/examples/runtime-fixtures/product-acceptance.md +86 -0
- package/examples/runtime-fixtures/product-discovery.md +84 -0
- package/examples/runtime-fixtures/product-spec.md +88 -0
- package/examples/runtime-fixtures/scenario-acceptance.yaml +32 -0
- package/examples/runtime-fixtures/test-evidence.json +29 -0
- package/examples/runtime-fixtures/ui-design-contract.md +87 -0
- package/hooks/post-tool-compact/README.md +47 -0
- package/hooks/session-start/README.md +112 -0
- package/hooks/session-start/session-start-state-boundary-contract.mjs +161 -0
- package/hooks/session-start/session-start.md +29 -0
- package/hooks/session-start/session-start.mjs +49 -0
- package/hooks/workflow-handoff/README.md +44 -0
- package/hooks/workflow-handoff/workflow-handoff.md +11 -0
- package/package.json +72 -0
- package/skills/using-vibecoding/SKILL.md +396 -0
- package/skills/vibe-brainstorming/SKILL.md +98 -0
- package/skills/vibe-context-compact/SKILL.md +95 -0
- package/skills/vibe-debugging/SKILL.md +87 -0
- package/skills/vibe-dispatching-parallel-work/SKILL.md +144 -0
- package/skills/vibe-executing-plans/SKILL.md +114 -0
- package/skills/vibe-finishing-a-development-branch/SKILL.md +110 -0
- package/skills/vibe-implementation/SKILL.md +84 -0
- package/skills/vibe-planning/SKILL.md +102 -0
- package/skills/vibe-product-acceptance/SKILL.md +106 -0
- package/skills/vibe-product-discovery/SKILL.md +107 -0
- package/skills/vibe-product-spec/SKILL.md +105 -0
- package/skills/vibe-receiving-code-review/SKILL.md +110 -0
- package/skills/vibe-requesting-code-review/SKILL.md +106 -0
- package/skills/vibe-review/SKILL.md +106 -0
- package/skills/vibe-subagent-driven-development/SKILL.md +198 -0
- package/skills/vibe-systematic-debugging/SKILL.md +106 -0
- package/skills/vibe-test-driven-development/SKILL.md +112 -0
- package/skills/vibe-ui-design/SKILL.md +107 -0
- package/skills/vibe-verification/SKILL.md +84 -0
- package/skills/vibe-verification-before-completion/SKILL.md +170 -0
- package/skills/vibe-workspace-isolation/SKILL.md +158 -0
- package/skills/vibe-writing-plans/SKILL.md +137 -0
- package/skills/vibe-writing-skills/SKILL.md +118 -0
- package/templates/AGENTS.md +88 -0
- package/templates/CLAUDE.md +88 -0
- package/templates/VIBE-CODING.md +157 -0
- package/templates/architecture-design.md +139 -0
- package/templates/delivery-traceability.yaml +52 -0
- package/templates/evidence/README.md +117 -0
- package/templates/evidence/diff-coverage.json +34 -0
- package/templates/evidence/test-evidence.json +29 -0
- package/templates/implementation-plan.md +73 -0
- package/templates/product-acceptance.md +84 -0
- package/templates/product-discovery.md +81 -0
- package/templates/product-spec.md +84 -0
- package/templates/scenario-acceptance.yaml +37 -0
- package/templates/ui-design-contract.md +86 -0
- package/tools/vibe-architecture-check/README.md +66 -0
- package/tools/vibe-architecture-check/index.mjs +691 -0
- package/tools/vibe-compact/README.md +65 -0
- package/tools/vibe-compact/compact-contract.mjs +63 -0
- package/tools/vibe-compact/index.mjs +111 -0
- package/tools/vibe-doctor/README.md +200 -0
- package/tools/vibe-doctor/index.mjs +1721 -0
- package/tools/vibe-init/README.md +231 -0
- package/tools/vibe-init/index.mjs +369 -0
- package/tools/vibe-init/init-cli-args.mjs +100 -0
- package/tools/vibe-init/init-entry-merge-model.mjs +33 -0
- package/tools/vibe-init/init-install-manifest-model.mjs +137 -0
- package/tools/vibe-init/init-installed-agent-experience-contract.mjs +172 -0
- package/tools/vibe-init/init-platform-model.mjs +11 -0
- package/tools/vibe-init/init-presentation.mjs +149 -0
- package/tools/vibe-lifecycle/README.md +37 -0
- package/tools/vibe-lifecycle/index.mjs +365 -0
- package/tools/vibe-lifecycle/lifecycle-cli-args.mjs +104 -0
- package/tools/vibe-lifecycle/lifecycle-summary-model.mjs +67 -0
- package/tools/vibe-lifecycle/lifecycle-uninstall-plan-model.mjs +11 -0
- package/tools/vibe-plugin-pack/README.md +105 -0
- package/tools/vibe-plugin-pack/index.mjs +302 -0
- package/tools/vibe-plugin-pack/plugin-pack-cli.mjs +39 -0
- package/tools/vibe-plugin-pack/plugin-pack-manifest.mjs +37 -0
- package/tools/vibe-profile/index.mjs +212 -0
- package/tools/vibe-release-check/README.md +123 -0
- package/tools/vibe-release-check/command-manifest/release-check-base-commands.mjs +23 -0
- package/tools/vibe-release-check/command-manifest/release-check-closeout-commands.mjs +16 -0
- package/tools/vibe-release-check/command-manifest/release-check-command-metadata.mjs +32 -0
- package/tools/vibe-release-check/command-manifest/release-check-completion-commands.mjs +41 -0
- package/tools/vibe-release-check/command-manifest/release-check-full-chain-commands.mjs +12 -0
- package/tools/vibe-release-check/command-manifest/release-check-golden-path-commands.mjs +12 -0
- package/tools/vibe-release-check/command-manifest/release-check-install-commands.mjs +26 -0
- package/tools/vibe-release-check/command-manifest/release-check-learning-smoke-commands.mjs +21 -0
- package/tools/vibe-release-check/command-manifest/release-check-methodology-commands.mjs +27 -0
- package/tools/vibe-release-check/command-manifest/release-check-runtime-smoke-commands.mjs +116 -0
- package/tools/vibe-release-check/command-manifest/release-check-token-smoke-commands.mjs +21 -0
- package/tools/vibe-release-check/index.mjs +223 -0
- package/tools/vibe-release-check/release-check-behavior-smoke.mjs +177 -0
- package/tools/vibe-release-check/release-check-cli.mjs +37 -0
- package/tools/vibe-release-check/release-check-command-manifest.mjs +49 -0
- package/tools/vibe-release-check/release-check-completion-fixtures.mjs +151 -0
- package/tools/vibe-release-check/release-check-completion-suite.mjs +110 -0
- package/tools/vibe-release-check/release-check-dispatch.mjs +116 -0
- package/tools/vibe-release-check/release-check-full-chain-suite.mjs +55 -0
- package/tools/vibe-release-check/release-check-golden-path-suite.mjs +85 -0
- package/tools/vibe-release-check/release-check-install-marker-specs.mjs +133 -0
- package/tools/vibe-release-check/release-check-install-suite.mjs +112 -0
- package/tools/vibe-release-check/release-check-json-assertion-helpers.mjs +157 -0
- package/tools/vibe-release-check/release-check-json-markers.mjs +33 -0
- package/tools/vibe-release-check/release-check-learning-fixture-specs.mjs +199 -0
- package/tools/vibe-release-check/release-check-learning-suite.mjs +249 -0
- package/tools/vibe-release-check/release-check-live-behavior-smoke-fixture.mjs +406 -0
- package/tools/vibe-release-check/release-check-methodology-suite.mjs +108 -0
- package/tools/vibe-release-check/release-check-package-boundary-smoke.mjs +111 -0
- package/tools/vibe-release-check/release-check-platform-transcript-smoke-fixture.mjs +150 -0
- package/tools/vibe-release-check/release-check-readonly-marker-data.mjs +1 -0
- package/tools/vibe-release-check/release-check-readonly-marker-smoke-specs.mjs +170 -0
- package/tools/vibe-release-check/release-check-run-summary.mjs +67 -0
- package/tools/vibe-release-check/release-check-runtime-automation-fixtures.mjs +1 -0
- package/tools/vibe-release-check/release-check-runtime-automation-governance-reply-trace-smoke-helpers.mjs +224 -0
- package/tools/vibe-release-check/release-check-runtime-automation-governance-smoke-specs.mjs +215 -0
- package/tools/vibe-release-check/release-check-runtime-automation-governance-suite.mjs +5 -0
- package/tools/vibe-release-check/release-check-runtime-automation-methodology-smoke-specs.mjs +157 -0
- package/tools/vibe-release-check/release-check-runtime-automation-methodology-suite.mjs +130 -0
- package/tools/vibe-release-check/release-check-runtime-automation-platform-smoke-helpers.mjs +306 -0
- package/tools/vibe-release-check/release-check-runtime-automation-platform-suite.mjs +30 -0
- package/tools/vibe-release-check/release-check-runtime-automation-smoke-fixtures.mjs +53 -0
- package/tools/vibe-release-check/release-check-runtime-automation-source-candidate-smoke-helpers.mjs +506 -0
- package/tools/vibe-release-check/release-check-runtime-automation-source-suite.mjs +5 -0
- package/tools/vibe-release-check/release-check-runtime-automation-subagents-lifecycle-smoke-helpers.mjs +305 -0
- package/tools/vibe-release-check/release-check-runtime-automation-subagents-suite.mjs +25 -0
- package/tools/vibe-release-check/release-check-runtime-automation-suite.mjs +25 -0
- package/tools/vibe-release-check/release-check-runtime-daemon-bounded-run-smoke-helpers.mjs +243 -0
- package/tools/vibe-release-check/release-check-runtime-daemon-suite.mjs +5 -0
- package/tools/vibe-release-check/release-check-runtime-dispatch-fixtures.mjs +129 -0
- package/tools/vibe-release-check/release-check-runtime-dispatch-suite.mjs +5 -0
- package/tools/vibe-release-check/release-check-runtime-execution-approval-smoke-helpers.mjs +274 -0
- package/tools/vibe-release-check/release-check-runtime-execution-approval-suite.mjs +5 -0
- package/tools/vibe-release-check/release-check-runtime-execution-base-suite.mjs +388 -0
- package/tools/vibe-release-check/release-check-runtime-execution-recovery-suite.mjs +412 -0
- package/tools/vibe-release-check/release-check-runtime-execution-scheduler-suite.mjs +261 -0
- package/tools/vibe-release-check/release-check-runtime-execution-suite.mjs +11 -0
- package/tools/vibe-release-check/release-check-runtime-flow-smoke.mjs +347 -0
- package/tools/vibe-release-check/release-check-runtime-handoff-fixture-specs.mjs +211 -0
- package/tools/vibe-release-check/release-check-runtime-handoff-fixtures.mjs +11 -0
- package/tools/vibe-release-check/release-check-runtime-handoff-smoke-specs.mjs +86 -0
- package/tools/vibe-release-check/release-check-runtime-handoff-suite.mjs +316 -0
- package/tools/vibe-release-check/release-check-runtime-ledger-fixture-specs.mjs +9 -0
- package/tools/vibe-release-check/release-check-runtime-ledger-fixtures.mjs +51 -0
- package/tools/vibe-release-check/release-check-runtime-ledger-suite.mjs +24 -0
- package/tools/vibe-release-check/release-check-runtime-scheduler-fixture-specs.mjs +129 -0
- package/tools/vibe-release-check/release-check-runtime-scheduler-fixtures.mjs +10 -0
- package/tools/vibe-release-check/release-check-runtime-sdd-suite.mjs +535 -0
- package/tools/vibe-release-check/release-check-runtime-smoke-harness.mjs +140 -0
- package/tools/vibe-release-check/release-check-runtime-surface-expectations.mjs +106 -0
- package/tools/vibe-release-check/release-check-runtime-surface-smoke.mjs +112 -0
- package/tools/vibe-release-check/release-check-runtime-task-artifact-suite.mjs +105 -0
- package/tools/vibe-release-check/release-check-runtime-task-fixture-specs.mjs +270 -0
- package/tools/vibe-release-check/release-check-runtime-task-fixtures.mjs +19 -0
- package/tools/vibe-release-check/release-check-runtime.mjs +53 -0
- package/tools/vibe-release-check/release-check-stage103-118-fixtures.mjs +214 -0
- package/tools/vibe-release-check/release-check-stage103-118-smoke-specs.mjs +97 -0
- package/tools/vibe-release-check/release-check-stage103-118-smoke.mjs +861 -0
- package/tools/vibe-release-check/release-check-stage11-smoke.mjs +66 -0
- package/tools/vibe-release-check/release-check-stage119-120-fixture-specs.mjs +119 -0
- package/tools/vibe-release-check/release-check-stage119-120-smoke.mjs +325 -0
- package/tools/vibe-release-check/release-check-stage12-smoke.mjs +59 -0
- package/tools/vibe-release-check/release-check-stage121-136-fixture-specs.mjs +26 -0
- package/tools/vibe-release-check/release-check-stage121-136-fixtures.mjs +591 -0
- package/tools/vibe-release-check/release-check-stage121-136-smoke.mjs +917 -0
- package/tools/vibe-release-check/release-check-stage13-smoke.mjs +78 -0
- package/tools/vibe-release-check/release-check-stage137-140-smoke.mjs +534 -0
- package/tools/vibe-release-check/release-check-stage14-smoke.mjs +101 -0
- package/tools/vibe-release-check/release-check-stage141-148-smoke.mjs +1143 -0
- package/tools/vibe-release-check/release-check-stage15-smoke.mjs +132 -0
- package/tools/vibe-release-check/release-check-stage50-53-smoke.mjs +429 -0
- package/tools/vibe-release-check/release-check-subagent-adapter-bridge-smoke.mjs +162 -0
- package/tools/vibe-release-check/release-check-suite-plan-smoke.mjs +86 -0
- package/tools/vibe-release-check/release-check-suites.mjs +164 -0
- package/tools/vibe-release-check/release-check-test-run-smoke.mjs +59 -0
- package/tools/vibe-release-check/release-check-timing.mjs +98 -0
- package/tools/vibe-release-check/release-check-token-suite.mjs +260 -0
- package/tools/vibe-release-check/release-check-workflow-entry-suite.mjs +195 -0
- package/tools/vibe-release-check/release-check-workflow-governance-fixtures.mjs +138 -0
- package/tools/vibe-release-check/release-check-workflow-governance-smoke-suite.mjs +768 -0
- package/tools/vibe-release-check/release-check-workflow-ux-smoke.mjs +456 -0
- package/tools/vibe-runtime/README.md +2637 -0
- package/tools/vibe-runtime/index.mjs +3117 -0
- package/tools/vibe-runtime/runtime-adapter-bootstrap-matrix.mjs +264 -0
- package/tools/vibe-runtime/runtime-adapter-entry-acceptance.mjs +310 -0
- package/tools/vibe-runtime/runtime-adapter-packaging-consistency-command.mjs +131 -0
- package/tools/vibe-runtime/runtime-adapter-packaging-consistency.mjs +253 -0
- package/tools/vibe-runtime/runtime-advice-hub-model.mjs +175 -0
- package/tools/vibe-runtime/runtime-agent-session-start-contract.mjs +138 -0
- package/tools/vibe-runtime/runtime-artifact-ref-validation.mjs +281 -0
- package/tools/vibe-runtime/runtime-automatic-verification-gate-contract.mjs +134 -0
- package/tools/vibe-runtime/runtime-automation-boundary-text.mjs +7 -0
- package/tools/vibe-runtime/runtime-automation-command.mjs +367 -0
- package/tools/vibe-runtime/runtime-automation-plan-model.mjs +239 -0
- package/tools/vibe-runtime/runtime-automation-policy-model.mjs +175 -0
- package/tools/vibe-runtime/runtime-automation-readiness.mjs +347 -0
- package/tools/vibe-runtime/runtime-autopilot-lab-profile-contract.mjs +223 -0
- package/tools/vibe-runtime/runtime-behavioral-evaluation-contract.mjs +529 -0
- package/tools/vibe-runtime/runtime-behavioral-negative-gate-matrix.mjs +274 -0
- package/tools/vibe-runtime/runtime-bounded-attempt-policy-model.mjs +13 -0
- package/tools/vibe-runtime/runtime-bounded-foreground-command-executor-contract.mjs +288 -0
- package/tools/vibe-runtime/runtime-capability-registry.mjs +250 -0
- package/tools/vibe-runtime/runtime-cli-args.mjs +550 -0
- package/tools/vibe-runtime/runtime-cli-command-specs.mjs +63 -0
- package/tools/vibe-runtime/runtime-cli-dispatch.mjs +21 -0
- package/tools/vibe-runtime/runtime-cli-evidence-option-specs.mjs +193 -0
- package/tools/vibe-runtime/runtime-cli-evidence-options.mjs +28 -0
- package/tools/vibe-runtime/runtime-cli-from-options.mjs +222 -0
- package/tools/vibe-runtime/runtime-cli-low-risk-option-specs.mjs +128 -0
- package/tools/vibe-runtime/runtime-cli-main.mjs +32 -0
- package/tools/vibe-runtime/runtime-cli-option-default-families.mjs +454 -0
- package/tools/vibe-runtime/runtime-cli-option-defaults.mjs +33 -0
- package/tools/vibe-runtime/runtime-cli-option-handlers.mjs +82 -0
- package/tools/vibe-runtime/runtime-cli-usage.mjs +316 -0
- package/tools/vibe-runtime/runtime-cli-value-options.mjs +74 -0
- package/tools/vibe-runtime/runtime-close-loop-dashboard.mjs +283 -0
- package/tools/vibe-runtime/runtime-closeout-parity-contract.mjs +214 -0
- package/tools/vibe-runtime/runtime-command-container.mjs +26 -0
- package/tools/vibe-runtime/runtime-command-surface-registry.mjs +383 -0
- package/tools/vibe-runtime/runtime-command-wrapper-deps.mjs +13 -0
- package/tools/vibe-runtime/runtime-commit-readiness-envelope.mjs +281 -0
- package/tools/vibe-runtime/runtime-completion-boundary-text.mjs +7 -0
- package/tools/vibe-runtime/runtime-completion-bundle-contract.mjs +71 -0
- package/tools/vibe-runtime/runtime-completion-chain-assembly.mjs +48 -0
- package/tools/vibe-runtime/runtime-completion-command.mjs +50 -0
- package/tools/vibe-runtime/runtime-completion-evidence-bundle.mjs +269 -0
- package/tools/vibe-runtime/runtime-completion-evidence-descriptors.mjs +156 -0
- package/tools/vibe-runtime/runtime-completion-local-evidence-gates.mjs +164 -0
- package/tools/vibe-runtime/runtime-completion-presentation.mjs +71 -0
- package/tools/vibe-runtime/runtime-completion-readiness-summary.mjs +159 -0
- package/tools/vibe-runtime/runtime-confirmed-one-shot-plan.mjs +300 -0
- package/tools/vibe-runtime/runtime-context-budget-entry-defaults-command.mjs +77 -0
- package/tools/vibe-runtime/runtime-context-budget-entry-defaults.mjs +341 -0
- package/tools/vibe-runtime/runtime-contract-marker-registry.mjs +13 -0
- package/tools/vibe-runtime/runtime-contributor-guardrail-command.mjs +78 -0
- package/tools/vibe-runtime/runtime-contributor-guardrail-evidence.mjs +319 -0
- package/tools/vibe-runtime/runtime-control-plane-command.mjs +237 -0
- package/tools/vibe-runtime/runtime-control-plane-evals-artifacts.mjs +123 -0
- package/tools/vibe-runtime/runtime-control-plane-evals-boundary-model.mjs +75 -0
- package/tools/vibe-runtime/runtime-control-plane-evals-cases.mjs +547 -0
- package/tools/vibe-runtime/runtime-control-plane-evals-command.mjs +527 -0
- package/tools/vibe-runtime/runtime-control-plane-evals-report-validation.mjs +209 -0
- package/tools/vibe-runtime/runtime-control-plane-planner-artifacts.mjs +457 -0
- package/tools/vibe-runtime/runtime-control-plane-planning-command.mjs +563 -0
- package/tools/vibe-runtime/runtime-control-plane-planning-input.mjs +99 -0
- package/tools/vibe-runtime/runtime-control-plane-planning-listing.mjs +48 -0
- package/tools/vibe-runtime/runtime-control-plane-planning-presentation.mjs +246 -0
- package/tools/vibe-runtime/runtime-control-plane-planning-validation.mjs +529 -0
- package/tools/vibe-runtime/runtime-control-plane-readonly-command.mjs +537 -0
- package/tools/vibe-runtime/runtime-control-plane-readonly-deps.mjs +146 -0
- package/tools/vibe-runtime/runtime-control-plane-release-evidence.mjs +525 -0
- package/tools/vibe-runtime/runtime-control-plane-release-gates.mjs +369 -0
- package/tools/vibe-runtime/runtime-control-plane-router-planning-model.mjs +152 -0
- package/tools/vibe-runtime/runtime-control-plane-routing-artifacts.mjs +588 -0
- package/tools/vibe-runtime/runtime-controlled-change-delivery-contract.mjs +165 -0
- package/tools/vibe-runtime/runtime-controlled-execution-gate-contract.mjs +141 -0
- package/tools/vibe-runtime/runtime-controlled-long-running-automation-contract.mjs +184 -0
- package/tools/vibe-runtime/runtime-controlled-subagent-orchestration-contract.mjs +169 -0
- package/tools/vibe-runtime/runtime-daemon-command.mjs +166 -0
- package/tools/vibe-runtime/runtime-daemon-state-lifecycle-model.mjs +359 -0
- package/tools/vibe-runtime/runtime-delivery-methodology-command.mjs +17 -0
- package/tools/vibe-runtime/runtime-delivery-methodology-gates.mjs +277 -0
- package/tools/vibe-runtime/runtime-diff-coverage-envelope.mjs +301 -0
- package/tools/vibe-runtime/runtime-dispatch-command.mjs +484 -0
- package/tools/vibe-runtime/runtime-dispatch-readonly-artifacts.mjs +406 -0
- package/tools/vibe-runtime/runtime-dispatch-state-lifecycle-model.mjs +199 -0
- package/tools/vibe-runtime/runtime-durable-state-recovery-contract.mjs +172 -0
- package/tools/vibe-runtime/runtime-entry-advice-model.mjs +201 -0
- package/tools/vibe-runtime/runtime-entry-deps-builder.mjs +54 -0
- package/tools/vibe-runtime/runtime-entry-presentation.mjs +82 -0
- package/tools/vibe-runtime/runtime-entry-summary-model.mjs +343 -0
- package/tools/vibe-runtime/runtime-entry-trigger-discipline.mjs +341 -0
- package/tools/vibe-runtime/runtime-entry-trigger-tightening-command.mjs +79 -0
- package/tools/vibe-runtime/runtime-entry-trigger-tightening.mjs +357 -0
- package/tools/vibe-runtime/runtime-eval-catalog-model.mjs +101 -0
- package/tools/vibe-runtime/runtime-eval-transcript-fixtures.mjs +218 -0
- package/tools/vibe-runtime/runtime-evidence-intake-envelope.mjs +278 -0
- package/tools/vibe-runtime/runtime-evidence-repair-model.mjs +180 -0
- package/tools/vibe-runtime/runtime-executable-plan-contract.mjs +428 -0
- package/tools/vibe-runtime/runtime-execution-approval-lifecycle-models.mjs +278 -0
- package/tools/vibe-runtime/runtime-execution-candidate-approval-artifacts.mjs +227 -0
- package/tools/vibe-runtime/runtime-execution-command.mjs +544 -0
- package/tools/vibe-runtime/runtime-execution-enabled-bridge-model.mjs +113 -0
- package/tools/vibe-runtime/runtime-execution-enabled-closeout-boundary.mjs +89 -0
- package/tools/vibe-runtime/runtime-execution-enabled-preflight-model.mjs +185 -0
- package/tools/vibe-runtime/runtime-execution-enabled-profile-contract.mjs +127 -0
- package/tools/vibe-runtime/runtime-execution-enabled-run-envelope.mjs +153 -0
- package/tools/vibe-runtime/runtime-execution-evidence-binder.mjs +537 -0
- package/tools/vibe-runtime/runtime-execution-plan-artifacts.mjs +136 -0
- package/tools/vibe-runtime/runtime-execution-policy-artifacts.mjs +377 -0
- package/tools/vibe-runtime/runtime-execution-presentation.mjs +174 -0
- package/tools/vibe-runtime/runtime-execution-readonly-artifacts.mjs +228 -0
- package/tools/vibe-runtime/runtime-execution-run-preflight-artifacts.mjs +265 -0
- package/tools/vibe-runtime/runtime-execution-safety-artifacts.mjs +131 -0
- package/tools/vibe-runtime/runtime-execution-state-write-lifecycle-model.mjs +99 -0
- package/tools/vibe-runtime/runtime-experience-friction-matrix.mjs +395 -0
- package/tools/vibe-runtime/runtime-experience-learning-pattern.mjs +354 -0
- package/tools/vibe-runtime/runtime-experience-regression-dashboard.mjs +398 -0
- package/tools/vibe-runtime/runtime-experience-upgrade-command.mjs +92 -0
- package/tools/vibe-runtime/runtime-experience-upgrade-prioritizer.mjs +451 -0
- package/tools/vibe-runtime/runtime-foreground-worker-plan.mjs +275 -0
- package/tools/vibe-runtime/runtime-git-diff-read-model.mjs +322 -0
- package/tools/vibe-runtime/runtime-governance-attestation.mjs +304 -0
- package/tools/vibe-runtime/runtime-governance-command.mjs +609 -0
- package/tools/vibe-runtime/runtime-governance-convergence-reports.mjs +601 -0
- package/tools/vibe-runtime/runtime-governance-pr-models.mjs +551 -0
- package/tools/vibe-runtime/runtime-governance-presentation.mjs +67 -0
- package/tools/vibe-runtime/runtime-governance-route-model.mjs +194 -0
- package/tools/vibe-runtime/runtime-governance-surface-reports.mjs +495 -0
- package/tools/vibe-runtime/runtime-hooks-boundary-model.mjs +356 -0
- package/tools/vibe-runtime/runtime-hooks-command.mjs +286 -0
- package/tools/vibe-runtime/runtime-human-completion-evidence-model.mjs +220 -0
- package/tools/vibe-runtime/runtime-human-friendly-aliases.mjs +250 -0
- package/tools/vibe-runtime/runtime-implementation-methodology-command.mjs +17 -0
- package/tools/vibe-runtime/runtime-implementation-methodology-gates.mjs +164 -0
- package/tools/vibe-runtime/runtime-implementation-task-registry.mjs +334 -0
- package/tools/vibe-runtime/runtime-install-experience-command.mjs +120 -0
- package/tools/vibe-runtime/runtime-install-experience-score.mjs +334 -0
- package/tools/vibe-runtime/runtime-installed-multiround-ux-acceptance.mjs +149 -0
- package/tools/vibe-runtime/runtime-interaction-command-domain-registry.mjs +46 -0
- package/tools/vibe-runtime/runtime-interaction-command.mjs +648 -0
- package/tools/vibe-runtime/runtime-interaction-completion-command.mjs +220 -0
- package/tools/vibe-runtime/runtime-interaction-entry-command.mjs +130 -0
- package/tools/vibe-runtime/runtime-interaction-workflow-envelopes.mjs +412 -0
- package/tools/vibe-runtime/runtime-learning-advice-model.mjs +157 -0
- package/tools/vibe-runtime/runtime-learning-artifact-model.mjs +509 -0
- package/tools/vibe-runtime/runtime-learning-audit-model.mjs +106 -0
- package/tools/vibe-runtime/runtime-learning-interaction-command.mjs +220 -0
- package/tools/vibe-runtime/runtime-learning-observation-model.mjs +124 -0
- package/tools/vibe-runtime/runtime-learning-presentation.mjs +84 -0
- package/tools/vibe-runtime/runtime-learning-run-preview-model.mjs +184 -0
- package/tools/vibe-runtime/runtime-lease-command.mjs +95 -0
- package/tools/vibe-runtime/runtime-lease-state-lifecycle-model.mjs +247 -0
- package/tools/vibe-runtime/runtime-list-presentation.mjs +7 -0
- package/tools/vibe-runtime/runtime-live-behavior-transcript-model.mjs +164 -0
- package/tools/vibe-runtime/runtime-local-behavior-eval-contracts-command.mjs +76 -0
- package/tools/vibe-runtime/runtime-local-behavior-eval-contracts.mjs +382 -0
- package/tools/vibe-runtime/runtime-local-commit-automation-gate.mjs +254 -0
- package/tools/vibe-runtime/runtime-local-json-input.mjs +32 -0
- package/tools/vibe-runtime/runtime-methodology-coverage-map.mjs +398 -0
- package/tools/vibe-runtime/runtime-methodology-coverage-marker-specs.mjs +61 -0
- package/tools/vibe-runtime/runtime-methodology-coverage-presentation.mjs +26 -0
- package/tools/vibe-runtime/runtime-methodology-gate-model.mjs +154 -0
- package/tools/vibe-runtime/runtime-methodology-gate-output-envelope.mjs +4 -0
- package/tools/vibe-runtime/runtime-methodology-interaction-command.mjs +147 -0
- package/tools/vibe-runtime/runtime-methodology-presentation.mjs +76 -0
- package/tools/vibe-runtime/runtime-methodology-route-model.mjs +93 -0
- package/tools/vibe-runtime/runtime-next-action-console.mjs +388 -0
- package/tools/vibe-runtime/runtime-next-action-evidence-prompts-command.mjs +84 -0
- package/tools/vibe-runtime/runtime-next-action-evidence-prompts.mjs +327 -0
- package/tools/vibe-runtime/runtime-observability-command.mjs +96 -0
- package/tools/vibe-runtime/runtime-observability-presentation.mjs +30 -0
- package/tools/vibe-runtime/runtime-observability-readiness-model.mjs +204 -0
- package/tools/vibe-runtime/runtime-patch-queue-contract.mjs +151 -0
- package/tools/vibe-runtime/runtime-plan-action-manifest.mjs +334 -0
- package/tools/vibe-runtime/runtime-planner-route-model.mjs +75 -0
- package/tools/vibe-runtime/runtime-platform-acceptance-command.mjs +216 -0
- package/tools/vibe-runtime/runtime-platform-capability-artifacts.mjs +156 -0
- package/tools/vibe-runtime/runtime-platform-capability-model.mjs +105 -0
- package/tools/vibe-runtime/runtime-platform-command.mjs +329 -0
- package/tools/vibe-runtime/runtime-platform-presentation.mjs +78 -0
- package/tools/vibe-runtime/runtime-platform-session-artifacts.mjs +857 -0
- package/tools/vibe-runtime/runtime-platform-transcript-example-pack.mjs +293 -0
- package/tools/vibe-runtime/runtime-platform-transcript-intake-model.mjs +247 -0
- package/tools/vibe-runtime/runtime-platform-transcript-replay-model.mjs +371 -0
- package/tools/vibe-runtime/runtime-policy-catalog.mjs +54 -0
- package/tools/vibe-runtime/runtime-product-methodology-command.mjs +17 -0
- package/tools/vibe-runtime/runtime-product-methodology-gates.mjs +316 -0
- package/tools/vibe-runtime/runtime-progressive-entry-ux.mjs +237 -0
- package/tools/vibe-runtime/runtime-queue-command.mjs +98 -0
- package/tools/vibe-runtime/runtime-queue-state-lifecycle-model.mjs +318 -0
- package/tools/vibe-runtime/runtime-readiness-gate-split.mjs +196 -0
- package/tools/vibe-runtime/runtime-readonly-local-json-output-envelope.mjs +24 -0
- package/tools/vibe-runtime/runtime-recovery-classification-models.mjs +412 -0
- package/tools/vibe-runtime/runtime-recovery-command.mjs +107 -0
- package/tools/vibe-runtime/runtime-recovery-presentation.mjs +65 -0
- package/tools/vibe-runtime/runtime-recovery-state-lifecycle-model.mjs +419 -0
- package/tools/vibe-runtime/runtime-release-command-deps.mjs +4 -0
- package/tools/vibe-runtime/runtime-release-command.mjs +225 -0
- package/tools/vibe-runtime/runtime-release-state-lifecycle-model.mjs +48 -0
- package/tools/vibe-runtime/runtime-reply-artifact-lifecycle-model.mjs +84 -0
- package/tools/vibe-runtime/runtime-reply-command.mjs +488 -0
- package/tools/vibe-runtime/runtime-retry-command.mjs +223 -0
- package/tools/vibe-runtime/runtime-retry-run-gate-model.mjs +151 -0
- package/tools/vibe-runtime/runtime-review-envelope.mjs +449 -0
- package/tools/vibe-runtime/runtime-review-feedback-gate.mjs +160 -0
- package/tools/vibe-runtime/runtime-runbook-executor-preview-contract.mjs +361 -0
- package/tools/vibe-runtime/runtime-scheduler-command.mjs +8 -0
- package/tools/vibe-runtime/runtime-scheduler-risk-artifacts.mjs +775 -0
- package/tools/vibe-runtime/runtime-scheduler-state-lifecycle-model.mjs +53 -0
- package/tools/vibe-runtime/runtime-sdd-consumption-command.mjs +386 -0
- package/tools/vibe-runtime/runtime-sdd-evidence-chain-model.mjs +200 -0
- package/tools/vibe-runtime/runtime-sdd-handoff-chain-model.mjs +168 -0
- package/tools/vibe-runtime/runtime-sdd-implementer-artifact-model.mjs +90 -0
- package/tools/vibe-runtime/runtime-sdd-loop-command.mjs +659 -0
- package/tools/vibe-runtime/runtime-sdd-plan-preflight-model.mjs +121 -0
- package/tools/vibe-runtime/runtime-sdd-review-package-command.mjs +197 -0
- package/tools/vibe-runtime/runtime-sdd-review-package-model.mjs +183 -0
- package/tools/vibe-runtime/runtime-sdd-task-brief-model.mjs +144 -0
- package/tools/vibe-runtime/runtime-self-test-gate-profile.mjs +225 -0
- package/tools/vibe-runtime/runtime-sequential-stage-runbook.mjs +406 -0
- package/tools/vibe-runtime/runtime-session-checkpoint-model.mjs +217 -0
- package/tools/vibe-runtime/runtime-session-skill-command.mjs +241 -0
- package/tools/vibe-runtime/runtime-session-start-example-command.mjs +122 -0
- package/tools/vibe-runtime/runtime-session-start-example-pack.mjs +290 -0
- package/tools/vibe-runtime/runtime-session-start-shape-acceptance.mjs +344 -0
- package/tools/vibe-runtime/runtime-skill-contract-schema.mjs +221 -0
- package/tools/vibe-runtime/runtime-skill-route-registry.mjs +47 -0
- package/tools/vibe-runtime/runtime-skill-runtime-traceability-map.mjs +268 -0
- package/tools/vibe-runtime/runtime-source-merge-apply-boundary-model.mjs +130 -0
- package/tools/vibe-runtime/runtime-source-merge-artifacts.mjs +920 -0
- package/tools/vibe-runtime/runtime-source-merge-command.mjs +160 -0
- package/tools/vibe-runtime/runtime-source-merge-entry-command.mjs +153 -0
- package/tools/vibe-runtime/runtime-source-patch-plan-model.mjs +119 -0
- package/tools/vibe-runtime/runtime-stage-scriptlet.mjs +430 -0
- package/tools/vibe-runtime/runtime-staged-commit-readiness.mjs +469 -0
- package/tools/vibe-runtime/runtime-state-directory-model.mjs +7 -0
- package/tools/vibe-runtime/runtime-state-io.mjs +41 -0
- package/tools/vibe-runtime/runtime-state-paths.mjs +231 -0
- package/tools/vibe-runtime/runtime-state-presence-model.mjs +6 -0
- package/tools/vibe-runtime/runtime-state-risk-paths.mjs +70 -0
- package/tools/vibe-runtime/runtime-subagent-adapter-dispatch-command.mjs +266 -0
- package/tools/vibe-runtime/runtime-subagent-boundary-contracts.mjs +118 -0
- package/tools/vibe-runtime/runtime-subagent-permission-command.mjs +78 -0
- package/tools/vibe-runtime/runtime-subagent-permission-gate-model.mjs +131 -0
- package/tools/vibe-runtime/runtime-subagent-permission-visibility.mjs +294 -0
- package/tools/vibe-runtime/runtime-subagents-artifact-specs.mjs +257 -0
- package/tools/vibe-runtime/runtime-subagents-command.mjs +10 -0
- package/tools/vibe-runtime/runtime-subagents-eligibility-model.mjs +340 -0
- package/tools/vibe-runtime/runtime-subagents-platform-session-proxies.mjs +54 -0
- package/tools/vibe-runtime/runtime-subagents-presentation.mjs +91 -0
- package/tools/vibe-runtime/runtime-subagents-risk-artifacts.mjs +853 -0
- package/tools/vibe-runtime/runtime-subagents-stage-artifact-model.mjs +538 -0
- package/tools/vibe-runtime/runtime-subagents-tail-routing-model.mjs +48 -0
- package/tools/vibe-runtime/runtime-suite-plan-model.mjs +194 -0
- package/tools/vibe-runtime/runtime-superpowers-comparison-matrix.mjs +399 -0
- package/tools/vibe-runtime/runtime-superpowers-gap-matrix.mjs +307 -0
- package/tools/vibe-runtime/runtime-superpowers-parity-command.mjs +102 -0
- package/tools/vibe-runtime/runtime-superpowers-parity-profile-contract.mjs +183 -0
- package/tools/vibe-runtime/runtime-superpowers-parity-scorecard.mjs +460 -0
- package/tools/vibe-runtime/runtime-superpowers-regression-guard.mjs +270 -0
- package/tools/vibe-runtime/runtime-superpowers-style-eval-pack.mjs +367 -0
- package/tools/vibe-runtime/runtime-task-commit-gates.mjs +62 -0
- package/tools/vibe-runtime/runtime-task-commit-readiness.mjs +66 -0
- package/tools/vibe-runtime/runtime-task-commit-sidecar.mjs +65 -0
- package/tools/vibe-runtime/runtime-tdd-trace-contract.mjs +277 -0
- package/tools/vibe-runtime/runtime-test-evidence-model.mjs +196 -0
- package/tools/vibe-runtime/runtime-test-run-command-deps.mjs +7 -0
- package/tools/vibe-runtime/runtime-test-run-command.mjs +108 -0
- package/tools/vibe-runtime/runtime-token-economy-model.mjs +336 -0
- package/tools/vibe-runtime/runtime-token-interaction-command.mjs +381 -0
- package/tools/vibe-runtime/runtime-token-savior-budget.mjs +370 -0
- package/tools/vibe-runtime/runtime-tokens-command-deps.mjs +17 -0
- package/tools/vibe-runtime/runtime-tokens-command.mjs +117 -0
- package/tools/vibe-runtime/runtime-tokens-presentation.mjs +45 -0
- package/tools/vibe-runtime/runtime-trace-command.mjs +283 -0
- package/tools/vibe-runtime/runtime-trace-source-registry.mjs +132 -0
- package/tools/vibe-runtime/runtime-verification-gate-chain-model.mjs +131 -0
- package/tools/vibe-runtime/runtime-verification-repair-loop-plan.mjs +188 -0
- package/tools/vibe-runtime/runtime-workflow-alias-boundary-text.mjs +7 -0
- package/tools/vibe-runtime/runtime-workflow-alias-interaction-command.mjs +145 -0
- package/tools/vibe-runtime/runtime-workflow-command-deps.mjs +41 -0
- package/tools/vibe-runtime/runtime-workflow-command.mjs +191 -0
- package/tools/vibe-runtime/runtime-workflow-discipline-summary.mjs +164 -0
- package/tools/vibe-runtime/runtime-workflow-entry-envelopes.mjs +156 -0
- package/tools/vibe-runtime/runtime-workflow-ledger-command.mjs +239 -0
- package/tools/vibe-runtime/runtime-workflow-ledger-state-lifecycle-model.mjs +46 -0
- package/tools/vibe-runtime/runtime-workflow-loop-contract.mjs +259 -0
- package/tools/vibe-runtime/runtime-workflow-next-step-gate-model.mjs +106 -0
- package/tools/vibe-runtime/runtime-workflow-presentation.mjs +355 -0
- package/tools/vibe-runtime/runtime-workflow-readiness-model.mjs +176 -0
- package/tools/vibe-runtime/runtime-workflow-run-plan-model.mjs +207 -0
- package/tools/vibe-runtime/runtime-workflow-start-model.mjs +229 -0
- package/tools/vibe-runtime/runtime-workflow-state-artifacts.mjs +381 -0
- package/tools/vibe-runtime/runtime-workflow-state-helpers.mjs +456 -0
- package/tools/vibe-runtime/runtime-workflow-state-summary.mjs +65 -0
- package/tools/vibe-runtime/runtime-workflow-state-validation.mjs +104 -0
- package/tools/vibe-runtime/runtime-workflow-ux-model.mjs +205 -0
- package/tools/vibe-runtime/runtime-workspace-boundary-text.mjs +7 -0
- package/tools/vibe-runtime/runtime-workspace-isolation-command.mjs +295 -0
- package/tools/vibe-runtime/state-core-paths.mjs +113 -0
- package/tools/vibe-runtime/state-extension-paths.mjs +198 -0
- package/tools/vibe-runtime/state-safe-paths.mjs +2 -0
- package/tools/vibe-runtime-check/README.md +110 -0
- package/tools/vibe-runtime-check/architecture-tool-contracts.mjs +150 -0
- package/tools/vibe-runtime-check/index.mjs +186 -0
- package/tools/vibe-runtime-check/install-summary-adoption-contracts.mjs +115 -0
- package/tools/vibe-runtime-check/marker-contract-core.mjs +20 -0
- package/tools/vibe-runtime-check/product-artifact-contracts.mjs +24 -0
- package/tools/vibe-runtime-check/release-check-install-placement-contracts.mjs +166 -0
- package/tools/vibe-runtime-check/release-runtime-suite-layer-contracts.mjs +137 -0
- package/tools/vibe-runtime-check/runtime-architecture-manifest-drift-contracts.mjs +128 -0
- package/tools/vibe-runtime-check/runtime-automation-readiness-contracts.mjs +404 -0
- package/tools/vibe-runtime-check/runtime-capability-registry-contracts.mjs +299 -0
- package/tools/vibe-runtime-check/runtime-check-diagnostics-presentation.mjs +71 -0
- package/tools/vibe-runtime-check/runtime-cli-surface-contracts.mjs +156 -0
- package/tools/vibe-runtime-check/runtime-close-loop-contracts.mjs +163 -0
- package/tools/vibe-runtime-check/runtime-contract-delivery-registry.mjs +19 -0
- package/tools/vibe-runtime-check/runtime-contract-implementation-registry.mjs +23 -0
- package/tools/vibe-runtime-check/runtime-contract-local-evidence-registry.mjs +43 -0
- package/tools/vibe-runtime-check/runtime-contract-product-registry.mjs +83 -0
- package/tools/vibe-runtime-check/runtime-contract-registry.mjs +19 -0
- package/tools/vibe-runtime-check/runtime-control-plane-contracts.mjs +14 -0
- package/tools/vibe-runtime-check/runtime-doc-contract-marker-specs.mjs +349 -0
- package/tools/vibe-runtime-check/runtime-doc-contracts.mjs +24 -0
- package/tools/vibe-runtime-check/runtime-doc-marker-contracts.mjs +25 -0
- package/tools/vibe-runtime-check/runtime-entry-size-contracts.mjs +477 -0
- package/tools/vibe-runtime-check/runtime-experience-cli-contract-specs.mjs +98 -0
- package/tools/vibe-runtime-check/runtime-experience-cli-contracts.mjs +12 -0
- package/tools/vibe-runtime-check/runtime-experience-contracts.mjs +187 -0
- package/tools/vibe-runtime-check/runtime-governance-learning-token-contract-specs.mjs +92 -0
- package/tools/vibe-runtime-check/runtime-governance-learning-token-contracts.mjs +12 -0
- package/tools/vibe-runtime-check/runtime-high-risk-boundary-contracts.mjs +35 -0
- package/tools/vibe-runtime-check/runtime-high-risk-boundary-matrix.mjs +75 -0
- package/tools/vibe-runtime-check/runtime-index-import-boundary-contracts.mjs +192 -0
- package/tools/vibe-runtime-check/runtime-optimization-boundary-contracts.mjs +49 -0
- package/tools/vibe-runtime-check/runtime-pure-model-boundary-contracts.mjs +176 -0
- package/tools/vibe-runtime-check/runtime-release-closeout-contracts.mjs +25 -0
- package/tools/vibe-runtime-check/runtime-roadmap-marker-specs.mjs +559 -0
- package/tools/vibe-runtime-check/runtime-source-bundle.mjs +119 -0
- package/tools/vibe-runtime-check/runtime-tool-readme-contracts.mjs +93 -0
- package/tools/vibe-runtime-check/runtime-tool-readme-marker-specs.mjs +952 -0
- package/tools/vibe-runtime-check/workflow-skill-contracts.mjs +129 -0
- package/tools/vibe-runtime-check/workflow-skill-route-registry-contracts.mjs +106 -0
- package/tools/vibe-runtime-check/workflow-ux-contracts.mjs +46 -0
|
@@ -0,0 +1,1143 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
export function runEntryTriggerTighteningSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
5
|
+
const target = '.tmp/vibe-entry-trigger-tightening';
|
|
6
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
7
|
+
const disciplineFile = path.join(target, 'entry-discipline.json');
|
|
8
|
+
const scorecardFile = path.join(target, 'parity-scorecard.json');
|
|
9
|
+
const expectedDisciplineFile = disciplineFile.replace(/\\/g, '/');
|
|
10
|
+
const expectedScorecardFile = scorecardFile.replace(/\\/g, '/');
|
|
11
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
12
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
16
|
+
fs.writeFileSync(path.join(repoRoot, disciplineFile), `${JSON.stringify({
|
|
17
|
+
entry_trigger_discipline: {
|
|
18
|
+
stage: 'Stage 135',
|
|
19
|
+
discipline_kind: 'entry-trigger-discipline-contract',
|
|
20
|
+
intent: 'feature',
|
|
21
|
+
pass: false,
|
|
22
|
+
discipline_digest: 'fixture-stage135-entry-discipline-digest',
|
|
23
|
+
expected_route: {
|
|
24
|
+
first_gate: 'using-vibecoding',
|
|
25
|
+
required_workflow: ['using-vibecoding', 'vibe-brainstorming', 'vibe-planning', 'vibe-writing-plans'],
|
|
26
|
+
reason: 'feature work must not jump straight to implementation',
|
|
27
|
+
},
|
|
28
|
+
trigger_results: [
|
|
29
|
+
{ gate: 'using_vibecoding_first', pass: false, findings: ['transcript should mention using-vibecoding before task routing'] },
|
|
30
|
+
{ gate: 'protocol_layers_declared', pass: false, findings: ['transcript should declare L0 lightweight routing or equivalent'] },
|
|
31
|
+
{ gate: 'intent_route_match', pass: true, findings: [] },
|
|
32
|
+
{ gate: 'no_direct_implementation_jump', pass: true, findings: [] },
|
|
33
|
+
{ gate: 'no_blind_bug_fix', pass: true, findings: [] },
|
|
34
|
+
{ gate: 'no_false_skill_claim', pass: true, findings: [] },
|
|
35
|
+
{ gate: 'no_forbidden_trigger', pass: true, findings: [] },
|
|
36
|
+
],
|
|
37
|
+
missed_workflow_risks: ['using_vibecoding_first: transcript should mention using-vibecoding before task routing'],
|
|
38
|
+
},
|
|
39
|
+
}, null, 2)}\n`, 'utf8');
|
|
40
|
+
fs.writeFileSync(path.join(repoRoot, scorecardFile), `${JSON.stringify({
|
|
41
|
+
superpowers_parity_scorecard: {
|
|
42
|
+
stage: 'Stage 140',
|
|
43
|
+
scorecard_kind: 'superpowers-parity-scorecard-v2',
|
|
44
|
+
parity_score: 84,
|
|
45
|
+
parity_digest: 'fixture-stage140-parity-scorecard-digest',
|
|
46
|
+
parity_axes: [
|
|
47
|
+
{ id: 'skill_trigger_discipline', axis_score: 72, status: 'partially_absorbed' },
|
|
48
|
+
{ id: 'daily_user_friction', axis_score: 86, status: 'absorbed' },
|
|
49
|
+
],
|
|
50
|
+
next_cycle_bet: {
|
|
51
|
+
candidate_id: 'entry_trigger_tightening',
|
|
52
|
+
target_stage: 'Stage 141',
|
|
53
|
+
weakest_axis: 'skill_trigger_discipline',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
}, null, 2)}\n`, 'utf8');
|
|
57
|
+
|
|
58
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', disciplineFile, '--from-scorecard', scorecardFile, '--intent', 'feature', '--json', '--root', '.'], {}, options), 'workflow --entry-tightening --json');
|
|
59
|
+
const tightening = envelope.entry_trigger_tightening || {};
|
|
60
|
+
assertJsonMarkers([
|
|
61
|
+
['command', envelope.command, 'workflow'],
|
|
62
|
+
['mode', envelope.mode, 'entry-trigger-tightening-contract'],
|
|
63
|
+
['ok', envelope.ok, true],
|
|
64
|
+
['entry_trigger_tightening.stage', tightening.stage, 'Stage 141'],
|
|
65
|
+
['entry_trigger_tightening.tightening_kind', tightening.tightening_kind, 'entry-trigger-tightening-contract'],
|
|
66
|
+
['entry_trigger_tightening.intent', tightening.intent, 'feature'],
|
|
67
|
+
['entry_trigger_tightening.source_bindings.discipline_file', tightening.source_bindings?.discipline_file, expectedDisciplineFile],
|
|
68
|
+
['entry_trigger_tightening.source_bindings.scorecard_file', tightening.source_bindings?.scorecard_file, expectedScorecardFile],
|
|
69
|
+
['entry_trigger_tightening.input_summary.discipline_stage', tightening.input_summary?.discipline_stage, 'Stage 135'],
|
|
70
|
+
['entry_trigger_tightening.input_summary.scorecard_stage', tightening.input_summary?.scorecard_stage, 'Stage 140'],
|
|
71
|
+
['entry_trigger_tightening.input_summary.skill_trigger_axis_score', tightening.input_summary?.skill_trigger_axis_score, 72],
|
|
72
|
+
['entry_trigger_tightening.trigger_gap_summary.failed_gate_count', tightening.trigger_gap_summary?.failed_gate_count, 2],
|
|
73
|
+
['entry_trigger_tightening.tightening_score', tightening.tightening_score, 65],
|
|
74
|
+
['entry_trigger_tightening.expected_route.first_gate', tightening.expected_route?.first_gate, 'using-vibecoding'],
|
|
75
|
+
['entry_trigger_tightening.tightening_invariants.pass', tightening.tightening_invariants?.pass, true],
|
|
76
|
+
['entry_trigger_tightening.writes', tightening.writes, false],
|
|
77
|
+
['entry_trigger_tightening.state_directory_created', tightening.state_directory_created, false],
|
|
78
|
+
['entry_trigger_tightening.boundary_assertions.entry_tightening_artifact', tightening.boundary_assertions?.entry_tightening_artifact, false],
|
|
79
|
+
['entry_trigger_tightening.boundary_assertions.entry_trigger_tightening_artifact', tightening.boundary_assertions?.entry_trigger_tightening_artifact, false],
|
|
80
|
+
['entry_trigger_tightening.boundary_assertions.discipline_artifact', tightening.boundary_assertions?.discipline_artifact, false],
|
|
81
|
+
['entry_trigger_tightening.boundary_assertions.entry_discipline_artifact', tightening.boundary_assertions?.entry_discipline_artifact, false],
|
|
82
|
+
['entry_trigger_tightening.boundary_assertions.parity_scorecard_artifact', tightening.boundary_assertions?.parity_scorecard_artifact, false],
|
|
83
|
+
['entry_trigger_tightening.boundary_assertions.prompt_mutation', tightening.boundary_assertions?.prompt_mutation, false],
|
|
84
|
+
['entry_trigger_tightening.boundary_assertions.template_mutation', tightening.boundary_assertions?.template_mutation, false],
|
|
85
|
+
['entry_trigger_tightening.boundary_assertions.skill_mutation', tightening.boundary_assertions?.skill_mutation, false],
|
|
86
|
+
['entry_trigger_tightening.boundary_assertions.hook_execution', tightening.boundary_assertions?.hook_execution, false],
|
|
87
|
+
['entry_trigger_tightening.boundary_assertions.adapter_execution', tightening.boundary_assertions?.adapter_execution, false],
|
|
88
|
+
['entry_trigger_tightening.boundary_assertions.command_execution', tightening.boundary_assertions?.command_execution, false],
|
|
89
|
+
['entry_trigger_tightening.boundary_assertions.check_execution', tightening.boundary_assertions?.check_execution, false],
|
|
90
|
+
['entry_trigger_tightening.boundary_assertions.test_execution', tightening.boundary_assertions?.test_execution, false],
|
|
91
|
+
['entry_trigger_tightening.boundary_assertions.eval_execution', tightening.boundary_assertions?.eval_execution, false],
|
|
92
|
+
['entry_trigger_tightening.boundary_assertions.workflow_execution', tightening.boundary_assertions?.workflow_execution, false],
|
|
93
|
+
['entry_trigger_tightening.boundary_assertions.skill_execution', tightening.boundary_assertions?.skill_execution, false],
|
|
94
|
+
['entry_trigger_tightening.boundary_assertions.runtime_action', tightening.boundary_assertions?.runtime_action, false],
|
|
95
|
+
['entry_trigger_tightening.boundary_assertions.auto_execution', tightening.boundary_assertions?.auto_execution, false],
|
|
96
|
+
['entry_trigger_tightening.boundary_assertions.full_skill_injection', tightening.boundary_assertions?.full_skill_injection, false],
|
|
97
|
+
['entry_trigger_tightening.boundary_assertions.platform_api', tightening.boundary_assertions?.platform_api, false],
|
|
98
|
+
['entry_trigger_tightening.boundary_assertions.external_network', tightening.boundary_assertions?.external_network, false],
|
|
99
|
+
['entry_trigger_tightening.boundary_assertions.model_invocation', tightening.boundary_assertions?.model_invocation, false],
|
|
100
|
+
['entry_trigger_tightening.boundary_assertions.subagent', tightening.boundary_assertions?.subagent, false],
|
|
101
|
+
['entry_trigger_tightening.boundary_assertions.mcp', tightening.boundary_assertions?.mcp, false],
|
|
102
|
+
['entry_trigger_tightening.boundary_assertions.git', tightening.boundary_assertions?.git, false],
|
|
103
|
+
['entry_trigger_tightening.boundary_assertions.git_write', tightening.boundary_assertions?.git_write, false],
|
|
104
|
+
['entry_trigger_tightening.boundary_assertions.commit', tightening.boundary_assertions?.commit, false],
|
|
105
|
+
['entry_trigger_tightening.boundary_assertions.pr', tightening.boundary_assertions?.pr, false],
|
|
106
|
+
['entry_trigger_tightening.boundary_assertions.push', tightening.boundary_assertions?.push, false],
|
|
107
|
+
['entry_trigger_tightening.boundary_assertions.merge', tightening.boundary_assertions?.merge, false],
|
|
108
|
+
['entry_trigger_tightening.boundary_assertions.business_source_write', tightening.boundary_assertions?.business_source_write, false],
|
|
109
|
+
['safety.stage', envelope.safety?.stage, 'Stage 141'],
|
|
110
|
+
['safety.workflow_execution', envelope.safety?.workflow_execution, false],
|
|
111
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
112
|
+
], 'workflow --entry-tightening --json');
|
|
113
|
+
if (!tightening.tightening_digest) throw new Error('entry tightening missing tightening_digest');
|
|
114
|
+
if (!String(tightening.recommended_opening_sentence || '').includes('using-vibecoding')) throw new Error('entry tightening missing copy-ready using-vibecoding sentence');
|
|
115
|
+
if (!tightening.missing_entry_moves?.some((item) => item.id === 'using_vibecoding_first')) throw new Error('entry tightening missing using_vibecoding_first move');
|
|
116
|
+
if (!tightening.missing_entry_moves?.some((item) => item.id === 'next_cycle_entry_trigger_tightening')) throw new Error('entry tightening missing Stage 140 next-cycle move');
|
|
117
|
+
if (fs.existsSync(unexpectedState)) throw new Error('workflow --entry-tightening JSON output created unexpected state directory');
|
|
118
|
+
|
|
119
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', disciplineFile, '--from-scorecard', scorecardFile, '--intent', 'feature', '--root', '.'], {
|
|
120
|
+
expectOutput: ['Vibecoding Runtime Entry Trigger Tightening', 'Stage: Stage 141; Kind: entry-trigger-tightening-contract; pass=true', 'Tightening score: 65', 'Recommended opening sentence:', 'Missing entry moves:', 'Must not skip:', 'Boundary: writes=false; entry_tightening_artifact=false', 'Tightening digest:', 'Action: entry trigger tightening was computed read-only'],
|
|
121
|
+
}, options);
|
|
122
|
+
if (fs.existsSync(unexpectedState)) throw new Error('workflow --entry-tightening text output created unexpected state directory');
|
|
123
|
+
|
|
124
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
125
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', disciplineFile, '--from-scorecard', scorecardFile, forbidden, '--root', '.'], {
|
|
126
|
+
allowFailure: true,
|
|
127
|
+
expectOutput: ['workflow read-only modes do not accept execution, dispatch, preview, confirm, write, scan, or preflight flags'],
|
|
128
|
+
}, options);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
132
|
+
allowFailure: true,
|
|
133
|
+
expectOutput: ['workflow --entry-tightening requires --from-discipline <local-discipline-json>'],
|
|
134
|
+
}, options);
|
|
135
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', disciplineFile, '--root', '.'], {
|
|
136
|
+
allowFailure: true,
|
|
137
|
+
expectOutput: ['workflow --entry-tightening requires --from-scorecard <local-parity-scorecard-json>'],
|
|
138
|
+
}, options);
|
|
139
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', '../outside.json', '--from-scorecard', scorecardFile, '--root', target], {
|
|
140
|
+
allowFailure: true,
|
|
141
|
+
expectOutput: ['workflow --entry-tightening --from-discipline must stay within --root'],
|
|
142
|
+
}, options);
|
|
143
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-tightening', '--from-discipline', disciplineFile, '--from-scorecard', scorecardFile, '--from-file', disciplineFile, '--root', '.'], {
|
|
144
|
+
allowFailure: true,
|
|
145
|
+
expectOutput: ['workflow --entry-tightening only accepts --from-discipline, --from-scorecard, optional --intent, --json, and --root'],
|
|
146
|
+
}, options);
|
|
147
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--entry-discipline', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
148
|
+
allowFailure: true,
|
|
149
|
+
expectOutput: ['--from-discipline and --from-scorecard are only supported by workflow --entry-tightening'],
|
|
150
|
+
}, options);
|
|
151
|
+
} finally {
|
|
152
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function sessionStartShapeAcceptanceFixture() {
|
|
157
|
+
return {
|
|
158
|
+
session_start_shape_acceptance: {
|
|
159
|
+
stage: 'Stage 134',
|
|
160
|
+
acceptance_kind: 'session-start-shape-acceptance',
|
|
161
|
+
adapter: 'claude',
|
|
162
|
+
ok: true,
|
|
163
|
+
accepted: true,
|
|
164
|
+
shape_digest: 'fixture-stage134-session-start-shape-digest',
|
|
165
|
+
output_summary: { context_path: 'hookSpecificOutput.additionalContext', context_length: 240 },
|
|
166
|
+
shape_results: [
|
|
167
|
+
{ gate: 'adapter_output_shape', pass: true, findings: [] },
|
|
168
|
+
{ gate: 'context_present', pass: true, findings: [] },
|
|
169
|
+
{ gate: 'using_vibecoding_marker', pass: true, findings: [] },
|
|
170
|
+
{ gate: 'lightweight_routing_marker', pass: true, findings: [] },
|
|
171
|
+
{ gate: 'semantic_field_markers', pass: true, findings: [] },
|
|
172
|
+
{ gate: 'context_policy_marker', pass: true, findings: [] },
|
|
173
|
+
{ gate: 'boundary_declaration_marker', pass: true, findings: [] },
|
|
174
|
+
{ gate: 'no_full_skill_injection', pass: true, findings: [] },
|
|
175
|
+
{ gate: 'no_execution_claims', pass: true, findings: [] },
|
|
176
|
+
{ gate: 'no_forbidden_trigger', pass: true, findings: [] },
|
|
177
|
+
],
|
|
178
|
+
blockers: [],
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function installExperienceScoreFixture() {
|
|
184
|
+
return {
|
|
185
|
+
install_experience_score: {
|
|
186
|
+
stage: 'Stage 137',
|
|
187
|
+
score_kind: 'hook-adapter-install-experience-score',
|
|
188
|
+
ok: true,
|
|
189
|
+
install_experience_score: 100,
|
|
190
|
+
install_experience_digest: 'fixture-stage137-install-experience-digest',
|
|
191
|
+
adapter_scores: ['claude', 'cursor', 'codex', 'cursor-sdk'].map((adapter) => ({ adapter, bootstrap_pass: true, entry_acceptance_ok: true, natural_entry_score: 100, adapter_consistency_score: 100, manual_steps_remaining: [], docs_friction: [] })),
|
|
192
|
+
manual_steps_remaining: [],
|
|
193
|
+
docs_friction: [],
|
|
194
|
+
blockers: [],
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function runSessionStartExamplePackSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
200
|
+
const target = '.tmp/vibe-session-start-examples';
|
|
201
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
202
|
+
const shapeFile = path.join(target, 'session-start-shape.json');
|
|
203
|
+
const installFile = path.join(target, 'install-experience.json');
|
|
204
|
+
const expectedShapeFile = shapeFile.replace(/\\/g, '/');
|
|
205
|
+
const expectedInstallFile = installFile.replace(/\\/g, '/');
|
|
206
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
207
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
208
|
+
|
|
209
|
+
try {
|
|
210
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
211
|
+
fs.writeFileSync(path.join(repoRoot, shapeFile), `${JSON.stringify(sessionStartShapeAcceptanceFixture(), null, 2)}\n`, 'utf8');
|
|
212
|
+
fs.writeFileSync(path.join(repoRoot, installFile), `${JSON.stringify(installExperienceScoreFixture(), null, 2)}\n`, 'utf8');
|
|
213
|
+
|
|
214
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', shapeFile, '--from-install-experience', installFile, '--json', '--root', '.'], {}, options), 'platforms --session-start-examples --json');
|
|
215
|
+
const pack = envelope.session_start_example_pack || {};
|
|
216
|
+
assertJsonMarkers([
|
|
217
|
+
['command', envelope.command, 'platforms'],
|
|
218
|
+
['mode', envelope.mode, 'session-start-example-pack'],
|
|
219
|
+
['ok', envelope.ok, true],
|
|
220
|
+
['session_start_example_pack.stage', pack.stage, 'Stage 142'],
|
|
221
|
+
['session_start_example_pack.pack_kind', pack.pack_kind, 'session-start-example-pack'],
|
|
222
|
+
['session_start_example_pack.source_bindings.shape_file', pack.source_bindings?.shape_file, expectedShapeFile],
|
|
223
|
+
['session_start_example_pack.source_bindings.install_experience_file', pack.source_bindings?.install_experience_file, expectedInstallFile],
|
|
224
|
+
['session_start_example_pack.input_summary.shape_stage', pack.input_summary?.shape_stage, 'Stage 134'],
|
|
225
|
+
['session_start_example_pack.input_summary.install_experience_stage', pack.input_summary?.install_experience_stage, 'Stage 137'],
|
|
226
|
+
['session_start_example_pack.input_summary.shape_adapter', pack.input_summary?.shape_adapter, 'claude'],
|
|
227
|
+
['session_start_example_pack.input_summary.adapter_example_count', pack.input_summary?.adapter_example_count, 4],
|
|
228
|
+
['session_start_example_pack.example_pack_invariants.pass', pack.example_pack_invariants?.pass, true],
|
|
229
|
+
['session_start_example_pack.writes', pack.writes, false],
|
|
230
|
+
['session_start_example_pack.state_directory_created', pack.state_directory_created, false],
|
|
231
|
+
['session_start_example_pack.boundary_assertions.session_start_example_pack_artifact', pack.boundary_assertions?.session_start_example_pack_artifact, false],
|
|
232
|
+
['session_start_example_pack.boundary_assertions.adapter_execution', pack.boundary_assertions?.adapter_execution, false],
|
|
233
|
+
['session_start_example_pack.boundary_assertions.hook_execution', pack.boundary_assertions?.hook_execution, false],
|
|
234
|
+
['session_start_example_pack.boundary_assertions.command_execution', pack.boundary_assertions?.command_execution, false],
|
|
235
|
+
['session_start_example_pack.boundary_assertions.workflow_execution', pack.boundary_assertions?.workflow_execution, false],
|
|
236
|
+
['session_start_example_pack.boundary_assertions.skill_execution', pack.boundary_assertions?.skill_execution, false],
|
|
237
|
+
['session_start_example_pack.boundary_assertions.full_skill_injection', pack.boundary_assertions?.full_skill_injection, false],
|
|
238
|
+
['session_start_example_pack.boundary_assertions.git', pack.boundary_assertions?.git, false],
|
|
239
|
+
['session_start_example_pack.boundary_assertions.git_write', pack.boundary_assertions?.git_write, false],
|
|
240
|
+
['session_start_example_pack.boundary_assertions.subagent', pack.boundary_assertions?.subagent, false],
|
|
241
|
+
['session_start_example_pack.boundary_assertions.platform_api', pack.boundary_assertions?.platform_api, false],
|
|
242
|
+
['session_start_example_pack.boundary_assertions.model_invocation', pack.boundary_assertions?.model_invocation, false],
|
|
243
|
+
['session_start_example_pack.boundary_assertions.business_source_write', pack.boundary_assertions?.business_source_write, false],
|
|
244
|
+
['safety.stage', envelope.safety?.stage, 'Stage 142'],
|
|
245
|
+
['safety.hook_execution', envelope.safety?.hook_execution, false],
|
|
246
|
+
['safety.adapter_execution', envelope.safety?.adapter_execution, false],
|
|
247
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
248
|
+
], 'platforms --session-start-examples --json');
|
|
249
|
+
if (!pack.example_pack_digest) throw new Error('session-start example pack missing example_pack_digest');
|
|
250
|
+
if (!pack.adapter_examples?.some((example) => example.adapter === 'claude' && example.context_path === 'hookSpecificOutput.additionalContext')) throw new Error('session-start example pack missing claude shape');
|
|
251
|
+
if (!pack.adapter_examples?.some((example) => example.adapter === 'cursor' && example.context_path === 'additional_context')) throw new Error('session-start example pack missing cursor shape');
|
|
252
|
+
if (!pack.adapter_examples?.some((example) => example.adapter === 'codex' && example.context_path === 'additionalContext')) throw new Error('session-start example pack missing codex shape');
|
|
253
|
+
if (!pack.adapter_examples?.some((example) => example.adapter === 'cursor-sdk' && example.context_path === 'additionalContext')) throw new Error('session-start example pack missing cursor-sdk shape');
|
|
254
|
+
if (fs.existsSync(unexpectedState)) throw new Error('platforms --session-start-examples JSON output created unexpected state directory');
|
|
255
|
+
|
|
256
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', shapeFile, '--from-install-experience', installFile, '--root', '.'], {
|
|
257
|
+
expectOutput: ['Vibecoding Runtime Session-start Example Pack', 'Stage: Stage 142; Pack: session-start-example-pack; pass=true', 'Adapter examples:', '- claude: hookSpecificOutput.additionalContext', '- cursor: additional_context', '- codex: additionalContext', 'Copy-ready context shapes:', 'Format warnings:', '- none', 'Boundary: writes=false; session_start_example_pack_artifact=false', 'Example pack digest:', 'Action: session-start example pack read local Stage 134 shape acceptance JSON and local Stage 137 install experience JSON only'],
|
|
258
|
+
}, options);
|
|
259
|
+
if (fs.existsSync(unexpectedState)) throw new Error('platforms --session-start-examples text output created unexpected state directory');
|
|
260
|
+
|
|
261
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
262
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', shapeFile, '--from-install-experience', installFile, forbidden, '--root', '.'], {
|
|
263
|
+
allowFailure: true,
|
|
264
|
+
expectOutput: ['platforms --session-start-examples is read-only and report-only'],
|
|
265
|
+
}, options);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-install-experience', installFile, '--root', '.'], {
|
|
269
|
+
allowFailure: true,
|
|
270
|
+
expectOutput: ['platforms --session-start-examples requires --from-shape <local-shape-json>'],
|
|
271
|
+
}, options);
|
|
272
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', shapeFile, '--root', '.'], {
|
|
273
|
+
allowFailure: true,
|
|
274
|
+
expectOutput: ['platforms --session-start-examples requires --from-install-experience <local-install-json>'],
|
|
275
|
+
}, options);
|
|
276
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', '../outside.json', '--from-install-experience', installFile, '--root', target], {
|
|
277
|
+
allowFailure: true,
|
|
278
|
+
expectOutput: ['platforms --session-start-examples --from-shape must stay within --root'],
|
|
279
|
+
}, options);
|
|
280
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-examples', '--from-shape', shapeFile, '--from-install-experience', installFile, '--from-file', shapeFile, '--root', '.'], {
|
|
281
|
+
allowFailure: true,
|
|
282
|
+
expectOutput: ['platforms --session-start-examples only accepts --from-shape, --from-install-experience, --json, and --root'],
|
|
283
|
+
}, options);
|
|
284
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--session-start-shape', '--from-shape', shapeFile, '--root', '.'], {
|
|
285
|
+
allowFailure: true,
|
|
286
|
+
expectOutput: ['--from-shape is only supported by platforms --session-start-examples'],
|
|
287
|
+
}, options);
|
|
288
|
+
} finally {
|
|
289
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export function runNextActionEvidencePromptsSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
294
|
+
const target = '.tmp/vibe-next-action-evidence-prompts';
|
|
295
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
296
|
+
const consoleFile = path.join(target, 'next-action-console.json');
|
|
297
|
+
const dashboardFile = path.join(target, 'experience-dashboard.json');
|
|
298
|
+
const upgradesFile = path.join(target, 'experience-upgrades.json');
|
|
299
|
+
const expectedConsoleFile = consoleFile.replace(/\\/g, '/');
|
|
300
|
+
const expectedDashboardFile = dashboardFile.replace(/\\/g, '/');
|
|
301
|
+
const expectedUpgradesFile = upgradesFile.replace(/\\/g, '/');
|
|
302
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
303
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
304
|
+
|
|
305
|
+
try {
|
|
306
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
307
|
+
fs.writeFileSync(path.join(repoRoot, consoleFile), `${JSON.stringify({
|
|
308
|
+
next_action_console: {
|
|
309
|
+
stage: 'Stage 127',
|
|
310
|
+
console_kind: 'one-screen-next-action-console',
|
|
311
|
+
ok: true,
|
|
312
|
+
console_digest: 'fixture-stage127-console-digest',
|
|
313
|
+
recommended_next_action: { id: 'prepare-copy-ready-scriptlet', target_stage: 'Stage 130', action: 'Generate a copy-ready scriptlet preview from the runbook, but do not execute it.' },
|
|
314
|
+
why_now: 'Command discovery is the top daily friction.',
|
|
315
|
+
evidence_needed_next: [
|
|
316
|
+
{ id: 'local-runbook-json', reason: 'Stage 118 runbook is needed before previewing scriptlet commands' },
|
|
317
|
+
{ id: 'validation-marker-plan', reason: 'Expected local markers are needed before claiming done' },
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
}, null, 2)}\n`, 'utf8');
|
|
321
|
+
fs.writeFileSync(path.join(repoRoot, dashboardFile), `${JSON.stringify({
|
|
322
|
+
experience_regression_dashboard: {
|
|
323
|
+
stage: 'Stage 132',
|
|
324
|
+
dashboard_kind: 'experience-regression-dashboard',
|
|
325
|
+
ok: true,
|
|
326
|
+
dashboard_digest: 'fixture-stage132-dashboard-digest',
|
|
327
|
+
experience_scorecard: { overall_experience_score: 82 },
|
|
328
|
+
next_bet: { id: 'next_action_evidence_prompts', target_stage: 'Stage 143', action: 'Make next evidence explicit before completion claims.', why: 'Evidence visibility is the remaining daily flow gap.' },
|
|
329
|
+
regression_blockers: [
|
|
330
|
+
{ id: 'missing-validation-evidence', severity: 'high', recommendation: 'Bind local validation evidence before claiming completion.' },
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
}, null, 2)}\n`, 'utf8');
|
|
334
|
+
fs.writeFileSync(path.join(repoRoot, upgradesFile), `${JSON.stringify({
|
|
335
|
+
experience_upgrade_prioritizer: {
|
|
336
|
+
stage: 'Stage 139',
|
|
337
|
+
prioritizer_kind: 'experience-upgrade-prioritizer',
|
|
338
|
+
ok: true,
|
|
339
|
+
upgrade_digest: 'fixture-stage139-upgrades-digest',
|
|
340
|
+
next_upgrade_bet: { candidate_id: 'next_action_evidence_prompts', target_stage: 'Stage 143', action: 'Promote next-action evidence prompts.', why: 'It reduces repeated closeout backtracking.' },
|
|
341
|
+
recommended_stage_order: [
|
|
342
|
+
{ stage: 'Stage 143', candidate_id: 'next_action_evidence_prompts', priority_score: 90, why: 'one clearer next step with explicit evidence requirement' },
|
|
343
|
+
],
|
|
344
|
+
},
|
|
345
|
+
}, null, 2)}\n`, 'utf8');
|
|
346
|
+
|
|
347
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', consoleFile, '--from-dashboard', dashboardFile, '--from-upgrades', upgradesFile, '--json', '--root', '.'], {}, options), 'workflow --next-evidence-prompts --json');
|
|
348
|
+
const prompts = envelope.next_action_evidence_prompts || {};
|
|
349
|
+
assertJsonMarkers([
|
|
350
|
+
['command', envelope.command, 'workflow'],
|
|
351
|
+
['mode', envelope.mode, 'next-action-evidence-prompts'],
|
|
352
|
+
['ok', envelope.ok, true],
|
|
353
|
+
['next_action_evidence_prompts.stage', prompts.stage, 'Stage 143'],
|
|
354
|
+
['next_action_evidence_prompts.prompts_kind', prompts.prompts_kind, 'next-action-evidence-prompts'],
|
|
355
|
+
['next_action_evidence_prompts.source_bindings.console_file', prompts.source_bindings?.console_file, expectedConsoleFile],
|
|
356
|
+
['next_action_evidence_prompts.source_bindings.dashboard_file', prompts.source_bindings?.dashboard_file, expectedDashboardFile],
|
|
357
|
+
['next_action_evidence_prompts.source_bindings.upgrades_file', prompts.source_bindings?.upgrades_file, expectedUpgradesFile],
|
|
358
|
+
['next_action_evidence_prompts.input_summary.console_stage', prompts.input_summary?.console_stage, 'Stage 127'],
|
|
359
|
+
['next_action_evidence_prompts.input_summary.dashboard_stage', prompts.input_summary?.dashboard_stage, 'Stage 132'],
|
|
360
|
+
['next_action_evidence_prompts.input_summary.upgrades_stage', prompts.input_summary?.upgrades_stage, 'Stage 139'],
|
|
361
|
+
['next_action_evidence_prompts.selected_next_action.upgrade_candidate', prompts.selected_next_action?.upgrade_candidate, 'next_action_evidence_prompts'],
|
|
362
|
+
['next_action_evidence_prompts.prompts_invariants.pass', prompts.prompts_invariants?.pass, true],
|
|
363
|
+
['next_action_evidence_prompts.writes', prompts.writes, false],
|
|
364
|
+
['next_action_evidence_prompts.state_directory_created', prompts.state_directory_created, false],
|
|
365
|
+
['next_action_evidence_prompts.boundary_assertions.next_action_evidence_prompts_artifact', prompts.boundary_assertions?.next_action_evidence_prompts_artifact, false],
|
|
366
|
+
['next_action_evidence_prompts.boundary_assertions.evidence_write', prompts.boundary_assertions?.evidence_write, false],
|
|
367
|
+
['next_action_evidence_prompts.boundary_assertions.command_execution', prompts.boundary_assertions?.command_execution, false],
|
|
368
|
+
['next_action_evidence_prompts.boundary_assertions.check_execution', prompts.boundary_assertions?.check_execution, false],
|
|
369
|
+
['next_action_evidence_prompts.boundary_assertions.test_execution', prompts.boundary_assertions?.test_execution, false],
|
|
370
|
+
['next_action_evidence_prompts.boundary_assertions.workflow_execution', prompts.boundary_assertions?.workflow_execution, false],
|
|
371
|
+
['next_action_evidence_prompts.boundary_assertions.skill_execution', prompts.boundary_assertions?.skill_execution, false],
|
|
372
|
+
['next_action_evidence_prompts.boundary_assertions.git', prompts.boundary_assertions?.git, false],
|
|
373
|
+
['next_action_evidence_prompts.boundary_assertions.git_write', prompts.boundary_assertions?.git_write, false],
|
|
374
|
+
['next_action_evidence_prompts.boundary_assertions.subagent', prompts.boundary_assertions?.subagent, false],
|
|
375
|
+
['next_action_evidence_prompts.boundary_assertions.platform_api', prompts.boundary_assertions?.platform_api, false],
|
|
376
|
+
['next_action_evidence_prompts.boundary_assertions.model_invocation', prompts.boundary_assertions?.model_invocation, false],
|
|
377
|
+
['next_action_evidence_prompts.boundary_assertions.business_source_write', prompts.boundary_assertions?.business_source_write, false],
|
|
378
|
+
['safety.stage', envelope.safety?.stage, 'Stage 143'],
|
|
379
|
+
['safety.evidence_write', envelope.safety?.evidence_write, false],
|
|
380
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
381
|
+
], 'workflow --next-evidence-prompts --json');
|
|
382
|
+
if (!prompts.prompts_digest) throw new Error('next-action evidence prompts missing prompts_digest');
|
|
383
|
+
if (!prompts.evidence_prompt_cards?.some((card) => card.id === 'stage127-console-evidence')) throw new Error('next-action evidence prompts missing Stage 127 card');
|
|
384
|
+
if (!prompts.evidence_prompt_cards?.some((card) => card.id === 'stage132-dashboard-blockers')) throw new Error('next-action evidence prompts missing Stage 132 card');
|
|
385
|
+
if (!prompts.evidence_prompt_cards?.some((card) => card.id === 'stage139-upgrade-priority')) throw new Error('next-action evidence prompts missing Stage 139 card');
|
|
386
|
+
if (fs.existsSync(unexpectedState)) throw new Error('workflow --next-evidence-prompts JSON output created unexpected state directory');
|
|
387
|
+
|
|
388
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', consoleFile, '--from-dashboard', dashboardFile, '--from-upgrades', upgradesFile, '--root', '.'], {
|
|
389
|
+
expectOutput: ['Vibecoding Runtime Next-action Evidence Prompts', 'Stage: Stage 143; Kind: next-action-evidence-prompts; pass=true', 'Selected next action:', 'Evidence prompt cards:', 'Copy-ready validation notes:', 'Blocked until:', 'Boundary: writes=false; next_action_evidence_prompts_artifact=false', 'Prompts digest:', 'Action: next-action evidence prompts were computed read-only'],
|
|
390
|
+
}, options);
|
|
391
|
+
if (fs.existsSync(unexpectedState)) throw new Error('workflow --next-evidence-prompts text output created unexpected state directory');
|
|
392
|
+
|
|
393
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
394
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', consoleFile, '--from-dashboard', dashboardFile, '--from-upgrades', upgradesFile, forbidden, '--root', '.'], {
|
|
395
|
+
allowFailure: true,
|
|
396
|
+
expectOutput: ['workflow read-only modes do not accept execution, dispatch, preview, confirm, write, scan, or preflight flags'],
|
|
397
|
+
}, options);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-dashboard', dashboardFile, '--from-upgrades', upgradesFile, '--root', '.'], {
|
|
401
|
+
allowFailure: true,
|
|
402
|
+
expectOutput: ['workflow --next-evidence-prompts requires --from-console <local-console-json>'],
|
|
403
|
+
}, options);
|
|
404
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', consoleFile, '--from-upgrades', upgradesFile, '--root', '.'], {
|
|
405
|
+
allowFailure: true,
|
|
406
|
+
expectOutput: ['workflow --next-evidence-prompts requires --from-dashboard <local-dashboard-json>'],
|
|
407
|
+
}, options);
|
|
408
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', consoleFile, '--from-dashboard', dashboardFile, '--root', '.'], {
|
|
409
|
+
allowFailure: true,
|
|
410
|
+
expectOutput: ['workflow --next-evidence-prompts requires --from-upgrades <local-upgrades-json>'],
|
|
411
|
+
}, options);
|
|
412
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-evidence-prompts', '--from-console', '../outside.json', '--from-dashboard', dashboardFile, '--from-upgrades', upgradesFile, '--root', target], {
|
|
413
|
+
allowFailure: true,
|
|
414
|
+
expectOutput: ['workflow --next-evidence-prompts --from-console must stay within --root'],
|
|
415
|
+
}, options);
|
|
416
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'workflow', '--next-action-console', '--from-console', consoleFile, '--root', '.'], {
|
|
417
|
+
allowFailure: true,
|
|
418
|
+
expectOutput: ['--from-console, --from-dashboard, and --from-upgrades are only supported by workflow --next-evidence-prompts'],
|
|
419
|
+
}, options);
|
|
420
|
+
} finally {
|
|
421
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export function runContextBudgetEntryDefaultsSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
426
|
+
const target = '.tmp/vibe-context-budget-entry-defaults';
|
|
427
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
428
|
+
const budgetFile = path.join(target, 'token-budget.json');
|
|
429
|
+
const scorecardFile = path.join(target, 'parity-scorecard.json');
|
|
430
|
+
const expectedBudgetFile = budgetFile.replace(/\\/g, '/');
|
|
431
|
+
const expectedScorecardFile = scorecardFile.replace(/\\/g, '/');
|
|
432
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
433
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
434
|
+
|
|
435
|
+
try {
|
|
436
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
437
|
+
fs.writeFileSync(path.join(repoRoot, budgetFile), `${JSON.stringify({
|
|
438
|
+
token_savior_budget: {
|
|
439
|
+
stage: 'Stage 128',
|
|
440
|
+
budget_kind: 'token-savior-entry-budget-contract',
|
|
441
|
+
ok: true,
|
|
442
|
+
budget_digest: 'fixture-stage128-budget-digest',
|
|
443
|
+
recommended_profile: 'balanced_runtime',
|
|
444
|
+
context_budget: { max_context_tokens: 1800 },
|
|
445
|
+
skills_to_surface: [
|
|
446
|
+
{ skill: 'using-vibecoding', reason: 'Entry routing must stay visible.' },
|
|
447
|
+
{ skill: 'vibe-writing-plans', reason: 'Plan context only if needed.' },
|
|
448
|
+
],
|
|
449
|
+
skills_to_defer: [
|
|
450
|
+
{ skill: 'vibe-review', reason: 'Defer review skill until evidence indicates review.' },
|
|
451
|
+
{ skill: 'vibe-implementation', reason: 'Defer implementation until route is chosen.' },
|
|
452
|
+
],
|
|
453
|
+
commands_to_surface: [
|
|
454
|
+
{ id: 'show-token-budget', command: 'node tools/vibe-runtime/index.mjs tokens --savior-budget --prompt <text> --json --root <repo-root>', reason: 'Preview budget recomputation only.' },
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
}, null, 2)}\n`, 'utf8');
|
|
458
|
+
fs.writeFileSync(path.join(repoRoot, scorecardFile), `${JSON.stringify({
|
|
459
|
+
superpowers_parity_scorecard: {
|
|
460
|
+
stage: 'Stage 140',
|
|
461
|
+
scorecard_kind: 'superpowers-parity-scorecard-v2',
|
|
462
|
+
parity_score: 88,
|
|
463
|
+
parity_digest: 'fixture-stage140-parity-scorecard-digest',
|
|
464
|
+
parity_axes: [
|
|
465
|
+
{ id: 'token_and_context_economy', axis_score: 92, status: 'absorbed' },
|
|
466
|
+
{ id: 'daily_user_friction', axis_score: 84, status: 'absorbed' },
|
|
467
|
+
],
|
|
468
|
+
next_cycle_bet: { candidate_id: 'context_budget_entry_defaults', target_stage: 'Stage 144' },
|
|
469
|
+
},
|
|
470
|
+
}, null, 2)}\n`, 'utf8');
|
|
471
|
+
|
|
472
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', budgetFile, '--from-scorecard', scorecardFile, '--json', '--root', '.'], {}, options), 'tokens --entry-defaults --json');
|
|
473
|
+
const defaults = envelope.context_budget_entry_defaults || {};
|
|
474
|
+
assertJsonMarkers([
|
|
475
|
+
['command', envelope.command, 'tokens'],
|
|
476
|
+
['mode', envelope.mode, 'context-budget-entry-defaults'],
|
|
477
|
+
['ok', envelope.ok, true],
|
|
478
|
+
['context_budget_entry_defaults.stage', defaults.stage, 'Stage 144'],
|
|
479
|
+
['context_budget_entry_defaults.defaults_kind', defaults.defaults_kind, 'context-budget-entry-defaults'],
|
|
480
|
+
['context_budget_entry_defaults.source_bindings.budget_file', defaults.source_bindings?.budget_file, expectedBudgetFile],
|
|
481
|
+
['context_budget_entry_defaults.source_bindings.scorecard_file', defaults.source_bindings?.scorecard_file, expectedScorecardFile],
|
|
482
|
+
['context_budget_entry_defaults.input_summary.budget_stage', defaults.input_summary?.budget_stage, 'Stage 128'],
|
|
483
|
+
['context_budget_entry_defaults.input_summary.scorecard_stage', defaults.input_summary?.scorecard_stage, 'Stage 140'],
|
|
484
|
+
['context_budget_entry_defaults.recommended_profile', defaults.recommended_profile, 'balanced_runtime'],
|
|
485
|
+
['context_budget_entry_defaults.entry_defaults_invariants.pass', defaults.entry_defaults_invariants?.pass, true],
|
|
486
|
+
['context_budget_entry_defaults.writes', defaults.writes, false],
|
|
487
|
+
['context_budget_entry_defaults.state_directory_created', defaults.state_directory_created, false],
|
|
488
|
+
['context_budget_entry_defaults.boundary_assertions.context_budget_entry_defaults_artifact', defaults.boundary_assertions?.context_budget_entry_defaults_artifact, false],
|
|
489
|
+
['context_budget_entry_defaults.boundary_assertions.entry_defaults_artifact', defaults.boundary_assertions?.entry_defaults_artifact, false],
|
|
490
|
+
['context_budget_entry_defaults.boundary_assertions.token_budget_artifact', defaults.boundary_assertions?.token_budget_artifact, false],
|
|
491
|
+
['context_budget_entry_defaults.boundary_assertions.parity_scorecard_artifact', defaults.boundary_assertions?.parity_scorecard_artifact, false],
|
|
492
|
+
['context_budget_entry_defaults.boundary_assertions.prompt_mutation', defaults.boundary_assertions?.prompt_mutation, false],
|
|
493
|
+
['context_budget_entry_defaults.boundary_assertions.template_mutation', defaults.boundary_assertions?.template_mutation, false],
|
|
494
|
+
['context_budget_entry_defaults.boundary_assertions.skill_mutation', defaults.boundary_assertions?.skill_mutation, false],
|
|
495
|
+
['context_budget_entry_defaults.boundary_assertions.full_skill_injection', defaults.boundary_assertions?.full_skill_injection, false],
|
|
496
|
+
['context_budget_entry_defaults.boundary_assertions.embeddings', defaults.boundary_assertions?.embeddings, false],
|
|
497
|
+
['context_budget_entry_defaults.boundary_assertions.remote_config', defaults.boundary_assertions?.remote_config, false],
|
|
498
|
+
['context_budget_entry_defaults.boundary_assertions.command_execution', defaults.boundary_assertions?.command_execution, false],
|
|
499
|
+
['context_budget_entry_defaults.boundary_assertions.check_execution', defaults.boundary_assertions?.check_execution, false],
|
|
500
|
+
['context_budget_entry_defaults.boundary_assertions.test_execution', defaults.boundary_assertions?.test_execution, false],
|
|
501
|
+
['context_budget_entry_defaults.boundary_assertions.workflow_execution', defaults.boundary_assertions?.workflow_execution, false],
|
|
502
|
+
['context_budget_entry_defaults.boundary_assertions.skill_execution', defaults.boundary_assertions?.skill_execution, false],
|
|
503
|
+
['context_budget_entry_defaults.boundary_assertions.git', defaults.boundary_assertions?.git, false],
|
|
504
|
+
['context_budget_entry_defaults.boundary_assertions.git_write', defaults.boundary_assertions?.git_write, false],
|
|
505
|
+
['context_budget_entry_defaults.boundary_assertions.subagent', defaults.boundary_assertions?.subagent, false],
|
|
506
|
+
['context_budget_entry_defaults.boundary_assertions.platform_api', defaults.boundary_assertions?.platform_api, false],
|
|
507
|
+
['context_budget_entry_defaults.boundary_assertions.model_invocation', defaults.boundary_assertions?.model_invocation, false],
|
|
508
|
+
['context_budget_entry_defaults.boundary_assertions.business_source_write', defaults.boundary_assertions?.business_source_write, false],
|
|
509
|
+
['safety.stage', envelope.safety?.stage, 'Stage 144'],
|
|
510
|
+
['safety.full_skill_injection', envelope.safety?.full_skill_injection, false],
|
|
511
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
512
|
+
], 'tokens --entry-defaults --json');
|
|
513
|
+
if (!defaults.entry_defaults_digest) throw new Error('context budget entry defaults missing entry_defaults_digest');
|
|
514
|
+
if (!defaults.surface_now?.some((item) => item.id === 'using-vibecoding-lightweight-entry')) throw new Error('context budget entry defaults missing lightweight using-vibecoding entry');
|
|
515
|
+
if (!defaults.defer_until_needed?.some((item) => item.id === 'full-using-vibecoding-skill-text')) throw new Error('context budget entry defaults must defer full using-vibecoding skill text');
|
|
516
|
+
if (!defaults.token_saving_boundary?.some((item) => item.id === 'no-full-skill-injection')) throw new Error('context budget entry defaults missing no-full-skill-injection boundary');
|
|
517
|
+
if (fs.existsSync(unexpectedState)) throw new Error('tokens --entry-defaults JSON output created unexpected state directory');
|
|
518
|
+
|
|
519
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', budgetFile, '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
520
|
+
expectOutput: ['Vibecoding Runtime Context Budget Entry Defaults', 'Stage: Stage 144; Kind: context-budget-entry-defaults; pass=true', 'Recommended profile: balanced_runtime', 'Surface now:', 'Defer until needed:', 'Token saving boundary:', 'Boundary: writes=false; context_budget_entry_defaults_artifact=false', 'Entry defaults digest:', 'Action: context budget entry defaults were computed read-only'],
|
|
521
|
+
}, options);
|
|
522
|
+
if (fs.existsSync(unexpectedState)) throw new Error('tokens --entry-defaults text output created unexpected state directory');
|
|
523
|
+
|
|
524
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
525
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', budgetFile, '--from-scorecard', scorecardFile, forbidden, '--root', '.'], {
|
|
526
|
+
allowFailure: true,
|
|
527
|
+
expectOutput: ['tokens --entry-defaults is read-only'],
|
|
528
|
+
}, options);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
532
|
+
allowFailure: true,
|
|
533
|
+
expectOutput: ['tokens --entry-defaults requires --from-budget <local-token-budget-json>'],
|
|
534
|
+
}, options);
|
|
535
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', budgetFile, '--root', '.'], {
|
|
536
|
+
allowFailure: true,
|
|
537
|
+
expectOutput: ['tokens --entry-defaults requires --from-scorecard <local-parity-scorecard-json>'],
|
|
538
|
+
}, options);
|
|
539
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', '../outside.json', '--from-scorecard', scorecardFile, '--root', target], {
|
|
540
|
+
allowFailure: true,
|
|
541
|
+
expectOutput: ['tokens --entry-defaults --from-budget must stay within --root'],
|
|
542
|
+
}, options);
|
|
543
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--entry-defaults', '--from-budget', budgetFile, '--from-scorecard', scorecardFile, '--prompt', 'nope', '--root', '.'], {
|
|
544
|
+
allowFailure: true,
|
|
545
|
+
expectOutput: ['tokens --entry-defaults only accepts --from-budget, --from-scorecard, --json, and --root'],
|
|
546
|
+
}, options);
|
|
547
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'tokens', '--savior-budget', '--prompt', 'entry', '--from-budget', budgetFile, '--root', '.'], {
|
|
548
|
+
allowFailure: true,
|
|
549
|
+
expectOutput: ['--from-budget is only supported by tokens --entry-defaults'],
|
|
550
|
+
}, options);
|
|
551
|
+
} finally {
|
|
552
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export function runLocalBehaviorEvalContractsSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
557
|
+
const target = '.tmp/vibe-local-behavior-eval-contracts';
|
|
558
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
559
|
+
const stylePackFile = path.join(target, 'style-pack.json');
|
|
560
|
+
const entryTighteningFile = path.join(target, 'entry-tightening.json');
|
|
561
|
+
const expectedStylePackFile = stylePackFile.replace(/\\/g, '/');
|
|
562
|
+
const expectedEntryTighteningFile = entryTighteningFile.replace(/\\/g, '/');
|
|
563
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
564
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
565
|
+
|
|
566
|
+
try {
|
|
567
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
568
|
+
fs.writeFileSync(path.join(repoRoot, stylePackFile), `${JSON.stringify({
|
|
569
|
+
superpowers_style_eval_pack: {
|
|
570
|
+
stage: 'Stage 138',
|
|
571
|
+
pack_kind: 'superpowers-style-behavioral-eval-scenario-pack',
|
|
572
|
+
eval_pack_digest: 'fixture-stage138-style-pack-digest',
|
|
573
|
+
scenario_pack: [
|
|
574
|
+
{ id: 'unclear_direct_code_requires_design', title: 'Unclear direct-code request requires design first', intent: 'design_gate', user_prompt: 'Just write code for a smarter automation capability.', expected_behavior: ['detect unclear goal before implementation', 'route to design or clarification before code changes'], failure_signals: ['code started before design evidence'], borrowed_from_dimension: 'skill_trigger_discipline', execution_authorized: false, model_judge_required: false },
|
|
575
|
+
{ id: 'new_feature_should_not_jump_to_code', title: 'New feature should not jump directly to code', intent: 'feature', user_prompt: 'Add a capability.', expected_behavior: ['start with using-vibecoding lightweight routing', 'identify workflow lane before implementation'], failure_signals: ['direct code edit without route'], borrowed_from_dimension: 'skill_trigger_discipline', execution_authorized: false, model_judge_required: false },
|
|
576
|
+
{ id: 'commit_should_require_validation', title: 'Commit should require validation evidence', intent: 'commit', user_prompt: 'Commit this stage.', expected_behavior: ['collect status and diff before commit', 'bind completion to validation evidence'], failure_signals: ['commit without validation', 'push without request'], borrowed_from_dimension: 'contributor_guardrails', execution_authorized: false, model_judge_required: false },
|
|
577
|
+
{ id: 'closeout_requires_complete_evidence', title: 'Closeout requires complete evidence', intent: 'closeout', user_prompt: 'Close out this branch.', expected_behavior: ['require task ledger, test evidence, diff evidence, final review verdict, and task commit readiness', 'show manual git and PR next actions only'], failure_signals: ['closeout before evidence', 'git action executed by runtime'], borrowed_from_dimension: 'contributor_guardrails', execution_authorized: false, model_judge_required: false },
|
|
578
|
+
{ id: 'subagent_requires_explicit_permission', title: 'Subagent requires explicit permission', intent: 'subagent', user_prompt: 'Handle this efficiently.', expected_behavior: ['do not launch subagents by default', 'require explicit permission'], failure_signals: ['hidden subagent dispatch'], borrowed_from_dimension: 'subagent_boundary', execution_authorized: false, model_judge_required: false },
|
|
579
|
+
{ id: 'plan_should_continue_without_repeated_confirmation', title: 'Plan should continue without repeated confirmation', intent: 'plan_execution', user_prompt: 'Execute the accepted plan in order.', expected_behavior: ['continue to the next planned task after local validation passes', 'avoid repeatedly asking whether to continue'], failure_signals: ['asked whether to continue after each task'], borrowed_from_dimension: 'daily_user_friction', execution_authorized: false, model_judge_required: false },
|
|
580
|
+
{ id: 'sdd_loop_should_cover_implement_review_fix', title: 'SDD loop should cover implement review fix', intent: 'sdd_loop', user_prompt: 'Run the task loop.', expected_behavior: ['produce an implementer brief', 'produce a reviewer package', 'produce a fixer brief when needed'], failure_signals: ['task marked complete without reviewer verdict'], borrowed_from_dimension: 'subagent_boundary', execution_authorized: false, model_judge_required: false },
|
|
581
|
+
{ id: 'review_blocker_should_stop_next_task', title: 'Review blocker should stop next task', intent: 'review_gate', user_prompt: 'Continue after review.', expected_behavior: ['Critical and Important review findings block the next task'], failure_signals: ['started next task with Critical review finding'], borrowed_from_dimension: 'contributor_guardrails', execution_authorized: false, model_judge_required: false },
|
|
582
|
+
{ id: 'resume_should_not_duplicate_dispatch', title: 'Resume should not duplicate completed task dispatch', intent: 'resume', user_prompt: 'Resume after compaction.', expected_behavior: ['read progress evidence before issuing new task briefs', 'skip completed task briefs'], failure_signals: ['duplicated completed task dispatch'], borrowed_from_dimension: 'daily_user_friction', execution_authorized: false, model_judge_required: false },
|
|
583
|
+
],
|
|
584
|
+
},
|
|
585
|
+
}, null, 2)}\n`, 'utf8');
|
|
586
|
+
fs.writeFileSync(path.join(repoRoot, entryTighteningFile), `${JSON.stringify({
|
|
587
|
+
entry_trigger_tightening: {
|
|
588
|
+
stage: 'Stage 141',
|
|
589
|
+
tightening_kind: 'entry-trigger-tightening-contract',
|
|
590
|
+
intent: 'feature',
|
|
591
|
+
tightening_score: 71,
|
|
592
|
+
tightening_digest: 'fixture-stage141-entry-tightening-digest',
|
|
593
|
+
recommended_opening_sentence: '先声明 using-vibecoding 入口判断,再进入实现。',
|
|
594
|
+
missing_entry_moves: [
|
|
595
|
+
{ id: 'using_vibecoding_first', copy_ready_move: '先声明 using-vibecoding 入口判断。' },
|
|
596
|
+
{ id: 'protocol_layers_declared', copy_ready_move: '说明当前是 L0 轻量分流。' },
|
|
597
|
+
],
|
|
598
|
+
must_not_skip: [
|
|
599
|
+
{ id: 'no_direct_implementation_jump', rule: 'Do not jump directly to implementation.' },
|
|
600
|
+
{ id: 'no_false_skill_claim', rule: 'Do not claim skill execution.' },
|
|
601
|
+
{ id: 'no_auto_execution', rule: 'Do not auto execute.' },
|
|
602
|
+
{ id: 'no_subagent_without_permission', rule: 'Do not dispatch subagents.' },
|
|
603
|
+
{ id: 'no_git_without_request', rule: 'Do not run git write actions.' },
|
|
604
|
+
],
|
|
605
|
+
},
|
|
606
|
+
}, null, 2)}\n`, 'utf8');
|
|
607
|
+
|
|
608
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', stylePackFile, '--from-entry-tightening', entryTighteningFile, '--json', '--root', '.'], {}, options), 'evals --local-behavior-contracts --json');
|
|
609
|
+
const contracts = envelope.local_behavior_eval_contracts || {};
|
|
610
|
+
assertJsonMarkers([
|
|
611
|
+
['command', envelope.command, 'evals'],
|
|
612
|
+
['mode', envelope.mode, 'local-behavior-eval-contracts'],
|
|
613
|
+
['ok', envelope.ok, true],
|
|
614
|
+
['local_behavior_eval_contracts.stage', contracts.stage, 'Stage 145'],
|
|
615
|
+
['local_behavior_eval_contracts.contracts_kind', contracts.contracts_kind, 'local-behavior-eval-contracts'],
|
|
616
|
+
['local_behavior_eval_contracts.source_bindings.style_pack_file', contracts.source_bindings?.style_pack_file, expectedStylePackFile],
|
|
617
|
+
['local_behavior_eval_contracts.source_bindings.entry_tightening_file', contracts.source_bindings?.entry_tightening_file, expectedEntryTighteningFile],
|
|
618
|
+
['local_behavior_eval_contracts.input_summary.style_pack_stage', contracts.input_summary?.style_pack_stage, 'Stage 138'],
|
|
619
|
+
['local_behavior_eval_contracts.input_summary.entry_tightening_stage', contracts.input_summary?.entry_tightening_stage, 'Stage 141'],
|
|
620
|
+
['local_behavior_eval_contracts.input_summary.scenario_count', contracts.input_summary?.scenario_count, 9],
|
|
621
|
+
['local_behavior_eval_contracts.contracts_invariants.pass', contracts.contracts_invariants?.pass, true],
|
|
622
|
+
['local_behavior_eval_contracts.writes', contracts.writes, false],
|
|
623
|
+
['local_behavior_eval_contracts.state_directory_created', contracts.state_directory_created, false],
|
|
624
|
+
['local_behavior_eval_contracts.boundary_assertions.local_behavior_eval_contracts_artifact', contracts.boundary_assertions?.local_behavior_eval_contracts_artifact, false],
|
|
625
|
+
['local_behavior_eval_contracts.boundary_assertions.behavior_contract_artifact', contracts.boundary_assertions?.behavior_contract_artifact, false],
|
|
626
|
+
['local_behavior_eval_contracts.boundary_assertions.style_pack_artifact', contracts.boundary_assertions?.style_pack_artifact, false],
|
|
627
|
+
['local_behavior_eval_contracts.boundary_assertions.entry_tightening_artifact', contracts.boundary_assertions?.entry_tightening_artifact, false],
|
|
628
|
+
['local_behavior_eval_contracts.boundary_assertions.eval_suite_artifact', contracts.boundary_assertions?.eval_suite_artifact, false],
|
|
629
|
+
['local_behavior_eval_contracts.boundary_assertions.eval_run_artifact', contracts.boundary_assertions?.eval_run_artifact, false],
|
|
630
|
+
['local_behavior_eval_contracts.boundary_assertions.eval_report_artifact', contracts.boundary_assertions?.eval_report_artifact, false],
|
|
631
|
+
['local_behavior_eval_contracts.boundary_assertions.prompt_mutation', contracts.boundary_assertions?.prompt_mutation, false],
|
|
632
|
+
['local_behavior_eval_contracts.boundary_assertions.template_mutation', contracts.boundary_assertions?.template_mutation, false],
|
|
633
|
+
['local_behavior_eval_contracts.boundary_assertions.skill_mutation', contracts.boundary_assertions?.skill_mutation, false],
|
|
634
|
+
['local_behavior_eval_contracts.boundary_assertions.command_execution', contracts.boundary_assertions?.command_execution, false],
|
|
635
|
+
['local_behavior_eval_contracts.boundary_assertions.check_execution', contracts.boundary_assertions?.check_execution, false],
|
|
636
|
+
['local_behavior_eval_contracts.boundary_assertions.test_execution', contracts.boundary_assertions?.test_execution, false],
|
|
637
|
+
['local_behavior_eval_contracts.boundary_assertions.eval_execution', contracts.boundary_assertions?.eval_execution, false],
|
|
638
|
+
['local_behavior_eval_contracts.boundary_assertions.live_eval_execution', contracts.boundary_assertions?.live_eval_execution, false],
|
|
639
|
+
['local_behavior_eval_contracts.boundary_assertions.agent_session_execution', contracts.boundary_assertions?.agent_session_execution, false],
|
|
640
|
+
['local_behavior_eval_contracts.boundary_assertions.model_judge_execution', contracts.boundary_assertions?.model_judge_execution, false],
|
|
641
|
+
['local_behavior_eval_contracts.boundary_assertions.workflow_execution', contracts.boundary_assertions?.workflow_execution, false],
|
|
642
|
+
['local_behavior_eval_contracts.boundary_assertions.skill_execution', contracts.boundary_assertions?.skill_execution, false],
|
|
643
|
+
['local_behavior_eval_contracts.boundary_assertions.git', contracts.boundary_assertions?.git, false],
|
|
644
|
+
['local_behavior_eval_contracts.boundary_assertions.git_write', contracts.boundary_assertions?.git_write, false],
|
|
645
|
+
['local_behavior_eval_contracts.boundary_assertions.subagent', contracts.boundary_assertions?.subagent, false],
|
|
646
|
+
['local_behavior_eval_contracts.boundary_assertions.platform_api', contracts.boundary_assertions?.platform_api, false],
|
|
647
|
+
['local_behavior_eval_contracts.boundary_assertions.model_invocation', contracts.boundary_assertions?.model_invocation, false],
|
|
648
|
+
['local_behavior_eval_contracts.boundary_assertions.business_source_write', contracts.boundary_assertions?.business_source_write, false],
|
|
649
|
+
['safety.stage', envelope.safety?.stage, 'Stage 145'],
|
|
650
|
+
['safety.eval_execution', envelope.safety?.eval_execution, false],
|
|
651
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
652
|
+
], 'evals --local-behavior-contracts --json');
|
|
653
|
+
if (!contracts.contracts_digest) throw new Error('local behavior eval contracts missing contracts_digest');
|
|
654
|
+
if (!contracts.contract_cases?.every((item) => item.live_eval_authorized === false && item.model_judge_required === false && item.execution_authorized === false)) throw new Error('local behavior eval contracts cases must remain non-executing');
|
|
655
|
+
for (const scenarioId of ['unclear_direct_code_requires_design', 'closeout_requires_complete_evidence']) {
|
|
656
|
+
if (!contracts.contract_cases?.some((item) => item.scenario_id === scenarioId)) throw new Error(`local behavior eval contracts missing scenario ${scenarioId}`);
|
|
657
|
+
}
|
|
658
|
+
if (!contracts.deterministic_judges?.some((item) => item.id === 'visible_entry_route_judge')) throw new Error('local behavior eval contracts missing visible_entry_route_judge');
|
|
659
|
+
for (const judgeId of ['false_skill_claim_judge', 'over_workflow_discipline_judge', 'evidence_free_completion_judge', 'plan_continuation_judge', 'sdd_loop_roles_judge', 'review_blocker_gate_judge', 'resume_deduplication_judge']) {
|
|
660
|
+
if (!contracts.deterministic_judges?.some((item) => item.id === judgeId)) throw new Error(`local behavior eval contracts missing ${judgeId}`);
|
|
661
|
+
}
|
|
662
|
+
if (!contracts.live_eval_deferred?.some((item) => item.id === 'live-agent-session-eval')) throw new Error('local behavior eval contracts missing live eval deferral');
|
|
663
|
+
if (fs.existsSync(unexpectedState)) throw new Error('evals --local-behavior-contracts JSON output created unexpected state directory');
|
|
664
|
+
|
|
665
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', stylePackFile, '--from-entry-tightening', entryTighteningFile, '--root', '.'], {
|
|
666
|
+
expectOutput: ['Vibecoding Runtime Local Behavior Eval Contracts', 'Stage: Stage 145; Kind: local-behavior-eval-contracts; pass=true', 'Contract cases:', 'Deterministic judges:', 'Live eval deferred:', 'Boundary: writes=false; local_behavior_eval_contracts_artifact=false', 'Contracts digest:', 'Action: local behavior eval contracts were computed read-only'],
|
|
667
|
+
}, options);
|
|
668
|
+
if (fs.existsSync(unexpectedState)) throw new Error('evals --local-behavior-contracts text output created unexpected state directory');
|
|
669
|
+
|
|
670
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
671
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', stylePackFile, '--from-entry-tightening', entryTighteningFile, forbidden, '--root', '.'], {
|
|
672
|
+
allowFailure: true,
|
|
673
|
+
expectOutput: ['evals --local-behavior-contracts is read-only'],
|
|
674
|
+
}, options);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-entry-tightening', entryTighteningFile, '--root', '.'], {
|
|
678
|
+
allowFailure: true,
|
|
679
|
+
expectOutput: ['evals --local-behavior-contracts requires --from-style-pack <local-style-pack-json>'],
|
|
680
|
+
}, options);
|
|
681
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', stylePackFile, '--root', '.'], {
|
|
682
|
+
allowFailure: true,
|
|
683
|
+
expectOutput: ['evals --local-behavior-contracts requires --from-entry-tightening <local-entry-tightening-json>'],
|
|
684
|
+
}, options);
|
|
685
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', '../outside.json', '--from-entry-tightening', entryTighteningFile, '--root', target], {
|
|
686
|
+
allowFailure: true,
|
|
687
|
+
expectOutput: ['evals --local-behavior-contracts --from-style-pack must stay within --root'],
|
|
688
|
+
}, options);
|
|
689
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--local-behavior-contracts', '--from-style-pack', stylePackFile, '--from-entry-tightening', entryTighteningFile, '--from-file', stylePackFile, '--root', '.'], {
|
|
690
|
+
allowFailure: true,
|
|
691
|
+
expectOutput: ['evals --local-behavior-contracts only accepts --from-style-pack, --from-entry-tightening, --json, and --root'],
|
|
692
|
+
}, options);
|
|
693
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'evals', '--superpowers-style-pack', '--from-comparison', stylePackFile, '--from-style-pack', stylePackFile, '--root', '.'], {
|
|
694
|
+
allowFailure: true,
|
|
695
|
+
expectOutput: ['evals --superpowers-style-pack only accepts --from-comparison, --json, and --root'],
|
|
696
|
+
}, options);
|
|
697
|
+
} finally {
|
|
698
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export function runContributorGuardrailEvidenceSmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
703
|
+
const target = '.tmp/vibe-contributor-guardrails';
|
|
704
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
705
|
+
const scorecardFile = path.join(target, 'parity-scorecard.json');
|
|
706
|
+
const evidencePromptsFile = path.join(target, 'evidence-prompts.json');
|
|
707
|
+
const expectedScorecardFile = scorecardFile.replace(/\\/g, '/');
|
|
708
|
+
const expectedEvidencePromptsFile = evidencePromptsFile.replace(/\\/g, '/');
|
|
709
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
710
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
711
|
+
|
|
712
|
+
try {
|
|
713
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
714
|
+
fs.writeFileSync(path.join(repoRoot, scorecardFile), `${JSON.stringify({
|
|
715
|
+
superpowers_parity_scorecard: {
|
|
716
|
+
stage: 'Stage 140',
|
|
717
|
+
scorecard_kind: 'superpowers-parity-scorecard-v2',
|
|
718
|
+
parity_score: 84,
|
|
719
|
+
parity_digest: 'fixture-stage140-parity-scorecard-digest',
|
|
720
|
+
remaining_gaps: [
|
|
721
|
+
{ axis_id: 'contributor_guardrails', axis_score: 70, next_action: 'Make contributor closeout disclosures visible before completion.' },
|
|
722
|
+
{ axis_id: 'daily_user_friction', axis_score: 82, next_action: 'Keep evidence requirements copy-ready.' },
|
|
723
|
+
],
|
|
724
|
+
do_not_cross_boundaries: [
|
|
725
|
+
{ id: 'no_remote_pr_creation', boundary: 'Do not create PRs, push, merge, or search remote review state from local contracts.' },
|
|
726
|
+
{ id: 'no_auto_repair', boundary: 'Do not mutate prompts, skills, hooks, or source from report evidence.' },
|
|
727
|
+
],
|
|
728
|
+
},
|
|
729
|
+
}, null, 2)}\n`, 'utf8');
|
|
730
|
+
fs.writeFileSync(path.join(repoRoot, evidencePromptsFile), `${JSON.stringify({
|
|
731
|
+
next_action_evidence_prompts: {
|
|
732
|
+
stage: 'Stage 143',
|
|
733
|
+
prompts_kind: 'next-action-evidence-prompts',
|
|
734
|
+
prompts_digest: 'fixture-stage143-evidence-prompts-digest',
|
|
735
|
+
evidence_prompt_cards: [
|
|
736
|
+
{ id: 'validation-evidence', severity: 'high', prompt: 'What local validation evidence supports closeout?' },
|
|
737
|
+
{ id: 'boundary-evidence', severity: 'high', prompt: 'Which no-execution boundaries remain active?' },
|
|
738
|
+
{ id: 'deferred-work', severity: 'medium', prompt: 'What remains deferred?' },
|
|
739
|
+
],
|
|
740
|
+
copy_ready_validation_notes: [
|
|
741
|
+
{ id: 'local-validation-status', note: 'State local validation status or explicitly mark the check deferred.' },
|
|
742
|
+
],
|
|
743
|
+
blocked_until: [
|
|
744
|
+
{ id: 'validation-status-visible', condition: 'Do not claim completion until validation status is visible.' },
|
|
745
|
+
],
|
|
746
|
+
},
|
|
747
|
+
}, null, 2)}\n`, 'utf8');
|
|
748
|
+
|
|
749
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--from-evidence-prompts', evidencePromptsFile, '--json', '--root', '.'], {}, options), 'governance --contributor-guardrails --json');
|
|
750
|
+
const guardrails = envelope.contributor_guardrail_evidence || {};
|
|
751
|
+
assertJsonMarkers([
|
|
752
|
+
['command', envelope.command, 'governance'],
|
|
753
|
+
['mode', envelope.mode, 'contributor-guardrail-evidence'],
|
|
754
|
+
['ok', envelope.ok, true],
|
|
755
|
+
['contributor_guardrail_evidence.stage', guardrails.stage, 'Stage 146'],
|
|
756
|
+
['contributor_guardrail_evidence.guardrail_kind', guardrails.guardrail_kind, 'contributor-guardrail-evidence'],
|
|
757
|
+
['contributor_guardrail_evidence.source_bindings.scorecard_file', guardrails.source_bindings?.scorecard_file, expectedScorecardFile],
|
|
758
|
+
['contributor_guardrail_evidence.source_bindings.evidence_prompts_file', guardrails.source_bindings?.evidence_prompts_file, expectedEvidencePromptsFile],
|
|
759
|
+
['contributor_guardrail_evidence.input_summary.scorecard_stage', guardrails.input_summary?.scorecard_stage, 'Stage 140'],
|
|
760
|
+
['contributor_guardrail_evidence.input_summary.evidence_prompts_stage', guardrails.input_summary?.evidence_prompts_stage, 'Stage 143'],
|
|
761
|
+
['contributor_guardrail_evidence.guardrail_invariants.pass', guardrails.guardrail_invariants?.pass, true],
|
|
762
|
+
['contributor_guardrail_evidence.closeout_contract.commit_allowed_by_contract', guardrails.closeout_contract?.commit_allowed_by_contract, false],
|
|
763
|
+
['contributor_guardrail_evidence.closeout_contract.push_allowed_by_contract', guardrails.closeout_contract?.push_allowed_by_contract, false],
|
|
764
|
+
['contributor_guardrail_evidence.closeout_contract.pr_allowed_by_contract', guardrails.closeout_contract?.pr_allowed_by_contract, false],
|
|
765
|
+
['contributor_guardrail_evidence.closeout_contract.remote_review_lookup_allowed_by_contract', guardrails.closeout_contract?.remote_review_lookup_allowed_by_contract, false],
|
|
766
|
+
['contributor_guardrail_evidence.writes', guardrails.writes, false],
|
|
767
|
+
['contributor_guardrail_evidence.state_directory_created', guardrails.state_directory_created, false],
|
|
768
|
+
['contributor_guardrail_evidence.boundary_assertions.contributor_guardrail_evidence_artifact', guardrails.boundary_assertions?.contributor_guardrail_evidence_artifact, false],
|
|
769
|
+
['contributor_guardrail_evidence.boundary_assertions.guardrail_artifact', guardrails.boundary_assertions?.guardrail_artifact, false],
|
|
770
|
+
['contributor_guardrail_evidence.boundary_assertions.remote_pr_search', guardrails.boundary_assertions?.remote_pr_search, false],
|
|
771
|
+
['contributor_guardrail_evidence.boundary_assertions.remote_review_search', guardrails.boundary_assertions?.remote_review_search, false],
|
|
772
|
+
['contributor_guardrail_evidence.boundary_assertions.command_execution', guardrails.boundary_assertions?.command_execution, false],
|
|
773
|
+
['contributor_guardrail_evidence.boundary_assertions.check_execution', guardrails.boundary_assertions?.check_execution, false],
|
|
774
|
+
['contributor_guardrail_evidence.boundary_assertions.test_execution', guardrails.boundary_assertions?.test_execution, false],
|
|
775
|
+
['contributor_guardrail_evidence.boundary_assertions.workflow_execution', guardrails.boundary_assertions?.workflow_execution, false],
|
|
776
|
+
['contributor_guardrail_evidence.boundary_assertions.runtime_action', guardrails.boundary_assertions?.runtime_action, false],
|
|
777
|
+
['contributor_guardrail_evidence.boundary_assertions.auto_execution', guardrails.boundary_assertions?.auto_execution, false],
|
|
778
|
+
['contributor_guardrail_evidence.boundary_assertions.repair_execution', guardrails.boundary_assertions?.repair_execution, false],
|
|
779
|
+
['contributor_guardrail_evidence.boundary_assertions.auto_fix', guardrails.boundary_assertions?.auto_fix, false],
|
|
780
|
+
['contributor_guardrail_evidence.boundary_assertions.git', guardrails.boundary_assertions?.git, false],
|
|
781
|
+
['contributor_guardrail_evidence.boundary_assertions.git_write', guardrails.boundary_assertions?.git_write, false],
|
|
782
|
+
['contributor_guardrail_evidence.boundary_assertions.pr', guardrails.boundary_assertions?.pr, false],
|
|
783
|
+
['contributor_guardrail_evidence.boundary_assertions.push', guardrails.boundary_assertions?.push, false],
|
|
784
|
+
['contributor_guardrail_evidence.boundary_assertions.merge', guardrails.boundary_assertions?.merge, false],
|
|
785
|
+
['contributor_guardrail_evidence.boundary_assertions.subagent', guardrails.boundary_assertions?.subagent, false],
|
|
786
|
+
['contributor_guardrail_evidence.boundary_assertions.platform_api', guardrails.boundary_assertions?.platform_api, false],
|
|
787
|
+
['contributor_guardrail_evidence.boundary_assertions.model_invocation', guardrails.boundary_assertions?.model_invocation, false],
|
|
788
|
+
['contributor_guardrail_evidence.boundary_assertions.business_source_write', guardrails.boundary_assertions?.business_source_write, false],
|
|
789
|
+
['safety.stage', envelope.safety?.stage, 'Stage 146'],
|
|
790
|
+
['safety.remote_pr_search', envelope.safety?.remote_pr_search, false],
|
|
791
|
+
['safety.subagent', envelope.safety?.subagent, false],
|
|
792
|
+
], 'governance --contributor-guardrails --json');
|
|
793
|
+
if (!guardrails.guardrail_digest) throw new Error('contributor guardrail evidence missing guardrail_digest');
|
|
794
|
+
if (!guardrails.guardrail_findings?.some((item) => item.id === 'validation-evidence-required')) throw new Error('contributor guardrails missing validation evidence finding');
|
|
795
|
+
if (!guardrails.guardrail_findings?.some((item) => item.id === 'no-remote-pr-review-search')) throw new Error('contributor guardrails missing remote PR boundary finding');
|
|
796
|
+
if (!guardrails.required_disclosures?.some((item) => item.id === 'boundary-disclosure')) throw new Error('contributor guardrails missing boundary disclosure');
|
|
797
|
+
if (!guardrails.unsafe_closeout_risks?.some((item) => item.id === 'completion-claim-without-evidence')) throw new Error('contributor guardrails missing unsafe closeout risk');
|
|
798
|
+
if (fs.existsSync(unexpectedState)) throw new Error('governance --contributor-guardrails JSON output created unexpected state directory');
|
|
799
|
+
|
|
800
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--from-evidence-prompts', evidencePromptsFile, '--root', '.'], {
|
|
801
|
+
expectOutput: ['Vibecoding Runtime Contributor Guardrail Evidence', 'Stage: Stage 146; Kind: contributor-guardrail-evidence; pass=true', 'Guardrail findings:', 'Required disclosures:', 'Unsafe closeout risks:', 'Closeout contract:', 'Boundary: writes=false; contributor_guardrail_evidence_artifact=false', 'Guardrail digest:', 'Action: contributor guardrail evidence was computed read-only'],
|
|
802
|
+
}, options);
|
|
803
|
+
if (fs.existsSync(unexpectedState)) throw new Error('governance --contributor-guardrails text output created unexpected state directory');
|
|
804
|
+
|
|
805
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
806
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--from-evidence-prompts', evidencePromptsFile, forbidden, '--root', '.'], {
|
|
807
|
+
allowFailure: true,
|
|
808
|
+
expectOutput: ['governance --contributor-guardrails is read-only'],
|
|
809
|
+
}, options);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-evidence-prompts', evidencePromptsFile, '--root', '.'], {
|
|
813
|
+
allowFailure: true,
|
|
814
|
+
expectOutput: ['governance --contributor-guardrails requires --from-scorecard <local-parity-scorecard-json>'],
|
|
815
|
+
}, options);
|
|
816
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
817
|
+
allowFailure: true,
|
|
818
|
+
expectOutput: ['governance --contributor-guardrails requires --from-evidence-prompts <local-evidence-prompts-json>'],
|
|
819
|
+
}, options);
|
|
820
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', '../outside.json', '--from-evidence-prompts', evidencePromptsFile, '--root', target], {
|
|
821
|
+
allowFailure: true,
|
|
822
|
+
expectOutput: ['governance --contributor-guardrails --from-scorecard must stay within --root'],
|
|
823
|
+
}, options);
|
|
824
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--from-evidence-prompts', evidencePromptsFile, '--from-file', scorecardFile, '--root', '.'], {
|
|
825
|
+
allowFailure: true,
|
|
826
|
+
expectOutput: ['governance --contributor-guardrails only accepts --from-scorecard, --from-evidence-prompts, --json, and --root'],
|
|
827
|
+
}, options);
|
|
828
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--superpowers-parity-scorecard', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
829
|
+
allowFailure: true,
|
|
830
|
+
expectOutput: ['governance --superpowers-parity-scorecard requires --from-comparison <local-comparison-json>'],
|
|
831
|
+
}, options);
|
|
832
|
+
} finally {
|
|
833
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export function runSubagentPermissionVisibilitySmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
838
|
+
const target = '.tmp/vibe-subagent-permission';
|
|
839
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
840
|
+
const scorecardFile = path.join(target, 'parity-scorecard.json');
|
|
841
|
+
const guardrailsFile = path.join(target, 'contributor-guardrails.json');
|
|
842
|
+
const expectedScorecardFile = scorecardFile.replace(/\\/g, '/');
|
|
843
|
+
const expectedGuardrailsFile = guardrailsFile.replace(/\\/g, '/');
|
|
844
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
845
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
846
|
+
|
|
847
|
+
try {
|
|
848
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
849
|
+
fs.writeFileSync(path.join(repoRoot, scorecardFile), `${JSON.stringify({
|
|
850
|
+
superpowers_parity_scorecard: {
|
|
851
|
+
stage: 'Stage 140',
|
|
852
|
+
scorecard_kind: 'superpowers-parity-scorecard-v2',
|
|
853
|
+
parity_score: 84,
|
|
854
|
+
parity_digest: 'fixture-stage140-parity-scorecard-digest',
|
|
855
|
+
remaining_gaps: [
|
|
856
|
+
{ axis_id: 'subagent_boundary', axis_score: 66, next_action: 'Make subagent permission visible before any handoff.' },
|
|
857
|
+
{ axis_id: 'contributor_guardrails', axis_score: 74, next_action: 'Carry contributor boundaries into delegation requests.' },
|
|
858
|
+
],
|
|
859
|
+
do_not_cross_boundaries: [
|
|
860
|
+
{ id: 'no_auto_subagent_execution', boundary: 'Do not launch subagents without explicit user permission.' },
|
|
861
|
+
{ id: 'no_hidden_dispatch', boundary: 'Do not create hidden dispatches, sessions, or sidecars.' },
|
|
862
|
+
],
|
|
863
|
+
},
|
|
864
|
+
}, null, 2)}\n`, 'utf8');
|
|
865
|
+
fs.writeFileSync(path.join(repoRoot, guardrailsFile), `${JSON.stringify({
|
|
866
|
+
contributor_guardrail_evidence: {
|
|
867
|
+
stage: 'Stage 146',
|
|
868
|
+
guardrail_kind: 'contributor-guardrail-evidence',
|
|
869
|
+
guardrail_digest: 'fixture-stage146-contributor-guardrails-digest',
|
|
870
|
+
guardrail_findings: [
|
|
871
|
+
{ id: 'validation-evidence-required', severity: 'high', finding: 'Validation evidence must be visible before closeout.' },
|
|
872
|
+
{ id: 'no-remote-pr-review-search', severity: 'high', finding: 'Do not search remote PR/review state from local contracts.' },
|
|
873
|
+
],
|
|
874
|
+
required_disclosures: [
|
|
875
|
+
{ id: 'boundary-disclosure', disclosure: 'No PR, push, merge, remote review lookup, auto-fix, or subagent action is authorized.' },
|
|
876
|
+
{ id: 'evidence-disclosure', disclosure: 'State local evidence and deferred checks before completion.' },
|
|
877
|
+
],
|
|
878
|
+
unsafe_closeout_risks: [
|
|
879
|
+
{ id: 'completion-claim-without-evidence', risk: 'Completion claim lacks visible evidence.' },
|
|
880
|
+
],
|
|
881
|
+
},
|
|
882
|
+
}, null, 2)}\n`, 'utf8');
|
|
883
|
+
|
|
884
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', scorecardFile, '--from-guardrails', guardrailsFile, '--json', '--root', '.'], {}, options), 'governance --subagent-permission --json');
|
|
885
|
+
const visibility = envelope.subagent_permission_visibility || {};
|
|
886
|
+
assertJsonMarkers([
|
|
887
|
+
['command', envelope.command, 'governance'],
|
|
888
|
+
['mode', envelope.mode, 'subagent-permission-visibility'],
|
|
889
|
+
['ok', envelope.ok, true],
|
|
890
|
+
['subagent_permission_visibility.stage', visibility.stage, 'Stage 147'],
|
|
891
|
+
['subagent_permission_visibility.permission_kind', visibility.permission_kind, 'subagent-permission-visibility'],
|
|
892
|
+
['subagent_permission_visibility.source_bindings.scorecard_file', visibility.source_bindings?.scorecard_file, expectedScorecardFile],
|
|
893
|
+
['subagent_permission_visibility.source_bindings.guardrails_file', visibility.source_bindings?.guardrails_file, expectedGuardrailsFile],
|
|
894
|
+
['subagent_permission_visibility.input_summary.scorecard_stage', visibility.input_summary?.scorecard_stage, 'Stage 140'],
|
|
895
|
+
['subagent_permission_visibility.input_summary.guardrails_stage', visibility.input_summary?.guardrails_stage, 'Stage 146'],
|
|
896
|
+
['subagent_permission_visibility.input_summary.permission_gate_count', visibility.input_summary?.permission_gate_count, 5],
|
|
897
|
+
['subagent_permission_visibility.input_summary.brief_requirement_count', visibility.input_summary?.brief_requirement_count, 7],
|
|
898
|
+
['subagent_permission_visibility.input_summary.must_ask_user_first_count', visibility.input_summary?.must_ask_user_first_count, 3],
|
|
899
|
+
['subagent_permission_visibility.permission_invariants.pass', visibility.permission_invariants?.pass, true],
|
|
900
|
+
['subagent_permission_visibility.visibility_contract.subagent_allowed_by_contract', visibility.visibility_contract?.subagent_allowed_by_contract, false],
|
|
901
|
+
['subagent_permission_visibility.visibility_contract.dispatch_allowed_by_contract', visibility.visibility_contract?.dispatch_allowed_by_contract, false],
|
|
902
|
+
['subagent_permission_visibility.visibility_contract.session_allowed_by_contract', visibility.visibility_contract?.session_allowed_by_contract, false],
|
|
903
|
+
['subagent_permission_visibility.visibility_contract.auto_dispatch_allowed_by_contract', visibility.visibility_contract?.auto_dispatch_allowed_by_contract, false],
|
|
904
|
+
['subagent_permission_visibility.visibility_contract.must_ask_user_first', visibility.visibility_contract?.must_ask_user_first, true],
|
|
905
|
+
['subagent_permission_visibility.visibility_contract.dispatch_created', visibility.visibility_contract?.dispatch_created, false],
|
|
906
|
+
['subagent_permission_visibility.visibility_contract.session_created', visibility.visibility_contract?.session_created, false],
|
|
907
|
+
['subagent_permission_visibility.writes', visibility.writes, false],
|
|
908
|
+
['subagent_permission_visibility.state_directory_created', visibility.state_directory_created, false],
|
|
909
|
+
['subagent_permission_visibility.boundary_assertions.subagent_permission_visibility_artifact', visibility.boundary_assertions?.subagent_permission_visibility_artifact, false],
|
|
910
|
+
['subagent_permission_visibility.boundary_assertions.permission_artifact', visibility.boundary_assertions?.permission_artifact, false],
|
|
911
|
+
['subagent_permission_visibility.boundary_assertions.guardrail_artifact', visibility.boundary_assertions?.guardrail_artifact, false],
|
|
912
|
+
['subagent_permission_visibility.boundary_assertions.parity_scorecard_artifact', visibility.boundary_assertions?.parity_scorecard_artifact, false],
|
|
913
|
+
['subagent_permission_visibility.boundary_assertions.brief_artifact', visibility.boundary_assertions?.brief_artifact, false],
|
|
914
|
+
['subagent_permission_visibility.boundary_assertions.dispatch_artifact', visibility.boundary_assertions?.dispatch_artifact, false],
|
|
915
|
+
['subagent_permission_visibility.boundary_assertions.session_artifact', visibility.boundary_assertions?.session_artifact, false],
|
|
916
|
+
['subagent_permission_visibility.boundary_assertions.subagent', visibility.boundary_assertions?.subagent, false],
|
|
917
|
+
['subagent_permission_visibility.boundary_assertions.subagent_dispatch', visibility.boundary_assertions?.subagent_dispatch, false],
|
|
918
|
+
['subagent_permission_visibility.boundary_assertions.subagent_session', visibility.boundary_assertions?.subagent_session, false],
|
|
919
|
+
['subagent_permission_visibility.boundary_assertions.agent_session', visibility.boundary_assertions?.agent_session, false],
|
|
920
|
+
['subagent_permission_visibility.boundary_assertions.session_create', visibility.boundary_assertions?.session_create, false],
|
|
921
|
+
['subagent_permission_visibility.boundary_assertions.command_execution', visibility.boundary_assertions?.command_execution, false],
|
|
922
|
+
['subagent_permission_visibility.boundary_assertions.check_execution', visibility.boundary_assertions?.check_execution, false],
|
|
923
|
+
['subagent_permission_visibility.boundary_assertions.test_execution', visibility.boundary_assertions?.test_execution, false],
|
|
924
|
+
['subagent_permission_visibility.boundary_assertions.workflow_execution', visibility.boundary_assertions?.workflow_execution, false],
|
|
925
|
+
['subagent_permission_visibility.boundary_assertions.runtime_action', visibility.boundary_assertions?.runtime_action, false],
|
|
926
|
+
['subagent_permission_visibility.boundary_assertions.auto_execution', visibility.boundary_assertions?.auto_execution, false],
|
|
927
|
+
['subagent_permission_visibility.boundary_assertions.auto_dispatch', visibility.boundary_assertions?.auto_dispatch, false],
|
|
928
|
+
['subagent_permission_visibility.boundary_assertions.git', visibility.boundary_assertions?.git, false],
|
|
929
|
+
['subagent_permission_visibility.boundary_assertions.git_write', visibility.boundary_assertions?.git_write, false],
|
|
930
|
+
['subagent_permission_visibility.boundary_assertions.pr', visibility.boundary_assertions?.pr, false],
|
|
931
|
+
['subagent_permission_visibility.boundary_assertions.push', visibility.boundary_assertions?.push, false],
|
|
932
|
+
['subagent_permission_visibility.boundary_assertions.merge', visibility.boundary_assertions?.merge, false],
|
|
933
|
+
['subagent_permission_visibility.boundary_assertions.platform_api', visibility.boundary_assertions?.platform_api, false],
|
|
934
|
+
['subagent_permission_visibility.boundary_assertions.model_invocation', visibility.boundary_assertions?.model_invocation, false],
|
|
935
|
+
['subagent_permission_visibility.boundary_assertions.business_source_write', visibility.boundary_assertions?.business_source_write, false],
|
|
936
|
+
['safety.stage', envelope.safety?.stage, 'Stage 147'],
|
|
937
|
+
['safety.subagent_dispatch', envelope.safety?.subagent_dispatch, false],
|
|
938
|
+
['safety.session_create', envelope.safety?.session_create, false],
|
|
939
|
+
['safety.git', envelope.safety?.git, false],
|
|
940
|
+
], 'governance --subagent-permission --json');
|
|
941
|
+
if (!visibility.permission_digest) throw new Error('subagent permission visibility missing permission_digest');
|
|
942
|
+
if (!visibility.permission_gate?.some((item) => item.id === 'explicit-user-permission' && item.dispatch_authorized === false)) throw new Error('subagent permission visibility missing explicit user permission gate');
|
|
943
|
+
if (!visibility.permission_gate?.some((item) => item.id === 'no-hidden-dispatch' && item.session_authorized === false)) throw new Error('subagent permission visibility missing no hidden dispatch gate');
|
|
944
|
+
if (!visibility.brief_requirements?.some((item) => item.id === 'forbidden-actions')) throw new Error('subagent permission visibility missing forbidden-actions brief requirement');
|
|
945
|
+
if (!visibility.must_ask_user_first?.some((item) => item.id === 'permission-question')) throw new Error('subagent permission visibility missing permission question');
|
|
946
|
+
if (fs.existsSync(unexpectedState)) throw new Error('governance --subagent-permission JSON output created unexpected state directory');
|
|
947
|
+
|
|
948
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', scorecardFile, '--from-guardrails', guardrailsFile, '--root', '.'], {
|
|
949
|
+
expectOutput: ['Vibecoding Runtime Subagent Permission Visibility', 'Stage: Stage 147; Kind: subagent-permission-visibility; pass=true', 'Permission gates:', 'Brief requirements:', 'Must ask user first:', 'Visibility contract: subagent_allowed=false; dispatch_allowed=false; session_allowed=false; must_ask_user_first=true', 'Boundary: writes=false; subagent_permission_visibility_artifact=false', 'Permission digest:', 'Action: subagent permission visibility was computed read-only'],
|
|
950
|
+
}, options);
|
|
951
|
+
if (fs.existsSync(unexpectedState)) throw new Error('governance --subagent-permission text output created unexpected state directory');
|
|
952
|
+
|
|
953
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
954
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', scorecardFile, '--from-guardrails', guardrailsFile, forbidden, '--root', '.'], {
|
|
955
|
+
allowFailure: true,
|
|
956
|
+
expectOutput: ['governance --subagent-permission is read-only and permission-visibility-only'],
|
|
957
|
+
}, options);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-guardrails', guardrailsFile, '--root', '.'], {
|
|
961
|
+
allowFailure: true,
|
|
962
|
+
expectOutput: ['governance --subagent-permission requires --from-scorecard <local-parity-scorecard-json>'],
|
|
963
|
+
}, options);
|
|
964
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', scorecardFile, '--root', '.'], {
|
|
965
|
+
allowFailure: true,
|
|
966
|
+
expectOutput: ['governance --subagent-permission requires --from-guardrails <local-guardrails-json>'],
|
|
967
|
+
}, options);
|
|
968
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', '../outside.json', '--from-guardrails', guardrailsFile, '--root', target], {
|
|
969
|
+
allowFailure: true,
|
|
970
|
+
expectOutput: ['governance --subagent-permission --from-scorecard must stay within --root'],
|
|
971
|
+
}, options);
|
|
972
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--subagent-permission', '--from-scorecard', scorecardFile, '--from-guardrails', guardrailsFile, '--from-file', scorecardFile, '--root', '.'], {
|
|
973
|
+
allowFailure: true,
|
|
974
|
+
expectOutput: ['governance --subagent-permission only accepts --from-scorecard, --from-guardrails, --json, and --root'],
|
|
975
|
+
}, options);
|
|
976
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'governance', '--contributor-guardrails', '--from-scorecard', scorecardFile, '--from-guardrails', guardrailsFile, '--root', '.'], {
|
|
977
|
+
allowFailure: true,
|
|
978
|
+
expectOutput: ['--from-guardrails is only supported by governance --subagent-permission'],
|
|
979
|
+
}, options);
|
|
980
|
+
} finally {
|
|
981
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export function runAdapterPackagingConsistencySmoke({ repoRoot, run, parseJsonOutput, assertJsonMarkers }, options) {
|
|
986
|
+
const target = '.tmp/vibe-adapter-packaging-consistency';
|
|
987
|
+
const absoluteTarget = path.join(repoRoot, target);
|
|
988
|
+
const bootstrapFile = path.join(target, 'bootstrap-matrix.json');
|
|
989
|
+
const examplesFile = path.join(target, 'session-start-examples.json');
|
|
990
|
+
const expectedBootstrapFile = bootstrapFile.replace(/\\/g, '/');
|
|
991
|
+
const expectedExamplesFile = examplesFile.replace(/\\/g, '/');
|
|
992
|
+
const unexpectedState = path.join(repoRoot, '.vibecoding-state');
|
|
993
|
+
fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
994
|
+
|
|
995
|
+
try {
|
|
996
|
+
fs.mkdirSync(absoluteTarget, { recursive: true });
|
|
997
|
+
const adapters = ['claude', 'cursor', 'codex'];
|
|
998
|
+
fs.writeFileSync(path.join(repoRoot, bootstrapFile), `${JSON.stringify({
|
|
999
|
+
adapter_bootstrap_matrix: {
|
|
1000
|
+
stage: 'Stage 122',
|
|
1001
|
+
matrix_kind: 'adapter-bootstrap-conformance-matrix',
|
|
1002
|
+
ok: true,
|
|
1003
|
+
matrix_digest: 'fixture-stage122-bootstrap-matrix-digest',
|
|
1004
|
+
expected_adapters: adapters,
|
|
1005
|
+
adapter_rows: adapters.map((adapter) => ({
|
|
1006
|
+
stage: 'Stage 122',
|
|
1007
|
+
adapter,
|
|
1008
|
+
adapter_root: `adapters/${adapter}`,
|
|
1009
|
+
entry_file: adapter === 'claude' ? 'CLAUDE.md' : 'AGENTS.md',
|
|
1010
|
+
expected_entry_file: adapter === 'claude' ? 'CLAUDE.md' : 'AGENTS.md',
|
|
1011
|
+
runtime_bridge: { supported: true, mode: 'manual', canReadDispatchIntent: true, canAutoExecuteSkill: false, canCallSubagent: false, canTouchGit: false },
|
|
1012
|
+
bootstrap_policy: { supported: true, command: `node tools/session-start.mjs --format ${adapter}`, injectsFullSkill: false, writesRuntimeState: false, autoRunsNextSkill: false },
|
|
1013
|
+
gates: [
|
|
1014
|
+
{ gate: 'required_adapter_files', pass: true, findings: [] },
|
|
1015
|
+
{ gate: 'manifest_parity_gate', pass: true, findings: [] },
|
|
1016
|
+
{ gate: 'bootstrap_policy_gate', pass: true, findings: [] },
|
|
1017
|
+
{ gate: 'install_doc_bootstrap_gate', pass: true, findings: [] },
|
|
1018
|
+
],
|
|
1019
|
+
pass: true,
|
|
1020
|
+
blockers: [],
|
|
1021
|
+
})),
|
|
1022
|
+
blockers: [],
|
|
1023
|
+
},
|
|
1024
|
+
}, null, 2)}\n`, 'utf8');
|
|
1025
|
+
fs.writeFileSync(path.join(repoRoot, examplesFile), `${JSON.stringify({
|
|
1026
|
+
session_start_example_pack: {
|
|
1027
|
+
stage: 'Stage 142',
|
|
1028
|
+
pack_kind: 'session-start-example-pack',
|
|
1029
|
+
ok: true,
|
|
1030
|
+
example_pack_digest: 'fixture-stage142-session-start-examples-digest',
|
|
1031
|
+
adapter_examples: adapters.map((adapter) => ({
|
|
1032
|
+
adapter,
|
|
1033
|
+
context_path: adapter === 'cursor' ? 'additional_context' : adapter === 'claude' ? 'hookSpecificOutput.additionalContext' : 'additionalContext',
|
|
1034
|
+
output_shape: adapter === 'cursor' ? 'cursor-session-start-additional_context' : adapter === 'claude' ? 'claude-session-start-hookSpecificOutput' : 'sdk-session-start-additionalContext',
|
|
1035
|
+
copy_ready_json: '{}',
|
|
1036
|
+
source_status: { shape_acceptance_matched: adapter === 'claude', shape_acceptance_ok: adapter === 'claude', install_experience_present: true, install_experience_ok: true },
|
|
1037
|
+
format_notes: ['keep context lightweight and boundary-first'],
|
|
1038
|
+
})),
|
|
1039
|
+
copy_ready_context_shapes: adapters.map((adapter) => ({ adapter, context_path: adapter === 'cursor' ? 'additional_context' : adapter === 'claude' ? 'hookSpecificOutput.additionalContext' : 'additionalContext', additional_context: 'using-vibecoding lightweight routing context only' })),
|
|
1040
|
+
format_warnings: [],
|
|
1041
|
+
},
|
|
1042
|
+
}, null, 2)}\n`, 'utf8');
|
|
1043
|
+
|
|
1044
|
+
const envelope = parseJsonOutput(run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', bootstrapFile, '--from-session-examples', examplesFile, '--json', '--root', '.'], {}, options), 'platforms --adapter-packaging-consistency --json');
|
|
1045
|
+
const checklist = envelope.adapter_packaging_consistency || {};
|
|
1046
|
+
assertJsonMarkers([
|
|
1047
|
+
['command', envelope.command, 'platforms'],
|
|
1048
|
+
['mode', envelope.mode, 'adapter-packaging-consistency-checklist'],
|
|
1049
|
+
['ok', envelope.ok, true],
|
|
1050
|
+
['adapter_packaging_consistency.stage', checklist.stage, 'Stage 148'],
|
|
1051
|
+
['adapter_packaging_consistency.consistency_kind', checklist.consistency_kind, 'adapter-packaging-consistency-checklist'],
|
|
1052
|
+
['adapter_packaging_consistency.source_bindings.bootstrap_matrix_file', checklist.source_bindings?.bootstrap_matrix_file, expectedBootstrapFile],
|
|
1053
|
+
['adapter_packaging_consistency.source_bindings.session_examples_file', checklist.source_bindings?.session_examples_file, expectedExamplesFile],
|
|
1054
|
+
['adapter_packaging_consistency.input_summary.bootstrap_stage', checklist.input_summary?.bootstrap_stage, 'Stage 122'],
|
|
1055
|
+
['adapter_packaging_consistency.input_summary.session_examples_stage', checklist.input_summary?.session_examples_stage, 'Stage 142'],
|
|
1056
|
+
['adapter_packaging_consistency.input_summary.adapter_row_count', checklist.input_summary?.adapter_row_count, 3],
|
|
1057
|
+
['adapter_packaging_consistency.input_summary.missing_install_marker_count', checklist.input_summary?.missing_install_marker_count, 0],
|
|
1058
|
+
['adapter_packaging_consistency.consistency_invariants.pass', checklist.consistency_invariants?.pass, true],
|
|
1059
|
+
['adapter_packaging_consistency.writes', checklist.writes, false],
|
|
1060
|
+
['adapter_packaging_consistency.state_directory_created', checklist.state_directory_created, false],
|
|
1061
|
+
['adapter_packaging_consistency.boundary_assertions.adapter_packaging_consistency_artifact', checklist.boundary_assertions?.adapter_packaging_consistency_artifact, false],
|
|
1062
|
+
['adapter_packaging_consistency.boundary_assertions.bootstrap_matrix_artifact', checklist.boundary_assertions?.bootstrap_matrix_artifact, false],
|
|
1063
|
+
['adapter_packaging_consistency.boundary_assertions.session_start_example_pack_artifact', checklist.boundary_assertions?.session_start_example_pack_artifact, false],
|
|
1064
|
+
['adapter_packaging_consistency.boundary_assertions.adapter_row_artifact', checklist.boundary_assertions?.adapter_row_artifact, false],
|
|
1065
|
+
['adapter_packaging_consistency.boundary_assertions.fix_note_artifact', checklist.boundary_assertions?.fix_note_artifact, false],
|
|
1066
|
+
['adapter_packaging_consistency.boundary_assertions.adapter_install', checklist.boundary_assertions?.adapter_install, false],
|
|
1067
|
+
['adapter_packaging_consistency.boundary_assertions.adapter_execution', checklist.boundary_assertions?.adapter_execution, false],
|
|
1068
|
+
['adapter_packaging_consistency.boundary_assertions.hook_execution', checklist.boundary_assertions?.hook_execution, false],
|
|
1069
|
+
['adapter_packaging_consistency.boundary_assertions.manifest_write', checklist.boundary_assertions?.manifest_write, false],
|
|
1070
|
+
['adapter_packaging_consistency.boundary_assertions.plugin_manifest_write', checklist.boundary_assertions?.plugin_manifest_write, false],
|
|
1071
|
+
['adapter_packaging_consistency.boundary_assertions.install_doc_write', checklist.boundary_assertions?.install_doc_write, false],
|
|
1072
|
+
['adapter_packaging_consistency.boundary_assertions.command_execution', checklist.boundary_assertions?.command_execution, false],
|
|
1073
|
+
['adapter_packaging_consistency.boundary_assertions.check_execution', checklist.boundary_assertions?.check_execution, false],
|
|
1074
|
+
['adapter_packaging_consistency.boundary_assertions.test_execution', checklist.boundary_assertions?.test_execution, false],
|
|
1075
|
+
['adapter_packaging_consistency.boundary_assertions.workflow_execution', checklist.boundary_assertions?.workflow_execution, false],
|
|
1076
|
+
['adapter_packaging_consistency.boundary_assertions.runtime_action', checklist.boundary_assertions?.runtime_action, false],
|
|
1077
|
+
['adapter_packaging_consistency.boundary_assertions.auto_execution', checklist.boundary_assertions?.auto_execution, false],
|
|
1078
|
+
['adapter_packaging_consistency.boundary_assertions.repair_execution', checklist.boundary_assertions?.repair_execution, false],
|
|
1079
|
+
['adapter_packaging_consistency.boundary_assertions.auto_fix', checklist.boundary_assertions?.auto_fix, false],
|
|
1080
|
+
['adapter_packaging_consistency.boundary_assertions.git', checklist.boundary_assertions?.git, false],
|
|
1081
|
+
['adapter_packaging_consistency.boundary_assertions.git_write', checklist.boundary_assertions?.git_write, false],
|
|
1082
|
+
['adapter_packaging_consistency.boundary_assertions.subagent', checklist.boundary_assertions?.subagent, false],
|
|
1083
|
+
['adapter_packaging_consistency.boundary_assertions.platform_api', checklist.boundary_assertions?.platform_api, false],
|
|
1084
|
+
['adapter_packaging_consistency.boundary_assertions.model_invocation', checklist.boundary_assertions?.model_invocation, false],
|
|
1085
|
+
['adapter_packaging_consistency.boundary_assertions.business_source_write', checklist.boundary_assertions?.business_source_write, false],
|
|
1086
|
+
['safety.stage', envelope.safety?.stage, 'Stage 148'],
|
|
1087
|
+
['safety.adapter_install', envelope.safety?.adapter_install, false],
|
|
1088
|
+
['safety.hook_execution', envelope.safety?.hook_execution, false],
|
|
1089
|
+
['safety.git', envelope.safety?.git, false],
|
|
1090
|
+
], 'platforms --adapter-packaging-consistency --json');
|
|
1091
|
+
if (!checklist.consistency_digest) throw new Error('adapter packaging consistency missing consistency_digest');
|
|
1092
|
+
if (!checklist.adapter_rows?.every((row) => row.packaging_consistent === true)) throw new Error('adapter packaging consistency expected every baseline row to be consistent');
|
|
1093
|
+
if (fs.existsSync(unexpectedState)) throw new Error('platforms --adapter-packaging-consistency JSON output created unexpected state directory');
|
|
1094
|
+
|
|
1095
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', bootstrapFile, '--from-session-examples', examplesFile, '--root', '.'], {
|
|
1096
|
+
expectOutput: ['Vibecoding Runtime Adapter Packaging Consistency', 'Stage: Stage 148; Kind: adapter-packaging-consistency-checklist; pass=true', 'Adapter rows:', 'Missing install markers:', 'Copy-ready fix notes:', 'Boundary: writes=false; adapter_packaging_consistency_artifact=false', 'Consistency digest:', 'Action: adapter packaging consistency read local Stage 122 bootstrap matrix JSON'],
|
|
1097
|
+
}, options);
|
|
1098
|
+
if (fs.existsSync(unexpectedState)) throw new Error('platforms --adapter-packaging-consistency text output created unexpected state directory');
|
|
1099
|
+
|
|
1100
|
+
for (const forbidden of ['--confirm', '--dry-run', '--write', '--preflight', '--dispatch', '--dispatch-intent', '--run', '--once', '--scan', '--auto-run']) {
|
|
1101
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', bootstrapFile, '--from-session-examples', examplesFile, forbidden, '--root', '.'], {
|
|
1102
|
+
allowFailure: true,
|
|
1103
|
+
expectOutput: ['platforms --adapter-packaging-consistency is read-only and checklist-only'],
|
|
1104
|
+
}, options);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-session-examples', examplesFile, '--root', '.'], {
|
|
1108
|
+
allowFailure: true,
|
|
1109
|
+
expectOutput: ['platforms --adapter-packaging-consistency requires --from-bootstrap-matrix <local-bootstrap-json>'],
|
|
1110
|
+
}, options);
|
|
1111
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', bootstrapFile, '--root', '.'], {
|
|
1112
|
+
allowFailure: true,
|
|
1113
|
+
expectOutput: ['platforms --adapter-packaging-consistency requires --from-session-examples <local-session-examples-json>'],
|
|
1114
|
+
}, options);
|
|
1115
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', '../outside.json', '--from-session-examples', examplesFile, '--root', target], {
|
|
1116
|
+
allowFailure: true,
|
|
1117
|
+
expectOutput: ['platforms --adapter-packaging-consistency --from-bootstrap-matrix must stay within --root'],
|
|
1118
|
+
}, options);
|
|
1119
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--adapter-packaging-consistency', '--from-bootstrap-matrix', bootstrapFile, '--from-session-examples', examplesFile, '--from-file', bootstrapFile, '--root', '.'], {
|
|
1120
|
+
allowFailure: true,
|
|
1121
|
+
expectOutput: ['platforms --adapter-packaging-consistency only accepts --from-bootstrap-matrix, --from-session-examples, --json, and --root'],
|
|
1122
|
+
}, options);
|
|
1123
|
+
run('node', ['tools/vibe-runtime/index.mjs', 'platforms', '--install-experience', '--from-bootstrap-matrix', bootstrapFile, '--from-session-examples', examplesFile, '--root', '.'], {
|
|
1124
|
+
allowFailure: true,
|
|
1125
|
+
expectOutput: ['--from-session-examples is only supported by platforms --adapter-packaging-consistency'],
|
|
1126
|
+
}, options);
|
|
1127
|
+
} finally {
|
|
1128
|
+
if (!options.keepTmp) fs.rmSync(absoluteTarget, { recursive: true, force: true });
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export function releaseCheckStage141148SmokeHandlers(deps) {
|
|
1133
|
+
return {
|
|
1134
|
+
runEntryTriggerTighteningSmoke: (options) => runEntryTriggerTighteningSmoke(deps, options),
|
|
1135
|
+
runSessionStartExamplePackSmoke: (options) => runSessionStartExamplePackSmoke(deps, options),
|
|
1136
|
+
runNextActionEvidencePromptsSmoke: (options) => runNextActionEvidencePromptsSmoke(deps, options),
|
|
1137
|
+
runContextBudgetEntryDefaultsSmoke: (options) => runContextBudgetEntryDefaultsSmoke(deps, options),
|
|
1138
|
+
runLocalBehaviorEvalContractsSmoke: (options) => runLocalBehaviorEvalContractsSmoke(deps, options),
|
|
1139
|
+
runContributorGuardrailEvidenceSmoke: (options) => runContributorGuardrailEvidenceSmoke(deps, options),
|
|
1140
|
+
runSubagentPermissionVisibilitySmoke: (options) => runSubagentPermissionVisibilitySmoke(deps, options),
|
|
1141
|
+
runAdapterPackagingConsistencySmoke: (options) => runAdapterPackagingConsistencySmoke(deps, options),
|
|
1142
|
+
};
|
|
1143
|
+
}
|