project-guide 2.21.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.21.0 → project_guide-2.22.0}/.github/workflows/ci.yml +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/.github/workflows/deploy-docs.yml +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/.github/workflows/publish.yml +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/.github/workflows/test.yml +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/.project-guide.yml +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/CHANGELOG.md +43 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/PKG-INFO +9 -5
- {project_guide-2.21.0 → project_guide-2.22.0}/README.md +8 -4
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/developer-guide/testing.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/commands.md +9 -8
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/modes.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/workflow.md +1 -1
- project_guide-2.21.0/docs/specs/stories.md → project_guide-2.22.0/docs/specs/.archive/stories-v2.21.1.md +38 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/features.md +72 -15
- 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.21.0 → project_guide-2.22.0}/docs/specs/project-essentials.md +14 -4
- 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.21.0 → project_guide-2.22.0}/docs/specs/tech-spec.md +48 -11
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/cli.py +417 -94
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/stories.py +172 -10
- {project_guide-2.21.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.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/production-github-guide.md +9 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/project-guide.md +3 -3
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/concept.md +7 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/stories.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-common.md +2 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-cycle.md +27 -3
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_phase-letters.md +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/archive-stories-mode.md +2 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/code-direct-mode.md +4 -4
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/code-test-first-mode.md +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/default-mode.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/document-landing-mode.md +7 -12
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-production-phase-mode.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-stories-mode.md +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/refactor-document-mode.md +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/refactor-plan-mode.md +2 -2
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/version.py +1 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/pyproject.toml +7 -1
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_archive_stories_mode.py +17 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_cli.py +1911 -157
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_render.py +444 -12
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_stories.py +281 -14
- project_guide-2.21.0/project_guide/templates/project-guide/developer/codecov-setup-guide.md +0 -181
- {project_guide-2.21.0 → project_guide-2.22.0}/.github/FUNDING.yml +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/.github/dependabot.yml +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/.gitignore +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/.tool-versions +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/CONTRIBUTING.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/LICENSE +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/SECURITY.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/.gitignore +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/about/changelog.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/about/license.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/developer-guide/contributing.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/developer-guide/development.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/getting-started.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/images/project-guide-banner-landing.png +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/images/project-guide-header-readme.png +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/index.html +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/configuration.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/install-options.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/site/user-guide/overrides.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-j-modes-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-k-release-lifecycle-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-l-no-input-init-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-m-project-essentials-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-n-mode-naming-cli-memory-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-o-pyve-quiet-embedding-subplan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-o-quiet-non-interactive-embedding-feature.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-p-auto-heal-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-dx-subphases-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-plan-envs-mode-env-dependences-artifact-roughdraft.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-plan-envs-mode-roughdraft.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-pyve-toolchain-hosting.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-2-plan-envs-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-3-pyve-hosting-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-4-local-install-warning-readiness-gate.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-4-readiness-gate-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-subphase-strategy-for-large-phases.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/phase-q-wizard-env-contract.md +0 -0
- {project_guide-2.21.0/docs/specs → project_guide-2.22.0/docs/specs/.archive}/phase-r-subphase-1-shell-completion-plan.md +0 -0
- {project_guide-2.21.0/docs/specs → project_guide-2.22.0/docs/specs/.archive}/phase-r-subphase-2-pyve-detection-plan.md +0 -0
- {project_guide-2.21.0/docs/specs → project_guide-2.22.0/docs/specs/.archive}/phase-r-subphase-3-branch-workflows-plan.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/project-guide-no-input-spec.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v1.3.1.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.0.20.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.10.2.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.18.0.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.3.9.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.4.19.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/stories-v2.5.15.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/.archive/ux-problems-v2.0.10.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/brand-descriptions.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/concept.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve/README.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve/concept.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve/features.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve/sync.sh +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve/tech-spec.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/pyve-detection-render-gate.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/docs/specs/shell-completion-ownership.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/mkdocs.yml +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project-guide-old-template.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/__init__.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/__main__.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/actions.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/completion.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/config.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/exceptions.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/metadata.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/render.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/runtime.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/sync.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/.project-guide.yml.template +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/.metadata.yml +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/README.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/brand-descriptions-guide.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/debug-guide.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/landing-page-guide.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/developer/python-editable-install.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/brand-descriptions.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/env-dependencies.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/features.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/project-essentials.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/pyve-essentials.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/artifacts/tech-spec.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/llm_entry_point.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/_header-sequence.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/debug-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/document-brand-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-concept-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-envs-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-features-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-phase-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/plan-tech-spec-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/project_guide/templates/project-guide/templates/modes/scaffold-project-mode.md +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/pyve.toml +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/requirements-dev.txt +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/__init__.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/conftest.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_actions.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_completion.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_config.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_cross_repo_contract.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_integration.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_metadata.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_purge.py +0 -0
- {project_guide-2.21.0 → project_guide-2.22.0}/tests/test_runtime.py +0 -0
- {project_guide-2.21.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,9 +1,9 @@
|
|
|
1
1
|
version: '2.0'
|
|
2
|
-
installed_version: 2.21.
|
|
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: 3.
|
|
7
|
+
pyve_version: 3.3.0
|
|
8
8
|
pyve_installed: true
|
|
9
9
|
project_name: project-guide
|
|
@@ -7,6 +7,49 @@ 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
|
+
|
|
10
53
|
## [2.21.0] - 2026-08-13
|
|
11
54
|
|
|
12
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.
|
|
@@ -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
|
|
|
@@ -414,11 +416,11 @@ 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). 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 `[Done]` story appear in the current branch's log — the state you are in when starting a branch from a squash-merged `main`.
|
|
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`.
|
|
418
420
|
|
|
419
421
|
**Options:**
|
|
420
422
|
- `--keep` / `-k` - Passed through to gitbetter: skip its post-push branch-cleanup prompt. Useful on a long-lived feature branch.
|
|
421
|
-
- `--amend` - Commit the current tree onto the **last commit**, reusing that commit's message verbatim. Interactive-only (it force-pushes with `--force-with-lease`), and refused while a `[Done]` story is still uncommitted, because amending stages your whole tree and that story's work would silently land inside the previous commit.
|
|
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.
|
|
422
424
|
|
|
423
425
|
**Heading-to-message transformation:**
|
|
424
426
|
```
|
|
@@ -428,13 +430,15 @@ project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
|
428
430
|
```
|
|
429
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).
|
|
430
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
|
+
|
|
431
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`.
|
|
432
436
|
|
|
433
437
|
**Everything already committed** exits **0** with `Nothing to commit` — the desired state, not an error.
|
|
434
438
|
|
|
435
439
|
**Hard errors (exit 1):**
|
|
436
|
-
- No `[Done]` story in `stories.md` (a `stories.md` authoring problem)
|
|
437
|
-
-
|
|
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
|
|
438
442
|
- The same story ID appears in two or more commit subjects, and you decline to continue
|
|
439
443
|
- `git-push` not on PATH — install gitbetter: `brew install pointmatic/tap/gitbetter`
|
|
440
444
|
|
|
@@ -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
|
|
|
@@ -378,11 +380,11 @@ 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). 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 `[Done]` story appear in the current branch's log — the state you are in when starting a branch from a squash-merged `main`.
|
|
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`.
|
|
382
384
|
|
|
383
385
|
**Options:**
|
|
384
386
|
- `--keep` / `-k` - Passed through to gitbetter: skip its post-push branch-cleanup prompt. Useful on a long-lived feature branch.
|
|
385
|
-
- `--amend` - Commit the current tree onto the **last commit**, reusing that commit's message verbatim. Interactive-only (it force-pushes with `--force-with-lease`), and refused while a `[Done]` story is still uncommitted, because amending stages your whole tree and that story's work would silently land inside the previous commit.
|
|
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.
|
|
386
388
|
|
|
387
389
|
**Heading-to-message transformation:**
|
|
388
390
|
```
|
|
@@ -392,13 +394,15 @@ project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
|
392
394
|
```
|
|
393
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).
|
|
394
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
|
+
|
|
395
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`.
|
|
396
400
|
|
|
397
401
|
**Everything already committed** exits **0** with `Nothing to commit` — the desired state, not an error.
|
|
398
402
|
|
|
399
403
|
**Hard errors (exit 1):**
|
|
400
|
-
- No `[Done]` story in `stories.md` (a `stories.md` authoring problem)
|
|
401
|
-
-
|
|
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
|
|
402
406
|
- The same story ID appears in two or more commit subjects, and you decline to continue
|
|
403
407
|
- `git-push` not on PATH — install gitbetter: `brew install pointmatic/tap/gitbetter`
|
|
404
408
|
|
|
@@ -164,7 +164,7 @@ 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
|
|
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
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:
|
|
@@ -269,22 +269,23 @@ project-guide git-push [BRANCH_NAME] [--keep|-k] [--amend]
|
|
|
269
269
|
|
|
270
270
|
### Arguments
|
|
271
271
|
|
|
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 `[Done]` story to appear in the current branch's log, which is what makes starting a branch from a squash-merged `main` work.
|
|
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
273
|
|
|
274
274
|
### Options
|
|
275
275
|
|
|
276
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`. Also refused while a `[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.
|
|
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.
|
|
278
278
|
|
|
279
279
|
### What It Does
|
|
280
280
|
|
|
281
|
-
1.
|
|
282
|
-
2.
|
|
283
|
-
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.
|
|
284
285
|
|
|
285
|
-
When several
|
|
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.
|
|
286
287
|
|
|
287
|
-
It hard-errors (exit 1) when there is no `[Done]` story at all, 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`).
|
|
288
289
|
|
|
289
290
|
## git-commit
|
|
290
291
|
|
|
@@ -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` |
|
|
@@ -577,10 +577,48 @@ Windows CI failed on `v2.21.0`'s commit. `init`'s detection-miss warning (Story
|
|
|
577
577
|
|
|
578
578
|
**The gap this exposes in the verification checklist.** The four local gates — tests, ruff, mypy, the stripped-`PATH` run — all passed on the commit Windows rejected, because every one of them runs on POSIX. The stripped-`PATH` gate added in R.m.1 closed the *environment* dimension (pyve present vs. absent); this is the *platform* dimension, and no local gate covers it. The mitigation is not another local run but a habit: assert the forward-slash form, and reproduce Windows rendering with `PureWindowsPath` where a message names a path.
|
|
579
579
|
|
|
580
|
+
### Story R.v: `v2.21.1` Read committed state from `stories.md` at `HEAD` [Done]
|
|
581
|
+
|
|
582
|
+
Reported from the field (pyve, 2026-08-22). On a squash-merged `main`, `project-guide git-push fix/P.ap-pyve-in-ci` proposed a ~500-character bundled subject covering **eight** stories — `P.ai` through `P.ap` — when exactly one, `P.ap`, was uncommitted. `P.ai`–`P.ao` had shipped through a squashed PR.
|
|
583
|
+
|
|
584
|
+
**The anchor reaches the wrong direction.** Story Q.u's presumption announces the *first* `[Done]` story whose ID parses out of the log and presumes everything **before** it merged (`_presumed_squash_merged_prefix` takes `committed_in_branch[0]` and presumes `commit_units[:anchor_idx]`). In the report the anchor was `P.af.3`, so the presumption covered `P.v`–`P.af.2` and the eight stories *after* the anchor fell into what FR-15 called the "genuinely uncommitted tail." Squash merges land at the **tip** of history, so the opaque region is always the recent tail — exactly what the anchor declares trustworthy. A *trailing* anchor fails identically: the squashed stories still follow the last parseable subject. The signal is not in the subject stream, because a squash merge is the thing that removed it.
|
|
585
|
+
|
|
586
|
+
**A squash merge destroys subjects; it preserves content.** Merging rewrites the subjects of the commits it absorbs, but it carries the `stories.md` those commits edited — the one that marks them `[Done]`. `HEAD`'s copy of that file therefore answers "did this ship?" with no subject surviving. This is a local, complete answer: no forge API, no dependence on GitHub's squash-body setting, immune to rebase and PR-title rewriting.
|
|
587
|
+
|
|
588
|
+
- [x] `parse_done_story_ids(text)` in `stories.py` — the content-addressed counterpart to `_read_done_stories`, which reads a path; the R.v revision exists only inside git
|
|
589
|
+
- [x] `_get_head_done_story_ids()` (`cli.py`) — `git show HEAD:./<spec_artifacts_path>/stories.md`. The leading `./` makes git resolve against the cwd rather than the repo root, so the wrapper still works from a subdirectory
|
|
590
|
+
- [x] Union it into `committed` in `_run_gitbetter_wrapper`, immediately after the duplicate check so every downstream consumer reads the result. **Union, never replace** — subjects remain the only signal that can name a bundled commit, and the sole input to the duplicate-ID warning
|
|
591
|
+
- [x] Same union in `_run_amend`'s staging guard, which computes its own set and had the identical blind spot: a story squash-merged after the anchor read as uncommitted, so `--amend` refused with "that work would land inside the previous commit" about work already in `main`. `spec_artifacts_path` threaded through to reach it
|
|
592
|
+
- [x] Degradation is silence, not error: git absent, non-repository cwd, empty repo, or untracked `stories.md` → empty set → exactly the pre-R.v behavior
|
|
593
|
+
- [x] Five tests. The headline reproduces the report minimized (anchor parses, a later story squash-merged, one genuinely uncommitted); plus the fully-merged steady state (→ `Nothing to commit`, where the no-anchor prompt could only ever guess "the last one"), the degradation path, the `HEAD:./` path form, and the `--amend` guard
|
|
594
|
+
- [x] Verified both directions — with the fix neutralized, 4 of the 5 fail (the degradation test asserts pre-R.v behavior, so it must pass either way)
|
|
595
|
+
- [x] `features.md` FR-15 gains "What counts as committed" and the backwards-only correction; `tech-spec.md` § External CLI Dependencies gains the two-source union, the subject-vs-content table, the `HEAD:./` rationale, and a do-not-move-the-anchor note
|
|
596
|
+
- [x] Verification: 911 passed (906 + 5), ruff clean, mypy clean, stripped-`PATH` run 911 passed
|
|
597
|
+
|
|
598
|
+
**Version — `v2.21.1`, correcting a stale premise in R.u.** R.u recorded that "neither `v2.20.0` nor `v2.21.0` is tagged or on PyPI," which was true when written. Both have since happened: `v2.21.0` is tagged at R.u's own commit and published (checked via `git tag` and `pip index versions`, not assumed). The defect is in shipped code and this is a bug fix, so it takes its own patch line rather than riding an already-released version.
|
|
599
|
+
|
|
600
|
+
**Prevention scan.** The root-cause pattern is "derive committed state from commit subjects." Both call sites of `_get_committed_story_ids()` are fixed. `status` reads `stories.md` only and never consults git, so it has no exposure. The `Future` § "Story tracker" entry is updated below — its premise was correct about the subject-scanning architecture and is now narrower.
|
|
601
|
+
|
|
602
|
+
**What this does not fix.** The signal assumes a story's `[Done]` flip lands in the same commit as its work — enforced in practice by gitbetter staging the whole tree, but a `[Done]` flip committed *ahead* of its work reads as shipped. And the wrapper still cannot attribute *multiple* genuinely-uncommitted stories to separate commits; it proposes a bundle. Also observed in the report and left alone: the bundled subject has no length sanity check, so a legitimate 8-story bundle emits ~500 characters.
|
|
603
|
+
|
|
580
604
|
---
|
|
581
605
|
|
|
582
606
|
## Future
|
|
583
607
|
|
|
608
|
+
### Story tracker [Deferred]
|
|
609
|
+
|
|
610
|
+
There is no reasonable way to track which stories should be added to the commit message when a branch is being committed on a repo with the main branch locked. When there are multiple stories marked `[Done]` but one or more were already committed, squashed, and merged. This really needs a story service that tracks each commit as well as the commit hash. The `stories.md` file should instead be converted into an interface between the developer and story service, scanning it for human or LLM-added updates. This could be a SQLite DB or a hierarchical directory and file system tracked in git (straightforward). It could also be git-ignored and track only a zip copy (clever, complicated). Tracking what is active could keep an `.archive` directly to clearly mark a branch of stories that are either cancelled or completed so the surface to scan for updates remains smaller.
|
|
611
|
+
|
|
612
|
+
**Narrowed by Story R.v (2026-08-22), not resolved.** The premise above was accurate about the subject-scanning architecture: a squash merge rewrites the subjects the wrapper reconstructs from, and no heuristic over `git log --pretty=%s` recovers them. R.v answers the *detection* half without a service, by reading a signal the squash preserves — `stories.md` at `HEAD` already marks the merged stories `[Done]`. That is the cheapest form of the "convert `stories.md` into the interface" idea in this entry: the file already is the record, so nothing new has to be stored.
|
|
613
|
+
|
|
614
|
+
Three things a service would still buy, none of which R.v provides:
|
|
615
|
+
|
|
616
|
+
- **Commit hashes.** Nothing records *which* commit carried a story, so there is no way to link a story to its diff, detect a story whose commit was reverted, or attribute a story across a rebase.
|
|
617
|
+
- **Multi-story attribution.** With several genuinely-uncommitted `[Done]` stories the wrapper still proposes one bundled subject; splitting them into separate commits with correct per-story messages needs per-story state the file does not carry.
|
|
618
|
+
- **A bounded scan surface.** The `.archive` idea stands on its own — `archive_stories` already exists and already shrinks the surface; the gap is that nothing prompts for it on a release boundary.
|
|
619
|
+
|
|
620
|
+
Revisit if hash-level attribution becomes concrete. The detection bug that motivated this entry is fixed.
|
|
621
|
+
|
|
584
622
|
### Shell completion on Windows — support git-bash properly, or refuse [Deferred]
|
|
585
623
|
|
|
586
624
|
Recommended as a follow-on by Story R.i and considered for Subphase R-3, where it was **dropped during out-of-scope negotiation** (2026-08-12). The `completion` command group bakes Windows-convention paths into POSIX shell scripts, which is wrong for git-bash/MSYS — the only plausible Windows consumer. Two candidate outcomes, and the choice is the deliverable:
|
|
@@ -419,7 +419,43 @@ The change request that motivated this work is recorded in [`shell-completion-ow
|
|
|
419
419
|
|
|
420
420
|
### FR-10: Story Detection in Status
|
|
421
421
|
|
|
422
|
-
`project-guide status` parses `<spec_artifacts_path>/stories.md` and adds a **Stories** section showing total/done/in-progress/planned counts and the next
|
|
422
|
+
`project-guide status` parses `<spec_artifacts_path>/stories.md` and adds a **Stories** section showing total/done/in-progress/planned counts and the next story to implement. Section is omitted when the file is absent or contains no story headings (e.g., post-archive). `--verbose` adds a per-phase breakdown.
|
|
423
|
+
|
|
424
|
+
**The `[Code-Complete]` count (Story R.w).** A code-complete count appears between done and in progress, and only when it is not zero, so a project that never uses the state sees an unchanged line. "Next" is the first story that is `[Planned]` or `[In Progress]`. The per-phase figure counts `[Done]` only.
|
|
425
|
+
|
|
426
|
+
**Committed state (Story R.y.1).** `[Code-Complete]` covers both "ready to commit" and "already committed", so the state alone does not say what comes next. `status` computes the answer and stores nothing. For the committable stories in `stories.md` (`[Code-Complete]` or `[Done]`, header stories left out as in FR-15) it prints one line under "Next":
|
|
427
|
+
|
|
428
|
+
| Situation | Line |
|
|
429
|
+
|---|---|
|
|
430
|
+
| Some are not committed | `Not committed: A.b, A.c (2 of 3 committable stories)` |
|
|
431
|
+
| More than five are not committed | the first five IDs, then `and N more` |
|
|
432
|
+
| All are committed | `Committed: all 3 committable stories` |
|
|
433
|
+
| No committable story | no line |
|
|
434
|
+
|
|
435
|
+
`--verbose` names every uncommitted story and adds one line per committable story: `<id>: <title> — committed` or `— not committed`.
|
|
436
|
+
|
|
437
|
+
"Committed" is exactly what the wrappers mean by it (FR-15, *What counts as committed*): the story's ID appears in a commit subject, or the story is already committable in `stories.md` at `HEAD`. Both callers use one function. The squash-merge presumption is **not** applied: it is a heuristic tied to a wrapper invocation, so on a feature branch whose earlier stories shipped under a squashed PR title, `status` can show as not committed a story the wrappers would presume merged.
|
|
438
|
+
|
|
439
|
+
**The offer to mark stories `[Done]` (Story R.y.2).** Task completion is the only trigger for `[Done]`, and noticing it does not depend on the LLM. A story is **task-complete** when all three hold:
|
|
440
|
+
|
|
441
|
+
- it is `[In Progress]` or `[Code-Complete]`;
|
|
442
|
+
- its body has at least one task box (`- [ ]` or `- [x]`, at any indent);
|
|
443
|
+
- no box is unchecked.
|
|
444
|
+
|
|
445
|
+
A `[Planned]` story is never task-complete, whatever its boxes say: work that never started is not finished. A story with no task box is not task-complete either, so a header story is never offered.
|
|
446
|
+
|
|
447
|
+
When `status` finds task-complete stories it acts before printing the Stories section, so the counts and the committed line reflect the outcome:
|
|
448
|
+
|
|
449
|
+
| Context | Behavior |
|
|
450
|
+
|---|---|
|
|
451
|
+
| At a terminal | Lists each story as `<id>: <title> [<state>]` and asks `Mark them [Done]? [Y/n]` (`Mark it [Done]?` for one story). Default yes. On yes, rewrites the headings and prints `Marked <ids> [Done] in <path>.` On no, changes nothing |
|
|
452
|
+
| `CI=1`, `PROJECT_GUIDE_NO_INPUT`, or non-TTY stdin | Prints one line, `Every task is checked in <ids>: ready to mark [Done] in <path>.`, and changes nothing. No prompt, so a command run by an LLM never blocks and never has the file changed under it |
|
|
453
|
+
|
|
454
|
+
`status` has no `--no-input` option; the decision goes through `should_skip_input()`.
|
|
455
|
+
|
|
456
|
+
**This is the only place `project-guide` edits `stories.md`, and only after an explicit yes.** The rewrite changes the status word between the heading's final brackets and nothing else: the title, trailing whitespace, line endings (a CRLF file stays CRLF), story bodies, and every other heading are written back byte for byte. The wrappers make the same offer (FR-15). No other command does, and it never runs from the pre-invoke hook.
|
|
457
|
+
|
|
458
|
+
The committed line is the only place `status` consults git. When git cannot answer (git is not installed, the directory is not a repository, or the repository has no commits) `status` prints no committed line and no error, and its output is what it was before this story. The read happens in the `status` command only, never from the pre-invoke hook.
|
|
423
459
|
|
|
424
460
|
### FR-11: Mode Listing with Availability Markers and Interactive Menu
|
|
425
461
|
|
|
@@ -498,13 +534,29 @@ Consumers migrating from a pre-Phase-P install run `project-guide init --force`
|
|
|
498
534
|
**Heading-to-message transformation:**
|
|
499
535
|
- Input: `### Story G.a: v1.2.3 New command \`foo\` with "Hello" [Done]`
|
|
500
536
|
- Output: `G.a: v1.2.3 New command 'foo' with 'Hello'`
|
|
501
|
-
- Rules: strip `### Story ` prefix and ` [Done]`
|
|
537
|
+
- Rules: strip `### Story ` prefix and the status suffix (` [Done]` or ` [Code-Complete]`); replace backticks and double quotes with single quotes; preserve single quotes and the colon after the story ID. The colon is the anchor the already-committed check searches for in `git log --pretty=%s`.
|
|
538
|
+
|
|
539
|
+
**Candidate selection (Story R.x).** A story is a commit candidate when it is **committable**: `[Code-Complete]` (no further coding will be committed for it, though tasks after the commit remain) or `[Done]` (every task is complete). The two states are one set. Nothing after selection distinguishes them: the header filter, the bundle offer, sequence discipline, the anchor presumption, the `HEAD` read, and the `--amend` guard all treat a `[Code-Complete]` story exactly as they treat a `[Done]` one. `[Planned]` and `[In Progress]` stories are never candidates.
|
|
540
|
+
|
|
541
|
+
Before any branch decision, the committable story list is filtered: a committable story whose body contains **zero** checklist items of any kind (`- [ ]` and `- [x]`) is a **header** — a group-overview heading for a sub-numbered cluster like `H.m` / `H.m.1` / `H.m.2` — and has no work to commit, so it is excluded from uncommitted-detection. The rule is deliberately forgiving: a committable story with all-*unchecked* items is still a real story (unchecked items are a developer-discipline concern, not a header signal). This filter is scoped to the wrappers; `status` still counts headers in its totals.
|
|
542
|
+
|
|
543
|
+
**What counts as committed (Story R.v, v2.21.1).** A story is committed if **either** its ID appears in a commit subject **or** it is already committable (`[Code-Complete]` or `[Done]`) in `stories.md` as committed at `HEAD`. The second source exists because the first is destroyed by squash merges: merging rewrites the subjects of the commits it absorbs into a PR title, but it carries the `stories.md` those commits edited — so the file at `HEAD` still records what shipped. Both readers contribute nothing (rather than erroring) when git is unavailable, the cwd is not a repository, the repo has no commits, or `stories.md` is untracked.
|
|
544
|
+
|
|
545
|
+
This assumes the edit that makes a story committable lands in the same commit as its work, which the wrappers enforce by staging the whole tree. A story marked `[Code-Complete]` or `[Done]` in a commit ahead of the work it describes reads as shipped.
|
|
546
|
+
|
|
547
|
+
A story committed while `[Code-Complete]` and marked `[Done]` afterwards is **not** offered again: its ID is in a commit subject, or it was already committable at `HEAD`, and either is enough. The later change to `[Done]` is not a commit of its own; it rides with the next story's commit.
|
|
548
|
+
|
|
549
|
+
**The offer to mark stories `[Done]` runs first (Story R.y.2).** Before candidate selection, the wrapper makes the offer described in FR-10: it lists the task-complete stories and asks whether to mark them `[Done]`, default yes. A story marked by the offer is read as committable immediately afterwards, so an `[In Progress]` story whose boxes are all checked is marked and committed in one run. Declining leaves the story as it was, and it is not a candidate. Under `--no-input`, `CI=1`, or non-TTY stdin the wrapper prints the one-line notice, changes nothing, and continues with the stories that were already committable. The offer's messages go to stderr with the wrapper's other messages.
|
|
502
550
|
|
|
503
|
-
|
|
551
|
+
A story that was committed while `[Code-Complete]` and is now task-complete is marked `[Done]` by the offer and then found already committed, so the run ends at *nothing to commit*. The edit to `stories.md` stays in the working tree and rides with the next story's commit.
|
|
504
552
|
|
|
505
|
-
|
|
553
|
+
`--amend` makes no offer and never edits `stories.md`. It short-circuits ahead of the offer: marking an `[In Progress]` story `[Done]` there would make it an uncommitted candidate and trip the staging guard in the same run.
|
|
506
554
|
|
|
507
|
-
|
|
555
|
+
**Sequence discipline.** After the header filter, the remaining committable stories in document order must form a clean **committed-prefix → uncommitted-suffix** partition. An uncommitted story positioned before the last committed story is **out-of-sequence**. Phase boundaries are not respected — the partition is over the flat document-order list.
|
|
556
|
+
|
|
557
|
+
The discipline is suspended where it would produce false positives: squash merges to main rewrite commit subjects (PR titles), so earlier committable stories may not parse from the log at hand even though they shipped. In that case, if at least one committable story parses (an **anchor**), every committable story before it is presumed merged and announced as such; the normal flow then runs on the remaining tail.
|
|
558
|
+
|
|
559
|
+
The anchor presumption reaches **backwards only** — it says nothing about stories positioned *after* the anchor. Squash merges land at the tip of history, so those are exactly the stories most likely to have shipped opaquely; before R.v this produced a bundle offer spanning work that had already merged. The committable-at-`HEAD` source covers that direction, and the anchor now serves the histories it cannot reach (a `stories.md` renamed, moved, or untracked at `HEAD`).
|
|
508
560
|
|
|
509
561
|
**The gate reads the destination, not the checkout (Story R.p, v2.21.0).** Suspension is selected by *where the work is going* — a supplied `BRANCH_NAME` — rather than which branch happens to be checked out. Kicking off a branch from a squash-merged `main` is the case this exists for: the strict discipline would otherwise be measured against a log that cannot contain those stories, and would either hard-error or propose a commit subject spanning the whole file. Three boundaries:
|
|
510
562
|
|
|
@@ -519,8 +571,8 @@ Presumption announcements name the branch whose log was **scanned** — the curr
|
|
|
519
571
|
| Situation | Branch | Result |
|
|
520
572
|
|---|---|---|
|
|
521
573
|
| `stories.md` absent | any | exit 1 |
|
|
522
|
-
| No
|
|
523
|
-
| Nothing commit-worthy (all committed, or only headers remain) | any | **exit 0** — `Nothing to commit — every real [Done] story is already in git log.`, naming any
|
|
574
|
+
| No committable story at all | any | exit 1 — `No completed story found in <path>.` (a `stories.md` authoring problem) |
|
|
575
|
+
| Nothing commit-worthy (all committed, or only headers remain) | any | **exit 0** — `Nothing to commit — every real [Code-Complete] or [Done] story is already in git log.`, naming any header stories present |
|
|
524
576
|
| Exactly 1 uncommitted, in sequence | any | derive single-story message → invoke the gitbetter tool |
|
|
525
577
|
| 2+ uncommitted, in sequence | any | propose a bundled subject, prompt `[Y/n]` (default `Y`). Decline → exit 1 with the manual-resolution hint |
|
|
526
578
|
| Out-of-sequence, exactly 1 uncommitted | strict | prompt `Commit this single out-of-sequence story? [y/N]` (default **`N`**). Accept → single-story commit. Decline → offender error block, exit 1 |
|
|
@@ -541,15 +593,20 @@ Presumption announcements name the branch whose log was **scanned** — the curr
|
|
|
541
593
|
|
|
542
594
|
The subject is **preserved, never re-derived** from `stories.md`. Re-deriving would rewrite a commit's message as a side effect of amending a fix into it — a developer who assigns a version to a story title after committing would get a rename they never asked for — and would silently canonicalize a legacy bundled subject, since the parser is permissive on read while emission is strict.
|
|
543
595
|
|
|
544
|
-
`--amend` carries
|
|
596
|
+
`--amend` carries four refusals, all hard, checked in this order:
|
|
545
597
|
|
|
546
|
-
| Condition | Behavior |
|
|
547
|
-
|
|
548
|
-
| `--no-input` / `CI=1` / non-TTY stdin | exit 1. `--amend` force-pushes with `--force-with-lease`; a history-shape decision is not a CI default — the same reasoning that keeps the out-of-sequence path from auto-yesing |
|
|
549
|
-
|
|
|
550
|
-
|
|
|
598
|
+
| # | Condition | Behavior |
|
|
599
|
+
|---|---|---|
|
|
600
|
+
| 1 | `--no-input` / `CI=1` / non-TTY stdin | exit 1, before any git call. `--amend` force-pushes with `--force-with-lease`; a history-shape decision is not a CI default — the same reasoning that keeps the out-of-sequence path from auto-yesing |
|
|
601
|
+
| 2 | No previous commit exists | exit 1 — `No previous commit to amend.`, checked before the later guards so a fresh repo gets the precise diagnosis rather than "commit that story first" |
|
|
602
|
+
| 3 | A tag contains the last commit (Story R.z) | exit 1 — `Refusing to amend: tag <name> contains the last commit.`, naming every such tag, and saying what to do instead: leave the change uncommitted and it rides with the next story's commit. Tags mark releases; amending would rewrite a released commit |
|
|
603
|
+
| 4 | A committable story (`[Code-Complete]` or `[Done]`) is uncommitted | exit 1, naming the offender. gitbetter runs `git add -A` before amending, so that story's work would land inside the previous commit under the previous commit's message — straight through the one-unit-of-work-one-commit invariant the wrapper exists to serve |
|
|
604
|
+
|
|
605
|
+
**Why the tag refusal exists.** The usual reason to use `[Code-Complete]` is a release story: commit, tag, publish, verify, then mark `[Done]`. That last edit has no commit of its own (see *What counts as committed*), and `--amend` is the tempting way to carry it. The check is `git tag --contains HEAD`, which covers lightweight and annotated tags alike. A tag on an *ancestor* of the last commit does not contain it, so an earlier release never blocks amending the commit after it. The lookup runs only under `--amend`. If it cannot answer, that is treated as no tags, not as a refusal.
|
|
606
|
+
|
|
607
|
+
**Why the tag refusal precedes the staging guard.** When both apply, the staging guard's message implies the amend can go ahead once the named story is committed. On a tagged commit it never can, so the tag is reported.
|
|
551
608
|
|
|
552
|
-
The staging guard is scoped to
|
|
609
|
+
The staging guard is scoped to committable-but-uncommitted stories, and reads the same presumed committed-set as the flow (so it does not refuse on every squash-merged feature branch). In-progress work on a `[Planned]` story is invisible to it and will still be staged: amending commits your tree, which is git's documented contract, and the wrapper does not become a general-purpose working-tree guard.
|
|
553
610
|
|
|
554
611
|
**The wrapper-value principle.** What bounds every current and future wrapper feature:
|
|
555
612
|
|
|
@@ -693,4 +750,4 @@ modes:
|
|
|
693
750
|
14. Package is published to PyPI as `project-guide`
|
|
694
751
|
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
|
|
695
752
|
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
|
|
696
|
-
17. `project-guide git-push [BRANCH_NAME]` (FR-15) derives the commit message from the
|
|
753
|
+
17. `project-guide git-push [BRANCH_NAME]` (FR-15) derives the commit message from the uncommitted `[Code-Complete]` or `[Done]` story, exits 0 when every such story is already committed, hard-errors on a declined multi-story bundle 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
|