Skip to content

Weekly workflow: refetch the public board and push a branch only when it changed - #673

Merged
bompus merged 5 commits into
mainfrom
hr-panel-board-weekly-20261121
Nov 21, 2026
Merged

bompus merged 5 commits into
mainfrom
hr-panel-board-weekly-20261121

Conversation

@bompus

@bompus bompus commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Follows #671 and #672: the catalog's board rows and the Bug Hunt snapshot go stale when nobody refetches. A weekly workflow (Monday 14:17 UTC, also runnable by hand) refetches the public board with refresh-recommendations.mjs --fetch and, only when a row or the board's own update changed, pushes the regenerated snapshot and catalog to the branch panel-board-refresh and pushes the regenerated snapshot and catalog to the branch panel-board-refresh.

  • scripts/refresh-panel-board.sh does the fetch and the decision. It compares the files without the dates every fetch rewrites (fetch date, review date, each entry's checked): when nothing else changed it restores the files and reports changed=false; otherwise it runs the catalog --check and the skill and doc-rule tests and reports changed=true. I ran both paths locally against the live board (unchanged board: files restored; one row edited: 403 tests pass).
  • Own results never enter the job: a fetch keeps the catalog's own entries as they are, and the job reads no results or deny file.
  • Least privilege: read-only by default, contents and pull-requests write only in the one job; actions pinned to the SHAs check.yml uses, Bun 1.4.4, a 15-minute timeout, one run at a time (concurrency, never cancelled), forks skipped. No board text reaches a shell command or the pull request text.
  • The job opens no pull request: this repository does not allow Actions to create them, and that setting stays off (no secret, no settings change). It logs the branch URL in the run summary and a maintainer opens the pull request from the branch. A branch pushed with the workflow token starts no CI, so the job runs the catalog check and the skill tests itself before it pushes.

bun run check and test/doc-rules.test.mjs pass.

Also in this PR (owner 428a asked for full case folding in the deny screen): the screen now folds a capital sharp s (U+1E9E) and a sigma's final or medial form as it already folded a small sharp s and a final sigma at the end of a string. Before, a denied Straße missed a published STRAẞE, and a denied ΟΔΥΣΣΕΥΣ missed ΟΔΥΣΣΕΥΣ.example or ΟΔΥΣΣΕΥΣTOOL, because JavaScript lowercases a sigma by what follows it. The test failed on those pairs before the fix.

Bot round 1 changes: the push is now scripts/publish-panel-board.sh, which never overwrites a refresh branch that holds work that is not the job's (every commit the branch has that main lacks must be the workflow bot's and touch only the two generated files) and pushes nothing when the branch already holds this board; replacing it uses a lease on the SHA read. The refresh script restores only its two files from temporary copies, so other uncommitted edits survive. The pull-request lookup is same-repository, into main, and fails closed. The checkout is always main. Tests run both scripts against a bare remote and a saved board.

Owner pick 430a: the job opens no pull request; the pull-request step was removed, and with it the pull-requests: write permission.

@bompus bompus added the author:anthropic Pull request written by a anthropic model label Nov 21, 2026
…old like their lower-case pairs (owner 428a: full case folding)

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 4 finding(s).

Comment thread scripts/refresh-panel-board.sh Resolved

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 2: findings below high are posted only within 3 lines of a change since f839a3c.

1 finding(s) found again and not posted again: an earlier review on this pull request already carries each one, under the ref code shown.

  • ref f064eb · .github/workflows/panel-board-refresh.yml:48 high: Weekly refresh force-pushes over existing panel-board-refresh commits and churns date-only updates

… and pushes nothing for an unchanged board; the refresh script restores only its two files; the PR lookup is same-repository and fails closed; checkout is always main

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 3: only high findings and above are posted from here on.

…-request steps, a merge commit on the branch is never the job's, a refused publish fails the run, and a test pins the lease

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 4: only high findings and above are posted from here on.

…t (owner pick 430a: Actions may not create pull requests)
@bompus bompus changed the title Weekly workflow: refetch the public board and open a pull request only when it changed Weekly workflow: refetch the public board and push a branch only when it changed Nov 21, 2026

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 5: only high findings and above are posted from here on.

@bompus
bompus merged commit 82c0949 into main Nov 21, 2026
2 checks passed
@bompus
bompus deleted the hr-panel-board-weekly-20261121 branch November 21, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:anthropic Pull request written by a anthropic model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant