From e6f181806c5ea3f7f40feb4199a4f6b3ce43d549 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Aug 2026 18:13:24 +0000 Subject: [PATCH] Republish the board when the board's own code changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #262 changed the hero and merged green, and the published page kept showing the old emoji for hours: `brain_board.yml` republishes on the 05:30 cron, a manual dispatch, or a `state/devbox_board.json` push — and a renderer change is none of those. The repo said one thing and the live page showed another, which is the one thing a morning surface must never do. `board/**` and `config/policy.yaml` join the push paths: the two inputs that decide what the page looks like and what vocabulary it speaks. The board is cheap to rebuild, so rebuild it when it changes rather than waiting a day. The daily cron stays — the board's content is time-varying, so most refreshes still have nothing to do with a commit. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01FhsBsESQUAoJQ2fvLiDD5j --- .github/workflows/brain_board.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/brain_board.yml b/.github/workflows/brain_board.yml index 6c20188..fcfdaea 100644 --- a/.github/workflows/brain_board.yml +++ b/.github/workflows/brain_board.yml @@ -31,10 +31,18 @@ on: # A dev-box publish (`pyauto-brain board publish`, usually morning.sh's # last step) pushes state/devbox_board.json to main — republish so the # board shows this morning's local observations a minute later. + # + # And whenever the page's own code changes. Merging a renderer or theme + # change used to leave the published board on yesterday's HTML until the + # next 05:30 cron, so the repo said one thing and the live page showed + # another — the emoji-vs-mark gap of #262 was visible for hours after it + # was fixed. The board is cheap to rebuild; rebuild it when it changes. push: branches: [main] paths: - "state/devbox_board.json" + - "board/**" + - "config/policy.yaml" permissions: contents: read