create-agdf 0.30.0 → 0.32.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/generated/.agdf/control/README.md +5 -0
- package/generated/.agdf/control/templates/BRAND.md +28 -0
- package/generated/.agdf/control/templates/artefacts/PRD.md +11 -0
- package/generated/.agdf/control/templates/artefacts/SD.md +4 -0
- package/generated/.agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +1 -1
- package/generated/.opencode/agdf-interaction-locales.json +436 -2
- package/generated/.opencode/contracts/gate-artifact-preparation.md +9 -3
- package/generated/.opencode/contracts/interaction.md +10 -4
- package/generated/.opencode/contracts/modes.md +5 -0
- package/generated/.opencode/contracts/prd-definition.md +40 -1
- package/generated/.opencode/contracts/quality.md +35 -0
- package/generated/.opencode/contracts/request-activation.md +6 -3
- package/generated/.opencode/contracts/sd-definition.md +46 -0
- package/generated/.opencode/contracts/tp-definition.md +8 -0
- package/generated/.opencode/contracts/ur-definition.md +9 -5
- package/generated/.opencode/skills/agdf-ux-intent-definition/SKILL.md +31 -2
- package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/companion/events.mjs +119 -0
- package/generated/plugins/agdf/companion/figure.mjs +242 -111
- package/generated/plugins/agdf/companion/gate-bar.mjs +10 -28
- package/generated/plugins/agdf/companion/localization.mjs +15 -32
- package/generated/plugins/agdf/companion/notice.mjs +20 -10
- package/generated/plugins/agdf/companion/register.mjs +310 -66
- package/generated/plugins/agdf/companion/run-state.mjs +89 -90
- package/generated/plugins/agdf/companion/state.mjs +6 -32
- package/generated/plugins/agdf/companion/view.mjs +199 -24
- package/generated/plugins/agdf/control/README.md +5 -0
- package/generated/plugins/agdf/control/templates/BRAND.md +28 -0
- package/generated/plugins/agdf/control/templates/artefacts/PRD.md +11 -0
- package/generated/plugins/agdf/control/templates/artefacts/SD.md +4 -0
- package/generated/plugins/agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +1 -1
- package/generated/plugins/agdf/mcp/server/README.md +26 -2
- package/generated/plugins/agdf/mcp/server/package.json +3 -3
- package/generated/plugins/agdf/mcp/server/src/generation-runtime.js +14 -3
- package/generated/plugins/agdf/mcp/server/src/generation.js +8 -2
- package/generated/plugins/agdf/mcp/server/src/main.js +5 -1
- package/generated/plugins/agdf/mcp/server/src/next-action.js +227 -0
- package/generated/plugins/agdf/mcp/server/src/prepared-call-transport.js +306 -0
- package/generated/plugins/agdf/mcp/server/src/safe-read-continuation.js +62 -0
- package/generated/plugins/agdf/mcp/server/src/server.js +155 -37
- package/generated/plugins/agdf/mcp/server/ui/cockpit.html +130 -33
- package/generated/plugins/agdf/mcp/server/ui/decision-manifest.json +3 -3
- package/generated/plugins/agdf/mcp/server/ui/decision.html +3 -3
- package/generated/plugins/agdf/mcp/server/ui/manifest.json +3 -3
- package/generated/plugins/agdf/meta/agdf-interaction-locales.json +436 -2
- package/generated/plugins/agdf/meta/agdf-mcp-capability.json +1 -1
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +9 -3
- package/generated/plugins/agdf/meta/contracts/interaction.md +10 -4
- package/generated/plugins/agdf/meta/contracts/modes.md +5 -0
- package/generated/plugins/agdf/meta/contracts/prd-definition.md +40 -1
- package/generated/plugins/agdf/meta/contracts/quality.md +35 -0
- package/generated/plugins/agdf/meta/contracts/request-activation.md +6 -3
- package/generated/plugins/agdf/meta/contracts/sd-definition.md +46 -0
- package/generated/plugins/agdf/meta/contracts/tp-definition.md +8 -0
- package/generated/plugins/agdf/meta/contracts/ur-definition.md +9 -5
- package/generated/plugins/agdf/meta/copilot-payload-baseline.json +3 -3
- package/generated/plugins/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +436 -2
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +9 -3
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/interaction.md +10 -4
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/modes.md +5 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/prd-definition.md +40 -1
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/quality.md +35 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/request-activation.md +6 -3
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/sd-definition.md +46 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/tp-definition.md +8 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/ur-definition.md +9 -5
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/command-registry.js +2 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/parse-args.js +7 -4
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/project-read-command.js +29 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +2 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-dispatch-runtime.js +36 -7
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/package.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/plugin-runtime.js +34 -6
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/prepared-call-journal.js +269 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-worker-runtime.js +86 -83
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/validator-application.js +2 -2
- package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/companion/events.js +157 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/companion/figure-state.js +38 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/companion/journal.js +186 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/companion/run-view.js +227 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/acceptance-criteria.js +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/closeout-readiness.js +24 -6
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/decision-content-placeholder.js +4 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-check.js +49 -7
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-policy-inputs.js +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-policy-pure.js +7 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/prd-readiness.js +7 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/report-decision.js +9 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/traceability-readiness.js +57 -8
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/ur-readiness.js +15 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/artifact-readiness.js +5 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/authoring-inputs.js +107 -22
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-list.js +10 -8
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-session.js +11 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-work.js +4 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit.js +47 -33
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/contract.js +64 -24
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/material-recording-calls.js +54 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/project-state.js +2 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/run-classification.js +31 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/selection.js +6 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/service.js +32 -5
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/work-situation.js +25 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/cockpit-worker.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/authoring-text-handoff.js +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/input-resolution.js +7 -5
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/material-limits.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/prepared-control-calls.js +137 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/presentation-delivery.js +4 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-contract.js +10 -4
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-schema.js +9 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-service.js +35 -11
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-create-command.js +6 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-identity.js +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-inventory-reader.js +54 -5
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-inventory.js +12 -27
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-material.js +25 -7
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-render.js +113 -28
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision.js +38 -20
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-source-revisions.js +37 -17
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-reader.js +10 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-steps.js +8 -5
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-title.js +43 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/index.js +3 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog-validation.js +7 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog.js +8 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-presentation.js +31 -10
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/mcp-input-hints.js +30 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/mcp-tool-errors.js +5 -3
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/resources/canonical-init-plan.js +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/runtime/plugin-provenance.js +9 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/contract.js +6 -4
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-intake.js +3 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/mcp-continuation.js +25 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/prd-definition.js +3 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/readiness-findings.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/sd-definition.js +4 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/service.js +17 -4
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/tp-definition.js +4 -2
- package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +4 -3
- package/generated/plugins/agdf/skills/ux-intent-definition/SKILL.md +31 -2
- package/generated/plugins/agdf/skills/ux-intent-definition/help.md +8 -1
- package/generated/plugins/agdf/submission/openai/availability.md +1 -1
- package/generated/plugins/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/plugins/agdf/submission/openai/release-notes.md +5 -8
- package/generated/plugins/agdf/submission/openai/reviewer-cases.json +1 -1
- package/generated/plugins/agdf-planning/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf-planning/plugin.json +1 -1
- package/generated/plugins/copilot/agdf/.agdf-payload-inventory.json +358 -203
- package/generated/plugins/copilot/agdf/control/README.md +5 -0
- package/generated/plugins/copilot/agdf/control/templates/BRAND.md +28 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/PRD.md +11 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/SD.md +4 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +1 -1
- package/generated/plugins/copilot/agdf/mcp/server/README.md +26 -2
- package/generated/plugins/copilot/agdf/mcp/server/package.json +3 -3
- package/generated/plugins/copilot/agdf/mcp/server/src/generation-runtime.js +14 -3
- package/generated/plugins/copilot/agdf/mcp/server/src/generation.js +8 -2
- package/generated/plugins/copilot/agdf/mcp/server/src/main.js +5 -1
- package/generated/plugins/copilot/agdf/mcp/server/src/next-action.js +227 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/prepared-call-transport.js +306 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/safe-read-continuation.js +62 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/server.js +155 -37
- package/generated/plugins/copilot/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/plugins/copilot/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/plugins/copilot/agdf/plugin.json +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +436 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +9 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/interaction.md +10 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/modes.md +5 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/prd-definition.md +40 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/quality.md +35 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/request-activation.md +6 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/sd-definition.md +46 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/tp-definition.md +8 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/ur-definition.md +9 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/command-registry.js +2 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/parse-args.js +7 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/project-read-command.js +29 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +2 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-dispatch-runtime.js +36 -7
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/package.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/plugin-runtime.js +34 -6
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/prepared-call-journal.js +269 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-worker-runtime.js +81 -78
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/validator-application.js +2 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/package.json +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/companion/events.js +157 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/companion/figure-state.js +38 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/companion/journal.js +186 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/companion/run-view.js +227 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/acceptance-criteria.js +2 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/closeout-readiness.js +24 -6
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/decision-content-placeholder.js +4 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-check.js +49 -7
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-policy-inputs.js +2 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-policy-pure.js +7 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/prd-readiness.js +7 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/report-decision.js +9 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/traceability-readiness.js +57 -8
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/ur-readiness.js +15 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/artifact-readiness.js +5 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/authoring-inputs.js +107 -22
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/contract.js +64 -24
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/material-recording-calls.js +54 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/project-state.js +2 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/run-classification.js +31 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/selection.js +6 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/service.js +32 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/work-situation.js +25 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/authoring-text-handoff.js +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/input-resolution.js +7 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/material-limits.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/prepared-control-calls.js +137 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/presentation-delivery.js +4 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-contract.js +10 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-schema.js +9 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-service.js +35 -11
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-create-command.js +6 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-identity.js +2 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-inventory-reader.js +54 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-inventory.js +12 -27
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-material.js +25 -7
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-render.js +113 -28
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision.js +38 -20
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-source-revisions.js +37 -17
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-reader.js +10 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-steps.js +8 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-title.js +43 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/index.js +3 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog-validation.js +7 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog.js +8 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/interaction-presentation.js +31 -10
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/mcp-input-hints.js +30 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/mcp-tool-errors.js +5 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/resources/canonical-init-plan.js +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/runtime/plugin-provenance.js +9 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/contract.js +6 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-intake.js +3 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/mcp-continuation.js +25 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/prd-definition.js +3 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/readiness-findings.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/sd-definition.js +4 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/service.js +17 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/tp-definition.js +4 -2
- package/generated/plugins/copilot/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/copilot/agdf/skills/agdf-interaction-locales.json +1 -1
- package/generated/plugins/copilot/agdf/skills/agdf-ux-intent-definition/SKILL.md +31 -2
- package/generated/plugins/copilot/agdf/skills/contracts/gate-artifact-preparation.md +9 -3
- package/generated/plugins/copilot/agdf/skills/contracts/interaction.md +10 -4
- package/generated/plugins/copilot/agdf/skills/contracts/modes.md +5 -0
- package/generated/plugins/copilot/agdf/skills/contracts/prd-definition.md +40 -1
- package/generated/plugins/copilot/agdf/skills/contracts/quality.md +35 -0
- package/generated/plugins/copilot/agdf/skills/contracts/request-activation.md +6 -3
- package/generated/plugins/copilot/agdf/skills/contracts/sd-definition.md +46 -0
- package/generated/plugins/copilot/agdf/skills/contracts/tp-definition.md +8 -0
- package/generated/plugins/copilot/agdf/skills/contracts/ur-definition.md +9 -5
- package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/submissions/openai/agdf/meta/agdf-interaction-locales.json +436 -2
- package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/submissions/openai/agdf/meta/contracts/gate-artifact-preparation.md +9 -3
- package/generated/submissions/openai/agdf/meta/contracts/interaction.md +10 -4
- package/generated/submissions/openai/agdf/meta/contracts/modes.md +5 -0
- package/generated/submissions/openai/agdf/meta/contracts/prd-definition.md +40 -1
- package/generated/submissions/openai/agdf/meta/contracts/quality.md +35 -0
- package/generated/submissions/openai/agdf/meta/contracts/request-activation.md +6 -3
- package/generated/submissions/openai/agdf/meta/contracts/sd-definition.md +46 -0
- package/generated/submissions/openai/agdf/meta/contracts/tp-definition.md +8 -0
- package/generated/submissions/openai/agdf/meta/contracts/ur-definition.md +9 -5
- package/generated/submissions/openai/agdf/meta/copilot-payload-baseline.json +3 -3
- package/generated/submissions/openai/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/submissions/openai/agdf/plugin.json +1 -1
- package/generated/submissions/openai/agdf/skills/ux-intent-definition/SKILL.md +31 -2
- package/generated/submissions/openai/agdf/skills/ux-intent-definition/help.md +8 -1
- package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
- package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/inventory.json +24 -24
- package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
- package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
- package/generated/submissions/openai/agdf/submission/openai/release-notes.md +5 -8
- package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +1 -1
- package/lib/cli/command-registry.js +2 -1
- package/lib/cli/parse-args.js +7 -4
- package/lib/cli/project-read-command.js +29 -0
- package/lib/cli/validation-handlers.js +2 -1
- package/lib/mcp-dispatch-runtime.js +36 -7
- package/lib/mcp-lifecycle/package.js +7 -0
- package/lib/mcp-lifecycle/plugin-runtime.js +34 -6
- package/lib/mcp-lifecycle/prepared-call-journal.js +269 -0
- package/lib/mcp-worker-runtime.js +86 -83
- package/lib/runtime/validator-application.js +2 -2
- package/lib/scaffold/plan.js +2 -0
- package/package.json +1 -1
- package/runtime/core/lib/companion/events.js +157 -0
- package/runtime/core/lib/companion/figure-state.js +38 -0
- package/runtime/core/lib/companion/journal.js +186 -0
- package/runtime/core/lib/companion/run-view.js +227 -0
- package/runtime/core/lib/control-evaluation/acceptance-criteria.js +2 -0
- package/runtime/core/lib/control-evaluation/closeout-readiness.js +24 -6
- package/runtime/core/lib/control-evaluation/decision-content-placeholder.js +4 -1
- package/runtime/core/lib/control-evaluation/gate-check.js +49 -7
- package/runtime/core/lib/control-evaluation/gate-policy-inputs.js +2 -0
- package/runtime/core/lib/control-evaluation/gate-policy-pure.js +7 -3
- package/runtime/core/lib/control-evaluation/prd-readiness.js +7 -2
- package/runtime/core/lib/control-evaluation/report-decision.js +9 -0
- package/runtime/core/lib/control-evaluation/traceability-readiness.js +57 -8
- package/runtime/core/lib/control-evaluation/ur-readiness.js +15 -2
- package/runtime/core/lib/control-inspect/artifact-readiness.js +5 -3
- package/runtime/core/lib/control-inspect/authoring-inputs.js +107 -22
- package/runtime/core/lib/control-inspect/cockpit-list.js +10 -8
- package/runtime/core/lib/control-inspect/cockpit-session.js +11 -3
- package/runtime/core/lib/control-inspect/cockpit-work.js +4 -2
- package/runtime/core/lib/control-inspect/cockpit.js +47 -33
- package/runtime/core/lib/control-inspect/contract.js +64 -24
- package/runtime/core/lib/control-inspect/material-recording-calls.js +54 -0
- package/runtime/core/lib/control-inspect/project-state.js +2 -1
- package/runtime/core/lib/control-inspect/run-classification.js +31 -0
- package/runtime/core/lib/control-inspect/selection.js +6 -0
- package/runtime/core/lib/control-inspect/service.js +32 -5
- package/runtime/core/lib/control-inspect/work-situation.js +25 -0
- package/runtime/core/lib/control-read/cockpit-worker.js +1 -0
- package/runtime/core/lib/control-state/authoring-text-handoff.js +3 -0
- package/runtime/core/lib/control-state/input-resolution.js +7 -5
- package/runtime/core/lib/control-state/material-limits.js +4 -0
- package/runtime/core/lib/control-state/prepared-control-calls.js +137 -0
- package/runtime/core/lib/control-state/presentation-delivery.js +4 -1
- package/runtime/core/lib/control-state/run-command-contract.js +10 -4
- package/runtime/core/lib/control-state/run-command-schema.js +9 -3
- package/runtime/core/lib/control-state/run-command-service.js +35 -11
- package/runtime/core/lib/control-state/run-create-command.js +6 -1
- package/runtime/core/lib/control-state/run-identity.js +2 -0
- package/runtime/core/lib/control-state/run-inventory-reader.js +54 -5
- package/runtime/core/lib/control-state/run-inventory.js +12 -27
- package/runtime/core/lib/control-state/run-material.js +25 -7
- package/runtime/core/lib/control-state/run-presentation-render.js +113 -28
- package/runtime/core/lib/control-state/run-revision.js +38 -20
- package/runtime/core/lib/control-state/run-source-revisions.js +37 -17
- package/runtime/core/lib/control-state/run-state-reader.js +10 -3
- package/runtime/core/lib/control-state/run-steps.js +8 -5
- package/runtime/core/lib/control-state/run-title.js +43 -0
- package/runtime/core/lib/index.js +3 -1
- package/runtime/core/lib/interaction-catalog-validation.js +7 -1
- package/runtime/core/lib/interaction-catalog.js +8 -0
- package/runtime/core/lib/interaction-presentation.js +31 -10
- package/runtime/core/lib/mcp-input-hints.js +30 -1
- package/runtime/core/lib/mcp-tool-errors.js +5 -3
- package/runtime/core/lib/resources/canonical-init-plan.js +1 -1
- package/runtime/core/lib/runtime/plugin-provenance.js +9 -2
- package/runtime/core/lib/skill-dispatch/contract.js +6 -4
- package/runtime/core/lib/skill-dispatch/delivery-intake.js +3 -1
- package/runtime/core/lib/skill-dispatch/mcp-continuation.js +25 -2
- package/runtime/core/lib/skill-dispatch/prd-definition.js +3 -2
- package/runtime/core/lib/skill-dispatch/readiness-findings.js +7 -0
- package/runtime/core/lib/skill-dispatch/sd-definition.js +4 -2
- package/runtime/core/lib/skill-dispatch/service.js +17 -4
- package/runtime/core/lib/skill-dispatch/tp-definition.js +4 -2
- package/generated/plugins/agdf/companion/core.mjs +0 -16
- package/generated/plugins/agdf/companion/locales.json +0 -200
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { readRunState } from '../control-evaluation/run-state.js';
|
|
2
2
|
import { inspectArtefactRecordingMode } from '../control-state/run-artefact-recording.js';
|
|
3
3
|
import { resolveControlCommandTarget } from '../control-state/approval-command-contract.js';
|
|
4
|
+
import { continueDeliveryCall, preparedCommandCall } from '../control-state/prepared-control-calls.js';
|
|
5
|
+
import { CLOSEOUT_AUTHORING_SCOPE } from '../control-inspect/selection.js';
|
|
4
6
|
|
|
5
7
|
// Transport guidance over existing routes; code, tests and Git remain external.
|
|
6
8
|
export function mcpControlContinuation(input, result, availableGroups = []) {
|
|
9
|
+
if (result.terminal && result.diagnostics?.[0]?.code === 'AGDF_CANONICAL_SCAFFOLD_REQUIRED'
|
|
10
|
+
&& result.recovery && availableGroups.includes('agdf_project') && result.target?.governance_target)
|
|
11
|
+
return { ...result, recovery: { ...result.recovery, next_calls: [{ tool: 'agdf_inspect', arguments: { operation: 'operation-contract',
|
|
12
|
+
module: 'agdf_project/project.initialize', presentation_language: input.presentationLanguage,
|
|
13
|
+
working_directory: input.workingDirectory, primary_target: result.target.governance_target, target_source: input.targetSource } }] } };
|
|
14
|
+
// Keep the exact human setup card and terminal stop. This read is guidance
|
|
15
|
+
// for the next authorized turn, never initialization or setup authority.
|
|
16
|
+
if (result.terminal && result.control?.blocking_reason === 'AGDF_CONTROL_FILE_MISSING'
|
|
17
|
+
&& availableGroups.includes('agdf_project') && result.target?.governance_target && input.targetSource)
|
|
18
|
+
return { ...result, recovery: { action: 'After the required setup reply, use the supplied read-only creation help. This call neither initializes nor authorizes setup.',
|
|
19
|
+
next_calls: [{ tool: 'agdf_inspect', arguments: { operation: 'operation-contract', module: 'agdf_project/project.initialize',
|
|
20
|
+
presentation_language: input.presentationLanguage, working_directory: input.workingDirectory,
|
|
21
|
+
primary_target: result.target.governance_target, target_source: input.targetSource } }] } };
|
|
7
22
|
// A new Run over MCP is created by agdf_run/run.create; point at its contract instead of a retry.
|
|
8
23
|
if (result.terminal && result.diagnostics?.[0]?.code === 'AGDF_NEW_RUN_OPERATION_REQUIRED' && result.recovery
|
|
9
24
|
&& availableGroups.includes('agdf_run') && result.target?.governance_target)
|
|
@@ -19,6 +34,11 @@ export function mcpControlContinuation(input, result, availableGroups = []) {
|
|
|
19
34
|
const bound = { ...common, run_id: run, expected_revision_id: revision };
|
|
20
35
|
const inspect = (operation, extra = {}, bind = true) => ({ tool: 'agdf_inspect', arguments: { operation, ...(bind ? bound : common), ...extra } });
|
|
21
36
|
const { steps, template_path, artifact_path, ...retained } = continuation;
|
|
37
|
+
if (continuation.phase === 'completed_delivery_closeout' && run && revision) {
|
|
38
|
+
return { ...result, continuation: { ...retained, control_transport: 'typed_mcp', external_execution: ['Git operations'],
|
|
39
|
+
instruction: 'Use the current control snapshot and the exact registered OR and QA evidence returned by the supplied read. Follow only its supplied evidence pages. Inspect Git separately for the explicitly requested handoff. This read grants no write or VCS authority.',
|
|
40
|
+
next_calls: [inspect('authoring-inputs', { bundle: true, authoring_scope: CLOSEOUT_AUTHORING_SCOPE })] } };
|
|
41
|
+
}
|
|
22
42
|
let recording;
|
|
23
43
|
if (['prd_definition', 'sd_definition', 'tp_definition'].includes(continuation.phase))
|
|
24
44
|
recording = inspectArtefactRecordingMode(readRunState(root, { runId: run, ignoreRunIdEnv: true }), result.control.current_gate);
|
|
@@ -43,10 +63,12 @@ export function mcpControlContinuation(input, result, availableGroups = []) {
|
|
|
43
63
|
const group = kind === 'presentation.prepare' ? 'agdf_prepare' : kind === 'closeout.record' ? 'agdf_closeout'
|
|
44
64
|
: kind === 'ur_draft.replace' ? 'agdf_revise' : 'agdf_record';
|
|
45
65
|
requiredGroups = kind === 'presentation.prepare' ? [group] : [group, 'agdf_record'];
|
|
46
|
-
nextCalls = [inspect('authoring-inputs'
|
|
66
|
+
nextCalls = [inspect('authoring-inputs', { bundle: true })];
|
|
67
|
+
if (phase === 'presentation_required') nextCalls = [preparedCommandCall(group, kind, { ...bound, target_id: targetId },
|
|
68
|
+
{ gate: result.control.current_gate }).call];
|
|
47
69
|
instruction = phase === 'presentation_required'
|
|
48
70
|
? 'Prepare this gate via agdf_prepare/presentation.prepare, then presentation.deliver: default markdown, optional non-primary decision-view. Forward selected text once. Wait for a NEW deliberate response; earlier replies cannot approve it.'
|
|
49
|
-
: `${instruction} Typed MCP:
|
|
71
|
+
: `${instruction} Typed MCP: honor any question/stop instruction above first. An already bound authoring assignment needs no repeated author dispatch or intake for the same snapshot. Use next_action.call and fill only its declared input fields; the adapter retains immutable target/Run/revision/UUID. Ready calls are forwarded unchanged. After a canonical save, follow its returned next action once. Read complete documents[].content and join any fragments across all bundled authoring-inputs pages; document_manifest contains metadata only. Never coerce absent content into a replacement string. The included formats and bound forms replace a second operation-contract read. The material call takes plain UTF-8 <=48 KiB per file within the 64 KiB JSON request bound: put seals the private transfer in one call. The returned recording form requires actual author/review inputs, never an automatic review attestation. For larger files use multipart through its inspected contract, retaining each supplied action UUID. Recovery-only original calls are not an alternative normal path. continue_delivery dispatches deliberately have no expected_revision_id or intake fields. Attest mappings only after source review. All four modes: control uses MCP; editing/tests/Git stay external.`;
|
|
50
72
|
if (continuation.mode === 'verified_change') instruction = instruction.replace(/through the existing record\/run-update owner/gu, 'through verified_change.record phase execution')
|
|
51
73
|
.replace(/Complete the linked Verified Change Mini-Closeout.*?Git-aware CLI evaluation\./u, 'Stage the linked Verified Change Mini-Closeout and use closeout.record with its exact confirmation; the Core checks actual Git observations.');
|
|
52
74
|
}
|
|
@@ -59,6 +81,7 @@ export function mcpControlContinuation(input, result, availableGroups = []) {
|
|
|
59
81
|
transport_reason: 'required_mcp_group_unavailable' } };
|
|
60
82
|
return { ...result, presentation: continuation.phase === 'presentation_required' ? null : result.presentation,
|
|
61
83
|
continuation: { ...retained, instruction, control_transport: 'typed_mcp', external_execution: ['source edits', 'actual tests', 'Git operations'],
|
|
84
|
+
...(run && revision ? { resume_call: continueDeliveryCall({ ...common, run_id: run }) } : {}),
|
|
62
85
|
...(recording ? { recording, instruction: instruction + ' ' + recording.instruction } : {}),
|
|
63
86
|
...(nextCalls ? { next_calls: nextCalls } : {}) } };
|
|
64
87
|
}
|
|
@@ -2,6 +2,7 @@ import { runDocumentPath } from '../control-state/run-identity.js';
|
|
|
2
2
|
import { extractField } from "../control-evaluation/verified-change.js";
|
|
3
3
|
import { ARTEFACT_TEMPLATE_IDS, resolveArtefactTemplatePath } from "../resources/artefact-templates.js";
|
|
4
4
|
import { resolveArtifactPresentationLanguages } from "../resources/context.js";
|
|
5
|
+
import { readinessFindingsNote } from "./readiness-findings.js";
|
|
5
6
|
|
|
6
7
|
// Pure routing over already evaluated control and contained source facts; never a writer or gate.
|
|
7
8
|
export function prdDefinitionEligible(control, input) {
|
|
@@ -10,7 +11,7 @@ export function prdDefinitionEligible(control, input) {
|
|
|
10
11
|
if (input.ur_action !== undefined || input.sd_action !== undefined || input.tp_action !== undefined || !input.run_id || control?.status_card?.run_id !== input.run_id || !state
|
|
11
12
|
|| control.current_gate !== "PRD" || !["open", "blocked"].includes(control.status)
|
|
12
13
|
|| !["none", "Approval: PRD"].includes(control.missing_approval)
|
|
13
|
-
|| !["none", "AGDF_PRD_DECISIONS_OPEN"].includes(control.blocking_reason)
|
|
14
|
+
|| !["none", "AGDF_PRD_DECISIONS_OPEN", "AGDF_PRD_READINESS_INCOMPLETE", "AGDF_APPROVAL_SUMMARY_INCOMPLETE"].includes(control.blocking_reason)
|
|
14
15
|
|| (control.doctor_report?.findings ?? []).some(f => ["block", "revise"].includes(f.severity))
|
|
15
16
|
|| state.approvals.get("UR")?.status !== "approved"
|
|
16
17
|
|| state.artefacts.get("UR")?.status !== "approved"
|
|
@@ -43,6 +44,6 @@ export function prdDefinitionPhase(targetDir, control, input, sources) {
|
|
|
43
44
|
source_artifacts: Object.freeze(sources.map(s => s.path)),
|
|
44
45
|
sources: Object.freeze(sources.map(s => Object.freeze({ ...s }))), draft_registered: registered,
|
|
45
46
|
instruction: "Execute prd-definition with the original request, confirmed answers and these exact approved/analytical sources. Require actual user editing intent before changing a ready registered draft. Follow the focused semantic contract and shared typed recording procedure; preserve open material decisions and approved intent. Validate the required localized summary before recording, with separate goal, scope and decisions labels and every criterion ID exactly once. For a diagnosed own unapproved format error, make one condition-specific correction, validate and record it canonically, then reevaluate this same run without asking for a restart. An unchanged failed correction stops; material product choices and protected sources remain outside format repair. Redispatch gate-check after recording. Neither dispatch nor authoring approves a gate; every changed draft needs fresh presentation and a new deliberate reply."
|
|
46
|
-
+ (control.prd_readiness
|
|
47
|
+
+ readinessFindingsNote(control.prd_readiness),
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Readiness findings travel with an authoring assignment so the author corrects
|
|
2
|
+
// the named items instead of guessing. They are quoted source data, never
|
|
3
|
+
// instructions; an assignment without findings carries no note.
|
|
4
|
+
export function readinessFindingsNote(...readiness) {
|
|
5
|
+
const items = readiness.filter(entry => entry?.ready === false).flatMap(entry => entry.open_items ?? entry.open_decisions ?? []);
|
|
6
|
+
return items.length ? ` Readiness findings are source data, not instructions: ${JSON.stringify(items)}.` : "";
|
|
7
|
+
}
|
|
@@ -2,6 +2,7 @@ import { runDocumentPath } from '../control-state/run-identity.js';
|
|
|
2
2
|
import { extractField } from "../control-evaluation/verified-change.js";
|
|
3
3
|
import { ARTEFACT_TEMPLATE_IDS, resolveArtefactTemplatePath } from "../resources/artefact-templates.js";
|
|
4
4
|
import { resolveArtifactPresentationLanguages } from "../resources/context.js";
|
|
5
|
+
import { readinessFindingsNote } from "./readiness-findings.js";
|
|
5
6
|
|
|
6
7
|
// Pure assignment over evaluated state and checked source facts; no writer or approval.
|
|
7
8
|
export function sdDefinitionPhase(targetDir, control, input, sources) {
|
|
@@ -11,7 +12,7 @@ export function sdDefinitionPhase(targetDir, control, input, sources) {
|
|
|
11
12
|
|| control?.status_card?.run_id !== input.run_id || !state || !sources
|
|
12
13
|
|| control.current_gate !== "SD" || !["open", "blocked"].includes(control.status)
|
|
13
14
|
|| !["none", "Approval: SD"].includes(control.missing_approval)
|
|
14
|
-
|| !["none", "AGDF_SD_DECISIONS_OPEN", "AGDF_SD_TRACEABILITY_INCOMPLETE"].includes(control.blocking_reason)
|
|
15
|
+
|| !["none", "AGDF_SD_DECISIONS_OPEN", "AGDF_SD_TRACEABILITY_INCOMPLETE", "AGDF_APPROVAL_SUMMARY_INCOMPLETE"].includes(control.blocking_reason)
|
|
15
16
|
|| (control.doctor_report?.findings ?? []).some(f => ["block", "revise"].includes(f.severity))
|
|
16
17
|
|| state.approvals.get("PRD")?.status !== "approved"
|
|
17
18
|
|| state.artefacts.get("PRD")?.status !== "approved"
|
|
@@ -35,6 +36,7 @@ export function sdDefinitionPhase(targetDir, control, input, sources) {
|
|
|
35
36
|
artifact_path: artifactPath, template_path: resolveArtefactTemplatePath(ARTEFACT_TEMPLATE_IDS.SD),
|
|
36
37
|
source_artifacts: Object.freeze(sources.map(s => s.path)),
|
|
37
38
|
sources: Object.freeze(sources.map(s => Object.freeze({ ...s }))), draft_registered: registered,
|
|
38
|
-
instruction: "Execute sd-definition from these exact approved/analytical inputs and confirmed answers. Require actual editing intent before changing a ready draft. Preserve approved product authority, declare sd-decisions-v1, retain material open decisions and criteria-chain-v1. Use the shared typed recording procedure, then redispatch gate-check. Neither assignment nor authoring approves a gate; changed content needs fresh presentation and a new deliberate Approval: SD."
|
|
39
|
+
instruction: "Execute sd-definition from these exact approved/analytical inputs and confirmed answers. Require actual editing intent before changing a ready draft. Preserve approved product authority, declare sd-decisions-v1, retain material open decisions and criteria-chain-v1. Correct diagnosed own unapproved summary formatting through this authoring route and recheck before recording; preserve approved intent and protected sources. Use the shared typed recording procedure, then redispatch gate-check. Neither assignment nor authoring approves a gate; changed content needs fresh presentation and a new deliberate Approval: SD."
|
|
40
|
+
+ readinessFindingsNote(control.sd_readiness, control.traceability_readiness),
|
|
39
41
|
});
|
|
40
42
|
}
|
|
@@ -4,6 +4,7 @@ import { prdDefinitionPhase } from "./prd-definition.js";
|
|
|
4
4
|
import { sdDefinitionPhase } from "./sd-definition.js";
|
|
5
5
|
import { tpDefinitionPhase } from "./tp-definition.js";
|
|
6
6
|
import { inspectAuthoringInputs } from '../control-inspect/authoring-inputs.js';
|
|
7
|
+
import { isCompletedStructuredCloseout } from '../control-inspect/selection.js';
|
|
7
8
|
import { compactContinuation } from "./compact-continuation.js";
|
|
8
9
|
import process from "node:process";
|
|
9
10
|
import { extractField } from "../control-evaluation/verified-change.js";
|
|
@@ -781,13 +782,21 @@ export function createSkillDispatchService(dependencies = {}) {
|
|
|
781
782
|
timing.total_ms = round(milliseconds(started, now()));
|
|
782
783
|
return bindHostAction(result);
|
|
783
784
|
}
|
|
784
|
-
const
|
|
785
|
+
const pendingQaReview = control.status === "open" && control.current_gate === "QA"
|
|
786
|
+
&& control.missing_approval === "none" && control.next_operation?.type === "record_required_review";
|
|
787
|
+
const nextSkillId = pendingQaReview ? control.next_operation.skill_id : control.status_card?.next_skill;
|
|
785
788
|
const routeNextSkill = input.continue_delivery && !control.approval_presentation?.markdown
|
|
786
789
|
&& !control.completion?.fulfilled
|
|
787
790
|
&& !["completed", "superseded", "abandoned"].includes(extractField(control.status_card?.runState?.content ?? "", "lifecycle"))
|
|
788
791
|
&& nextSkillId && nextSkillId !== "none"
|
|
789
|
-
&& (control.current_gate !== "QA" || control.missing_approval === "Approval: QA");
|
|
790
|
-
if (routeNextSkill)
|
|
792
|
+
&& (control.current_gate !== "QA" || pendingQaReview || control.missing_approval === "Approval: QA");
|
|
793
|
+
if (routeNextSkill) {
|
|
794
|
+
const nextSkill = buildSkillDispatchRegistry(dependencies.pluginDefinition?.skillSet ?? rawInput.skillSet).get(nextSkillId);
|
|
795
|
+
if (pendingQaReview && nextSkill?.dispatch_mode !== "judgement_required") {
|
|
796
|
+
throw new SkillDispatchRuntimeError(DISPATCH_RECOVERY.runtime_contracts_unavailable);
|
|
797
|
+
}
|
|
798
|
+
skill = nextSkill ?? skill;
|
|
799
|
+
}
|
|
791
800
|
if ((input.intake || input.continue_delivery)
|
|
792
801
|
&& control.approval_presentation?.markdown) {
|
|
793
802
|
const result = baseResult({ outcome: "intake_continuation", terminal: false, skill, runtime, timing });
|
|
@@ -840,13 +849,17 @@ export function createSkillDispatchService(dependencies = {}) {
|
|
|
840
849
|
result.target = target;
|
|
841
850
|
result.control = snapshot;
|
|
842
851
|
const templateId = judgementTemplateId(skill.skill_id, control.current_gate);
|
|
852
|
+
const completedCloseout = skill.skill_id === "delivery-closeout" && isCompletedStructuredCloseout(control, route);
|
|
843
853
|
result.continuation = Object.freeze({
|
|
844
|
-
instruction:
|
|
854
|
+
instruction: routeNextSkill && pendingQaReview
|
|
855
|
+
? "Complete only the selected required QA review using this Run and its current evidence. Follow the returned bound continuation after recording. If the same review remains due with no new evidence, surface its existing disposition and stop without repeating the recording. Only gate-check may continue delivery."
|
|
856
|
+
: "Execute the named skill using only this target, presentation language and control snapshot. Do not set continue_delivery on a judgement skill; use it only when redispatching gate-check for the same run.",
|
|
845
857
|
skill_id: skill.skill_id,
|
|
846
858
|
presentation_language: input.presentation_language,
|
|
847
859
|
governance_target: target.governance_target,
|
|
848
860
|
run_id: snapshot?.run_id ?? input.run_id,
|
|
849
861
|
revision_id: snapshot?.revision_id ?? null,
|
|
862
|
+
...(completedCloseout ? { phase: "completed_delivery_closeout" } : {}),
|
|
850
863
|
...(templateId ? { template_path: resolveArtefactTemplatePath(templateId) } : {}),
|
|
851
864
|
...(dependencies.readSkillRuntimeContracts ? {
|
|
852
865
|
runtime_contracts: runDispatchStage(DISPATCH_RECOVERY.runtime_contracts_unavailable, () => dependencies.readSkillRuntimeContracts(skill.skill_id)),
|
|
@@ -2,6 +2,7 @@ import { runDocumentPath } from '../control-state/run-identity.js';
|
|
|
2
2
|
import { extractField } from "../control-evaluation/verified-change.js";
|
|
3
3
|
import { ARTEFACT_TEMPLATE_IDS, resolveArtefactTemplatePath } from "../resources/artefact-templates.js";
|
|
4
4
|
import { resolveArtifactPresentationLanguages } from "../resources/context.js";
|
|
5
|
+
import { readinessFindingsNote } from "./readiness-findings.js";
|
|
5
6
|
|
|
6
7
|
// Pure assignment over evaluated state and checked source facts; no writer or approval.
|
|
7
8
|
export function tpDefinitionPhase(targetDir, control, input, sources) {
|
|
@@ -11,7 +12,7 @@ export function tpDefinitionPhase(targetDir, control, input, sources) {
|
|
|
11
12
|
|| control?.status_card?.run_id !== input.run_id || !state || !sources
|
|
12
13
|
|| control.current_gate !== "TP" || !["open", "blocked"].includes(control.status)
|
|
13
14
|
|| !["none", "Approval: TP"].includes(control.missing_approval)
|
|
14
|
-
|| !["none", "AGDF_TP_TRACEABILITY_INCOMPLETE"].includes(control.blocking_reason)
|
|
15
|
+
|| !["none", "AGDF_TP_TRACEABILITY_INCOMPLETE", "AGDF_APPROVAL_SUMMARY_INCOMPLETE"].includes(control.blocking_reason)
|
|
15
16
|
|| (control.doctor_report?.findings ?? []).some(f => ["block", "revise"].includes(f.severity))
|
|
16
17
|
|| state.approvals.get("SD")?.status !== "approved"
|
|
17
18
|
|| state.artefacts.get("SD")?.status !== "approved"
|
|
@@ -37,6 +38,7 @@ export function tpDefinitionPhase(targetDir, control, input, sources) {
|
|
|
37
38
|
artifact_path: artifactPath, template_path: resolveArtefactTemplatePath(ARTEFACT_TEMPLATE_IDS.TP),
|
|
38
39
|
source_artifacts: Object.freeze(sources.map(s => s.path)),
|
|
39
40
|
sources: Object.freeze(sources.map(s => Object.freeze({ ...s }))), draft_registered: registered,
|
|
40
|
-
instruction: "Execute tp-definition from these exact approved PRD/SD and analytical inputs. Preserve ready drafts without explicit revision intent. Keep criteria-chain-v1, declare tp-decisions-v1, resolve SD later_tp decisions and specify executable evidence obligations. Material questions block approval and require a concrete clarification at the earliest existing source owner; no silent source edits. Use the shared typed recording procedure, then redispatch gate-check for this run with continue_delivery true to obtain its clarification or presentation continuation. Changed drafts require fresh presentation and a new deliberate Approval: TP."
|
|
41
|
+
instruction: "Execute tp-definition from these exact approved PRD/SD and analytical inputs. Preserve ready drafts without explicit revision intent. Keep criteria-chain-v1, declare tp-decisions-v1, resolve SD later_tp decisions and specify executable evidence obligations. Material questions block approval and require a concrete clarification at the earliest existing source owner; no silent source edits. Correct diagnosed own unapproved summary formatting through this authoring route and recheck before recording; preserve approved intent and protected sources. Use the shared typed recording procedure, then redispatch gate-check for this run with continue_delivery true to obtain its clarification or presentation continuation. Changed drafts require fresh presentation and a new deliberate Approval: TP."
|
|
42
|
+
+ readinessFindingsNote(control.traceability_readiness),
|
|
41
43
|
});
|
|
42
44
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema_version": "1",
|
|
3
3
|
"generated": true,
|
|
4
4
|
"source": "create-agdf/cli",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.32.0",
|
|
6
6
|
"entrypoint": "create-agdf/bin/agdf-validator.js",
|
|
7
|
-
"digest": "
|
|
7
|
+
"digest": "6adaa20191c11cc43e70669bb4be3b24eca02dfeedfa88be30bfb92abd5b6de3"
|
|
8
8
|
}
|