dev-ready 0.1.2__tar.gz → 0.1.4__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 (75) hide show
  1. {dev_ready-0.1.2 → dev_ready-0.1.4}/.github/workflows/release.yml +7 -1
  2. {dev_ready-0.1.2 → dev_ready-0.1.4}/.github/workflows/upstream-bump.yml +11 -1
  3. dev_ready-0.1.4/CLAUDE.md +44 -0
  4. {dev_ready-0.1.2 → dev_ready-0.1.4}/PKG-INFO +19 -3
  5. {dev_ready-0.1.2 → dev_ready-0.1.4}/README-pypi.md +17 -2
  6. {dev_ready-0.1.2 → dev_ready-0.1.4}/README.md +18 -3
  7. {dev_ready-0.1.2 → dev_ready-0.1.4}/docs/architecture.md +37 -4
  8. {dev_ready-0.1.2 → dev_ready-0.1.4}/docs/releasing.md +5 -1
  9. dev_ready-0.1.4/docs/requirements.md +73 -0
  10. {dev_ready-0.1.2 → dev_ready-0.1.4}/docs/v0.1-overview.md +41 -29
  11. dev_ready-0.1.4/docs/v0.2-plan.md +56 -0
  12. {dev_ready-0.1.2 → dev_ready-0.1.4}/pyproject.toml +2 -1
  13. dev_ready-0.1.4/src/dev_ready/fetch/__init__.py +9 -0
  14. dev_ready-0.1.4/src/dev_ready/fetch/snapshot.py +114 -0
  15. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/generate.py +31 -1
  16. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/manifest/loader.py +31 -1
  17. dev_ready-0.1.4/src/dev_ready/manifest/models.py +33 -0
  18. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/manifest.json +10 -1
  19. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/templates/claude/CLAUDE.md.tmpl +3 -3
  20. dev_ready-0.1.4/tests/unit/test_fetch.py +199 -0
  21. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_generate.py +41 -6
  22. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_manifest.py +66 -0
  23. dev_ready-0.1.4/uv.lock +478 -0
  24. dev_ready-0.1.2/CLAUDE.md +0 -34
  25. dev_ready-0.1.2/docs/requirements.md +0 -53
  26. dev_ready-0.1.2/src/dev_ready/fetch/__init__.py +0 -9
  27. dev_ready-0.1.2/src/dev_ready/fetch/download.py +0 -92
  28. dev_ready-0.1.2/src/dev_ready/fetch/extract.py +0 -114
  29. dev_ready-0.1.2/src/dev_ready/fetch/snapshot.py +0 -60
  30. dev_ready-0.1.2/src/dev_ready/fetch/urls.py +0 -13
  31. dev_ready-0.1.2/src/dev_ready/manifest/models.py +0 -23
  32. dev_ready-0.1.2/tests/unit/test_fetch.py +0 -330
  33. dev_ready-0.1.2/uv.lock +0 -145
  34. {dev_ready-0.1.2 → dev_ready-0.1.4}/.bob/qa.md +0 -0
  35. {dev_ready-0.1.2 → dev_ready-0.1.4}/.bob/security.md +0 -0
  36. {dev_ready-0.1.2 → dev_ready-0.1.4}/.bob/sre.md +0 -0
  37. {dev_ready-0.1.2 → dev_ready-0.1.4}/.github/dependabot.yml +0 -0
  38. {dev_ready-0.1.2 → dev_ready-0.1.4}/.github/workflows/ci.yml +0 -0
  39. {dev_ready-0.1.2 → dev_ready-0.1.4}/.gitignore +0 -0
  40. {dev_ready-0.1.2 → dev_ready-0.1.4}/.python-version +0 -0
  41. {dev_ready-0.1.2 → dev_ready-0.1.4}/LICENSE +0 -0
  42. {dev_ready-0.1.2 → dev_ready-0.1.4}/THIRD_PARTY_NOTICES.md +0 -0
  43. {dev_ready-0.1.2 → dev_ready-0.1.4}/docs/cli-spec.md +0 -0
  44. {dev_ready-0.1.2 → dev_ready-0.1.4}/scripts/bump_upstream.py +0 -0
  45. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/README.md +0 -0
  46. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/__init__.py +0 -0
  47. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/__main__.py +0 -0
  48. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/cli.py +0 -0
  49. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/errors.py +0 -0
  50. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/manifest/__init__.py +0 -0
  51. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/overlay/__init__.py +0 -0
  52. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/prompts/__init__.py +0 -0
  53. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/prompts/_questionary_asker.py +0 -0
  54. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/prompts/answers.py +0 -0
  55. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/prompts/asker.py +0 -0
  56. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/prompts/collect.py +0 -0
  57. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/report/__init__.py +0 -0
  58. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/report/render.py +0 -0
  59. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/templates/claude/skills/project-orientation/SKILL.md +0 -0
  60. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/templates/docs/architecture.md.tmpl +0 -0
  61. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/templates/docs/requirements.md.tmpl +0 -0
  62. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/templates/mcp/mcp.json +0 -0
  63. {dev_ready-0.1.2 → dev_ready-0.1.4}/src/dev_ready/verify.py +0 -0
  64. {dev_ready-0.1.2 → dev_ready-0.1.4}/templates/README.md +0 -0
  65. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/README.md +0 -0
  66. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/e2e/.gitkeep +0 -0
  67. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/e2e/test_init_real.py +0 -0
  68. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/integration/.gitkeep +0 -0
  69. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/integration/test_fetch_real.py +0 -0
  70. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_bump_upstream.py +0 -0
  71. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_cli.py +0 -0
  72. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_overlay.py +0 -0
  73. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_prompts.py +0 -0
  74. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_report.py +0 -0
  75. {dev_ready-0.1.2 → dev_ready-0.1.4}/tests/unit/test_verify.py +0 -0
@@ -7,9 +7,10 @@ on:
7
7
  jobs:
8
8
  publish:
9
9
  runs-on: ubuntu-latest
10
+ environment: pypi # shows up under the repo's Deployments; also referenced by the PyPI trusted publisher config
10
11
  permissions:
11
12
  id-token: write # trusted publishing to PyPI — no token/password needed
12
- contents: read
13
+ contents: write # create the GitHub Release for the pushed tag
13
14
  steps:
14
15
  - uses: actions/checkout@v7
15
16
  - uses: astral-sh/setup-uv@v7
@@ -35,3 +36,8 @@ jobs:
35
36
 
36
37
  - name: Publish to PyPI
37
38
  uses: pypa/gh-action-pypi-publish@v1.14.0
39
+
40
+ - name: Create GitHub Release
41
+ run: gh release create "$GITHUB_REF_NAME" --generate-notes dist/*
42
+ env:
43
+ GH_TOKEN: ${{ github.token }}
@@ -10,6 +10,16 @@ on:
10
10
  # ci.yml, whose generate-and-verify job regenerates a project against the
11
11
  # new pin and runs the full docker-compose health check — that is the
12
12
  # actual gate for the bump (ADR-002).
13
+ #
14
+ # IMPORTANT: for that gate to fire automatically, the PR must be opened
15
+ # with a token OTHER than the default GITHUB_TOKEN. GitHub deliberately
16
+ # does not run `on: pull_request` workflows for PRs created with the
17
+ # default GITHUB_TOKEN (recursion protection), so a PR opened with it
18
+ # would sit with NO checks at all. Set up a fine-grained PAT with
19
+ # contents:write + pull-requests:write on this repo and save it as the
20
+ # `BUMP_PR_TOKEN` repository secret. If the secret is missing, this falls
21
+ # back to GITHUB_TOKEN and the PR must be closed and reopened manually
22
+ # (or pushed to) to trigger CI.
13
23
  permissions:
14
24
  contents: write
15
25
  pull-requests: write
@@ -32,7 +42,7 @@ jobs:
32
42
  if: steps.bump.outputs.changed == 'true'
33
43
  uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
34
44
  with:
35
- token: ${{ secrets.GITHUB_TOKEN }}
45
+ token: ${{ secrets.BUMP_PR_TOKEN || secrets.GITHUB_TOKEN }}
36
46
  commit-message: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
37
47
  title: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
38
48
  branch: chore/upstream-bump
@@ -0,0 +1,44 @@
1
+ # CLAUDE.md — dev-ready
2
+
3
+ Guidance for AI agents (Claude, Gemini/Antigravity, IBM Bob) working in this repo.
4
+
5
+ ## What this project is
6
+
7
+ dev-ready is a Python CLI (`uvx dev-ready`) that scaffolds FastAPI projects pre-configured for AI-assisted development: base template from fastapi/full-stack-fastapi-template at a manifest-pinned commit, plus an overlay of CLAUDE.md, Claude Code skills, MCP config, and design docs.
8
+
9
+ Current phase: v0.1 complete (v0.1.4 fixes pending release); v0.2 in progress — see `docs/v0.2-plan.md` and ADR-006/ADR-007 in `docs/architecture.md`.
10
+
11
+ ## Read before writing code
12
+
13
+ 1. `docs/requirements.md` — what to build and what is out of scope
14
+ 2. `docs/architecture.md` — ADRs, module boundaries, dependency rules (binding, not suggestions)
15
+ 3. `docs/cli-spec.md` — command interface and exit codes
16
+
17
+ ## Commands
18
+
19
+ - `uv sync --dev` — install
20
+ - `uv run dev-ready` — run CLI
21
+ - `uv run pytest` — tests
22
+ - `uv run ruff check .` — lint
23
+
24
+ ## Hard rules
25
+
26
+ - Never fetch upstream "latest" at generation time; pins live in `src/dev_ready/manifest.json` only (ADR-002).
27
+ - Network calls only in `src/dev_ready/fetch/` (module boundary table in architecture.md).
28
+ - Generation must be all-or-nothing: no partial output directories on failure.
29
+ - Unit tests: no network, no filesystem outside tmp_path.
30
+ - Conventional Commits.
31
+
32
+ ## Multi-agent workflow (ADR-007)
33
+
34
+ Roles are fixed. Agents communicate ONLY through committed handoff documents in `docs/handoffs/phase-N/` — never assume chat context from another agent.
35
+
36
+ | Role | Agent | Does | Never does |
37
+ |---|---|---|---|
38
+ | CEO | Moofon | Sets goals, approves plans, merges | — |
39
+ | Tech Lead | Claude Fable 5 (Cowork) | Decisions, plans, handoff docs | Write or edit code |
40
+ | Senior Engineer | Claude Opus 4.8 | Task breakdown for the junior, code review (logic + architecture), fixes escalated hard bugs | Write code the junior can handle |
41
+ | Junior Engineer | Gemini 3.1 Pro (Antigravity) | Implements tasks — writes most of the code; execution report per phase | Keep grinding on a hard bug (STOP, escalate to senior via `reports/escalation-*.md`, move to next task) |
42
+ | QA / Security / SRE | IBM Bob | Reviews per `.bob/qa.md`, `.bob/security.md`, `.bob/sre.md` | — |
43
+
44
+ Handoff files per phase: `01-opus-plan.md`, `02-gemini-implementation.md`, `03-opus-review.md`, `04-bob-qa.md`, `05-bob-security.md`, `06-bob-sre.md`; junior outputs in `reports/`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dev-ready
3
- Version: 0.1.2
3
+ Version: 0.1.4
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
 
@@ -25,6 +25,7 @@ License: MIT License
25
25
  SOFTWARE.
26
26
  License-File: LICENSE
27
27
  Requires-Python: >=3.12
28
+ Requires-Dist: copier<10,>=9.4
28
29
  Requires-Dist: questionary<3,>=2.0
29
30
  Description-Content-Type: text/markdown
30
31
 
@@ -49,11 +50,26 @@ A generated project based on [fastapi/full-stack-fastapi-template](https://githu
49
50
 
50
51
  ## Requirements
51
52
 
52
- - Python >= 3.12
53
- - [uv](https://docs.astral.sh/uv/) (for `uvx`), or install with `pip install dev-ready`
53
+ - Python >= 3.12 (uv can install this for you automatically)
54
+ - git (Copier fetches the pinned template via git)
54
55
  - Network access to github.com (to fetch the pinned template snapshot)
55
56
  - Docker is **not** required to generate a project — only to run the generated one
56
57
 
58
+ ## Installation
59
+
60
+ No install needed with [uv](https://docs.astral.sh/uv/) (any recent version):
61
+
62
+ ```bash
63
+ uvx dev-ready init my-app
64
+ ```
65
+
66
+ Or install with pip (requires Python >= 3.12):
67
+
68
+ ```bash
69
+ pip install dev-ready
70
+ dev-ready init my-app
71
+ ```
72
+
57
73
  ## Usage
58
74
 
59
75
  ```bash
@@ -19,11 +19,26 @@ A generated project based on [fastapi/full-stack-fastapi-template](https://githu
19
19
 
20
20
  ## Requirements
21
21
 
22
- - Python >= 3.12
23
- - [uv](https://docs.astral.sh/uv/) (for `uvx`), or install with `pip install dev-ready`
22
+ - Python >= 3.12 (uv can install this for you automatically)
23
+ - git (Copier fetches the pinned template via git)
24
24
  - Network access to github.com (to fetch the pinned template snapshot)
25
25
  - Docker is **not** required to generate a project — only to run the generated one
26
26
 
27
+ ## Installation
28
+
29
+ No install needed with [uv](https://docs.astral.sh/uv/) (any recent version):
30
+
31
+ ```bash
32
+ uvx dev-ready init my-app
33
+ ```
34
+
35
+ Or install with pip (requires Python >= 3.12):
36
+
37
+ ```bash
38
+ pip install dev-ready
39
+ dev-ready init my-app
40
+ ```
41
+
27
42
  ## Usage
28
43
 
29
44
  ```bash
@@ -23,11 +23,26 @@ A generated project based on [fastapi/full-stack-fastapi-template](https://githu
23
23
 
24
24
  ## Requirements
25
25
 
26
- - Python >= 3.12
27
- - [uv](https://docs.astral.sh/uv/) (for `uvx`), or install with `pip install dev-ready`
26
+ - Python >= 3.12 (uv can install this for you automatically)
27
+ - git (Copier fetches the pinned template via git)
28
28
  - Network access to github.com (to fetch the pinned template snapshot)
29
29
  - Docker is **not** required to generate a project — only to run the generated one
30
30
 
31
+ ## Installation
32
+
33
+ No install needed with [uv](https://docs.astral.sh/uv/) (any recent version):
34
+
35
+ ```bash
36
+ uvx dev-ready init my-app
37
+ ```
38
+
39
+ Or install with pip (requires Python >= 3.12):
40
+
41
+ ```bash
42
+ pip install dev-ready
43
+ dev-ready init my-app
44
+ ```
45
+
31
46
  ## Usage
32
47
 
33
48
  ```bash
@@ -63,7 +78,7 @@ Full CLI contract: [docs/cli-spec.md](docs/cli-spec.md).
63
78
  ## How it works
64
79
 
65
80
  1. **Prompt & confirm** — collect answers, show a summary before any network call or write (`--yes` skips this).
66
- 2. **Fetch** — download the upstream template as a tarball at the commit pinned in `src/dev_ready/manifest.json` (a lockfile shipped inside the wheel), safely extracted into a staging directory.
81
+ 2. **Fetch** — run [Copier](https://copier.readthedocs.io/) against the upstream template at the commit pinned in `src/dev_ready/manifest.json` (a lockfile shipped inside the wheel), into a staging directory. Your project name and freshly generated secrets are written into the project's `.env` — no upstream `changethis` placeholders.
67
82
  3. **Overlay** — apply the AI tooling files with template-variable substitution, still in staging.
68
83
  4. **Verify** — structural checks against required paths (backend, frontend, compose files, ...).
69
84
  5. **Finalize** — move staging into the target. This is the only step that touches the target.
@@ -14,8 +14,8 @@ uvx dev-ready init my-app
14
14
  | 1. Prompt user | --> | 2. Fetch upstream | --> | 3. Apply overlay |
15
15
  | (questionary) | | at pinned commit | | (CLAUDE.md, |
16
16
  | | | from manifest | | skills, MCP, |
17
- | | | (tarball, no git | | docs) |
18
- | | | history) | | |
17
+ | | | (Copier, no git | | docs) |
18
+ | | | history kept) | | |
19
19
  +-------------------+ +---------------------+ +------------------+
20
20
  |
21
21
  v
@@ -48,6 +48,7 @@ uvx dev-ready init my-app
48
48
  - Context: The original plan was a Node CLI (`npx create-ai-stack`, degit + @clack/prompts). The project has since moved to a Python implementation named dev-ready, matching the maintainer's primary stack (Python) and the target audience (FastAPI developers who already have uv).
49
49
  - Decision: Pure Python CLI, `uvx dev-ready`. Node-specific choices are replaced: degit -> GitHub tarball download at pinned commit; @clack/prompts -> questionary (or equivalent); npm publish -> PyPI publish.
50
50
  - Consequences: Single-language repo; one less runtime assumption for the target audience. The npx name `create-ai-stack` is abandoned.
51
+ - Amended by ADR-005: the tarball download is replaced by Copier; the pinning, staging, and all-or-nothing guarantees are unchanged.
51
52
 
52
53
  ### ADR-004: Interactive prompts with a non-interactive escape hatch
53
54
 
@@ -56,13 +57,45 @@ uvx dev-ready init my-app
56
57
  - Decision: Interactive by default; `--yes` plus explicit flags cover every prompt.
57
58
  - Consequences: All prompt logic must route through a single answers model so both paths share one code path.
58
59
 
60
+ ### ADR-005: Consume upstream via Copier, superseding the tarball fetch (v0.1.3)
61
+
62
+ - Status: Accepted (2026-07-14), amends ADR-003
63
+ - Context: v0.1 downloaded the upstream as a raw tarball. Real-world use showed two gaps: (1) the template's own copier.yml questions (project_name, stack_name, secret_key, postgres_password, first_superuser_password) were never answered, so every generated project shipped the upstream "changethis" placeholder secrets and default project name in `.env`; (2) the template's `_exclude` list was ignored. Copier is the upstream template's officially supported consumption path.
64
+ - Decision: `fetch` runs `copier.run_copy(https://github.com/<repo>.git, staging, data=..., vcs_ref=<pinned commit>, defaults=True, unsafe=True, quiet=True)`. `generate` builds the template data from Answers, generating per-project secrets (`secrets.token_urlsafe`) that the template's `_tasks` write into the project's `.env`. Everything else — manifest pin, staging directory, all-or-nothing finalize, weekly bump CI — is unchanged. The tarball download/extract modules and their tests are removed.
65
+ - Consequences:
66
+ - Generated projects get correct names and unique secrets, and carry `.copier/.copier-answers.yml`, enabling `copier update` for users later.
67
+ - New runtime dependency (copier, which brings jinja2/pydantic/plumbum) and a new host requirement: git must be installed (Copier clones; checked up front, mapped to FetchError/exit 3).
68
+ - `unsafe=True` executes the template's `_tasks` (`.copier/update_dotenv.py`) at generation time. Accepted because the executed code is pinned to a CI-verified commit (ADR-002), never floating "latest".
69
+ - Template question names are coupled to the pinned commit; an upstream rename is caught by the bump PR's generate-and-verify job, not by end users.
70
+ - Unwanted template-repo metadata files (upstream `.github/` workflows, SECURITY.md, release-notes.md) are NOT excluded by the template's `_exclude`; a manifest-driven prune list remains future work (now ADR-006, v0.2).
71
+
72
+ ### ADR-006: Manifest-driven prune list, separate from exclude (v0.2)
73
+
74
+ - Status: Accepted (2026-07-16)
75
+ - Context: A real generation (my-app, v0.1.3) contains upstream repo-maintenance files that are useless or misleading in a user project: upstream deploy/issue-triage workflows, CONTRIBUTING.md, release-notes.md, README screenshots (`img/`), release tooling, and a dead cookiecutter-era hook. Additionally, the template defines its own `_exclude`, which REPLACES Copier's DEFAULT_EXCLUDE — this is how `.git` and `copier.yml` leaked into v0.1.3 output. The full audited list is in requirements.md FR-7.
76
+ - Decision: `manifest.json` gains a `prune` key next to `exclude`, with identical validation (relative paths, no `..`). Both are merged into Copier's `exclude=` parameter at fetch time. The split is semantic, for bump-review clarity: `exclude` = broken-by-design, generation fails or output is corrupted without it (dangling symlinks, `.git`, `copier.yml`); `prune` = generates fine but does not belong in a user project (curated, revisited at bump time). JSON has no comments, so the two keys ARE the documentation.
77
+ - Consequences: One trivial loader/model change; no new fetch logic. The weekly bump PR reviews both lists against the new upstream commit. `verify_project` gains a forbidden-paths check (FR-9) as the enforcement backstop: if upstream restructures and a pruned/excluded path reappears, CI fails at bump time, never at the user's machine... with one caveat — verify runs at generation time too, so users are equally protected.
78
+
79
+ ### ADR-007: Multi-agent development team and handoff protocol (v0.2)
80
+
81
+ - Status: Accepted (2026-07-16)
82
+ - Context: dev-ready is developed by one human with several AI agents. v0.1 used a loose Architect -> Engineer -> reviewers flow. Adding Antigravity (Gemini) as a code-writing agent requires explicit roles and explicit handoff artifacts, or agents duplicate work and burn tokens re-deriving context.
83
+ - Decision: fixed roles, communicating only through committed markdown handoffs under `docs/handoffs/`:
84
+ - CEO (Moofon): sets goals, approves plans, merges.
85
+ - Tech Lead (Claude Fable 5, Cowork): talks with the CEO; writes decisions, plans, and handoff documents ONLY — never writes or edits code.
86
+ - Senior Engineer (Claude Opus 4.8): reads the tech lead's phase plan, breaks it into implementation tasks with acceptance criteria (a handoff for the junior), reviews the junior's code for logic and architecture, and personally fixes hard bugs the junior escalates.
87
+ - Junior Engineer (Gemini 3.1 Pro, Antigravity): implements the senior's tasks — writes most of the code. On completion writes an execution report (md). On a hard bug or an unimplementable task: STOP generating code (do not thrash tokens), move to the next task, and write an escalation handoff for the senior describing where, what happened, and the suspected cause.
88
+ - IBM Bob (QA / Security / SRE): unchanged; reviewer expectations stay in `.bob/qa.md`, `.bob/security.md`, `.bob/sre.md`.
89
+ - Handoff artifacts per phase, under `docs/handoffs/phase-N/`: `01-opus-plan.md` (senior's task breakdown for the junior), `02-gemini-implementation.md` (junior's brief: role, tasks, stop rules), `03-opus-review.md` (senior's review brief: read the junior's report, fix hard bugs, close the phase), `04-bob-qa.md`, `05-bob-security.md`, `06-bob-sre.md`. The junior's outputs go to `docs/handoffs/phase-N/reports/` (`execution-report.md`, `escalation-*.md`).
90
+ - Consequences: Every agent starts from a committed document, not from chat history; token spend concentrates in the cheapest capable agent (junior writes most code, senior only reviews and unblocks); the tech lead's no-code rule keeps decisions and implementation auditable separately. FR-10 ships the same scaffold to generated projects as an optional overlay component, so dev-ready users get this workflow for free.
91
+
59
92
  ## Module Boundary
60
93
 
61
94
  | Module | Responsibility | Must not |
62
95
  |---|---|---|
63
96
  | `cli` | Argument parsing, command wiring, exit codes | contain generation logic |
64
97
  | `prompts` | Interactive/non-interactive collection of user answers into one model | perform I/O other than terminal |
65
- | `fetch` | Download and verify upstream snapshot at the manifest-pinned commit | know about overlay content |
98
+ | `fetch` | Generate the upstream base via Copier at the manifest-pinned commit | know about overlay content |
66
99
  | `overlay` | Apply dev-ready files onto the fetched base; templating of names/values | fetch anything from the network |
67
100
  | `manifest` | Load/validate manifest.json; single source of truth for pins | be bypassed by other modules |
68
101
  | `report` | Post-generation summary and next steps | mutate the generated project |
@@ -72,7 +105,7 @@ uvx dev-ready init my-app
72
105
 
73
106
  - Direction: `cli` -> `prompts`/`manifest`/`fetch`/`overlay`/`report`/`verify`. Lower modules never import `cli`.
74
107
  - `fetch`, `overlay`, and `verify` are independent of each other; only `generate` (called only by `cli`) sequences them.
75
- - Runtime dependencies are kept minimal (target: questionary, httpx or stdlib urllib, rich optional). Every new dependency requires a note here.
108
+ - Runtime dependencies are kept minimal (current: questionary, copier — see ADR-005; rich optional). Every new dependency requires a note here.
76
109
  - No module reads `manifest.json` directly except `manifest`.
77
110
  - `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.
78
111
 
@@ -9,11 +9,15 @@
9
9
  - **Owner:** this repository's GitHub org/user
10
10
  - **Repository name:** this repo's name
11
11
  - **Workflow name:** `release.yml`
12
- - **Environment name:** leave blank (the workflow does not use a GitHub Environment)
12
+ - **Environment name:** `pypi` — the publish job runs with `environment: pypi` (see `release.yml`). Leaving this blank still works (a blank publisher-side environment accepts a token from *any* environment), but naming it `pypi` is what actually restricts publishing to that environment, so set it.
13
13
  3. Save. No further action is needed — `pypa/gh-action-pypi-publish` in `release.yml` requests a short-lived OIDC token from GitHub Actions at publish time and PyPI verifies it against this configuration.
14
14
 
15
15
  This is a one-time setup per PyPI project. It does not need to be repeated for future releases.
16
16
 
17
+ ### GitHub Environment (`pypi`)
18
+
19
+ The publish job declares `environment: pypi`. GitHub auto-creates the environment on first use, so nothing is strictly required up front. For real protection, pre-create it under the repo's **Settings → Environments** before the first tagged release and add a deployment branch/tag rule limiting it to `v*` tags (and optionally required reviewers). This pairs with the PyPI-side `pypi` environment above so only the release workflow, on a version tag, can publish.
20
+
17
21
  ## Cutting a release
18
22
 
19
23
  1. Bump the version in `pyproject.toml` (`[project].version`).
@@ -0,0 +1,73 @@
1
+ # Requirements — dev-ready
2
+
3
+ Status: Draft v0.1 (2026-07-13); v0.2 scope added (2026-07-16)
4
+
5
+ ## Problem Statement
6
+
7
+ Starting a production-grade FastAPI project that is ready for AI-assisted development requires assembling many pieces by hand: the base template, Claude Code configuration (CLAUDE.md, skills), MCP server setup, and design documentation. dev-ready is a CLI, run via `uvx dev-ready`, that scaffolds all of this in one command.
8
+
9
+ ## Functional Requirements
10
+
11
+ FR-1. The user can run `uvx dev-ready` (or `uvx dev-ready init <project-name>`) to generate a new project in a target directory.
12
+
13
+ FR-2. Generation uses a two-stage approach:
14
+ - Stage 1: fetch the upstream base template (fastapi/full-stack-fastapi-template) at the exact commit pinned in `manifest.json`.
15
+ - Stage 2: apply the dev-ready overlay on top: CLAUDE.md, Claude Code skills, MCP server configuration, and design-doc templates.
16
+
17
+ FR-3. The CLI prompts interactively for project name, and which optional overlay components to include. A non-interactive mode (`--yes` with defaults, flags for each choice) must exist for CI and scripted use.
18
+
19
+ FR-4. All upstream content is fetched at a pinned commit recorded in `manifest.json`. The CLI never fetches "latest" at generation time.
20
+
21
+ FR-5. The generated project must work immediately: dependencies resolvable, containers buildable, health check endpoint reachable, without manual fixes.
22
+
23
+ FR-6. The CLI reports clearly what was generated and what the user should do next.
24
+
25
+ ## Functional Requirements — v0.2
26
+
27
+ FR-7. Prune upstream repo-maintenance files. The generated project must not contain files that only make sense inside the upstream template's own repository. A `prune` list in `manifest.json` (separate from `exclude` — see ADR-006) removes them at generation time. Initial list, audited against a real v0.1.3 generation:
28
+
29
+ - `.github/workflows/` repo-maintenance workflows: `deploy-production.yml`, `deploy-staging.yml` (reference upstream's own servers and secrets), `issue-manager.yml`, `labeler.yml`, `add-to-project.yml`, `latest-changes.yml`, `smokeshow.yml`, `detect-conflicts.yml`, `zizmor.yml`, `guard-dependencies.yml`, and the `.github/labeler.yml` config. KEEP the workflows that test the user's own app: `test-backend.yml`, `test-docker-compose.yml`, `playwright.yml`, `pre-commit.yml`, plus `dependabot.yml`.
30
+ - `CONTRIBUTING.md` (contributing to the template, not to the user's project)
31
+ - `release-notes.md` (upstream's release history)
32
+ - `img/` (upstream README screenshots and GitHub social-preview images, ~7 files)
33
+ - `scripts/add_latest_release_date.py` (upstream release tooling; other scripts stay)
34
+ - `hooks/post_gen_project.py` (dead file: cookiecutter-era hook, not referenced by the template's `copier.yml` — its `_tasks` only runs `.copier/update_dotenv.py`)
35
+ - `README.md` (upstream's template README; replaced per FR-8)
36
+
37
+ KEEP even though they look upstream-ish: `development.md`, `deployment.md` (genuinely useful to the user), `.pre-commit-config.yaml`, root `package.json`/`bun.lock` (bun workspace wiring), `.copier/` (enables `copier update`), `.gitattributes`, `.agents/` and `.claude/` skill content not already excluded.
38
+
39
+ FR-8. Project README. Because FR-7 prunes the upstream `README.md`, the overlay writes a project-specific `README.md` (templated with the project name, brief stack summary, and the same commands as CLAUDE.md). The overlay's no-overwrite rule is preserved: prune removes the upstream file first, so there is no collision.
40
+
41
+ FR-9. Leak guard in verify. `verify_project` gains a forbidden-paths check (at minimum `.git`, `copier.yml`, `copier.yaml`) so a future upstream or Copier behavior change that reintroduces the v0.1.3 `.git`/`copier.yml` leak fails generation loudly — in CI at bump time, before it ever reaches users.
42
+
43
+ FR-10. Agent-team overlay (optional component, alongside skills/mcp/docs). Generated projects can include a multi-agent handoff scaffold: a `docs/handoffs/` directory with role and handoff templates (tech lead -> senior engineer -> junior engineer -> QA/Security/SRE, see ADR-007), and an agent-roles section in the generated CLAUDE.md. Selected like the other components (`--no-agents` flag, checkbox in the interactive flow).
44
+
45
+ ## Non-functional Requirements
46
+
47
+ NFR-1. Reproducibility: two runs of the same dev-ready version produce identical output (modulo user inputs).
48
+
49
+ NFR-2. Maintainability: designed for a solo maintainer. Upstream tracking is automated (weekly CI bump PR); no fork of upstream is maintained.
50
+
51
+ NFR-3. Distribution: installable and runnable via `uvx` with zero prior setup beyond uv itself. Python >= 3.12.
52
+
53
+ NFR-4. Offline behavior: fail fast with a clear message when the network is unavailable; never generate a partial project.
54
+
55
+ NFR-5. Cross-platform: macOS, Linux, Windows.
56
+
57
+ ## Out of Scope (current phase)
58
+
59
+ - Web UI companion (deferred, see roadmap)
60
+ - Support for base templates other than fastapi/full-stack-fastapi-template
61
+ - Post-generation project upgrade/migration commands
62
+
63
+ ## Future Roadmap
64
+
65
+ 1. v0.1: single template, interactive init, pinned manifest, three CI workflows (upstream bump, PR validation, release). DONE (v0.1.3 + pending v0.1.4 fixes: `.git`/`copier.yml` exclude, bump-PR token, CLAUDE.md template corrections).
66
+ 2. v0.2: prune list (FR-7), project README (FR-8), verify leak guard (FR-9), agent-team overlay (FR-10). Component selection matrix shipped in v0.1 (skills/mcp/docs flags); v0.2 adds the fourth component. See docs/v0.2-plan.md for phases.
67
+ 3. v0.x: `dev-ready check` / `dev-ready upgrade` commands; additional base templates; possible Web UI companion (decision deferred).
68
+
69
+ ## Pre-start Checklist (carried from planning)
70
+
71
+ - [ ] Package name availability on PyPI (`dev-ready`)
72
+ - [ ] License verification for redistributing upstream snapshots (upstream is MIT — confirm attribution requirements)
73
+ - [ ] Confirm upstream health check endpoint used for post-generation verification
@@ -1,16 +1,18 @@
1
- # dev-ready v0.1 Overview — Phases 1–5
1
+ # dev-ready v0.1 Overview — Phases 1–6
2
2
 
3
- Status: v0.1 feature-complete (2026-07-14). All five phases landed; each phase passed IBM Bob's three-way QA / Security / SRE review (`.bob/reviews/`, all APPROVE, zero blocking issues). Not yet officially published to PyPI (see "Remaining work" at the end).
3
+ Status (2026-07-14): Phases 1–5 are released as v0.1.0–v0.1.2 on PyPI (v0.1.0/v0.1.1 are placeholders slated for yanking). Phase 6 (Copier consumption + release-pipeline hardening) is implemented and sits uncommitted in the working tree, targeting **v0.1.3**. Phase 6 reviews: QA APPROVE; Security and SRE REQUEST CHANGES — two small blocking fixes remain before release (see "Release gate for v0.1.3").
4
4
 
5
5
  ## What this project is
6
6
 
7
- dev-ready is a Python CLI (`uvx dev-ready init <name>`) that generates an "AI-assisted-development-ready" FastAPI full-stack project in a single command: the base is a snapshot of `fastapi/full-stack-fastapi-template` at a manifest-pinned commit, with dev-ready's own overlay on top (CLAUDE.md, Claude Code skills, MCP configuration, design-doc templates).
7
+ dev-ready is a Python CLI (`uvx dev-ready init <name>`) that generates an "AI-assisted-development-ready" FastAPI full-stack project in a single command: the base is `fastapi/full-stack-fastapi-template` consumed via Copier at a manifest-pinned commit, with dev-ready's own overlay on top (CLAUDE.md, Claude Code skills, MCP configuration, design-doc templates).
8
8
 
9
- Two core architecture decisions run through all five phases:
9
+ Two core architecture decisions run through all phases:
10
10
 
11
- - **ADR-001/002 — No fork, pin commits**: upstream is fetched as a tarball snapshot, with the commit pinned in `src/dev_ready/manifest.json` (a lockfile shipped inside the wheel). Never fetch "latest" at generation time. Upstream updates come from a weekly CI job that opens bump PRs, fully validated by CI and merged manually.
11
+ - **ADR-001/002 — No fork, pin commits**: upstream is consumed at a commit pinned in `src/dev_ready/manifest.json` (a lockfile shipped inside the wheel). Never fetch "latest" at generation time. Upstream updates come from a weekly CI job that opens bump PRs, fully validated by CI and merged manually.
12
12
  - **All-or-nothing**: the entire pipeline runs in a staging directory; only the final step moves it into the target. If any step fails, the target is never touched and no half-finished output is left behind.
13
13
 
14
+ Since Phase 6 (ADR-005), fetching means running Copier — the template's officially supported consumption path — which also answers the template's own questions: the user's project name, a slugified stack name, and per-project generated secrets land in the generated project's `.env` (no more upstream `changethis` placeholders).
15
+
14
16
  ## End-to-end flow
15
17
 
16
18
  ```
@@ -19,10 +21,10 @@ uvx dev-ready init my-app
19
21
  v
20
22
  +------------------+ +------------------+ +------------------+
21
23
  | 1. prompts | | 2. fetch | | 3. overlay |
22
- | interactively |-->| codeload tarball |-->| apply CLAUDE.md/|
24
+ | interactively |-->| copier run_copy |-->| apply CLAUDE.md/|
23
25
  | collect missing | | @ pinned commit | | skills/MCP/docs |
24
- | answers + confirm| | safe-extract to | | template variable|
25
- | (--yes skips all)| | staging | | substitution |
26
+ | answers + confirm| | answers+secrets | | template variable|
27
+ | (--yes skips all)| | -> .env, staging| | substitution |
26
28
  +------------------+ +------------------+ +------------------+
27
29
  |
28
30
  +----------------------------------------------+
@@ -38,7 +40,7 @@ uvx dev-ready init my-app
38
40
 
39
41
  Execution-order guarantees: the confirmation summary happens before any network call or write; in non-TTY environments, missing input exits 2 immediately and never hangs; steps 2–4 all happen inside a `tempfile.mkdtemp()` staging directory, with cleanup guaranteed by `finally`.
40
42
 
41
- Exit codes (`docs/cli-spec.md`): 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure; 4 target directory conflict; 5 generated output failed structural verification.
43
+ Exit codes (`docs/cli-spec.md`): 0 success; 1 unexpected error or user abort; 2 argument error; 3 network/fetch failure (including missing git and Copier errors since Phase 6); 4 target directory conflict; 5 generated output failed structural verification.
42
44
 
43
45
  ## Module map
44
46
 
@@ -47,16 +49,16 @@ Exit codes (`docs/cli-spec.md`): 0 success; 1 unexpected error or user abort; 2
47
49
  | `src/dev_ready/cli.py` | argparse, command dispatch, exception → exit-code mapping | No generation logic |
48
50
  | `src/dev_ready/prompts/` | Interactive/non-interactive answer collection, unified into the `Answers` model (ADR-004) | I/O other than the terminal |
49
51
  | `src/dev_ready/manifest/` | Load/validate manifest.json, single source of truth for pins | Being bypassed by other modules |
50
- | `src/dev_ready/fetch/` | Download + verify + safe-extract upstream snapshots | Knowing overlay contents; **the only module in the repo allowed to touch the network** |
52
+ | `src/dev_ready/fetch/` | Run Copier against the pinned upstream commit into staging (ADR-005) | Knowing overlay contents; **the only module in the repo allowed to touch the network** |
51
53
  | `src/dev_ready/overlay/` | Apply templates/ assets onto staging, template variable substitution | Any network call |
52
54
  | `src/dev_ready/verify.py` | Structural post-gen checks (read-only) | Network, writes |
53
55
  | `src/dev_ready/report/` | Pure-function rendering of the success summary | Any I/O |
54
- | `src/dev_ready/generate.py` | Chains fetch→overlay→verify→move into the all-or-nothing pipeline | — |
56
+ | `src/dev_ready/generate.py` | Chains fetch→overlay→verify→move; builds the template answers (secrets) | — |
55
57
  | `src/dev_ready/errors.py` | Typed exception hierarchy (each carrying its exit_code) | — |
56
58
  | `src/dev_ready/templates/` | Overlay assets (CLAUDE.md.tmpl, skills, mcp.json, docs templates), accessed via `importlib.resources` | — |
57
59
  | `scripts/bump_upstream.py` | CI-only pin bump tool (stdlib-only, not shipped in the wheel) | — |
58
60
 
59
- The only runtime dependency: `questionary>=2.0,<3` (importable only from `prompts/`, lazily imported, never triggered on the `--yes` path).
61
+ Runtime dependencies: `questionary>=2.0,<3` (importable only from `prompts/`, lazily imported, never on the `--yes` path) and, since Phase 6, `copier>=9.4,<10` (lazily imported inside `fetch`, so `--help`/`--version` stay fast). git is now a host requirement (Copier clones; missing git = clean exit 3).
60
62
 
61
63
  ## What each phase delivered
62
64
 
@@ -72,6 +74,7 @@ The only runtime dependency: `questionary>=2.0,<3` (importable only from `prompt
72
74
  - `src/dev_ready/fetch/`: urls.py (codeload tarball URL, built only from validated pin fields), download.py, extract.py (safe extraction guarding against path traversal / symlinks / hardlinks), snapshot.py (fetch into temp, move only on success).
73
75
  - Fetch-level all-or-nothing and exit 3.
74
76
  - Review fixes: hardlink test, error messages carrying the URL, next-step guidance, known-limitation notes.
77
+ - (The tarball machinery built here was replaced by Copier in Phase 6; the staging/all-or-nothing pattern it established survives unchanged.)
75
78
 
76
79
  ### Phase 3 — Overlay + end-to-end wiring (`20c5614`, follow-up fix `4e2aad9`)
77
80
 
@@ -95,37 +98,46 @@ The only runtime dependency: `questionary>=2.0,<3` (importable only from `prompt
95
98
  - `.github/workflows/release.yml`: tag version vs pyproject version gate → `uv build` → wheel smoke test (install into a scratch venv and run `--version`) → PyPI trusted publishing (OIDC, no tokens).
96
99
  - `.github/dependabot.yml` (pip + github-actions, weekly), `THIRD_PARTY_NOTICES.md`, `docs/releasing.md` (one-time PyPI Trusted Publisher setup + release runbook).
97
100
 
101
+ ### Phase 6 — Copier consumption + release-pipeline hardening (targeting v0.1.3, uncommitted)
102
+
103
+ - **ADR-005 (amends ADR-003)**: `fetch` now runs `copier.run_copy(https://github.com/<repo>.git, staging, data=..., vcs_ref=<pinned commit>, defaults=True, unsafe=True, quiet=True)`. `download.py`/`extract.py`/`urls.py` and their tar-safety tests are deleted. `generate._template_data()` supplies the template answers: project name, slugified `stack_name`, and `secrets.token_urlsafe` values for SECRET_KEY / POSTGRES_PASSWORD / FIRST_SUPERUSER_PASSWORD, written into the generated `.env` by the template's own `_tasks`. Generated projects also gain `.copier/.copier-answers.yml` (enables `copier update`).
104
+ - Accepted trade-offs (documented in ADR-005): new dependency tree (jinja2/pydantic/plumbum via copier), git as a host requirement, and — the material one — `unsafe=True` executes the template's pinned `_tasks` script on the end user's machine at generation time. Containment argument (pin is a 40-hex SHA, HTTPS-only clone, pin changes only via CI-gated bump PRs) was traced end-to-end and passed security review.
105
+ - `release.yml`: `environment: pypi` on the publish job (Deployments recording + PyPI trusted-publisher narrowing), `contents: write`, and a final `gh release create "$GITHUB_REF_NAME" --generate-notes dist/*` step so tags produce real GitHub Releases.
106
+ - READMEs: explicit Installation section (uvx / pip), git requirement, Copier wording.
107
+ - Process note: implemented out-of-band in a Cowork session rather than via the normal Architect → Engineer handoff; the deviation and its unverified claims were documented in `handoff/phase6/0-engineer-report.md`, then verified by Opus + Bob. Reviews: QA APPROVE (123 passed, ruff clean, real generation confirmed `.env` secrets); Security REQUEST CHANGES (1 blocking); SRE REQUEST CHANGES (2 blocking, 1 already resolved — `uv.lock` has been regenerated).
108
+
98
109
  ## Testing strategy and current state
99
110
 
100
111
  Three test layers (`pyproject.toml` defaults to `-m 'not network'`, excluding network tests):
101
112
 
102
- - **Unit (129, all run by default)**: no network, no filesystem outside tmp_path, no real TTY. Prompt behavior uses a fake asker; the bump script uses a `urlopen` monkeypatch; verify is parametrized over every entry in `REQUIRED_UPSTREAM_PATHS`.
103
- - **Integration / E2E (2, `network` marker)**: `test_fetch_real.py`, `test_init_real.py` run a full init against real GitHub.
113
+ - **Unit (123, all run by default)**: no network, no filesystem outside tmp_path, no real TTY. Prompt behavior uses a fake asker; the bump script uses a `urlopen` monkeypatch; verify is parametrized over every entry in `REQUIRED_UPSTREAM_PATHS`; Copier is mocked in `test_fetch.py` (call contract: pinned `vcs_ref`, `defaults`/`unsafe`/URL, failure→FetchError, no temp leaks). Count dropped from 129: tar-safety tests left with the tarball code, copier-contract and template-data tests arrived.
114
+ - **Integration / E2E (2, `network` marker)**: `test_fetch_real.py`, `test_init_real.py` run a full init against real GitHub (now requiring git in the environment).
104
115
  - **CI's generate-and-verify job**: the final line of defense for FR-5 — a real project + real Docker + real health check, required on every PR (including bump PRs).
105
116
 
106
117
  ## Development process (multi-agent workflow)
107
118
 
108
- Each phase followed a fixed cycle: Architect (Claude, producing four documents in `handoff/phaseN/`: engineer / QA / security / SRE) → Engineer (implements per 1-engineer and commits) → IBM Bob three-way review (written to `.bob/reviews/phaseN-*.md`) → Architect reconciles the reviews and schedules non-blocking items as the first carry-over commit of the next phase. Conventional Commits throughout (`feat:`/`fix:`/`ci:`/`docs:`), feeding the release automation.
109
-
110
- ## Remaining work
119
+ Each phase followed a fixed cycle: Architect (Claude, producing documents in `handoff/phaseN/`: engineer / QA / security / SRE) → Engineer (implements per 1-engineer and commits) → IBM Bob three-way review (written to `.bob/reviews/phaseN-*.md`) → Architect reconciles the reviews and schedules non-blocking items as the first carry-over commit of the next phase. Conventional Commits throughout (`feat:`/`fix:`/`ci:`/`docs:`), feeding the release automation. Phase 6 deviated (implementation preceded the handoff); the review gate caught real blockers, which is the system working as intended.
111
120
 
112
- ### Required manual steps before releasing v0.1 (maintainer-only)
121
+ ## Release gate for v0.1.3 (blocking, in order)
113
122
 
114
- 1. **One-time PyPI Trusted Publisher setup** (full steps in `docs/releasing.md`): on PyPI, `dev-ready` project → Publishing → add the GitHub repo + `release.yml`. Without this, the release workflow fails at the publish step.
115
- 2. Release per the runbook: confirm the pyproject version → tag `vX.Y.Z` → push the tag.
116
- 3. Recommended: enable branch protection on the GitHub repo (require CI pass) so the bump-PR gate is actually enforced.
117
- 4. `.gitignore` has one uncommitted change (ignoring `handoff/` and `.bob/reviews/`) — if intentional, remember to commit it.
123
+ 1. **Security blocker** — tighten `_REPO_PATTERN` in `src/dev_ready/manifest/loader.py` to GitHub's actual owner/name charset (see `.bob/reviews/phase6-security.md`, item 1). One-line change + its unit test.
124
+ 2. **SRE B-1** — `docs/releasing.md` still instructs "Environment name: leave blank", contradicting `environment: pypi` in release.yml. Update the runbook: PyPI trusted publisher environment = `pypi`, plus a GitHub Environment pre-creation step (tag-pattern protection `v*`). (Note: per PyPI's documented semantics a blank publisher-side environment accepts tokens from any environment, so the review's day-1-failure scenario is likely overstated — but the runbook/workflow contradiction is real and the narrowing is wanted anyway.)
125
+ 3. Bump `pyproject.toml` version to `0.1.3`, re-run `uv lock`, full suite + ruff green.
126
+ 4. Yank v0.1.0/v0.1.1 placeholders on PyPI before installation docs circulate (SRE N-4; pip on Python 3.10/3.11 currently resolves to the broken 0.1.0 placeholder).
127
+ 5. Commit (Conventional Commits split), push, confirm CI green, tag `v0.1.3`, push the tag.
118
128
 
119
- ### Non-blocking backlog from reviews (none block the release)
129
+ ### Non-blocking backlog from Phase 6 reviews
120
130
 
121
- - Pin `pypa/gh-action-pypi-publish` to a full SHA (raised by all of QA/SEC/SRE; dependabot will maintain it).
122
- - Harden network isolation of the generate-and-verify job (the upstream container has full outbound network on the runner; blast radius is currently contained by zero secrets + read-only token).
123
- - `verify_project` reports only the first missing path (could collect all of them).
124
- - Explicit whitespace-sha test case for the bump script, per-docker-step timeouts, a Windows CI job (currently judged not worth adding).
125
- - ANSI escape output for `--dir` (only affects the user's own terminal), UX semantics of `components_explicit`, driving the report's next-steps string from the manifest in the future (in the spirit of ADR-002).
131
+ - Document / harden the publish-succeeds-but-release-fails split-brain (SRE N-1); consider an idempotent `gh release create || gh release edit` guard.
132
+ - Copier shallow-clone depth for slow networks (SRE N-3); track generate-and-verify job timing (N-5).
133
+ - Success report should tell users their credentials live in `.env` (SEC H-3); verify `_tasks` output can't leak secrets on all platforms (H-1/H-2).
134
+ - `load_manifest(path)` accepts arbitrary paths — keep it un-exposed or validate (H-4); PyPI publisher environment narrowing (H-5); `uv audit`/dependabot advisory scanning in CI (H-6); overlay prompt-injection review cadence (H-7).
135
+ - `_slugify` parametrized edge-case tests (QA suggestion).
136
+ - Carried from Phase 5: pin `pypa/gh-action-pypi-publish` to a full SHA; network isolation of generate-and-verify; `verify_project` collecting all missing paths; branch protection on main.
126
137
 
127
- ### Planned, explicitly out of v0.1 scope (`docs/requirements.md` roadmap)
138
+ ### Planned, explicitly out of scope (`docs/requirements.md` roadmap)
128
139
 
140
+ - Manifest-driven prune list for upstream template-repo metadata (upstream `.github/` workflows, SECURITY.md, release-notes.md) — Copier's `_exclude` does not remove these; deliberately deferred from Phase 6.
129
141
  - `dev-ready check` (validate an existing project against the manifest) and `dev-ready upgrade` (re-apply a newer overlay).
130
142
  - Support for other base templates; a Web UI companion (decision deferred).
131
143
  - **Vendoring external skill content** (mattpocock/skills, the Apache 2.0 parts of anthropics/skills, caveman, awesome-design-md, etc.): currently everything in `templates/` is original content, and THIRD_PARTY_NOTICES records this accurately. Actually vendoring will require per-repo license handling (Apache NOTICE, excluding source-available and Commons Clause items) and provenance records in a manifest `vendored` section.
@@ -0,0 +1,56 @@
1
+ # v0.2 Plan — dev-ready
2
+
3
+ Status: Accepted (2026-07-16). Written by the Tech Lead (ADR-007). Source of truth for phase handoff generation.
4
+
5
+ Scope: FR-7..FR-10 in `docs/requirements.md`; decisions in ADR-006/ADR-007 in `docs/architecture.md`. Everything else is out of scope for v0.2.
6
+
7
+ ## Pre-phase: release v0.1.4 first
8
+
9
+ The pending fixes on main must ship before v0.2 work starts, since v0.1.3 output is visibly broken (`.git` + `copier.yml` leak):
10
+
11
+ 1. manifest `exclude` additions (`.git`, `copier.yml`, `copier.yaml`) + snapshot.py comment
12
+ 2. `upstream-bump.yml` token fallback (`BUMP_PR_TOKEN`) — CEO must create the fine-grained PAT and repo secret
13
+ 3. CLAUDE.md.tmpl corrections (`compose.yml`, repo link)
14
+
15
+ Release: bump version to 0.1.4, tag `v0.1.4`, existing release pipeline does the rest.
16
+
17
+ ## Phase 1 — prune list + leak guard (FR-7, FR-9)
18
+
19
+ Smallest phase, highest user-visible value. Ships as v0.2.0.
20
+
21
+ - `manifest` module: add optional `prune` key (validation identical to `exclude`: non-empty relative-path strings, no leading `/`, no `..` segments). New field on `UpstreamPin`, default empty tuple.
22
+ - `fetch`: pass `exclude=pin.exclude + pin.prune` to `copier.run_copy` (order irrelevant to Copier; keep exclude first for readability).
23
+ - `manifest.json`: populate `prune` with the audited FR-7 list. NOTE for implementer: Copier exclude patterns are source paths relative to the template root; directory entries need the path form Copier matches (verify `img`, `hooks`, and individual `.github/workflows/*.yml` entries against a real run — the FR-7 list names intents, the implementer confirms exact patterns).
24
+ - `verify`: add `FORBIDDEN_PATHS = (".git", "copier.yml", "copier.yaml")`; `verify_project` raises `VerificationError` (exit 5) if any exists in the staged output. Do NOT add pruned paths here — prune is curation, not corruption; only leak-class paths are forbidden.
25
+ - Tests: manifest parsing (prune present/absent/invalid), fetch merge behavior (unit, no network), verify forbidden-path (tmp_path fixtures). CI generate-and-verify already exercises the real pipeline.
26
+ - Acceptance: a fresh generation contains none of the FR-7 pruned files; all FR-7 KEEP files still present; unit suite green without network.
27
+
28
+ ## Phase 2 — project README (FR-8)
29
+
30
+ Depends on Phase 1 (prune must remove upstream README.md first).
31
+
32
+ - Add `README.md` to the `prune` list.
33
+ - New overlay template `templates/readme/README.md.tmpl`: project name heading, one-paragraph stack description, commands section mirroring CLAUDE.md.tmpl, link back to dev-ready and the upstream template. Always applied (like CLAUDE.md), not a selectable component.
34
+ - Overlay no-overwrite rule unchanged — prune guarantees no collision. If prune is somehow disabled and README.md exists, the existing `OverlayError` collision path is the correct behavior; do not special-case.
35
+ - Tests: overlay unit tests for the new file; template token check already generic.
36
+ - Acceptance: generated project has a README about ITSELF, not about the template; no broken `img/` references anywhere.
37
+
38
+ ## Phase 3 — agent-team overlay component (FR-10)
39
+
40
+ - Fourth optional component `agents` beside skills/mcp/docs: `--no-agents` flag, checkbox entry, `Answers.include_agents`, default on.
41
+ - New overlay tree `templates/agents/`: `docs/handoffs/README.md` (the protocol: roles table from ADR-007, file naming `phase-N/01-opus-plan.md` … `06-bob-sre.md`, `reports/` convention, stop-and-escalate rule for the junior) plus one skeleton per handoff type with placeholder sections.
42
+ - Generated CLAUDE.md gains an agent-roles section (extend CLAUDE.md.tmpl — keep it short, point at `docs/handoffs/README.md`).
43
+ - Tests: prompts (component matrix now 4-wide), cli flag mapping, overlay tree application.
44
+ - Acceptance: `--yes` generation includes the scaffold; `--no-agents` excludes it; interactive checkbox shows four components.
45
+
46
+ ## Phase 4 — close out
47
+
48
+ - Docs: update `docs/v0.1-overview.md` successor or write `v0.2-overview.md`; README-pypi feature list; cli-spec.md flag table (`--no-agents`).
49
+ - Bob passes (QA/Security/SRE per `.bob/`), release v0.2.0.
50
+
51
+ ## Standing constraints (binding for every phase)
52
+
53
+ - Hard rules in CLAUDE.md apply unchanged (pins only in manifest.json, network only in `fetch/`, all-or-nothing generation, no-network unit tests, Conventional Commits).
54
+ - No new runtime dependencies in v0.2.
55
+ - Module boundaries per architecture.md; a phase that wants to cross one escalates to the Tech Lead instead of crossing it.
56
+ - Every phase ends with: unit suite green, `ruff check` clean, CI generate-and-verify green.
@@ -1,11 +1,12 @@
1
1
  [project]
2
2
  name = "dev-ready"
3
- version = "0.1.2"
3
+ version = "0.1.4"
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" }
7
7
  requires-python = ">=3.12"
8
8
  dependencies = [
9
+ "copier>=9.4,<10",
9
10
  "questionary>=2.0,<3",
10
11
  ]
11
12
 
@@ -0,0 +1,9 @@
1
+ """fetch: generate the upstream base via Copier at the manifest-pinned commit.
2
+
3
+ Only module allowed to make network calls (Copier's git clone happens here).
4
+ Knows nothing about overlay content. See docs/architecture.md (ADR-005).
5
+ """
6
+
7
+ from dev_ready.fetch.snapshot import fetch_snapshot
8
+
9
+ __all__ = ["fetch_snapshot"]