Repository navigation
Comparing changes
Open a pull request
base repository: ptr727/ProjectTemplate
base: 2.0.421
head repository: ptr727/ProjectTemplate
compare: 2.0.426
- 6 commits
- 12 files changed
- 2 contributors
Commits on Aug 22, 2026
-
Declare the Repository Description in registry/repos.json (#639) (#913)
## What Implements TODO.md's "The Declared Repository Description" cluster, the prerequisite #639 itself named as blocking it. `registry/repos.json` gains an optional per-repo `description` field: - **`registry/repos.schema.json`**: new optional `description` (string, 1-100 chars). - **`spec/validate.py`**: shape-checks it the same way as `lineEndings`/`workflowModel`. - **`repo-config/configure.sh`**: `apply` writes the declared description to the GitHub About panel; `check` asserts it when declared, and notes a manual-verify fallback otherwise. - **`spec/audit.py`**: the description-check block is extracted into a new `description_findings()` (now unit-tested directly rather than only through the full `audit_repo` integration path). Once a repo declares the field, it becomes canonical and the README tagline, the About panel, and the Docker Hub short description are all measured against it. A repo with no declared field keeps the exact prior behavior (README is the source, About/Docker Hub measured against the tagline). - **`GOVERNANCE.md`** "Repository Details" and **`spec/readme-structure.md`** are updated to describe the new precedence. - **ProjectTemplate adopts the field here as the pilot** (its README tagline, live About description, and the new declared value all already agree). - The completed TODO.md cluster is removed per the file's own "delete completed entries" convention. ## Why This closes the README→About hop #639 reported as the one mirror nothing writes for any repo that adopts the field: once declared, `configure.sh apply` is the tool that sets the About panel, rather than a hand copy. The field is optional so the fleet adopts it one repo at a time, exactly as TODO.md's "Settled" notes describe. ## Testing - `python3 spec/audit.py --selftest` — passes, including 8 new cases for `description_findings()`. - `python3 spec/validate.py` — passes against the updated registry. - `python3 -m unittest discover -s scripts/tests -p "test_*.py"` — 765 tests, all pass. - `python3 scripts/prose_lint.py` (whole tree) — clean. - `ruff format --check` / `ruff check` on the touched Python files — clean. - `bash -n repo-config/configure.sh` — clean; manually verified the new conditional-echo substitution doesn't trip `set -Eeuo pipefail` in either branch. Fixes #639 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Repository descriptions can be centrally defined and applied to GitHub repository settings. - README taglines and external descriptions now follow the declared repository description when available. - Optional descriptions support validated plain text up to 100 characters. - **Bug Fixes** - Audits now detect missing, inconsistent, invalid, or outdated descriptions across README files, GitHub, and Docker Hub. - **Documentation** - Updated description guidance and added a description for ProjectTemplate. - Removed completed repository-description tasks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for b1fec3e - Browse repository at this point
Copy the full SHA b1fec3eView commit details -
Guard load_repo_tools Against an Empty install.linux Set (#916) (#917)
## Summary `host-setup/linux/install-tools.sh --repo PATH` died on a `host-tools.json` that declares tools but zero `install.linux` entries, instead of treating "nothing to add" as a no-op. ## Root cause In `load_repo_tools()`, when no `.tools[]` entry has `.install.linux`, the `jq` filter produces no output, so `rows` is the empty string. `<<< "$rows"` still feeds the `while read` loop one line (a here-string always appends a trailing newline, even for an empty string), so the loop ran once with `name`/`manager`/`package` all empty and immediately died on the "non-empty tool name" check — even though the declaration was otherwise valid and simply had nothing to add. ## Fix Guard the loop on an empty `$rows` before entering it, per the issue's suggested fix. ## Testing - Repro from the issue now reports normally instead of dying. - Verified the normal path (repo `host-tools.json` with a real `install.linux` entry) still works. - `python3 -m unittest scripts.tests.test_host_gate` — 83 tests pass. - `scripts/repo_gate.py` and `scripts/prose_lint.py` — clean. Fixes #916 🤖 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** * Improved Linux tool setup handling when no repository-specific tools are available. * Avoided unnecessary processing during installation in this scenario. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Sonnet 5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f17351c - Browse repository at this point
Copy the full SHA f17351cView commit details -
Fix Review Findings From the Develop-to-Main Promotion PR (#915)
Fixes real bugs and trims comments flagged in #914's review round (Copilot/CodeRabbit/qodo), since develop is PR-gated and the promotion PR's head can't take a direct push. ## Real fixes - `configure.sh`: the leading/trailing trim used `gsub("^\\s+|\\s+$"; "")`, and Oniguruma's `\s` matches `\n`/`\r`, so an embedded newline sitting at either edge was silently stripped instead of tripping the newline guard right after it. Trims only space/tab now. - `configure.sh`: the missing-registry manual-verify note told a user to "pass a plain repo argument", but the registry path is resolved from `script_dir` regardless of that argument. Reworded. - `spec/validate.py`: tests `"description" in repo` rather than `is not None`, so an explicit `"description": null` is rejected as invalid instead of reading as absent. - `spec/audit.py`: `description_findings()` no longer crashes on a non-string declared description - reports a `DEFECT` and treats it as undeclared. - Regression tests added for all four. ## Style fixes Trimmed three `configure.sh` comment blocks that restated GOVERNANCE.md prose across 2-3 lines, per `comment-and-doc-style/SKILL.md` ("one line is the default", "no rule citations - governed lives in the fleet's own instruction set") - a doc I hadn't checked in PR #913's earlier review rounds. ## Declined (reasoning posted to #914) - Registry description not validated as "one sentence" - the README-derived tagline never was either, pre-existing gap. - Sentence-length on `spec/readme-structure.md` - the same opt-in rule is violated in 29+ pre-existing spots in that file. - PR title's lowercase "to" - it's an allowed bind word per the actual list, a known qodo false positive. - Spaced hyphen in `spec/readme-structure.md` - the `- **Label** - explanation` shape is an explicit documented carve-out. - Docstring "wraps mid-sentence" - matches two other unchanged functions' docstrings in the same file, the established convention. 🤖 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** * Improved description validation for missing, null, non-string, empty, whitespace-only, and newline-containing values. * Absent descriptions remain valid, while explicitly declared invalid values are reported clearly. * Duplicate entries are now detected, and whitespace is preserved for accurate validation. * Updated messages clarify when descriptions are declared and applied. * **Tests** * Added coverage for null, non-string, invalid registry, duplicate, and absent descriptions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for abfeb98 - Browse repository at this point
Copy the full SHA abfeb98View commit details -
Delegate configure.sh's Description Check to Python Too (#918)
Fixes real gaps from PR #914's fresh review round (against the full accumulated diff, after #915 merged). - `configure.sh` never checked the declared description for Markdown links or the 100-char cap - a value `spec/audit.py` would flag as a DEFECT could still reach GitHub's About panel. Rather than a fourth partial hand-rolled copy of the rules, `configure.sh` now shells out to a new `spec/resolve_description.py`, which calls `spec/validate.py`'s `description_errors()` directly - the same function `spec/audit.py` already delegates to. This also removes the sentinel-preservation trick from three commits ago, since a value that passes the check can never contain a newline. - `spec/audit.py`'s DEFECT message for an invalid declared description named the literal string "registry" instead of the actual repo, making it useless in a fleet-wide run. Now passes the repo slug. - `spec/validate.py` now rejects a padded registry `name` (both `configure.sh` and `audit.py` use it as an exact-match lookup key). Declined two findings with reasoning posted to #914 (a pervasive pre-existing sentence-length violation, and a type-annotation request against a repo explicitly configured for the lint-only Scripts profile). Manually verified against 11 description shapes end to end via `spec/resolve_description.py` directly. 777 automated tests, prose lint, ruff, pyright, and mypy all pass. 🤖 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** * Improved repository description validation with clearer identification of affected repositories. * Rejected repository names with leading or trailing whitespace. * Improved handling of duplicate, malformed, or incomplete registry entries. * **Improvements** * Registry descriptions are now resolved more reliably, with clear validation errors and consistent output. * Repositories without descriptions are handled cleanly without unnecessary output. * Configuration now provides clearer errors when a compatible Python 3 interpreter is unavailable. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 6b4929d - Browse repository at this point
Copy the full SHA 6b4929dView commit details -
Reject a Case-Only Registry Name Mismatch Too (#919)
Fixes a real gap from PR #914's fresh review round after #918 merged, plus declines two twins of findings already resolved on #918. - `spec/resolve_description.py`: extended the padded-name near-miss check (from #918) to also catch a case-only mismatch (e.g., resolving `Fixture` against a registry entry named `fixture`) - GitHub treats repo names case-insensitively, so this is a data-entry typo, not a different repo. Same mechanism, now normalizing with `.strip().casefold()` on both sides. New test case. Declined (reasoning posted to #914): - "Preserve interpreter probe failures" - identical to a finding already declined on #918, citing this file's own `gh_ok()` precedent for discarding a capability probe's output. - "Reject malformed repository entries" (a `null` in `repos`) - that's `spec/validate.py`'s whole-registry structural check; an unrelated malformed entry degrading to "nothing declared" for a different, valid repo's lookup is a safe outcome with a much wider blast radius than the specific near-miss cases already fixed. 786 automated tests, prose lint, ruff, pyright, and mypy all pass. 🤖 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** * Improved repository name matching to detect differences in capitalization and surrounding whitespace. * Name collisions are now reported correctly instead of being treated as missing repositories. * **Tests** * Added coverage for case-only repository name mismatches. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for f726c7a - Browse repository at this point
Copy the full SHA f726c7aView commit details -
Promote Develop to Main (#914)
Promotes the declared repository description (#913, fixes #639) from develop to main. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Repository catalogs can define a canonical description for README, GitHub About, and Docker Hub summaries. * README taglines remain the fallback when no catalog description is provided. * Added a documented description for ProjectTemplate. * **Bug Fixes** * Improved auditing for inconsistent descriptions and Docker Hub lookup failures. * Prevented empty repository metadata from being processed as a tool entry. * **Validation** * Descriptions must be nonempty, single-line, link-free text of no more than 100 characters. * Added validation for duplicate repository names and invalid description formats. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for d5605f5 - Browse repository at this point
Copy the full SHA d5605f5View 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.421...2.0.426