ai-delivery-workflow 0.2.2
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/LICENSE +21 -0
- package/README.md +112 -0
- package/bin/ai-delivery.mjs +138 -0
- package/bin/validate-skills.mjs +12 -0
- package/docs/DUAL-REPOSITORY-WORKSPACE.zh-CN.md +125 -0
- package/docs/EVOLUTION-MAINTENANCE.zh-CN.md +75 -0
- package/docs/EVOLUTION-USER-GUIDE.zh-CN.md +160 -0
- package/docs/FILE-REFERENCE.zh-CN.md +503 -0
- package/docs/PROJECT-MANUAL.zh-CN.md +931 -0
- package/docs/STATE-CLI-MAINTENANCE.zh-CN.md +135 -0
- package/docs/STATE-CLI-USER-GUIDE.zh-CN.md +186 -0
- package/docs/VIEWER-MAINTENANCE.zh-CN.md +373 -0
- package/docs/VIEWER-USER-GUIDE.zh-CN.md +235 -0
- package/lib/delivery-state.mjs +1220 -0
- package/lib/evolution.mjs +971 -0
- package/lib/project-bootstrap.mjs +927 -0
- package/lib/project-installer.mjs +1184 -0
- package/lib/skill-validator.mjs +154 -0
- package/lib/toml-hooks.mjs +97 -0
- package/lib/workspace.mjs +302 -0
- package/lib/yaml-runtime.mjs +18 -0
- package/package.json +39 -0
- package/skills/ai-delivery-assemble-release/SKILL.md +27 -0
- package/skills/ai-delivery-assemble-release/agents/openai.yaml +4 -0
- package/skills/ai-delivery-assemble-release/assets/release-candidate-manifest.yaml +22 -0
- package/skills/ai-delivery-assemble-release/assets/release-git-plan.yaml +9 -0
- package/skills/ai-delivery-assemble-release/assets/release-material-index.csv +2 -0
- package/skills/ai-delivery-assemble-release/assets/version-inclusion.csv +2 -0
- package/skills/ai-delivery-assemble-release/references/release-assembly-contract.md +7 -0
- package/skills/ai-delivery-assemble-release/scripts/plan-release.mjs +298 -0
- package/skills/ai-delivery-bootstrap/SKILL.md +59 -0
- package/skills/ai-delivery-bootstrap/agents/openai.yaml +4 -0
- package/skills/ai-delivery-bootstrap/references/bootstrap-contract.md +70 -0
- package/skills/ai-delivery-checkpoint-task/SKILL.md +63 -0
- package/skills/ai-delivery-checkpoint-task/agents/openai.yaml +4 -0
- package/skills/ai-delivery-checkpoint-task/assets/codex-hook-config.toml +92 -0
- package/skills/ai-delivery-checkpoint-task/assets/runtime-template/resume.md +15 -0
- package/skills/ai-delivery-checkpoint-task/assets/runtime-template/task.json +30 -0
- package/skills/ai-delivery-checkpoint-task/assets/runtime-template/version-archive.json +10 -0
- package/skills/ai-delivery-checkpoint-task/references/checkpoint-contract.md +95 -0
- package/skills/ai-delivery-checkpoint-task/references/checkpoint-recovery.zh-CN.md +111 -0
- package/skills/ai-delivery-checkpoint-task/scripts/hook-event.mjs +131 -0
- package/skills/ai-delivery-checkpoint-task/scripts/task-state.mjs +1073 -0
- package/skills/ai-delivery-close-version/SKILL.md +33 -0
- package/skills/ai-delivery-close-version/agents/openai.yaml +4 -0
- package/skills/ai-delivery-close-version/assets/line-advance-record.yaml +12 -0
- package/skills/ai-delivery-close-version/assets/version-lineage.yaml +12 -0
- package/skills/ai-delivery-close-version/assets/version-manifest.yaml +20 -0
- package/skills/ai-delivery-close-version/references/version-closeout-contract.md +20 -0
- package/skills/ai-delivery-define-product/SKILL.md +76 -0
- package/skills/ai-delivery-define-product/agents/openai.yaml +4 -0
- package/skills/ai-delivery-define-product/assets/product-template/acceptance-criteria.csv +1 -0
- package/skills/ai-delivery-define-product/assets/product-template/discovery-baseline.md +19 -0
- package/skills/ai-delivery-define-product/assets/product-template/feature-detail.md +19 -0
- package/skills/ai-delivery-define-product/assets/product-template/feature-terminals.csv +1 -0
- package/skills/ai-delivery-define-product/assets/product-template/features.csv +1 -0
- package/skills/ai-delivery-define-product/assets/product-template/product-baseline.yaml +8 -0
- package/skills/ai-delivery-define-product/assets/product-template/product-manual.md +24 -0
- package/skills/ai-delivery-define-product/assets/product-template/terminals.csv +1 -0
- package/skills/ai-delivery-define-product/assets/product-template/user-stories.csv +1 -0
- package/skills/ai-delivery-define-product/references/product-contract.md +57 -0
- package/skills/ai-delivery-deploy-production/SKILL.md +45 -0
- package/skills/ai-delivery-deploy-production/agents/openai.yaml +4 -0
- package/skills/ai-delivery-deploy-production/references/deployment-contract.md +7 -0
- package/skills/ai-delivery-design-architecture/SKILL.md +67 -0
- package/skills/ai-delivery-design-architecture/agents/openai.yaml +4 -0
- package/skills/ai-delivery-design-architecture/assets/architecture-template/architecture-baseline.md +25 -0
- package/skills/ai-delivery-design-architecture/assets/architecture-template/architecture-gate.yaml +15 -0
- package/skills/ai-delivery-design-architecture/assets/architecture-template/prototype-architecture-validation.yaml +58 -0
- package/skills/ai-delivery-design-architecture/references/architecture-contract.md +32 -0
- package/skills/ai-delivery-design-experience/SKILL.md +71 -0
- package/skills/ai-delivery-design-experience/agents/openai.yaml +4 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/canvas-catalog.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/canvas-pages.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/component-state-matrix.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/design-tokens.json +19 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/experience-baseline.yaml +17 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/experience-change-domains.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/experience-change-set.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/feature-screen-coverage.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/formal-ui-confirmation.yaml +33 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/interaction-contract.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/low-fidelity-confirmation.yaml +32 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/page-catalog.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/page-component-map.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/product-prototype-reconciliation.yaml +28 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-adjustment-log.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-confirmation.yaml +99 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-file-terminals.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-files.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-impact-assessment.yaml +25 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-manifest.yaml +74 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-product-coverage.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-review-comments.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-review-decision.yaml +29 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-review-sessions.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-set.yaml +22 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-tool-candidates.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-tool-selection.yaml +22 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/prototype-traceability.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/requirement-change-set.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/screen-states.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/ui-framework-candidates.csv +1 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/ui-framework-selection.yaml +18 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/ui-handoff.yaml +44 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/visual-direction.yaml +16 -0
- package/skills/ai-delivery-design-experience/assets/experience-template/visual-system-confirmation.yaml +31 -0
- package/skills/ai-delivery-design-experience/references/experience-contract.md +82 -0
- package/skills/ai-delivery-design-experience/references/prototype-management-contract.md +68 -0
- package/skills/ai-delivery-design-tests/SKILL.md +56 -0
- package/skills/ai-delivery-design-tests/agents/openai.yaml +4 -0
- package/skills/ai-delivery-design-tests/assets/test-design-template/iteration-test-contract.md +19 -0
- package/skills/ai-delivery-design-tests/assets/test-design-template/prototype-test-scope.csv +1 -0
- package/skills/ai-delivery-design-tests/assets/test-design-template/prototype-test-validation.yaml +73 -0
- package/skills/ai-delivery-design-tests/references/test-design-contract.md +31 -0
- package/skills/ai-delivery-develop-iteration/SKILL.md +66 -0
- package/skills/ai-delivery-develop-iteration/agents/openai.yaml +4 -0
- package/skills/ai-delivery-develop-iteration/assets/development-template/task-experience-change-traceability.csv +1 -0
- package/skills/ai-delivery-develop-iteration/assets/development-template/task-prototype-traceability.csv +1 -0
- package/skills/ai-delivery-develop-iteration/references/development-contract.md +39 -0
- package/skills/ai-delivery-evolve-workflow/SKILL.md +57 -0
- package/skills/ai-delivery-evolve-workflow/agents/openai.yaml +4 -0
- package/skills/ai-delivery-evolve-workflow/references/evolution-contract.md +42 -0
- package/skills/ai-delivery-execute-test/SKILL.md +34 -0
- package/skills/ai-delivery-execute-test/agents/openai.yaml +4 -0
- package/skills/ai-delivery-execute-test/references/test-execution-contract.md +7 -0
- package/skills/ai-delivery-execute-work-package/SKILL.md +53 -0
- package/skills/ai-delivery-execute-work-package/agents/openai.yaml +4 -0
- package/skills/ai-delivery-execute-work-package/references/work-package-contract.md +20 -0
- package/skills/ai-delivery-manage-git/SKILL.md +60 -0
- package/skills/ai-delivery-manage-git/agents/openai.yaml +4 -0
- package/skills/ai-delivery-manage-git/references/git-policy.md +42 -0
- package/skills/ai-delivery-manage-standards/SKILL.md +44 -0
- package/skills/ai-delivery-manage-standards/agents/openai.yaml +4 -0
- package/skills/ai-delivery-manage-standards/assets/standards-template/standard.md +25 -0
- package/skills/ai-delivery-manage-standards/references/standards-contract.md +20 -0
- package/skills/ai-delivery-orchestrate/SKILL.md +105 -0
- package/skills/ai-delivery-orchestrate/agents/openai.yaml +4 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.codex/config.toml +92 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.gitattributes +6 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/delivery/artifact-registry.yaml +3 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/delivery/project.yaml +6 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/delivery/standards-baseline.yaml +8 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/delivery/workflow-state.yaml +34 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/decisions/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/experiments/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/feedback/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/index.yaml +7 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/promotion/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/proposals/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/extensions/.gitkeep +0 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/standards/STD-ARTIFACT-PATH-001.md +47 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/standards/STD-DOC-LANG-001.md +62 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/standards/STD-TEST-LOCATION-001.md +23 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/standards/index.yaml +36 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/bootstrap/bootstrap.mjs +33 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/evolution/evolve.mjs +15 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/hooks/hook-event.mjs +131 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/state/state.mjs +21 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/public/app.js +546 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/public/index.html +199 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/public/styles.css +529 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/server.mjs +780 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/start.cmd +4 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/start.ps1 +2 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/tools/viewer/start.sh +4 -0
- package/skills/ai-delivery-orchestrate/assets/project-template/AGENTS.md +44 -0
- package/skills/ai-delivery-orchestrate/references/formal-state-contract.md +64 -0
- package/skills/ai-delivery-orchestrate/references/workflow-model.md +29 -0
- package/skills/ai-delivery-orchestrate-release/SKILL.md +33 -0
- package/skills/ai-delivery-orchestrate-release/agents/openai.yaml +4 -0
- package/skills/ai-delivery-orchestrate-release/assets/release-request.yaml +9 -0
- package/skills/ai-delivery-orchestrate-release/assets/version-selection.yaml +16 -0
- package/skills/ai-delivery-orchestrate-release/references/release-workflow-contract.md +11 -0
- package/skills/ai-delivery-plan-iteration/SKILL.md +57 -0
- package/skills/ai-delivery-plan-iteration/agents/openai.yaml +4 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/backlog.csv +1 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/slice-dependencies.csv +1 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/slice-experience-change-traceability.csv +1 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/slice-prototype-traceability.csv +1 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/slice-sources.csv +1 -0
- package/skills/ai-delivery-plan-iteration/assets/planning-template/vertical-slices.csv +1 -0
- package/skills/ai-delivery-plan-iteration/references/planning-contract.md +40 -0
- package/skills/ai-delivery-prepare-platform/SKILL.md +49 -0
- package/skills/ai-delivery-prepare-platform/agents/openai.yaml +4 -0
- package/skills/ai-delivery-prepare-platform/assets/platform-template/environment-ledger.csv +1 -0
- package/skills/ai-delivery-prepare-platform/references/platform-contract.md +18 -0
- package/skills/ai-delivery-prepare-release/SKILL.md +47 -0
- package/skills/ai-delivery-prepare-release/agents/openai.yaml +4 -0
- package/skills/ai-delivery-prepare-release/assets/release-template/delivery-items.csv +1 -0
- package/skills/ai-delivery-prepare-release/assets/release-template/release-manifest.yaml +18 -0
- package/skills/ai-delivery-prepare-release/references/release-contract.md +21 -0
- package/skills/ai-delivery-review-change/SKILL.md +40 -0
- package/skills/ai-delivery-review-change/agents/openai.yaml +4 -0
- package/skills/ai-delivery-review-change/references/review-contract.md +20 -0
- package/skills/ai-delivery-triage-failure/SKILL.md +45 -0
- package/skills/ai-delivery-triage-failure/agents/openai.yaml +4 -0
- package/skills/ai-delivery-triage-failure/references/failure-routing-contract.md +13 -0
- package/skills/ai-delivery-validate-artifacts/SKILL.md +37 -0
- package/skills/ai-delivery-validate-artifacts/agents/openai.yaml +4 -0
- package/skills/ai-delivery-validate-artifacts/references/artifact-contract.md +44 -0
- package/skills/ai-delivery-verify-candidate/SKILL.md +56 -0
- package/skills/ai-delivery-verify-candidate/agents/openai.yaml +4 -0
- package/skills/ai-delivery-verify-candidate/assets/verification-template/defect-artifacts.csv +1 -0
- package/skills/ai-delivery-verify-candidate/assets/verification-template/defects.csv +1 -0
- package/skills/ai-delivery-verify-candidate/assets/verification-template/test-work-packages.csv +1 -0
- package/skills/ai-delivery-verify-candidate/references/candidate-verification-contract.md +23 -0
- package/skills/ai-delivery-verify-production/SKILL.md +50 -0
- package/skills/ai-delivery-verify-production/agents/openai.yaml +4 -0
- package/skills/ai-delivery-verify-production/assets/production-verification-template/production-verification.md +15 -0
- package/skills/ai-delivery-verify-production/references/production-verification-contract.md +14 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Change Review Contract
|
|
2
|
+
|
|
3
|
+
## Severity
|
|
4
|
+
|
|
5
|
+
- `critical`: likely production compromise, data loss, or inability to release safely.
|
|
6
|
+
- `high`: incorrect required behavior, security boundary failure, or material architecture violation.
|
|
7
|
+
- `medium`: meaningful defect or maintainability risk that should block this package.
|
|
8
|
+
- `low`: non-blocking improvement supported by an approved source.
|
|
9
|
+
|
|
10
|
+
## Finding Shape
|
|
11
|
+
|
|
12
|
+
Record finding ID, severity, title, file and line, evidence, violated artifact or standard ID, impact, and required correction.
|
|
13
|
+
|
|
14
|
+
## Decision
|
|
15
|
+
|
|
16
|
+
Return `pass` only when no blocking findings remain and required checks ran. Return `fail` for confirmed blocking findings and `blocked` when evidence or execution prerequisites are missing.
|
|
17
|
+
|
|
18
|
+
Do not broaden the change under review, author replacement code, or approve your own implementation context.
|
|
19
|
+
|
|
20
|
+
For UI-bearing work, pin the UI handoff, aligned product reconciliation, experience-change set, and task mapping checksums. Report missing, extra, or incorrectly actioned `experience_change_id` rows as blocking specification findings.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-triage-failure
|
|
3
|
+
description: Classify delivery and test failures by root owning stage and create evidence-backed return routes. Use for failed tests, environment failures, ambiguous requirements, design omissions, architecture constraints, planning gaps, release mismatches, deployment failures, or production verification incidents.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Triage Failure
|
|
7
|
+
|
|
8
|
+
Classify ownership without fixing the defect.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Write every triage report, defect route, evidence index, and workflow document produced by this skill under project `.workflow/`, defaulting version-scoped outputs to `.workflow/iterations/<iteration-id>/<node-id>/`. Raw external evidence may remain in controlled systems only when immutable references and checksums are recorded in `.workflow/`.
|
|
13
|
+
|
|
14
|
+
## Task State
|
|
15
|
+
|
|
16
|
+
1. Invoke `$ai-delivery-checkpoint-task` before preflight to recover or initialize the task snapshot.
|
|
17
|
+
2. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
18
|
+
3. Before returning, finish the snapshot as `completed`, `blocked`, `failed`, or `interrupted`, with actual outputs, evidence, blockers, and one idempotent next action. A Hook event alone never proves completion.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
1. Preserve the candidate, environment, input, command, expected result, actual result, logs, and timestamps.
|
|
23
|
+
2. Reproduce or establish why reproduction is blocked.
|
|
24
|
+
3. Identify the earliest source artifact whose correction would prevent the failure.
|
|
25
|
+
4. Assign one primary route and any impacted downstream artifacts.
|
|
26
|
+
5. Avoid routing every symptom to development.
|
|
27
|
+
|
|
28
|
+
Use these primary routes:
|
|
29
|
+
|
|
30
|
+
- ambiguous or contradictory behavior: product definition;
|
|
31
|
+
- missing or incorrect interaction state: experience design;
|
|
32
|
+
- infeasible boundary, contract, quality target, or migration model: architecture;
|
|
33
|
+
- omitted or incorrectly ordered slice: iteration planning;
|
|
34
|
+
- invalid seam, oracle, case, data, or environment requirement: test design;
|
|
35
|
+
- product code or implementation defect: development;
|
|
36
|
+
- CI/CD, environment, IaC, configuration, observability, or backup defect: platform preparation;
|
|
37
|
+
- incomplete or mismatched release inventory: release preparation;
|
|
38
|
+
- execution deviation from an approved package: deployment;
|
|
39
|
+
- invalid verification signal or threshold: production verification.
|
|
40
|
+
|
|
41
|
+
## Output
|
|
42
|
+
|
|
43
|
+
Create a stable defect ID, severity, evidence, root-owner stage, affected artifact IDs, required correction, required revalidation scope, and status. Mark impacted downstream artifacts stale; do not alter their content.
|
|
44
|
+
|
|
45
|
+
Read [failure-routing-contract.md](references/failure-routing-contract.md).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Failure Routing Contract
|
|
2
|
+
|
|
3
|
+
`defects.csv`:
|
|
4
|
+
|
|
5
|
+
`defect_id,candidate_id,title,severity,failure_class,root_stage,evidence_ref,required_correction,revalidation_scope,status`
|
|
6
|
+
|
|
7
|
+
`defect-artifacts.csv`:
|
|
8
|
+
|
|
9
|
+
`defect_id,artifact_id,impact_type`
|
|
10
|
+
|
|
11
|
+
Use failure classes `product`, `experience`, `architecture`, `planning`, `test-design`, `implementation`, `platform`, `release`, `deployment`, `production-verification`, `flaky`, and `blocked`.
|
|
12
|
+
|
|
13
|
+
Route to the earliest incorrect source, not the latest visible symptom. Mark all dependent artifacts stale but leave correction to the owning producer.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-validate-artifacts
|
|
3
|
+
description: Validate AI delivery artifacts, registries, baselines, CSV relationships, versions, approvals, standards pins, and handoff contracts. Use before every stage transition, after an artifact change, when workflow state is inconsistent, or when a downstream skill rejects its inputs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Validate Delivery Artifacts
|
|
7
|
+
|
|
8
|
+
Validate contracts without repairing producer-owned content.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Require every workflow document to resolve under project `.workflow/` unless it is an explicit exception in `STD-ARTIFACT-PATH-001`. Write validation reports under `.workflow/iterations/<iteration-id>/<node-id>/`, and reject unapproved workflow documents placed at the project root or beside source code.
|
|
13
|
+
|
|
14
|
+
## Task State
|
|
15
|
+
|
|
16
|
+
1. Invoke `$ai-delivery-checkpoint-task` before preflight to recover or initialize the task snapshot.
|
|
17
|
+
2. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
18
|
+
3. Before returning, finish the snapshot as `completed`, `blocked`, `failed`, or `interrupted`, with actual outputs, evidence, blockers, and one idempotent next action. A Hook event alone never proves completion.
|
|
19
|
+
|
|
20
|
+
## Validation Order
|
|
21
|
+
|
|
22
|
+
1. Parse files with format-aware parsers. Validate UTF-8 CSV headers and quoting, YAML structure, Markdown-required sections, OpenAPI or JSON Schema syntax, and referenced native artifacts.
|
|
23
|
+
2. Verify stable ID syntax and uniqueness within type.
|
|
24
|
+
3. Verify every registry file path, artifact version, input reference, standards pin, approval, and checksum.
|
|
25
|
+
4. Verify all association-table foreign keys and reject ad hoc multi-value cells where an association CSV is required.
|
|
26
|
+
5. Verify required artifact sets for the target handoff.
|
|
27
|
+
6. Verify baseline immutability, version increments, stale flags, and downstream impact declarations.
|
|
28
|
+
7. Verify status transitions and human gates.
|
|
29
|
+
8. Verify traceability from product goals through features, terminals, stories, acceptance criteria, pages, canvases, prototype files/elements, slices, tasks, tests, release items, and deployment evidence as applicable.
|
|
30
|
+
9. For UI-bearing scope, validate the human tool-selection Gate, executable low-fidelity runtime, mandatory `UX-LF`, `UX-VS`, and `UX-UI` human decisions, stable page numbering, one-main-page-family-per-canvas rule, explicit file/terminal relations, adjustment history, impact propagation, and aligned `product-prototype-reconciliation.yaml`.
|
|
31
|
+
10. Verify complete prototype-set membership and that UI handoff, experience confirmation, architecture validation, test validation, planning, development, and verification all reference the same product reconciliation, experience-change checksum, set checksum, and relevant member IDs, versions, source revisions, review-bundle checksums, management/review catalog checksums, impact-assessment checksums, and receipt checksums. Require downstream work to consume only `ready-for-development` changes.
|
|
32
|
+
|
|
33
|
+
## Output
|
|
34
|
+
|
|
35
|
+
Report findings first with severity, artifact ID, location, violated rule, evidence, and owning producer. Return one decision: `valid`, `invalid`, or `blocked`. Never rewrite an invalid artifact while acting as validator; route it to the producer.
|
|
36
|
+
|
|
37
|
+
Read [artifact-contract.md](references/artifact-contract.md) for required metadata, statuses, formats, and handoff sets.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Artifact Contract
|
|
2
|
+
|
|
3
|
+
## Required Metadata
|
|
4
|
+
|
|
5
|
+
Record artifact ID, type, version, iteration ID, status, producer skill, input artifact IDs and versions, standards IDs and versions, validation results, approval state when required, relative path, and checksum when frozen.
|
|
6
|
+
|
|
7
|
+
## Formats
|
|
8
|
+
|
|
9
|
+
- Markdown: narrative and human review.
|
|
10
|
+
- CSV: flat tabular records and normalized association tables.
|
|
11
|
+
- YAML: state, registry, manifests, controlled mappings, and approvals.
|
|
12
|
+
- OpenAPI or JSON Schema: executable interface and data contracts.
|
|
13
|
+
- Mermaid or native design references: diagrams and visual models.
|
|
14
|
+
- Native source and test files: implementation evidence.
|
|
15
|
+
|
|
16
|
+
Use UTF-8 CSV, fixed headers, stable IDs, controlled enums, parser-safe quoting, and no merged cells, colors, formulas, or delimiter-packed relationship fields.
|
|
17
|
+
|
|
18
|
+
## Prototype Handoff Set
|
|
19
|
+
|
|
20
|
+
For visual or interactive terminals, require:
|
|
21
|
+
|
|
22
|
+
- a versioned prototype set with one member manifest per independently versioned review bundle;
|
|
23
|
+
- a valid human tool-selection receipt per member, with one actually available authoring tool selected before source authoring;
|
|
24
|
+
- stable page, canvas, prototype-file, and file-terminal catalogs with normalized relationships;
|
|
25
|
+
- an executable low-fidelity prototype with a passing human `UX-LF` receipt;
|
|
26
|
+
- a checksummed visual system, design tokens, selected UI framework, component-state matrix, and passing human `UX-VS` receipt;
|
|
27
|
+
- a runnable formal UI with a passing human `UX-UI` receipt;
|
|
28
|
+
- checksummed review sessions, comments, complete adjustment log, experience/requirement change sets, and impact assessment;
|
|
29
|
+
- an aligned `product-prototype-reconciliation.yaml` and a `ui-handoff.yaml` whose development readiness is `ready-for-development`;
|
|
30
|
+
- each member manifest with immutable source revision, SHA-256 review bundle, and checksums for linked traceability and state catalogs;
|
|
31
|
+
- normalized feature/acceptance/terminal/flow/page/canvas/file/screen/state-to-prototype-element traceability;
|
|
32
|
+
- one source confirmation per set member against product and initial architecture inputs;
|
|
33
|
+
- one architecture validation receipt per set member before architecture reconciliation exits;
|
|
34
|
+
- one test validation receipt per relevant set member before test design exits.
|
|
35
|
+
|
|
36
|
+
Validate main page IDs against `^P[0-9]{2,}$` and child IDs against `^P[0-9]{2,}-[0-9]{2,}$`; require child `parent_page_id` to match its main-page prefix. Verify derived display labels, uniqueness, no ID reuse, and `retired` preservation. Reject third-level page IDs. Require each canvas to contain exactly one main-page family. Require file splits when terminal, authoring tool, permission, freeze/review lifecycle, or independent delivery boundaries differ.
|
|
37
|
+
|
|
38
|
+
Require tool selections `valid/selected`, all applicable staged Gate decisions approved by a human, and impact assessments `valid/ready-for-finalization`. Require each Gate's latest session `approved`, every comment terminal, every adjustment revision-linked, every semantic impact reconciled with product and rebaselined before final freeze, and the approved formal UI revision to match the final manifest. Only a genuinely non-visual terminal may mark these visual Gates `not-applicable`, with product-terminal evidence and rationale.
|
|
39
|
+
|
|
40
|
+
Require the same set identity/checksum and complete relevant member identities, revisions, bundle/management/review/impact checksums, and receipt checksums in all downstream references. Require source confirmations `valid/confirmed-for-handoff` and architecture/test receipts `valid/accepted`. Reject ambiguous set cardinality, mutable URL-only evidence, missing members or receipts, checksum mismatches, silent downstream edits, and confirmed prototypes with blocking issues.
|
|
41
|
+
|
|
42
|
+
## Status Rules
|
|
43
|
+
|
|
44
|
+
Approved or frozen artifacts are immutable. Changes create a new version, mark downstream dependents stale, and run impact analysis. A handoff is valid only when required inputs exist, references resolve, required approvals pass, standards are pinned, and the producer-specific required set is complete.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-verify-candidate
|
|
3
|
+
description: Independently verify an immutable iteration or release candidate against approved requirements, architecture, prototypes, selected version lineage, and delivery materials in a reproducible environment. Use after iteration development and platform readiness converge, during R05 release verification, after a candidate fix, or when regression scope must be recalculated.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verify Candidate
|
|
7
|
+
|
|
8
|
+
Validate the assembled system independently. Never modify product code, migrations, infrastructure, or configuration while acting as verifier.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Write iteration-scope outputs to `.workflow/iterations/<version-id>/11-candidate-verification/` and release-scope outputs to `.workflow/releases/<release-id>/R05-release-verification/`. Candidate binaries and images remain immutable in their artifact stores and are referenced by digest.
|
|
13
|
+
|
|
14
|
+
## Task State
|
|
15
|
+
|
|
16
|
+
1. Invoke `$ai-delivery-checkpoint-task` before preflight to recover or initialize the task snapshot.
|
|
17
|
+
2. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
18
|
+
3. Before returning, finish the snapshot as `completed`, `blocked`, `failed`, or `interrupted`, with actual outputs, evidence, blockers, and one idempotent next action. A Hook event alone never proves completion.
|
|
19
|
+
|
|
20
|
+
## Select Scope
|
|
21
|
+
|
|
22
|
+
Require `scope: iteration` or `scope: release`. For iteration scope, verify one planned candidate and produce the evidence consumed by version closeout. For release scope, verify the exact aggregated release candidate, selected continuous version closure, environment/configuration snapshot, migrations, and release material index.
|
|
23
|
+
|
|
24
|
+
## Preflight
|
|
25
|
+
|
|
26
|
+
Read `.workflow/config/workspace.yaml` first. Resolve and verify every `repo_id`, `code_commit`, optional `code_tag`, `source_path`, and SHA-256 against the configured nested code repository; stop when a candidate references the workflow repository or another code repository.
|
|
27
|
+
|
|
28
|
+
Read the candidate manifest, approved baselines, exact ready UI handoff, aligned product reconciliation, experience/requirement change sets, task-to-experience-change traceability, exact prototype set and relevant member manifests/review bundles, tool-selection and page/canvas/file catalogs, interaction/component-state contracts, review/impact records, prototype source confirmations, architecture and test receipts, overall test strategy, public iteration test contract, prior defects, actual change inventory, applicable standards, test environment evidence, and candidate commit and artifact digests. Require source confirmations `valid/confirmed-for-handoff` and architecture/test receipts `valid/accepted`. Stop if the environment or candidate is mutable, any relevant member receipt is missing or non-passing, any planned `ready-for-development` change lacks implementation evidence, or any handoff/set/member identity, management/review/impact checksum, or review-bundle checksum is mismatched.
|
|
29
|
+
|
|
30
|
+
## Plan Independent Verification
|
|
31
|
+
|
|
32
|
+
1. Analyze changed and adjacent risks without relying only on developer-authored tests.
|
|
33
|
+
2. Derive additional edge, negative, cross-component, end-to-end, exploratory, regression, security, performance, accessibility, compatibility, migration, recovery, and page/canvas/file/element-level prototype-conformance work as applicable.
|
|
34
|
+
3. Create only test roles justified by risk. Keep every role independent from implementation.
|
|
35
|
+
4. Invoke `$ai-delivery-execute-test` for each test work package.
|
|
36
|
+
|
|
37
|
+
## Decide
|
|
38
|
+
|
|
39
|
+
Aggregate evidence, coverage, defects, untested scope, flaky or blocked checks, and residual risk. Use `$ai-delivery-triage-failure` for every failure. A failing validator records and routes defects; it never patches the candidate.
|
|
40
|
+
|
|
41
|
+
Produce:
|
|
42
|
+
|
|
43
|
+
- independent test cases and automation;
|
|
44
|
+
- execution logs and evidence;
|
|
45
|
+
- requirement, feature, experience-change, page, canvas, prototype-file/element, risk, and test coverage matrices;
|
|
46
|
+
- defect CSV with severity and reproduction evidence;
|
|
47
|
+
- specialty test results as applicable;
|
|
48
|
+
- untested scope and residual risks;
|
|
49
|
+
- one candidate decision: `pass`, `fail`, or `blocked`;
|
|
50
|
+
- iteration closeout recommendation or release recommendation, matching the selected scope.
|
|
51
|
+
|
|
52
|
+
Read [candidate-verification-contract.md](references/candidate-verification-contract.md) and use `assets/verification-template/` for reports.
|
|
53
|
+
|
|
54
|
+
## Handoff
|
|
55
|
+
|
|
56
|
+
Route failures to their producer. Hand a passing iteration candidate to `$ai-delivery-close-version`. Hand a passing release candidate back to `$ai-delivery-orchestrate-release` for `R06-release-preparation`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
defect_id,artifact_id,impact_type
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
defect_id,candidate_id,title,severity,failure_class,root_stage,evidence_ref,required_correction,revalidation_scope,status
|
package/skills/ai-delivery-verify-candidate/assets/verification-template/test-work-packages.csv
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test_task_id,candidate_id,risk_id,test_type,objective,public_seam,environment_id,data_ref,evidence_ref,status
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Candidate Verification Contract
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
Require `iteration` or `release`. Iteration scope verifies one planned-version candidate for `12-version-closeout`. Release scope verifies the exact `R04-release-candidate`, selected version closure, release material index, environment/configuration snapshot, migrations, rollback compatibility, and target tag before R06.
|
|
6
|
+
|
|
7
|
+
## Test Work Packages
|
|
8
|
+
|
|
9
|
+
`test-work-packages.csv`:
|
|
10
|
+
|
|
11
|
+
`test_task_id,candidate_id,risk_id,test_type,objective,public_seam,environment_id,data_ref,evidence_ref,status`
|
|
12
|
+
|
|
13
|
+
Create test types only when justified by changed or adjacent risk.
|
|
14
|
+
|
|
15
|
+
## Candidate Decision
|
|
16
|
+
|
|
17
|
+
Return `pass` only when mandatory gates pass, blocking defects are absent, required coverage is evidenced, and untested scope is acceptable under approved policy. Return `fail` for candidate defects and `blocked` for unavailable prerequisites.
|
|
18
|
+
|
|
19
|
+
For UI-bearing scope, require one exact ready UI handoff, aligned product reconciliation, experience-change set, prototype-set identity/checksum, and a complete relevant member set across manifests, tool-selection and page/canvas/file catalogs, review/impact records, source confirmations, architecture receipts, test receipts, iteration plan, work packages, and candidate traceability. Verify every planned `experience_change_id` has the declared implementation action and independent behavior, visual-regression, responsive, and accessibility evidence as applicable. Verify matching management/review/impact checksums and applicable page/canvas/file/element identities and states through every delivered terminal. Route requirement conflicts to product, prototype defects to experience, feasibility conflicts to architecture, testability gaps to test design, and implementation differences to development.
|
|
20
|
+
|
|
21
|
+
## Independence
|
|
22
|
+
|
|
23
|
+
Derive additional cases from approved requirements, architecture risks, historical defects, and observed boundaries. Do not repair code or relax expected results to match implementation.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-verify-production
|
|
3
|
+
description: Independently verify an R08 production deployment, decide release success from approved technical and business signals, trigger pre-authorized rollback to the previous stable image digest, and hand off release archive. Use immediately after every production deployment or rollback attempt, including same-version redeploys.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verify Production
|
|
7
|
+
|
|
8
|
+
Keep deployment execution separate from release success.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
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/`.
|
|
13
|
+
|
|
14
|
+
## Task State
|
|
15
|
+
|
|
16
|
+
1. Invoke `$ai-delivery-checkpoint-task` before preflight to recover or initialize the task snapshot.
|
|
17
|
+
2. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
18
|
+
3. Before returning, finish the snapshot as `completed`, `blocked`, `failed`, or `interrupted`, with actual outputs, evidence, blockers, and one idempotent next action. A Hook event alone never proves completion.
|
|
19
|
+
|
|
20
|
+
## Preflight
|
|
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.
|
|
23
|
+
|
|
24
|
+
## Verify
|
|
25
|
+
|
|
26
|
+
1. Run health, readiness, production smoke, core journey, data-integrity, authorization, and security checks.
|
|
27
|
+
2. Observe logs, errors, latency, traffic, resources, queues, and approved business sanity signals for the defined window.
|
|
28
|
+
3. Verify alerts, dashboards, audit records, configuration, migrations, and actual delivery items.
|
|
29
|
+
4. Compare objective results with release thresholds and record evidence.
|
|
30
|
+
|
|
31
|
+
## Decide And Roll Back
|
|
32
|
+
|
|
33
|
+
- Mark `released` only when all mandatory checks pass.
|
|
34
|
+
- For a pre-authorized objective technical failure, instruct the deployment system to restore the previous stable image by immutable digest. Do not create a rollback branch, reset Git, rebuild old code, or move a Tag.
|
|
35
|
+
- Restore only approved compatible configuration or feature flags. Execute data or infrastructure recovery only from the approved release plan.
|
|
36
|
+
- When old-image compatibility is unproven or data recovery is irreversible, stop and request the approved manual recovery decision.
|
|
37
|
+
- For ambiguous business-signal degradation with healthy technical signals, pause for human judgment.
|
|
38
|
+
|
|
39
|
+
After successful release verification, invoke `$ai-delivery-manage-git` to fast-forward code-repository `main` to the exact deployed, tagged commit. Record the release decision only in the workflow repository. For same-version redeploy, allow code `main` to remain at the same commit. After rollback, keep code `main` 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
|
+
|
|
41
|
+
## Outputs
|
|
42
|
+
|
|
43
|
+
- production verification report and evidence;
|
|
44
|
+
- release decision and observation window;
|
|
45
|
+
- rollback deployment record and rollback verification when applicable;
|
|
46
|
+
- residual risks, incident or defect routes, and final production version;
|
|
47
|
+
- release archive handoff or rework status.
|
|
48
|
+
- final production version, release ID, and immutable release evidence for `R10-release-archive`.
|
|
49
|
+
|
|
50
|
+
Read [production-verification-contract.md](references/production-verification-contract.md) and use `assets/production-verification-template/`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Production Verification
|
|
2
|
+
|
|
3
|
+
## Release And Deployment Identity
|
|
4
|
+
|
|
5
|
+
## Mandatory Checks
|
|
6
|
+
|
|
7
|
+
## Observation Window And Signals
|
|
8
|
+
|
|
9
|
+
## Actual Delivery Reconciliation
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
## Rollback And Rollback Verification
|
|
14
|
+
|
|
15
|
+
## Residual Risk And Routes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Production Verification Contract
|
|
2
|
+
|
|
3
|
+
## Required Evidence
|
|
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.
|
|
6
|
+
|
|
7
|
+
## Decisions
|
|
8
|
+
|
|
9
|
+
- `released`: mandatory thresholds pass; fast-forward `main` to the exact deployed tagged commit, or keep the identical commit for same-version redeploy, then hand off R10 archive.
|
|
10
|
+
- `rolled-back`: an authorized technical threshold fails; redeploy the previous stable image digest and verify it.
|
|
11
|
+
- `blocked`: rollback compatibility, recovery authority, or evidence is insufficient.
|
|
12
|
+
- `human-decision`: business signals are ambiguous while technical signals remain healthy.
|
|
13
|
+
|
|
14
|
+
Never create a rollback branch, move a release Tag, reset `main`, or rebuild the previous image.
|