project-guide 2.17.0__tar.gz → 2.18.1__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.
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/workflows/ci.yml +3 -3
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/workflows/deploy-docs.yml +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/workflows/publish.yml +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/workflows/test.yml +2 -2
- {project_guide-2.17.0 → project_guide-2.18.1}/.project-guide.yml +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/CHANGELOG.md +17 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/CONTRIBUTING.md +2 -2
- {project_guide-2.17.0 → project_guide-2.18.1}/PKG-INFO +11 -23
- {project_guide-2.17.0 → project_guide-2.18.1}/README.md +10 -22
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/commands.md +11 -24
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-subphase-strategy-for-large-phases.md +1 -1
- project_guide-2.17.0/docs/specs/stories.md → project_guide-2.18.1/docs/specs/.archive/stories-v2.18.0.md +34 -17
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/concept.md +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/features.md +6 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/project-essentials.md +2 -0
- project_guide-2.18.1/docs/specs/stories.md +87 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/tech-spec.md +8 -7
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/cli.py +81 -277
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/best-practices-guide.md +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-production-phase-mode.md +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/version.py +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/pyproject.toml +1 -1
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_cli.py +225 -127
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_render.py +53 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/FUNDING.yml +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/.github/dependabot.yml +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/.gitignore +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/.tool-versions +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/LICENSE +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/SECURITY.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/.gitignore +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/about/changelog.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/about/license.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/developer-guide/contributing.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/developer-guide/development.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/developer-guide/testing.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/getting-started.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/images/project-guide-banner-landing.png +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/images/project-guide-header-readme.png +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/index.html +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/configuration.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/install-options.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/modes.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/overrides.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/site/user-guide/workflow.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-j-modes-plan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-k-release-lifecycle-plan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-l-no-input-init-plan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-m-project-essentials-plan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-n-mode-naming-cli-memory-plan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-o-pyve-quiet-embedding-subplan.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-o-quiet-non-interactive-embedding-feature.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/phase-p-auto-heal-plan.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-dx-subphases-plan.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-plan-envs-mode-env-dependences-artifact-roughdraft.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-plan-envs-mode-roughdraft.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-pyve-toolchain-hosting.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-subphase-2-plan-envs-plan.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-subphase-3-pyve-hosting-plan.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-subphase-4-local-install-warning-readiness-gate.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-subphase-4-readiness-gate-plan.md +0 -0
- {project_guide-2.17.0/docs/specs → project_guide-2.18.1/docs/specs/.archive}/phase-q-wizard-env-contract.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/project-guide-no-input-spec.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v1.3.1.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v2.0.20.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v2.10.2.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v2.3.9.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v2.4.19.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/stories-v2.5.15.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/.archive/ux-problems-v2.0.10.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/brand-descriptions.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/pyve/README.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/pyve/concept.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/pyve/features.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/pyve/sync.sh +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/docs/specs/pyve/tech-spec.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/mkdocs.yml +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project-guide-old-template.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/__init__.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/__main__.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/actions.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/config.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/exceptions.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/metadata.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/render.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/runtime.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/stories.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/sync.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/.project-guide.yml.template +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/.metadata.yml +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/README.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/brand-descriptions-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/codecov-setup-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/debug-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/landing-page-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/production-github-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/project-guide.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/developer/python-editable-install.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/brand-descriptions.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/concept.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/env-dependencies.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/features.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/project-essentials.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/pyve-essentials.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/stories.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/artifacts/tech-spec.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/llm_entry_point.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/_header-common.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/_header-cycle.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/_header-sequence.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/_phase-letters.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/archive-stories-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/code-direct-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/code-test-first-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/debug-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/default-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/document-brand-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/document-landing-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-concept-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-envs-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-features-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-phase-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-stories-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/plan-tech-spec-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/refactor-document-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/refactor-plan-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/project_guide/templates/project-guide/templates/modes/scaffold-project-mode.md +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/pyve.toml +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/requirements-dev.txt +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/__init__.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/conftest.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_actions.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_archive_stories_mode.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_config.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_cross_repo_contract.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_integration.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_metadata.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_purge.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_runtime.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_stories.py +0 -0
- {project_guide-2.17.0 → project_guide-2.18.1}/tests/test_sync.py +0 -0
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
python-version: ['3.11', '3.12', '3.13']
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v7
|
|
19
19
|
|
|
20
20
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
21
|
uses: actions/setup-python@v5
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
|
|
42
42
|
- name: Upload coverage to Codecov
|
|
43
43
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
|
|
44
|
-
uses: codecov/codecov-action@
|
|
44
|
+
uses: codecov/codecov-action@v7
|
|
45
45
|
with:
|
|
46
46
|
file: ./coverage.xml
|
|
47
47
|
fail_ci_if_error: false
|
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
needs: test
|
|
52
52
|
|
|
53
53
|
steps:
|
|
54
|
-
- uses: actions/checkout@
|
|
54
|
+
- uses: actions/checkout@v7
|
|
55
55
|
|
|
56
56
|
- name: Set up Python
|
|
57
57
|
uses: actions/setup-python@v5
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
python-version: ['3.11', '3.12', '3.13']
|
|
20
20
|
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@v7
|
|
23
23
|
|
|
24
24
|
- name: Set up Python ${{ matrix.python-version }}
|
|
25
25
|
uses: actions/setup-python@v5
|
|
@@ -42,7 +42,7 @@ jobs:
|
|
|
42
42
|
|
|
43
43
|
- name: Upload coverage
|
|
44
44
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
|
|
45
|
-
uses: codecov/codecov-action@
|
|
45
|
+
uses: codecov/codecov-action@v7
|
|
46
46
|
with:
|
|
47
47
|
file: ./coverage.xml
|
|
48
48
|
flags: unittests
|
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.18.1] - 2026-08-01
|
|
11
|
+
|
|
12
|
+
**`project-guide git-commit` subcommand (Story R.a).** gitbetter added a `git-commit` subcommand for iterating on commits locally and pushing a batch to GitHub later (saving GitHub Actions CI minutes). project-guide gains the sibling wrapper with an identical interface and behavior to `git-push`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`project-guide git-commit [BRANCH_NAME]`** — identical interface and behavior to `project-guide git-push` (commit-message derivation from `[Done]` story headings, bundle offer, duplicate-ID warning, header-story filter, out-of-sequence handling with the Q.p single-story opt-in, Q.u branch-aware squash-merge presumption, exit-code semantics, `--no-input` contract), but discovers and invokes gitbetter's `git-commit` binary to perform a local commit instead of a push. Both commands share `_run_gitbetter_wrapper(tool_name, branch_name, no_input)` in `project_guide/cli.py`; `tool_name` selects the gitbetter binary and drives every tool-naming message (not-on-PATH error, bundle-decline hint, out-of-sequence manual-resolution hint). `_emit_out_of_sequence_error` gains a `tool_name` parameter (default `"git-push"`). Eight new `test_git_commit_*` tests pin the delta; the shared flow stays pinned by the existing `test_git_push_*` suite. Docs updated: `README.md`, `docs/site/user-guide/commands.md`, `docs/specs/concept.md`, `docs/specs/features.md` (FR-15), `docs/specs/tech-spec.md` (command table, key functions, External CLI Dependencies), `docs/specs/project-essentials.md`.
|
|
16
|
+
|
|
17
|
+
## [2.18.0] - 2026-07-11
|
|
18
|
+
|
|
19
|
+
**Removed the `bump-version` command (Story Q.ac).** project-guide no longer ships a mechanical version writer. The command (added Story O.o, v2.5.13) was Python-/`pyproject.toml`-centric — it stamped `X.Y.Z` into `pyproject.toml`, an auto-detected `__version__` source, and `CHANGELOG.md`. project-guide is now tightly integrated into Pyve, which is polyglot; generalizing a mechanical version-write across every ecosystem's manifest and changelog conventions would be brittle, and version stamping is per-ecosystem and increasingly Pyve's domain. Hard removal, no deprecation shim: an audit found no programmatic consumer (Pyve invokes it nowhere in code — only in doc text that refreshes on its next `project-guide update`).
|
|
20
|
+
|
|
21
|
+
### Removed
|
|
22
|
+
- **`project-guide bump-version`** and its helpers (`_bump_pyproject_version`, `_bump_version_file`, `_bump_changelog`, `_find_version_file`, `_SEMVER_RE`) from `project_guide/cli.py`, plus the Story O.p CLI test suite. Invoking `project-guide bump-version` now exits 2 with click's standard "No such command" error.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **Replacement guidance — manual bumps per the Version Cadence rule.** The `plan_production_phase` end-of-phase release step and `developer/best-practices-guide.md` now direct the developer to bump the version manually per the Version Cadence rule (edit the per-ecosystem version sites + `CHANGELOG.md` when the owning story/phase ships) instead of invoking the removed command. `README.md`, `tech-spec.md`, `concept.md`, `docs/site/user-guide/commands.md`, and `CONTRIBUTING.md` drop their `bump-version` sections/rows accordingly.
|
|
26
|
+
|
|
10
27
|
## [2.17.0] - 2026-06-22
|
|
11
28
|
|
|
12
29
|
**Cycle-mode story-guidance & strategic-context grounding (Stories Q.w, Q.x).** Two template-only edits to the rendered mode headers that shape LLM behavior across modes. Q.w loosens the cycle modes' story scope/sequencing guidance — the previous absolute "work strictly in document order, regardless of any developer signal" framing was too rigid and even contradicted the shipped `git-push` Q.p single-story out-of-sequence opt-in. Q.x adds a universal "ground yourself in the strategic context" instruction so a fresh-context LLM reads the *why* / *what* before the *how*, curbing short-sighted, mechanics-only implementation. No Python change; ships as a deliberate minor release because the rendered-prompt surface is project-guide's product.
|
|
@@ -140,8 +140,8 @@ Releases are cut by the maintainer at end-of-phase per the **Version
|
|
|
140
140
|
Cadence** rule documented at the top of `docs/specs/stories.md`:
|
|
141
141
|
|
|
142
142
|
1. Land all stories in the phase via direct commits or merged PRs.
|
|
143
|
-
2.
|
|
144
|
-
`pyproject.toml
|
|
143
|
+
2. Bump the version manually per the Version Cadence rule — edit
|
|
144
|
+
`pyproject.toml` and `project_guide/version.py`, and add the
|
|
145
145
|
`## [X.Y.Z] - <date>` heading to `CHANGELOG.md`.
|
|
146
146
|
3. Use `project-guide mode plan_production_phase` (post-1.0) to negotiate
|
|
147
147
|
the bump magnitude when applicable.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: project-guide
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.18.1
|
|
4
4
|
Summary: Stay organized and in control with adaptive LLM workflow prompts.
|
|
5
5
|
Project-URL: Homepage, https://github.com/pointmatic/project-guide
|
|
6
6
|
Project-URL: Documentation, https://pointmatic.github.io/project-guide/
|
|
@@ -319,28 +319,6 @@ If any pre-check fails (no versioned stories, archive target already exists, sou
|
|
|
319
319
|
|
|
320
320
|
This command is intended to be run by the LLM after the developer has approved the archive in `project-guide mode archive_stories`.
|
|
321
321
|
|
|
322
|
-
### `bump-version`
|
|
323
|
-
|
|
324
|
-
Bump the package version across all three canonical sites in one step. Use it at end-of-phase when shipping a bundled release.
|
|
325
|
-
|
|
326
|
-
```bash
|
|
327
|
-
project-guide bump-version [VERSION]
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
**Argument:**
|
|
331
|
-
- `VERSION` - the `X.Y.Z` version to write
|
|
332
|
-
|
|
333
|
-
**Writes:**
|
|
334
|
-
- `pyproject.toml` `[project] version`
|
|
335
|
-
- the package `__version__` source (auto-detected: `<package>/version.py`, `_version.py`, `__init__.py`, and `src/` variants)
|
|
336
|
-
- a new `## [VERSION] - YYYY-MM-DD` entry in `CHANGELOG.md`, inserted directly below `## [Unreleased]` (idempotent — re-running refreshes the date and preserves the body)
|
|
337
|
-
|
|
338
|
-
**Options:**
|
|
339
|
-
- `--no-input` - Skip prompts; fail loudly if a default is missing (also auto-enabled by `CI=1` or non-TTY stdin)
|
|
340
|
-
- `--quiet` - Suppress success-path stdout; errors and warnings still print to stderr
|
|
341
|
-
|
|
342
|
-
The version magnitude (patch / minor / major) is a decision made per the Version Cadence rule in `docs/specs/stories.md`; this command performs only the mechanical write.
|
|
343
|
-
|
|
344
322
|
### `status`
|
|
345
323
|
|
|
346
324
|
Show status of all installed files and current mode. Output is compact and grouped into Mode, Guide, and Files sections with color.
|
|
@@ -461,6 +439,16 @@ project-guide git-push feature/heal-command
|
|
|
461
439
|
brew install pointmatic/tap/gitbetter
|
|
462
440
|
```
|
|
463
441
|
|
|
442
|
+
### `git-commit`
|
|
443
|
+
|
|
444
|
+
Identical interface and behavior to `git-push`, but wraps gitbetter's `git-commit`: derive the same story-aware commit message, then perform a **local commit** instead of a push. Iterate on commits locally and push a batch to GitHub later (saves CI minutes).
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
project-guide git-commit [BRANCH_NAME]
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
Everything documented for `git-push` above — message derivation, bundle offer, out-of-sequence handling, exit codes, the gitbetter optional dependency — applies unchanged.
|
|
451
|
+
|
|
464
452
|
### `override`
|
|
465
453
|
|
|
466
454
|
Mark a file as customized to prevent automatic updates.
|
|
@@ -283,28 +283,6 @@ If any pre-check fails (no versioned stories, archive target already exists, sou
|
|
|
283
283
|
|
|
284
284
|
This command is intended to be run by the LLM after the developer has approved the archive in `project-guide mode archive_stories`.
|
|
285
285
|
|
|
286
|
-
### `bump-version`
|
|
287
|
-
|
|
288
|
-
Bump the package version across all three canonical sites in one step. Use it at end-of-phase when shipping a bundled release.
|
|
289
|
-
|
|
290
|
-
```bash
|
|
291
|
-
project-guide bump-version [VERSION]
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
**Argument:**
|
|
295
|
-
- `VERSION` - the `X.Y.Z` version to write
|
|
296
|
-
|
|
297
|
-
**Writes:**
|
|
298
|
-
- `pyproject.toml` `[project] version`
|
|
299
|
-
- the package `__version__` source (auto-detected: `<package>/version.py`, `_version.py`, `__init__.py`, and `src/` variants)
|
|
300
|
-
- a new `## [VERSION] - YYYY-MM-DD` entry in `CHANGELOG.md`, inserted directly below `## [Unreleased]` (idempotent — re-running refreshes the date and preserves the body)
|
|
301
|
-
|
|
302
|
-
**Options:**
|
|
303
|
-
- `--no-input` - Skip prompts; fail loudly if a default is missing (also auto-enabled by `CI=1` or non-TTY stdin)
|
|
304
|
-
- `--quiet` - Suppress success-path stdout; errors and warnings still print to stderr
|
|
305
|
-
|
|
306
|
-
The version magnitude (patch / minor / major) is a decision made per the Version Cadence rule in `docs/specs/stories.md`; this command performs only the mechanical write.
|
|
307
|
-
|
|
308
286
|
### `status`
|
|
309
287
|
|
|
310
288
|
Show status of all installed files and current mode. Output is compact and grouped into Mode, Guide, and Files sections with color.
|
|
@@ -425,6 +403,16 @@ project-guide git-push feature/heal-command
|
|
|
425
403
|
brew install pointmatic/tap/gitbetter
|
|
426
404
|
```
|
|
427
405
|
|
|
406
|
+
### `git-commit`
|
|
407
|
+
|
|
408
|
+
Identical interface and behavior to `git-push`, but wraps gitbetter's `git-commit`: derive the same story-aware commit message, then perform a **local commit** instead of a push. Iterate on commits locally and push a batch to GitHub later (saves CI minutes).
|
|
409
|
+
|
|
410
|
+
```bash
|
|
411
|
+
project-guide git-commit [BRANCH_NAME]
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
Everything documented for `git-push` above — message derivation, bundle offer, out-of-sequence handling, exit codes, the gitbetter optional dependency — applies unchanged.
|
|
415
|
+
|
|
428
416
|
### `override`
|
|
429
417
|
|
|
430
418
|
Mark a file as customized to prevent automatic updates.
|
|
@@ -9,11 +9,11 @@ project-guide provides twelve commands for managing LLM workflow files across yo
|
|
|
9
9
|
| `init` | Install files into a new project |
|
|
10
10
|
| `mode` | Switch workflow mode or list available modes |
|
|
11
11
|
| `archive-stories` | Archive `stories.md` and re-render a fresh one for the next phase |
|
|
12
|
-
| `bump-version` | Bump the package version across `pyproject.toml`, the version source, and `CHANGELOG.md` |
|
|
13
12
|
| `status` | Show file status grouped by category |
|
|
14
13
|
| `update` | Update non-overridden files to latest versions |
|
|
15
14
|
| `heal` | Repair the install — create missing templates and refresh stale ones |
|
|
16
15
|
| `git-push` | Commit the latest completed story via gitbetter (optional dependency) |
|
|
16
|
+
| `git-commit` | Local-commit variant of `git-push` via gitbetter (optional dependency) |
|
|
17
17
|
| `override` | Mark a file as overridden to prevent updates |
|
|
18
18
|
| `unoverride` | Remove override status from a file |
|
|
19
19
|
| `overrides` | List all overridden files |
|
|
@@ -144,29 +144,6 @@ If any pre-check fails (no versioned stories in the source, archive target alrea
|
|
|
144
144
|
|
|
145
145
|
This command is intended to be run by the LLM after the developer has approved the archive in `project-guide mode archive_stories`. The conversational-vs-deterministic split is deliberate: the mode template walks the developer through the decision; the CLI command performs the transaction.
|
|
146
146
|
|
|
147
|
-
## bump-version
|
|
148
|
-
|
|
149
|
-
Bump the package version across all three canonical sites in one step — used at end-of-phase when shipping a bundled release.
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
project-guide bump-version [VERSION]
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Options
|
|
156
|
-
|
|
157
|
-
- `--no-input` - Skip prompts; fail loudly if a default is missing (also auto-enabled by `CI=1` or non-TTY stdin)
|
|
158
|
-
- `--quiet` - Suppress success-path stdout; errors and warnings still print to stderr
|
|
159
|
-
|
|
160
|
-
### What It Does
|
|
161
|
-
|
|
162
|
-
Writes the supplied `X.Y.Z` to:
|
|
163
|
-
|
|
164
|
-
1. `pyproject.toml` `[project] version`
|
|
165
|
-
2. the package `__version__` source (auto-detected: `<package>/version.py`, `_version.py`, `__init__.py`, and `src/` variants)
|
|
166
|
-
3. a new `## [VERSION] - YYYY-MM-DD` entry in `CHANGELOG.md`, inserted directly below `## [Unreleased]` (idempotent — re-running refreshes the date and preserves the body)
|
|
167
|
-
|
|
168
|
-
The version magnitude (patch / minor / major) is decided per the Version Cadence rule in `docs/specs/stories.md`; this command performs only the mechanical write.
|
|
169
|
-
|
|
170
147
|
## status
|
|
171
148
|
|
|
172
149
|
Display the status of all files in your project, grouped by category.
|
|
@@ -300,6 +277,16 @@ project-guide git-push [BRANCH_NAME]
|
|
|
300
277
|
|
|
301
278
|
It hard-errors (exit 1) when there is no `[Done]` story, when the latest one is already committed, when multiple `[Done]` stories are uncommitted, or when gitbetter is not installed (`brew install pointmatic/tap/gitbetter`).
|
|
302
279
|
|
|
280
|
+
## git-commit
|
|
281
|
+
|
|
282
|
+
Identical interface and behavior to `git-push`, but wraps gitbetter's `git-commit`: the same story-derived message becomes a **local commit** instead of a push, so you can iterate on commits locally and push a batch to GitHub later (saving CI minutes).
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
project-guide git-commit [BRANCH_NAME]
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Everything documented for `git-push` above — message derivation, bundle offer, out-of-sequence handling, exit codes, the gitbetter optional dependency — applies unchanged.
|
|
289
|
+
|
|
303
290
|
## override
|
|
304
291
|
|
|
305
292
|
Mark a file as overridden to prevent automatic updates.
|
|
@@ -159,7 +159,7 @@ No change recommended. These are inclusion partials for cycle/sequence headers;
|
|
|
159
159
|
- **Parser-safe.** Subphase headings use `##` (already a heading level the rendered docs handle); subphase IDs use a hyphen-separated form (`N-1`) that does not collide with story IDs (`N.a`), sub-numbered stories (`N.m.1`), or phase letters (`N`, `AA`).
|
|
160
160
|
- **Consumers** that already grep for `## Phase` continue to work — they will not see false matches against `## Subphase X-N:`.
|
|
161
161
|
- **Consumers** that grep for `### Story X.y` continue to work — story letters retain their existing format; subphases live one level up.
|
|
162
|
-
- **No tooling rename required.**
|
|
162
|
+
- **No tooling rename required.** ~~`project-guide bump-version`~~ (removed in v2.18.0), the `archive_stories` mode, and downstream version detection continue to operate on the phase boundary, not the subphase boundary.
|
|
163
163
|
|
|
164
164
|
---
|
|
165
165
|
|
|
@@ -1099,6 +1099,40 @@ Bundled release at end-of-subphase as **v2.15.0** (minor — new readiness-gated
|
|
|
1099
1099
|
|
|
1100
1100
|
---
|
|
1101
1101
|
|
|
1102
|
+
### Story Q.ac: v2.18.0 Remove the `bump-version` command [Done]
|
|
1103
|
+
|
|
1104
|
+
Rip out `project-guide bump-version` entirely. It is a Python-/`pyproject.toml`-centric mechanical version writer (added Story O.o, v2.5.13) that stamps `X.Y.Z` into three hardcoded Python sites: `pyproject.toml [project] version`, an auto-detected `__version__` source, and a `CHANGELOG.md` entry.
|
|
1105
|
+
|
|
1106
|
+
**Why remove rather than extend.** project-guide is now tightly integrated into Pyve, which is **polyglot** (Python + JavaScript/TypeScript today; venv / micromamba / pnpm / npm backends; Ruby, Rust, C++, Go, Java and their canonical backends/frameworks to come). Generalizing a mechanical version-write across every ecosystem's version file + manifest (`Cargo.toml`, `package.json`, `*.gemspec`, `build.gradle`/`pom.xml`, `go.mod`, …) and CHANGELOG conventions would be a brittle, fragile maintenance nightmare. Version stamping is per-ecosystem and increasingly Pyve's domain; project-guide should not own a Python-shaped command that mis-serves every other stack. (Removing `bump-version` also *unblocks and simplifies* the separately-considered hatchling **dynamic-version / single-source-of-truth** change: with no command needing a static `version =` line to rewrite, making `pyproject.toml` derive its version from `version.py` becomes a trivial config edit rather than one that must also teach `bump-version` to skip a dynamic pyproject. That dynamic-version change is still worthwhile on its own — it is *enabled*, not obviated, by this removal.)
|
|
1107
|
+
|
|
1108
|
+
**Removal surface (audited 2026-06-11):**
|
|
1109
|
+
- **Code** — `project_guide/cli.py`: the `bump-version` command (`bump_version`, `@main.command(name="bump-version")`) and its helpers `_bump_pyproject_version`, `_bump_version_file`, `_bump_changelog`, `_find_version_file`, plus `_SEMVER_RE` (used *only* by this command).
|
|
1110
|
+
- **Mode template** — `templates/.../modes/plan-production-phase-mode.md` instructs the LLM to run `project-guide bump-version` at end-of-phase; rewrite that step to point at the manual per-story bump convention (or a Pyve-delegated bump) instead. `developer/best-practices-guide.md` also references it.
|
|
1111
|
+
- **Tests** — `tests/test_cli.py` (the `bump-version` suite) and any `tests/test_render.py` assertion that the production-phase template mentions the command.
|
|
1112
|
+
- **Docs** — `README.md` (`### bump-version` section), `tech-spec.md` (CLI command table), `concept.md`, `docs/site/user-guide/commands.md`. Re-render installed `docs/project-guide/` copies after editing the source templates. Leave `.archive/` and historical `stories-vX.Y.Z.md` bodies untouched.
|
|
1113
|
+
|
|
1114
|
+
**Open decisions (planning-time):**
|
|
1115
|
+
- **Hard-remove vs. deprecate-then-remove.** project-guide is post-1.0 and `bump-version` is a shipped, consumer-facing command — a clean removal is a breaking change. Decide whether to ship a one-release deprecation shim (command prints a removal notice + exits non-zero) or hard-remove. Coordinate with the Pyve integration if Pyve invokes it anywhere.
|
|
1116
|
+
- **Replacement guidance.** What the production-phase mode and best-practices guide tell the LLM to do for version bumps post-removal (manual edits to the per-ecosystem version sites + CHANGELOG, per the Version Cadence rule).
|
|
1117
|
+
|
|
1118
|
+
Surfaced 2026-06-11 while weighing a hatchling dynamic-version change — concluded the command itself is the liability, not its sync mechanics.
|
|
1119
|
+
|
|
1120
|
+
**Decisions (resolved 2026-07-11):**
|
|
1121
|
+
- **Hard-remove** (no deprecation shim). Audited the Pyve repo: no Python code invokes `bump-version` — only doc/spec text in Pyve's installed `docs/project-guide/` copies and vendored specs, which refresh on Pyve's next `project-guide update`. With no programmatic consumer, the CHANGELOG removal notice suffices for human users.
|
|
1122
|
+
- **Replacement guidance:** point the production-phase mode step and `developer/best-practices-guide.md` at the manual per-story bump convention (Version Cadence rule: edit the per-ecosystem version sites + `CHANGELOG.md` when the owning story ships), noting version stamping is per-ecosystem and Pyve's domain.
|
|
1123
|
+
|
|
1124
|
+
Tasks:
|
|
1125
|
+
- [x] Red: add failing tests asserting `bump-version` is no longer a registered CLI command and that the rendered production-phase template no longer mentions it (5 tests, all red before removal)
|
|
1126
|
+
- [x] Remove from `project_guide/cli.py`: `bump_version` command, `_bump_pyproject_version`, `_bump_version_file`, `_bump_changelog`, `_find_version_file`, `_SEMVER_RE`
|
|
1127
|
+
- [x] Remove the `bump-version` suite from `tests/test_cli.py` (Story O.p block incl. `_seed_minimal_python_project`); `tests/test_render.py` had no assertions requiring the command's presence
|
|
1128
|
+
- [x] Rewrite the end-of-phase version step in `templates/.../modes/plan-production-phase-mode.md` to the manual Version Cadence convention; update `developer/best-practices-guide.md` accordingly
|
|
1129
|
+
- [x] Update docs: `README.md` (drop `### bump-version`), `tech-spec.md` (CLI command table), `concept.md`, `docs/site/user-guide/commands.md`; also `CONTRIBUTING.md` release-process step 2 (live instruction found during the removal sweep); left `.archive/` and historical story bodies untouched
|
|
1130
|
+
- [x] Re-render installed `docs/project-guide/` copies via `project-guide update`
|
|
1131
|
+
- [x] Bump v2.18.0 (`project_guide/version.py`, `pyproject.toml`) + dated `CHANGELOG.md` entry with removal notice
|
|
1132
|
+
- [x] Verify: full `pyve test` suite green (628 passed), `ruff check` clean, `mypy project_guide/` clean
|
|
1133
|
+
|
|
1134
|
+
---
|
|
1135
|
+
|
|
1102
1136
|
## Future
|
|
1103
1137
|
|
|
1104
1138
|
### Installation/Config Discovery Hierarchy (global vs. project context) [Deferred]
|
|
@@ -1142,20 +1176,3 @@ Future modes: `audit_security`, `audit_architecture`, `audit_performance`, `audi
|
|
|
1142
1176
|
|
|
1143
1177
|
`mypy project_guide/` emits `note: unused section(s): module = ['tests.*']` on every run — the `[[tool.mypy.overrides]]` block targeting `tests.*` in `pyproject.toml` matches nothing, because the checked target is `project_guide/` only (tests are never passed to mypy). Harmless (a note, not an error — exit stays 0 on success) but it's noise on every type-check, and a dead config stanza invites confusion about whether tests are meant to be type-checked. Resolve by deciding intent, then either: (a) **remove** the dead `tests.*` override from `pyproject.toml` (if tests are intentionally out of mypy's scope), or (b) **bring `tests/` into the mypy target** (CI step + local convention) if the override implies test type-checking was once intended. Surfaced 2026-06-11 during the Q.u mypy CI fix. Low priority — cosmetic until someone wants test type-checking.
|
|
1144
1178
|
|
|
1145
|
-
### Remove the `bump-version` command [Deferred]
|
|
1146
|
-
|
|
1147
|
-
Rip out `project-guide bump-version` entirely. It is a Python-/`pyproject.toml`-centric mechanical version writer (added Story O.o, v2.5.13) that stamps `X.Y.Z` into three hardcoded Python sites: `pyproject.toml [project] version`, an auto-detected `__version__` source, and a `CHANGELOG.md` entry.
|
|
1148
|
-
|
|
1149
|
-
**Why remove rather than extend.** project-guide is now tightly integrated into Pyve, which is **polyglot** (Python + JavaScript/TypeScript today; venv / micromamba / pnpm / npm backends; Ruby, Rust, C++, Go, Java and their canonical backends/frameworks to come). Generalizing a mechanical version-write across every ecosystem's version file + manifest (`Cargo.toml`, `package.json`, `*.gemspec`, `build.gradle`/`pom.xml`, `go.mod`, …) and CHANGELOG conventions would be a brittle, fragile maintenance nightmare. Version stamping is per-ecosystem and increasingly Pyve's domain; project-guide should not own a Python-shaped command that mis-serves every other stack. (Removing `bump-version` also *unblocks and simplifies* the separately-considered hatchling **dynamic-version / single-source-of-truth** change: with no command needing a static `version =` line to rewrite, making `pyproject.toml` derive its version from `version.py` becomes a trivial config edit rather than one that must also teach `bump-version` to skip a dynamic pyproject. That dynamic-version change is still worthwhile on its own — it is *enabled*, not obviated, by this removal.)
|
|
1150
|
-
|
|
1151
|
-
**Removal surface (audited 2026-06-11):**
|
|
1152
|
-
- **Code** — `project_guide/cli.py`: the `bump-version` command (`bump_version`, `@main.command(name="bump-version")`) and its helpers `_bump_pyproject_version`, `_bump_version_file`, `_bump_changelog`, `_find_version_file`, plus `_SEMVER_RE` (used *only* by this command).
|
|
1153
|
-
- **Mode template** — `templates/.../modes/plan-production-phase-mode.md` instructs the LLM to run `project-guide bump-version` at end-of-phase; rewrite that step to point at the manual per-story bump convention (or a Pyve-delegated bump) instead. `developer/best-practices-guide.md` also references it.
|
|
1154
|
-
- **Tests** — `tests/test_cli.py` (the `bump-version` suite) and any `tests/test_render.py` assertion that the production-phase template mentions the command.
|
|
1155
|
-
- **Docs** — `README.md` (`### bump-version` section), `tech-spec.md` (CLI command table), `concept.md`, `docs/site/user-guide/commands.md`. Re-render installed `docs/project-guide/` copies after editing the source templates. Leave `.archive/` and historical `stories-vX.Y.Z.md` bodies untouched.
|
|
1156
|
-
|
|
1157
|
-
**Open decisions (planning-time):**
|
|
1158
|
-
- **Hard-remove vs. deprecate-then-remove.** project-guide is post-1.0 and `bump-version` is a shipped, consumer-facing command — a clean removal is a breaking change. Decide whether to ship a one-release deprecation shim (command prints a removal notice + exits non-zero) or hard-remove. Coordinate with the Pyve integration if Pyve invokes it anywhere.
|
|
1159
|
-
- **Replacement guidance.** What the production-phase mode and best-practices guide tell the LLM to do for version bumps post-removal (manual edits to the per-ecosystem version sites + CHANGELOG, per the Version Cadence rule).
|
|
1160
|
-
|
|
1161
|
-
Surfaced 2026-06-11 while weighing a hatchling dynamic-version change — concluded the command itself is the liability, not its sync mechanics.
|
|
@@ -45,7 +45,7 @@ A mode-driven template system that dynamically renders a single entry-point docu
|
|
|
45
45
|
5. Make the LLM's work transparent and accountable through structured artifacts
|
|
46
46
|
|
|
47
47
|
### Scope
|
|
48
|
-
- **CLI tool**: `project-guide init`, `mode`, `status`, `update`, `heal`, `override`, `unoverride`, `overrides`, `purge`, `archive-stories`, `
|
|
48
|
+
- **CLI tool**: `project-guide init`, `mode`, `status`, `update`, `heal`, `override`, `unoverride`, `overrides`, `purge`, `archive-stories`, `git-push`, `git-commit`
|
|
49
49
|
- **17 modes**: `default`, `scaffold_project`, `plan_concept`, `plan_features`, `plan_tech_spec`, `plan_envs` *(frozen — pending Pyve work; do not use)*, `plan_stories`, `plan_phase`, `plan_production_phase`, `archive_stories`, `code_direct`, `code_test_first`, `debug`, `document_brand`, `document_landing`, `refactor_plan`, `refactor_document`, plus a future `code_production` (not yet implemented)
|
|
50
50
|
- **Jinja2 rendering**: mode templates + header partials rendered into a single entry-point document
|
|
51
51
|
- **Hash-based file sync**: content-hash comparison determines file freshness, not version numbers
|
|
@@ -85,6 +85,9 @@ For a high-level concept (why), see [`concept.md`](concept.md). For implementati
|
|
|
85
85
|
- Optional positional `BRANCH_NAME` — passed through to gitbetter's `git-push` for branch-aware push flows
|
|
86
86
|
- No other flags — the wrapped command is fully interactive (preview, confirm, branch cleanup, reject/recovery menu), so `--no-input` / `--quiet` would be no-ops; for those, route through raw `git-push` instead
|
|
87
87
|
|
|
88
|
+
**`project-guide git-commit [BRANCH_NAME]`**
|
|
89
|
+
- Identical interface and behavior to `git-push` (FR-15), but invokes gitbetter's `git-commit` for a local commit instead of a push
|
|
90
|
+
|
|
88
91
|
**`project-guide override FILE_NAME REASON`**
|
|
89
92
|
- Required: file name (template-relative path)
|
|
90
93
|
- Required: reason for override
|
|
@@ -417,6 +420,8 @@ Consumers migrating from a pre-Phase-P install run `project-guide init --force`
|
|
|
417
420
|
|
|
418
421
|
**`spec_artifacts_path` resolution.** The wrapper reads `spec_artifacts_path` from project-guide metadata when available; otherwise falls back to `docs/specs`. This lets the wrapper work in projects that haven't yet run `project-guide init`, including this project itself before metadata renders.
|
|
419
422
|
|
|
423
|
+
**`git-commit` sibling (Story R.a, v2.18.1).** `project-guide git-commit [BRANCH_NAME]` has an identical interface and behavior — same message derivation, bundle offer, header filter, out-of-sequence handling, branch-aware presumption, exit codes — but shells out to gitbetter's `git-commit` binary to perform a **local commit** instead of a push, so the developer can iterate on commits locally and push a batch to GitHub later (saving CI minutes). Both commands share a single implementation (`_run_gitbetter_wrapper(tool_name, …)` in `cli.py`); `tool_name` selects the gitbetter binary and drives every tool-naming message.
|
|
424
|
+
|
|
420
425
|
### FR-7: Shell Completion
|
|
421
426
|
|
|
422
427
|
Tab completion for `project-guide` commands, flags, and mode names in bash, zsh, and fish.
|
|
@@ -558,4 +563,4 @@ modes:
|
|
|
558
563
|
14. Package is published to PyPI as `project-guide`
|
|
559
564
|
15. `project-guide heal` (FR-14) is **silent on no drift** and applies fixes after the `[Y/n]` prompt on drift; under `--no-input` / `CI=1` / non-TTY the prompt is replaced with auto-yes plus the `Auto-healing N templates under --no-input.` stderr notice
|
|
560
565
|
16. The auto-hook fires for every CLI invocation including `--help` and `--version`, is silent in the steady state, recursion-guarded by `PROJECT_GUIDE_HEALING=1`, and never blocks the original subcommand on prompt decline
|
|
561
|
-
17. `project-guide git-push [BRANCH_NAME]` (FR-15) derives the commit message from the last `[Done]` story, hard-errors on already-committed or multi-uncommitted-Done states or missing gitbetter, and propagates gitbetter's child exit code unchanged
|
|
566
|
+
17. `project-guide git-push [BRANCH_NAME]` (FR-15) derives the commit message from the last `[Done]` story, hard-errors on already-committed or multi-uncommitted-Done states or missing gitbetter, and propagates gitbetter's child exit code unchanged; `project-guide git-commit [BRANCH_NAME]` behaves identically against gitbetter's `git-commit` binary
|
|
@@ -124,6 +124,8 @@ The notice is **non-suppressible** (always emitted even with `--quiet`) so CI lo
|
|
|
124
124
|
|
|
125
125
|
`project-guide git-push` is a thin wrapper over [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push` that auto-derives the commit message from `[Done]` story headings. It is a **developer-lane convenience command** — the LLM **must not** initiate it. The approval-gate discipline rule earlier in this file ("do not propose commits, pushes, or bundling options ... do not offer 'want me to also …?' follow-ups") remains in force, and applies to this wrapper just as it does to raw `git`. The wrapper exists to shorten the developer's typing at commit time, not to give the LLM a new excuse to volunteer commits.
|
|
126
126
|
|
|
127
|
+
**`git-commit` sibling (Story R.a, v2.18.1).** `project-guide git-commit` wraps gitbetter's `git-commit` (local commit instead of push — iterate locally, push a batch later to save CI minutes) with an **identical interface and behavior**: both commands share `_run_gitbetter_wrapper(tool_name, …)` in `cli.py`, differing only in which gitbetter binary is discovered and invoked. Everything in this section — heading-to-message rules, bundle offer, duplicate-ID warning, header filter, out-of-sequence handling, branch-aware presumption, exit-code semantics — applies to both wrappers unchanged.
|
|
128
|
+
|
|
127
129
|
**Heading-to-message rules (single story):**
|
|
128
130
|
- Output is `"<id>: <title>"`. The colon after the story ID is preserved — it is the anchor the already-committed check searches for in `git log --pretty=%s`.
|
|
129
131
|
- Backticks (`` ` ``) in the title become single quotes.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# stories.md -- project-guide (python)
|
|
2
|
+
|
|
3
|
+
This document breaks the `project-guide` project into an ordered sequence of small, independently completable stories grouped into phases. Each story has a checklist of concrete tasks. Stories are organized by phase and reference modules defined in `tech-spec.md`.
|
|
4
|
+
|
|
5
|
+
Put **`vX.Y.Z` in the story title only when that story ships the package version bump** for that release. Doc-only or polish stories **omit the version from the title** (they share the release with the preceding code story, or use your project’s doc-release policy). **One semver bump per owning story** — extra tasks on the *same* story share that bump; see `project-essentials.md`. Semantic versioning applies to the package. Stories are marked with `[Planned]` initially and changed to `[Done]` when completed.
|
|
6
|
+
|
|
7
|
+
For a high-level concept (why), see [`concept.md`](concept.md). For requirements and behavior (what), see [`features.md`](features.md). For implementation details (how), see [`tech-spec.md`](tech-spec.md). For project-specific must-know facts, see [`project-essentials.md`](project-essentials.md) (`plan_phase` appends new facts per phase). For the workflow steps tailored to the current mode (cycle steps, approval gates, conventions), see [`docs/project-guide/go.md`](../project-guide/go.md) — re-read it whenever the mode changes or after context compaction.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Version Cadence
|
|
12
|
+
|
|
13
|
+
Standard semantic versioning, with these conventions:
|
|
14
|
+
|
|
15
|
+
- **Every story belongs to a phase.** Bugfix stories included. No orphan stories.
|
|
16
|
+
- **Per-story bumping** (when a story owns its own release):
|
|
17
|
+
- Bugfix or trivial change → **patch** (`vX.Y.Z+1`)
|
|
18
|
+
- Feature or improvement → **minor** (`vX.Y+1.0`)
|
|
19
|
+
- Breaking change → **major** (`vX+1.0.0`). Post-1.0 only, and only via the `plan_production_phase` mode, which negotiates with the developer about whether the breakage is substantively user-facing or technically-but-trivially breaking (example: a log-format change is technically breaking, but if logs aren't a core consumer capability, the developer may judge it minor or even patch).
|
|
20
|
+
- **Phase-bundling option:** a phase can run unversioned during work and ship a single release/tag at end-of-phase. Stories within the phase carry no version in their title; the phase's last story owns the bump (magnitude determined by the highest-impact change in the bundle).
|
|
21
|
+
- **No out-of-order implementation.** Story order in this file is the order of execution. If work order needs to change, **reorganize/renumber here first** — don't skip ahead and create version-number gaps.
|
|
22
|
+
- **Pre-1.0:** standard semver applies; version starts at `v0.1.0` (Story A.a).
|
|
23
|
+
- **Post-1.0:** every phase must go through `plan_production_phase` (the lighter `plan_phase` is pre-1.0 only). Major bumps only happen through that mode's negotiation step.
|
|
24
|
+
|
|
25
|
+
This is the authoritative cadence rule. **Do not extrapolate the bump magnitude from `pyproject.toml`'s current version** — re-read this section whenever you're about to assign a version to a story.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Phase R: (Theme TBD)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### Story R.a: v2.18.1 Gitbetter `git-commit` subcommand [Done]
|
|
34
|
+
|
|
35
|
+
Gitbetter just added a `git-commit` subcommand to allow iterations on commits locally and then pushing a batch to GitHub, which will save substantially on GitHub Actions CI minutes.
|
|
36
|
+
|
|
37
|
+
This new `project-guide git-commit` subcommand is nearly identical to its sibling `project-guide git-push`. From the Project Guide perspective, the two commands have the identical interface and behavior.
|
|
38
|
+
|
|
39
|
+
- [x] Add `project-guide git-commit` subcommand that mirrors `project-guide git-push` functionality — both share `_run_gitbetter_wrapper(tool_name, …)` in `cli.py`
|
|
40
|
+
- [x] Update tests to cover the new command — 8 new `test_git_commit_*` tests (636 passed total)
|
|
41
|
+
- [x] Update documentation to reflect the new command — README, site commands.md, concept/features/tech-spec/project-essentials
|
|
42
|
+
- [x] Bump patch version to `v2.18.1` — `version.py`, `pyproject.toml`, CHANGELOG dated 2026-08-01
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Future
|
|
47
|
+
|
|
48
|
+
### Installation/Config Discovery Hierarchy (global vs. project context) [Deferred]
|
|
49
|
+
|
|
50
|
+
Model after `asdf` with no `.tool-versions`: context-free commands still work; project-scoped commands warn when there's no project. Today `project-guide` resolves its operating context only from a local `.project-guide.yml` in `Path.cwd()`, so commands run outside a project directory have no context and the pre-invoke hook stays silent (e.g., the Q-4 local-install readiness warning can't fire without a local config). Support a discovery hierarchy with a graceful global fallback:
|
|
51
|
+
|
|
52
|
+
- **Context-free commands** (`--version`, `status`, …) run against the global pyve toolchain-install context when no local `.project-guide.yml` is found — no project home required.
|
|
53
|
+
- **Project-scoped commands** (`mode`, …) warn "no project home" (no-op / non-zero exit) when no local `.project-guide.yml` is found, rather than silently doing nothing.
|
|
54
|
+
|
|
55
|
+
Resolution order: local `.project-guide.yml` first, then the global toolchain-install context. **Cross-repo contract implication:** the install-location-independence contract (Story Q.l, pinned by `tests/test_cross_repo_contract.py`) currently mandates per-project state is *always* resolved from `cwd`, never from the package install location — a global fallback is a coordinated evolution of that contract requiring a paired Pyve story (the global toolchain context is Pyve-owned). Defer until the need is concrete.
|
|
56
|
+
|
|
57
|
+
### Audit Modes [Deferred]
|
|
58
|
+
|
|
59
|
+
Future modes: `audit_security`, `audit_architecture`, `audit_performance`, `audit_best_practices`, `audit_modularity`, `audit_patterns`.
|
|
60
|
+
|
|
61
|
+
### Project Lifecycle Automation [Deferred]
|
|
62
|
+
|
|
63
|
+
- Release helper / version-bump / tag automation — developer works across multiple git flows and prefers tool-agnostic; no timeline.
|
|
64
|
+
- Migration tooling for `docs/guides/` → `docs/project-guide/` — future `refactor` mode; low demand.
|
|
65
|
+
|
|
66
|
+
### Advanced Project Essentials [Deferred]
|
|
67
|
+
|
|
68
|
+
- `create_or_modify` action type — revisit if multiple artifacts develop the need; not yet justified.
|
|
69
|
+
- Validation/linting of `project-essentials.md` content — freeform by design; template convention is sufficient.
|
|
70
|
+
- Auto-detection of stale `project-essentials.md` — git-log based; deferred until there is demand.
|
|
71
|
+
|
|
72
|
+
### CLI Edge Cases [Deferred]
|
|
73
|
+
|
|
74
|
+
- `--interactive` flag to force interactive mode over non-TTY stdin — not needed; `stdin` can always be re-attached.
|
|
75
|
+
- Legacy broken-state detection for `init` (`.project-guide.yml` absent but target dir populated) — unusual edge case; falls through to existing skip-with-warnings path.
|
|
76
|
+
|
|
77
|
+
### Integrity & Validation [Deferred]
|
|
78
|
+
|
|
79
|
+
- `project-guide check` command — dedicated integrity/audit surface with nonzero exit on failure, suitable for CI and pre-commit hooks. Candidate rules: `project_name` in config vs. `cwd.name` vs. `pyproject.toml` `[project] name`; artifact headers (`# stories.md -- <name> (<lang>)`) vs. `config.project_name`/`config.programming_language`; `SCHEMA_VERSION` surfacing; `installed_version` vs. `__version__`; `.archive/stories-vX.Y.Z.md` filenames parse cleanly; metadata override keys reference existing modes; unrendered `{{ var }}` placeholders across written artifacts (broadens the N.s `render_fresh_stories_artifact` guard to every written artifact). `project-guide status` runs a cheap subset and prints a one-line footer (`⚠ N integrity issues — run 'project-guide check' for details`) without changing its exit code. Precedent: `django check`, `brew doctor`, `cargo check`. Defer until there is a concrete second integrity rule worth shipping (N.s covers the first drift source inline with a warning).
|
|
80
|
+
|
|
81
|
+
### Template & Rendering [Deferred]
|
|
82
|
+
|
|
83
|
+
- Support for literal `{{ var }}` strings in template output — use `{% raw %}...{% endraw %}` on a case-by-case basis; bridge with a general solution only if the pattern becomes common.
|
|
84
|
+
|
|
85
|
+
### mypy `tests.*` unused-override cleanup [Deferred]
|
|
86
|
+
|
|
87
|
+
`mypy project_guide/` emits `note: unused section(s): module = ['tests.*']` on every run — the `[[tool.mypy.overrides]]` block targeting `tests.*` in `pyproject.toml` matches nothing, because the checked target is `project_guide/` only (tests are never passed to mypy). Harmless (a note, not an error — exit stays 0 on success) but it's noise on every type-check, and a dead config stanza invites confusion about whether tests are meant to be type-checked. Resolve by deciding intent, then either: (a) **remove** the dead `tests.*` override from `pyproject.toml` (if tests are intentionally out of mypy's scope), or (b) **bring `tests/` into the mypy target** (CI step + local convention) if the override implies test type-checking was once intended. Surfaced 2026-06-11 during the Q.u mypy CI fix. Low priority — cosmetic until someone wants test type-checking.
|
|
@@ -125,11 +125,11 @@ project-guide/
|
|
|
125
125
|
| `init` | Copy template tree, render `go.md`, create config, update `.gitignore` |
|
|
126
126
|
| `mode [name]` | Switch mode and re-render `go.md`, or list available modes |
|
|
127
127
|
| `archive-stories` | Archive `stories.md` to `.archive/stories-vX.Y.Z.md` and re-render a fresh one |
|
|
128
|
-
| `bump-version <X.Y.Z>` | Update `pyproject.toml`, `<package>/version.py`, and seed a `CHANGELOG.md` heading |
|
|
129
128
|
| `status` | Grouped status: Mode, Guide, Files (with `--verbose`) |
|
|
130
129
|
| `update` | Hash-based sync with prompt/force/dry-run |
|
|
131
130
|
| `heal` | Silent-when-clean drift repair with create-missing semantics; fires automatically before every other command via the group-level auto-hook |
|
|
132
131
|
| `git-push [BRANCH_NAME]` | Wrap gitbetter's `git-push` with a commit message derived from the last `[Done]` story heading; shells out via `shutil.which` + `subprocess.run`, propagates child exit code |
|
|
132
|
+
| `git-commit [BRANCH_NAME]` | Identical interface/behavior to `git-push` (both share `_run_gitbetter_wrapper`), but invokes gitbetter's `git-commit` for a local commit instead of a push |
|
|
133
133
|
| `override` | Lock a file from updates |
|
|
134
134
|
| `unoverride` | Remove a file lock |
|
|
135
135
|
| `overrides` | List all locked files |
|
|
@@ -142,10 +142,11 @@ project-guide/
|
|
|
142
142
|
- `_apply_heal(config, config_path)` — apply pending template syncs and re-render `go.md`. Sets `PROJECT_GUIDE_HEALING=1` in `os.environ` before doing any writes so nested subprocess invocations don't re-enter the auto-hook.
|
|
143
143
|
- `_run_pre_invoke_hook()` — group-level auto-heal hook (Story P.b/c). Calls `should_skip_input()` to honor the `--no-input` contract via env / TTY signals; silent when no drift; prompts on drift in interactive mode; auto-yes + `Auto-healing N templates under --no-input.` stderr notice in skip-input mode.
|
|
144
144
|
- `HealGroup(click.Group)` — custom Click group whose overridden `main()` runs `_run_pre_invoke_hook()` before `super().main()`, so `--help` and `--version` (eager flags that would otherwise short-circuit during arg parsing) still trigger the hook.
|
|
145
|
-
- `
|
|
146
|
-
- `
|
|
147
|
-
- `
|
|
148
|
-
-
|
|
145
|
+
- `_run_gitbetter_wrapper(tool_name, branch_name, no_input)` — shared body of the `git-push` / `git-commit` commands (Story R.a); `tool_name` selects the gitbetter binary (`"git-push"` / `"git-commit"`) and drives every tool-naming message (not-on-PATH error, bundle-decline hint, out-of-sequence manual-resolution hint).
|
|
146
|
+
- `_get_committed_story_ids()` — parses `git log --pretty=%s` and extracts story IDs from any subject line whose prefix matches `<id>: ` (regex `^([A-Z]\.[a-z]+):\s`). Returns an empty set on `git`-not-found, non-git cwd, or empty history. Used by the gitbetter wrappers to decide which `[Done]` stories are uncommitted.
|
|
147
|
+
- `_resolve_spec_artifacts_path()` — best-effort resolver for the `spec_artifacts_path` metadata value used by the gitbetter wrappers to locate `stories.md`. Falls back to `docs/specs` when config / metadata are unavailable so the wrappers work in projects that haven't yet run `init`.
|
|
148
|
+
- `project_guide/stories.py:_read_done_stories()` / `derive_commit_message()` — pure helpers used by the gitbetter wrappers. `_read_done_stories` returns all `[Done]` headings as `StoryHeading(story_id, title)` tuples in file order; `derive_commit_message` produces the gitbetter-ready subject `"<id>: <transformed title>"` (backticks → single quotes, double quotes → single quotes, single quotes pass through, colon preserved).
|
|
149
|
+
- **Phase Q additions (named for navigation; the contracts live in `project-essentials.md`):** `_query_pyve_provision_status()` / `_warn_if_local_install_under_pyve()` / `_provision_pyve_hosting()` (Subphase Q-4 readiness-gated local-install warning); `_get_current_branch()` / `_presume_committed_on_branch()` (Q.u branch-aware squash-merge presumption for `git-push`); `_prompt_commit_out_of_sequence()` (Q.p single-story out-of-sequence opt-in) — all shared by both gitbetter wrappers. The git-log subject parser is `parse_committed_ids_from_subject()` in `stories.py` (P.u, superseding the single-regex form); `stories.py`'s `_STORY_RE` recognizes `#{3,5}` heading depths (Q.v).
|
|
149
150
|
|
|
150
151
|
### Module: `config.py`
|
|
151
152
|
|
|
@@ -374,12 +375,12 @@ Fail fast with actionable messages:
|
|
|
374
375
|
|
|
375
376
|
### External CLI Dependencies (Story P.k pattern)
|
|
376
377
|
|
|
377
|
-
`git-push` is the first `project-guide` subcommand that **depends on an external CLI being on PATH** (gitbetter's `git-push` binary). Future workflow-integration commands (potential `git-tag`, `git-rebase`, etc.) should follow the same pattern:
|
|
378
|
+
`git-push` is the first `project-guide` subcommand that **depends on an external CLI being on PATH** (gitbetter's `git-push` binary); `git-commit` (Story R.a) is the second — same gitbetter toolchain, same shape, sharing `_run_gitbetter_wrapper` with only the binary name differing. Future workflow-integration commands (potential `git-tag`, `git-rebase`, etc.) should follow the same pattern:
|
|
378
379
|
|
|
379
380
|
1. **Discover** via `shutil.which(name)`. If `None`, exit 1 with stderr that names the missing tool and the canonical install command. Never silently fall back to a degraded behavior.
|
|
380
381
|
2. **Invoke** via `subprocess.run(argv, check=False)` with **no captured output** so the external tool inherits the parent's stdin/stdout/stderr (interactive flows like prompts and progress reporting must reach the developer unaltered).
|
|
381
382
|
3. **Propagate** the child's exit code with `sys.exit(result.returncode)`. The wrapper's own exit semantics are a passthrough — the external tool's reject/recovery semantics are the source of truth, not the wrapper's.
|
|
382
|
-
4. **Tests** mock both `shutil.which` (to control discovery) and `subprocess.run` (to control the child's behavior and capture argv). See `tests/test_cli.py::test_git_push_*` for the reference test shape.
|
|
383
|
+
4. **Tests** mock both `shutil.which` (to control discovery) and `subprocess.run` (to control the child's behavior and capture argv). See `tests/test_cli.py::test_git_push_*` and `test_git_commit_*` for the reference test shape.
|
|
383
384
|
|
|
384
385
|
This deliberately keeps each wrapper a thin convenience layer rather than a parallel implementation. The tested invariants are: discovery error message, argv shape (including positional passthrough), and exit-code propagation. Nothing else.
|
|
385
386
|
|