# Non-interactive runs A non-interactive run has no one to answer a question, so it asks none, in any phase. With no user present, whoever reviews the pull request it opens does the approving. So the run applies only what a reviewer can judge from that pull request, and lists everything else for a person to decide. **Outcome:** the checkout's generated files, and the review docs the run was asked for, are current and published as one pull request. Every change only a person can decide is listed in that pull request instead of made. A `standards` run covers only the review docs, as it does interactively. A run that finds nothing to change writes nothing and opens no pull request. ## What a run applies and what it only reports Apply a write when a reviewer can judge it from the pull request alone. That covers generated output (Step 5's example refresh), the `.gitignore` entries of Steps 7 and 8, and, when the invocation asked for review docs, the drafts and pointer lines `references/project-docs.md` produces. It also covers Step 5a's refresh of `config.yaml`: the pull request body lists every change with its reason, and the script's verification shows nothing else moved. On a reused refresh branch, first restore `config.yaml` from the default branch and refresh that copy, so edits the team made there since the branch opened are kept. Report a write instead of making it when it needs a choice only a person can make, removes content a person wrote, changes a file the pull request cannot show, or changes this machine rather than the checkout. That covers creating `config.yaml`, every change to the gitignored `config.local.yaml`, deleting `compound-engineering.local.md`, repairing `docs_root` or the `ce-work` engine settings, every Step 9 addition, moving rules out of an agent-instructions file or an AI reviewer's file, removing the legacy Codex tool map, and warming the npm cache. A run that did not ask for review docs leaves them alone. It reports whether they exist, because a repository without them has made a valid choice. A Compound Pack scaffold needs the user's approval. `references/pack-scaffold.md` already says what a non-interactive request for one does: it prints the preview and writes nothing. ## Review docs Follow `references/project-docs.md`, with these differences: - There is no offer and no in-session preview. The pull request body carries the preview: each rule added, changed, or retired as one plain line with the pull requests, commits, or records behind it, then a **Recommended** section listing everything this run only reported. - A new rule also needs its defect class to appear more than once in the evidence. A scheduled run sees a short window, and a single finding in it is more often a one-off than a convention. Changing or retiring an existing rule needs only the ordinary evidence. - Earlier refresh pull requests are evidence too. If one dropped a rule during review, or was closed without merging while it proposed the rule, leave the rule out unless evidence newer than that decision supports it. ## Publishing Name the branch `ce-setup/refresh-` so later runs can find this run's pull request. When an open pull request from a branch starting with `ce-setup/refresh` exists, do this run on the newest such branch, so the existing pull request is updated rather than joined by a second one. Otherwise start a new branch from the default branch. Never commit to the default branch. If the working tree has uncommitted changes before the run writes anything, write nothing and report that, because those changes would land in the pull request with this run's. After writing, invoke the `ce-commit-push-pr` skill with `mode:pipeline` to commit, push, and open or update the pull request. Pipeline mode leaves an existing pull request's description alone, so when this run updated one, invoke `ce-commit-push-pr` again with `mode:pipeline` to update that pull request's description from this run's changes. ## Ending Write the Phase 3 summary without its closing question. End with one line a caller can parse: `Setup complete: ` when the run published, or `Setup skipped: ` when it wrote nothing or could not publish, naming any branch it left behind.