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,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-execute-test
|
|
3
|
+
description: Execute one independent risk-based test work package against an immutable candidate and controlled environment. Use when candidate verification assigns a bounded functional, integration, end-to-end, security, performance, accessibility, compatibility, migration, or recovery validation objective.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Execute Test Work Package
|
|
7
|
+
|
|
8
|
+
Observe and report. Do not repair the candidate, change test expectations to make a failure pass, or inspect private internals unless the work package explicitly defines a white-box security objective.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Write every test report, log index, evidence manifest, and workflow document produced by this skill under project `.workflow/`, defaulting version-scoped outputs to `.workflow/iterations/<iteration-id>/<node-id>/`. Raw external logs may remain in controlled systems only when their 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. Read the work package, approved source artifacts, candidate identity, environment identity, applicable standards, evidence requirements, and exact page/canvas/file/element references for UI or prototype-conformance scope.
|
|
23
|
+
2. Confirm prerequisites and isolate test data.
|
|
24
|
+
3. Derive additional cases from independent requirements and risk sources when allowed.
|
|
25
|
+
4. Execute through public interfaces and retain reproducible commands, inputs, outputs, timestamps, and environment references.
|
|
26
|
+
5. Distinguish product failure, test defect, environment defect, flaky behavior, and blocked execution.
|
|
27
|
+
6. Minimize a failure to a reproducible case without mutating production code.
|
|
28
|
+
7. Submit every failure to `$ai-delivery-triage-failure`.
|
|
29
|
+
|
|
30
|
+
## Output
|
|
31
|
+
|
|
32
|
+
Produce test cases or an exploratory charter, execution evidence, coverage references, observed results, defects, blocked scope, and a `pass`, `fail`, or `blocked` decision for this package.
|
|
33
|
+
|
|
34
|
+
Read [test-execution-contract.md](references/test-execution-contract.md).
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Test Execution Contract
|
|
2
|
+
|
|
3
|
+
Record test task ID, candidate ID, environment ID, source and risk references, page/canvas/prototype-file/element IDs when UI-bearing, prerequisites, inputs, commands or actions, expected result, actual result, timestamps, logs or screenshots, cleanup, and decision.
|
|
4
|
+
|
|
5
|
+
Use stable defect IDs for failures. Preserve raw evidence before summarizing it. Identify flaky, blocked, environment, test-design, and product failures separately.
|
|
6
|
+
|
|
7
|
+
Do not mutate candidate artifacts, product code, migrations, IaC, configuration, or approved expected results.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-execute-work-package
|
|
3
|
+
description: Execute one architecture-constrained technical work package against its exact confirmed prototype using a dynamically assigned capability role and test-driven development. Use only when a develop-iteration work package defines its objective, scope, dependencies, prototype references when UI-bearing, public test seam, stack, commands, expected outputs, and completion evidence.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Execute Technical Work Package
|
|
7
|
+
|
|
8
|
+
Implement only the assigned package. Do not broaden scope, choose a different stack, approve your own change, or repair unrelated defects.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Write every work-package document, TDD record, evidence manifest, and handoff record produced by this skill under project `.workflow/`, defaulting version-scoped outputs to `.workflow/iterations/<iteration-id>/<node-id>/`. Source code, automated test source, and non-document build artifacts remain in their declared modification scopes.
|
|
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
|
+
1. Read the work package, source baselines, applicable standards, confirmed test seam, repository instructions, and exact UI handoff, product reconciliation, experience-change mapping, prototype-set/member revisions, management/review/impact checksums, and page/canvas/file/element mappings when the package is UI-bearing. Require every mapped change to be `ready-for-development` and its action to be one of `create|update|remove|migrate|no-code`.
|
|
23
|
+
2. Verify the current branch and worktree with `$ai-delivery-manage-git`.
|
|
24
|
+
3. Inspect the current code and tests before planning edits.
|
|
25
|
+
4. Stop on missing dependencies, prototype or page/canvas/file identity mismatch, overlapping ownership, ambiguous acceptance behavior, or an infeasible architecture. Return evidence to the orchestrator.
|
|
26
|
+
|
|
27
|
+
## TDD Loop
|
|
28
|
+
|
|
29
|
+
For one vertical behavior at a time:
|
|
30
|
+
|
|
31
|
+
1. Write a behavior test through the confirmed public interface.
|
|
32
|
+
2. Run it and retain evidence that it fails for the expected reason.
|
|
33
|
+
3. Implement the minimum behavior needed to pass.
|
|
34
|
+
4. Run the focused test and retain Green evidence.
|
|
35
|
+
5. Run relevant regression tests.
|
|
36
|
+
6. Repeat for the next behavior.
|
|
37
|
+
|
|
38
|
+
Avoid private-method tests, internal collaborator mocks, tautological expectations, and bulk horizontal test creation. Mock only external system boundaries when a real controlled dependency is impractical.
|
|
39
|
+
|
|
40
|
+
Perform cleanup or refactoring only from a Green checkpoint and expose it to independent review; do not hide behavior changes inside refactoring.
|
|
41
|
+
|
|
42
|
+
## Finish
|
|
43
|
+
|
|
44
|
+
- Run architecture-specified format, lint, type, build, test, migration, and security commands.
|
|
45
|
+
- Update task-to-experience-change traceability and advance implemented rows through the state CLI; update technical documentation, configuration catalogs, and migration/rollback notes when affected.
|
|
46
|
+
- Record deviations and TDD exceptions explicitly.
|
|
47
|
+
- Commit only files in the allowed scope and produce a review packet with commands and evidence.
|
|
48
|
+
|
|
49
|
+
Read [work-package-contract.md](references/work-package-contract.md).
|
|
50
|
+
|
|
51
|
+
## Handoff
|
|
52
|
+
|
|
53
|
+
Submit the change to `$ai-delivery-review-change`. A passing self-check is not approval.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Work Package Contract
|
|
2
|
+
|
|
3
|
+
A package is executable only when it declares:
|
|
4
|
+
|
|
5
|
+
- stable task, iteration, and slice IDs;
|
|
6
|
+
- objective and observable completion behavior;
|
|
7
|
+
- approved source and standards references;
|
|
8
|
+
- exact ready UI handoff, aligned product reconciliation, actionable experience-change IDs with create/update/remove/migrate/no-code actions, prototype-set identity/checksum, relevant member IDs/revisions/review-bundle checksums, management/review/impact checksums, and page/canvas/file/element IDs when UI-bearing;
|
|
9
|
+
- required capability role;
|
|
10
|
+
- allowed and forbidden modification scope;
|
|
11
|
+
- predecessor outputs;
|
|
12
|
+
- stack, versions, and commands;
|
|
13
|
+
- confirmed public TDD seam;
|
|
14
|
+
- expected code, test, data, configuration, and documentation outputs;
|
|
15
|
+
- completion checks and evidence paths;
|
|
16
|
+
- risk, compatibility, migration, and rollback impact.
|
|
17
|
+
|
|
18
|
+
Return `blocked` rather than infer missing behavior or expand scope.
|
|
19
|
+
|
|
20
|
+
Retain Red evidence, Green evidence, regression results, final commands, changed-file inventory, traceability, deviations, and TDD exceptions in the review packet.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-manage-git
|
|
3
|
+
description: Enforce the AI delivery Git model using a protected production main, cumulative product development lines, planned-version and work-package branches, explicit release branches, hotfix branches, immutable version/release tags, and serialized production transitions. Use whenever creating, validating, merging, freezing, tagging, cleaning, or advancing delivery Git state.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Manage Delivery Git
|
|
7
|
+
|
|
8
|
+
Perform controlled Git transitions. Never represent Dev, SIT, staging, production, or rollback as branches.
|
|
9
|
+
|
|
10
|
+
## Repository Boundary
|
|
11
|
+
|
|
12
|
+
Read `.workflow/config/workspace.yaml` and execute every `line/*`, `version/*`, `work/*`, `release/*`, `release-fix/*`, `hotfix/*`, code `main`, and `version-ready/*` operation in the configured code repository. The workflow repository keeps shared process facts on `workflow/<workspace-id>` and only creates `workflow-ready/<version-id>/rN` after the corresponding version manifest is committed. Never create application branches or Tags in the workflow repository, and never treat the workflow fact branch as production code history.
|
|
13
|
+
|
|
14
|
+
## Artifact Location
|
|
15
|
+
|
|
16
|
+
Write every Git decision, transition record, scope declaration, and workflow document produced by this skill under project `.workflow/`, defaulting version-scoped outputs to `.workflow/iterations/<iteration-id>/<node-id>/`. Git metadata and repository configuration remain in their native locations.
|
|
17
|
+
|
|
18
|
+
## Task State
|
|
19
|
+
|
|
20
|
+
1. Invoke `$ai-delivery-checkpoint-task` before preflight to recover or initialize the task snapshot.
|
|
21
|
+
2. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
## Branch Model
|
|
25
|
+
|
|
26
|
+
- `main`: protected production-success lineage;
|
|
27
|
+
- `line/<product-id>`: latest verified cumulative development lineage, which may remain ahead of production;
|
|
28
|
+
- `version/<version-id>-<slug>`: one planned cumulative version;
|
|
29
|
+
- `work/<version-id>/<task-id>-<slug>`: one dynamic technical work package;
|
|
30
|
+
- `release/<release-id>-<slug>`: one explicit user-requested release candidate;
|
|
31
|
+
- `release-fix/<release-id>/<defect-id>`: one isolated release-candidate correction;
|
|
32
|
+
- `hotfix/<hotfix-id>-<slug>`: urgent correction from the current production Tag.
|
|
33
|
+
|
|
34
|
+
Reject environment branches (`dev`, `sit`, `staging`, `production`), `rollback-*`, role-named branches, direct protected-branch commits, and force pushes to protected history.
|
|
35
|
+
|
|
36
|
+
## Work Package Operations
|
|
37
|
+
|
|
38
|
+
1. Create every planned-version branch from the latest `line/<product-id>` head and every work branch from its planned-version baseline.
|
|
39
|
+
2. Create an isolated worktree for every parallel AI package.
|
|
40
|
+
3. Verify declared modification scope and prevent overlapping parallel write ownership.
|
|
41
|
+
4. Require TDD evidence, independent review, and CI before merge.
|
|
42
|
+
5. Prefer squash merge from work to planned version and retain task traceability in delivery artifacts.
|
|
43
|
+
6. Remove completed worktrees and temporary branches only after confirming their changes and evidence are retained.
|
|
44
|
+
|
|
45
|
+
## Release Operations
|
|
46
|
+
|
|
47
|
+
1. At planned-version closeout, create immutable code `version-ready/<version-id>/rN`, fast-forward code `line/<product-id>`, commit workflow materials, then create workflow `workflow-ready/<version-id>/rN`; stop without changing code `main`.
|
|
48
|
+
2. Serialize production release transitions only after explicit user release intent.
|
|
49
|
+
3. Create `release/<release-id>-<slug>` from the selected target's exact version-ready Tag. Never merge each intermediate Tag or build from a movable line/version branch head.
|
|
50
|
+
4. Apply any release-only correction on `release-fix/*`, create a new release candidate, and repeat impacted verification.
|
|
51
|
+
5. Freeze and Tag the exact tested release commit before production deployment. Never move or reuse a release Tag.
|
|
52
|
+
6. Promote the same artifact digest through environments; Git branches do not select environment state.
|
|
53
|
+
7. After successful production verification, fast-forward `main` to the exact deployed commit. Same-version redeploy may leave `main` unchanged.
|
|
54
|
+
8. After failed deployment and image rollback, keep `main` unchanged and preserve failed release and version Tags.
|
|
55
|
+
|
|
56
|
+
## Hotfix Operations
|
|
57
|
+
|
|
58
|
+
Create a hotfix from the current production Tag, run the shortened but complete explicit release path, and update `main` only after production verification. Synchronize the hotfix into `line/<product-id>` and rerun impact analysis. Mark every release-ready candidate that does not contain the hotfix commit `stale`.
|
|
59
|
+
|
|
60
|
+
Read [git-policy.md](references/git-policy.md) before mutating Git state. Use non-interactive commands, protect user changes, and stop before destructive or ambiguous operations.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# AI Delivery Git Policy
|
|
2
|
+
|
|
3
|
+
## Two Repository Contract
|
|
4
|
+
|
|
5
|
+
The workspace root Git repository tracks `.workflow/`, project Skills, configuration, shared task shards, checkpoints, approvals, and manifests. Its `workflow/<workspace-id>` branch is shared workflow fact history. The direct child configured by `.workflow/config/workspace.yaml` is the only application code repository and owns every delivery branch, application `main`, and code Tag. The workflow repository ignores the exact code child path; the code repository does not ignore or track its parent.
|
|
6
|
+
|
|
7
|
+
At version closeout, create the code Tag first, commit the final workflow manifest second, and create the workflow Tag third. A release-ready identity is valid only when the code Tag resolves to the candidate commit, the workflow Tag resolves to the workflow commit containing the manifest, and the manifest bytes match the recorded SHA-256.
|
|
8
|
+
|
|
9
|
+
## Protected State
|
|
10
|
+
|
|
11
|
+
Protect `main` and `line/*` from direct AI commits and history rewrites. Protect active `version/*` and `release/*` according to repository policy. Permit force-with-lease only on an unshared work or release-fix branch. Never discard uncommitted user changes.
|
|
12
|
+
|
|
13
|
+
## Naming
|
|
14
|
+
|
|
15
|
+
- `line/<product-id>`
|
|
16
|
+
- `version/<version-id>-<slug>`
|
|
17
|
+
- `work/<version-id>/<task-id>-<slug>`
|
|
18
|
+
- `release/<release-id>-<slug>`
|
|
19
|
+
- `release-fix/<release-id>/<defect-id>`
|
|
20
|
+
- `hotfix/<hotfix-id>-<slug>`
|
|
21
|
+
|
|
22
|
+
Use stable delivery IDs, not human names or dynamic AI roles.
|
|
23
|
+
|
|
24
|
+
## Cumulative Version Policy
|
|
25
|
+
|
|
26
|
+
Create every next planned version from the current product line head. Close a verified version by creating immutable `version-ready/<version-id>/rN` and fast-forwarding `line/<product-id>` to it. Historical version tags and manifests never change. A correction after closeout normally becomes the next planned version.
|
|
27
|
+
|
|
28
|
+
`main` represents current successful production, while `line/<product-id>` represents the latest verified cumulative development. The line may advance through any number of release-ready versions without changing production.
|
|
29
|
+
|
|
30
|
+
## Release Policy
|
|
31
|
+
|
|
32
|
+
Create a release branch only after explicit user release intent. Build it from the exact target version-ready Tag. Verify every adjacent code and workflow commit edge from current production through the target; a direct production-to-target check does not prove the middle versions. Use intermediate versions for lineage and material closure, not repeated code merges.
|
|
33
|
+
|
|
34
|
+
After successful production verification, fast-forward `main` to the deployed release commit. For same-version redeploy, record a new release ID and Tag while allowing `main` to remain unchanged.
|
|
35
|
+
|
|
36
|
+
## Environment And Rollback Policy
|
|
37
|
+
|
|
38
|
+
Do not create environment or rollback branches. Record environment deployments by release ID, commit, image digest, configuration baseline, migration set, and IaC state. Rollback deploys the previous compatible immutable image digest. Git history and Tags remain unchanged.
|
|
39
|
+
|
|
40
|
+
## Hotfix Policy
|
|
41
|
+
|
|
42
|
+
Create a hotfix from current production, verify and release it, then synchronize it into the cumulative product line. Any candidate not containing that commit becomes `stale` and cannot be selected for release.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-manage-standards
|
|
3
|
+
description: Capture, classify, approve, version, resolve, and apply durable project standards learned during human-AI delivery conversations. Use when a user establishes a recurring rule, asks to record or change a convention, requests applicable standards, proposes an exception, or when skills encounter conflicting guidance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Manage Standards
|
|
7
|
+
|
|
8
|
+
Persist durable rules in the repository instead of relying on chat history. Do not silently turn a preference, suggestion, or one-time instruction into a standard.
|
|
9
|
+
|
|
10
|
+
## Artifact Location
|
|
11
|
+
|
|
12
|
+
Write approved standards, proposals, exceptions, and the standards index under `.workflow/standards/`. Pin adopted versions in `.workflow/delivery/standards-baseline.yaml`; version-scoped standards decisions may additionally be referenced from `.workflow/iterations/<iteration-id>/<node-id>/`.
|
|
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
|
+
## Resolve Applicable Standards
|
|
21
|
+
|
|
22
|
+
1. Read `AGENTS.md` and `.workflow/standards/index.yaml`.
|
|
23
|
+
2. Select only approved standards matching the current stage, artifact type, technology, and scope.
|
|
24
|
+
3. Load selected Markdown standards and return their IDs and versions.
|
|
25
|
+
4. Apply precedence: system and tool constraints, approved scoped exceptions, more-specific approved project standards, then workflow defaults.
|
|
26
|
+
5. Stop on unresolved conflicts at the same precedence.
|
|
27
|
+
|
|
28
|
+
## Capture A Standard Candidate
|
|
29
|
+
|
|
30
|
+
1. Detect durable normative language such as must, never, always, standardize, or use next time.
|
|
31
|
+
2. Ask whether the rule is temporary, a durable standard, or a scoped exception when intent is unclear.
|
|
32
|
+
3. Search for duplicate, overlapping, superseded, and conflicting standards.
|
|
33
|
+
4. Draft the exact rule, scope, examples, enforcement, exception policy, version change, and impact.
|
|
34
|
+
5. Show the proposed diff and affected artifacts or active iterations.
|
|
35
|
+
6. Require human approval for creation, update, deprecation, or exception.
|
|
36
|
+
7. Persist the approved standard, update the index, and mark impacted artifacts stale for revalidation.
|
|
37
|
+
|
|
38
|
+
## Standard Shape
|
|
39
|
+
|
|
40
|
+
Record ID, title, version, status, scope, effective date, superseded ID, rule, applicability, examples, automatic checks, exception conditions, and violation behavior. Keep one canonical source; Git history records prior text.
|
|
41
|
+
|
|
42
|
+
Pin standards used by an iteration in `.workflow/delivery/standards-baseline.yaml` and record standards IDs and versions in every artifact manifest and release manifest.
|
|
43
|
+
|
|
44
|
+
Read [standards-contract.md](references/standards-contract.md) and use `assets/standards-template/` for new project standards.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: STD-AREA-001
|
|
3
|
+
title: Replace With Standard Title
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
status: draft
|
|
6
|
+
scope: []
|
|
7
|
+
effective_from: ""
|
|
8
|
+
supersedes: null
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Rule
|
|
12
|
+
|
|
13
|
+
# Applicability
|
|
14
|
+
|
|
15
|
+
# Exclusions
|
|
16
|
+
|
|
17
|
+
# Correct Examples
|
|
18
|
+
|
|
19
|
+
# Incorrect Examples
|
|
20
|
+
|
|
21
|
+
# Validation
|
|
22
|
+
|
|
23
|
+
# Exceptions
|
|
24
|
+
|
|
25
|
+
# Violation Behavior
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Standards Contract
|
|
2
|
+
|
|
3
|
+
## Registry
|
|
4
|
+
|
|
5
|
+
`.workflow/standards/index.yaml` records standard ID, title, version, status, scope tags, effective date, superseded ID, and relative path.
|
|
6
|
+
|
|
7
|
+
Use statuses `draft`, `approved`, `deprecated`, and `rejected`. Only approved standards bind work.
|
|
8
|
+
|
|
9
|
+
## Standard Body
|
|
10
|
+
|
|
11
|
+
Include rule, applicability, exclusions, correct and incorrect examples, automatic or manual validation, allowed exception conditions, and violation behavior (`stop`, `return`, or `warn`).
|
|
12
|
+
|
|
13
|
+
## Governance
|
|
14
|
+
|
|
15
|
+
- Require human approval for creation, revision, deprecation, and exception.
|
|
16
|
+
- Use a new version for changed meaning.
|
|
17
|
+
- Preserve one canonical body; use Git history instead of a duplicate changelog.
|
|
18
|
+
- Resolve by system/tool constraints, approved scoped exception, more-specific approved project standard, then workflow default.
|
|
19
|
+
- Stop on conflicting standards at equal precedence.
|
|
20
|
+
- Pin applicable IDs and versions in every artifact and iteration standards baseline.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-delivery-orchestrate
|
|
3
|
+
description: Coordinate an initialized artifact-driven AI software delivery workflow from product discovery through a release-ready planned version, without implicitly publishing it. Use after project bootstrap, when creating or continuing an iteration, resolving a blocked handoff, running change-impact analysis, deciding which development stage may execute next, or routing an explicit release request to the separate release orchestrator.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AI Delivery Orchestrator
|
|
7
|
+
|
|
8
|
+
Coordinate state and handoffs. Do not produce specialist product, architecture, design, code, test, or deployment artifacts yourself.
|
|
9
|
+
|
|
10
|
+
## Workspace Boundary
|
|
11
|
+
|
|
12
|
+
Read `.workflow/config/workspace.yaml` before any Git or source operation. The workspace root is the workflow repository; the configured direct child is the only code repository. Workflow facts, approvals, manifests, and checkpoints are committed in the workflow repository. Source, tests, code branches, code Tags, and application commits exist only in the code repository. Every code reference in a workflow artifact must carry `repo_id`, `code_commit`, optional `code_tag`, `source_path`, and SHA-256.
|
|
13
|
+
|
|
14
|
+
## Artifact Location
|
|
15
|
+
|
|
16
|
+
Require every workflow document to be written under project `.workflow/`. Use `.workflow/delivery/` for workflow control, `.workflow/standards/` for standards, `.workflow/product/`, `.workflow/architecture/`, and `.workflow/experience/` for reusable baselines, and `.workflow/iterations/<iteration-id>/<node-id>/` for version-scoped node outputs. Keep source code, automated test source, repository configuration, and non-document build artifacts in their native locations.
|
|
17
|
+
|
|
18
|
+
## Task State
|
|
19
|
+
|
|
20
|
+
1. Invoke `$ai-delivery-bootstrap` in read-only inspect mode when the current session has not classified project state. Do this before checkpoint recovery because an empty or partially initialized project may not have a valid runtime store.
|
|
21
|
+
2. After iteration planning, persist the ordered known-task plan and initialize every known task snapshot as `queued` with `sequence` and `depends_on`. When a node derives dynamic tasks, append and register the complete derived group before executing its first task.
|
|
22
|
+
3. For a complete workflow, first read Bootstrap's `next_action_owner`. Only for `agent`, invoke `$ai-delivery-checkpoint-task recover --iteration-id <iteration-id>` before preflight. Recovery must rebuild local state from the latest Git-tracked shared checkpoint when local runtime is absent. Continue the returned `recommended_task_id`; never choose the next task from chat memory. For `user` or `external`, stop at the zero-mutation wait boundary in step 7.
|
|
23
|
+
4. Activate the recommended task before project mutation. If no task is recommended, reconcile missing or unsatisfied task-plan entries before continuing.
|
|
24
|
+
5. Checkpoint after every meaningful artifact, gate, validation, merge, deployment action, or other external milestone, and before compaction or interruption.
|
|
25
|
+
6. 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.
|
|
26
|
+
7. Persist `next_action_owner` as `agent`, `user`, or `external`. A user- or external-owned next action is a zero-mutation wait state: on restart or a generic “continue”, return only the recorded question or wait condition. Do not recover, activate, checkpoint, mutate artifacts, or change Git state until the required input arrives and ownership is explicitly transferred to `agent` with a new idempotent next action through the task CLI.
|
|
27
|
+
|
|
28
|
+
## Formal State
|
|
29
|
+
|
|
30
|
+
1. Use `node .workflow/tools/state/state.mjs inspect` to read schema 2 formal state: independent `development_state` and `release_state` scopes, the top-level workflow audit revision, and the artifact-registry revision.
|
|
31
|
+
2. Register every formal artifact with `artifact register`; change its lifecycle only with `artifact status`; create a new artifact ID and `--supersedes` instead of overwriting a registered version.
|
|
32
|
+
3. Start development with `iteration-started`; start release only after explicit user intent with `release-started`. Record node, candidate, closeout, and archive changes with `transition`. Record human or contract Gates with `gate request` and `gate decide`.
|
|
33
|
+
4. Pass the current stream revision through `--expected-revision` for every mutation. On a conflict, inspect again and reconcile; never retry blindly.
|
|
34
|
+
5. Run `verify` before handoff, node completion, version closeout, and after recovery. Let the CLI enforce graph prerequisites, successful completion evidence, current-attempt mandatory Gates, and scope identity. Release nodes independently require verification at every release handoff. Stop on checksum, schema, audit, identity, or state-invariant failure.
|
|
35
|
+
6. Never directly edit controlled formal state, shared task/checkpoint shards, or runtime task state. Treat global workflow and artifact indexes as deterministic views over authoritative shards where available. If either state script fails, repair the input or script problem rather than bypassing it.
|
|
36
|
+
7. When the user clearly expresses a workflow improvement, invoke `$ai-delivery-evolve-workflow feedback record` and report the feedback ID. Do not save ordinary discussion, full conversation text, secrets, or AI reasoning. Evaluate pending evidence only after a task, version closeout, or explicit evolution review.
|
|
37
|
+
|
|
38
|
+
## Preflight
|
|
39
|
+
|
|
40
|
+
1. Invoke `$ai-delivery-bootstrap` when the project state has not been classified in the current session. Route empty, brownfield, interrupted, and inconsistent states there before normal orchestration.
|
|
41
|
+
2. Locate the repository root and read `AGENTS.md` when present.
|
|
42
|
+
3. Run `.workflow/tools/state/state.mjs inspect`; read `.workflow/delivery/project.yaml` for descriptive project metadata.
|
|
43
|
+
4. Read `.workflow/standards/index.yaml`, resolve applicable approved standards with `$ai-delivery-manage-standards`, and pin their versions in `.workflow/delivery/standards-baseline.yaml`.
|
|
44
|
+
5. Require project-scoped installation under `.agents/skills/ai-delivery-*`. Never install these skills into user-level `.codex/skills` or `.agents/skills` directories.
|
|
45
|
+
6. Ensure `.workflow/delivery/runtime/`, `.workflow/delivery/runtime/active-task.json`, and `.workflow/delivery/runtime/backups/` are ignored by Git. Never ignore the complete `.workflow/` tree. Require normal Codex Hook trust review and never bypass it.
|
|
46
|
+
7. Stop on malformed state, missing approved inputs, stale references, or conflicting standards. Use `$ai-delivery-validate-artifacts` before advancing.
|
|
47
|
+
|
|
48
|
+
## Route The Workflow
|
|
49
|
+
|
|
50
|
+
Use this first-release order:
|
|
51
|
+
|
|
52
|
+
1. `$ai-delivery-bootstrap`: classify state, initialize missing project context, or route checkpoint recovery.
|
|
53
|
+
2. `$ai-delivery-define-product`: discovery Gate A, then product baseline Gate B.
|
|
54
|
+
3. `$ai-delivery-design-architecture`: initial mode and human approval of major decisions.
|
|
55
|
+
4. Start `$ai-delivery-prepare-platform` as a parallel stream.
|
|
56
|
+
5. `$ai-delivery-design-experience`: obtain one human authoring-tool selection per prototype member; create an executable low-fidelity prototype; pass human Gate `UX-LF`; define visual direction, design tokens, component states, and select a compatible UI framework; pass human Gate `UX-VS`; create a runnable formal UI; pass human Gate `UX-UI`; record every review adjustment and upstream impact.
|
|
57
|
+
6. `$ai-delivery-define-product` in prototype-reconciliation mode: after all formal UI candidates are approved, reconcile the complete adjustment set bidirectionally with product requirements through `product-prototype-reconciliation.yaml`. Rebaseline and repeat affected experience Gates until the decision is `aligned`.
|
|
58
|
+
7. `$ai-delivery-design-architecture`: reconcile mode, prototype architecture receipt, `ready-for-development` experience changes, and final architecture baseline.
|
|
59
|
+
8. `$ai-delivery-plan-iteration`.
|
|
60
|
+
9. `$ai-delivery-design-tests`: prototype test receipt and public test contract.
|
|
61
|
+
10. `$ai-delivery-develop-iteration`, including independent change review.
|
|
62
|
+
11. Join the candidate and delivery-platform streams in a reproducible test environment.
|
|
63
|
+
12. `$ai-delivery-verify-candidate` with `scope: iteration`; route failures upstream.
|
|
64
|
+
13. `$ai-delivery-close-version`; create the immutable `version-ready` tag, advance `line/<product-id>`, mark the version `release-ready`, move closed shared task/checkpoint shards to `.workflow/control/archives/versions/<version-id>/`, and remove them from active recovery collections.
|
|
65
|
+
14. Stop. Continue the next cumulative planned version from the latest line head, or wait for explicit user intent.
|
|
66
|
+
|
|
67
|
+
At every task and version safe point, route eligible feedback and trial observations through `$ai-delivery-evolve-workflow`. Extension behavior begins with the next task or version and never mutates an in-progress execution.
|
|
68
|
+
|
|
69
|
+
Never start release preparation, production approval, deployment, or production verification merely because a version is complete. When the user explicitly asks to release or deploy selected completed versions, route to `$ai-delivery-orchestrate-release`.
|
|
70
|
+
|
|
71
|
+
For later iterations, start from the latest `line/<product-id>` head, run change-impact analysis, and revisit only affected baselines. Always run planning, test design, implementation or platform changes, candidate verification, and version closeout. Release work is a separate user-triggered workflow.
|
|
72
|
+
|
|
73
|
+
## Enforce Human Gates
|
|
74
|
+
|
|
75
|
+
Pause for humans at:
|
|
76
|
+
|
|
77
|
+
- discovery Gate A and product baseline Gate B;
|
|
78
|
+
- major architecture decisions;
|
|
79
|
+
- each prototype member's authoring-tool selection before prototype authoring;
|
|
80
|
+
- each visual or interactive prototype member's `UX-LF`, `UX-VS`, and `UX-UI` decisions, repeated until the latest round is approved and every comment is terminal;
|
|
81
|
+
- production deployment approval;
|
|
82
|
+
- every proposed standard creation, update, deprecation, or exception.
|
|
83
|
+
|
|
84
|
+
Allow downstream contract validation instead of human approval at ordinary intermediate handoffs.
|
|
85
|
+
|
|
86
|
+
## Maintain State
|
|
87
|
+
|
|
88
|
+
- Give every project, iteration, artifact, feature, story, acceptance criterion, slice, task, test, defect, release item, and deployment a stable ID.
|
|
89
|
+
- Record artifact input IDs and versions; never infer dependencies from filenames.
|
|
90
|
+
- Treat approved baselines and release versions as immutable. Create a new version for changes.
|
|
91
|
+
- Carry the same immutable UI handoff, aligned product reconciliation, experience-change set, prototype-set identity/checksum and relevant member identities, source revisions, review-bundle checksums, tool-selection checksums, page/canvas/file catalog checksums, review/adjustment checksums, and impact-assessment checksums through architecture, planning, test design, development, and verification.
|
|
92
|
+
- Mark downstream artifacts stale after an upstream change and route only the impacted work.
|
|
93
|
+
- Record the standards baseline used by every artifact.
|
|
94
|
+
- Keep one production release transition locked at a time while allowing later cumulative iteration work in parallel.
|
|
95
|
+
|
|
96
|
+
## Handle Failures
|
|
97
|
+
|
|
98
|
+
Use `$ai-delivery-triage-failure` to route evidence to the owning stage. Never let a validator silently repair the artifact it validates. A corrected artifact must return through its producer and downstream impact checks.
|
|
99
|
+
|
|
100
|
+
## Report To The User
|
|
101
|
+
|
|
102
|
+
For status requests, show the current iteration, active and blocked development/release nodes, missing inputs, pending human gates, latest immutable candidate, production version, latest cumulative line version, release-ready version count, and one recommended next action. Do not recommend publishing unless the user has expressed release intent.
|
|
103
|
+
|
|
104
|
+
Read [workflow-model.md](references/workflow-model.md) for the state graph, gate rules, and artifact lifecycle.
|
|
105
|
+
Read [formal-state-contract.md](references/formal-state-contract.md) before mutating formal state.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "AI Delivery Orchestrator"
|
|
3
|
+
short_description: "Coordinate AI delivery stages, gates, artifacts, and routing"
|
|
4
|
+
default_prompt: "Use $ai-delivery-orchestrate to start or continue the current workflow using the configured workflow and code repositories."
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[features]
|
|
2
|
+
hooks = true
|
|
3
|
+
|
|
4
|
+
[[hooks.SessionStart]]
|
|
5
|
+
matcher = ""
|
|
6
|
+
[[hooks.SessionStart.hooks]]
|
|
7
|
+
type = "command"
|
|
8
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
9
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
10
|
+
timeout = 5
|
|
11
|
+
async = false
|
|
12
|
+
|
|
13
|
+
[[hooks.UserPromptSubmit]]
|
|
14
|
+
matcher = ""
|
|
15
|
+
[[hooks.UserPromptSubmit.hooks]]
|
|
16
|
+
type = "command"
|
|
17
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
18
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
19
|
+
timeout = 5
|
|
20
|
+
async = false
|
|
21
|
+
|
|
22
|
+
[[hooks.PreToolUse]]
|
|
23
|
+
matcher = ""
|
|
24
|
+
[[hooks.PreToolUse.hooks]]
|
|
25
|
+
type = "command"
|
|
26
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
27
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
28
|
+
timeout = 5
|
|
29
|
+
async = false
|
|
30
|
+
|
|
31
|
+
[[hooks.PermissionRequest]]
|
|
32
|
+
matcher = ""
|
|
33
|
+
[[hooks.PermissionRequest.hooks]]
|
|
34
|
+
type = "command"
|
|
35
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
36
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
37
|
+
timeout = 5
|
|
38
|
+
async = false
|
|
39
|
+
|
|
40
|
+
[[hooks.PostToolUse]]
|
|
41
|
+
matcher = ""
|
|
42
|
+
[[hooks.PostToolUse.hooks]]
|
|
43
|
+
type = "command"
|
|
44
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
45
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
46
|
+
timeout = 5
|
|
47
|
+
async = false
|
|
48
|
+
|
|
49
|
+
[[hooks.PreCompact]]
|
|
50
|
+
matcher = ""
|
|
51
|
+
[[hooks.PreCompact.hooks]]
|
|
52
|
+
type = "command"
|
|
53
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
54
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
55
|
+
timeout = 5
|
|
56
|
+
async = false
|
|
57
|
+
|
|
58
|
+
[[hooks.PostCompact]]
|
|
59
|
+
matcher = ""
|
|
60
|
+
[[hooks.PostCompact.hooks]]
|
|
61
|
+
type = "command"
|
|
62
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
63
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
64
|
+
timeout = 5
|
|
65
|
+
async = false
|
|
66
|
+
|
|
67
|
+
[[hooks.SubagentStart]]
|
|
68
|
+
matcher = ""
|
|
69
|
+
[[hooks.SubagentStart.hooks]]
|
|
70
|
+
type = "command"
|
|
71
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
72
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
73
|
+
timeout = 5
|
|
74
|
+
async = false
|
|
75
|
+
|
|
76
|
+
[[hooks.SubagentStop]]
|
|
77
|
+
matcher = ""
|
|
78
|
+
[[hooks.SubagentStop.hooks]]
|
|
79
|
+
type = "command"
|
|
80
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
81
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
82
|
+
timeout = 5
|
|
83
|
+
async = false
|
|
84
|
+
|
|
85
|
+
[[hooks.Stop]]
|
|
86
|
+
matcher = ""
|
|
87
|
+
[[hooks.Stop.hooks]]
|
|
88
|
+
type = "command"
|
|
89
|
+
command = "node .workflow/tools/hooks/hook-event.mjs"
|
|
90
|
+
commandWindows = "node .workflow/tools/hooks/hook-event.mjs"
|
|
91
|
+
timeout = 5
|
|
92
|
+
async = false
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
schema_version: 2
|
|
2
|
+
revision: 0
|
|
3
|
+
project_id: PROJECT-0001
|
|
4
|
+
development_state:
|
|
5
|
+
scope_id: INIT-0001
|
|
6
|
+
revision: 0
|
|
7
|
+
active_nodes: []
|
|
8
|
+
blocked_nodes: []
|
|
9
|
+
completed_nodes: []
|
|
10
|
+
pending_gates: []
|
|
11
|
+
gate_decisions: []
|
|
12
|
+
node_attempts: {}
|
|
13
|
+
latest_candidate_id: null
|
|
14
|
+
latest_release_id: null
|
|
15
|
+
updated_at: ""
|
|
16
|
+
last_transition: null
|
|
17
|
+
release_state:
|
|
18
|
+
scope_id: null
|
|
19
|
+
revision: 0
|
|
20
|
+
active_nodes: []
|
|
21
|
+
blocked_nodes: []
|
|
22
|
+
completed_nodes: []
|
|
23
|
+
pending_gates: []
|
|
24
|
+
gate_decisions: []
|
|
25
|
+
node_attempts: {}
|
|
26
|
+
latest_candidate_id: null
|
|
27
|
+
latest_release_id: null
|
|
28
|
+
updated_at: ""
|
|
29
|
+
last_transition: null
|
|
30
|
+
latest_line_version_id: null
|
|
31
|
+
production_version_id: null
|
|
32
|
+
production_release_id: null
|
|
33
|
+
updated_at: ""
|
|
34
|
+
last_transition: null
|
|
File without changes
|
|
File without changes
|
package/skills/ai-delivery-orchestrate/assets/project-template/.workflow/evolution/feedback/.gitkeep
ADDED
|
File without changes
|
|
File without changes
|