From d7b9a21e92034d70fd42f89163805415c6fd0e09 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Thu, 26 Nov 2026 21:29:54 -0800 Subject: [PATCH] ci(audit): one PR branch per focus area By-hand runs in the same ISO week all pushed --force to audit/docs-, so each run replaced the doc fixes of the one before. The branch and PR title now carry the focus number. Co-Authored-By: Claude Opus 5.5 --- .github/OVERVIEW.md | 2 +- .github/workflows/weekly-audit.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/OVERVIEW.md b/.github/OVERVIEW.md index 86c7651e..275435f9 100644 --- a/.github/OVERVIEW.md +++ b/.github/OVERVIEW.md @@ -20,7 +20,7 @@ standard as the rest, and linted by `actionlint` and `zizmor` in | [`ci.yml`](workflows/ci.yml) — **CI** | pushes to `main`, every pull request, by hand | **Lint**: [`scripts/lint.sh`](../scripts/lint.sh). **Validate configs**: the checks [`scripts/validate.sh`](../scripts/validate.sh) runs for `make validate`, as individual steps calling the same scripts rather than the wrapper. **Boot hardened services**: starts twelve services under their real hardening and waits for each to be healthy: from the sensitive tier Home Assistant, ntfy, linkding, Stirling-PDF, Actual, Mosquitto, ring-mqtt, Vaultwarden, AdGuard Home, Memos and Glance, and soc's MSI server. **Secret scan**: gitleaks over the whole history | | [`close-keywords.yml`](workflows/close-keywords.yml) — **Close keywords** | every pull request | **No close keyword in prose**: fails a title, body or commit whose `Closes #N` would close an issue the sentence says stays open ([`check_close_keywords.py`](../scripts/check_close_keywords.py)) | | [`digests.yml`](workflows/digests.yml) — **Digest drift** | Mondays 07:00 UTC, by hand | **Pinned digests still match the registry**: catches a tag moved under a pin. **Pinned tool versions are current**: says when the Packer plugin or a Galaxy collection has a newer release, the pins Dependabot cannot read. **The ruleset on main matches `rulesets/main.json`**: catches a ruleset edited in the UI | -| [`weekly-audit.yml`](workflows/weekly-audit.yml) — **Weekly docs audit** | Mondays 06:37 UTC, by hand | **Audit**: Claude checks one focus area of the docs against the code and recorded state ([`.claude/commands/weekly-audit.md`](../.claude/commands/weekly-audit.md)), may edit only `docs/**` and `README.md` files, and files `audit` issues for the rest. It has no push access. **Open PR**: no AI. It applies that patch, fails on any path outside the docs, re-renders a changed diagram PNG, runs `check_docs.py` and the close-keyword check, then opens `audit/docs-` for review | +| [`weekly-audit.yml`](workflows/weekly-audit.yml) — **Weekly docs audit** | Mondays 06:37 UTC, by hand | **Audit**: Claude checks one focus area of the docs against the code and recorded state ([`.claude/commands/weekly-audit.md`](../.claude/commands/weekly-audit.md)), may edit only `docs/**` and `README.md` files, and files `audit` issues for the rest. It has no push access. **Open PR**: no AI. It applies that patch, fails on any path outside the docs, re-renders a changed diagram PNG, runs `check_docs.py` and the close-keyword check, then opens `audit/docs--focus` for review, one branch per focus area so a by-hand run never overwrites another | Every workflow pins its actions by commit SHA, with the version in a comment for Dependabot. Each starts from `contents: read` and checks out with diff --git a/.github/workflows/weekly-audit.yml b/.github/workflows/weekly-audit.yml index 4c912d9e..9dcbd8bc 100644 --- a/.github/workflows/weekly-audit.yml +++ b/.github/workflows/weekly-audit.yml @@ -6,7 +6,7 @@ name: Weekly docs audit # issues, and nothing else: no push, no PR, no token left in .git/config. # A second job with no AI in it applies Claude's patch, refuses anything # outside the doc paths, re-renders any changed diagram PNG, runs check_docs -# and the close-keyword lint, and only then pushes audit/docs- and opens +# and the close-keyword lint, and only then pushes audit/docs--focus and opens # one PR. The PR goes through the same required checks as any other. # # check_docs runs in the second job, not only in Claude's: rule 13 (the @@ -161,7 +161,7 @@ jobs: contents: write pull-requests: write env: - BRANCH: audit/docs-${{ needs.audit.outputs.week }} + BRANCH: audit/docs-${{ needs.audit.outputs.week }}-focus${{ needs.audit.outputs.focus }} WEEK: ${{ needs.audit.outputs.week }} FOCUS: ${{ needs.audit.outputs.focus }} steps: @@ -244,6 +244,6 @@ jobs: gh pr edit "$BRANCH" --body-file "$body" else gh pr create --base main --head "$BRANCH" \ - --title "docs(audit): weekly doc fixes $WEEK" \ + --title "docs(audit): weekly doc fixes $WEEK, focus $FOCUS" \ --body-file "$body" --label audit fi