Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.710
Choose a base ref
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.712
Choose a head ref
  • 3 commits
  • 48 files changed
  • 2 contributors

Commits on Sep 27, 2026

  1. Type the Hub Python and Run Its Suite Through the Shared Validator (#…

    …1922)
    
    Settles #1913 as the maintainer decided it there: the hub is typed
    `python` with the `lint-only` profile, declares `.` in
    `python-directories`, and its unittest suite moves from `scripts/tests`
    to a root `tests/`.
    
    ## Changes
    
    - `registry/repos.json`: the hub gains the `python` type,
    `profiles.python: lint-only`, `pythonDirectories: ["."]`, and
    `CODECOV_TOKEN` in `requiredSecrets`.
    - `scripts/tests/` -> `tests/`: every test's path math is shifted one
    level, and every reference in docs, skills, the schema, and comments is
    repointed.
    - `.github/workflows/test-pull-request.yml` and `publish-release.yml`
    pass `python-directories: .` and `CODECOV_TOKEN`, so the validator's
    Python leg runs the suite under coverage and uploads to Codecov.
    - `.github/actions/validate/action.yml` drops its own unittest run and
    keeps only the self-tests that are not a unittest suite.
    - `pyproject.toml`: `tests` added to mypy `files` and pyright `include`,
    and `[tool.coverage.run] source` set to the tree the hook already
    measured.
    - `codecov.yml` and a lint-only `.vscode/tasks.json` clean-compile
    group, both owed by the python type.
    - The GOVERNANCE.md Repository Layout bullets and the README.md type
    sentence now describe the hub as it is.
    
    The `comments` label is needed because repointing a path inside existing
    comments counts as an edited comment line.
    
    ## Verification
    
    - `python3 -m unittest discover -s tests`: 1749 tests OK. The CI leg's
    exact command, `uvx coverage@latest run -m unittest discover -s tests`,
    writes `coverage.xml`.
    - ruff check and format, mypy (40 files), `spec/validate.py`,
    `repo_gate.py`, `prose_lint.py` whole tree, `build_dist.py --check`, the
    audit, workflow_reuse, and gh-write-guard self-tests, actionlint,
    markdownlint, and editorconfig all pass.
    - `spec/audit.py ProjectTemplate` with the new registry entry: the
    Python advisory is gone. What remains is the callers, which this branch
    fixes, `codecov.yml` and `.vscode/tasks.json`, which this branch adds,
    and `CODECOV_TOKEN` missing from both secret stores, which is the
    maintainer's to store.
    - Two local strict review passes. The second came back clean.
    
    ## Maintainer follow-ups
    
    - Store `CODECOV_TOKEN` in the hub's actions and dependabot secret
    stores. Until then the upload is best-effort and uploads nothing.
    - The workspace file lacks the Python extensions the Editor and Tasks
    section owes a Python repo. That edit is the maintainer's, per the rule
    against agents editing an active `.code-workspace`.
    
    Part of #1913. The closing reference goes on the promotion PR.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    * **Developer Tools**
    * Added VS Code tasks for Python formatting, linting, and type checking,
    with a combined default task.
    * Python validation now includes the repository’s test suite and reports
    coverage status for projects and patches.
    * **Documentation**
    * Updated testing instructions and repository guidance to reflect the
    current test locations and Python project configuration.
    * **Bug Fixes**
    * Corrected test and script references so local and automated checks use
    the appropriate repository paths.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
    ptr727 and claude authored Sep 27, 2026
    Configuration menu
    Copy the full SHA
    075f154 View commit details
    Browse the repository at this point in the history
  2. Hand the Menu's Skills Install to the Bootstrap's Kept Tree (#1923)

    Part of #1771.
    
    ## Problem
    
    Run from a downstream repo or from no checkout at all, the menu's
    "Install or update the fleet Skills" task ran `install-skills` from the
    hub clone the menu fetched into `$DIR/hub`. The installer registers the
    directory it runs from as the `projecttemplate-fleet` Claude Code
    marketplace, which Claude Code loads in place. The menu removes that
    clone on exit unless `--keep` is given, so every later session found a
    registration naming a missing directory and loaded no fleet skills.
    Observed on a Windows host: `skills_install.py --report` read
    `live.reason: the registered checkout does not exist, so this channel
    serves nothing`, with `%LOCALAPPDATA%\host-setup\` empty.
    
    ## Change
    
    - `menu.sh` and `menu.ps1`: when the hub is the menu's own fetched clone
    (`HUB_FETCHED`), the skills task runs that clone's `bootstrap.sh
    --skills --ref "$REF"` / `bootstrap.ps1 -Skills -Ref $REF`, whose kept
    `skills-tree` outlives the run, per #1773. A hub checkout the menu runs
    from still installs from itself. The menu's own `--dir` is not
    forwarded, since it is a cache for the clone and the bootstrap keeps its
    tree under its own directory.
    - The shared "run a script inside the hub" body is split out of
    `host_tool_locked` / `Invoke-HostTool` as `run_in_hub` / `Invoke-InHub`,
    so the skills task can target `host-setup/` as well as
    `host-setup/<platform>/`.
    - `host-setup/README.md` says why the task hands off, and names what
    that handoff needs: `curl` and `tar` on Linux, and `codeload.github.com`
    reachable (`api.github.com` only records the installed commit).
    - `scripts/tests/test_bootstrap.py`: `TestMenuSkillsInstall` sources
    `menu.sh`'s functions against stub scripts and asserts which installer
    runs, with which arguments, for a fetched clone and for a hub checkout.
    
    Out of scope: a host already carrying a dangling registration is not
    re-pointed by a later install, since `marketplace add` of a registered
    name is a no-op. That is #1769.
    
    The `comments` label covers one existing comment line in `menu.ps1` (the
    `Out-Host` note), moved unchanged with the body it explains into
    `Invoke-InHub`.
    
    ## Verification
    
    - `TestMenuSkillsInstall` (3) and `TestKeptTreeHandling` pass on Linux
    (python:3.12-slim container). The task against `develop`'s `menu.sh`
    fails (`install_skills_locked: command not found`).
    - `menu.ps1`'s `Invoke-SkillsInstall` and the refactored
    `Invoke-HostTool` driven under pwsh 7 on Windows against stub scripts:
    fetched clone -> `bootstrap.ps1 -Skills -Ref <ref> [-Yes]`, hub checkout
    -> `install-skills.ps1`, missing tool -> exit 1 with the existing
    message.
    - `docker_lint.py`: shellcheck, shfmt, PSScriptAnalyzer, markdownlint,
    editorconfig-checker all pass. ruff check/format, mypy, prose gate, and
    the eol gate pass.
    - Local strict review recorded over the final content (two README
    wording findings, both fixed, final pass clean).
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    ptr727 and claude authored Sep 27, 2026
    Configuration menu
    Copy the full SHA
    705abd8 View commit details
    Browse the repository at this point in the history
  3. Promote the Typed Hub Python and the Menu's Kept-Tree Skills Install …

    …to Main (#1924)
    
    ## Summary
    
    Promotes `develop` to `main`, carrying two changes:
    
    - #1922, Type the Hub Python and Run Its Suite Through the Shared
    Validator. The hub now declares the `python` type with the `lint-only`
    profile and `.` in `python-directories`. Its unittest suite moves from
    `scripts/tests` to a root `tests/`, which the shared validator's Python
    leg runs under coverage and uploads to Codecov. Both callers pass the
    input and `CODECOV_TOKEN`. The hub gains `codecov.yml` and a lint-only
    `.vscode/tasks.json`, and the GOVERNANCE.md layout and README.md
    describe it as it now is.
    - #1923, Hand the Menu's Skills Install to the Bootstrap's Kept Tree.
    Run from outside a hub checkout, the menu's skills task installed from
    the clone it then removed on exit, leaving the Claude Code marketplace
    registered against a missing directory. From a fetched clone it now
    hands off to that clone's `bootstrap.sh --skills` / `bootstrap.ps1
    -Skills`, whose kept tree outlives the run, and every path cmdlet in
    `menu.ps1` reads its path literally.
    
    Closes #1913
    Fixes #1771
    
    ## Maintainer follow-ups
    
    - Store `CODECOV_TOKEN` in the hub's actions and dependabot secret
    stores. Until then the audit reports it missing and the best-effort
    upload sends nothing.
    - Add the Python extensions to the workspace file. An agent may not edit
    an active `.code-workspace`.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    ptr727 authored Sep 27, 2026
    Configuration menu
    Copy the full SHA
    0aa86c3 View commit details
    Browse the repository at this point in the history
Loading