project-guide 2.19.0__tar.gz → 2.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/workflows/ci.yml +2 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/workflows/deploy-docs.yml +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/workflows/publish.yml +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/workflows/test.yml +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/.project-guide.yml +3 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/CHANGELOG.md +97 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/PKG-INFO +30 -10
- {project_guide-2.19.0 → project_guide-2.22.0}/README.md +29 -9
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/developer-guide/testing.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/commands.md +17 -9
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/configuration.md +20 -3
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/modes.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/workflow.md +1 -1
- project_guide-2.22.0/docs/specs/.archive/phase-r-subphase-3-branch-workflows-plan.md +233 -0
- project_guide-2.22.0/docs/specs/.archive/stories-v2.21.1.md +670 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/features.md +130 -18
- project_guide-2.22.0/docs/specs/phase-r-subphase-4-story-states-plan.md +200 -0
- project_guide-2.22.0/docs/specs/phase-r-subphase-4-story-tracker-requirements.md +395 -0
- project_guide-2.22.0/docs/specs/project-essentials.md +120 -0
- project_guide-2.22.0/docs/specs/project-guide-artifact-template-coverage-request.md +172 -0
- project_guide-2.22.0/docs/specs/stories.md +320 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/tech-spec.md +125 -15
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/cli.py +911 -134
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/completion.py +161 -3
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/config.py +57 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/stories.py +172 -10
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/best-practices-guide.md +8 -1
- project_guide-2.22.0/project_guide/templates/project-guide/developer/codecov-setup-guide.md +230 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/production-github-guide.md +10 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/project-guide.md +3 -3
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/concept.md +7 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/stories.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-common.md +2 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-cycle.md +27 -3
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_phase-letters.md +2 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/archive-stories-mode.md +2 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/code-direct-mode.md +4 -4
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/code-test-first-mode.md +2 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/default-mode.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/document-landing-mode.md +7 -12
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-production-phase-mode.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-stories-mode.md +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/refactor-document-mode.md +2 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/refactor-plan-mode.md +2 -2
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/version.py +1 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/pyproject.toml +7 -1
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_archive_stories_mode.py +17 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_cli.py +4066 -814
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_completion.py +228 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_config.py +142 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_render.py +630 -21
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_stories.py +281 -14
- project_guide-2.19.0/docs/specs/features_old.md +0 -566
- project_guide-2.19.0/docs/specs/project-essentials.md +0 -213
- project_guide-2.19.0/docs/specs/stories.md +0 -418
- project_guide-2.19.0/project_guide/templates/project-guide/developer/codecov-setup-guide.md +0 -181
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/FUNDING.yml +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/.github/dependabot.yml +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/.gitignore +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/.tool-versions +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/CONTRIBUTING.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/LICENSE +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/SECURITY.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/.gitignore +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/about/changelog.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/about/license.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/developer-guide/contributing.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/developer-guide/development.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/getting-started.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/images/project-guide-banner-landing.png +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/images/project-guide-header-readme.png +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/index.html +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/install-options.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/site/user-guide/overrides.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-j-modes-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-k-release-lifecycle-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-l-no-input-init-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-m-project-essentials-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-n-mode-naming-cli-memory-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-o-pyve-quiet-embedding-subplan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-o-quiet-non-interactive-embedding-feature.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-p-auto-heal-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-dx-subphases-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-plan-envs-mode-env-dependences-artifact-roughdraft.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-plan-envs-mode-roughdraft.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-pyve-toolchain-hosting.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-2-plan-envs-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-3-pyve-hosting-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-4-local-install-warning-readiness-gate.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-4-readiness-gate-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-strategy-for-large-phases.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-wizard-env-contract.md +0 -0
- {project_guide-2.19.0/docs/specs → project_guide-2.22.0/docs/specs/.archive}/phase-r-subphase-1-shell-completion-plan.md +0 -0
- {project_guide-2.19.0/docs/specs → project_guide-2.22.0/docs/specs/.archive}/phase-r-subphase-2-pyve-detection-plan.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/project-guide-no-input-spec.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v1.3.1.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.0.20.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.10.2.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.18.0.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.3.9.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.4.19.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.5.15.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/.archive/ux-problems-v2.0.10.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/brand-descriptions.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/concept.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve/README.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve/concept.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve/features.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve/sync.sh +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve/tech-spec.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/pyve-detection-render-gate.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/docs/specs/shell-completion-ownership.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/mkdocs.yml +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project-guide-old-template.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/__init__.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/__main__.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/actions.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/exceptions.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/metadata.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/render.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/runtime.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/sync.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/.project-guide.yml.template +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/.metadata.yml +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/README.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/brand-descriptions-guide.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/debug-guide.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/landing-page-guide.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/python-editable-install.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/brand-descriptions.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/env-dependencies.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/features.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/project-essentials.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/pyve-essentials.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/tech-spec.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/llm_entry_point.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-sequence.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/debug-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/document-brand-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-concept-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-envs-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-features-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-phase-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-tech-spec-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/scaffold-project-mode.md +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/pyve.toml +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/requirements-dev.txt +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/__init__.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/conftest.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_actions.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_cross_repo_contract.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_integration.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_metadata.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_purge.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_runtime.py +0 -0
- {project_guide-2.19.0 → project_guide-2.22.0}/tests/test_sync.py +0 -0
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- uses: actions/checkout@v7
|
|
19
19
|
|
|
20
20
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
-
uses: actions/setup-python@
|
|
21
|
+
uses: actions/setup-python@v7
|
|
22
22
|
with:
|
|
23
23
|
python-version: ${{ matrix.python-version }}
|
|
24
24
|
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
- uses: actions/checkout@v7
|
|
55
55
|
|
|
56
56
|
- name: Set up Python
|
|
57
|
-
uses: actions/setup-python@
|
|
57
|
+
uses: actions/setup-python@v7
|
|
58
58
|
with:
|
|
59
59
|
python-version: '3.11'
|
|
60
60
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
version: '2.0'
|
|
2
|
-
installed_version: 2.
|
|
2
|
+
installed_version: 2.21.1
|
|
3
3
|
target_dir: docs/project-guide
|
|
4
4
|
metadata_file: .metadata.yml
|
|
5
5
|
current_mode: code_test_first
|
|
6
6
|
test_first: false
|
|
7
|
-
pyve_version:
|
|
7
|
+
pyve_version: 3.3.0
|
|
8
|
+
pyve_installed: true
|
|
8
9
|
project_name: project-guide
|
|
@@ -7,6 +7,103 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.22.0] - 2026-11-29
|
|
11
|
+
|
|
12
|
+
**A fourth story state, and `[Done]` with one meaning (Subphase R-4, Stories R.w–R.af).** A story could only be `[Planned]`, `[In Progress]`, or `[Done]`, so the LLM declined to mark a release story `[Done]` while its tag, publish, and verify boxes were unchecked, and the wrappers then found nothing to commit ([#22](https://github.com/pointmatic/project-guide/issues/22)).
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **The `[Code-Complete]` story state.** It means everything that will be committed for the story is finished, and tasks after the commit remain. `[Done]` now means one thing: every task is complete. Task completion is its only trigger; a commit or a tag is not. `[Code-Complete]` is optional, and a story with no tasks after the commit goes straight from `[In Progress]` to `[Done]`.
|
|
16
|
+
- **`git-push` and `git-commit` commit `[Code-Complete]` stories.** A story in either `[Code-Complete]` or `[Done]` is a commit candidate, and nothing after selection tells the two apart: the header filter, the bundle offer, sequence discipline, the squash-merge presumption, the read of `stories.md` at `HEAD`, and the `--amend` guard treat them alike. A story committed while `[Code-Complete]` and marked `[Done]` later is not offered again.
|
|
17
|
+
- **`status` shows which finished stories are committed.** One line under "Next" names the `[Code-Complete]` and `[Done]` stories that are not yet committed, or says that all are; `--verbose` lists each story. The answer is computed from commit subjects and `stories.md` at `HEAD`, the same way the wrappers compute it, and is never stored. Outside a git repository, without git, or before the first commit, `status` prints what it printed before.
|
|
18
|
+
- **`status` counts code-complete stories.** The count appears in the summary line only when it is not zero. "Next" is now the first story that is `[Planned]` or `[In Progress]`, and the per-phase figure counts `[Done]` only.
|
|
19
|
+
- **An offer to mark task-complete stories `[Done]`.** When a story is `[In Progress]` or `[Code-Complete]` and every task box is checked, `status`, `git-push`, and `git-commit` list it and ask whether to mark it `[Done]`, defaulting to yes. In the wrappers the offer runs before candidate selection, so a story marked there is committed in the same run. Under `--no-input`, `CI=1`, or without a terminal, they print a one-line notice and change nothing. This is the only place `project-guide` edits `stories.md`, and it rewrites nothing but the status word.
|
|
20
|
+
- **The modes explain the four states.** Every cycle mode has a `## Story states` section saying when to use `[Code-Complete]` and when `[Done]`, that unchecked boxes for tasks after the commit are not a reason to withhold `[Code-Complete]`, and what to do with the "ready to mark [Done]" notice. The planning modes, `archive_stories`, the default mode, the `stories.md` template, and the developer guides follow.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **`--amend` refuses when a tag contains the last commit.** Tags mark releases, and amending would rewrite a released commit. The refusal names the tag and says to leave the change uncommitted so it rides with the next story's commit. It is checked after `--no-input` and "no previous commit", and before the uncommitted-story guard. A tag on an earlier commit does not block the amend. Previously `--amend` proceeded on a tagged commit.
|
|
24
|
+
- **The approval-gate rule is two rules** ([#18](https://github.com/pointmatic/project-guide/issues/18)). The single rule read as "do not mention git", so the LLM withheld a next step it had already worked out. Now: at a gate, present the work, wait, and stay inside the current step; and recommend the next action without executing it or asking the developer to run it so work can continue. The "Present" step of the code modes, the refactor modes, and the deploy step of `document_landing` are reworded to match.
|
|
25
|
+
- **Wrapper messages no longer say "`[Done]` story" where that would be wrong.** For example, `Multiple uncommitted [Done] stories` is now `Multiple uncommitted stories`. Exit codes, prompt defaults, and `--no-input` behavior are unchanged.
|
|
26
|
+
- **`archive_stories` lists a `[Code-Complete]` story as unfinished** in its pre-archive warning, with what remains.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
- **The `concept.md` template had no place for target users or value criteria** ([#15](https://github.com/pointmatic/project-guide/issues/15)). `plan_concept` asked for five problem-space fields and the template rendered three. It now has `### Target Users` and `### Value Criteria`. Its opening sentence also changes from "project to `{{one_liner}}`" to "project that `{{one_liner}}`", so the phrase the mode asks for fits.
|
|
30
|
+
- **The Codecov setup guide was out of date and wrong about authentication** ([#19](https://github.com/pointmatic/project-guide/issues/19)). It pinned `codecov-action@v4`; it now pins `v7`. It said a public repository needs no token because Codecov "uses GitHub's OIDC authentication automatically", which conflated two mechanisms. It now describes tokenless upload, upload tokens, and `use_oidc: true` with the `id-token: write` permission, and says when a public repository still needs a token.
|
|
31
|
+
- **`ruff format --preview` could fail on the rendered `go.md`** ([#20](https://github.com/pointmatic/project-guide/issues/20)). `go.md` is untracked but not git-ignored, so it is the one file in the target directory ruff sees, and in preview mode ruff formats the Python code blocks in Markdown. The developer guides now tell consumers to add `extend-exclude = ["docs/project-guide"]`, and this repository does so.
|
|
32
|
+
- **`status` printed the guide path with backslashes on Windows.** The `Guide:` and `Tell your LLM: Read` lines showed `docs\project-guide\go.md`. They now use forward slashes on every platform, like the paths in every other message.
|
|
33
|
+
|
|
34
|
+
### Compatibility
|
|
35
|
+
- A `stories.md` that contains `[Code-Complete]` is not understood by `project-guide` older than `v2.22.0`: the heading does not match and the story is invisible. No existing file contains the state.
|
|
36
|
+
- No configuration keys were added and `SCHEMA_VERSION` is unchanged.
|
|
37
|
+
|
|
38
|
+
## [2.21.1] - 2026-08-22
|
|
39
|
+
|
|
40
|
+
**The wrappers stopped re-offering work that had already shipped.** Reported from the field against a squash-merge repository.
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
- **`git-push` / `git-commit` read committed state from `stories.md` at `HEAD`, not from commit subjects alone.** On a repository whose `main` is protected and merged by squash, the wrappers proposed a bundled commit subject covering eight already-merged stories, when exactly one was uncommitted. The squash-merge presumption added in Story Q.u reaches **backwards** — it presumes the stories *preceding* the first parseable commit subject merged, and trusts everything after it. Squash merges land at the tip of history, so the opaque region is the recent tail, which is exactly what the anchor declared trustworthy. No choice of anchor position fixes it: the information is not in the subject stream, because a squash merge rewrote it.
|
|
44
|
+
|
|
45
|
+
The fix reads a signal a squash merge cannot destroy. Merging rewrites the *subjects* of the commits it absorbs, but it carries the *file* those commits edited — including the `stories.md` that marks them `[Done]`. The committed set is now the union of the commit-subject scan and the `[Done]` set in `git show HEAD:./<spec_artifacts_path>/stories.md`. Union rather than replacement: subjects remain the only signal that can name a bundled commit, and the sole input to the duplicate-story-ID warning.
|
|
46
|
+
|
|
47
|
+
- **The `--amend` staging guard had the same blind spot.** It computes its own committed set, so a story that squash-merged after the anchor read as uncommitted and `--amend` refused with "that work would land inside the previous commit" — about work already in `main`. The guard now takes the same union, keeping the invariant that it asks the flow's question.
|
|
48
|
+
|
|
49
|
+
Both readers degrade to contributing nothing — never to an error of their own — when git is absent, the cwd is not a repository, the repo has no commits, or `stories.md` is untracked at `HEAD`. The path is read as `HEAD:./<path>` so git resolves it against the current directory rather than the repository root.
|
|
50
|
+
|
|
51
|
+
**Known limitation:** the signal assumes a story's `[Done]` flip lands in the same commit as its work, which the wrappers enforce by staging the whole tree. A `[Done]` flip committed ahead of the work it describes reads as shipped.
|
|
52
|
+
|
|
53
|
+
## [2.21.0] - 2026-08-13
|
|
54
|
+
|
|
55
|
+
**Branch workflows, reachable gitbetter flags, and honest staleness (Subphase R-3, Stories R.p–R.s).** Three shipped surfaces did the wrong thing for anyone working on branches, and one documented gap had been deferred twice.
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
- **`--keep` / `-k` and `--amend` on `project-guide git-push` and `git-commit`.** Both gitbetter flags were unreachable because the wrappers built `argv` as `[tool, message]` plus an optional branch. `--keep` is a straight pass-through with no project-guide semantics — it is exactly the sustained-feature-branch flag, so the convenience used to evaporate at the moment a workflow got long enough to need it.
|
|
59
|
+
- **`--amend` as a short-circuit path**, not a new branch through the derivation flow: it decides no message, so candidate selection, the bundle offer, and the sequence discipline do not apply. It reuses the previous commit's subject **verbatim** (`git log -1 --pretty=%s`) rather than re-deriving from `stories.md` — re-deriving would rename a commit as a side effect of amending a fix into it, and would silently canonicalize a legacy bundled subject, since the parser is permissive on read while emission is strict. It also has to *bypass* the `Nothing to commit` exit-0 path, since already-committed is `--amend`'s precondition rather than its blocker.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
- **The wrapper's branch gate reads the destination, not the checkout.** `git-push <branch>` / `git-commit <branch>` decided how strictly to check committed stories by asking *which branch am I on* rather than *where is this work going*. Starting a branch from a squash-merged `main` therefore measured the strict discipline against a log that could not contain those stories, and either hard-errored or proposed a commit subject spanning the entire file. A supplied `BRANCH_NAME` now selects the presumption path from any checkout. Naming the branch you are already on is not branch work (the strict discipline holds), no argument on `main` is unchanged, and an undeterminable branch stays strict. Nothing new was invented: Story Q.u's heuristics were already correct and merely unreachable from `main`.
|
|
63
|
+
- **Completion staleness is now "would reinstalling change anything?"** Story R.f defined stale as the dead-path test alone and flagged the gap in the same breath; R.h inherited and re-flagged it. A block generated by an older project-guide whose script template had since changed kept reporting `installed` while completing against a template nobody ships. `status` and `heal` now regenerate the script from parameters recovered out of the installed artifacts and compare content — both zsh artifacts included, since the autoload file carries the callback and the rc block carries the bootstrap, and either can drift alone. The version stamp is **diagnostic, never decisional**: comparing it to `__version__` would fire on every release, including the large majority that never touch the template.
|
|
64
|
+
- **`heal`'s stale-completion warning names the actual reason.** Its headline hard-coded "<path> is no longer executable" — safe while that was the only way to be stale, and false the moment content drift joined it. `ShellStatus` now carries a self-contained `reason` that both causes set.
|
|
65
|
+
- **`docs/specs/project-essentials.md` trimmed 224 → 108 lines (−58%).** It had accreted full behavioral and implementation contracts belonging in `features.md` (*what*) and `tech-spec.md` (*how*), and it is injected verbatim into every rendered `go.md` in every mode — so **`go.md` drops from 64,112 to 42,165 bytes, ~22 KB off every render**. The `git-push` section alone was 10,546 bytes describing, in algorithmic detail, a command the LLM is explicitly forbidden to initiate; what remains is the rule that it must not, plus pointers.
|
|
66
|
+
- **Spec accuracy.** FR-15 gains the destination-aware gate and both flags; FR-7 gains the widened staleness definition; `tech-spec.md` § External CLI Dependencies receives the relocated wrapper internals and the **wrapper-value principle** — the wrapper earns its place by *integration* (reading `stories.md` and `git log`), and a feature that reads neither belongs in the bare gitbetter command. Also corrected: `_get_committed_story_ids()` was documented with a single regex Story P.u retired, `_run_gitbetter_wrapper`'s signature omitted the new flags, the entry-point template was named `templates/go.md` instead of `llm_entry_point.md`, and the test inventory read 629 across 12 files (now 901 across 15). `README.md`'s `git-push` error list still described the pre-v2.9.0 model, where "already committed" and "multiple uncommitted stories" were hard errors rather than an exit-0 and a bundle offer.
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
- **`--amend` would have absorbed the next story's work.** gitbetter stages the whole tree (`git add -A`) before amending, so finishing a story in the working tree and amending while the last commit is the *previous* story lands the new diff inside the old commit under the old message — straight through the one-unit-of-work-one-commit invariant the wrapper exists to serve. It now refuses, naming the offender. The guard reads the same presumed committed-set as the flow, or it would refuse on every squash-merged feature branch. It is deliberately scoped to `[Done]`-but-uncommitted stories: in-progress work on a `[Planned]` story stays invisible, because amending commits your tree and the wrapper does not become a general-purpose working-tree guard.
|
|
70
|
+
- **`--amend` is interactive-only.** It force-pushes with `--force-with-lease`, making history rewriting reachable through project-guide for the first time. Under `--no-input` / `CI=1` / non-TTY stdin it refuses with exit 1, on the same reasoning that keeps the out-of-sequence path from auto-yesing.
|
|
71
|
+
- **User-facing paths render with forward slashes on every platform.** `init`'s pyve detection-miss warning interpolated a `Path` object, so on Windows it printed `docs\project-guide\go.md` while the "intentionally untracked" note two lines later — about the same file, from the same command — printed the other form. Both now go through a `_display_path()` helper that states the convention once. Caught by the Windows CI runner; the regression test uses `PureWindowsPath` so it fails on macOS and Linux too.
|
|
72
|
+
- **Completion inspection no longer prints on every command.** Regenerating a bash script makes Click call `_check_version`, which shells out to `bash --norc -c` and prints *"Shell completion is not supported for Bash versions older than 4.4."* Since `inspect_shell` runs from the pre-invoke hook, that would have become a line before **every** invocation for every user whose `PATH` finds macOS system bash 3.2 — the story would have created the noise it exists to remove. The message is suppressed during inspection (right at install time, wrong here) and the generation is cached per process. Caught by the stripped-`PATH` test run added one story earlier.
|
|
73
|
+
|
|
74
|
+
### Notes
|
|
75
|
+
- Where both staleness causes hold at once, the dead path is reported — it is the more actionable diagnosis. Three cases deliberately warn *less*: a bare-name install (no baked `--bin` to regenerate from), a block stamped newer than the running project-guide (two installs coexist under pyve hosting; reinstalling would downgrade it), and any inspection error.
|
|
76
|
+
- Phase R carries four tags — `v2.18.1`, `v2.19.0`, `v2.20.0`, `v2.21.0` — the documented multi-release exception rather than a single bundle, because the subphases are independently shippable fixes to unrelated surfaces.
|
|
77
|
+
|
|
78
|
+
## [2.20.0] - 2026-08-12
|
|
79
|
+
|
|
80
|
+
**A failed pyve probe no longer strips the Pyve guidance from `go.md` (Subphase R-2, Stories R.j–R.n).** `init` probed for pyve by bare name and cached the result; every render site then derived `pyve_installed` from `config.pyve_version is not None`, so a **single detection miss permanently removed ~80 lines** from every rendered guide and nothing ever re-detected. Every command still exited 0 and nothing warned, which made the loss visible only by diffing against a correct render.
|
|
81
|
+
|
|
82
|
+
The omitted content is the guardrail itself — use `pyve test` not `pyve run pytest`, the two-environment isolation rule, don't `pip install -e ".[dev]"` into the main venv. A project in this state hands its LLM a guide that never mentions pyve, so the LLM does the plausible wrong thing, and the guidance that existed to prevent exactly that is what went missing.
|
|
83
|
+
|
|
84
|
+
Detection failed in practice for two ordinary reasons: a `pyve self install` layout puts pyve at `~/.local/bin/pyve`, and a development checkout driven by `./pyve.sh` never puts `pyve` on `PATH` at all — even though pyve is manifestly present and *is the thing running the init*.
|
|
85
|
+
|
|
86
|
+
### Added
|
|
87
|
+
- **`pyve_installed` config field** — the render gate, persisted in its own right rather than derived from `pyve_version`. The two answer different questions ("should the guidance render?" vs. "which pyve was seen?"), and conflating them is what turned a detection miss into content loss. Additive with a behavior-preserving default (an absent key reads as `pyve_version is not None`), so **no `SCHEMA_VERSION` bump** and no existing project changes behavior at the moment of upgrade.
|
|
88
|
+
- **`Config.record_pyve_detection(detected_version) -> bool`** — the single choke point every automatic detection flows through, enforcing **sticky-true**: detection may set the flag **on**, never **off**. A failed probe leaves both fields untouched, because probes fail for reasons unrelated to whether pyve is present (an un-rehashed `PATH`, a slow first run, a sandbox). Once a project has seen pyve even once, no later miss can strip the guidance again. Turning it off stays a hand-edit — which holds only while detection keeps missing.
|
|
89
|
+
- **`--pyve-version` flag and `PYVE_VERSION` env var on `init`** — a host tool that knows pyve's version with certainty supplies it and the probe never runs. Resolution mirrors `--project-name` (flag → env → detection), with the detection link evaluated lazily so a supplied value costs zero subprocesses. `init`-only by design: later changes are handled by re-detection, not by asking the host to re-assert the fact on every invocation. Works precisely where the probe cannot — verified with pyve genuinely absent from `PATH`, which is the pyve-hosting case.
|
|
90
|
+
- **Detection-miss warning at `init`** — stderr, surviving `--quiet` and `--no-input`, naming the file that lost the content and the remedy. A silent `null` was indistinguishable from a deliberate non-pyve project. Suppressed when the version was host-supplied, since no detection was attempted.
|
|
91
|
+
|
|
92
|
+
### Changed
|
|
93
|
+
- **`update` and an explicit `mode <name>` switch now re-detect pyve** and write back a changed result, converting a permanent detection failure into a transient one. A changed result also forces the `go.md` re-render — without that the flag would flip in the config while the file on disk kept the guidance stripped, since a project whose `init` missed pyve is otherwise perfectly in sync. The bare `mode` listing and `--dry-run` do not probe. A failed refresh is silent.
|
|
94
|
+
- **`pyve_version` is stored bare** (`3.2.2`, not `pyve version 3.2.2`), normalized at both write paths — the probe and the host-supplied legs. The reader still accepts the legacy raw-stdout form indefinitely, because `status` is not a refresh site and a config that never runs `update` or `mode` keeps the old shape forever. Existing projects repair themselves at the first refresh. **Normalizing is not validating:** nothing is rejected, and a value with no recognizable version token is stored exactly as given.
|
|
95
|
+
- **`_pyve_version_token()` retired** in favor of the shared `_normalize_pyve_version()`, which now serves both roles — normalizing on write, tolerating the legacy form on read.
|
|
96
|
+
- **Invariant (b) amended** in `project-essentials.md` to record the two sanctioned refresh points, alongside FR-13, `tech-spec.md`'s `Config` listing (which also omitted `project_name`), `README.md`, and the user-guide configuration page. The user guide's "re-run `init --force` to refresh the detection" advice is replaced: `update` or a mode switch now does it non-destructively.
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
- **The auto-hook stays subprocess-free.** `_apply_heal` runs from the pre-invoke hook ahead of every command including `--help` and `--version`, so a probe there would be a subprocess before literally every invocation — the failure class of Story Q.t (v2.15.1), which hung in the field. The exclusion is now pinned by a regression test guarding both the helper and `subprocess.run` directly, so a future re-implementation that shells out cannot slip past it.
|
|
100
|
+
- **Four render tests were machine-dependent and CI was red because of it** (Story R.m.1). They expressed "pyve is installed" by setting `pyve_version` alone and borrowed the render gate from `init`'s live detection, so they passed on a developer machine with pyve and failed on every machine without one — and `ci.yml` installs no pyve. Red since the R.j decoupling. The suite now passes with pyve present *and* under a stripped `PATH`, and `project-essentials.md`'s CI-gate-parity checklist gained the stripped-`PATH` run so the class does not recur.
|
|
101
|
+
|
|
102
|
+
### Notes
|
|
103
|
+
- A re-render that newly *adds* the Pyve section is handled cleanly by the existing hash-comparison machinery — confirmed end-to-end with **zero** `.bak` files across an adding re-render and repeated renders.
|
|
104
|
+
- No cross-repo coordination required: `pyve_version` is not in the `.project-guide.yml` field subset pinned by pyve (`version`, `installed_version`, `target_dir`, `current_mode`). The pyve-side change that passes `--pyve-version` from `run_project_guide_init_in_env` lands in the pyve repo, gated on this release.
|
|
105
|
+
- Affected projects gain ~80 lines in `go.md` on the next render. That is the bug fix; `go.md` is generated output, not a public API.
|
|
106
|
+
|
|
10
107
|
## [2.19.0] - 2026-08-12
|
|
11
108
|
|
|
12
109
|
**project-guide owns its shell completion (Subphase R-1, Stories R.b–R.h.1).** Completion was self-service — the developer hand-copied an `eval "$(_PROJECT_GUIDE_COMPLETE=…)"` snippet — and it broke silently in two ways reported from the field ([pyve#70](https://github.com/pointmatic/pyve/issues/70)): the zsh snippet needs a `compinit` that may never have run, and every generated callback resolves the bare command name through `PATH` at completion time, which fails when project-guide is hosted behind a shim that is off `PATH`. Both are closed, and completion is now installed, removed, and inspected by project-guide itself.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: project-guide
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.22.0
|
|
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/
|
|
@@ -341,6 +341,8 @@ project-guide status [OPTIONS]
|
|
|
341
341
|
- Status of the rendered guide
|
|
342
342
|
- File counts (current, need updating, missing, overridden)
|
|
343
343
|
- Stories section: total/done/in-progress/planned counts + next story (when `stories.md` exists)
|
|
344
|
+
- A code-complete count when any story is `[Code-Complete]`, and a line naming the `[Code-Complete]` and `[Done]` stories not yet committed (computed from `git log`; omitted outside a git repository)
|
|
345
|
+
- An offer to mark a story `[Done]` when it is `[In Progress]` or `[Code-Complete]` and every task box is checked (a one-line notice instead when there is no terminal)
|
|
344
346
|
- A `Managed by pyve vX.Y.Z` footer when pyve was present at `init` time (install pyve before running `project-guide init` for it to appear)
|
|
345
347
|
- Per-file detail and per-phase story breakdown (verbose mode)
|
|
346
348
|
|
|
@@ -410,11 +412,15 @@ project-guide heal --no-input
|
|
|
410
412
|
Wrap [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push` with a commit message auto-derived from the most-recently-completed-and-not-yet-committed story in `docs/specs/stories.md`. Optional: requires gitbetter on PATH.
|
|
411
413
|
|
|
412
414
|
```bash
|
|
413
|
-
project-guide git-push [BRANCH_NAME]
|
|
415
|
+
project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
414
416
|
```
|
|
415
417
|
|
|
416
418
|
**Arguments:**
|
|
417
|
-
- `BRANCH_NAME` (optional) - Passed through to gitbetter for branch-aware push flows (e.g. switching to a feature branch and offering cleanup after merge)
|
|
419
|
+
- `BRANCH_NAME` (optional) - Passed through to gitbetter for branch-aware push flows (e.g. switching to a feature branch and offering cleanup after merge). Naming a branch **other than the one you are on** also tells the wrapper this is branch work, so it stops requiring that every earlier `[Code-Complete]` or `[Done]` story appear in the current branch's log — the state you are in when starting a branch from a squash-merged `main`.
|
|
420
|
+
|
|
421
|
+
**Options:**
|
|
422
|
+
- `--keep` / `-k` - Passed through to gitbetter: skip its post-push branch-cleanup prompt. Useful on a long-lived feature branch.
|
|
423
|
+
- `--amend` - Commit the current tree onto the **last commit**, reusing that commit's message verbatim. Interactive-only (it force-pushes with `--force-with-lease`). Refused when a tag contains the last commit, because tags mark releases and amending would rewrite a released commit; leave the change uncommitted and it rides with the next story's commit. Also refused while a `[Code-Complete]` or `[Done]` story is still uncommitted, because amending stages your whole tree and that story's work would silently land inside the previous commit.
|
|
418
424
|
|
|
419
425
|
**Heading-to-message transformation:**
|
|
420
426
|
```
|
|
@@ -424,10 +430,16 @@ project-guide git-push [BRANCH_NAME]
|
|
|
424
430
|
```
|
|
425
431
|
Backticks and double quotes become single quotes; single quotes pass through; the colon after the story ID is preserved (it's the anchor for the already-committed check).
|
|
426
432
|
|
|
433
|
+
**Which stories are committed.** A story is a commit candidate when it is `[Code-Complete]` (the code is finished; tasks after the commit, such as tagging and publishing, remain) or `[Done]` (every task is complete). The wrapper treats the two alike. Before selecting, it offers to mark `[Done]` any story that is `[In Progress]` or `[Code-Complete]` with every task box checked: at a terminal it asks `[Y/n]` and rewrites only the status suffix; under `--no-input`, CI, or a non-TTY it prints a one-line notice and changes nothing.
|
|
434
|
+
|
|
435
|
+
**When several stories are uncommitted,** the wrapper proposes a single bundled subject covering them and asks `[Y/n]`. Declining exits 1 so you can commit them one at a time with raw `git-push`.
|
|
436
|
+
|
|
437
|
+
**Everything already committed** exits **0** with `Nothing to commit` — the desired state, not an error.
|
|
438
|
+
|
|
427
439
|
**Hard errors (exit 1):**
|
|
428
|
-
- No `[Done]` story in `stories.md`
|
|
429
|
-
-
|
|
430
|
-
-
|
|
440
|
+
- No `[Code-Complete]` or `[Done]` story in `stories.md` (a `stories.md` authoring problem)
|
|
441
|
+
- Stories are out of sequence — one is uncommitted while a later one is already committed. With exactly one uncommitted story the wrapper offers to commit it anyway `[y/N]`; with several, attribution is genuinely ambiguous, so it stops and shows the offenders
|
|
442
|
+
- The same story ID appears in two or more commit subjects, and you decline to continue
|
|
431
443
|
- `git-push` not on PATH — install gitbetter: `brew install pointmatic/tap/gitbetter`
|
|
432
444
|
|
|
433
445
|
**Examples:**
|
|
@@ -437,6 +449,12 @@ project-guide git-push
|
|
|
437
449
|
|
|
438
450
|
# Feature-branch push (gitbetter switches to the branch first, offers cleanup after merge)
|
|
439
451
|
project-guide git-push feature/heal-command
|
|
452
|
+
|
|
453
|
+
# Long-lived branch: keep it around after the push
|
|
454
|
+
project-guide git-push feature/heal-command --keep
|
|
455
|
+
|
|
456
|
+
# Fold a fix into the commit you just made, keeping its message
|
|
457
|
+
project-guide git-push --amend
|
|
440
458
|
```
|
|
441
459
|
|
|
442
460
|
**Optional dependency.** gitbetter is not required for any other `project-guide` command. Install it only if you want this wrapper:
|
|
@@ -446,7 +464,7 @@ brew install pointmatic/tap/gitbetter
|
|
|
446
464
|
|
|
447
465
|
### `git-commit`
|
|
448
466
|
|
|
449
|
-
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).
|
|
467
|
+
Identical interface and behavior to `git-push` — including `BRANCH_NAME`, `--keep`, and `--amend` — 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).
|
|
450
468
|
|
|
451
469
|
```bash
|
|
452
470
|
project-guide git-commit [BRANCH_NAME]
|
|
@@ -542,12 +560,13 @@ The `.project-guide.yml` file stores project configuration:
|
|
|
542
560
|
|
|
543
561
|
```yaml
|
|
544
562
|
version: "2.0"
|
|
545
|
-
installed_version: "2.
|
|
563
|
+
installed_version: "2.20.0"
|
|
546
564
|
target_dir: "docs/project-guide"
|
|
547
565
|
metadata_file: ".metadata.yml"
|
|
548
566
|
current_mode: "code_direct"
|
|
549
567
|
test_first: false
|
|
550
|
-
pyve_version: "
|
|
568
|
+
pyve_version: "3.2.2" # bare version; null if pyve was never detected
|
|
569
|
+
pyve_installed: true # renders the Pyve guidance into go.md
|
|
551
570
|
|
|
552
571
|
overrides:
|
|
553
572
|
templates/modes/debug-mode.md:
|
|
@@ -567,7 +586,8 @@ metadata_overrides: # optional — per-project mode field patches
|
|
|
567
586
|
- `metadata_file` - Hidden metadata file inside target dir (default: `.metadata.yml`)
|
|
568
587
|
- `current_mode` - Active development mode
|
|
569
588
|
- `test_first` - Default coding approach (`false` = `code_direct`, `true` = `code_test_first`)
|
|
570
|
-
- `pyve_version` - Detected pyve version
|
|
589
|
+
- `pyve_version` - Detected pyve version, stored bare (`3.2.2`); `null` if pyve was never detected. Supply it directly with `project-guide init --pyve-version 3.2.2` (or the `PYVE_VERSION` env var) when the calling tool already knows it — that skips the `pyve --version` probe entirely
|
|
590
|
+
- `pyve_installed` - Whether the Pyve guidance section renders into `go.md`. Refreshed by `update` and by an explicit `project-guide mode <name>`, so a pyve installed after `init` is picked up without re-initializing. Detection only ever turns it **on**; set it to `false` by hand to opt out
|
|
571
591
|
- `overrides` - Map of file-level update locks with reason and timestamp
|
|
572
592
|
- `metadata_overrides` - Per-project patches for individual mode fields (`next_mode`, `files_exist`, `info`, `description`)
|
|
573
593
|
|
|
@@ -305,6 +305,8 @@ project-guide status [OPTIONS]
|
|
|
305
305
|
- Status of the rendered guide
|
|
306
306
|
- File counts (current, need updating, missing, overridden)
|
|
307
307
|
- Stories section: total/done/in-progress/planned counts + next story (when `stories.md` exists)
|
|
308
|
+
- A code-complete count when any story is `[Code-Complete]`, and a line naming the `[Code-Complete]` and `[Done]` stories not yet committed (computed from `git log`; omitted outside a git repository)
|
|
309
|
+
- An offer to mark a story `[Done]` when it is `[In Progress]` or `[Code-Complete]` and every task box is checked (a one-line notice instead when there is no terminal)
|
|
308
310
|
- A `Managed by pyve vX.Y.Z` footer when pyve was present at `init` time (install pyve before running `project-guide init` for it to appear)
|
|
309
311
|
- Per-file detail and per-phase story breakdown (verbose mode)
|
|
310
312
|
|
|
@@ -374,11 +376,15 @@ project-guide heal --no-input
|
|
|
374
376
|
Wrap [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push` with a commit message auto-derived from the most-recently-completed-and-not-yet-committed story in `docs/specs/stories.md`. Optional: requires gitbetter on PATH.
|
|
375
377
|
|
|
376
378
|
```bash
|
|
377
|
-
project-guide git-push [BRANCH_NAME]
|
|
379
|
+
project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
378
380
|
```
|
|
379
381
|
|
|
380
382
|
**Arguments:**
|
|
381
|
-
- `BRANCH_NAME` (optional) - Passed through to gitbetter for branch-aware push flows (e.g. switching to a feature branch and offering cleanup after merge)
|
|
383
|
+
- `BRANCH_NAME` (optional) - Passed through to gitbetter for branch-aware push flows (e.g. switching to a feature branch and offering cleanup after merge). Naming a branch **other than the one you are on** also tells the wrapper this is branch work, so it stops requiring that every earlier `[Code-Complete]` or `[Done]` story appear in the current branch's log — the state you are in when starting a branch from a squash-merged `main`.
|
|
384
|
+
|
|
385
|
+
**Options:**
|
|
386
|
+
- `--keep` / `-k` - Passed through to gitbetter: skip its post-push branch-cleanup prompt. Useful on a long-lived feature branch.
|
|
387
|
+
- `--amend` - Commit the current tree onto the **last commit**, reusing that commit's message verbatim. Interactive-only (it force-pushes with `--force-with-lease`). Refused when a tag contains the last commit, because tags mark releases and amending would rewrite a released commit; leave the change uncommitted and it rides with the next story's commit. Also refused while a `[Code-Complete]` or `[Done]` story is still uncommitted, because amending stages your whole tree and that story's work would silently land inside the previous commit.
|
|
382
388
|
|
|
383
389
|
**Heading-to-message transformation:**
|
|
384
390
|
```
|
|
@@ -388,10 +394,16 @@ project-guide git-push [BRANCH_NAME]
|
|
|
388
394
|
```
|
|
389
395
|
Backticks and double quotes become single quotes; single quotes pass through; the colon after the story ID is preserved (it's the anchor for the already-committed check).
|
|
390
396
|
|
|
397
|
+
**Which stories are committed.** A story is a commit candidate when it is `[Code-Complete]` (the code is finished; tasks after the commit, such as tagging and publishing, remain) or `[Done]` (every task is complete). The wrapper treats the two alike. Before selecting, it offers to mark `[Done]` any story that is `[In Progress]` or `[Code-Complete]` with every task box checked: at a terminal it asks `[Y/n]` and rewrites only the status suffix; under `--no-input`, CI, or a non-TTY it prints a one-line notice and changes nothing.
|
|
398
|
+
|
|
399
|
+
**When several stories are uncommitted,** the wrapper proposes a single bundled subject covering them and asks `[Y/n]`. Declining exits 1 so you can commit them one at a time with raw `git-push`.
|
|
400
|
+
|
|
401
|
+
**Everything already committed** exits **0** with `Nothing to commit` — the desired state, not an error.
|
|
402
|
+
|
|
391
403
|
**Hard errors (exit 1):**
|
|
392
|
-
- No `[Done]` story in `stories.md`
|
|
393
|
-
-
|
|
394
|
-
-
|
|
404
|
+
- No `[Code-Complete]` or `[Done]` story in `stories.md` (a `stories.md` authoring problem)
|
|
405
|
+
- Stories are out of sequence — one is uncommitted while a later one is already committed. With exactly one uncommitted story the wrapper offers to commit it anyway `[y/N]`; with several, attribution is genuinely ambiguous, so it stops and shows the offenders
|
|
406
|
+
- The same story ID appears in two or more commit subjects, and you decline to continue
|
|
395
407
|
- `git-push` not on PATH — install gitbetter: `brew install pointmatic/tap/gitbetter`
|
|
396
408
|
|
|
397
409
|
**Examples:**
|
|
@@ -401,6 +413,12 @@ project-guide git-push
|
|
|
401
413
|
|
|
402
414
|
# Feature-branch push (gitbetter switches to the branch first, offers cleanup after merge)
|
|
403
415
|
project-guide git-push feature/heal-command
|
|
416
|
+
|
|
417
|
+
# Long-lived branch: keep it around after the push
|
|
418
|
+
project-guide git-push feature/heal-command --keep
|
|
419
|
+
|
|
420
|
+
# Fold a fix into the commit you just made, keeping its message
|
|
421
|
+
project-guide git-push --amend
|
|
404
422
|
```
|
|
405
423
|
|
|
406
424
|
**Optional dependency.** gitbetter is not required for any other `project-guide` command. Install it only if you want this wrapper:
|
|
@@ -410,7 +428,7 @@ brew install pointmatic/tap/gitbetter
|
|
|
410
428
|
|
|
411
429
|
### `git-commit`
|
|
412
430
|
|
|
413
|
-
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).
|
|
431
|
+
Identical interface and behavior to `git-push` — including `BRANCH_NAME`, `--keep`, and `--amend` — 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).
|
|
414
432
|
|
|
415
433
|
```bash
|
|
416
434
|
project-guide git-commit [BRANCH_NAME]
|
|
@@ -506,12 +524,13 @@ The `.project-guide.yml` file stores project configuration:
|
|
|
506
524
|
|
|
507
525
|
```yaml
|
|
508
526
|
version: "2.0"
|
|
509
|
-
installed_version: "2.
|
|
527
|
+
installed_version: "2.20.0"
|
|
510
528
|
target_dir: "docs/project-guide"
|
|
511
529
|
metadata_file: ".metadata.yml"
|
|
512
530
|
current_mode: "code_direct"
|
|
513
531
|
test_first: false
|
|
514
|
-
pyve_version: "
|
|
532
|
+
pyve_version: "3.2.2" # bare version; null if pyve was never detected
|
|
533
|
+
pyve_installed: true # renders the Pyve guidance into go.md
|
|
515
534
|
|
|
516
535
|
overrides:
|
|
517
536
|
templates/modes/debug-mode.md:
|
|
@@ -531,7 +550,8 @@ metadata_overrides: # optional — per-project mode field patches
|
|
|
531
550
|
- `metadata_file` - Hidden metadata file inside target dir (default: `.metadata.yml`)
|
|
532
551
|
- `current_mode` - Active development mode
|
|
533
552
|
- `test_first` - Default coding approach (`false` = `code_direct`, `true` = `code_test_first`)
|
|
534
|
-
- `pyve_version` - Detected pyve version
|
|
553
|
+
- `pyve_version` - Detected pyve version, stored bare (`3.2.2`); `null` if pyve was never detected. Supply it directly with `project-guide init --pyve-version 3.2.2` (or the `PYVE_VERSION` env var) when the calling tool already knows it — that skips the `pyve --version` probe entirely
|
|
554
|
+
- `pyve_installed` - Whether the Pyve guidance section renders into `go.md`. Refreshed by `update` and by an explicit `project-guide mode <name>`, so a pyve installed after `init` is picked up without re-initializing. Detection only ever turns it **on**; set it to `false` by hand to opt out
|
|
535
555
|
- `overrides` - Map of file-level update locks with reason and timestamp
|
|
536
556
|
- `metadata_overrides` - Per-project patches for individual mode fields (`next_mode`, `files_exist`, `info`, `description`)
|
|
537
557
|
|
|
@@ -164,8 +164,8 @@ Shows grouped sections:
|
|
|
164
164
|
- **Mode** - Active mode name, description, and prerequisites status
|
|
165
165
|
- **Guide** - The rendered `go.md` entry point path
|
|
166
166
|
- **Files** - Summary counts (current / need updating / missing / overridden); per-file list in verbose mode
|
|
167
|
-
- **Stories** - Total/done/in-progress/planned counts and next
|
|
168
|
-
- **Pyve footer** - A `Managed by pyve vX.Y.Z` line when pyve
|
|
167
|
+
- **Stories** - Total/done/in-progress/planned counts and the next story to implement (when `stories.md` exists and contains stories); per-phase breakdown in verbose mode. A code-complete count is added when any story is `[Code-Complete]`. A further line says which `[Code-Complete]` and `[Done]` stories are not yet committed, computed from `git log`; it is omitted outside a git repository. When a story is `[In Progress]` or `[Code-Complete]` with every task box checked, `status` offers to mark it `[Done]` (at a terminal) or prints a one-line notice (otherwise)
|
|
168
|
+
- **Pyve footer** - A `Managed by pyve vX.Y.Z` line when pyve has been detected (read from the cached `pyve_version`, which `update` and an explicit `mode <name>` refresh; `status` itself never probes)
|
|
169
169
|
|
|
170
170
|
Each file shows one of:
|
|
171
171
|
|
|
@@ -264,27 +264,35 @@ project-guide heal [OPTIONS]
|
|
|
264
264
|
Commit the most-recently-completed (and not-yet-committed) story with a message auto-derived from its `stories.md` heading, by wrapping [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push`. This is a **developer-lane convenience** — gitbetter must be on `PATH`; it is not required for any other command.
|
|
265
265
|
|
|
266
266
|
```bash
|
|
267
|
-
project-guide git-push [BRANCH_NAME]
|
|
267
|
+
project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
268
268
|
```
|
|
269
269
|
|
|
270
270
|
### Arguments
|
|
271
271
|
|
|
272
|
-
- `BRANCH_NAME` (optional) - passed through to gitbetter for branch-aware push flows
|
|
272
|
+
- `BRANCH_NAME` (optional) - passed through to gitbetter for branch-aware push flows. Naming a branch **other than your current one** also declares this as branch work: the wrapper then stops expecting every earlier `[Code-Complete]` or `[Done]` story to appear in the current branch's log, which is what makes starting a branch from a squash-merged `main` work.
|
|
273
|
+
|
|
274
|
+
### Options
|
|
275
|
+
|
|
276
|
+
- `--keep` / `-k` - passed straight through to gitbetter, skipping its post-push branch-cleanup prompt.
|
|
277
|
+
- `--amend` - commit the current tree onto the **last commit**, reusing that commit's subject verbatim (never re-derived from `stories.md`, so amending a fix never renames the commit). Refused under `--no-input` / CI, since it force-pushes with `--force-with-lease`. Refused when a tag contains the last commit: tags mark releases, and amending would rewrite a released commit. The refusal names the tag; leave the change uncommitted and it rides with the next story's commit. Also refused while a `[Code-Complete]` or `[Done]` story is uncommitted: gitbetter stages the whole tree before amending, so that story's work would land inside the previous commit under the previous commit's message.
|
|
273
278
|
|
|
274
279
|
### What It Does
|
|
275
280
|
|
|
276
|
-
1.
|
|
277
|
-
2.
|
|
278
|
-
3.
|
|
281
|
+
1. Offers to mark **task-complete** stories `[Done]`: a story that is `[In Progress]` or `[Code-Complete]` with every task box checked. At a terminal it asks `[Y/n]` and rewrites only the status suffix; under `--no-input`, CI, or a non-TTY it prints a one-line notice and changes nothing.
|
|
282
|
+
2. Derives the commit subject from the uncommitted `[Code-Complete]` or `[Done]` story heading (e.g. `G.a: v1.2.3 New command`), with backticks and double quotes converted to single quotes. `[Code-Complete]` means the code is finished and only tasks after the commit remain (tag, publish, verify); `[Done]` means every task is complete. The two are treated alike.
|
|
283
|
+
3. Shells out to gitbetter's `git-push`, which stays fully interactive (preview, confirm, branch cleanup).
|
|
284
|
+
4. Propagates gitbetter's exit code unchanged.
|
|
285
|
+
|
|
286
|
+
When several such stories are uncommitted it proposes one bundled subject and asks `[Y/n]`. When everything is already committed it exits **0** with `Nothing to commit` — that is the desired state, not an error.
|
|
279
287
|
|
|
280
|
-
It hard-errors (exit 1) when there is no `[Done]` story, when
|
|
288
|
+
It hard-errors (exit 1) when there is no `[Code-Complete]` or `[Done]` story at all, when such stories are out of sequence and you decline the offered resolution, when the same story ID appears in multiple commit subjects and you decline to continue, or when gitbetter is not installed (`brew install pointmatic/tap/gitbetter`).
|
|
281
289
|
|
|
282
290
|
## git-commit
|
|
283
291
|
|
|
284
292
|
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).
|
|
285
293
|
|
|
286
294
|
```bash
|
|
287
|
-
project-guide git-commit [BRANCH_NAME]
|
|
295
|
+
project-guide git-commit [BRANCH_NAME] [--keep|-k] [--amend]
|
|
288
296
|
```
|
|
289
297
|
|
|
290
298
|
Everything documented for `git-push` above — message derivation, bundle offer, out-of-sequence handling, exit codes, the gitbetter optional dependency — applies unchanged.
|
|
@@ -10,12 +10,13 @@ The `.project-guide.yml` file is created automatically when you run `project-gui
|
|
|
10
10
|
|
|
11
11
|
```yaml
|
|
12
12
|
version: "2.0"
|
|
13
|
-
installed_version: "2.
|
|
13
|
+
installed_version: "2.20.0"
|
|
14
14
|
target_dir: "docs/project-guide"
|
|
15
15
|
metadata_file: ".metadata.yml"
|
|
16
16
|
current_mode: "code_direct"
|
|
17
17
|
test_first: false
|
|
18
|
-
pyve_version: "2.
|
|
18
|
+
pyve_version: "3.2.2" # bare version; null if pyve was never detected
|
|
19
|
+
pyve_installed: true # renders the Pyve guidance into go.md
|
|
19
20
|
overrides: {}
|
|
20
21
|
```
|
|
21
22
|
|
|
@@ -53,7 +54,23 @@ The default coding approach. `false` (the default) starts coding in `code_direct
|
|
|
53
54
|
|
|
54
55
|
### `pyve_version`
|
|
55
56
|
|
|
56
|
-
The version of [pyve](https://pointmatic.github.io/pyve/)
|
|
57
|
+
The version of [pyve](https://pointmatic.github.io/pyve/) that project-guide has seen, stored bare (`3.2.2`), or `null` if pyve was never detected. project-guide adapts to pyve-managed hosting from this cached value — the rendered `go.md` onboarding, the `project-guide status` footer, and the `project-guide heal` local-install check all read it rather than re-running `pyve --version` on every command.
|
|
58
|
+
|
|
59
|
+
At `init` the value is resolved from the first available of: the `--pyve-version` flag → the `PYVE_VERSION` environment variable → a `pyve --version` probe. A tool that installs project-guide on your behalf and already knows pyve's version can pass it directly, which skips the probe:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
project-guide init --pyve-version 3.2.2
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If detection misses, `init` says so on stderr rather than failing — pyve simply may not have been on `PATH` at that moment.
|
|
66
|
+
|
|
67
|
+
### `pyve_installed`
|
|
68
|
+
|
|
69
|
+
Whether the Pyve guidance section is rendered into `go.md`. It is a field in its own right, not a reading of `pyve_version`: the guidance is the part of the guide that tells your LLM to use `pyve test` rather than `pyve run pytest`, and one unlucky probe should not be able to remove it permanently.
|
|
70
|
+
|
|
71
|
+
**If you install pyve after running `init`,** run `project-guide update` or switch modes (`project-guide mode <name>`) — both re-detect and restore the guidance. You do not need `init --force`.
|
|
72
|
+
|
|
73
|
+
Detection only ever turns this **on**. A later failed probe leaves it alone, so a rehashing `PATH` or a slow first run cannot strip the guidance back out. To opt out of the section deliberately, set it to `false` by hand — though note that a subsequent successful detection turns it back on, so the opt-out holds only while pyve is genuinely unavailable.
|
|
57
74
|
|
|
58
75
|
### `overrides`
|
|
59
76
|
|
|
@@ -164,7 +164,7 @@ project-guide mode plan_production_phase
|
|
|
164
164
|
|
|
165
165
|
Archive the completed `docs/specs/stories.md` so the next phase can start with a clean slate. The current file is moved to `docs/specs/.archive/stories-vX.Y.Z.md` (version derived from the latest story) and a fresh empty `stories.md` is re-rendered from the artifact template, preserving the `## Future` section verbatim.
|
|
166
166
|
|
|
167
|
-
The mode is conversational (warns about non-`[Done]` stories, shows the planned archive path
|
|
167
|
+
The mode is conversational (warns about non-`[Done]` stories, including `[Code-Complete]` ones whose follow-up tasks remain; shows the planned archive path; awaits approval) but the actual mutation runs through `project-guide archive-stories`, which wraps a deterministic transactional action with rollback on failure.
|
|
168
168
|
|
|
169
169
|
Run this when all stories in the current phase are `[Done]` and you want each completed phase as a self-contained file in `.archive/` for cleaner planning.
|
|
170
170
|
|
|
@@ -69,7 +69,7 @@ Mode switching is the core of the workflow. Common transitions:
|
|
|
69
69
|
|-----------|-----------|
|
|
70
70
|
| Finished planning, ready to build | `code_direct` or `code_test_first` |
|
|
71
71
|
| Bug discovered during build | `debug` |
|
|
72
|
-
| All stories `[Done]`, want a clean slate before next phase | `archive_stories` |
|
|
72
|
+
| All stories `[Done]` (none left `[Code-Complete]`, `[In Progress]`, or `[Planned]`), want a clean slate before next phase | `archive_stories` |
|
|
73
73
|
| New feature phase needed | `plan_phase` |
|
|
74
74
|
| Existing planning docs need updates | `refactor_plan` |
|
|
75
75
|
| Existing documentation needs updates | `refactor_document` |
|