Repository navigation
Refresh the Projector section of AGENTS.md and the site workflow - #215
Conversation
Projector 0.7.8's project init writes version 4 of the section, which tells every session to open pull requests as drafts, and project site workflow --write brings the site workflow to its current shape.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.8 · model claude-opus-5-5 · effort xhigh · CLEAN · took 4m 20s
This pull request brings the two files Projector generates in this repository up to what Projector 0.7.8 writes. The generated section of AGENTS.md moves from version 2 to version 4. Version 4 tells every session to open its pull requests as drafts and leave the ready transition to a clean review, and says that a fix to a stacked branch is carried up every layer above it right away. The site workflow gains a pull_request_target trigger on closed, so the site deploys again when a pull request merges or closes, and it skips that deploy for a pull request from a fork.
0 finding threads: 0 resolved, 0 open
Covered 2 of 2 changed files; no generated files skipped.
actionlint is not installed on the review machine, so the workflow was checked by parsing its YAML and reading each expression. The workflow has no run step for bash -n to check.
What was checked:
- The
AGENTS.mdsection is whatproject initwrites. Projector 0.7.8'sagents-block.mdtemplate, rendered withdocs/projects, is identical to the block between the markers at this head. The template at thev0.7.8tag ofninjudd/projectoris identical to the installed one. - Nothing outside the markers changed. Removing the marked section from
AGENTS.mdat the base and at this head leaves identical files, so "Docs", "Stack", and "Pull requests" are untouched. - The workflow is Projector's current shape. The file is byte-identical to what 0.7.8 writes for
@v0, branchmain, anddocs/projects, and the template matches the tag.project checkat this head printsProject plans are valid.with no warning. Onmainit warnsinstructions-outdatedandsite-workflow-outdated. - The new trigger never runs the pull request's code. GitHub runs a
pull_request_targetworkflow from the default branch at the default branch's commit, so the site action'sactions/checkout@v4checks outmain. Thegithub-pagesenvironment allows deployments only frommain, the ref that run carries, so the deploy is permitted. - No event text reaches a shell. The workflow has no
runstep. The pull request's fields appear only in theconcurrency.groupand jobifexpressions, which Actions evaluates itself, and the site action passes its inputs to its ownrunsteps throughenv. - A fork's pull request deploys nothing. The job's
ifskips a run whose head repository is not this one. That run takes afork-<run id>concurrency group of its own, so it cannot replace a deploy waiting inpages. Token permissions are unchanged:contentsandpull-requestsread,pagesandid-tokenwrite. - Action versions are as before. The workflow still calls
ninjudd/projector/actions/site@v0, a moving tag that points at the same commit asv0.7.8, and that action uses GitHub's own actions at major tags. This pull request changes neither.project site workflow --action-refpins a release tag or a commit if you want one. - The new rules agree with "Pull requests". That section says to open pull requests and never merge them, and that every review thread must be resolved before a merge. Opening as a draft and leaving the ready transition to a clean review fits both. CI runs on
pull_requestwith its default event types, so a draft still gets its checks. The release pull request is opened by the Release workflow, not by a session, so the draft rule does not reach it. - The site's review status is untouched. The site build counts a verdict only from an
OWNER,MEMBER, orCOLLABORATORauthor. This pull request changes neither that rule nor the token the build reads it with, so it neither causes nor fixes pull requests showing as Unreviewed on the site.
Projector 0.7.8 ships version 4 of the section
project initwrites intoAGENTS.md, and this repository's copy is at version 2. Version 4 tells every session to open each pull request as a draft, each layer of a stack included, and never to mark its own draft ready, because a review loop does that when the head reviews clean (ninjudd/projector#254). Until now that rule reached only sessions running Projector'simplementskill. Any other session opened its pull requests ready, so they looked signed off before a review had read them. Version 3, which this repository also skipped, adds that a fix to a stacked branch is carried up every layer above it right away, so each layer stays on the current head of the one below and the stack merges as a unit.The same refresh brings
.github/workflows/projector-site.ymlup to the shape Projector writes now, whichproject checkflagged as outdated. A pull request that closes, merged or not, now deploys the site, so the Reviews section shows it as Merged or Closed right away instead of open until the next deploy. GitHub runs that trigger,pull_request_target, from the default branch's workflow on the default branch, so the deploy never checks out the pull request's code. A pull request from a fork skips the deploy.project init --no-site --no-publish-ruleandproject site workflow --writefrom Projector 0.7.8 wrote both files. Nothing outside the Projector markers inAGENTS.mdchanged.Testing
From the repository root of a checkout of
projector-agents-v4, withproject0.7.8 installed and nothing to build:project checkprintsProject plans are valid.with no warning. An[instructions-outdated]or[site-workflow-outdated]warning means the refresh did not take. The--statlists onlyAGENTS.mdand.github/workflows/projector-site.yml.diffprints nothing, and any output from it is a change outside the Projector section. The last line removes the one temporary file the commands write.The new workflow trigger can't run before this merges, because GitHub runs
pull_request_targetfrom the default branch's copy of the workflow. After the merge, the next pull request to close starts a Projector site run with thepull_request_targetevent in the Actions tab, and that pull request reads Merged or Closed on the Reviews page once the run finishes.📽️ Projector summary of b58c024: https://field.amnes.ac/reviews/215