Repository navigation
Comparing changes
Open a pull request
base repository: ptr727/ProjectTemplate
base: 2.0.992
head repository: ptr727/ProjectTemplate
compare: 2.0.996
- 5 commits
- 18 files changed
- 2 contributors
Commits on Oct 12, 2026
-
State That a Worktree Does Not Use the Shared Git Stash (#2899)
## Summary `git stash` keeps one stash list per repository, `refs/stash`, and every worktree of that repository shares it, so a `git stash pop` in one worktree can pop another task's entry. The `repo-worktree` Skill's "The Mandate" section now states that a task in a worktree does not use `git stash`. It copies work in progress to a scratch directory of its own instead, or, where it is authorized to commit, commits it on its own branch. The scope is the Skill only. Whether `GOVERNANCE.md` "Repository Boundaries and Write Safety" and the host-wide agent-safety block should also name the stash is a separate maintainer decision, filed as a follow-up. ## Changes - `.agents/skills/repo-worktree/SKILL.md`: one new bullet in "The Mandate". The section has no include region, so the text is source-authored. - `.github/skills/` and `.claude-plugin/fleet-skills/`: regenerated with `python3 scripts/build_dist.py`, and `--check` passes. ## Verification - `python3 scripts/prose_lint.py --diff <merge-base>` passes, with and without `--check sentence-length`. - `python3 scripts/repo_gate.py --check eol` and `--check eol-coverage` pass. - `python3 spec/validate.py` passes. - `python3 scripts/build_dist.py --check` passes. - `scripts/docker_lint.py --linter markdownlint --linter editorconfig-checker` passes. - Two local strict review passes ran. The first raised two findings, both fixed in 93ae5c7: a sentence over the length limit, and a commit remedy stated without the commit-authorization condition from `git-commit-conventions`. The second pass raised none. Closes #2896 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu - View commit details
-
Copy full SHA for 94f220f - Browse repository at this point
Copy the full SHA 94f220fView commit details -
Accept a Folded Dispatch Guard in D4.1 and Extend the 5B N/A Rule (#2905
) ## Summary - **D4.1:** the dispatch guard a retest-only schedule needs is now required as an `&&` term of the job's job-level `if:`, not of a single-line `if:`. The single-line wording contradicted the `if: >-` form that D9.3 and GOVERNANCE.md "Workflow YAML Conventions" set for a multi-line condition. `spec/audit.py` already accepts the folded form: `_code_view` folds a block-scalar `if:` onto its key line, and the `--selftest` case "a folded dispatch gate" expects no finding. The audit's DRIFT message is unchanged, since it was already accurate. Issue #2889's premise (that a folded `if:` reduces to an empty condition) is disproved there, and this change resolves it by aligning D4.1 with the parser. - **5B:** a publisher whose schedule never publishes (D4.1) records the schedule paths of S7 and S9 N/A. Its push paths stay under the existing rule that keys N/A on the trigger. S7 is included because its Input also lists a schedule as a publish run, and the dispatch guard skips that run too. The local review raised two older gaps between D4.1 and the audit that this change does not touch. They are filed as #2904. - The workflow-ci-contract `d-guarantees.md` and `test-methodology.md` includes are regenerated with `scripts/build_dist.py`. No other surface states the single-line requirement. I swept WORKFLOW.md, AUDIT.md, docs/, catalog/snippets, the plan task header, the Skills trees and the `spec/audit.py` docstrings. Closes #2889 Closes #2888 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu - View commit details
-
Copy full SHA for b3fc9c0 - Browse repository at this point
Copy the full SHA b3fc9c0View commit details -
Allow a Comment to Name the Contract Section Holding Its Why (#2901)
The Comments rule in the comment-and-doc-style Skill said a comment carries no rule citations. Copilot relied on that line when it flagged a contract-section citation on #2894, #2895, and #2901, and the tree already carries such citations. The rule now forbids restating a rule inline and permits a comment to name the contract section holding its why, such as D5.2, without echoing that section's text. The earlier Disproved Claims entry on this branch is reverted, so the Copilot instructions file is unchanged: the finding was grounded in a real line, which is amended here rather than declined. Local review: one recorded pass, six findings. Wording ambiguities in the maintainer-specified text and pre-existing comments that echo a section are deferred to #2907, which also notes the pre-existing design-notes conflict in the Python codestyle reference. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu - View commit details
-
Copy full SHA for f127f40 - Browse repository at this point
Copy the full SHA f127f40View commit details -
Read the Handoff Chain From the Issue Connection Rather Than the Sear…
…ch Index (#2906) ## Summary `scripts/handoff.py` listed the handoff chain with `gh issue list --label handoff`. gh sends a label-filtered list to GitHub's search API. Its index is updated after a write lands, not with it. So a `current` run straight after `new` still returned the link `new` had just closed. Agents then re-read and retried, spending time and tokens. A `new` run shortly after another could also resolve a stale predecessor. This is a permanent property of the search API, not an outage. Both list reads, `open_handoffs` and `read_closed`, now page the repository's own issue connection through `gh api graphql`, which reads the write itself: - The new `labeled()` helper pages at GitHub's ceiling of 100 up to each caller's window. It keeps newest-first ordering, so the existing truncation checks (`WINDOW`, `CLOSED_WINDOW`) mean what they did. - The query also reads `hasIssuesEnabled`. On a repository with issues turned off, GitHub answers the connection empty rather than with an error, which was verified live against a public repository with issues disabled. It is refused at exit 2, as `gh issue list` refused it, rather than read as a chain never started. - A malformed response is an Execution failure (exit 2) naming the shape, not an unmodeled crash. ## Tests - `FakeGh` answers the GraphQL list and checks: - the query's declared variables; - `first` passed through `-F` and within 1-100; - the query's own `nodes { }` selection, so a field a caller reads that the query drops fails. - `ConsistentReadCase` models a lagging search index with `StaleSearch`: - `current` straight after `new` names the new link; - a second `new` chains onto the first; - no read uses `gh issue list`; - paging reaches a track whose head is on page two; - an issues-disabled repository fails; - a malformed response is named. - All five original new cases fail against the unfixed script. Mutations that cut paging to one page, pass `first` with `-f`, or drop a selected field each fail the suite. - Gates run locally: unittest (162 tests), ruff format and check, mypy, `prose_lint` (diff-scoped, plus sentence-length), the EOL gate, and `spec/validate.py`. - Live: `tracks` and `chain` against this repository read correctly. ## Open Local Review Finding `local-strict-review` left this `introduced` finding open after its two-round edit budget. **Fixed in fb8c05c**, the PR's first fix push. A recorded local pass over that head came back clean: - `scripts/handoff.py` `labeled()`: an issues-disabled repository raises `Execution` (exit 2). The module's contract keeps exit 2 for a command that did not run to an answer. This state is a settled one the operator can act on, so it should be a `Refusal` (exit 1), matching how `without_label` already reports it. ## Follow-ups - #2902: the `session-handoff` and `unattended-handoff` skills still tell agents to read the open chain with `gh issue list --label handoff`. That is the same stale read, and it is kept out of this PR because another lane holds the skills tree. - #2903: share one GraphQL cursor walker with `pr_review.py`. Its `gh_graphql` exits through `SystemExit` (exit 1), which would turn a failed read into a refusal under this script's exit-code contract. Carries the `comments` label for two constant comments, on `WINDOW` and `PAGE`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Handoff issue reads now retrieve results in newest-first order across multiple pages, avoiding missed results when matching issues span pages. * Closed handoff reads can retrieve up to 1,000 issues; open handoff reads retain the 100-issue limit and report when that limit is exceeded. * Handoff operations now stop with a clear error if repository issues are disabled or issue data is malformed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9b93724 - Browse repository at this point
Copy the full SHA 9b93724View commit details -
Promote the Stash, D4.1 Guard, Citation, and Handoff Read Fixes to Ma…
…in (#2908) - #2899 states in the `repo-worktree` skill that a worktree does not use the shared git stash - #2905 accepts a folded dispatch guard in D4.1 and extends the 5B N/A rule to a schedule that never publishes - #2901 allows a comment to name the contract section holding its why, without restating it - #2906 reads the handoff chain from the issue connection rather than the search index Closes #2896 Closes #2889 Closes #2888 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Configuration menu - View commit details
-
Copy full SHA for 444f3cb - Browse repository at this point
Copy the full SHA 444f3cbView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.0.992...2.0.996