dev-ready 0.4.0__tar.gz → 0.6.0__tar.gz

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 (146) hide show
  1. {dev_ready-0.4.0 → dev_ready-0.6.0}/PKG-INFO +21 -4
  2. {dev_ready-0.4.0 → dev_ready-0.6.0}/README-pypi.md +20 -3
  3. {dev_ready-0.4.0 → dev_ready-0.6.0}/THIRD_PARTY_NOTICES.md +15 -0
  4. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/architecture.md +5 -0
  5. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/cli-spec.md +27 -7
  6. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/requirements.md +6 -7
  7. dev_ready-0.6.0/docs/v0.5-overview.md +45 -0
  8. dev_ready-0.6.0/docs/v0.6-overview.md +54 -0
  9. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/version-plan.md +14 -4
  10. {dev_ready-0.4.0 → dev_ready-0.6.0}/pyproject.toml +2 -1
  11. {dev_ready-0.4.0 → dev_ready-0.6.0}/scripts/check_notices_sync.py +37 -5
  12. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/__init__.py +1 -1
  13. dev_ready-0.6.0/src/dev_ready/check.py +195 -0
  14. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/cli.py +50 -0
  15. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/errors.py +31 -0
  16. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/manifest.json +41 -0
  17. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/overlay/__init__.py +95 -132
  18. dev_ready-0.6.0/src/dev_ready/stamp.py +166 -0
  19. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/CLAUDE.md.tmpl +12 -0
  20. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/frontend-design/LICENSE.txt +177 -0
  21. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/frontend-design/SKILL.md +55 -0
  22. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/LICENSE.txt +202 -0
  23. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/SKILL.md +96 -0
  24. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/examples/console_logging.py +35 -0
  25. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  26. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  27. dev_ready-0.6.0/src/dev_ready/templates/claude/skills/webapp-testing/scripts/with_server.py +106 -0
  28. dev_ready-0.6.0/src/dev_ready/upgrade.py +245 -0
  29. dev_ready-0.6.0/tests/unit/test_check.py +223 -0
  30. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_cli.py +34 -1
  31. dev_ready-0.6.0/tests/unit/test_notices_sync.py +438 -0
  32. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_overlay.py +115 -12
  33. dev_ready-0.6.0/tests/unit/test_upgrade.py +229 -0
  34. {dev_ready-0.4.0 → dev_ready-0.6.0}/uv.lock +1 -1
  35. dev_ready-0.4.0/tests/unit/test_notices_sync.py +0 -204
  36. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/handoff/SKILL.md +0 -0
  37. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/handoff/references/templates.md +0 -0
  38. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/planning/SKILL.md +0 -0
  39. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/release/SKILL.md +0 -0
  40. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/review/SKILL.md +0 -0
  41. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/review/references/qa.md +0 -0
  42. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/review/references/security.md +0 -0
  43. {dev_ready-0.4.0 → dev_ready-0.6.0}/.agents/skills/review/references/sre.md +0 -0
  44. {dev_ready-0.4.0 → dev_ready-0.6.0}/.claude/skills/handoff/SKILL.md +0 -0
  45. {dev_ready-0.4.0 → dev_ready-0.6.0}/.claude/skills/planning/SKILL.md +0 -0
  46. {dev_ready-0.4.0 → dev_ready-0.6.0}/.claude/skills/release/SKILL.md +0 -0
  47. {dev_ready-0.4.0 → dev_ready-0.6.0}/.claude/skills/review/SKILL.md +0 -0
  48. {dev_ready-0.4.0 → dev_ready-0.6.0}/.github/dependabot.yml +0 -0
  49. {dev_ready-0.4.0 → dev_ready-0.6.0}/.github/workflows/ci.yml +0 -0
  50. {dev_ready-0.4.0 → dev_ready-0.6.0}/.github/workflows/release.yml +0 -0
  51. {dev_ready-0.4.0 → dev_ready-0.6.0}/.github/workflows/upstream-bump.yml +0 -0
  52. {dev_ready-0.4.0 → dev_ready-0.6.0}/.github/workflows/vendored-bump.yml +0 -0
  53. {dev_ready-0.4.0 → dev_ready-0.6.0}/.gitignore +0 -0
  54. {dev_ready-0.4.0 → dev_ready-0.6.0}/.python-version +0 -0
  55. {dev_ready-0.4.0 → dev_ready-0.6.0}/AGENTS.md +0 -0
  56. {dev_ready-0.4.0 → dev_ready-0.6.0}/CLAUDE.md +0 -0
  57. {dev_ready-0.4.0 → dev_ready-0.6.0}/LICENSE +0 -0
  58. {dev_ready-0.4.0 → dev_ready-0.6.0}/README.md +0 -0
  59. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/catalog-candidates.md +0 -0
  60. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-001-two-stage-generation-no-fork.md +0 -0
  61. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-002-manifest-pinned-upstream.md +0 -0
  62. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-003-distribution-via-uvx.md +0 -0
  63. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-004-interactive-prompts-escape-hatch.md +0 -0
  64. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-005-consume-upstream-via-copier.md +0 -0
  65. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-006-manifest-prune-list.md +0 -0
  66. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-007-multi-agent-handoff-protocol.md +0 -0
  67. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-008-integration-modes-vendor-vs-pinned.md +0 -0
  68. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-009-manifest-vendored-provenance.md +0 -0
  69. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-010-item-level-catalog-selection.md +0 -0
  70. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/decisions/adr-011-agent-config-restructure.md +0 -0
  71. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/pin-maintenance.md +0 -0
  72. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/releasing.md +0 -0
  73. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/v0.1-overview.md +0 -0
  74. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/v0.2-overview.md +0 -0
  75. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/v0.3-overview.md +0 -0
  76. {dev_ready-0.4.0 → dev_ready-0.6.0}/docs/v0.4-overview.md +0 -0
  77. {dev_ready-0.4.0 → dev_ready-0.6.0}/scripts/bump_upstream.py +0 -0
  78. {dev_ready-0.4.0 → dev_ready-0.6.0}/scripts/bump_vendored.py +0 -0
  79. {dev_ready-0.4.0 → dev_ready-0.6.0}/scripts/sync_vendored.py +0 -0
  80. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/README.md +0 -0
  81. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/__main__.py +0 -0
  82. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/fetch/__init__.py +0 -0
  83. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/fetch/snapshot.py +0 -0
  84. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/generate.py +0 -0
  85. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/manifest/__init__.py +0 -0
  86. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/manifest/loader.py +0 -0
  87. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/manifest/models.py +0 -0
  88. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/prompts/__init__.py +0 -0
  89. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/prompts/_questionary_asker.py +0 -0
  90. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/prompts/answers.py +0 -0
  91. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/prompts/asker.py +0 -0
  92. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/prompts/collect.py +0 -0
  93. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/report/__init__.py +0 -0
  94. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/report/render.py +0 -0
  95. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/README.md +0 -0
  96. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/01-plan.md +0 -0
  97. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/02-implementation.md +0 -0
  98. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/03-review.md +0 -0
  99. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/04-qa-review.md +0 -0
  100. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/05-security-review.md +0 -0
  101. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/agents/phase-N/06-sre-review.md +0 -0
  102. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/caveman/README.md +0 -0
  103. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/caveman/SKILL.md +0 -0
  104. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/code-review/SKILL.md +0 -0
  105. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/code-review/agents/openai.yaml +0 -0
  106. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/diagnosing-bugs/SKILL.md +0 -0
  107. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/diagnosing-bugs/agents/openai.yaml +0 -0
  108. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -0
  109. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/project-orientation/SKILL.md +0 -0
  110. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/react-doctor/SKILL.md +0 -0
  111. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/AI-AND-LLM.md +0 -0
  112. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/ATTACK-CLASSES.md +0 -0
  113. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/CLIENT-SIDE.md +0 -0
  114. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/HUNTING.md +0 -0
  115. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/MEMORY-SAFETY-AND-BINARY.md +0 -0
  116. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/RECONNAISSANCE.md +0 -0
  117. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/SKILL.md +0 -0
  118. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/VALIDATION-AND-REPORTING.md +0 -0
  119. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/WEB-PROTOCOL-AND-AUTH.md +0 -0
  120. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/report-schema.json +0 -0
  121. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/security-audit/validate-findings.cjs +0 -0
  122. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/tdd/SKILL.md +0 -0
  123. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/tdd/agents/openai.yaml +0 -0
  124. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/tdd/mocking.md +0 -0
  125. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/claude/skills/tdd/tests.md +0 -0
  126. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/docs/architecture.md.tmpl +0 -0
  127. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/docs/design-linear.md +0 -0
  128. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/docs/design-stripe.md +0 -0
  129. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/docs/requirements.md.tmpl +0 -0
  130. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/mcp/mcp.json +0 -0
  131. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/templates/readme/README.md.tmpl +0 -0
  132. {dev_ready-0.4.0 → dev_ready-0.6.0}/src/dev_ready/verify.py +0 -0
  133. {dev_ready-0.4.0 → dev_ready-0.6.0}/templates/README.md +0 -0
  134. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/README.md +0 -0
  135. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/e2e/.gitkeep +0 -0
  136. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/e2e/test_init_real.py +0 -0
  137. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/integration/.gitkeep +0 -0
  138. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/integration/test_fetch_real.py +0 -0
  139. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_bump_upstream.py +0 -0
  140. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_fetch.py +0 -0
  141. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_generate.py +0 -0
  142. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_manifest.py +0 -0
  143. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_prompts.py +0 -0
  144. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_report.py +0 -0
  145. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_sync_vendored.py +0 -0
  146. {dev_ready-0.4.0 → dev_ready-0.6.0}/tests/unit/test_verify.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dev-ready
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Scaffold AI-development-ready FastAPI projects: pinned upstream template plus Claude Code skills, MCP config, and design docs
5
5
  License: MIT License
6
6
 
@@ -43,8 +43,8 @@ The upstream template is pinned to a CI-verified commit (never an untested "late
43
43
 
44
44
  A generated project based on [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) (FastAPI, React, SQLModel, PostgreSQL, Docker Compose), plus an AI tooling overlay so it works well with coding agents out of the box:
45
45
 
46
- - `CLAUDE.md` — project instructions for Claude Code
47
- - Claude Code skills — seven pre-configured skills selectable at generation time:
46
+ - `CLAUDE.md` — project instructions for Claude Code, including Karpathy-derived development guardrails (MIT, per the upstream README)
47
+ - Claude Code skills — nine pre-configured skills selectable at generation time:
48
48
  - **project-orientation** (built-in) — codebase orientation helper
49
49
  - **react-doctor** (pinned devDependency) — frontend dependency health checks
50
50
  - **caveman** (vendored, MIT) — token-discipline communication mode
@@ -52,6 +52,8 @@ A generated project based on [fastapi/full-stack-fastapi-template](https://githu
52
52
  - **diagnosing-bugs** (vendored, MIT) — diagnosis loop for hard bugs
53
53
  - **code-review** (vendored, MIT) — review against coding standards and spec
54
54
  - **security-audit** (vendored, MIT) — multi-phase security audit
55
+ - **webapp-testing** (vendored, Apache-2.0) — browser-automation end-to-end testing
56
+ - **frontend-design** (vendored, Apache-2.0) — frontend UI design methodology
55
57
  - MCP server configuration (`mcp.json`)
56
58
  - Design-doc templates (`architecture.md`, `requirements.md`)
57
59
  - Agent-team handoff scaffold (`docs/handoffs/` — a document-driven multi-agent workflow: Tech Lead → Senior → Junior → QA/Security/SRE)
@@ -103,9 +105,24 @@ uvx dev-ready init my-app \
103
105
  --no-agents # skip the agent-team handoff scaffold
104
106
  ```
105
107
 
108
+ ```bash
109
+ # Inspect a generated project against its stamp and the current CLI (read-only)
110
+ uvx dev-ready check path/to/project
111
+ uvx dev-ready check path/to/project --json # machine-readable report
112
+
113
+ # Re-apply managed overlay files to an existing project (never touches app code)
114
+ uvx dev-ready upgrade path/to/project
115
+ uvx dev-ready upgrade path/to/project --dry-run # preview; writes nothing
116
+ ```
117
+
118
+ `check` is read-only and offline. `upgrade` re-applies only overlay-managed
119
+ whole files, skips and reports user-modified or shared files, and applies its
120
+ planned writes all-or-nothing. Both commands default to the current directory
121
+ when `PATH` is omitted.
122
+
106
123
  Then follow the printed next steps (typically `docker compose watch` inside the generated project).
107
124
 
108
- Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure.
125
+ Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure; 6 stamp missing or invalid; 7 drift detected; 8 upgrade not supported (pre-v3 stamp; projects generated before v0.6); 9 upgrade failed (rolled back).
109
126
 
110
127
  ## How it works
111
128
 
@@ -12,8 +12,8 @@ The upstream template is pinned to a CI-verified commit (never an untested "late
12
12
 
13
13
  A generated project based on [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) (FastAPI, React, SQLModel, PostgreSQL, Docker Compose), plus an AI tooling overlay so it works well with coding agents out of the box:
14
14
 
15
- - `CLAUDE.md` — project instructions for Claude Code
16
- - Claude Code skills — seven pre-configured skills selectable at generation time:
15
+ - `CLAUDE.md` — project instructions for Claude Code, including Karpathy-derived development guardrails (MIT, per the upstream README)
16
+ - Claude Code skills — nine pre-configured skills selectable at generation time:
17
17
  - **project-orientation** (built-in) — codebase orientation helper
18
18
  - **react-doctor** (pinned devDependency) — frontend dependency health checks
19
19
  - **caveman** (vendored, MIT) — token-discipline communication mode
@@ -21,6 +21,8 @@ A generated project based on [fastapi/full-stack-fastapi-template](https://githu
21
21
  - **diagnosing-bugs** (vendored, MIT) — diagnosis loop for hard bugs
22
22
  - **code-review** (vendored, MIT) — review against coding standards and spec
23
23
  - **security-audit** (vendored, MIT) — multi-phase security audit
24
+ - **webapp-testing** (vendored, Apache-2.0) — browser-automation end-to-end testing
25
+ - **frontend-design** (vendored, Apache-2.0) — frontend UI design methodology
24
26
  - MCP server configuration (`mcp.json`)
25
27
  - Design-doc templates (`architecture.md`, `requirements.md`)
26
28
  - Agent-team handoff scaffold (`docs/handoffs/` — a document-driven multi-agent workflow: Tech Lead → Senior → Junior → QA/Security/SRE)
@@ -72,9 +74,24 @@ uvx dev-ready init my-app \
72
74
  --no-agents # skip the agent-team handoff scaffold
73
75
  ```
74
76
 
77
+ ```bash
78
+ # Inspect a generated project against its stamp and the current CLI (read-only)
79
+ uvx dev-ready check path/to/project
80
+ uvx dev-ready check path/to/project --json # machine-readable report
81
+
82
+ # Re-apply managed overlay files to an existing project (never touches app code)
83
+ uvx dev-ready upgrade path/to/project
84
+ uvx dev-ready upgrade path/to/project --dry-run # preview; writes nothing
85
+ ```
86
+
87
+ `check` is read-only and offline. `upgrade` re-applies only overlay-managed
88
+ whole files, skips and reports user-modified or shared files, and applies its
89
+ planned writes all-or-nothing. Both commands default to the current directory
90
+ when `PATH` is omitted.
91
+
75
92
  Then follow the printed next steps (typically `docker compose watch` inside the generated project).
76
93
 
77
- Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure.
94
+ Exit codes: 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 structural verification failure; 6 stamp missing or invalid; 7 drift detected; 8 upgrade not supported (pre-v3 stamp; projects generated before v0.6); 9 upgrade failed (rolled back).
78
95
 
79
96
  ## How it works
80
97
 
@@ -37,6 +37,21 @@ dev-ready does not ship a copy of this template inside the wheel. At generation
37
37
  - Source: https://github.com/VoltAgent/awesome-design-md
38
38
  - Subset: Selected `DESIGN.md` templates (`design-md/stripe/DESIGN.md`, `design-md/linear.app/DESIGN.md`) vendored into `src/dev_ready/templates/docs/`.
39
39
 
40
+ ## anthropics/skills
41
+
42
+ - License: Apache-2.0
43
+ - Pinned Commit: 1f630fdf9259cec4a14913127dfd7c3b69ef72eb
44
+ - Source: https://github.com/anthropics/skills
45
+ - Subset: `skills/webapp-testing` and `skills/frontend-design` vendored into `src/dev_ready/templates/claude/skills/`. Each skill carries its own Apache-2.0 `LICENSE.txt` inside its snapshot, which ships into every generated project that selects the skill.
46
+
47
+ ## multica-ai/andrej-karpathy-skills
48
+
49
+ - License: MIT, per README at 2c606141936f1eeef17fa3043a72095b4765b9c2
50
+ - Pinned Commit: 2c606141936f1eeef17fa3043a72095b4765b9c2
51
+ - Integration: adapted-rewrite — attribution only; NOT vendored (no snapshot under `src/dev_ready/templates/`)
52
+ - Source: https://github.com/multica-ai/andrej-karpathy-skills
53
+ - Basis: the upstream repo carries no standalone LICENSE file; its README declares "License MIT". The pinned commit above preserves that grant as evidence. dev-ready adapts (substantially rewords and condenses) the four-principle guardrail guidance into the generated `CLAUDE.md`; it does not redistribute the upstream files verbatim, so there is no `vendored` manifest entry and no drift-checked snapshot.
54
+
40
55
  ---
41
56
 
42
57
  Everything else dev-ready writes into a generated project — `CLAUDE.md`, the built-in Claude Code skills overlay (`project-orientation`), MCP configuration, and base design-doc templates under `src/dev_ready/templates/` — is original to this project and is not derived from a third-party source.
@@ -55,11 +55,16 @@ ADRs live in `docs/decisions/`, one file per decision (moved out of this file by
55
55
  | `manifest` | Load/validate manifest.json; single source of truth for pins | be bypassed by other modules |
56
56
  | `report` | Post-generation summary and next steps | mutate the generated project |
57
57
  | `verify` | Cheap, offline, structural post-generation checks on the staging dir | perform network I/O, write to the project, or run the heavy FR-5 checks (docker build, health endpoint — those run in CI, see Deployment Architecture) |
58
+ | `stamp` | Load, parse, and validate `.dev-ready.json` project stamp | import `fetch` or perform network I/O |
59
+ | `check` | Offline, read-only structural drift inspection of generated project against manifest | import `fetch`, perform network I/O, or modify target project |
60
+ | `upgrade` | Offline re-apply of overlay-managed files onto an existing project; all-or-nothing | import `fetch`, perform network I/O, or touch upstream/non-overlay paths |
61
+
58
62
 
59
63
  ## Dependency Rules
60
64
 
61
65
  - Direction: `cli` -> `prompts`/`manifest`/`fetch`/`overlay`/`report`/`verify`. Lower modules never import `cli`.
62
66
  - `fetch`, `overlay`, and `verify` are independent of each other; only `generate` (called only by `cli`) sequences them.
67
+ - `upgrade` (called only by `cli`) sequences `overlay` and `stamp` offline, analogous to `generate`.
63
68
  - Runtime dependencies are kept minimal (current: questionary, copier — see ADR-005; rich optional). Every new dependency requires a note here.
64
69
  - No module reads `manifest.json` directly except `manifest`.
65
70
  - `scripts/` (CI-only maintainer tooling, e.g. `scripts/bump_upstream.py`) is not part of the wheel and is not subject to the `fetch/`-only network-call rule above, which governs `src/dev_ready` only.
@@ -21,13 +21,38 @@ Generate a new project.
21
21
 
22
22
  Unknown item ids in `--skills` or `--mcp` fail fast with an invalid-arguments error (exit 2) listing valid item ids. Conflicting flags (e.g. `--no-skills` with `--skills <id>`) exit 2.
23
23
 
24
- Exit codes: 0 success; 1 unexpected error or user abort; 2 invalid arguments; 3 network/fetch failure; 4 target directory conflict; 5 generated project failed verification.
24
+ Exit codes: 0 success; 1 unexpected error or user abort; 2 invalid arguments; 3 network/fetch failure; 4 target directory conflict; 5 generated project failed verification; 6 stamp missing or unparseable/invalid; 7 drift detected; 8 upgrade not supported (pre-v3 stamp); 9 upgrade failed (rolled back).
25
+
26
+ ### `dev-ready check [PATH]`
27
+
28
+ Inspect an existing generated project directory against its `.dev-ready.json` stamp and the running CLI manifest. Read-only operation.
29
+
30
+ | Flag | Type | Default | Description |
31
+ |---|---|---|---|
32
+ | `PATH` | path | `.` | Target project directory to check |
33
+ | `--json` | bool | false | Output report in JSON format |
34
+
35
+ Exit codes: 0 clean (no drift); 6 stamp missing or unparseable/invalid (including projects generated before v0.3); 7 drift detected.
36
+
37
+ ### `dev-ready upgrade [PATH]`
38
+
39
+ Re-apply only overlay-managed whole-file content to an existing generated project. It never touches upstream application code. User-modified files, missing files, and shared injection targets are reported and left unchanged; all planned writes commit all-or-nothing.
40
+
41
+ | Flag | Type | Default | Description |
42
+ |---|---|---|---|
43
+ | `PATH` | path | `.` | Target project directory to upgrade |
44
+ | `--dry-run` | bool | false | Report planned changes without modifying the project |
45
+
46
+ The project stamp is now `stamp_version` 3 and records the project name and a managed-file inventory. Version 1 and 2 stamps remain checkable but cannot be upgraded. Exit codes: 0 success; 6 invalid or missing stamp; 8 pre-v3 stamp cannot be upgraded; 9 upgrade failure after rollback.
25
47
 
26
48
  ### `dev-ready --version` / `dev-ready --help`
27
49
 
28
50
  Standard version and help output.
29
51
 
30
- ## Interactive Prompt Flow (default path)
52
+ ## Interactive Prompt Flow (default `init` path)
53
+
54
+ This flow applies only to `init`. `check` and `upgrade` are non-interactive by
55
+ construction and dispatch directly to their respective operations.
31
56
 
32
57
  1. Project name (if not given as argument)
33
58
  2. Level-1 component selection (skills / MCP / docs / agents — multi-select, all on by default)
@@ -41,8 +66,3 @@ All answers collect into a single `Answers` model shared with the flag-based pat
41
66
  Declining the confirmation, or cancelling any prompt (Ctrl-C), prints `aborted: nothing was written` to stderr and exits 1 — nothing has been written at that point by construction. `--yes` bypasses every prompt in this flow, including confirmation. A non-TTY stdin with missing inputs and no `--yes` fails fast with an invalid-arguments error (exit 2) instead of hanging.
42
67
 
43
68
  **Windows compatibility:** interactive prompts are tested against Windows Terminal. Legacy `cmd.exe` may render the checkbox prompt incorrectly (missing VT/ANSI support). In environments where terminal support is uncertain, use `--yes` with explicit `--no-skills`/`--no-mcp`/`--no-docs`/`--no-agents` flags instead of relying on prompts.
44
-
45
- ## Planned (see docs/version-plan.md)
46
-
47
- - v0.6 — `dev-ready check` (validate an existing generated project against its `.dev-ready.json` stamp and the manifest) and `dev-ready upgrade` (re-apply overlay-managed files only).
48
-
@@ -55,10 +55,10 @@ Agreed 2026-07-17. Full detail, rationale, and per-version grouping live in
55
55
  - FR-16 (v0.4, shipped). Vendored snapshot sync tooling + CI byte-equality drift guard + monthly vendored-bump workflow.
56
56
  - FR-17 (v0.4, shipped). MIT-wave vendoring (curated subsets, each a catalog item): caveman, mattpocock/skills, cloudflare/security-audit-skill, awesome-design-md.
57
57
  - FR-18 (v0.4, shipped). THIRD_PARTY_NOTICES ↔ manifest `vendored` sync check in CI.
58
- - FR-19 (v0.5). anthropics/skills Apache 2.0 example subset with NOTICE propagation (document-processing skills permanently excluded).
59
- - FR-20 (v0.5). Karpathy guardrails content in generated CLAUDE.md — MIT per the upstream README declaration (no standalone LICENSE file; pinned commit preserves the grant), with attribution in NOTICES.
60
- - FR-21 (v0.6). `dev-ready check`: read-only validation of an existing project against its stamp and the CLI's manifest.
61
- - FR-22 (v0.6). `dev-ready upgrade`: re-apply overlay-managed files only (per the stamp's item selection); never touches upstream application code; never silently overwrites user edits.
58
+ - FR-19 (v0.5, shipped). anthropics/skills Apache 2.0 example subset with NOTICE propagation (document-processing skills permanently excluded).
59
+ - FR-20 (v0.5, shipped). Karpathy guardrails content in generated CLAUDE.md — MIT per the upstream README declaration (no standalone LICENSE file; pinned commit preserves the grant), with attribution in NOTICES.
60
+ - FR-21 (v0.6, shipped). `dev-ready check`: read-only validation of an existing project against its stamp and the CLI's manifest.
61
+ - FR-22 (v0.6, shipped). `dev-ready upgrade`: re-apply overlay-managed whole files only (per the stamp's item selection); refuses pre-v3 stamps, never touches upstream application code, and never silently overwrites user edits.
62
62
 
63
63
  ## Non-functional Requirements
64
64
 
@@ -76,7 +76,6 @@ NFR-5. Cross-platform: macOS, Linux, Windows.
76
76
 
77
77
  - Web UI companion (deferred, see roadmap)
78
78
  - Support for base templates other than fastapi/full-stack-fastapi-template
79
- - Post-generation project upgrade/migration commands
80
79
 
81
80
  ## Future Roadmap
82
81
 
@@ -84,8 +83,8 @@ NFR-5. Cross-platform: macOS, Linux, Windows.
84
83
  2. v0.2: prune list (FR-7), project README (FR-8), verify leak guard (FR-9), agent-team overlay (FR-10). DONE (v0.2.2).
85
84
  3. v0.3: pinned tool integrations + selection — generation stamp (FR-11), codebase-memory MCP (FR-12), react-doctor (FR-13), item-level selection (FR-14). See [version-plan.md](version-plan.md). DONE (v0.3.0).
86
85
  4. v0.4: vendoring infrastructure + MIT wave (FR-15..FR-18). DONE (v0.4.0).
87
- 5. v0.5: Apache wave + pending items (FR-19, FR-20).
88
- 6. v0.6: lifecycle commands — `check` / `upgrade` (FR-21, FR-22).
86
+ 5. v0.5: Apache wave + karpathy guardrails (FR-19, FR-20). DONE (v0.5.0).
87
+ 6. v0.6: lifecycle commands — `check` / `upgrade` (FR-21, FR-22). DONE (v0.6.0).
89
88
  7. Beyond: additional base templates; possible Web UI companion (decisions deferred).
90
89
 
91
90
  ## Pre-start Checklist (carried from planning)
@@ -0,0 +1,45 @@
1
+ # v0.5 Overview — dev-ready
2
+
3
+ Released: v0.5.0 | Status: Released
4
+ Scope: FR-19, FR-20
5
+
6
+ ## What v0.5 shipped
7
+
8
+ dev-ready v0.5 is a content-only release riding entirely on v0.4's vendoring
9
+ machinery: an Apache-2.0 example-skill wave from anthropics/skills (with NOTICE
10
+ propagation into generated projects) and a set of Karpathy-derived development
11
+ guardrails folded into every generated `CLAUDE.md`.
12
+
13
+ ## Phase 1 — anthropics Apache subset + NOTICE propagation (FR-19)
14
+
15
+ - Vendored two Apache-2.0 skills from `anthropics/skills` (pinned commit
16
+ `1f630fdf9259cec4a14913127dfd7c3b69ef72eb`): `webapp-testing` and `frontend-design`.
17
+ Skills catalog total: 9 (≤ 10 cap). Document-processing skills (docx/pdf/pptx/xlsx)
18
+ remain permanently excluded.
19
+ - Apache NOTICE propagation: each vendored skill ships its own Apache-2.0 `LICENSE.txt`
20
+ inside its snapshot, so the grant travels into every generated project that selects it.
21
+ - `scripts/check_notices_sync.py` extended to assert LICENSE-file presence in the
22
+ snapshot of every Apache-2.0 `vendored` entry.
23
+
24
+ ## Phase 2 — karpathy guardrails + close-out (FR-20)
25
+
26
+ - Folded a condensed, four-principle guardrail section (Think before coding, Simplicity
27
+ first, Surgical changes, Goal-driven execution) into `templates/claude/CLAUDE.md.tmpl`,
28
+ adapted from `multica-ai/andrej-karpathy-skills` (MIT, per its README).
29
+ - Integration mode: **adapted-rewrite** (attribution-only) — no `vendored` entry, no
30
+ snapshot. `THIRD_PARTY_NOTICES.md` carries an attribution-only section citing
31
+ "MIT, per README at 2c606141936f1eeef17fa3043a72095b4765b9c2".
32
+ - `scripts/check_notices_sync.py` learned to recognize an explicitly-marked
33
+ attribution-only NOTICES entry (via the `Integration: adapted-rewrite` marker) so it
34
+ is not treated as an orphan — a tested contract extension, not a weakening.
35
+ - Generated `CLAUDE.md` kept short (length budget enforced by test).
36
+
37
+ ## Notable decisions
38
+
39
+ - ADR-008 integration modes: karpathy uses the adapted-rewrite (attribution-only) path,
40
+ the first content integration that is neither vendor-snapshot nor pinned-dependency;
41
+ consistent with ADR-008's existing "karpathy accepted as MIT per its README" note — no
42
+ ADR status change.
43
+ - 10-skill catalog cap held: still 9 skills after v0.5 (FR-20 adds guardrail text, not a
44
+ catalog item).
45
+ - No new runtime or dev dependencies in v0.5.
@@ -0,0 +1,54 @@
1
+ # v0.6 Overview — dev-ready
2
+
3
+ Released: v0.6.0 | Status: Released
4
+ Scope: FR-21, FR-22
5
+
6
+ ## What v0.6 shipped
7
+
8
+ dev-ready v0.6 adds two lifecycle commands for projects that have already been
9
+ generated. Both operate from the project's `.dev-ready.json` stamp (FR-11) and
10
+ the running CLI manifest, without network access. The CLI remains argparse-based;
11
+ standard reports are plain text, with an optional JSON report for `check`. This
12
+ release adds no runtime or development dependencies.
13
+
14
+ ## Phase 1 — `dev-ready check` (FR-21)
15
+
16
+ - Added offline, read-only drift inspection in `check.py`, which explicitly must
17
+ not import `fetch`, perform network I/O, or modify the target project
18
+ (`src/dev_ready/check.py:1-8`).
19
+ - `check` compares the recorded dev-ready version and upstream pin with the
20
+ running manifest, validates required and forbidden paths, and checks selected
21
+ item pins, paths, and injection effects (`src/dev_ready/check.py:48-175`).
22
+ - Exit code 0 means clean; 6 means a missing or invalid stamp (including a
23
+ pre-v0.3 project); and 7 reports drift. `--json` provides the same report for
24
+ CI (`src/dev_ready/cli.py:75-89`, `src/dev_ready/check.py:158-193`).
25
+ - Read-only behavior is enforced by `test_check_read_only_assertion` in
26
+ `tests/unit/test_check.py`, which compares byte-identical project-tree
27
+ snapshots after clean, JSON, and drift inspections.
28
+
29
+ ## Phase 2 — `dev-ready upgrade` (FR-22)
30
+
31
+ - Introduced `stamp_version` 3, adding `project_name` and a SHA-256 inventory of
32
+ managed files (`src/dev_ready/overlay/__init__.py:49-61,112-116`; parsed in
33
+ `src/dev_ready/stamp.py:47-48,136-152`).
34
+ - `upgrade` re-applies only overlay-managed whole files using the stamp's
35
+ recorded item selection. It never touches upstream application code or shared
36
+ injection targets (`src/dev_ready/upgrade.py:107-172`).
37
+ - The conflict rule is conservative: a file whose current hash matches the
38
+ recorded inventory may be replaced; a user-modified file is skipped and
39
+ reported, never silently overwritten (`src/dev_ready/upgrade.py:143-163`).
40
+ - Planned writes are staged with backups and rolled back on failure; `--dry-run`
41
+ previews the report without writing (`src/dev_ready/upgrade.py:189-244`).
42
+ Version-1 and version-2 stamps remain checkable, but upgrade refuses them with
43
+ an explanation and exit code 8 (`src/dev_ready/upgrade.py:89-93`); the other
44
+ upgrade outcomes are 0, 6, and 9.
45
+
46
+ ## Notable decisions
47
+
48
+ - No new dependencies: lifecycle commands use the existing standard-library and
49
+ package facilities.
50
+ - Module boundaries hold: `check`, `stamp`, and `upgrade` are offline and do not
51
+ import `fetch`.
52
+ - All-or-nothing behavior now covers `upgrade` as well as initial generation.
53
+ - Read-only `check` and overlay-only `upgrade` behavior are enforced by tests,
54
+ including byte-identical tree assertions, rather than convention alone.
@@ -92,8 +92,9 @@ the CLI contract changes once, not twice).
92
92
  FR-11. **Generation stamp.** `generate` writes `.dev-ready.json` at the root of every
93
93
  generated project: dev-ready version, selected components *and selected items per
94
94
  component* (FR-14), upstream pin (repo + commit), and — from v0.4 on — vendored
95
- pins. Without this, projects generated before v0.6 can never be `check`ed or
96
- `upgrade`d. Schema is versioned (`stamp_version: 1`). verify treats its presence as
95
+ pins. Projects generated before v0.3 have no stamp and cannot be `check`ed or
96
+ `upgrade`d; version-1 and version-2 stamps remain checkable but cannot be
97
+ upgraded. Schema is versioned (`stamp_version: 1`). verify treats its presence as
97
98
  a required path.
98
99
 
99
100
  FR-12. **Codebase-memory MCP item.** The `mcp` component gains a `code-memory` item:
@@ -194,15 +195,17 @@ v0.3 by decision, not deferral.)
194
195
  FR-21. **`dev-ready check`.** Reads `.dev-ready.json` (FR-11) from an existing
195
196
  project, compares against the running CLI's manifest: which dev-ready version
196
197
  generated it, which components and items, whether pins are behind, whether
197
- required/forbidden paths still hold. Read-only, exit codes mirror verify semantics.
198
+ required/forbidden paths still hold. It is read-only and exits 0 when clean, 6
199
+ for a missing or invalid stamp, and 7 when drift is detected.
198
200
 
199
201
  FR-22. **`dev-ready upgrade`.** Re-applies a newer overlay onto an existing project.
200
- Scope deliberately conservative: overlay-managed files only (skills, mcp config,
202
+ Scope deliberately conservative: overlay-managed whole files only (skills,
201
203
  handoff templates, CLAUDE.md sections we own — per the stamp's item selection),
202
204
  never upstream application code — that path was closed when `.copier/` was pruned
203
205
  (ADR-005 amendment). Conflict rule: never overwrite user-modified files silently;
204
206
  report and skip. Requires FR-21's stamp reading plus a recorded file inventory
205
207
  (added to the stamp in this version).
208
+ Shared injection targets are reported and left unchanged.
206
209
 
207
210
  Explicitly still out of scope after v0.6: additional base templates, Web UI
208
211
  companion — now planned in detail; see "Post-v0.6 roadmap" below.
@@ -365,3 +368,10 @@ it?" — the same test as the curation principle.
365
368
  | v0.7 | FR-23 workflow config, FR-24 generate skill | Cheap, self-contained; deepens the existing agents/skills story with no new external surface |
366
369
  | v0.8 | FR-25 CLI i18n, FR-26 multi-agent render targets | Widens the audience once content and catalog are stable |
367
370
  | v1.0 | FR-27 second template; Web UI decision revisited | Platform step; gated on real-user feedback and the D-5 hard gates |
371
+
372
+ **2026-07-24 — v0.6 close-out re-confirmation (CEO-confirmed, Moofon):**
373
+ At v0.6 close the proposed post-v0.6 sequencing is confirmed unchanged — v0.7 =
374
+ FR-23 (workflow config) + FR-24 (generate skill); v0.8 = FR-25 (CLI i18n) +
375
+ FR-26 (multi-agent render targets); v1.0 = FR-27 (second template) + Web UI
376
+ decision. No amendment. Ratified by the CEO (Moofon) on 2026-07-24; the v0.6.0
377
+ release commit may proceed.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dev-ready"
3
- version = "0.4.0"
3
+ version = "0.6.0"
4
4
  description = "Scaffold AI-development-ready FastAPI projects: pinned upstream template plus Claude Code skills, MCP config, and design docs"
5
5
  readme = "README-pypi.md"
6
6
  license = { file = "LICENSE" }
@@ -29,6 +29,7 @@ packages = ["src/dev_ready"]
29
29
  [tool.ruff]
30
30
  line-length = 100
31
31
  src = ["src", "tests"]
32
+ extend-exclude = ["src/dev_ready/templates"]
32
33
 
33
34
  [tool.pytest.ini_options]
34
35
  testpaths = ["tests"]
@@ -23,6 +23,9 @@ from dev_ready.manifest.loader import load_manifest # noqa: E402
23
23
  _SECTION_PATTERN = re.compile(r"^##\s+([A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+)", re.MULTILINE)
24
24
  _COMMIT_PATTERN = re.compile(r"^\s*-\s*Pinned Commit:\s*([a-fA-F0-9]{40})", re.MULTILINE)
25
25
  _LICENSE_PATTERN = re.compile(r"^\s*-\s*License:\s*([^\r\n]+)", re.MULTILINE)
26
+ _ATTRIBUTION_ONLY_PATTERN = re.compile(
27
+ r"^\s*-\s*Integration:\s*adapted", re.IGNORECASE | re.MULTILINE
28
+ )
26
29
 
27
30
 
28
31
  def parse_notices_content(content: str) -> dict[str, dict[str, str]]:
@@ -48,18 +51,26 @@ def parse_notices_content(content: str) -> dict[str, dict[str, str]]:
48
51
  license_match = _LICENSE_PATTERN.search(section)
49
52
  license_str = license_match.group(1).strip() if license_match else ""
50
53
 
51
- results[repo] = {"commit": commit, "license": license_str}
54
+ entry = {"commit": commit, "license": license_str}
55
+ if _ATTRIBUTION_ONLY_PATTERN.search(section):
56
+ entry["attribution_only"] = "true"
57
+ results[repo] = entry
52
58
 
53
59
  return results
54
60
 
55
61
 
56
- def check_notices_sync(manifest_path: Path, notices_path: Path) -> list[str]:
62
+ def check_notices_sync(
63
+ manifest_path: Path, notices_path: Path, repo_root: Path | None = None
64
+ ) -> list[str]:
57
65
  """Return a list of drift error messages between manifest and NOTICES file."""
58
66
  if not manifest_path.exists():
59
67
  return [f"manifest file missing: {manifest_path}"]
60
68
  if not notices_path.exists():
61
69
  return [f"NOTICES file missing: {notices_path}"]
62
70
 
71
+ if repo_root is None:
72
+ repo_root = manifest_path.resolve().parents[2]
73
+
63
74
  manifest = load_manifest(manifest_path)
64
75
  manifest_map = {
65
76
  entry.repo: {"commit": entry.commit.lower(), "license": entry.license}
@@ -71,8 +82,10 @@ def check_notices_sync(manifest_path: Path, notices_path: Path) -> list[str]:
71
82
 
72
83
  diffs: list[str] = []
73
84
 
74
- # Check direction 1: manifest -> NOTICES
75
- for repo, info in manifest_map.items():
85
+ # Check direction 1: manifest -> NOTICES & Apache LICENSE presence
86
+ for entry in manifest.vendored:
87
+ repo = entry.repo
88
+ info = {"commit": entry.commit.lower(), "license": entry.license}
76
89
  if repo not in notices_map:
77
90
  diffs.append(f"NOTICES mismatch: {repo} is in manifest.json vendored but missing from THIRD_PARTY_NOTICES.md")
78
91
  else:
@@ -86,8 +99,27 @@ def check_notices_sync(manifest_path: Path, notices_path: Path) -> list[str]:
86
99
  f"NOTICES mismatch: {repo} license mismatch (manifest: {info['license']}, NOTICES: {notice_info['license']})"
87
100
  )
88
101
 
102
+ if entry.license == "Apache-2.0":
103
+ for path_map in entry.paths:
104
+ committed = repo_root / path_map.dest
105
+ has_license = False
106
+ if committed.is_dir():
107
+ for file_path in committed.rglob("*"):
108
+ if file_path.is_file() and file_path.name.lower().startswith("license"):
109
+ has_license = True
110
+ break
111
+ elif committed.is_file() and committed.name.lower().startswith("license"):
112
+ has_license = True
113
+
114
+ if not has_license:
115
+ diffs.append(
116
+ f"NOTICES mismatch: Apache-2.0 entry {repo} path '{path_map.dest}' has no LICENSE file in its snapshot"
117
+ )
118
+
89
119
  # Check direction 2: NOTICES -> manifest
90
- for repo in notices_map:
120
+ for repo, info in notices_map.items():
121
+ if info.get("attribution_only"):
122
+ continue
91
123
  if repo not in manifest_map:
92
124
  diffs.append(f"NOTICES mismatch: {repo} is in THIRD_PARTY_NOTICES.md but missing from manifest.json vendored")
93
125
 
@@ -4,4 +4,4 @@ Bootstrap phase: package structure only, no business logic yet.
4
4
  See docs/architecture.md for module boundaries.
5
5
  """
6
6
 
7
- __version__ = "0.4.0"
7
+ __version__ = "0.6.0"