ai-delivery-workflow 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -8
- package/bin/ai-delivery.mjs +2 -24
- package/bin/release-check.mjs +8 -2
- package/docs/CLI-PARAMETER-REFERENCE.zh-CN.md +6 -67
- package/docs/DUAL-REPOSITORY-WORKSPACE.zh-CN.md +14 -1
- package/docs/FILE-REFERENCE.zh-CN.md +17 -36
- package/docs/MAINTENANCE-VERIFICATION.zh-CN.md +2 -2
- package/docs/NPM-RELEASE-MANAGEMENT.zh-CN.md +2 -1
- package/docs/PROJECT-MANUAL.zh-CN.md +50 -43
- package/docs/STATE-CLI-MAINTENANCE.zh-CN.md +8 -10
- package/docs/STATE-CLI-USER-GUIDE.zh-CN.md +7 -17
- package/docs/adr/0006-product-line-candidate-inventory.md +20 -0
- package/docs/agents/domain.md +31 -6
- package/docs/agents/issue-tracker.md +17 -18
- package/docs/agents/triage-labels.md +7 -7
- package/docs/agents/workflow-manager-acceptance-matrix.md +9 -15
- package/docs/agents/workflow-manager-current-state.md +14 -17
- package/lib/delivery-state.mjs +59 -910
- package/lib/fs-utils.mjs +0 -16
- package/lib/npm-auth.mjs +16 -0
- package/lib/project-bootstrap.mjs +21 -58
- package/lib/project-installer.mjs +24 -180
- package/lib/project-repair.mjs +217 -0
- package/lib/toml-hooks.mjs +2 -4
- package/lib/workflow-manager-governance.mjs +3 -47
- package/lib/workspace.mjs +2 -3
- package/package.json +2 -2
- package/skills/ai-delivery-assemble-release/SKILL.md +10 -8
- package/skills/ai-delivery-assemble-release/agents/openai.yaml +3 -3
- package/skills/ai-delivery-assemble-release/assets/release-candidate-manifest.yaml +16 -4
- package/skills/ai-delivery-assemble-release/assets/release-git-plan.yaml +96 -6
- package/skills/ai-delivery-assemble-release/assets/version-inclusion.csv +2 -2
- package/skills/ai-delivery-assemble-release/references/release-assembly-contract.md +16 -2
- package/skills/ai-delivery-assemble-release/scripts/plan-release.mjs +127 -3
- package/skills/ai-delivery-bootstrap/SKILL.md +1 -1
- package/skills/ai-delivery-bootstrap/agents/openai.yaml +3 -3
- package/skills/ai-delivery-bootstrap/references/bootstrap-contract.md +1 -1
- package/skills/ai-delivery-checkpoint-task/SKILL.md +0 -4
- package/skills/ai-delivery-checkpoint-task/agents/openai.yaml +3 -3
- package/skills/ai-delivery-checkpoint-task/references/checkpoint-contract.md +2 -2
- package/skills/ai-delivery-checkpoint-task/scripts/hook-event.mjs +2 -8
- package/skills/ai-delivery-checkpoint-task/scripts/task-state.mjs +26 -46
- package/skills/ai-delivery-close-version/agents/openai.yaml +3 -3
- package/skills/ai-delivery-define-product/agents/openai.yaml +4 -4
- package/skills/ai-delivery-deploy-production/agents/openai.yaml +3 -3
- package/skills/ai-delivery-design-experience/SKILL.md +3 -3
- package/skills/ai-delivery-design-experience/agents/openai.yaml +4 -4
- package/skills/ai-delivery-design-experience/references/experience-contract.md +1 -11
- package/skills/ai-delivery-design-experience/references/prototype-management-contract.md +1 -1
- package/skills/ai-delivery-develop-iteration/agents/openai.yaml +3 -3
- package/skills/ai-delivery-evolve-workflow/agents/openai.yaml +3 -3
- package/skills/ai-delivery-execute-test/agents/openai.yaml +4 -4
- package/skills/ai-delivery-execute-work-package/agents/openai.yaml +4 -4
- package/skills/ai-delivery-manage-git/SKILL.md +9 -7
- package/skills/ai-delivery-manage-git/agents/openai.yaml +3 -3
- package/skills/ai-delivery-manage-git/references/git-policy.md +7 -3
- package/skills/ai-delivery-manage-git/scripts/release-git.mjs +995 -0
- package/skills/ai-delivery-manage-standards/agents/openai.yaml +4 -4
- package/skills/ai-delivery-orchestrate/SKILL.md +5 -7
- package/skills/ai-delivery-orchestrate/agents/openai.yaml +3 -3
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/hooks/hook-event.mjs +2 -8
- package/skills/ai-delivery-orchestrate/assets/project-template/AGENTS.md +9 -8
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/CONTRIBUTING.md +25 -25
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/airbnb/DESIGN.md +545 -545
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/airbnb/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/airtable/DESIGN.md +554 -554
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/airtable/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/apple/DESIGN.md +562 -562
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/apple/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/binance/DESIGN.md +634 -634
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/binance/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bmw/DESIGN.md +544 -544
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bmw/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bmw-m/DESIGN.md +503 -503
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bmw-m/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bugatti/DESIGN.md +454 -454
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/bugatti/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cal/DESIGN.md +542 -542
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cal/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/claude/DESIGN.md +589 -589
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/claude/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/clay/DESIGN.md +541 -541
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/clay/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/clickhouse/DESIGN.md +544 -544
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/clickhouse/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cohere/DESIGN.md +451 -451
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cohere/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/coinbase/DESIGN.md +570 -570
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/coinbase/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/composio/DESIGN.md +506 -506
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/composio/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cursor/DESIGN.md +537 -537
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/cursor/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/dell-1996/DESIGN.md +632 -632
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/dell-1996/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/elevenlabs/DESIGN.md +504 -504
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/elevenlabs/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/expo/DESIGN.md +526 -526
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/expo/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ferrari/DESIGN.md +531 -531
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ferrari/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/figma/DESIGN.md +578 -578
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/figma/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/framer/DESIGN.md +544 -544
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/framer/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/hashicorp/DESIGN.md +575 -575
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/hashicorp/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/hp/DESIGN.md +670 -670
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/hp/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ibm/DESIGN.md +550 -550
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ibm/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/intercom/DESIGN.md +546 -546
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/intercom/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/kraken/DESIGN.md +125 -125
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/kraken/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/lamborghini/DESIGN.md +288 -288
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/lamborghini/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/linear.app/DESIGN.md +548 -548
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/linear.app/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/lovable/DESIGN.md +298 -298
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/lovable/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mastercard/DESIGN.md +365 -365
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mastercard/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/meta/DESIGN.md +683 -683
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/meta/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/minimax/DESIGN.md +746 -746
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/minimax/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mintlify/DESIGN.md +852 -852
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mintlify/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/miro/DESIGN.md +825 -825
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/miro/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mistral.ai/DESIGN.md +773 -773
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mistral.ai/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mongodb/DESIGN.md +767 -767
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/mongodb/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nike/DESIGN.md +575 -575
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nike/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nintendo-2001/DESIGN.md +649 -649
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nintendo-2001/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/notion/DESIGN.md +821 -821
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/notion/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nvidia/DESIGN.md +640 -640
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/nvidia/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ollama/DESIGN.md +539 -539
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/ollama/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/opencode.ai/DESIGN.md +521 -521
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/opencode.ai/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/pinterest/DESIGN.md +597 -597
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/pinterest/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/playstation/DESIGN.md +661 -661
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/playstation/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/posthog/DESIGN.md +690 -690
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/posthog/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/raycast/DESIGN.md +669 -669
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/raycast/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/renault/DESIGN.md +589 -589
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/renault/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/replicate/DESIGN.md +616 -616
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/replicate/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/resend/DESIGN.md +585 -585
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/resend/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/revolut/DESIGN.md +636 -636
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/revolut/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/runwayml/DESIGN.md +244 -244
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/runwayml/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/sanity/DESIGN.md +357 -357
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/sanity/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/sentry/DESIGN.md +551 -551
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/sentry/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/shopify/DESIGN.md +516 -516
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/shopify/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/slack/DESIGN.md +482 -482
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/spacex/DESIGN.md +363 -363
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/spacex/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/spotify/DESIGN.md +246 -246
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/spotify/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/starbucks/DESIGN.md +580 -580
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/starbucks/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/stripe/DESIGN.md +487 -487
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/stripe/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/supabase/DESIGN.md +462 -462
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/supabase/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/superhuman/DESIGN.md +448 -448
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/superhuman/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/tesla/DESIGN.md +286 -286
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/tesla/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/theverge/DESIGN.md +339 -339
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/theverge/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/together.ai/DESIGN.md +633 -633
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/together.ai/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/uber/DESIGN.md +636 -636
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/uber/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/vercel/DESIGN.md +736 -736
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/vercel/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/vodafone/DESIGN.md +538 -538
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/vodafone/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/voltagent/DESIGN.md +521 -521
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/voltagent/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/warp/DESIGN.md +526 -526
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/warp/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/webflow/DESIGN.md +588 -588
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/webflow/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/wired/DESIGN.md +497 -497
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/wired/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/wise/DESIGN.md +544 -544
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/wise/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/x.ai/DESIGN.md +465 -465
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/x.ai/README.md +5 -5
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/zapier/DESIGN.md +537 -537
- package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/zapier/README.md +5 -5
- package/skills/ai-delivery-orchestrate/references/formal-state-contract.md +11 -20
- package/skills/ai-delivery-orchestrate/references/workflow-model.md +2 -4
- package/skills/ai-delivery-orchestrate-release/SKILL.md +10 -10
- package/skills/ai-delivery-orchestrate-release/agents/openai.yaml +4 -4
- package/skills/ai-delivery-orchestrate-release/assets/release-request.yaml +4 -1
- package/skills/ai-delivery-orchestrate-release/assets/version-selection.yaml +13 -1
- package/skills/ai-delivery-orchestrate-release/references/release-workflow-contract.md +14 -0
- package/skills/ai-delivery-plan-iteration/agents/openai.yaml +4 -4
- package/skills/ai-delivery-prepare-platform/agents/openai.yaml +4 -4
- package/skills/ai-delivery-prepare-release/SKILL.md +6 -5
- package/skills/ai-delivery-prepare-release/agents/openai.yaml +4 -4
- package/skills/ai-delivery-prepare-release/assets/release-template/release-manifest.yaml +21 -2
- package/skills/ai-delivery-prepare-release/references/release-contract.md +5 -1
- package/skills/ai-delivery-review-change/agents/openai.yaml +4 -4
- package/skills/ai-delivery-triage-failure/agents/openai.yaml +4 -4
- package/skills/ai-delivery-validate-artifacts/agents/openai.yaml +4 -4
- package/skills/ai-delivery-verify-candidate/agents/openai.yaml +3 -3
- package/skills/ai-delivery-verify-production/SKILL.md +7 -4
- package/skills/ai-delivery-verify-production/agents/openai.yaml +3 -3
- package/skills/ai-delivery-verify-production/assets/production-verification-template/production-verification.json +9 -0
- package/skills/ai-delivery-verify-production/assets/production-verification-template/production-verification.md +20 -0
- package/skills/ai-delivery-verify-production/references/production-verification-contract.md +19 -3
- package/docs/PROTOTYPE-MIGRATION.zh-CN.md +0 -164
- package/docs/VIEWER-MAINTENANCE.zh-CN.md +0 -150
- package/docs/VIEWER-USER-GUIDE.zh-CN.md +0 -113
- package/lib/project-migration.mjs +0 -1193
- package/lib/prototype-migration.mjs +0 -713
- package/skills/ai-delivery-design-experience/assets/experience-template/LEGACY-COMPATIBILITY.md +0 -16
- package/skills/ai-delivery-design-experience/assets/experience-template/canvas-catalog.csv +0 -1
- package/skills/ai-delivery-design-experience/assets/experience-template/canvas-pages.csv +0 -1
- package/skills/ai-delivery-design-experience/assets/experience-template/page-catalog.csv +0 -1
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-file-terminals.csv +0 -1
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-files.csv +0 -1
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-manifest.yaml +0 -76
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-set.yaml +0 -24
package/skills/ai-delivery-orchestrate/assets/project-template/ref/ui/design-md/zapier/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Zapier Inspired Design System Analysis
|
|
2
|
-
|
|
3
|
-
Design system details have been moved to: https://getdesign.md/zapier/design-md
|
|
4
|
-
|
|
5
|
-
You can also view previews, dark mode examples, and download options on getdesign.md.
|
|
1
|
+
# Zapier Inspired Design System Analysis
|
|
2
|
+
|
|
3
|
+
Design system details have been moved to: https://getdesign.md/zapier/design-md
|
|
4
|
+
|
|
5
|
+
You can also view previews, dark mode examples, and download options on getdesign.md.
|
|
@@ -12,7 +12,7 @@ Use `.workflow/tools/state/state.mjs` as the only writer for:
|
|
|
12
12
|
|
|
13
13
|
Use `.agents/skills/ai-delivery-checkpoint-task/scripts/task-state.mjs` as the only writer for runtime task snapshots, checkpoints, recovery state, and version archives. Hooks may append their own redacted lifecycle records but may not infer task, artifact, Gate, node, candidate, release, or deployment completion.
|
|
14
14
|
|
|
15
|
-
Use the packaged top-level `ai-delivery
|
|
15
|
+
Use the packaged top-level `ai-delivery repair` command as the only writer for `.workflow/control/repairs/transactions/`. Repair is a checksum-chained forward transaction that records a human actor, reason, RCA evidence, and recovery evidence without rewriting immutable history.
|
|
16
16
|
|
|
17
17
|
Do not edit controlled files directly, including after a command error. Inspect, repair the cause, and rerun with the newly observed revision.
|
|
18
18
|
|
|
@@ -33,9 +33,6 @@ node .workflow/tools/state/state.mjs snapshot references --iteration-id <iterati
|
|
|
33
33
|
node .workflow/tools/state/state.mjs rebuild
|
|
34
34
|
node .workflow/tools/state/state.mjs artifact register --expected-revision <revision> --id <artifact-id> --artifact-type <type> --path <.workflow/path> --node <node-id> --status submitted --version <version> --producer-skill <skill>
|
|
35
35
|
node .workflow/tools/state/state.mjs artifact register --expected-revision <revision> --id <new-id> --path <.workflow/path> --node <node-id> --status <semantic-status> --supersedes <old-id>
|
|
36
|
-
node .workflow/tools/state/state.mjs artifact status --expected-revision <revision> --id <artifact-id> --status <status> --evidence <reference>
|
|
37
|
-
node .workflow/tools/state/state.mjs artifact compact
|
|
38
|
-
node .workflow/tools/state/state.mjs artifact compact --apply
|
|
39
36
|
node .workflow/tools/state/state.mjs artifact prune
|
|
40
37
|
node .workflow/tools/state/state.mjs artifact prune --apply
|
|
41
38
|
node .workflow/tools/state/state.mjs scope freeze --expected-scope-revision <revision> --iteration-id <iteration-id> --manifest-id <manifest-id> --slice <slice-id> --requirement <requirement-id> --acceptance <acceptance-id> --required-task <node-id>:<task-id> --required-artifact <node-id>:<artifact-id> --approved-by <actor-id> --reason <text>
|
|
@@ -52,29 +49,23 @@ node .workflow/tools/state/state.mjs gate decide --expected-scope-revision <revi
|
|
|
52
49
|
|
|
53
50
|
Repeat `--evidence` for multiple evidence IDs. Use `iteration-started` only for development and `release-started` only after explicit user release intent. Other events are `node-started`, `node-completed`, `node-blocked`, `node-unblocked`, `candidate-selected`, `release-selected`, `version-closed`, and `release-archived`.
|
|
54
51
|
|
|
55
|
-
`workflow-state.yaml` schema 2 owns independent `development_state` and `release_state` objects. Each has its own scope ID, revision, node collections, Gate collections, node attempts, and selected identities. Use the owning scope revision for workflow optimistic concurrency. The top-level revision
|
|
52
|
+
`workflow-state.yaml` schema 2 owns independent `development_state` and `release_state` objects. Each has its own scope ID, revision, node collections, Gate collections, node attempts, and selected identities. Use the owning scope revision for workflow optimistic concurrency. The top-level revision is the serialized audit-stream revision; mutations use the owning scope revision. A release may advance while later cumulative development is active; neither scope resets the other.
|
|
56
53
|
|
|
57
|
-
`version-closed` requires completed `06-version-closeout` and a registered `release-ready` artifact from that completed node; it is the only writer of `latest_line_version_id`. `release-archived` requires completed `R10-release-archive`, a registered `released` artifact from that node, and `--production-version-id`; it is the only writer of `production_version_id` and `production_release_id`. These identities live in the audited `workflow-state.yaml`; descriptive
|
|
54
|
+
`version-closed` requires completed `06-version-closeout` and a registered `release-ready` artifact from that completed node; it is the only writer of `latest_line_version_id`. `release-archived` requires completed `R10-release-archive`, a registered `released` artifact from that node, and `--production-version-id`; it is the only writer of `production_version_id` and `production_release_id`. These identities live in the audited `workflow-state.yaml`; descriptive fields in `project.yaml` are not authoritative.
|
|
58
55
|
|
|
59
|
-
##
|
|
56
|
+
## Producer And Release Contracts
|
|
60
57
|
|
|
61
|
-
The installed `development-seven-node
|
|
62
|
-
|
|
63
|
-
`UX-LF` is a retired Gate contract. New `gate request` and `gate decide` writes fail before mutation, while historical decisions and event shards remain readable and verifiable. Package upgrade previews pending `UX-LF` requests in open scopes and applies `contract retire` as a forward `gate-contract-retired` transaction executed only by `system:package-upgrade`. The transaction removes pending requests without adding a Gate decision and appends checksummed `contract_retirement_receipts`; closed iterations, archives, prior decisions, and prior event bytes are never rewritten.
|
|
64
|
-
|
|
65
|
-
Independent release work continues to use `R00-release-request` through `R10-release-archive`. Older production nodes `12-release-preparation` through `16-version-archive` are accepted only when registering or reading historical artifacts; transition and Gate commands reject them as read-only. Use artifact statuses `release-ready` for a closed unpublished version and `included-in-release` when a specific release has consumed that immutable version manifest.
|
|
58
|
+
The installed producer graph is `development-seven-node`: `00-bootstrap -> 01-product-shaping -> 02-solution-design -> 03-delivery-readiness -> 04-implementation -> 05-candidate-assurance -> 06-version-closeout`. Product Shaping owns `GATE-A` and `GATE-B`; Solution Design owns `UX-VS` and `UX-UI`. Independent release work uses `R00-release-request` through `R10-release-archive`. Use artifact statuses `release-ready` for a closed unpublished version and `included-in-release` when a specific release has consumed that immutable version manifest.
|
|
66
59
|
|
|
67
60
|
## Artifact Lifecycle And Retention
|
|
68
61
|
|
|
69
|
-
`draft` and `review-draft` are mutable working-file statuses and must not be registered. Bootstrap observations, planning inputs, prototypes, and other working drafts remain discoverable through their owning checksummed pointers or manifests until a semantic decision is made. Register only immutable semantic revisions such as `submitted`, `rejected`, `approved`, `frozen`, or `failed`. A later decision or content change creates a new file and artifact ID with `--supersedes`; it never changes a formal revision in place. Supersession is derived from the successor's relation while every predecessor field remains unchanged.
|
|
62
|
+
`draft` and `review-draft` are mutable working-file statuses and must not be registered. Bootstrap observations, planning inputs, prototypes, and other working drafts remain discoverable through their owning checksummed pointers or manifests until a semantic decision is made. Register only immutable semantic revisions such as `submitted`, `rejected`, `approved`, `frozen`, or `failed`. A later decision or content change creates a new file and artifact ID with `--supersedes`; it never changes a formal revision in place. Supersession is derived from the successor's relation while every predecessor field remains unchanged.
|
|
70
63
|
|
|
71
64
|
`artifact prune` uses the latest trusted history anchor as its retention boundary. The default command is a byte-for-byte zero-write dry-run that lists eligible `artifact-registry` shards. Only `--apply` removes shards at or before the anchored artifact revision. Apply writes one checksummed receipt under `.workflow/control/retention/artifact-registry/<anchor-id>.yaml`, retains the JSONL boundary and every post-anchor shard, and rolls staged shards back if the receipt cannot be committed. After pruning, `verify --history` reports `retained-history` and verifies the trusted anchor plus retained suffix; it must not claim that deleted pre-anchor shards were re-audited. `rebuild` starts from the latest trusted snapshots and replays only the retained suffix.
|
|
72
65
|
|
|
73
|
-
`artifact compact` is separate from retention pruning. The packaged `ai-delivery compact <project> --dry-run` route is byte-for-byte zero-write and reports the latest trusted anchor, legacy full-snapshot revision coverage, a path-and-bytes history-root digest, loose bytes, archive bytes, and expected net freed bytes. Apply packages only anchored legacy `after_value` shards into `.workflow/control/archives/history/artifact-registry/<anchor-id>.json.gz`; its checksummed manifest binds the archive, exact source entries, coverage, anchor, and registry checksum. The CLI validates the written bundle, every original entry, and a full replay before moving loose shards. Any validation failure retains all loose history. After success, `verify --history` reports `compacted-history`, validates and replays the archive, then verifies the anchored suffix. New delta records continue from the anchor's record checksum when the loose directory is empty.
|
|
74
|
-
|
|
75
66
|
## Frozen Scope And Derived Node State
|
|
76
67
|
|
|
77
|
-
Delivery Readiness freezes the approved Slice, requirement, acceptance, required-task, and required-artifact sets with `scope freeze`. The first freeze sets `scope_contract_version: 1`; every manifest revision is append-only, SHA-256 checksummed, and explicitly approved. After freeze, `scope amend` is the only scope-change path: it must name the current manifest through `--supersedes`, carry a new manifest ID, and record `--approved-by` plus `--reason`.
|
|
68
|
+
Delivery Readiness freezes the approved Slice, requirement, acceptance, required-task, and required-artifact sets with `scope freeze`. The first freeze sets `scope_contract_version: 1`; every manifest revision is append-only, SHA-256 checksummed, and explicitly approved. After freeze, `scope amend` is the only scope-change path: it must name the current manifest through `--supersedes`, carry a new manifest ID, and record `--approved-by` plus `--reason`.
|
|
78
69
|
|
|
79
70
|
`scope warn` records an exceeded Slice budget for `logical-tasks`, `active-hours`, `wall-clock-hours`, or `blocking-repair-rounds`. Its result is always `action: warn-only` and `reslice_performed: false`; it neither changes the frozen manifest nor automatically replans, reslices, or changes acceptance. A human may separately approve a `scope amend` when a real scope change is intended.
|
|
80
71
|
|
|
@@ -91,19 +82,19 @@ In the seven-node model, `04-implementation` must select an immutable candidate
|
|
|
91
82
|
5. Request and decide every required Gate with explicit actor, rationale, and registered evidence.
|
|
92
83
|
6. After Delivery Readiness, freeze the approved manifest with `scope freeze`; use only `scope amend` for a human-approved scope change and `scope warn` for a non-mutating budget warning. Read `inspect.derived_node_states` before transition.
|
|
93
84
|
7. Transition the node only after graph prerequisites are satisfied by current-scope completion or successful registered baseline evidence, completion evidence has an allowed success status, mandatory Gates for the current node attempt pass, and no Gate remains pending. Governed nodes must be `ready-to-complete`; the command writes their completion receipt.
|
|
94
|
-
8. Run routine `verify`. At ordinary task safe points, run `snapshot create --reason configured-interval`; it is a no-op until `project.yaml.formal_state_snapshot_interval` events have accumulated. At version closeout, create a version-boundary anchor. Use `verify --history --since-anchor` for the post-anchor chain. Use `verify --history` for full loose history,
|
|
85
|
+
8. Run routine `verify`. At ordinary task safe points, run `snapshot create --reason configured-interval`; it is a no-op until `project.yaml.formal_state_snapshot_interval` events have accumulated. At version closeout, create a version-boundary anchor. Use `verify --history --since-anchor` for the post-anchor chain. Use `verify --history` for full loose history, or `retained-history` when a retention receipt remains.
|
|
95
86
|
9. Checkpoint or finish the runtime task with the resulting IDs and revisions.
|
|
96
87
|
|
|
97
88
|
Artifact mutations use `--expected-revision`; workflow mutations use `--expected-scope-revision`. Independent development and release commands that were prepared from the same inspection may wait for the current formal transaction and then both commit, because each compares only its owning aggregate. Two writers of the same aggregate fail closed on its revision conflict. Never combine the two revision options. A conflict means another writer won that aggregate; inspect and reconcile before choosing a new command.
|
|
98
89
|
|
|
99
90
|
## Integrity
|
|
100
91
|
|
|
101
|
-
The CLI uses one shared formal-state lock, recoverable transactional replacement, SHA-256 artifact checksums, checksummed authoritative event shards, and append-style JSONL audit events. The shared commit section prevents concurrent streams from overwriting each other's audit append; mutation writers wait up to 30 seconds for an identifiable active writer and then re-read and compare their own aggregate. Artifact and workflow mutations use the same schema 2 delta contract: every record carries a transaction ID, idempotency key, before/after stream revisions, only the affected aggregate operations, the previous record checksum, the resulting view checksum, and its own record checksum. A transition or Gate that consumes registered evidence appends a separate relation to the registry's top-level `handoffs` collection without changing any artifact revision, and commits the workflow and artifact deltas under one transaction ID; either both streams commit or both roll back. The artifact delta carries only the new handoff relation rather than the complete relation history. Scope start commits
|
|
92
|
+
The CLI uses one shared formal-state lock, recoverable transactional replacement, SHA-256 artifact checksums, checksummed authoritative event shards, and append-style JSONL audit events. The shared commit section prevents concurrent streams from overwriting each other's audit append; mutation writers wait up to 30 seconds for an identifiable active writer and then re-read and compare their own aggregate. Artifact and workflow mutations use the same schema 2 delta contract: every record carries a transaction ID, idempotency key, before/after stream revisions, only the affected aggregate operations, the previous record checksum, the resulting view checksum, and its own record checksum. A transition or Gate that consumes registered evidence appends a separate relation to the registry's top-level `handoffs` collection without changing any artifact revision, and commits the workflow and artifact deltas under one transaction ID; either both streams commit or both roll back. The artifact delta carries only the new handoff relation rather than the complete relation history. Scope start commits the project identity in the same journal as the workflow shard, workflow view, and JSONL index. All targets are durably staged before a prepared journal is written. A caught failure rolls the whole semantic action back; after process interruption, read commands fail closed and the next locked mutation or `rebuild` rolls back a prepared journal or validates and cleans a committed journal.
|
|
102
93
|
|
|
103
|
-
Trusted formal-state snapshots live under `.workflow/control/snapshots/formal-state/<anchor-id>/`. Each anchor keeps exact workflow and registry views plus their checksums, stream revisions, record-chain heads, and the JSONL byte/event boundary; `latest.yaml` points to the current trusted anchor. The first anchor requires a successful full-history audit. Later anchors validate only the suffix from the previous trusted anchor before advancing the pointer. Routine `verify` validates the anchor and current invariants, then reads only the JSONL suffix
|
|
94
|
+
Trusted formal-state snapshots live under `.workflow/control/snapshots/formal-state/<anchor-id>/`. Each anchor keeps exact workflow and registry views plus their checksums, stream revisions, record-chain heads, and the JSONL byte/event boundary; `latest.yaml` points to the current trusted anchor. The first anchor requires a successful full-history audit. Later anchors validate only the suffix from the previous trusted anchor before advancing the pointer. Routine `verify` validates the anchor and current invariants, then reads only the JSONL suffix. `verify --history --since-anchor` also reads and replays only post-anchor shards. After retention pruning, `verify --history` verifies the trusted anchor and retained suffix and reports `retained-history`.
|
|
104
95
|
|
|
105
96
|
`snapshot references` is the single trusted projection used by `archive-version`. It validates the latest pointer, anchor, exact snapshots, target scope manifest, and selected immutable candidate under the formal read lock, then returns relative JSON Pointer references and checksums for scope, candidate, every Gate decision, and the history anchor. An optional requested candidate ID is only a consistency assertion and must equal the candidate selected in the anchored workflow state. Missing or mismatched formal evidence fails before task archive files are written; task-state code must not reimplement anchor validation or emit nullable formal references.
|
|
106
97
|
|
|
107
98
|
Formal approval is never inferred. A Gate decision requires an explicit actor, rationale, and registered evidence. A Hook event, chat message, file timestamp, UI state, or successful command alone is not approval.
|
|
108
99
|
|
|
109
|
-
Version completion never implies release intent. Registering a `release-ready` artifact or completing `06-version-closeout`
|
|
100
|
+
Version completion never implies release intent. Registering a `release-ready` artifact or completing `06-version-closeout` must not create an R-node transition. `R00-release-request` requires successful evidence registered on R00 with `artifact_type: release-request`. Mandatory active Gate IDs are `GATE-A`, `GATE-B`, `UX-VS`, `UX-UI`, and `PRODUCTION-APPROVAL`. Only a genuinely non-visual experience scope may use `not-required` for an active UX Gate; the decision must retain its experience evidence and add successful product-terminal evidence from `01-product-shaping` whose artifact type contains `terminal` (the canonical type is `product-terminal-scope`). Gate A, Gate B, and production approval require `approved`.
|
|
@@ -10,7 +10,7 @@ Formal state schema 2 separates `development_state` from `release_state`. The tw
|
|
|
10
10
|
|
|
11
11
|
`00-bootstrap -> 01-product-shaping(GATE-A -> GATE-B) -> 02-solution-design(UX-VS -> UX-UI) -> 03-delivery-readiness -> 04-implementation -> 05-candidate-assurance -> 06-version-closeout -> release-ready`
|
|
12
12
|
|
|
13
|
-
This is the installed `development-seven-node` producer route. New producer tasks, artifacts, and requested formal transitions use these node IDs.
|
|
13
|
+
This is the installed `development-seven-node` producer route. New producer tasks, artifacts, and requested formal transitions use these node IDs. Release nodes `R00-release-request` through `R10-release-archive` remain writable.
|
|
14
14
|
|
|
15
15
|
Within `03-delivery-readiness`, platform preparation may start after the initial architecture baseline and must join planning and test design before scope freeze. Within `05-candidate-assurance`, change review and candidate verification bind to the same immutable candidate. Closeout creates an immutable version-ready Tag, advances `line/<product-id>`, archives closed version tasks, and stops. It never changes `main` or starts a release.
|
|
16
16
|
|
|
@@ -20,12 +20,10 @@ The state CLI enforces graph prerequisites. A later iteration may satisfy an una
|
|
|
20
20
|
|
|
21
21
|
`R00-release-request -> R01-version-selection -> R02-release-eligibility -> R03-material-aggregation -> R04-release-candidate -> R05-release-verification -> R06-release-preparation -> R07-production-approval -> R08-production-deployment -> R09-production-verification -> R10-release-archive`
|
|
22
22
|
|
|
23
|
-
Only explicit user release intent may create R00. The user selects a cumulative target version. The system computes the continuous range after current production through that target and blocks gaps, stale candidates, backward targets, or divergence on any adjacent code or workflow commit edge. Same-version redeploy is permitted with a new release ID and fresh snapshots, verification, and approval.
|
|
23
|
+
Only explicit user release intent may create R00. The user selects a cumulative target version, and R00 freezes the request-time `main` commit. The system computes the continuous range after current production through that target and blocks gaps, stale candidates, backward targets, a moved main snapshot, or divergence on any adjacent code or workflow commit edge. Incremental release requires the target Tag to descend from the snapshot and R04 merges that one target Tag; same-version redeploy requires the target Tag to already be reachable from the snapshot and uses the snapshot as the candidate with no new merge. R09 promotes only that verified candidate, while a successful release-fix is reconciled into line before R10 archive. Same-version redeploy is permitted with a new release ID and fresh snapshots, verification, and approval.
|
|
24
24
|
|
|
25
25
|
## Gates And Transition Rules
|
|
26
26
|
|
|
27
27
|
Retain discovery Gate A, product Gate B, major architecture decisions, prototype tool selection, mandatory human `UX-VS`/`UX-UI`, standard governance, and exact-package production approval. Product reconciliation after all prototype candidates must be `valid/aligned`; intermediate handoffs use downstream contract validation.
|
|
28
28
|
|
|
29
29
|
Advance only from immutable referenced inputs. Mark dependents stale after upstream change. Preserve failed candidates, releases, Tags, and deployment records. Treat image rollback as deployment state, never Git state. On restart reconcile workspace, Git, artifacts, and external systems; never automatically replay production actions.
|
|
30
|
-
|
|
31
|
-
Legacy nodes `12-release-preparation` through `16-version-archive` remain readable only for historical audit compatibility and are not used for new work.
|
|
@@ -10,23 +10,23 @@ Coordinate `R00` through `R10`. Never infer release intent from completed versio
|
|
|
10
10
|
## Start From Explicit Intent
|
|
11
11
|
|
|
12
12
|
1. Inspect formal state and list eligible cumulative target versions with production and development-line context.
|
|
13
|
-
2. Require the user-selected target version.
|
|
13
|
+
2. Require the user-selected target version. At the same R00 request boundary, read the protected code `main` head and record it as `expected_main` together with `production_branch`, `release_id`, actor, rationale, target environment, current production version, and target version in `.workflow/releases/<release-id>/R00-release-request/`. Register it on R00 with successful status and `artifact_type: release-request` before starting the node. The snapshot is immutable for this release ID.
|
|
14
14
|
3. Run the formal `release-started` transition for that release ID. It initializes only `release_state` and must leave an active or completed `development_state` unchanged.
|
|
15
15
|
4. Permit `same-version-redeploy` when target equals production, but create a new release ID and require fresh environment capture, verification, and production approval.
|
|
16
16
|
5. Reject a target older than production. Route historical restoration to immutable-image rollback rather than release or Git history changes.
|
|
17
17
|
|
|
18
18
|
## Route Release Nodes
|
|
19
19
|
|
|
20
|
-
1. `R01-version-selection`: invoke `$ai-delivery-assemble-release` to calculate and freeze the version selection.
|
|
21
|
-
2. `R02-release-eligibility`: require continuous lineage, immutable tags, eligible artifacts, every adjacent code and workflow ancestry edge, available images, compatible migrations/configuration, and no stale candidate.
|
|
20
|
+
1. `R01-version-selection`: invoke `$ai-delivery-assemble-release` to calculate and freeze the version selection, including the R00 `main` snapshot and exactly one target `version-ready` Tag.
|
|
21
|
+
2. `R02-release-eligibility`: require continuous lineage, immutable tags, eligible artifacts, and the unchanged R00 main snapshot. For incremental release the snapshot must precede the target Tag; for same-version redeploy the target Tag must already be reachable from the snapshot. Also require every adjacent code and workflow ancestry edge, available images, compatible migrations/configuration, and no stale candidate.
|
|
22
22
|
3. `R03-material-aggregation`: aggregate checksummed requirements, architecture, prototypes, code, images, configuration, migrations, tests, risks, operations, and rollback materials.
|
|
23
|
-
4. `R04-release-candidate`: create `release/<release-id>-<slug>` from the
|
|
24
|
-
5. `R05-release-verification`: invoke `$ai-delivery-verify-candidate` with `scope: release
|
|
25
|
-
6. `R06-release-preparation`: invoke `$ai-delivery-prepare-release` for the selected version closure.
|
|
26
|
-
7. `R07-production-approval`: request mandatory Gate `PRODUCTION-APPROVAL`, bound to the exact package checksum and target environment. It cannot be waived with `not-required`.
|
|
27
|
-
8. `R08-production-deployment`: invoke `$ai-delivery-deploy-production` only after approval.
|
|
28
|
-
9. `R09-production-verification`: invoke `$ai-delivery-verify-production` and decide `released` or rollback/recovery.
|
|
29
|
-
10. `R10-release-archive`: register the final archive artifact as `released`, complete R10 with that artifact as evidence,
|
|
23
|
+
4. `R04-release-candidate`: invoke `$ai-delivery-manage-git`'s `scripts/release-git.mjs create-candidate` with `--release-id`, `--release-branch`, `--expected-main`, one `--source-tag`, its exact `--source-commit`, `--receipt`, and `--apply`. It creates `release/<release-id>-<slug>` from that snapshot. It merges the Tag with `--no-ff` for incremental release; for same-version redeploy when the Tag is already in the snapshot, it freezes that snapshot as the no-new-merge candidate. A moved `main` invalidates this release ID's candidate instead of changing its base.
|
|
24
|
+
5. `R05-release-verification`: invoke `$ai-delivery-verify-candidate` with `scope: release`, bound to the exact candidate merge commit. Any release-fix creates a new candidate and repeats affected verification.
|
|
25
|
+
6. `R06-release-preparation`: invoke `$ai-delivery-prepare-release` for the selected version closure and candidate identity. Freeze an immutable release Tag at the exact tested candidate before deployment; never move or reuse it.
|
|
26
|
+
7. `R07-production-approval`: request mandatory Gate `PRODUCTION-APPROVAL`, bound to the exact R00 base, source Tag/commit, candidate commit and Tag, package checksum, and target environment. It cannot be waived with `not-required`.
|
|
27
|
+
8. `R08-production-deployment`: invoke `$ai-delivery-deploy-production` only after approval, deploying the exact frozen candidate identity.
|
|
28
|
+
9. `R09-production-verification`: invoke `$ai-delivery-verify-production` and decide `released` or rollback/recovery. On `released`, first write the R09 machine-readable `production-verification.json` with `operation: production-verification-decision`, then use `scripts/release-git.mjs promote --release-id <id> --release-branch <branch> --expected-main <r00-sha> --verified-release-commit <candidate-sha> --production-verification <R09 JSON> --receipt <path> --apply` to fast-forward `main` from the unchanged R00 snapshot to precisely the verified deployed candidate commit.
|
|
29
|
+
10. `R10-release-archive`: before archival, for each deployed `release-fix/*`, freeze a schema-2 product-line `candidate-inventory.json` containing `product_id`, `line_branch`, the active candidate, and all product-line candidate identities/statuses, with each candidate retaining its own `release_id`. Invoke `scripts/release-git.mjs sync-release-fix --release-id <id> --source-ref <release-fix-branch> --source-commit <fix-sha> --verified-release-commit <candidate-sha> --line-branch <line> --expected-line <line-sha> --production-verification <R09 JSON> --candidate-inventory <predecessor-R10 JSON> --successor-candidate-inventory <new-R10 JSON> --receipt <path> --apply` to synchronize its verified fix into `line/<product-id>`. The successor path is distinct and unused; the controlled operation writes it immutably, derives `stale_candidate_ids` and `candidate_status_updates` across the product line, and binds both inventories in the receipt. Callers must not choose stale IDs. Register the `applied` merge or unchanged `idempotent` receipt, its successor-inventory binding, and the derived updates, then register the final archive artifact as `released`, complete R10 with that artifact as evidence, and run `state.mjs transition --expected-scope-revision <release-scope-revision> --event release-archived --iteration-id <release-id> --artifact-id <archive-artifact-id> --production-version-id <version-id>`. Run `verify --history` before compacting release task context. Never edit production identity fields directly.
|
|
30
30
|
|
|
31
31
|
Run routine formal `verify` at every handoff and reserve `verify --history` for R10 or an explicit history audit. Preserve failed releases and evidence. Stop instead of replaying a production action after recovery.
|
|
32
32
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Orchestrate Release"
|
|
3
|
-
short_description: "Publish selected cumulative versions on demand"
|
|
4
|
-
default_prompt: "Use $ai-delivery-orchestrate-release to start or resume an explicit production release."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Orchestrate Release"
|
|
3
|
+
short_description: "Publish selected cumulative versions on demand"
|
|
4
|
+
default_prompt: "Use $ai-delivery-orchestrate-release to start or resume an explicit production release."
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
schema_version:
|
|
1
|
+
schema_version: 2
|
|
2
2
|
release_id: "REL-0001"
|
|
3
3
|
product_id: "PRODUCT-001"
|
|
4
4
|
requested_by: "human:<id>"
|
|
5
5
|
rationale: "<release reason>"
|
|
6
6
|
target_environment: "production"
|
|
7
|
+
production_branch: "main"
|
|
8
|
+
expected_main: "<git-sha>"
|
|
9
|
+
main_snapshot_captured_at: "<RFC3339>"
|
|
7
10
|
current_production_version: "VER-0002"
|
|
8
11
|
target_version: "VER-0005"
|
|
9
12
|
requested_at: "<RFC3339>"
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
schema_version:
|
|
1
|
+
schema_version: 2
|
|
2
2
|
release_id: "REL-0001"
|
|
3
3
|
mode: "incremental"
|
|
4
|
+
production_branch: "main"
|
|
5
|
+
release_base:
|
|
6
|
+
expected_main: "<git-sha>"
|
|
7
|
+
status: "captured"
|
|
4
8
|
current_production_version: "VER-0002"
|
|
5
9
|
target_version: "VER-0005"
|
|
10
|
+
target_version_ready:
|
|
11
|
+
tag: "version-ready/VER-0005/r1"
|
|
12
|
+
commit: "<git-sha>"
|
|
13
|
+
release_merge:
|
|
14
|
+
strategy: "no-ff-single-version-ready-tag"
|
|
15
|
+
merge_created: true
|
|
16
|
+
merge_commit: null
|
|
17
|
+
status: "pending-controlled-git-operation"
|
|
6
18
|
newly_included_versions:
|
|
7
19
|
- "VER-0003"
|
|
8
20
|
- "VER-0004"
|
|
@@ -6,6 +6,20 @@ Each release owns `.workflow/releases/<release-id>/R00-release-request/` through
|
|
|
6
6
|
|
|
7
7
|
For an incremental release, `newly_included_versions` is the ordered open interval after current production through the selected target. `dependency_closure` is the complete cumulative lineage from the first version through the target. For a same-version redeploy, the newly included range is empty while the target version remains the immutable provenance source.
|
|
8
8
|
|
|
9
|
+
## Git Candidate And Promotion
|
|
10
|
+
|
|
11
|
+
R00 captures the exact production-branch `main` head as `expected_main`. It is an immutable release input, not a hint that can be refreshed during the release. R01/R02 require the captured commit to remain the actual `main` head. For an incremental release, it must be an ancestor of the selected target `version-ready` Tag; for same-version redeploy, the selected target Tag must already be an ancestor of or equal to the snapshot. A mismatch is `stale`: preserve the failed/abandoned evidence and create a new release request rather than retargeting the candidate.
|
|
12
|
+
|
|
13
|
+
R04 invokes `release-git.mjs create-candidate --release-id <id> --release-branch <branch> --expected-main <r00-sha> --source-tag <tag> --source-commit <tag-sha> --receipt <path> --apply`. It creates `release/<release-id>-<slug>` from exactly `expected_main`. For an incremental release it merges exactly one target immutable `version-ready` Tag with `--no-ff`, and the merge commit is the release-candidate identity. For same-version redeploy whose target Tag is already in the snapshot, the candidate is exactly `expected_main` and the receipt records no new merge. Intermediate versions remain in the closure and material index but are never separately merged. The receipt records `operation: create-release-candidate`, release base, source Tag/commit, result `candidate_commit`, branch, merge-created state, and `planned`, `applied`, or `idempotent` status. R05 through R09 bind to that exact commit; a branch head is not sufficient identity.
|
|
14
|
+
|
|
15
|
+
Freeze an immutable release Tag on the exact tested candidate before R08 deployment. After R09 decides `released`, write `production-verification.json` with `schema_version: 1`, `operation: production-verification-decision`, exact release ID, `decision: released`, R00 `expected_main_commit`, and equal full object IDs for `verified_release_commit` and `deployed_commit`. The controlled `promote` operation receives this file through `--production-verification` and may fast-forward `main` only when its old head still equals `expected_main` and the requested verified commit is the candidate receipt's exact result. Its receipt retains the evidence path and hash. Same-version redeploy may leave `main` unchanged only when it already names that exact commit. Failed/rolled-back releases never advance `main`.
|
|
16
|
+
|
|
17
|
+
## Release-Fix Reconciliation
|
|
18
|
+
|
|
19
|
+
Create `release-fix/<release-id>/<defect-id>` from the active candidate only. A correction yields a new candidate identity, invalidates affected verification/approval, and never rewrites version-ready Tags or version manifests. After R09 has successfully verified the deployed fix, R10 must freeze a schema-2 product-line `candidate-inventory.json`: `scope: product-line`, `product_id`, `line_branch`, active candidate ID/commit, and every candidate's ID, own `release_id`, commit, and status. The root does not carry a release ID; the active and verified records must belong to the release being synchronized. It must run `release-git.mjs sync-release-fix --release-id <id> --source-ref <branch> --source-commit <sha> --verified-release-commit <candidate-sha> --line-branch <line> --expected-line <line-sha> --production-verification <R09 JSON> --candidate-inventory <predecessor-R10 JSON> --successor-candidate-inventory <new-R10 JSON> --receipt <path> --apply` and register its JSON receipt. The controlled operation writes the successor inventory at the supplied distinct path and never mutates its predecessor. The receipt records predecessor/successor evidence bindings, release/source identities, verified release commit, line heads, merge strategy, derived stale candidate IDs/status updates, and `applied` or idempotent `idempotent` status. It never accepts caller-supplied stale candidate IDs; replays may only reuse a byte-identical successor.
|
|
20
|
+
|
|
21
|
+
Every selectable candidate (`active`, `release-ready`, `verified`, or `approved`) in the product-line inventory that does not contain a production-successful release-fix is `stale` and cannot be selected. The controlled operation derives this status change from the immutable predecessor inventory, writes it only to its immutable successor, and advances the active pointer to the verified candidate when necessary; candidates already `stale` or `released` are not rewritten. Each later synchronization uses the latest successor as its predecessor. The line is unchanged on a failed deployment, rollback, blocked release, or ambiguous human-decision outcome.
|
|
22
|
+
|
|
9
23
|
Only `R07-production-approval` is the production human Gate. Any package, environment, configuration, migration, image, or target change invalidates it. Rollback restores the previous compatible image digest and never creates or moves a Git branch.
|
|
10
24
|
|
|
11
25
|
`R09-production-verification` supplies the verified deployed version and immutable evidence but does not update the authoritative production identity. After a `released` archive artifact is registered and `R10-release-archive` is completed, run the formal `release-archived` transition. This event is the only writer of `workflow-state.yaml.production_version_id` and `production_release_id`, including same-version redeploys with a new release ID.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Plan Iteration"
|
|
3
|
-
short_description: "Prioritize and sequence vertical slices for an agile iteration"
|
|
4
|
-
default_prompt: "Use $ai-delivery-plan-iteration to plan the next agile delivery iteration."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Plan Iteration"
|
|
3
|
+
short_description: "Prioritize and sequence vertical slices for an agile iteration"
|
|
4
|
+
default_prompt: "Use $ai-delivery-plan-iteration to plan the next agile delivery iteration."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Prepare Delivery Platform"
|
|
3
|
-
short_description: "Prepare CI/CD, environments, infrastructure, and observability"
|
|
4
|
-
default_prompt: "Use $ai-delivery-prepare-platform to prepare delivery and operations capabilities."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Prepare Delivery Platform"
|
|
3
|
+
short_description: "Prepare CI/CD, environments, infrastructure, and observability"
|
|
4
|
+
default_prompt: "Use $ai-delivery-prepare-platform to prepare delivery and operations capabilities."
|
|
@@ -19,14 +19,15 @@ Write release manifests, change inventories, rollback documents, and workflow re
|
|
|
19
19
|
|
|
20
20
|
## Preflight
|
|
21
21
|
|
|
22
|
-
Read the explicit release request, frozen version selection, passing release candidate, prior production release, all included version manifests, changed baselines, verification evidence, platform artifacts, Git state, and environment baselines. Acquire the serialized release transition through `$ai-delivery-manage-git`.
|
|
22
|
+
Read the explicit release request, frozen version selection, candidate JSON receipt, passing release candidate, prior production release, all included version manifests, changed baselines, verification evidence, platform artifacts, Git state, and environment baselines. Acquire the serialized release transition through `$ai-delivery-manage-git`.
|
|
23
23
|
|
|
24
24
|
## Freeze The Candidate
|
|
25
25
|
|
|
26
|
-
1. Confirm the release branch was created from the
|
|
27
|
-
2. Re-run impacted and final release gates after any release-fix candidate.
|
|
28
|
-
3. Freeze the exact release ID, target version, version closure, commit, Tag, application artifact digests, configuration baseline, migrations, IaC plan, and standards baseline.
|
|
29
|
-
4.
|
|
26
|
+
1. Confirm the release branch was created from the R00 `expected_main` snapshot and that `main` has not moved. For an incremental release, confirm the snapshot is an ancestor of the selected immutable `version-ready` Tag and the candidate is the `--no-ff` merge result of exactly that one Tag. For a same-version redeploy, confirm the target Tag is already reachable from the snapshot and the candidate equals the snapshot with no new merge. A branch name or current branch head is not evidence.
|
|
27
|
+
2. Re-run impacted and final release gates after any release-fix candidate. A release-fix must record its source branch/commit and replaces the previous candidate identity; historical version-ready Tags and manifests remain unchanged.
|
|
28
|
+
3. Freeze the exact release ID, target version, version closure, production branch/base commit, source Tag/commit, release branch, candidate merge commit and immutable release Tag, application artifact digests, configuration baseline, migrations, IaC plan, and standards baseline.
|
|
29
|
+
4. Bind the later `main` promotion to the unchanged R00 base and exact verified candidate commit. For each release-fix, predeclare the line branch, the schema-2 product-line candidate inventory predecessor, a distinct successor-inventory path, and receipt requirement; it is synchronized only after successful production verification and before R10 archive.
|
|
30
|
+
5. Never merge additional code after final regression. Any material change creates a new candidate and repeats affected verification and production approval.
|
|
30
31
|
|
|
31
32
|
## Build The Release Package
|
|
32
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Prepare Release"
|
|
3
|
-
short_description: "Freeze an immutable version and complete delivery inventory"
|
|
4
|
-
default_prompt: "Use $ai-delivery-prepare-release to prepare the current iteration for production release."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Prepare Release"
|
|
3
|
+
short_description: "Freeze an immutable version and complete delivery inventory"
|
|
4
|
+
default_prompt: "Use $ai-delivery-prepare-release to prepare the current iteration for production release."
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
schema_version: 2
|
|
1
2
|
release_id: RELEASE-0001
|
|
2
3
|
iteration_id: ITER-0001
|
|
3
4
|
version: 0.1.0
|
|
4
5
|
target_environment: production
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
production_branch: main
|
|
7
|
+
release_base_commit: ""
|
|
8
|
+
source_version_ready_tag: ""
|
|
9
|
+
source_version_ready_commit: ""
|
|
10
|
+
release_branch: ""
|
|
11
|
+
release_candidate_commit: ""
|
|
12
|
+
release_candidate_tag: ""
|
|
13
|
+
candidate_receipt_ref: ""
|
|
7
14
|
package_hash: ""
|
|
8
15
|
artifact_digests: []
|
|
9
16
|
configuration_baseline: ""
|
|
@@ -12,6 +19,18 @@ iac_plan_hash: ""
|
|
|
12
19
|
standards_baseline_ref: ""
|
|
13
20
|
verification_ref: ""
|
|
14
21
|
previous_stable_release_id: ""
|
|
22
|
+
main_promotion:
|
|
23
|
+
expected_main: ""
|
|
24
|
+
verified_release_commit: ""
|
|
25
|
+
receipt_ref: ""
|
|
26
|
+
release_fixes: []
|
|
27
|
+
line_synchronization:
|
|
28
|
+
line_branch: ""
|
|
29
|
+
expected_line: ""
|
|
30
|
+
required_before_archive: true
|
|
31
|
+
candidate_inventory: ""
|
|
32
|
+
successor_candidate_inventory: ""
|
|
33
|
+
receipt_refs: []
|
|
15
34
|
approval:
|
|
16
35
|
status: pending
|
|
17
36
|
approved_by: null
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Release Manifest
|
|
4
4
|
|
|
5
|
-
Record release ID, mode, selected target and continuous version closure, target environment,
|
|
5
|
+
Record release ID, mode, selected target and continuous version closure, target environment, production branch, immutable R00 `expected_main` base, source version-ready Tag/commit, release branch, exact release-candidate commit, incremental merge commit when one exists, immutable release Tag, candidate receipt reference, package hash, application artifact digests, configuration baseline, migration set, IaC plan hash, standards baseline, R05 verification result, previous stable release, known risks, and inventory references. Production approval is a separate R07 artifact and is not created here.
|
|
6
|
+
|
|
7
|
+
The manifest must prove that the candidate was created at the captured `main` base. For incremental mode, it proves one `--no-ff` merge of the selected target Tag. For same-version-redeploy mode, it proves the target Tag was already reachable from the base and records no new merge. Do not identify a candidate by a mutable branch head. Record the `main` promotion precondition as the same base plus the exact verified candidate commit.
|
|
8
|
+
|
|
9
|
+
When a release includes `release-fix/*`, record each source ref/commit, the replacement candidate identity, `line/<product-id>`, its expected head, the mandatory R09 `production-verification.json`, the schema-2 product-line R10 predecessor candidate inventory, the distinct successor inventory destination, and the required post-verification synchronization receipt. The inventory records `product_id`, `line_branch`, each candidate's own `release_id`, ID, commit, and status; the root has no release ID. R10 cannot archive a successful release-fix without `release-git.mjs sync-release-fix` returning either `status: applied` or an explicit unchanged `status: idempotent` receipt with derived candidate status updates and an immutable successor-inventory binding.
|
|
6
10
|
|
|
7
11
|
## Unified Delivery Index
|
|
8
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Review Change"
|
|
3
|
-
short_description: "Independently review a code change against standards and specs"
|
|
4
|
-
default_prompt: "Use $ai-delivery-review-change to independently review the current code change."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Review Change"
|
|
3
|
+
short_description: "Independently review a code change against standards and specs"
|
|
4
|
+
default_prompt: "Use $ai-delivery-review-change to independently review the current code change."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Triage Test Failure"
|
|
3
|
-
short_description: "Classify test failures and route them to the owning stage"
|
|
4
|
-
default_prompt: "Use $ai-delivery-triage-failure to classify and route the observed failure."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Triage Test Failure"
|
|
3
|
+
short_description: "Classify test failures and route them to the owning stage"
|
|
4
|
+
default_prompt: "Use $ai-delivery-triage-failure to classify and route the observed failure."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Validate Delivery Artifacts"
|
|
3
|
-
short_description: "Validate artifact contracts, IDs, references, and baselines"
|
|
4
|
-
default_prompt: "Use $ai-delivery-validate-artifacts to validate the current delivery artifacts."
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Validate Delivery Artifacts"
|
|
3
|
+
short_description: "Validate artifact contracts, IDs, references, and baselines"
|
|
4
|
+
default_prompt: "Use $ai-delivery-validate-artifacts to validate the current delivery artifacts."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Verify Candidate"
|
|
3
|
-
short_description: "Independently verify a release candidate and route failures"
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Verify Candidate"
|
|
3
|
+
short_description: "Independently verify a release candidate and route failures"
|
|
4
4
|
default_prompt: "Use $ai-delivery-verify-candidate to verify the current candidate and its repository identity."
|
|
@@ -9,7 +9,7 @@ Keep deployment execution separate from release success.
|
|
|
9
9
|
|
|
10
10
|
## Artifact Location
|
|
11
11
|
|
|
12
|
-
Write production verification reports, signal snapshots, rollback decisions, and release decisions to `.workflow/releases/<release-id>/R09-production-verification/`. External observability data may remain in controlled systems only when immutable references and timestamps are recorded in `.workflow/`.
|
|
12
|
+
Write production verification reports, signal snapshots, rollback decisions, and release decisions to `.workflow/releases/<release-id>/R09-production-verification/`. A `released` decision must also write the immutable machine-readable `production-verification.json` sidecar. External observability data may remain in controlled systems only when immutable references and timestamps are recorded in `.workflow/`.
|
|
13
13
|
|
|
14
14
|
## Task State
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ Write production verification reports, signal snapshots, rollback decisions, and
|
|
|
19
19
|
|
|
20
20
|
## Preflight
|
|
21
21
|
|
|
22
|
-
Read the approved release package, deployment record, previous stable release, verification thresholds, rollback authorization, observability state, and target environment. Confirm that the deployed identities match the manifest.
|
|
22
|
+
Read the approved release package, candidate receipt, deployment record, previous stable release, verification thresholds, rollback authorization, observability state, and target environment. Confirm that the deployed identities match the manifest: the R00 `expected_main` base, one source version-ready Tag/commit, exact candidate commit and incremental merge commit when one exists, immutable release Tag, image digest, configuration, and migrations.
|
|
23
23
|
|
|
24
24
|
## Verify
|
|
25
25
|
|
|
@@ -36,15 +36,18 @@ Read the approved release package, deployment record, previous stable release, v
|
|
|
36
36
|
- When old-image compatibility is unproven or data recovery is irreversible, stop and request the approved manual recovery decision.
|
|
37
37
|
- For ambiguous business-signal degradation with healthy technical signals, pause for human judgment.
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
For a `released` decision, write `production-verification.json` before any protected Git action. It must use `schema_version: 1`, `operation: production-verification-decision`, exact `release_id`, `decision: released`, and full immutable `expected_main_commit`, `verified_release_commit`, and `deployed_commit` fields; the last two must name the deployed candidate. Then invoke `$ai-delivery-manage-git`'s controlled `scripts/release-git.mjs promote` operation with `--release-id`, `--release-branch`, the R00 `--expected-main`, exact `--verified-release-commit`, `--production-verification <R09-production-verification/production-verification.json>`, `--receipt <path>`, and `--apply`. Accept success only when its JSON receipt proves the protected code-repository `main` fast-forwarded from that exact base to that exact commit and records the evidence checksum. For same-version redeploy, it may record an explicit unchanged result only when `main` already names the verified candidate. Omitting `--apply` is planning only. Record the release decision only in the workflow repository.
|
|
40
|
+
|
|
41
|
+
Do not synchronize `release-fix/*` into `line/<product-id>` before the production decision. On `released`, hand every deployed release-fix identity, the expected line head, the R09 JSON decision, and an R10 schema-2 product-line `candidate-inventory.json` to R10. It must bind `product_id`, `line_branch`, the active candidate, and every candidate's own `release_id`, immutable commit, and current status; the root has no release ID. R10 runs `scripts/release-git.mjs sync-release-fix --source-ref --source-commit --verified-release-commit --line-branch --expected-line --production-verification <R09 JSON> --candidate-inventory <predecessor R10 JSON> --successor-candidate-inventory <new R10 JSON> --receipt <path> --apply`; it writes an `applied` merge receipt or unchanged `idempotent` receipt, derives `stale_candidate_ids` plus `candidate_status_updates` across that product line, and emits the new immutable successor inventory. The input inventory remains immutable, and a replay can use only byte-identical successor content. After rollback, blocked, or human-decision outcomes, keep code `main` and `line` unchanged and retain the failed release, version, and Tags. Do not update `production_version_id` or `production_release_id` in R09; hand the verified identities to R10, which records them through the formal `release-archived` transition.
|
|
40
42
|
|
|
41
43
|
## Outputs
|
|
42
44
|
|
|
43
|
-
- production verification report and evidence;
|
|
45
|
+
- production verification report and evidence, including `production-verification.json` for every `released` decision;
|
|
44
46
|
- release decision and observation window;
|
|
45
47
|
- rollback deployment record and rollback verification when applicable;
|
|
46
48
|
- residual risks, incident or defect routes, and final production version;
|
|
47
49
|
- release archive handoff or rework status.
|
|
50
|
+
- main-promotion receipt when released, plus the candidate inventory and release-fix synchronization handoff when applicable;
|
|
48
51
|
- final production version, release ID, and immutable release evidence for `R10-release-archive`.
|
|
49
52
|
|
|
50
53
|
Read [production-verification-contract.md](references/production-verification-contract.md) and use `assets/production-verification-template/`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Verify Production"
|
|
3
|
-
short_description: "Verify production health and trigger image-based rollback"
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Verify Production"
|
|
3
|
+
short_description: "Verify production health and trigger image-based rollback"
|
|
4
4
|
default_prompt: "Use $ai-delivery-verify-production to verify production and advance only the configured code repository when successful."
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"operation": "production-verification-decision",
|
|
4
|
+
"release_id": "REL-0001",
|
|
5
|
+
"decision": "released",
|
|
6
|
+
"expected_main_commit": "<full-git-sha>",
|
|
7
|
+
"verified_release_commit": "<full-git-sha>",
|
|
8
|
+
"deployed_commit": "<same-full-git-sha>"
|
|
9
|
+
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Production Verification
|
|
2
2
|
|
|
3
|
+
`production-verification.json` in this directory is the mandatory machine-readable decision sidecar for a `released` outcome. Fill it with full immutable Git object IDs before invoking `release-git.mjs promote`; this report remains the human-readable evidence.
|
|
4
|
+
|
|
3
5
|
## Release And Deployment Identity
|
|
4
6
|
|
|
7
|
+
- R00 `expected_main`:
|
|
8
|
+
- source `version-ready` Tag and commit:
|
|
9
|
+
- release-candidate merge commit:
|
|
10
|
+
- immutable release Tag:
|
|
11
|
+
- candidate receipt:
|
|
12
|
+
|
|
5
13
|
## Mandatory Checks
|
|
6
14
|
|
|
7
15
|
## Observation Window And Signals
|
|
@@ -10,6 +18,18 @@
|
|
|
10
18
|
|
|
11
19
|
## Decision
|
|
12
20
|
|
|
21
|
+
- decision:
|
|
22
|
+
- machine-readable decision: `production-verification.json`
|
|
23
|
+
- `main` promotion receipt:
|
|
24
|
+
|
|
13
25
|
## Rollback And Rollback Verification
|
|
14
26
|
|
|
27
|
+
## Release-Fix Line Synchronization Handoff
|
|
28
|
+
|
|
29
|
+
- release-fix branch/commit:
|
|
30
|
+
- `line/<product-id>`:
|
|
31
|
+
- R10 predecessor candidate inventory: schema-2 product-line `candidate-inventory.json`
|
|
32
|
+
- R10 successor candidate inventory: distinct immutable JSON path supplied through `--successor-candidate-inventory`
|
|
33
|
+
- required R10 receipt:
|
|
34
|
+
|
|
15
35
|
## Residual Risk And Routes
|
|
@@ -2,13 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## Required Evidence
|
|
4
4
|
|
|
5
|
-
Record deployment and release IDs, actual artifact digests, health and readiness, critical journey smoke results, data integrity, authorization, logs, errors, latency, resources, queues, alerts, dashboards, business sanity signals, observation window, and final decision.
|
|
5
|
+
Record deployment and release IDs, candidate receipt, immutable release Tag, R00 production-base commit, actual candidate/deployed commit, actual artifact digests, health and readiness, critical journey smoke results, data integrity, authorization, logs, errors, latency, resources, queues, alerts, dashboards, business sanity signals, observation window, and final decision.
|
|
6
|
+
|
|
7
|
+
For every `released` decision, write `R09-production-verification/production-verification.json` before invoking a protected Git operation. Its exact machine-readable shape is:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"schema_version": 1,
|
|
12
|
+
"operation": "production-verification-decision",
|
|
13
|
+
"release_id": "REL-0001",
|
|
14
|
+
"decision": "released",
|
|
15
|
+
"expected_main_commit": "<full-git-sha>",
|
|
16
|
+
"verified_release_commit": "<full-git-sha>",
|
|
17
|
+
"deployed_commit": "<same-full-git-sha>"
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`release_id` must equal the Git operation's release ID; both candidate fields must be full object IDs and must be equal. `promote` additionally requires the JSON `expected_main_commit` to equal R00. The Git receipt records the evidence path and SHA-256 so a later archive can prove the decision it consumed.
|
|
6
22
|
|
|
7
23
|
## Decisions
|
|
8
24
|
|
|
9
|
-
- `released`: mandatory thresholds pass; fast-forward `main` to the exact deployed tagged commit
|
|
25
|
+
- `released`: mandatory thresholds pass; write the JSON decision above, then invoke `release-git.mjs promote --release-id <id> --release-branch <branch> --expected-main <r00-sha> --verified-release-commit <candidate-sha> --production-verification <R09-production-verification/production-verification.json> --receipt <path> --apply` to fast-forward `main` only from the recorded R00 `expected_main` to the exact deployed, tagged candidate commit. Save the promotion receipt with old/new heads and its production-verification evidence binding. For same-version redeploy, retain an explicit unchanged receipt only if `main` already equals that exact candidate, then hand off R10 archive.
|
|
10
26
|
- `rolled-back`: an authorized technical threshold fails; redeploy the previous stable image digest and verify it.
|
|
11
27
|
- `blocked`: rollback compatibility, recovery authority, or evidence is insufficient.
|
|
12
28
|
- `human-decision`: business signals are ambiguous while technical signals remain healthy.
|
|
13
29
|
|
|
14
|
-
Never create a rollback branch, move a release Tag, reset `main`, or rebuild the previous image.
|
|
30
|
+
For each successful deployed `release-fix/*`, R10 must freeze a `candidate-inventory.json` with `schema_version: 2`, `scope: "product-line"`, `product_id`, `line_branch`, `active_candidate_id`, `active_candidate_commit`, and a unique `candidates` list of `{ candidate_id, release_id, candidate_commit, status }` objects. The root must not define `release_id`; each candidate preserves the release that created it. The input inventory's line branch must equal the operation's `--line-branch`, while the active and verified candidate records must carry the operation release ID. Before archive, call `release-git.mjs sync-release-fix --release-id <id> --source-ref <branch> --source-commit <sha> --verified-release-commit <candidate-sha> --line-branch <line> --expected-line <line-sha> --production-verification <R09 JSON> --candidate-inventory <predecessor-R10 JSON> --successor-candidate-inventory <new-R10 JSON> --receipt <path> --apply`. The successor path must differ from the predecessor and receipt; it is an immutable product-line inventory emitted by the controlled operation, never a rewrite of the input. Its receipt records predecessor/successor evidence bindings, release/source identities, verified release commit, line heads, merge strategy, derived `stale_candidate_ids`, derived `candidate_status_updates` including each candidate's release ID, and `applied` or idempotent `idempotent` status. Callers must not supply a stale-candidate list. Selectable candidates across the product line that omit the successful fix become `stale`; candidates already `stale` or `released` are not rewritten. When the previous active candidate becomes stale, the successor advances the active pointer to the verified candidate. Replays require byte-identical existing successor content. Never create a rollback branch, move a release Tag, reset `main`, rewrite `line`, or rebuild the previous image.
|