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.643
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.644
Choose a head ref
  • 3 commits
  • 21 files changed
  • 1 contributor

Commits on Sep 18, 2026

  1. Fix the Base-Clone Conflict, the Missing Audit Flag, and the Layout (#…

    …1685)
    
    Fix the Base-Clone Conflict, the Missing Audit Flag, and the Layout
    
    Implements items 1 to 3 of the four answers recorded on
    [#1155](#1155). Item 4
    is tooling rather than prose and lands separately, so a tooling problem
    does not hold these three.
    
    ## Item 1: `repo-worktree` no longer forbids the command it requires
    
    "The Base Branch" banned every mutating command in the base clone with
    one exception, "Listing and Cleanup"'s terminal step. "Creating a
    Worktree" separately requires a continuation to return a checkout
    holding the task branch to its own working branch, which in the base
    clone is exactly the forbidden `checkout`. A reader met two units giving
    opposite instructions and neither stating an exception.
    
    The recorded answer was to name the switch a second exception rather
    than to let the ban win absolutely, which would stall the continuation
    case the mandate exists for. `gh-write-guard.py` already exempts a
    non-force `checkout <ref>`/`switch <ref>` and that unit already names
    the exemption, so only the prose moves and the documented path becomes
    performable.
    
    The exception is one sentence, and the procedure it names went to
    "Creating a Worktree", where the switch is actually performed. That
    section gave one remedy, a switch on a clean-tree test, for two cases
    that need different ones. It now splits by which checkout holds the
    branch, which `git worktree list` answers and which it prints the base
    clone first in. The base clone is returned to its own working branch and
    the worktree is then created. A previous session's own worktree is
    retired instead, because it normally sits at the exact path
    `worktree add` wants, so the command aborts on the existing directory
    whatever its branch is. That is the shape `backlog-burndown` already
    calls retire-then-dispatch while citing this skill for it, so the skill
    holding the rule had been instructing the opposite of the skill pointing
    at it.
    
    No caveat rides along. Four review passes each found the one I had
    added, in a new form each time, and the last of them fired on every
    continuation rather than none, which nullified both remedies above it.
    "The Mandate" already carries the stop rule for a tree another task is
    live in, and it keeps it alone.
    
    ## Item 2: `resync-a-repo` states both audit invocations itself
    
    The skill sent the reader to `RESYNC.md` section 2 and named no flag, so
    a re-run after fixes measured the target's `main` and re-reported
    everything the in-flight convergence ref had already fixed.
    
    Both invocations now sit in the skill: `python3 spec/audit.py <Repo>`
    for the first read of `main`, and
    `python3 spec/audit.py --branch <ref> <RepoName>` to preview in-flight
    work. They are stated rather than pointed at so the skill still works
    read in isolation, with no hub checkout open beside it, and the pointer
    now says section 2 carries further commands these two do not replace,
    since a reader holding two of its four is the one likeliest to skip it.
    
    ## Item 3: `GOVERNANCE.md` "Repository Layout" covers the tree
    
    Three content problems, all fixed.
    
    `.github/workflows/` was described as "this repo's own lint-only CI and
    source-only release". In a carrier that asserted the carrier's CI is
    lint-only and its release source-only, which is wrong for every csharp,
    python, docker and hugo repo in the fleet. The row now qualifies the
    hub-specific half and adds the fleet's reusable task workflows, which
    the description omitted entirely. It says a repo reaches them with
    `uses:` rather than that every repo already does, since
    `reports/workflow-reuse.md` records zero direct callers for both
    `validate-task.yml` and `build-release-task.yml` and
    `docs/reusable-workflows.md` still has rollout stages unchecked.
    
    `STANDUP.md` and `RESYNC.md` are hub-only procedure docs at the root and
    appeared nowhere in the layout, so a reader following `AGENTS.md`
    "Fleet Bootstrap" to them was sent to `docs/` and found neither. Both
    now have a row.
    
    `.agents/` and `host-setup/` are cited by path from other canonical
    units and were likewise absent, an omission invisible because the list
    otherwise reads as complete. Both now have a row, and the `host-setup/`
    row names Linux and Windows rather than calling the installers
    cross-platform, since that tree carries no macOS installer while this
    file defines cross-platform as Windows, macOS and Linux.
    
    The two generated Skill trees get a row each rather than sharing a
    clause. `.github/skills/` is carried verbatim to every repo per
    `spec/files.json`, so it is not hub-only and a fix to it belongs at
    `.agents/skills/`. `.claude-plugin/fleet-skills/` is the hub-only plugin
    copy, and the row says `marketplace.json` beside it is hand-authored,
    since `build_dist.py` never writes that file.
    
    ## Verification
    
    The declared local gate set in `OPERATIONS.md` "Local Verification"
    passes whole. The `repo-worktree` and `resync-a-repo` edits regenerate
    into all three distributions.
    
    
    ## Local review
    
    Four adversarial passes, 24 findings, every one dispositioned. Two
    declined with evidence: repo-relative links to hub-only paths,
    consistent with the six pre-existing hub-only rows in the same
    intent-fidelity section, and sentence length, where the opt-in
    `sentence-length` check is violated pervasively tree-wide. The rest
    fixed.
    
    Three of the four passes found the same invented caveat, in a new form
    each round, and the last one fired on every continuation rather than
    none. It is deleted rather than rewritten a fourth time.
    
    ## Not this pull request
    
    [#1684](#1684), filed
    from this work: `GOVERNANCE.md` and `README.md` both say this
    repository's CI is lint-only, and `.github/actions/validate` runs the
    script test suite plus four selftests on every pull request. The
    `.github/workflows/` row here restates that clause without originating
    it, and the fix spans `README.md` and the registry entry.
    
    `RESYNC.md` section 2 says "Three commands cover the mechanized part"
    and then walks "the first / the second / the third" over a four-line
    block, leaving `--branch` uncounted. Pre-existing, outside this diff,
    not filed yet.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    * **Documentation**
    * Clarified repository worktree continuation and cleanup guidance,
    including handling clean and unclean working states.
    * Updated repository resynchronization instructions to use consistent
    audit commands and support branch-specific checks.
    * Expanded governance documentation to describe repository layout,
    shared skills, host setup resources, reports, and reusable workflow
    organization.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    ptr727 authored Sep 18, 2026
    Configuration menu
    Copy the full SHA
    e18730f View commit details
    Browse the repository at this point in the history
  2. Check Composite Action Metadata Against the GitHub Action Schema (#1686)

    Check Composite Action Metadata Against the GitHub Action Schema
    
    Implements item 4 of the answers recorded on
    [#1155](#1155). Items 1
    to 3 are prose and land separately.
    
    ## The gap
    
    `workflow-ci-contract` "After Any Workflow Edit" sent a reader to
    actionlint. actionlint's own file list is `.github/workflows/*.yml` and
    `*.yaml`, and it opens a composite action's `action.yml` only through a
    workflow's `uses: ./.github/actions/<name>`, and only to judge that
    caller's `with:` block against the action's declared inputs. Nothing
    read the action file as action metadata. So a reader edited an
    `action.yml`, ran the prescribed check, and got a clean result that had
    judged only the caller's contract with it.
    
    ## Why actionlint cannot be the tool, measured rather than inferred
    
    `docker run --rm -v "$PWD":/repo -w /repo rhysd/actionlint:latest
    .github/actions/validate/action.yml` exits 1 with six syntax-check
    errors, `"jobs" section is missing in workflow`, `"on" section is
    missing in workflow`, and `unexpected key` for each of `description`,
    `inputs`, `outputs` and `runs`. It parses action metadata as a workflow,
    so widening its globs is not available.
    
    Measured on a scratch repository, so the corrected skill text claims no
    more than what actionlint does: a composite action carrying a malformed
    `if:` expression and an unterminated shell `if` in a `run:` block, plus
    a second action referenced by no workflow and missing both its top-level
    `description` and an input's, passes actionlint at exit 0. The same two
    files put to `check-jsonschema` report the two missing descriptions.
    
    ## What runs instead
    
    `check-jsonschema`'s `vendor.github-actions` builtin, which is GitHub's
    own action-metadata schema. It runs via `uvx`, beside the ruff and mypy
    invocations already in the same job, because `check-jsonschema`
    publishes no container image: upstream `python-jsonschema` carries no
    Dockerfile and Docker Hub holds only unaffiliated rebuilds. That is why
    `scripts/docker_lint.py`, which the recorded answer named, is unchanged:
    it runs each linter in a container with `--network none`, so neither a
    pulled image nor an in-container install is available to it.
    
    - `validate-task.yml` gains a `Lint composite actions step`, gated on
      the metadata existing, taking its file list from git and skipping
      rather than invoking on an empty argument list, matching the shell and
      PowerShell steps above it. It sits after the Python steps rather than
      beside actionlint because it needs the uv they set up.
    - `Setup uv step` now also fires for a repo that carries composite
      actions and no `pyproject.toml`, which would otherwise reach the new
      step with no `uvx` on the runner.
    - Both the guard and the file list use `**`, the guard through
      `hashFiles` and the list through a `:(glob)` pathspec, so the two
      describe one set. `hashFiles`'s `*` does not cross a `/` and git's
      default pathspec `*` does, so the earlier `*` form would have skipped
      a repo whose actions nest one level deeper while still checking a
      nested file whenever a flat one existed.
    - `OPERATIONS.md` "Local Verification" runs the same command, with the
      same empty guard. Without it, a checkout carrying no composite action
      reaches `check-jsonschema` with no instance files, which exits 2 and
      aborts the rest of the block under its own `set -Eeuo pipefail`.
    - `GOVERNANCE.md` "Running the Linters Locally" names the new check,
      since that block states it is the whole of `validate-task.yml`, and
      both host READMEs name it in their own enumeration of the lint tools
      that run through a container or `uvx` rather than natively. That
      section's own lead names it too, since it tells an agent to trust that
      enumeration before reporting a check unavailable.
    
    ## What the corrected skill text says
    
    "After Any Workflow Edit" now says which part of a composite action each
    check reaches, and what neither reads: a composite action's `run:`
    bodies and its `if:` expressions. It also says that where no workflow in
    the repository names the action, actionlint reaches it not at all, which
    is the ordinary shape downstream: a repo's hooks are invoked from a hub
    reusable workflow, and no workflow in that repo carries a
    `uses: ./.github/actions/...` line, so its own actionlint run never
    opens them. `docs/reusable-workflows.md` stated the reason wrongly in a
    snippet comment and is corrected to that one.
    
    The schema check's scope is stated as `.github/actions/`, matching the
    step's own guard, since an action file outside that tree is read by
    neither check.
    
    ## The producer-failure shape this repository already ruled against
    
    The step's file list is written to a file rather than into a process
    substitution. `.github/workflows/canonical-review-sweep.yml` states the
    reason in this tree already: `mapfile` reports success whatever the
    producer did. Measured both forms against a failing `git ls-files`: the
    redirect aborts the step at 128, and `mapfile < <(...)` continues with
    an empty array and exits 0, which would have reported "no composite
    action metadata is tracked" and gone green with the gate never run.
    
    Dropping `mapfile` also keeps the `OPERATIONS.md` block runnable on
    macOS, whose `/bin/bash` is 3.2 and has no such builtin. That block
    opens with `set -Eeuo pipefail`, so the failure would not have skipped
    one check, it would have truncated every gate below it.
    
    The list is `git ls-files -z` into `xargs -0`, since a bare `xargs`
    splits on whitespace and honours quotes. Measured: a tracked
    `.github/actions/my hook/action.yml` reaches the checker as two
    arguments and the run exits 123, where `-0` passes it whole and exits 0.
    `-0` is the form both GNU and BSD carry, where `-d` is GNU-only and
    would break the macOS copy. The pathspecs are `:(top,glob)` so a run
    from a subdirectory reads the same nine files rather than reporting a
    silent clean over none.
    
    ## The eight findings the new gate raised on its first run
    
    A gate that fails on the corpus it guards blocks every commit from the
    moment it lands, per `GOVERNANCE.md`, so the tree is brought to green in
    the same change. Eight inputs carried no `description`, which GitHub's
    schema requires: `semver2` in `docker-prepare-default` and
    `nuget-build-default`, and `assembly-version`,
    `assembly-file-version` and `assembly-informational-version` in both
    `dotnet-publish-default` and `nuget-build-default`. Each now describes
    the NBGV output it threads and the MSBuild property it sets.
    `dotnet-publish-default` passes its `assembly-version` as both
    `AssemblyVersion` and `Version`, and its `semver2` reaches
    `PackageVersion` alone, so those two say so rather than reading like
    their `nuget-build-default` counterparts, where `semver2` is `Version`.
    
    ## Verification
    
    The declared local gate set in `OPERATIONS.md` "Local Verification"
    passes whole, and `docker_lint.py` is clean for actionlint,
    markdownlint and editorconfig-checker. The new command was run at the
    exact form the workflow and the local block use, over all nine tracked
    action files, and its empty-list path was run in a scratch repository
    carrying none. `workflow-ci-contract` regenerates into all three
    distributions.
    
    
    ## Local review
    
    Three adversarial passes, 22 findings, every one dispositioned. The
    first pass disproved this change's own central claim: the draft said
    actionlint reads no action file at all, and it does, opening a local
    action through a workflow's `uses: ./<path>` to judge that caller's
    `with:` block. Correcting the premise did not invalidate the gate, since
    nothing before this reached the action file's own metadata, but the
    justification was rewritten around what actionlint actually does.
    
    Each later pass found a defect in the previous pass's fix. Round 2
    replaced `mapfile` to stop a producer failure reading as an empty list,
    and introduced an `xargs` quoting regression in doing so. Round 3
    settled both with `git ls-files -z` into `xargs -0`.
    
    ## Fleet blast radius
    
    Every `action.yml` the fleet carries outside this repository was fetched
    and checked against the same builtin: `LanguageTags`, `aiopurpleair`,
    `Financial-Modeling`, `HomeAutomation-Config`, `ESPHome-Config` and
    `Blog` all pass, so no repository reds on its next pin bump. `Blog` and
    `HomeAutomation-Config` carry composite actions and no `pyproject.toml`,
    so both newly run `setup-uv` and one `uvx` resolve in their lint job
    once they bump. That cost is intended rather than incidental.
    
    ## Known stale, deliberately untouched
    
    `validate-task.yml`'s file header and `docs/reusable-workflows.md` both
    enumerate the lint job's checks and neither names this one. Both are
    comment lines, which `prose_lint.py`'s `comment-added` rule refuses on a
    change that edits them unless the pull request says comments are wanted.
    Left for that decision rather than edited here.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    ptr727 authored Sep 18, 2026
    Configuration menu
    Copy the full SHA
    d0e722f View commit details
    Browse the repository at this point in the history
  3. Promote the #1155 Carried-Text Fixes and the Composite Action Schema …

    …Check (#1687)
    
    Promotes the two changes that implement
    [#1155](#1155
    recorded answers, items 1 to 3 as prose and item 4 as tooling.
    
    ## The delta
    
    Two squash commits, 21 files, read from `git diff origin/main
    origin/develop` rather than from a local fast-forward's file list:
    
    - `e18730f`
    [#1685](#1685), the
    carried-text defects.
    - `d0e722f`
    [#1686](#1686), the
    composite-action schema check.
    
    ## What changes for a carrier
    
    **`repo-worktree`** no longer forbids in one unit the command it
    requires in another. "The Base Branch" names the base-clone return as a
    second exception beside the cleanup step, with the ban rescoped to
    commands that mutate the working tree, index or HEAD, so `worktree
    remove` and `branch -d` sit outside it rather than as uncounted
    exceptions. "Creating a Worktree" splits the continuation by which
    checkout holds the branch: the base clone is returned to `develop` when
    its tree is clean and stopped on when it is not, while a previous
    session's worktree is retired rather than switched, since it normally
    occupies the very path `worktree add` wants.
    
    **`resync-a-repo`** carries both audit invocations itself rather than
    pointing at `RESYNC.md` section 2 for them, so the skill works read in
    isolation. `python3 spec/audit.py <RepoName>` measures the ground-truth
    branch the registry names, and `--branch <ref>` previews in-flight work.
    The invocation is spelled with `python3` at all four sites, since a
    shebang does not execute on Windows and this fleet declares that
    platform first-class.
    
    **`GOVERNANCE.md` "Repository Layout"** gains rows for
    `STANDUP.md`/`RESYNC.md`, `.agents/`, `host-setup/`, `.github/skills/`
    and `.claude-plugin/fleet-skills/`, and no longer describes this
    repository's CI as lint-only or its `.github/workflows/` as holding only
    its own workflows.
    
    **A new CI gate** validates every tracked `action.yml` under
    `.github/actions/` against the action-metadata schema, which actionlint
    cannot do because it parses an action file as a workflow. It found eight
    real defects on its first run, all fixed in the same change.
    `workflow-ci-contract` now states what each check reads and what neither
    reads, all of it measured rather than asserted.
    
    ## Review coverage
    
    Both pull requests reached every Merge Gate item before merging: review
    on head, full coverage, no refusal, zero unresolved threads and zero
    suppressed findings on head, checks 8 of 8.
    
    One boundary, already recorded on
    [#1686](#1686) and
    repeated here so it is not inferred from a green check: **CodeRabbit did
    not review that pull request.** Its check reports `pass` while its own
    reply to the explicit trigger reads "Review rate limited", and it posted
    zero comments there. It did review
    [#1685](#1685). Proceeding
    on Copilot plus the local passes there was the maintainer's call rather
    than an inference from the check.
    
    ## No closing references
    
    None of the issues this work touches is finished by it, so this pull
    request closes nothing.
    
    - **#1155** keeps items 5 to 10. Item 5 has a recorded answer and no
    implementation, and items 6 to 10 have no answer.
    - **[#1684](#1684
    keeps `README.md`'s copy of the lint-only claim and the question of
    whether the prose term or the registry classification is the defect.
    - **[#1682](#1682 is
    unimplemented, though this round's own cleanup ran its recommended fix
    by hand and it worked: the remote branch delete ran from each task's
    worktree before that worktree was removed, which the guard permits where
    the base clone would have denied it.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    ptr727 authored Sep 18, 2026
    Configuration menu
    Copy the full SHA
    bfc70fb View commit details
    Browse the repository at this point in the history
Loading