@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,220 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { buildLearningAdviceModel } from './runtime-learning-advice-model.mjs';
|
|
4
|
+
import { buildLearningRunObservationPreview } from './runtime-learning-run-preview-model.mjs';
|
|
5
|
+
|
|
6
|
+
// Contract surface marker: tools/vibe-runtime-check/index.mjs validates this file through runtime-entry-size-contracts.
|
|
7
|
+
export function createRuntimeLearningInteractionCommands(deps) {
|
|
8
|
+
const {
|
|
9
|
+
ensureRoot,
|
|
10
|
+
emitJsonEnvelope,
|
|
11
|
+
learningPresentation,
|
|
12
|
+
localJsonFileWithinRoot,
|
|
13
|
+
resolveLocalStateRoot,
|
|
14
|
+
digestObject,
|
|
15
|
+
stableStringify,
|
|
16
|
+
digestExperienceLearningPattern,
|
|
17
|
+
runtimeExperienceLearningPattern,
|
|
18
|
+
runtimeExperienceLearningPatternDigestPayload,
|
|
19
|
+
listLearningObservationFiles,
|
|
20
|
+
listLearningCandidateInstinctFiles,
|
|
21
|
+
listLearningPromotionFiles,
|
|
22
|
+
learningArtifactSummary,
|
|
23
|
+
learningArtifactAuditEnvelope,
|
|
24
|
+
learningObservationDescriptor,
|
|
25
|
+
learningCandidateInstinctDescriptor,
|
|
26
|
+
learningObservationEnvelope,
|
|
27
|
+
writeLearningObservation,
|
|
28
|
+
learningCandidateInstinctEnvelope,
|
|
29
|
+
writeLearningCandidateInstinct,
|
|
30
|
+
learningPromotionEnvelope,
|
|
31
|
+
writeLearningPromotion,
|
|
32
|
+
} = deps;
|
|
33
|
+
|
|
34
|
+
function learningAuditEnvelope(root, mode, learningFile = '') {
|
|
35
|
+
if (mode === 'list') {
|
|
36
|
+
const observations = listLearningObservationFiles(root).map((fileName) => learningArtifactSummary(root, fileName));
|
|
37
|
+
const candidateInstincts = listLearningCandidateInstinctFiles(root).map((fileName) => learningArtifactSummary(root, fileName));
|
|
38
|
+
const promotions = listLearningPromotionFiles(root).map((fileName) => learningArtifactSummary(root, fileName));
|
|
39
|
+
const artifacts = [...observations, ...candidateInstincts, ...promotions];
|
|
40
|
+
return {
|
|
41
|
+
mode: 'learning-list',
|
|
42
|
+
ok: true,
|
|
43
|
+
summary: {
|
|
44
|
+
count: observations.length,
|
|
45
|
+
observation_count: observations.length,
|
|
46
|
+
candidate_instinct_count: candidateInstincts.length,
|
|
47
|
+
promotion_count: promotions.length,
|
|
48
|
+
failed_count: artifacts.filter((item) => !item.ok).length,
|
|
49
|
+
},
|
|
50
|
+
observations,
|
|
51
|
+
candidate_instincts: candidateInstincts,
|
|
52
|
+
promotions,
|
|
53
|
+
quality: [],
|
|
54
|
+
action: 'read-only learning audit listed local learning sidecars. No skill, prompt, hook, shell, git, worktree, platform API, external network, model, subagent, or business source mutation occurred.',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return learningArtifactAuditEnvelope(root, mode, learningFile);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function learningAdviceObservationRefs(root, observationFiles) {
|
|
61
|
+
return [...observationFiles].map((file) => learningObservationDescriptor(root, file)).sort((left, right) => left.file.localeCompare(right.file)).map((descriptor) => ({
|
|
62
|
+
file: descriptor.file,
|
|
63
|
+
file_digest: descriptor.file_digest,
|
|
64
|
+
observation_digest: descriptor.observation_digest,
|
|
65
|
+
project_id: descriptor.observation.project_id || '',
|
|
66
|
+
scope: descriptor.observation.scope || '',
|
|
67
|
+
domain: descriptor.observation.domain || '',
|
|
68
|
+
signal_count: descriptor.observation.signal_count || 0,
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function learningAdviceEnvelope(root, { intent = '', observationFiles = [], instinctFile = '' } = {}) {
|
|
73
|
+
if (observationFiles.length > 0 && instinctFile) throw new Error('learning --advice accepts either --from-observations or --instinct, not both');
|
|
74
|
+
return buildLearningAdviceModel({
|
|
75
|
+
intent,
|
|
76
|
+
observationDigestRefs: learningAdviceObservationRefs(root, observationFiles),
|
|
77
|
+
instinctDescriptor: instinctFile ? learningCandidateInstinctDescriptor(root, instinctFile) : null,
|
|
78
|
+
statePresent: fs.existsSync(resolveLocalStateRoot(root)),
|
|
79
|
+
digestObject,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function experienceLearningPatternObservationRefs(root, observationFiles) {
|
|
84
|
+
return [...observationFiles].map((file) => learningObservationDescriptor(root, file)).sort((left, right) => left.file.localeCompare(right.file));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function experienceLearningPatternEnvelope(root, { frictionFile = '', observationFiles = [] } = {}) {
|
|
88
|
+
const frictionInput = localJsonFileWithinRoot(root, frictionFile, 'learning --experience-pattern --from-friction');
|
|
89
|
+
const observationRefs = experienceLearningPatternObservationRefs(root, observationFiles);
|
|
90
|
+
const base = runtimeExperienceLearningPattern({
|
|
91
|
+
friction: frictionInput.data,
|
|
92
|
+
observations: observationRefs,
|
|
93
|
+
source: {
|
|
94
|
+
friction_file: frictionInput.relative,
|
|
95
|
+
friction_digest: frictionInput.digest,
|
|
96
|
+
observation_files: observationRefs.map((item) => item.file),
|
|
97
|
+
observation_file_digests: observationRefs.map((item) => item.file_digest),
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
const pattern = {
|
|
101
|
+
...base,
|
|
102
|
+
experience_pattern_digest: digestExperienceLearningPattern(runtimeExperienceLearningPatternDigestPayload(base)),
|
|
103
|
+
};
|
|
104
|
+
return {
|
|
105
|
+
mode: 'ecc-learning-experience-pattern-gate',
|
|
106
|
+
ok: pattern.ok,
|
|
107
|
+
state_present: fs.existsSync(resolveLocalStateRoot(root)),
|
|
108
|
+
experience_learning_pattern: pattern,
|
|
109
|
+
safety: { stage: 'Stage 129', ...pattern.boundary_assertions },
|
|
110
|
+
quality: pattern.experience_pattern_invariants.findings,
|
|
111
|
+
action: 'experience learning pattern gate was computed read-only from local Stage 126 friction and optional verified Stage 61 observations. It only proposes candidate experience patterns and a manual skill-authoring workflow; no state directory, sidecar, skill, prompt, hook, command execution, automatic promotion, platform API, model, git, MCP, subagent, or business source write occurred.',
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function learningRunObservationPreviewEnvelope(root, runFile) {
|
|
116
|
+
const source = localJsonFileWithinRoot(root, runFile, 'learning --observe-from-run --from-file');
|
|
117
|
+
return buildLearningRunObservationPreview({
|
|
118
|
+
input: source.data,
|
|
119
|
+
source,
|
|
120
|
+
rootName: path.basename(root),
|
|
121
|
+
statePresent: fs.existsSync(resolveLocalStateRoot(root)),
|
|
122
|
+
digestObject,
|
|
123
|
+
stableStringify,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function runLearning(options) {
|
|
128
|
+
const unsafeLearningRuntimeFlags = options.write || options.scan || options.once || options.fromDispatch || options.dispatchEvent || options.actor || options.approval || options.run || options.autoRun;
|
|
129
|
+
if (options.learningExperiencePattern && unsafeLearningRuntimeFlags) throw new Error('learning --experience-pattern is read-only and does not accept execution, dispatch, scan, run, write, approval, or agent flags');
|
|
130
|
+
if (options.learningObserveFromRun && unsafeLearningRuntimeFlags) throw new Error('learning --observe-from-run is read-only and does not accept execution, dispatch, scan, run, write, approval, or agent flags');
|
|
131
|
+
if (unsafeLearningRuntimeFlags) throw new Error('learning supports local observation, candidate instinct, promotion sidecars, and read-only audit only');
|
|
132
|
+
ensureRoot(options.root);
|
|
133
|
+
const modes = [options.learningObserve, options.learningObserveFromRun, options.learningInstincts, options.learningPromote, options.learningAdvice, options.learningExperiencePattern, options.learningList, options.learningShow, options.learningVerify].filter(Boolean);
|
|
134
|
+
if (modes.length !== 1) throw new Error('learning requires exactly one of --observe, --observe-from-run, --instincts, --promote, --advice, --experience-pattern, --list, --show, or --verify');
|
|
135
|
+
if (options.methodologyIntent && !options.learningAdvice && !options.learningExperiencePattern) throw new Error('--intent is only supported by learning --advice or learning --experience-pattern');
|
|
136
|
+
if (options.fromFriction && !options.learningExperiencePattern) throw new Error('--from-friction is only supported by learning --experience-pattern');
|
|
137
|
+
if (options.fromFile && !options.learningObserve && !options.learningObserveFromRun && !options.learningExperiencePattern) throw new Error('--from-file is only supported by learning --observe or learning --observe-from-run');
|
|
138
|
+
if (options.learningObservationFiles.length > 0 && !options.learningInstincts && !options.learningAdvice && !options.learningExperiencePattern) throw new Error('--from-observations is only supported by learning --instincts, learning --advice, or learning --experience-pattern');
|
|
139
|
+
if (options.learningInstinctFile && !options.learningPromote && !options.learningAdvice) throw new Error('--instinct is only supported by learning --promote or learning --advice');
|
|
140
|
+
if (options.learningExperiencePattern) {
|
|
141
|
+
if (options.confirm || options.dryRun || options.preflight || options.dispatch || options.dispatchIntent) throw new Error('learning --experience-pattern is read-only and does not accept --confirm, --preview, --preflight, --dispatch, or --dispatch-intent');
|
|
142
|
+
if (!options.fromFriction) throw new Error('learning --experience-pattern requires --from-friction <local-friction-json>');
|
|
143
|
+
if (options.fromFile || options.learningInstinctFile) throw new Error('learning --experience-pattern only accepts --from-friction and optional --from-observations');
|
|
144
|
+
const envelope = experienceLearningPatternEnvelope(options.root, { frictionFile: options.fromFriction, observationFiles: options.learningObservationFiles });
|
|
145
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
146
|
+
else learningPresentation.printExperienceLearningPattern(envelope);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (options.learningAdvice) {
|
|
150
|
+
if (options.confirm || options.dryRun || options.preflight || options.dispatch || options.dispatchIntent) throw new Error('learning --advice is read-only and does not accept --confirm, --preview, --preflight, --dispatch, or --dispatch-intent');
|
|
151
|
+
const envelope = learningAdviceEnvelope(options.root, { intent: options.methodologyIntent, observationFiles: options.learningObservationFiles, instinctFile: options.learningInstinctFile });
|
|
152
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
153
|
+
else learningPresentation.printLearningAdvice(envelope);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
if (options.learningObserveFromRun) {
|
|
157
|
+
if (options.confirm || options.dryRun || options.preflight || options.dispatch || options.dispatchIntent) throw new Error('learning --observe-from-run is read-only and does not accept --confirm, --preview, --preflight, --dispatch, or --dispatch-intent');
|
|
158
|
+
if (!options.fromFile) throw new Error('learning --observe-from-run requires --from-file <local-run-or-evidence-json>');
|
|
159
|
+
const envelope = learningRunObservationPreviewEnvelope(options.root, options.fromFile);
|
|
160
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
161
|
+
else learningPresentation.printLearningRunObservationPreview(envelope);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (options.learningObserve) {
|
|
165
|
+
if (options.confirm && options.dryRun) throw new Error('learning --observe accepts either --preview or --confirm, not both');
|
|
166
|
+
if (!options.fromFile) throw new Error('learning --observe requires --from-file <session-evidence-file>');
|
|
167
|
+
const envelope = learningObservationEnvelope(options.root, { evidenceFile: options.fromFile, persist: options.confirm });
|
|
168
|
+
if (options.confirm) {
|
|
169
|
+
const file = writeLearningObservation(options.root, envelope);
|
|
170
|
+
if (options.json) emitJsonEnvelope('learning', { ...envelope, learning_file: path.basename(file) });
|
|
171
|
+
else learningPresentation.printLearning(envelope, file);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
175
|
+
else learningPresentation.printLearning(envelope);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (options.learningInstincts) {
|
|
179
|
+
if (options.confirm && options.dryRun) throw new Error('learning --instincts accepts either --preview or --confirm, not both');
|
|
180
|
+
if (options.learningObservationFiles.length === 0) throw new Error('learning --instincts requires --from-observations <learning-observation-file...>');
|
|
181
|
+
const envelope = learningCandidateInstinctEnvelope(options.root, { observationFiles: options.learningObservationFiles, persist: options.confirm });
|
|
182
|
+
if (options.confirm) {
|
|
183
|
+
const file = writeLearningCandidateInstinct(options.root, envelope);
|
|
184
|
+
if (options.json) emitJsonEnvelope('learning', { ...envelope, learning_file: path.basename(file), candidate_instinct_file: path.basename(file) });
|
|
185
|
+
else learningPresentation.printLearning(envelope, file);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
189
|
+
else learningPresentation.printLearning(envelope);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (options.learningPromote) {
|
|
193
|
+
if (options.confirm && options.dryRun) throw new Error('learning --promote accepts either --preview or --confirm, not both');
|
|
194
|
+
if (!options.learningInstinctFile) throw new Error('learning --promote requires --instinct <candidate-instinct-file>');
|
|
195
|
+
const envelope = learningPromotionEnvelope(options.root, { instinctFile: options.learningInstinctFile, persist: options.confirm });
|
|
196
|
+
if (options.confirm) {
|
|
197
|
+
const file = writeLearningPromotion(options.root, envelope);
|
|
198
|
+
if (options.json) emitJsonEnvelope('learning', { ...envelope, learning_file: path.basename(file), learning_promotion_file: path.basename(file) });
|
|
199
|
+
else learningPresentation.printLearning(envelope, file);
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
203
|
+
else learningPresentation.printLearning(envelope);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
if (options.confirm || options.dryRun) throw new Error('learning audit is read-only');
|
|
207
|
+
const mode = options.learningList ? 'list' : options.learningVerify ? 'verify' : 'show';
|
|
208
|
+
const envelope = learningAuditEnvelope(options.root, mode, options.learningFile);
|
|
209
|
+
if (options.json) emitJsonEnvelope('learning', envelope);
|
|
210
|
+
else learningPresentation.printLearning(envelope);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
learningAdviceEnvelope,
|
|
215
|
+
learningAuditEnvelope,
|
|
216
|
+
learningRunObservationPreviewEnvelope,
|
|
217
|
+
experienceLearningPatternEnvelope,
|
|
218
|
+
runLearning,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
const learningObservationScopes = new Set(['project', 'global-candidate']);
|
|
2
|
+
const learningObservationDomains = new Set(['workflow', 'debugging', 'testing', 'code-style', 'governance', 'token-economy']);
|
|
3
|
+
|
|
4
|
+
export function isLearningObservationScope(value) {
|
|
5
|
+
return learningObservationScopes.has(value);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function isLearningObservationDomain(value) {
|
|
9
|
+
return learningObservationDomains.has(value);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function normalizeLearningTextList(value, { stableStringify }) {
|
|
13
|
+
if (!Array.isArray(value)) return [];
|
|
14
|
+
return value.map((item) => (typeof item === 'string' ? item : stableStringify(item))).map((item) => item.trim()).filter(Boolean).sort();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function normalizeLearningScope(value) {
|
|
18
|
+
const scope = String(value || 'project').trim();
|
|
19
|
+
if (!isLearningObservationScope(scope)) throw new Error(`learning scope is unsupported: ${scope}`);
|
|
20
|
+
return scope;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function normalizeLearningDomain(value) {
|
|
24
|
+
const domain = String(value || 'workflow').trim();
|
|
25
|
+
if (!isLearningObservationDomain(domain)) throw new Error(`learning domain is unsupported: ${domain}`);
|
|
26
|
+
return domain;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function normalizeLearningConfidenceDelta(value) {
|
|
30
|
+
const delta = Number(value ?? 0);
|
|
31
|
+
if (!Number.isFinite(delta)) throw new Error('learning confidence_delta must be a finite number');
|
|
32
|
+
if (delta < -1 || delta > 1) throw new Error('learning confidence_delta must be between -1 and 1');
|
|
33
|
+
return Number(delta.toFixed(3));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function learningSignalsFromEvidence(input, { stableStringify }) {
|
|
37
|
+
return {
|
|
38
|
+
user_corrections: normalizeLearningTextList(input.user_corrections || input.corrections, { stableStringify }),
|
|
39
|
+
failure_fixes: normalizeLearningTextList(input.failure_fixes || input.fixes, { stableStringify }),
|
|
40
|
+
repeated_workflows: normalizeLearningTextList(input.repeated_workflows || input.workflows, { stableStringify }),
|
|
41
|
+
preferences: normalizeLearningTextList(input.preferences, { stableStringify }),
|
|
42
|
+
project_constraints: normalizeLearningTextList(input.project_constraints || input.constraints, { stableStringify }),
|
|
43
|
+
observations: normalizeLearningTextList(input.observations, { stableStringify }),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function learningSignalCount(signals) {
|
|
48
|
+
return Object.values(signals).reduce((total, items) => total + (Array.isArray(items) ? items.length : 0), 0);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function learningObservationBoundaryAssertions() {
|
|
52
|
+
return {
|
|
53
|
+
skill_mutation: false,
|
|
54
|
+
prompt_mutation: false,
|
|
55
|
+
hook_registration: false,
|
|
56
|
+
shell_interception: false,
|
|
57
|
+
external_network: false,
|
|
58
|
+
model_invocation: false,
|
|
59
|
+
platform_api: false,
|
|
60
|
+
git: false,
|
|
61
|
+
worktree: false,
|
|
62
|
+
business_source_write: false,
|
|
63
|
+
runtime_action: false,
|
|
64
|
+
auto_execution: false,
|
|
65
|
+
subagent: false,
|
|
66
|
+
mcp: false,
|
|
67
|
+
daemon: false,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function shortLearningText(value, maxLength = 160) {
|
|
72
|
+
const text = String(value || '').replace(/\s+/g, ' ').trim();
|
|
73
|
+
if (text.length <= maxLength) return text;
|
|
74
|
+
return `${text.slice(0, maxLength - 1).trim()}…`;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function firstLearningSignal(observation) {
|
|
78
|
+
const signalOrder = ['user_corrections', 'failure_fixes', 'repeated_workflows', 'preferences', 'project_constraints', 'observations'];
|
|
79
|
+
for (const signalType of signalOrder) {
|
|
80
|
+
const values = Array.isArray(observation.signals?.[signalType]) ? observation.signals[signalType] : [];
|
|
81
|
+
if (values.length > 0) return { signal_type: signalType, signal_text: shortLearningText(values[0]) };
|
|
82
|
+
}
|
|
83
|
+
return { signal_type: 'none', signal_text: '' };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function learningInstinctStatusAndBlocks(descriptors, signal) {
|
|
87
|
+
const blocked = [];
|
|
88
|
+
if (descriptors.length === 0) blocked.push('candidate instinct requires at least one observation');
|
|
89
|
+
if (!signal.signal_text) blocked.push('candidate instinct requires at least one learning signal');
|
|
90
|
+
const projectIds = new Set(descriptors.map((item) => item.observation.project_id || '').filter(Boolean));
|
|
91
|
+
if (projectIds.size > 1) blocked.push('candidate instinct requires one project_id');
|
|
92
|
+
const domains = new Set(descriptors.map((item) => item.observation.domain || '').filter(Boolean));
|
|
93
|
+
if (domains.size > 1) blocked.push('candidate instinct requires one domain');
|
|
94
|
+
return { status: blocked.length === 0 ? 'candidate_ready' : 'manual_review_required', blocked_reasons: blocked };
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const learningArtifactSummaryBuilders = {
|
|
98
|
+
'learning-observation': (file, artifact, verification) => ({ file, kind: 'learning-observation', status: artifact.learning_observation?.status || '', scope: artifact.learning_observation?.scope || '', domain: artifact.learning_observation?.domain || '', signal_count: artifact.learning_observation?.signal_count || 0, ok: verification.ok, digest: artifact.learning_observation?.learning_observation_digest || '' }),
|
|
99
|
+
'candidate-instinct': (file, artifact, verification) => ({ file, kind: 'candidate-instinct', status: artifact.candidate_instinct?.status || '', scope: artifact.candidate_instinct?.scope || '', domain: artifact.candidate_instinct?.domain || '', confidence: artifact.candidate_instinct?.confidence || 0, ok: verification.ok, digest: artifact.candidate_instinct?.candidate_instinct_digest || '' }),
|
|
100
|
+
'learning-promotion': (file, artifact, verification) => ({ file, kind: 'learning-promotion', status: artifact.learning_promotion?.status || '', scope: artifact.learning_promotion?.scope || '', domain: artifact.learning_promotion?.domain || '', confidence: artifact.learning_promotion?.confidence || 0, ok: verification.ok, digest: artifact.learning_promotion?.learning_promotion_digest || '' }),
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const learningArtifactAuditDigestKeys = {
|
|
104
|
+
'learning-observation': 'observation_digest',
|
|
105
|
+
'candidate-instinct': 'candidate_instinct_digest',
|
|
106
|
+
'learning-promotion': 'learning_promotion_digest',
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export function learningInvalidArtifactSummary(file, error) {
|
|
110
|
+
return { file, kind: 'invalid', status: 'invalid', scope: '', domain: '', ok: false, digest: '', error: error.message };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function learningArtifactSummaryModel(kind, file, artifact, verification) {
|
|
114
|
+
const build = learningArtifactSummaryBuilders[kind];
|
|
115
|
+
if (!build) throw new Error(`unsupported learning artifact kind: ${kind}`);
|
|
116
|
+
return build(file, artifact, verification);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function learningArtifactAuditSummaryModel(kind, file, artifact) {
|
|
120
|
+
const summary = learningArtifactSummaryModel(kind, file, artifact, { ok: true });
|
|
121
|
+
const digestKey = learningArtifactAuditDigestKeys[kind];
|
|
122
|
+
const { digest, ok, ...auditSummary } = summary;
|
|
123
|
+
return { ...auditSummary, [digestKey]: digest };
|
|
124
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
|
|
4
|
+
export function createLearningPresentation({ printList }) {
|
|
5
|
+
function printExperienceLearningPattern(envelope) {
|
|
6
|
+
const pattern = envelope.experience_learning_pattern;
|
|
7
|
+
console.log('Vibecoding Runtime Experience Learning Pattern Gate');
|
|
8
|
+
console.log(`Stage: ${pattern.stage}; Kind: ${pattern.pattern_kind}; pass=${pattern.ok}`);
|
|
9
|
+
console.log(`Repeat signal: detected=${pattern.repeat_signal.detected}; confidence=${pattern.repeat_signal.confidence}; top_friction=${pattern.repeat_signal.top_friction || 'none'}`);
|
|
10
|
+
console.log(`Suggested trigger: ${pattern.suggested_instinct_trigger}`);
|
|
11
|
+
console.log(`Suggested action: ${pattern.suggested_instinct_action}`);
|
|
12
|
+
printList('Candidate experience patterns', pattern.candidate_experience_patterns.map((item) => `${item.id}: ${item.trigger} -> ${item.action}`));
|
|
13
|
+
console.log(`Promotion required: ${pattern.promotion_required}; workflow=${pattern.required_workflow.join(' -> ')}`);
|
|
14
|
+
console.log('Boundary: writes=false; experience_pattern_artifact=false; learning_observation_write=false; candidate_instinct_write=false; learning_promotion_write=false; skill_write=false; writes_formal_skills=false; writes_agents_md=false; writes_claude_md=false; prompt_mutation=false; hook_registration=false; command_execution=false; workflow_execution=false; skill_execution=false; runtime_action=false; automatic_promotion=false; agent_first_delegation=false; git=false; git_write=false; commit=false; pr=false; push=false; merge=false; platform_api=false; external_network=false; model_invocation=false; subagent=false; mcp=false; business_source_write=false');
|
|
15
|
+
console.log(`Experience pattern digest: ${pattern.experience_pattern_digest}`);
|
|
16
|
+
if (envelope.quality.length > 0) printList('Blocked reasons', envelope.quality);
|
|
17
|
+
console.log(`Action: ${envelope.action}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function printLearningAdvice(envelope) {
|
|
21
|
+
const advice = envelope.learning_advice;
|
|
22
|
+
console.log('Vibecoding Runtime Learning Advice');
|
|
23
|
+
console.log(`Stage: ${advice.stage}; Intent: ${advice.intent}; Advice: ${advice.advice_kind}`);
|
|
24
|
+
console.log(`Next step: ${advice.recommended_next_learning_step}`);
|
|
25
|
+
console.log(`Recommended command: ${advice.recommended_command}`);
|
|
26
|
+
if (advice.observation_digest_refs.length > 0) console.log(`Observations: ${advice.observation_digest_refs.length}`);
|
|
27
|
+
if (advice.candidate_instinct_digest) console.log(`Candidate instinct digest: ${advice.candidate_instinct_digest}`);
|
|
28
|
+
console.log(`Promotion boundary: ${advice.promotion_boundary.promotion_target}; automatic_promotion=false; writes_formal_skills=false`);
|
|
29
|
+
console.log(`Advice digest: ${advice.advice_digest}`);
|
|
30
|
+
if (envelope.quality.length > 0) printList('Notes', envelope.quality);
|
|
31
|
+
console.log(`Action: ${envelope.action}`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function printLearningRunObservationPreview(envelope) {
|
|
35
|
+
const observation = envelope.learning_observation_preview;
|
|
36
|
+
const candidate = envelope.candidate_instinct_preview;
|
|
37
|
+
console.log('Vibecoding Runtime Learning Run Observation Preview');
|
|
38
|
+
console.log(`Source: ${envelope.source.file}; input=${envelope.source.input_kind}`);
|
|
39
|
+
console.log(`Observation: ${observation.status}; domain=${observation.domain}; signals=${observation.signal_count}`);
|
|
40
|
+
console.log(`Candidate: ${candidate.status}; confidence=${candidate.confidence}`);
|
|
41
|
+
console.log('Boundary: writes=false; learning_observation_artifact=false; candidate_instinct_artifact=false; automatic_promotion=false; writes_formal_skills=false; skill_mutation=false; prompt_mutation=false; hook_registration=false; git=false; worktree=false; subagent=false; business_source_write=false');
|
|
42
|
+
console.log(`Observation digest: ${observation.learning_observation_preview_digest}`);
|
|
43
|
+
console.log(`Candidate digest: ${candidate.candidate_instinct_preview_digest}`);
|
|
44
|
+
if (envelope.quality.length > 0) printList('Blocked reasons', envelope.quality);
|
|
45
|
+
console.log(`Action: ${envelope.action}`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function printLearning(envelope, file = '') {
|
|
49
|
+
console.log('Vibecoding Runtime Learning Ledger');
|
|
50
|
+
console.log(`Mode: ${envelope.mode.replace('learning-', '')}`);
|
|
51
|
+
if (envelope.learning_observation) {
|
|
52
|
+
console.log(`Status: ${envelope.learning_observation.status}; Scope: ${envelope.learning_observation.scope}; Domain: ${envelope.learning_observation.domain}`);
|
|
53
|
+
console.log(`Signals: ${envelope.learning_observation.signal_count}; Digest: ${envelope.learning_observation.learning_observation_digest}`);
|
|
54
|
+
if (file) console.log(`Learning observation: ${path.relative(process.cwd(), file)}`);
|
|
55
|
+
} else if (envelope.candidate_instinct) {
|
|
56
|
+
console.log(`Status: ${envelope.candidate_instinct.status}; Scope: ${envelope.candidate_instinct.scope}; Domain: ${envelope.candidate_instinct.domain}`);
|
|
57
|
+
console.log(`Confidence: ${envelope.candidate_instinct.confidence}; Digest: ${envelope.candidate_instinct.candidate_instinct_digest}`);
|
|
58
|
+
if (file) console.log(`Candidate instinct: ${path.relative(process.cwd(), file)}`);
|
|
59
|
+
} else if (envelope.learning_promotion) {
|
|
60
|
+
console.log(`Status: ${envelope.learning_promotion.status}; Scope: ${envelope.learning_promotion.scope}; Domain: ${envelope.learning_promotion.domain}`);
|
|
61
|
+
console.log(`Confidence: ${envelope.learning_promotion.confidence}; Digest: ${envelope.learning_promotion.learning_promotion_digest}`);
|
|
62
|
+
if (file) console.log(`Learning promotion: ${path.relative(process.cwd(), file)}`);
|
|
63
|
+
} else if (envelope.mode === 'learning-list') {
|
|
64
|
+
console.log(`Observations: ${envelope.summary.observation_count}; Candidate instincts: ${envelope.summary.candidate_instinct_count}; Promotions: ${envelope.summary.promotion_count}; Failed: ${envelope.summary.failed_count}`);
|
|
65
|
+
for (const observation of envelope.observations) console.log(`- ${observation.file}: ${observation.domain}/${observation.scope}; signals=${observation.signal_count}; verification=${observation.ok ? 'passed' : 'failed'}`);
|
|
66
|
+
for (const instinct of envelope.candidate_instincts) console.log(`- ${instinct.file}: ${instinct.domain}/${instinct.scope}; confidence=${instinct.confidence}; verification=${instinct.ok ? 'passed' : 'failed'}`);
|
|
67
|
+
for (const promotion of envelope.promotions) console.log(`- ${promotion.file}: ${promotion.domain}/${promotion.scope}; confidence=${promotion.confidence}; verification=${promotion.ok ? 'passed' : 'failed'}`);
|
|
68
|
+
} else {
|
|
69
|
+
console.log(`File: ${envelope.summary.file}`);
|
|
70
|
+
console.log(`Kind: ${envelope.summary.kind || 'learning-observation'}; Status: ${envelope.summary.status}; Scope: ${envelope.summary.scope}; Domain: ${envelope.summary.domain}`);
|
|
71
|
+
console.log(`Verification: ${envelope.verification.ok ? 'passed' : 'failed'}`);
|
|
72
|
+
if (envelope.verification.failures.length > 0) printList('Verification failures', envelope.verification.failures);
|
|
73
|
+
}
|
|
74
|
+
if (envelope.quality?.length > 0) printList('Blocked reasons', envelope.quality);
|
|
75
|
+
console.log(`Action: ${envelope.action}`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
printExperienceLearningPattern,
|
|
80
|
+
printLearningAdvice,
|
|
81
|
+
printLearningRunObservationPreview,
|
|
82
|
+
printLearning,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import {
|
|
2
|
+
firstLearningSignal,
|
|
3
|
+
learningObservationBoundaryAssertions,
|
|
4
|
+
learningSignalCount,
|
|
5
|
+
learningSignalsFromEvidence,
|
|
6
|
+
normalizeLearningConfidenceDelta,
|
|
7
|
+
normalizeLearningDomain,
|
|
8
|
+
normalizeLearningScope,
|
|
9
|
+
} from './runtime-learning-observation-model.mjs';
|
|
10
|
+
import { learningAdviceBoundaryAssertions } from './runtime-learning-advice-model.mjs';
|
|
11
|
+
|
|
12
|
+
const previewSignalFields = Object.freeze([
|
|
13
|
+
'user_corrections',
|
|
14
|
+
'failure_fixes',
|
|
15
|
+
'repeated_workflows',
|
|
16
|
+
'preferences',
|
|
17
|
+
'project_constraints',
|
|
18
|
+
'observations',
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
function asArray(value) {
|
|
22
|
+
if (!value) return [];
|
|
23
|
+
return Array.isArray(value) ? value : [value];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function nestedArray(input, path) {
|
|
27
|
+
const value = path.reduce((current, key) => current?.[key], input);
|
|
28
|
+
return asArray(value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function compactList(items) {
|
|
32
|
+
return items.map((item) => String(item || '').trim()).filter(Boolean);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function inferDomain(input) {
|
|
36
|
+
const command = String(input.command || input.mode || '').toLowerCase();
|
|
37
|
+
if (/token/.test(command)) return 'token-economy';
|
|
38
|
+
if (/test|verification|eval/.test(command)) return 'testing';
|
|
39
|
+
if (/debug|fail|error/.test(command)) return 'debugging';
|
|
40
|
+
if (/governance|automation/.test(command)) return 'governance';
|
|
41
|
+
return 'workflow';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function inferredObservations(input) {
|
|
45
|
+
return compactList([
|
|
46
|
+
input.action,
|
|
47
|
+
input.summary?.text,
|
|
48
|
+
input.summary?.status,
|
|
49
|
+
input.mode ? `mode=${input.mode}` : '',
|
|
50
|
+
input.command ? `command=${input.command}` : '',
|
|
51
|
+
Object.prototype.hasOwnProperty.call(input, 'ok') ? `ok=${Boolean(input.ok)}` : '',
|
|
52
|
+
...nestedArray(input, ['quality']),
|
|
53
|
+
...nestedArray(input, ['blocked_reasons']),
|
|
54
|
+
...nestedArray(input, ['verification', 'failures']),
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function previewEvidence(input) {
|
|
59
|
+
const evidence = Object.fromEntries(previewSignalFields.map((field) => [field, asArray(input[field])]));
|
|
60
|
+
return {
|
|
61
|
+
...input,
|
|
62
|
+
...evidence,
|
|
63
|
+
observations: [...evidence.observations, ...inferredObservations(input)],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function buildObservationPreview({ input, source, rootName, digestObject, stableStringify }) {
|
|
68
|
+
const evidence = previewEvidence(input);
|
|
69
|
+
const signals = learningSignalsFromEvidence(evidence, { stableStringify });
|
|
70
|
+
const signalCount = learningSignalCount(signals);
|
|
71
|
+
const excerpt = String(input.evidence_excerpt || input.excerpt || input.action || '').trim();
|
|
72
|
+
const payload = {
|
|
73
|
+
version: 1,
|
|
74
|
+
stage: 'Stage 61',
|
|
75
|
+
preview_kind: 'learning-observation-preview',
|
|
76
|
+
artifact_kind: 'learning-observation',
|
|
77
|
+
status: signalCount > 0 ? 'observation_recorded' : 'manual_required',
|
|
78
|
+
source_file: source.relative,
|
|
79
|
+
source_digest: source.digest,
|
|
80
|
+
project_id: String(input.project_id || rootName || 'local-project').trim(),
|
|
81
|
+
scope: normalizeLearningScope(input.scope),
|
|
82
|
+
domain: normalizeLearningDomain(input.domain || inferDomain(input)),
|
|
83
|
+
confidence_delta: normalizeLearningConfidenceDelta(input.confidence_delta),
|
|
84
|
+
evidence_excerpt_digest: digestObject({ source_digest: source.digest, excerpt: excerpt || stableStringify(signals) }),
|
|
85
|
+
signals,
|
|
86
|
+
signals_digest: digestObject(signals),
|
|
87
|
+
signal_count: signalCount,
|
|
88
|
+
candidate_only: true,
|
|
89
|
+
promotion_required: true,
|
|
90
|
+
allowed_followup: ['candidate_instinct_preview', 'manual_review', 'vibe-writing-skills'],
|
|
91
|
+
blocked_reasons: signalCount > 0 ? [] : ['local input did not contain any learning signal'],
|
|
92
|
+
boundary_assertions: learningObservationBoundaryAssertions(),
|
|
93
|
+
writes: false,
|
|
94
|
+
local_only: true,
|
|
95
|
+
no_skill_mutation: true,
|
|
96
|
+
no_prompt_mutation: true,
|
|
97
|
+
no_cross_project_share: true,
|
|
98
|
+
};
|
|
99
|
+
return { ...payload, learning_observation_preview_digest: digestObject(payload) };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function buildCandidatePreview(observation, digestObject) {
|
|
103
|
+
const signal = firstLearningSignal(observation);
|
|
104
|
+
const ready = observation.signal_count > 0 && Boolean(signal.signal_text);
|
|
105
|
+
const confidence = Number(Math.max(0, Math.min(1, 0.5 + Number(observation.confidence_delta || 0) / 2)).toFixed(3));
|
|
106
|
+
const payload = {
|
|
107
|
+
version: 1,
|
|
108
|
+
stage: 'Stage 62',
|
|
109
|
+
preview_kind: 'candidate-instinct-preview',
|
|
110
|
+
artifact_kind: 'candidate-instinct',
|
|
111
|
+
status: ready ? 'candidate_ready' : 'manual_review_required',
|
|
112
|
+
project_id: observation.project_id,
|
|
113
|
+
scope: observation.scope,
|
|
114
|
+
domain: observation.domain,
|
|
115
|
+
atomic: true,
|
|
116
|
+
one_trigger: true,
|
|
117
|
+
one_action: true,
|
|
118
|
+
trigger: ready ? `domain=${observation.domain}; signal=${signal.signal_type}; when ${signal.signal_text}` : `domain=${observation.domain}; signal=none; manual review required`,
|
|
119
|
+
action: ready ? `Prefer the project-scoped learned response: ${signal.signal_text}` : 'Review local learning signals manually before creating formal guidance.',
|
|
120
|
+
confidence,
|
|
121
|
+
evidence_backed: observation.signal_count > 0,
|
|
122
|
+
source_observation: {
|
|
123
|
+
source_file: observation.source_file,
|
|
124
|
+
source_digest: observation.source_digest,
|
|
125
|
+
observation_digest: observation.learning_observation_preview_digest,
|
|
126
|
+
signal_count: observation.signal_count,
|
|
127
|
+
},
|
|
128
|
+
blocked_reasons: ready ? [] : ['candidate preview requires at least one learning signal'],
|
|
129
|
+
promotion_required: true,
|
|
130
|
+
automatic_promotion: false,
|
|
131
|
+
writes_formal_skills: false,
|
|
132
|
+
writes_agents_md: false,
|
|
133
|
+
writes_claude_md: false,
|
|
134
|
+
formal_skill_mutation: false,
|
|
135
|
+
skill_mutation: false,
|
|
136
|
+
prompt_mutation: false,
|
|
137
|
+
hook_registration: false,
|
|
138
|
+
shell_interception: false,
|
|
139
|
+
cross_project_share: false,
|
|
140
|
+
allowed_followup: ['learning_promotion_preview', 'manual_review', 'vibe-writing-skills'],
|
|
141
|
+
boundary_assertions: learningObservationBoundaryAssertions(),
|
|
142
|
+
writes: false,
|
|
143
|
+
local_only: true,
|
|
144
|
+
no_skill_mutation: true,
|
|
145
|
+
no_prompt_mutation: true,
|
|
146
|
+
no_cross_project_share: true,
|
|
147
|
+
};
|
|
148
|
+
return { ...payload, candidate_instinct_preview_digest: digestObject(payload) };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function buildLearningRunObservationPreview({ input, source, rootName, statePresent = false, digestObject, stableStringify }) {
|
|
152
|
+
const observation = buildObservationPreview({ input, source, rootName, digestObject, stableStringify });
|
|
153
|
+
const candidate = buildCandidatePreview(observation, digestObject);
|
|
154
|
+
const adviceBoundary = learningAdviceBoundaryAssertions();
|
|
155
|
+
return {
|
|
156
|
+
mode: 'learning-run-observation-preview',
|
|
157
|
+
ok: observation.status === 'observation_recorded',
|
|
158
|
+
state_present: Boolean(statePresent),
|
|
159
|
+
source: { file: source.relative, digest: source.digest, input_kind: String(input.mode || input.command || 'local-json') },
|
|
160
|
+
learning_observation_preview: observation,
|
|
161
|
+
candidate_instinct_preview: candidate,
|
|
162
|
+
promotion_boundary: {
|
|
163
|
+
promotion_target: 'manual-skill-authoring',
|
|
164
|
+
required_workflow: ['vibe-writing-skills', 'vibe-writing-plans', 'vibe-test-driven-development', 'vibe-review'],
|
|
165
|
+
human_approval_required: true,
|
|
166
|
+
automatic_promotion: false,
|
|
167
|
+
writes_formal_skills: false,
|
|
168
|
+
writes_agents_md: false,
|
|
169
|
+
writes_claude_md: false,
|
|
170
|
+
},
|
|
171
|
+
safety: {
|
|
172
|
+
stage: 'Stage 61/62 preview',
|
|
173
|
+
writes: false,
|
|
174
|
+
learning_observation_artifact: false,
|
|
175
|
+
candidate_instinct_artifact: false,
|
|
176
|
+
learning_promotion_artifact: false,
|
|
177
|
+
state_directory_created: false,
|
|
178
|
+
...learningObservationBoundaryAssertions(),
|
|
179
|
+
...adviceBoundary,
|
|
180
|
+
},
|
|
181
|
+
quality: [...observation.blocked_reasons, ...candidate.blocked_reasons],
|
|
182
|
+
action: 'learning observation and candidate instinct were previewed read-only from one local JSON input. No state directory, learning sidecar, formal skill, prompt, hook, shell, git, worktree, platform API, external network, model, subagent, MCP, daemon, or business source mutation occurred.',
|
|
183
|
+
};
|
|
184
|
+
}
|