Skip to content

Refresh the Projector section of AGENTS.md and the site workflow - #215

Merged
ninjudd merged 1 commit into
mainfrom
projector-agents-v4
Oct 11, 2026
Merged

ninjudd merged 1 commit into
mainfrom
projector-agents-v4

Conversation

@ninjudd

@ninjudd ninjudd commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Projector 0.7.8 ships version 4 of the section project init writes into AGENTS.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's implement skill. 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.yml up to the shape Projector writes now, which project check flagged 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-rule and project site workflow --write from Projector 0.7.8 wrote both files. Nothing outside the Projector markers in AGENTS.md changed.

Testing

From the repository root of a checkout of projector-agents-v4, with project 0.7.8 installed and nothing to build:

project check
git diff origin/main --stat
git show origin/main:AGENTS.md | sed '/projector:begin/,/projector:end/d' > /tmp/agents-before.md
sed '/projector:begin/,/projector:end/d' AGENTS.md | diff /tmp/agents-before.md -
rm /tmp/agents-before.md

project check prints Project plans are valid. with no warning. An [instructions-outdated] or [site-workflow-outdated] warning means the refresh did not take. The --stat lists only AGENTS.md and .github/workflows/projector-site.yml. diff prints 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_target from the default branch's copy of the workflow. After the merge, the next pull request to close starts a Projector site run with the pull_request_target event 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

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 ninjudd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

📽️ 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.md section is what project init writes. Projector 0.7.8's agents-block.md template, rendered with docs/projects, is identical to the block between the markers at this head. The template at the v0.7.8 tag of ninjudd/projector is identical to the installed one.
  • Nothing outside the markers changed. Removing the marked section from AGENTS.md at 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, branch main, and docs/projects, and the template matches the tag. project check at this head prints Project plans are valid. with no warning. On main it warns instructions-outdated and site-workflow-outdated.
  • The new trigger never runs the pull request's code. GitHub runs a pull_request_target workflow from the default branch at the default branch's commit, so the site action's actions/checkout@v4 checks out main. The github-pages environment allows deployments only from main, the ref that run carries, so the deploy is permitted.
  • No event text reaches a shell. The workflow has no run step. The pull request's fields appear only in the concurrency.group and job if expressions, which Actions evaluates itself, and the site action passes its inputs to its own run steps through env.
  • A fork's pull request deploys nothing. The job's if skips a run whose head repository is not this one. That run takes a fork-<run id> concurrency group of its own, so it cannot replace a deploy waiting in pages. Token permissions are unchanged: contents and pull-requests read, pages and id-token write.
  • Action versions are as before. The workflow still calls ninjudd/projector/actions/site@v0, a moving tag that points at the same commit as v0.7.8, and that action uses GitHub's own actions at major tags. This pull request changes neither. project site workflow --action-ref pins 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_request with 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, or COLLABORATOR author. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant