Repository navigation
ci: build site/ on the PR, and derive the Cloud approvals from wt - #986
Merged
Merged
Conversation
publish-site.yaml built site/ only on push to main, so a broken astro bump merged green and failed on the way to Pages. The same job now runs on a PR touching site/ or the workflow itself; deploy-site stays with push and dispatch. The Codex Cloud setup script hand-copied .config/wt.toml's command list into the approvals.toml it writes, which the next alias edit silently strands. It now reads the list out of `wt config approvals list --format=json`, so drift is impossible rather than caught later.
tend-agent
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two follow-ups from #981's sweep, each a pin whose bump nothing checked.
publish-site.yamlbuiltsite/only on push to main, so an astro bump merged green and broke on the way to Pages — which is why the weekly-bump table carried anastrorow telling the agent to runnpm --prefix site run buildby hand first. The build job now runs on any PR touchingsite/or the workflow file, anddeploy-sitepicks upgithub.event_name != 'pull_request'. Extending the workflow that already defines the build beat adding aci.yamljob, which would have been a second copy of the same four steps. Theastrorow is gone with the manual step: it's an ordinary "move to latest and let CI decide" pin now..config/codex-cloud/environment.shwrote the container'sapprovals.tomlfrom a hand-copied duplicate of.config/wt.toml's command list — correct today, and stranded by the next alias edit, at which point every unattendedwtrun in Codex Cloud fails the approvals gate.wt config approvals list --format=jsonalready emits every command the project declares, so the script reads the list from there and drift stops being possible rather than being caught after the fact.wt config approvals addis the primitive that should do this whole job, but it refuses a non-TTY even with--yes(checked against the pinned 0.73.0 binary, not just a local build), so the file is still written directly. If worktrunk gains a workingadd --yes, the block collapses to one command.What that gives up: the copied list doubled as a review anchor, since a new
wt.tomlcommand couldn't run in the container until someone edited this script too. It guards nothing here — the container runsenvironment.shitself from the same branch, so awt.tomla reviewer wouldn't trust arrives with a setup script they wouldn't either.The script now writes to
${XDG_CONFIG_HOME:-$HOME/.config}/worktrunkrather than a hardcoded$HOME/.config. That is where worktrunk documents it looks, and it is what makes the generation testable without touching a real approvals file.Verification
XDG_CONFIG_HOME: the generatedapprovals.tomlmatches the hand-kept file it replaces exactly, andwt config approvals listthen reportsapprovedwith 0 stale.config/wt.tomlputs it in the generated list and the state check still passes (reverted after)wt config approvals add --yesexits 1 on that same pinned binary, in both flag positions — the comment's claim is observed, not assumednpm --prefix site run buildsucceeds on this tree, so the new job lands green rather than redpublish-site.yaml, which is in the new path filter, sobuild-siteruns on the PR itselfpre-commit run --all-filesclean;uv run pytest554 passed