contract-driven-delivery 1.12.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/README.md +58 -38
  3. package/assets/CLAUDE.template.md +4 -12
  4. package/assets/agents/backend-engineer.md +5 -26
  5. package/assets/agents/change-classifier.md +87 -27
  6. package/assets/agents/ci-cd-gatekeeper.md +4 -25
  7. package/assets/agents/contract-reviewer.md +4 -25
  8. package/assets/agents/dependency-security-reviewer.md +4 -24
  9. package/assets/agents/e2e-resilience-engineer.md +4 -25
  10. package/assets/agents/frontend-engineer.md +4 -25
  11. package/assets/agents/monkey-test-engineer.md +4 -25
  12. package/assets/agents/qa-reviewer.md +4 -25
  13. package/assets/agents/repo-context-scanner.md +4 -24
  14. package/assets/agents/spec-architect.md +4 -25
  15. package/assets/agents/spec-drift-auditor.md +4 -24
  16. package/assets/agents/stress-soak-engineer.md +4 -25
  17. package/assets/agents/test-strategist.md +4 -25
  18. package/assets/agents/ui-ux-reviewer.md +4 -24
  19. package/assets/agents/visual-reviewer.md +4 -24
  20. package/assets/cdd/model-policy.json +20 -1
  21. package/assets/hooks/post-tool-use-files-read.sh +55 -0
  22. package/assets/skills/cdd-close/SKILL.md +9 -9
  23. package/assets/skills/cdd-new/SKILL.md +201 -198
  24. package/assets/skills/cdd-resume/SKILL.md +16 -16
  25. package/assets/skills/contract-driven-delivery/SKILL.md +6 -0
  26. package/assets/skills/contract-driven-delivery/references/agent-log-protocol.md +147 -0
  27. package/assets/skills/contract-driven-delivery/scripts/generate_change_scaffold.py +1 -1
  28. package/assets/skills/contract-driven-delivery/scripts/validate_spec_traceability.py +1 -1
  29. package/assets/skills/contract-driven-delivery/templates/agent-log.example.yml +14 -0
  30. package/assets/skills/contract-driven-delivery/templates/change-classification.md +1 -1
  31. package/assets/skills/contract-driven-delivery/templates/tasks.yml +39 -0
  32. package/assets/specs-templates/change-classification.md +1 -1
  33. package/assets/specs-templates/context-manifest.md +8 -13
  34. package/assets/specs-templates/tasks.yml +39 -0
  35. package/dist/cli/index.js +11057 -829
  36. package/package.json +7 -3
  37. package/assets/skills/contract-driven-delivery/templates/tasks.md +0 -50
  38. package/assets/specs-templates/tasks.md +0 -52
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "contract-driven-delivery",
3
- "version": "1.12.0",
4
- "description": "Contract-driven delivery kit for AI coding agents: contracts-first, test-first, spec-first. Every change is classified, contracted, TDD-ed, implemented, and gate-verified by an orchestrated agent flow.",
3
+ "version": "2.0.0",
4
+ "description": "Contract-driven delivery kit for AI coding agents with deterministic context indexes, manifest-backed read-scope governance, and orchestrated contracts-first delivery.",
5
5
  "keywords": [
6
6
  "contract-driven",
7
7
  "claude-code",
@@ -46,9 +46,13 @@
46
46
  "node": ">=18.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "commander": "^12.0.0"
49
+ "ajv": "^8.17.1",
50
+ "ajv-formats": "^3.0.1",
51
+ "commander": "^12.0.0",
52
+ "js-yaml": "^4.1.0"
50
53
  },
51
54
  "devDependencies": {
55
+ "@types/js-yaml": "^4.0.9",
52
56
  "@types/node": "^20.0.0",
53
57
  "esbuild": "^0.20.0",
54
58
  "typescript": "^5.0.0",
@@ -1,50 +0,0 @@
1
- ---
2
- change-id: <change-id>
3
- status: in-progress
4
- ---
5
-
6
- <!-- [x]=done [-]=N/A [ ]=pending -->
7
-
8
- # Tasks
9
-
10
- ## 1. Preparation
11
- - [ ] 1.1 Confirm classification and required artifacts
12
- - [ ] 1.2 Confirm contracts to update
13
- - [ ] 1.3 Confirm CI/CD gate plan
14
-
15
- ## 2. Contract Updates
16
- - [ ] 2.1 API contract
17
- - [ ] 2.2 CSS/UI contract
18
- - [ ] 2.3 Env contract
19
- - [ ] 2.4 Data shape contract
20
- - [ ] 2.5 Business logic contract
21
- - [ ] 2.6 CI/CD contract
22
-
23
- ## 3. Tests First
24
- - [ ] 3.1 Unit/contract tests
25
- - [ ] 3.2 Integration tests
26
- - [ ] 3.3 E2E/resilience tests
27
- - [ ] 3.4 Data-boundary/monkey tests
28
- - [ ] 3.5 Stress/soak tests if required
29
-
30
- ## 4. Implementation
31
- - [ ] 4.1 Backend
32
- - [ ] 4.2 Frontend
33
- - [ ] 4.3 Env/deploy
34
- - [ ] 4.4 CI/CD workflows
35
-
36
- ## 5. Review
37
- - [ ] 5.1 UI/UX review
38
- - [ ] 5.2 Visual review
39
- - [ ] 5.3 Contract review
40
- - [ ] 5.4 QA review
41
-
42
- ## 6. Verification
43
- - [ ] 6.1 Local gates
44
- - [ ] 6.2 PR required gates
45
- - [ ] 6.3 Informational gates
46
- - [ ] 6.4 Nightly/weekly/manual gates if required
47
-
48
- ## 7. Archive
49
- - [ ] 7.1 Archive change
50
- - [ ] 7.2 Promote durable learnings to contracts or CLAUDE.md
@@ -1,52 +0,0 @@
1
- ---
2
- change-id: <change-id>
3
- status: in-progress
4
- context-governance: v1
5
- depends-on: []
6
- ---
7
-
8
- <!-- [x]=done [-]=N/A [ ]=pending -->
9
-
10
- # Tasks
11
-
12
- ## 1. Preparation
13
- - [ ] 1.1 Confirm classification and required artifacts
14
- - [ ] 1.2 Confirm contracts to update
15
- - [ ] 1.3 Confirm CI/CD gate plan
16
-
17
- ## 2. Contract Updates
18
- - [ ] 2.1 API contract
19
- - [ ] 2.2 CSS/UI contract
20
- - [ ] 2.3 Env contract
21
- - [ ] 2.4 Data shape contract
22
- - [ ] 2.5 Business logic contract
23
- - [ ] 2.6 CI/CD contract
24
-
25
- ## 3. Tests First
26
- - [ ] 3.1 Unit/contract tests
27
- - [ ] 3.2 Integration tests
28
- - [ ] 3.3 E2E/resilience tests
29
- - [ ] 3.4 Data-boundary/monkey tests
30
- - [ ] 3.5 Stress/soak tests if required
31
-
32
- ## 4. Implementation
33
- - [ ] 4.1 Backend
34
- - [ ] 4.2 Frontend
35
- - [ ] 4.3 Env/deploy
36
- - [ ] 4.4 CI/CD workflows
37
-
38
- ## 5. Review
39
- - [ ] 5.1 UI/UX review
40
- - [ ] 5.2 Visual review
41
- - [ ] 5.3 Contract review
42
- - [ ] 5.4 QA review
43
-
44
- ## 6. Verification
45
- - [ ] 6.1 Local gates
46
- - [ ] 6.2 PR required gates
47
- - [ ] 6.3 Informational gates
48
- - [ ] 6.4 Nightly/weekly/manual gates if required
49
-
50
- ## 7. Archive
51
- - [ ] 7.1 Archive change
52
- - [ ] 7.2 Promote durable learnings to contracts or CLAUDE.md