Table of Contents

Agent workflow

Codex and Claude Code share one repository-owned workflow. Deterministic Git and .NET operations live in scripts, while repository-specific judgment lives in skills.

Entry points

Inspect the current workspace without changing Git state:

bash scripts/inspect-workspace.sh

Use the fast loop while implementing, and again as the gate the change is held to before it is committed:

bash scripts/verify-fast.sh

It refuses a branch that does not contain the base it will merge into, before it spends anything: it resolves the base remote, fetches main with an explicit destination refspec, and names the rebase when the branch has fallen behind. The base is asked twice locally and never in the pipeline is why that check is here rather than only in the full gate, and why no workflow has one.

Then it restores, builds Release, runs the unit suites the change can have broken, and formats the C# files the branch changed: everything committed since origin/main, staged, modified, or newly added. It is the only workflow script that rewrites source files, and every dotnet format pass it runs is a repairing one. Each file is formatted against backend/MailFathom.slnx, which is the solution that holds it, and formatting is skipped where the branch touched no C#. It ends on the same whitespace checks the full gate makes, over the staged and unstaged diffs and — where the base resolved — over the branch's committed range, because a whitespace error in a page, a workflow, or a Helm template is read by neither stack's formatter and by nothing in the pipeline.

The solution is built whole and tested narrow, and the two halves of that are measured rather than assumed. On the owner's machine an incremental Release build of the whole solution is about eight seconds and the whole suite is about eighty, fifteen thousand tests of which a change reads a handful of projects' worth — so the suite is where the cost is. Narrowing the build instead would buy the seconds and give up the analyzer verdict EnforceCodeStyleInBuild and TreatWarningsAsErrors produce over every project, which is the half of that step answering for the files the change did not open.

Which suites run is scripts/resolve-changed-unit-suites.sh's answer, read out of what each test project names in its own Include attributes — a ProjectReference to the project under test, or a Compile linking one of its files in, which is how AppHost.UnitTests reaches its subject while holding no project reference at all. A unit-test project is one whose name ends .UnitTests, the same rule backend/Directory.Build.props sets IsUnitTestProject by, which is what keeps Benchmarks and IntegrationTests out of the selection exactly as a solution-wide dotnet test keeps them out of its own run.

The relation is direct rather than transitive, and that is what the narrowing costs: a change to Domain runs Domain.UnitTests and not the Application.UnitTests that exercises the same types one layer up. A change reaching a path under backend/ that no test project names — a package pin, a shared build property, the solution file — is not narrowed at all and runs the whole solution, because each of those can move the verdict on a project nothing in the change touched. The run prints how many suites it ran of how many there are and names them, so a run that tested a quarter of the suite never reads as a run that tested all of it; CI runs every suite on the pull request, which is where the rest of that verdict arrives.

Which of the two stacks it does any of that in follows from the changed paths rather than from whoever started it; Which stack a gate runs carries how that is decided and what it costs.

There is no verifying pass behind it, because the build in front of it has already made that report. backend/Directory.Build.props sets EnforceCodeStyleInBuild beside TreatWarningsAsErrors, and .editorconfig gives the IDE rules severity warning, so a file with an unnecessary using, a missing licensing header, or formatting the rules reject fails the Release build with error IDE0005, error IDE0073, and error IDE0055, each naming its file and line.

One rule sits outside both halves of that. IDE0060 has no code fix, so the repairing pass cannot act on it, and the Release build passes over it despite .editorconfig setting it to warning. What names it is the verifying pass in scripts/verify-full.sh.

What the repairing pass is for is the remainder, which is real and is invisible to a build: the ordering of using directives and a missing final newline are dotnet format's own passes rather than analyzer rules, and no build reports either. They also have code fixes, which is why repairing them is the whole answer and verifying them again afterwards adds nothing.

Nobody runs dotnet format by hand. Both of its modes already run where they belong, so a hand-run pass either repeats a full workspace load to reproduce what the build named, or, over the whole solution, costs several times that and can rewrite files the change never touched. Fix what the build named and run the loop again.

Scoping is what makes the pass affordable at all. Each invocation reloads the MSBuild workspace, which costs the same regardless of scope, and the analysis that follows scales with the files in it: the whole solution costs several times what a handful of files does, and the ratio is what the two gates are built around rather than any particular number, which follows the machine. Splitting the run into the whitespace, style, and analyzers subcommands is slower still, because it pays the workspace load three times for work one invocation already does.

Ask what the change obliges elsewhere while reviewing it:

bash scripts/review-obligations.sh

That is the third kind of question a change raises and the only one no diff answers: not whether a changed line is correct, and not whether the build accepts it, but whether the change left the rest of the repository consistent with itself. What the change obliges elsewhere describes what it indexes and why it asserts nothing. It gates nothing and costs about thirteen seconds — a fixed cost rather than a small one, since it is what an empty diff measures too — which is still an order below every other step here, so it belongs in the loop rather than in a checklist somebody reaches for when a change looks like it needs one.

Ask whether a client screen still looks like the design it was built from:

bash scripts/capture-design.sh --out "$WORK_DIR/pairs" --screen <id>
bash scripts/capture-client.sh --out "$WORK_DIR/pairs" --screen <id>
bash scripts/compare-captures.sh "$WORK_DIR/pairs"

The first serves design/ to a browser, the second serves the client from the fixture corpus, and both read one manifest — frontend/design-parity/screens.json — so a pair cannot differ in size, state or device pixel ratio. The third compares each pair and answers in text: how many pixels differ, and where, as regions with the crop that opens one. frontend/AGENTS.md § Holding a screen against the design is the rule, including why the report is read before any image and why an invocation produces at most four pairs. None of the three gates anything, and nothing they write enters the tree.

Run the complete gate where its answer is wanted before a push, rather than as a step of every change:

git add <task-files>
bash scripts/verify-full.sh

CI asserts every verdict this script produces, on the pull request, from the same coverage target, the same contract suite, and the same client flow — and it does so on a runner per job rather than on the one machine the work is being written on. So what running it locally buys is the answer earlier, which is worth paying for when it is the answer being waited on: a coverage figure, the whole solution's formatting after a shared style input moved, a client bundle that has to build. It is not worth paying for on every change, and $finish-change no longer asks for it.

The full gate rejects remaining untracked files, fetches origin main and requires the branch to contain that freshly fetched base, and then runs the flow of each stack the change reaches. The server's is repository tools, the solution, a Release build, all unit tests through the aggregate 85% coverage target, and a verifying formatting pass; the client's is its own workspace restored, the bundle built, its unit suite run, and its own verifying formatting pass. The bundle is the whole of what it builds, because no native head is built by either gate — which the desktop head's own page states as a cost and which ADR 0027 accepts for the Android one. The client's suite reports its own coverage as it runs and no threshold is enforced on it, so the service's is the one figure either gate can fail on. Whichever ran, it then checks committed branch changes, staged changes, and unstaged changes for whitespace errors. Beside all of that it runs the workflow contract suite, where the change can have moved something it asserts. That chain stops at its own first failure; the suite is the one step outside it, so a suite that fails does not stop a build already running beside it, and a chain that fails stops the suite rather than waiting for it. The paragraph below states what each of those buys. Restore, build, test, coverage, and formatting can create ignored local artifacts, the gate records what it verified under artifacts/verify/, and the fetch updates refs/remotes/origin/main, but the scripts do not commit, push, or change branches.

Three of those decisions read what the branch changed rather than running over everything, and all three read it from scripts/list-branch-changes.sh, which the fast loop reads too so the two gates cannot disagree about what a change is. Which stack's flow runs is the third of them and is described under Which stack a gate runs.

In the service solution, formatting is verified over the C# files the branch changed. Formatting is a property of a file, so those are the files this branch can have broken, and everything else was verified by whatever change last touched it — the same argument ci.yml makes when it asks a pull request rather than a push. The one change that moves the answer for a file nobody opened is a change to a shared style input: an .editorconfig at any depth, backend/Directory.Build.props, backend/Directory.Build.targets, backend/Directory.Packages.props, global.json, or backend/MailFathom.slnx. Removing one counts, and is the half a list of the files that still exist cannot see: the rules a nested .editorconfig carried stop applying the moment it is gone, and every file beneath it is then read against the ones above without having been touched. That case, and only it, still verifies the whole solution here — the same list ci.yml gives its format: filter, for the same reason.

The client solution is verified whole and takes no such list. dotnet format loads the entire workspace whatever the scope, and this one holds two projects against the service solution's several dozen, so narrowing it would save a fraction of a pass the build in front of it has already paid for — while the whole-solution form is exactly what CI verifies, which makes it the verdict a branch is actually held to.

Either way the gate verifies rather than repairs, which is the whole difference from the loop: a change that never went through the loop is caught before it is committed rather than quietly rewritten as it is.

Whether a step can be skipped and whether its verdict can be skipped are different questions. CI runs dotnet format over the whole solution on every pull request whose change can affect it, and runs the contract suite on every pull request there is, so what the narrower local scope withholds is an earlier verdict rather than the verdict.

The contract suite runs beside the dotnet chain rather than in front of it. It builds the repositories it tests under its own temporary directory and fakes dotnet with a symlink to itself, so it reads nothing the chain writes and writes nothing the chain reads, and at 109 s against the chain's 105 s on the owner's machine, sequencing the two doubles the gate for no verdict. What that costs is stated rather than hidden: a failing suite does not mean an unspent build, because both are already running when the suite fails. The gate refuses either way, and it refuses having reported both answers rather than only the first. The opposite order keeps the cheaper shape — a chain that fails stops the suite instead of waiting it out, and says its verdict was not collected, because a broken build is not a tree worth reporting contract findings about and a compile error is worth answering in twenty seconds rather than a hundred.

Which stack a gate runs

The repository carries two stacks that share no solution, no build contract, and no package pins, so building one proves nothing about the other and a change that reaches neither is proved by building neither. Both gates decide that from the changed paths, and the decision is not the person's who started the run: a change under backend/ builds and tests backend/MailFathom.slnx, a change under frontend/ reaches the client stack, a change to a file above both reaches both, and a documentation-only change reaches neither.

Two client checks are deliberately outside both gates. pnpm test:browser builds the bundle, serves it, and drives it in a real browser, so it needs a browser install of its own; running it on every client change would put a 300 MB prerequisite in front of the loop for a check the pipeline makes on every pull request that reaches the client. pnpm test:desktop is outside them for a stronger version of the same reason: it builds the desktop shell and drives the WebView that shell renders in, so it wants a Rust toolchain, the platform's WebView packages, a WebDriver for them, and a display. .github/workflows/build-test-frontend.yml carries the argument for gating both there rather than nightly or locally — each is a job of its own in it — and frontend/tests/AGENTS.md says which checks belong to each rather than to pnpm test.

ci.yml has answered the same question since the client existed, in its detect-changes job, and the gates answer it from the same two lists rather than from a second opinion. scripts/resolve-changed-stacks.sh holds them — the build: filter for the server and the frontend: filter for the client — and matches a path against them the way dorny/paths-filter does, which is a prefix for a pattern ending in /** and equality for a literal path. The two copies exist because neither side can read the other: a shell script cannot ask the action what it would match, and a workflow cannot source a script. What keeps them one decision is a contract, the_gates_decide_from_the_change_filters_ci_declares, which extracts both filters from ci.yml and fails when either disagrees with the array beside it. The drift it prevents is the silent one: a path added to ci.yml alone would leave the local gate skipping a stack the pipeline is about to build, so a branch would pass locally and fail minutes later on a file the developer had in front of them.

Removals feed the decision beside the changes. list_changed_paths deliberately reports no deletion, because a file that is gone cannot be formatted — but deleting the last source file of a project moves what a solution builds as surely as editing one does, so both gates read list_removed_or_renamed_paths as well before they decide.

Three entries appear in both filters, and that is the answer rather than an overlap to resolve: .editorconfig becomes a build failure through EnforceCodeStyleInBuild for the service and is what Prettier reads its client section from, Version.props is the version both stacks stamp, and ci.yml itself decides whether either job runs. A change to one of those reaches both flows because it genuinely moves both.

Four files sit above both stacks and belong to one filter anyway, which is the same argument read the other way. scripts/read-declared-version.sh is the client's alone: frontend/src/Client.App/vite.config.ts and frontend/src-tauri/run-tauri.ts shell out to it for the number a bundle stamps, while MSBuild imports Version.props directly, so the client is the one stack build it can break. It is read outside both stacks as well — by scripts/build-schema-artifact.sh and scripts/build-winget-manifests.sh — and that is not what puts it here: neither belongs to a stack, and the publication channels that run them narrow nothing by path. global.json, NuGet.config, and .config/ are the server's alone — the SDK floor, the permitted feeds, the banned-symbol list, and the .NET test-runner configuration — and the client stack reads none of them. Neither filter names a path in the other stack's directory, and the_stacks_change_filters_name_no_path_in_each_other asserts that too, which is what makes a change to one stack cost nothing in the other.

That isolation has a cost, and the contract suite is where it is paid. A rule spanning both stacks belongs to neither filter, so a check written on either side is silent for exactly the change that breaks it. The client's example mail is the worked case: it is written by hand against /api/client, and a field renamed under backend/src/Host/Api/ reaches this repository only as a moved line in backend/tests/PublicSurfaces.UnitTests/http-api-contract.json, touching no client path — so the client job would report green on a corpus that no longer describes the deployment, and the service job would report green on a corpus it never read. the_client_corpus_states_what_the_contract_records holds the two against each other from outside both, in a suite that reads the whole tree on every pull request, and names the route, the field, and both spellings where they disagree. The casing difference is the failure it exists for: an enumeration arrives camel-cased over the MCP surface and Pascal-cased over /api/client, and a fixture copying the wrong one passes the linter, the type check, both unit projects and the browser suite, because the client's own hand-written types agree with it. A route the contract records and no fixture covers is reported rather than failed, because a route nothing has reached yet is work that has not happened rather than a defect.

Three things follow that are worth knowing before they are discovered.

  • A branch that changed nothing under frontend/ reaches nothing of that stack. The loop costs such a branch exactly what it cost before the client stack existed, which verify_fast_runs_restore_build_tests_and_formatting asserts by comparing the whole invocation log rather than a line of it.
  • A branch that did change something there runs the client's own flow. The loop restores the pnpm workspace in locked mode and runs its lint, its type check, its suite through pnpm test, and a repairing formatting pass; the full gate runs the same four with the formatting pass verifying instead, and adds the build — verify_fast_runs_the_client_flow_for_a_change_under_frontend and verify_full_runs_the_client_flow_for_a_change_under_frontend hold both to it, each by comparing the whole of what the flow invoked. CI's Frontend job runs the same commands: the four checks in the same order in one job, and the build in another beside it, as the first half of pnpm test:browser, which is what drives the bundle rather than a separate step in front of it. the_client_job_runs_every_check_the_full_gate_runs holds the workflow to the same list — so a lint violation, a type error, or a formatting difference fails in both places at one severity rather than in whichever of the two somebody remembered to teach. Neither gate touches the service solution for the client, and both need Node and pnpm on the path: a machine set up for the service alone fails the gate by name rather than skipping the stack. Building and testing the client carries what those commands are.
  • A change no build reads runs no solution. Documentation, a skill, a deployment asset, a board rule: the whitespace checks are what either gate has to say about such a change, and the contract suite is what the full gate adds and the pull request runs regardless — and between them that is the complete answer rather than a narrowed one, because nothing a build could have reported can be broken by a file no build reads. Both gates say so rather than exiting silently, since a gate that prints nothing reads as a gate that was not run.

Each stack formats through its own tool, and the split into a repairing and a verifying half is the same on both sides: the fast loop repairs and the full gate verifies. dotnet format reaches the service solution alone, over the C# files the branch changed, and Prettier reaches the pnpm workspace; neither is ever invoked by hand, because both already run where they belong.

The base is asked twice locally and never in the pipeline

Both gates fetch the base branch and refuse a branch that does not contain it, through one implementation in scripts/resolve-base-remote.sh: a base check that existed twice is a base check that can disagree with itself. The explicit destination refspec is what makes the ancestor test mean anything — a bare git fetch <remote> main writes only FETCH_HEAD, so a repository whose remote.<remote>.fetch is missing or remapped would keep a stale tracking ref and pass against it.

The fast loop asks it because it is the gate a change is held to locally, and because this is the one question the pipeline does not ask for it. Every other verdict the full gate produces arrives again on the pull request; this one never does, and it is cheapest to answer at the moment the drift appears rather than after the work is pushed.

No workflow gains this check, and adding one is the mistake this paragraph exists to prevent. A pull request whose branch has fallen behind main is not a pull request that failed: main moves whenever anything merges, so a freshness check in CI would turn every merge into a red check on every branch open beside it, none of which says anything about the change under review. The main ruleset already requires a branch to be current with main before it merges, and that is the whole of where the question belongs in the pipeline — answered once, at the point it decides something, rather than continuously against a base nobody is being asked to rebase onto yet.

One checkout carries on regardless, in the fast loop only: one whose remotes name no MailFathom at all. There is no base for it to be behind, so there is nothing to refuse against and nothing a refusal would teach that base_remote_resolution_hint does not already print — and that checkout is the fork whose second remote has not been added yet, which must still be able to build and test while the contributor fixes exactly what the hint names. The full gate refuses it, which is where that answer is owed.

A gate does not prove the same tree twice

Both scripts record what they verified. A run that passes writes a digest under artifacts/verify/, and a run handed a digest it already recorded prints the earlier run's time and stops without repeating its expensive steps. The digest covers everything a verdict depends on inside the checkout — the commit, which paths are in which state, the content of every tracked change, the content of every file Git is not tracking yet, and the verification scripts themselves — so anything that could move a verdict retires the record that preceded it.

Two runs over identical content reach identical verdicts, so the second one buys nothing. That was measurable rather than theoretical: across 150 session transcripts, 25% of full-gate runs and 13% of fast-loop runs re-ran a tree that no edit had touched since the previous green run of the same gate, 484 minutes of repetition on a conservative count. $review-change already stated the rule in prose; this is the same rule where a session cannot forget it.

Four things bound what a record claims.

  • It is written only when the tree stayed still. Each run takes the digest again at the end and records nothing when the two disagree. The fast loop is why: its formatting pass rewrites files, so a run that repaired something verified a build and a test suite against content the working tree no longer holds. That guard is also what would let either gate be started in the background beside an editing session.
  • A gate that failed writes nothing, however far it got.
  • The full gate's record answers for the fast loop, and never the reverse. Both run the flow of whichever stacks the change reaches, and the full gate's is the loop's plus coverage and the verifying formatting pass; passing the loop says nothing about coverage or the contract suite. The one step the loop does settle for the full gate is the scoped formatting pass over the service solution — the same tool over the same file set, and a record exists only where the repairing pass rewrote nothing, which leaves --verify-no-changes one possible answer. Neither whole-solution pass is settled that way — the client's, and the service's where a shared style input triggered it — because the loop never formatted that scope.
  • The base is deliberately not in the digest. Whether the branch still contains the current origin/main is asked afresh on every run of either gate, before any record is consulted, so a record cannot stand in for it. Folding the base in would retire every record each time somebody else merged, while proving nothing about this branch's own content. The whitespace checks read the base too, and run on every invocation for the same reason.

VERIFY_FORCE=1 runs everything regardless, and the message a skip prints says so. Nothing else reads the directory, and removing it costs one repeated run.

Both scripts refuse to run on main or master, before the fetch and before any dotnet invocation. The integration branch is never the subject of a change, so a gate reporting success there describes code nobody is about to modify, and the base check cannot notice: origin/main is trivially its own ancestor, so git merge-base --is-ancestor origin/main HEAD passes whenever HEAD is origin/main. The refusal names the branch it rejected. A detached HEAD and every other branch name still verify, and running from the primary checkout remains supported, because the hazard is the branch rather than the kind of worktree.

The opening guard in each script reports only whether the working directory sits inside a Git repository. It cannot establish worktree isolation: in Git terminology the primary working tree is also a worktree, and git rev-parse --show-toplevel succeeds in every checkout, so only git worktree add produces the linked worktree that start-task requires.

The base check runs before any dotnet invocation, so a branch cut from a main that has since moved fails in seconds rather than after the Release build and coverage run. It fetches rather than trusting the local remote-tracking ref, because a ref left behind by an earlier fetch describes the base as it was, not as it is. The fetch names its destination explicitly as +refs/heads/main:refs/remotes/origin/main: a bare git fetch origin main only writes FETCH_HEAD, so a repository with a missing or remapped remote.<remote>.fetch would keep a stale remote-tracking ref and satisfy the base check against it. An unreachable remote is a failure and never degrades into verifying against the stale ref.

Five cases in the contract suite that gate runs assert the licensing header rather than a script's behaviour. IDE0073 applies .editorconfig's file_header_template to C# and reaches nothing else, so the workflows, the shell scripts, the chart, the documentation site's own assets, the Quadlet unit sources, and the skills would each carry the mark only for as long as somebody remembered to type it, and nothing would say when one stopped. The cases read git ls-files against the real repository, which is what keeps the fixture checkouts the suite builds from either failing or satisfying them. Each surface states the same three lines in the form its own readers parse: a .yml or .yaml file opens with them as # comments and so does a .container, .network, or .volume file under deploy/quadlet/, a .sh file carries them under the shebang that has to stay first, a file under deploy/helm/mailfathom/templates/ carries them as a {{- /* ... */ -}} comment so the rendered manifest is unchanged, a .js module opens with them as // comments and a .css file as the one /* ... */ block it has instead, and a SKILL.md declares license and a metadata block, which is where the Agent Skills format puts them. A skill vendored from another repository is the exception: it keeps its upstream's license and names the upstream author and repository in metadata, and the check accepts it only while THIRD_PARTY_LICENSES.md names that repository and .gitattributes marks it linguist-vendored. Every other surface is compared against the text parsed out of .editorconfig, so the header stays one decision written in one place: an edit to the template that leaves the other files behind fails as a disagreement rather than quietly splitting the mark in two.

A seventh case walks the same tree for a different reason: no tracked text file may carry a literal NUL byte. One makes the file binary to everything that reads it as text — grep reports no match where there is one, so a helper written inside such a file is invisible to the search a later session runs before writing its own copy of it, and git diff renders any change to it as Binary files differ, so the change arrives unreviewable. The escape that means the same character costs none of that: \0 in a string, '\0' for the char. Which files are binary is read out of .gitattributes rather than from a list of extensions the check carries itself, because the repository declares that once already and a second list would stop silently at the first .props, .slnx, or Quadlet unit nobody remembered to add to it. Detection reads to the first NUL rather than asking git, whose own binary heuristic looks at the first 8000 bytes alone and reads a file carrying the byte further in as ordinary text.

An eighth walks it for a third reason: no two tracked paths may spell one name two ways once the final extension is dropped. theme.ts beside Theme.tsx is two files here and one on Windows and on macOS, whose filesystems ignore case, so a resolver asked there for the ./theme/Theme a component import names is answered by the logic module and binds to it. That is a break no gate can see: every job that builds the client builds it on Linux except the Windows desktop bundle, which Build the desktop client produces for the nightly and the release and for no pull request, so the nightly of 2026-09-01 failed on a tree every check had passed. The extension is dropped because an import naming none is exactly what a resolver adds one back to, and dropping it is equally what keeps Cargo.lock beside Cargo.toml out of the answer: those spell one stem identically, and only a stem spelled two ways is a collision. A leading dot is not an extension, so .npmrc is compared under its whole name. The case runs the sweep over the tree and then over four paths of its own, because a sweep asserting a clean tree passes just as well when it reads nothing and when its own pattern stopped matching.

The suite runs in two places and the second one is not a convenience. The Workflow contracts job of repository-contracts.yml runs it on every pull request, including a draft, on every push to main after a merge, and on the revision every nightly and every release publishes, which is what makes these contracts a property of the repository rather than of whoever remembered the gate: the change detection in ci.yml routes .github/, docs/, scripts/, and .agents/ to no other job — bar the one script that renders the Helm chart, which the Helm chart job beside it reads — because none of them can move a build, a formatting verdict, or the EF Core model, and the merge is the moment the tree they describe changes without any pull request having been wrong. A fork's pull request has no local gate behind it at all, and it is a fork's contributor who is most likely to change a workflow or a script without knowing what asserts it. What the full gate above keeps is the earlier verdict — a contract broken here is answered before the push rather than after it — and the job is the same command against the same tree, so the two cannot disagree.

That is also what decides when the full gate runs it. All but one invariant the suite asserts is carried by a file no C# change can move: a licensing header outside .cs, a describes: marker, a table-of-contents entry, a link. So a branch that only added or edited C# files has almost nothing here to break, and the gate skips the suite for it. The exception is the NUL-byte sweep above, which reads every tracked text file rather than a list of extensions and so reads .cs too: a C#-only branch that plants one is answered by CI rather than by the local gate, which is the one verdict this skip defers instead of having nothing to ask for. A path the branch removed or moved runs it whatever the path was, because a marker and an entry name a path and the files that remain say nothing about one that left. So does a change list the script cannot determine, which is a repository state to fix rather than a verdict to guess at. CI is unconditional either way, which is what makes this an earlier verdict withheld rather than a verdict lost.

The mutation score is read, never enforced

Coverage stopped discriminating. It has sat above 95% for months, and what it reports is that a line ran rather than that anything asserted its result — so a test that executes a branch and checks nothing raises the figure exactly as far as one that pins the answer down. Mutation testing asks the question coverage stopped answering: it changes the production code and reports which changes no test noticed. A surviving mutant names a line whose behaviour nothing depends on, which is where the next test is worth writing.

That answer is diagnostic, and the whole point of it is lost if it becomes a number to reach. So nothing gates on it, in four separate places rather than one: scripts/mutation-score.sh passes --break-at 0, so the score never decides an exit status; mutation-score.yml sets continue-on-error, so whatever else this job does never decides the run's; neither verification script calls the script at all; and no pull-request workflow does either. It runs on the diagnostics channel, and only when somebody dispatches it — diagnostics.yml calls mutation-score.yml, which calls the script — where tens of minutes of runtime and a preview test runner's false positives cost nobody a merge. Read the score, act on what survived, and never enforce either. It is the same arrangement the hot-path benchmarks sit under in the same workflow, for the same reason backend/tests/AGENTS.md § Cost claims gives: a measurement worth watching across releases is worth nothing as a threshold.

Two projects and no others. Domain and Application hold the invariants and the use cases, which is where a surviving mutant names a missing assertion; the adapters under Infrastructure, Mcp, Host, AI, and Cli would spend the runtime generating mutants against a database, a mail server, or a protocol shape, and nobody would act on the report. --project states that per run rather than leaving it to whatever a test project happens to reference.

The runner is Microsoft Testing Platform rather than Stryker's default. That is not a preference: xunit.v3.mtp-v2 carries no VSTest adapter, so the default runner finds no tests here at all. Stryker calls its MTP runner preview and says so on every run, which is the second reason this is a dispatched report and not a gate.

No score fails anything, and a score is the only thing that cannot. Stryker failing to produce a report at all still turns the job red — the script exits non-zero when the JSON report is missing, and the step runs under pipefail — and that is the one failure worth surfacing, because it says the diagnostic did not come out. What continue-on-error decides is how far that failure travels: the job is marked failed and the run around it stays green, so a missing report is legible on the run that should have carried it without reading as a verdict about main.

Each run leaves mutation-report.html on the workflow run under mutation-report-<project>, which is the form the next unit of test work is chosen in: every surviving mutant beside the source line it replaced. The step summary carries the score and the same survivors counted by mutator, so the shape of what the suite is missing is legible without downloading anything. A mutant Stryker reports as NoCoverage is a survivor no test even reached and counts against the score beside Survived; one withdrawn as a compile error scores nothing either way.

The same script is what to run locally against a suite being worked on, and it takes the projects to measure:

bash scripts/mutation-score.sh Domain

It leaves Stryker's own concurrency alone, which is half the machine's cores — the right manners while somebody is working on that machine, and part of why a local Application pass takes about an hour where Domain takes five minutes. The rest of that gap is the work itself: Application mutates into 3955 testable mutants against Domain's 1764, over a suite whose tests are slower apiece. Set MAILFATHOM_MUTATION_CONCURRENCY to spend more of the machine than the default. The workflow sets it to the runner's core count, because a hosted runner is doing nothing else and is discarded afterwards.

Which remote is the base

Every script above needs one answer: which remote is MailFathom. In the owner's checkout that is origin and nothing else was ever needed. In a fork origin is the fork, whose main is whatever the contributor last synced, and the convention every Git host documents is a second remote named upstream.

scripts/resolve-base-remote.sh is that one answer, sourced by inspect-workspace.sh, verify-fast.sh, and verify-full.sh rather than reimplemented in each. It identifies the remote by the repository it points at, not by its name: a URL whose trailing owner/name is fathomise/MailFathom, with an optional .git suffix, in any of the forms Git accepts. upstream and origin are preferred in that order so a fork configuring both gets a stable answer, and a remote under any other name still resolves.

Assuming origin in a fork is the worse of the two failures available. The branch either fails the base check with a message naming no fix a fork owner can apply, or — the quiet one — passes against a base that is not the one it will merge into, which is a green run that proves nothing. So when no remote names MailFathom, the full gate refuses before any dotnet invocation and prints the two commands that fix it:

git remote add upstream https://github.com/fathomise/MailFathom.git
git fetch upstream main

inspect-workspace.sh reports the same state without failing, as Base branch: unresolved, because it changes nothing and is read before the work rather than at the gate. The fast loop degrades instead of refusing: the base only decides which files it formats, so a missing one narrows the scope rather than producing a wrong verdict, and a contributor repairing their remotes is not also blocked from building and testing. scripts/test-agent-workflow.sh carries a contract for each of those four behaviours against a real second repository.

The two roles

The repository is public and the roadmap board is not, so the contract runs in two places. Root AGENTS.md § The two roles this contract is written for states which rules belong to only one; this is how the skills tell them apart.

start-task resolves the role from the workspace rather than from a question. Base branch: origin/main means origin is MailFathom, which is the owner's checkout; anything else means origin is a fork. That settles which repository this is, and it deliberately does not settle what the session may do with the board, because the owner grants read or write on project 1 to a contributor whenever they decide to. So the skill asks separately, in either role, with { organization(login: "fathomise") { projectV2(number: 1) { viewerCanUpdate } } }: true is write, false is read, and neither of them is a null project beside a NOT_FOUND error, which is how GitHub reports a project the viewer cannot see — it hides one rather than refusing it, so the answer for no permission is worded as does not exist and is read as neither. One call, and the answer a CLAUDE.local.md already carries is confirmed rather than replaced.

What differs is narrow and is listed in both skills at the step it applies to, and it splits along those two facts. The repository decides the branch name and the linked worktree, every label the issue carries and its milestone, and which remote is pushed to; the board probe decides the Area, Queue, and Size fields and the Queue: Next write when the pull request opens. A contributor the owner granted board write therefore places an issue exactly as the owner's checkout does while still not labelling it, which is the point of separating them. What does not differ is everything else, including both verification scripts, every gate, the pull request, and the Closes #<issue> reference.

The board write is the one that has to be reported carefully. Without write access it is not a gate that was skipped — a grant on the owner's board is theirs to make, so the step does not exist in that session, and finish-change reports not applicable (no board write) rather than leaving a report that looks incomplete. review-change, check-docs-licenses, closed-enumeration, and add-migration need no authority over this repository at all and run unchanged in both roles. prepare-release is the owner's alone for a different reason: its frontmatter sets disable-model-invocation, so no agent reaches it in either role.

Stating the role before a skill resolves it

That resolution happens one step into a session, and a session is not obliged to start there. A question about the code, a fix small enough that nobody reached for a skill, review-change or finish-change invoked on its own, a harness that loaded no skill at all — each runs on root AGENTS.md, which states both roles and cannot say which one is running. The fork role is then inferred, and the inference has a direction: this contract writes the owner's steps down in more places than the fork's, because those are the steps that need writing down.

What a wrong inference costs is a turn each time, and every one of them is visible only after it fails: a board write that returns a permission error, a type:* label assigned where nothing can assign one, a push refused by fathomise/MailFathom, a branch renamed to agent/<short-description> for nothing. So a contributor settles it once, in a file their harness loads before the first message and this repository ignores.

Claude Code reads CLAUDE.local.md from the repository root immediately after CLAUDE.md, appending it rather than replacing it, which is the shape wanted: the contract holds and one fact joins it. Codex has no per-directory equivalent. It includes at most one file per directory and prefers AGENTS.override.md to AGENTS.md, so a root override would displace this repository's contract instead of adding to it; its global ~/.codex/AGENTS.md is read before the repository's files, and that is where the same sentences go. .gitignore carries *.local.md so neither can reach a commit by accident — no protected path catches one, because CLAUDE.local.md is not CLAUDE.md and the guard matches a whole file name. .worktreeinclude copies *.local.md into a new worktree for the same reason it copies .env: a gitignored file otherwise exists only in the checkout it was written in, and the workspace an agent works in is not that one. It matches the same suffix .gitignore does rather than the one root name, so a local instruction file kept beside a second stack's own work arrives in the worktree as well; only paths that are already gitignored are ever copied, which is what lets the pattern be exactly as wide as the ignore rule it mirrors.

Four sentences are enough, and what earns a place in one is what an agent would otherwise get wrong: which remote is which, that project 1 is unreachable and its label, milestone, and board fields belong to triage, that nothing is pushed to fathomise/MailFathom, and that the branch keeps the name it was given. The wording itself is written once, in .agents/skills/get-started-contributors/SKILL.md, and repeated once where a contributor reads it, in CONTRIBUTING.md § Tell your agent it is working in a fork; this page carries the reasoning and deliberately not a third copy.

None of it is a rule the skills fail to enforce — start-task reaches the same answer from the remotes. It is the sessions that reach no skill, which is most of the short ones.

Skills

The canonical skills are:

  • get-started-contributors takes somebody from arriving to a first green run: a welcome, then an orientation in what MailFathom is, how this repository is worked, where both stacks and the design live, what the AGPL grant and the contributor licence agreement each ask, what each closure carries that is not permissive, the file header that carries no name, and what a public repository is careful about — and then the setup, which is the platform check that refuses anything but Linux, the toolchain both stacks need and how each piece of it is installed, what this machine's credentials may and may not do here, the remote the gates resolve their base from, the local instruction file above, the commands an agent harness has to permit for the loop to be a loop, and the refusals no probe can ask about. The capability step is the one that runs before anything is written: which repository origin is answers only which clone this is, so the skill asks the repository and the board what this credential holds and says the two answers back as one account of what may and may not be done. It is the one skill written for somebody who has not read this page, and it changes no tracked file. Like prepare-release it sets disable-model-invocation, for the opposite reason: setting a machine up is asked for by a person, and an agent that hits a missing SDK mid-task has a blocker to report rather than an installation to perform while nobody is looking. It is asked for more than once all the same, because what it puts on a machine does not hold still — the SDK pin, the client's Node and pnpm pins, the repository-local tools, the permission list, the role file's wording, and a board grant each move without the machine hearing about it. A completed run writes mailfathom-setup.json inside the clone's git directory, resolved through --git-common-dir so it is one file per clone however many worktrees read it and so no commit can reach it, and a later invocation reads it and refreshes instead of repeating: it diffs the recorded base commit against the current one over the paths a local configuration is written from, leaves an installed tool alone while its check answers, runs all three capability probes again because none of them is written in a commit, and rewrites the role file and the permissions only where they differ. Deleting that file is how a first run is asked for again;
  • start-task requires a clean workspace or an explicitly approved inventory and preservation plan, identifies or creates the GitHub issue that governs the task, refuses it while another open issue blocks it, places it on the board and claims it with agent:claude or agent:codex, then loads the applicable documentation and ADR context before edits. The refusal reads the issue's own blocked by list, so what stops the session is the order the tracker records rather than a judgement the session makes; an issue it opens carries that order out to the tracker in the same pass that places it. Its brief also says whether the change looks large enough to split, which lands there rather than on the board's Size field because this is the last point before the first edit at which anything has read the issue against the repository, and the warning needs the surfaces a change reaches rather than a count of the sentences describing it;
  • read-design points at the state inventory a client screen is built from. What it exists to prevent is a screen built from a picture — a rendered preview shows the one state it was clicked into, while the source states every screen, every variant and every reaction at once, so the empty state, the failing state, the state that only exists under a coarse pointer, and the state no click reaches at all are each invisible in a screenshot. What it reads is design/, the artboards written in this repository with their data, logic, and styles in files of their own, so every clone runs the whole design loop. The inventory's last section is the one that has to be there: the states the source gates and no preview reaches. One of those is a gap rather than a screen to invent — it is closed in design/ first, in a change whose issue asks for it, never in the client as a guess. When the task is the design itself, the skill says what that change owes: the inventory and the parity pairing moved in the same change, sample data kept made up and in data/, and the artboard opened at the compositions it reaches. How that change is authored is design/AGENTS.md's: the vendored design skills a screen is drawn with, and the bar an artboard's own code is held to;
  • review-change performs a findings-first diff review and records verification status and residual risks, and reruns the fast loop only when something has invalidated its last green run;
  • check-docs-licenses is the mandatory documentation, changelog, and licensing gate;
  • finish-change stages only the task files, requires that gate, runs full verification, checks the final diff, creates a focused commit, pushes the branch, opens a pull request that references its issue with Closes #<issue>, and then moves that issue to Queue: Next so the board shows the work as in flight and writes its Size from the pull request's own additions + deletions, which is the first moment that field can state a measurement rather than the placeholder the issue was opened with;
  • prepare-release opens the two pull requests a release consists of and prints the order they and the tag between them have to land in. It composes the changelog section from what merged since the previous tag, reading each closed issue against its parent, so a feature the release delivers only part of is written as what the reader can do now rather than as the capability its parent names. Its changelog pull request also brings server.json onto the release version, carries the files that name a version in prose, and sweeps for prose describing the release state without naming one, because all go stale at the tag and none is reached by <VersionPrefix>. Three readings sit beside those edits, for the one reason that governs the whole step — the tagged tree is what a registry, a listing, and every new reader meets: server.json's description and the two committed pages a registry renders are each read against what the release actually publishes, and the root README.md is read end to end and pruned, because it is the file every feature adds a sentence to and no later change reads whole. After the release workflow succeeds, its printed sequence publishes and verifies that metadata in the official MCP Registry; the version-bump pull request leaves server.json on the latest stable release while <VersionPrefix> names the next one. Before either pull request it settles the milestones — creating the next one if it does not exist, opening the issue that tracks that release in it, moving what is still open into it, and closing the one being released — which is the reason the release being worked never stands without the issue that closes it, whether that milestone was created there or had already been opened as the target of a parent whose children span releases. Both of its pull requests name the tracking issue for the release being cut, and the version-bump one closes it, because a release is finished when main names the next version rather than when the changelog merged. It is one of the two skills an agent cannot invoke — its frontmatter sets disable-model-invocation, so only the owner reaches it, because when a version becomes real is their decision. It pushes no tag and merges nothing; docs/operations/release-procedure.md records the same sequence for a reader without the skill.

Issue tracking and the roadmap board holds the issue rules themselves: which work needs an issue, what an issue body contains, the type:* label it carries, the backend or frontend label saying which stack the work lands in and the case that takes neither, the agent:claude or agent:codex marker a session applies when it takes one, the Area, Queue and Size fields that place it on the board, the milestone that scopes it to a release, the dependency relation that records which issue has to land before which — distinct from both the sub-issue hierarchy and the blocked label, and read by start-task before it takes anything — the delivery table every parent carries those relations in, and which board transitions belong to the project automation rather than to an agent. It sits there rather than in root AGENTS.md because it is acted on twice per task and read by nothing else, so an always-loaded copy would cost every session that touches no issue. start-task and finish-change each name it at the step that writes the board. Placing an issue is part of opening it, because the built-in workflows set Status and nothing else.

That same limit is why Queue: Next is written by a skill rather than by an automation. No project workflow can set a custom single-select field, and the workflow token reaches no project at all, which leaves an account-wide token as the credential a GitHub Actions run would use — so the write stays where a token that already exists is already in use, and a pull request opened by neither finish-change nor prepare-release moves nothing.

Those rules describe an issue an agent opened. A public repository also receives issues nobody here opened, and one arrives with no type:* label, no stack label, and no board fields because none of the rules reached its author. The same page holds that path too: the missing type:* label is what marks an issue untriaged, triage either places it by the ordinary rules or closes it as not planned with a reason, a question moves to Discussions instead of being given a label so the board has somewhere to put it, and a contribution is read cheapest-check-first — required checks, then Protected paths, then the code-owner review. The Triage board view is where an arrival waits, and an item the project opened itself never reaches it.

The three Discussions categories that routing rule names — Q&A, Ideas, and Announcements — are the ones this project answers. The remaining defaults GitHub creates are unused and are removed in the repository's Discussions settings, which is a manual step rather than a scripted one: the GraphQL API exposes no mutation for a discussion category, so nothing in this repository can assert their absence and a periodic look is what catches a re-created one.

Skills live under .agents/skills/. Claude Code consumes the same directory through the relative symlink .claude/skills -> ../.agents/skills; do not copy or maintain a second skill tree. .agents/skills/README.md lists every skill with its source and licence, which is where to tell the project's own skills from the ones vendored from another repository.

Rules on the pull request

Apply pull request rules derives every fact a pull request earns. A change is read in places the issues it closes never reach — a list, a notification, a reviewer deciding how closely to look, a board column the owner works from — and each of those facts follows from the same few inputs: the pull request, the issues it closes, and whether it still merges. Deriving them in one pipeline rather than in a workflow apiece is what keeps a new rule from costing another trigger, another checkout, and another run for one small thing.

Every condition lives in a script under .github/pull-request/ and none of them in the workflow, so a new rule is one edit to a script the contract suite runs rather than a rule spread across whichever workflows happen to care.

The two jobs are split by the event that can answer them, which is also what keeps each run short. Fathom review waits for this workflow's run to conclude before it reads the labels off a pull request, so anything slower on that path delays every review.

Labels the change earns

Labels follow from the body, so they are decided on a pull_request event when one is opened, reopened, marked ready, or edited — that last one because the body is an input: a closing reference added afterwards changes which issues describe the change and therefore which labels it earns.

One condition exists today: a pull request earns security when any issue it refers to carries security, the label Issue tracking defines as needs a security review before it merges.

Refers to, not closes, and the difference is the point. collect-referenced-issues.sh collects every issue the body names — a closing reference, a bare #123, and a link to an issue in this repository alike — where collect-closing-issues.sh, which the reviewer's collection and every board write use, asks GitHub for the issues the merge will actually close. The two answer different questions: what merging completes is a contract a review holds the change to and a set of items the board acts on, while what the change is about is what a label says, and "part of #123" against a security issue is a change somebody wants read that way whether or not it finishes the issue. That is also why only one of them is a reading of the body: a mention has no resolved answer to ask GitHub for. An issue in another repository is left out by both, because a label earned from another project's numbering and a board item on another project's roadmap are the same mistake.

The labelling only ever adds. A label a hand applied answers a question this pipeline cannot see — fathom-review is the worked example, and it means somebody asked — so nothing here removes one, and re-applying a label already present changes nothing and fires no event. An issue that cannot be fetched earns nothing rather than stopping the walk: reading a label is how a condition is decided, so an unreadable issue is a condition that was not met rather than one to guess at.

It uses pull_request rather than pull_request_target, which stays reserved for Fathom review alone. Nothing here needs that trigger's elevated token, and the cost of not taking it is a fork's pull request: GitHub hands every workflow a read-only token there whatever the file declares, so the write is refused, the run says so and ends green, and a maintainer labels a fork's pull request by hand exactly as they already start its review by hand.

What it checks out follows from that trigger rather than from Fathom review's rule, and the two look opposite for a reason. pull_request_target runs the workflow file from the default branch, so pinning the checkout to the base is what stops a branch supplying any of the code that judges it. pull_request runs the workflow file from the head, so the branch already supplies the job: pinning the base would withhold nothing from it and would only guarantee that a change adding a script together with the call to it runs the new call against a tree without the script. That is not hypothetical — it is how the pull request introducing this workflow failed, with No such file or directory. So the checkout is the merge ref this trigger defaults to, which is the tree the workflow file itself came from, and the read-only token on a fork is what bounds what a script from there can do.

The board status the state earns

A board status follows from three things a pull request cannot announce for itself: whether it still merges, which changes when something else merges into main; whether the reviewer approved the head in front of us; and what its pipelines concluded. GitHub raises nothing on the branch a merge happened to, so this job is triggered by the push to main and reads every open pull request from the other side, and it is triggered again whenever a pipeline concludes, for the one pull request that run belongs to. It never runs on a pull_request event, where it would answer nothing and lengthen the wait Fathom review performs on this workflow's run.

The trigger for the second of those is workflow_run rather than check_suite, and that is not a preference: GitHub does not raise check_suite for a suite GitHub Actions created, which is every pipeline here. The workflows are named one at a time because there is no workflows-ignore, and naming them is also what keeps this workflow off its own list — a run that triggered itself would conclude, raise the event again, and chain until GitHub's three-level limit stopped it. CodeQL is left off for a different reason, the one the rules below leave it out for. scripts/test-agent-workflow.sh holds the list to exactly the workflows a pull request runs, in both directions, so a new pipeline cannot be forgotten into a pull request that then never reaches Ready to merge.

Four rules live in .github/pull-request/select-board-status.sh, read top to bottom:

  • A check that failed on the head earns Changes requested, whatever the review said. That column says the change is waiting on the agent rather than on the owner, and a red pipeline is exactly that whether the objection was written by a reader or produced by a build. FAILURE, TIMED_OUT, ACTION_REQUIRED, and STARTUP_FAILURE are what count; SKIPPED and NEUTRAL are the ordinary shape of a job a path filter turned off, and CANCELLED is what a superseded run leaves behind on a head that has since been read again.
  • A head the reviewer withheld approval on earns Changes requested as well. That verdict is published as a COMMENT review on purpose, so that a reviewer reporting no status check cannot block a merge, which is exactly why GitHub's built-in Code changes requested workflow never fires for it — this rule is the column's only writer.
  • An approved head earns Ready to merge where it still merges and Conflicts where it does not, and this is the rule the pipeline exists for. Fathom review reads the diff and cannot see the pipeline, so an approval published while Required CI is still running says nothing about whether the change builds; both halves are asked here, where both are visible. Either verdict has to be of the head in front of us — GitHub keeps a review against the commit it was written on — and Ready to merge also needs the pull request to read MERGEABLE rather than merely not CONFLICTING, because a column claiming there is nothing left to wait for is claimed from an answer rather than from the absence of one. The two columns carry one authority, every status but Done and Blocked: both say the reviewer and the pipelines agree, and they differ only in whether the owner merges or the agent rebases. That is what moves an approval that met a conflict before its pipelines finished, which never reached Ready to merge.
  • A pull request that no longer merges and that none of the rules above describes moves the issues it closes from Ready to merge to Conflicts. That is a draft, and a head no review has answered: neither carries a verdict, so all the rule can say is that a change which had been ready stopped merging. Ready to merge says the change is waiting on nothing but the owner pressing the button, and a conflict is precisely the discovery that it is not. From Ready to merge and from nowhere else — an item still being written, already blocked, or already done says nothing about whether a conflict is news, and a rule that moved those would report the same conflict on every push to main for as long as it went unresolved.

Every rule but a draft's is decided only once every pipeline outside the ignored set has finished. That is one condition stated where the checks are counted rather than a copy of it in each rule, and it holds for every verdict because each claims something about the whole state of the change: Ready to merge and Conflicts say nothing is left to wait for but one act, and Changes requested says what is owed is the agent's answer — while a run still in flight can add to what that answer has to cover. So a review published minutes before Required CI finishes moves nothing until it does, a check that failed beside one still running waits with it, and the pipeline that concludes last raises the event that asks again.

Whether the change still merges is asked after the verdicts, not before them. A conflict is not an answer to what a reader or a pipeline objected to: a head the reviewer withheld approval on owes the answer and the rebase both, and the column that says the agent owes something is Changes requested. Asked first, the conflict rule would print a status whose write is refused everywhere but Ready to merge, and the verdict it shadowed would never be published — the item would stay in In review until a hand moved it.

Two sets of checks are not read, and a draft earns none of the verdicts. CodeQL is not a required check on main: a finding there is worth acting on and does not make the change unmergeable, so reading it would hold every pull request out of Ready to merge for a question the ruleset does not ask. Apply pull request rules's own checks are not read because nothing they publish says whether the change builds — they are a label and a board write — and a rule that read them would be deciding partly from its own run. And a draft is work being written rather than a change asking for anything, its checks red as often as not while it is.

That is also why CodeQL may still be running when a verdict is published: it is outside the wait for the same reason it is outside the rules, which is that merging does not wait on it either.

A draft is still asked the last rule, and deliberately: it is true of an item already in Ready to merge, which is a pull request that had been ready and has since stopped merging. Converting one back to draft does not make the conflict less true, and the rebase is owed either way, so a draft still leaves that column when its branch stops merging.

None of this is a gate, and reading it as one would be the mistake to make here. A pull request from a fork supplies the workflow files its own checks run from, so what those checks conclude is the fork's to decide; what stops that mattering is that merging is guarded by the main ruleset and by a person, and Ready to merge is a column the owner reads rather than permission to merge.

A rule states the statuses it may act on and the statuses it refuses to overwrite, and the job passes both to write-board-status.sh unread. Those are the two directions of one question, and which one a rule uses says what it means: the rules about a review and a pipeline — both routes to Changes requested, and an approved head earning Ready to merge or Conflicts — describe any item they find and name the two statuses they must not erase, while the rule about a conflict nothing has a verdict about, a draft or a head no review has answered, is only true of an item that had been ready and names the one status it is entitled to move.

The waiting is the part with no shorter form. GitHub computes mergeability when it is asked and not before, so every open pull request reads UNKNOWN for the first seconds after a merge — which is exactly when this runs. The job polls within a bounded window and names, as a notice, every pull request it never got an answer for; the next push to main decides those. Reading UNKNOWN as a conflict would instead move an item on every merge.

Three ceilings bound the work and each reports what it cut: how many open pull requests one sweep reads, ordered by when each was last updated, how many checks on a head are read, and how many issues one pull request's closing references are followed. A pull request, a check, or an issue nobody was told about is a board item silently left behind or decided from half the answer, which is the same reason the reviewer's own ceilings report.

Nothing here is refused on a fork's pull request, unlike the labelling above: both triggers fire in this repository with this repository's own token, and each reads a fork's pull request exactly as it reads any other. That is also why a concluded pipeline is traced back to its pull request through the head it ran on rather than through workflow_run.pull_requests, which a run started by pull_request_target — the trigger Fathom review and Contributor licence hold — carries empty. What the job does need is BOARD_PROJECT_TOKEN, the same classic token carrying the project scope that Fathom review's writes need, and without it the job says so and ends green.

The licence a contribution earns

Contributor licence asks an external contributor to accept CLA.md and records the acceptance. It is a separate workflow rather than a job of the pipeline above, and the two reasons are the same fact read twice: it needs a write-capable token on a pull request from a fork, which pull_request never supplies, and it needs issue_comment, which the labelling pipeline has no use for. Folding it in would put the elevated trigger on the run that also derives every label, which widens the exception the next section grants rather than containing it.

What it derives is one commit status, license/cla, published on every run so a pull request always carries a current answer rather than one from before the last push. An author who is the owner, a collaborator, or an organisation member where the repository is owned by one earns success without being asked anything: those are the accounts that already hold write access here, and the workflow reads them off author_association. A bot earns it too, on a different field and for a different reason — user.type, because a bot's output is not a work of authorship anybody could grant rights in — success rather than nothing, because an absent status and one that has not run yet are indistinguishable. Everyone else earns it by replying to their own pull request with the sentence CLA.md names, as the whole of the comment; the workflow appends an entry to signatures.json on the cla-signatures branch and the status turns green. The sentence has to be the comment rather than appear in it, because an acceptance is a legal act and a contributor quoting it inside a question about whether to accept has not accepted — casing, surrounding whitespace, and a trailing full stop are normalised away, and nothing else is.

The request is made once per version of the agreement rather than once per pull request, which are the same thing until CLA.md is revised. A contributor who has not answered has already been asked, so asking again on every push would be a notification storm — and what stops that is the marker the request comment carries, which names the version it was made about. Every later push reads that marker and says nothing. A revision landing on main while a pull request is open is the case the version buys: the author's signature names the older text, so signed turns false and license/cla turns red, and the pull request would otherwise carry a new red status nothing on it explains. Instead the request is made again, opening with what changed rather than repeating itself, which is CLA.md § 5 — a later version is a new acceptance, asked for in the same way — implemented rather than asserted.

One property is the whole of why this is safe to run with the App's token — nothing from the contribution is ever fetched or executed — and only_the_recorded_workflows_use_pull_request_target asserts it three ways rather than leaving it to this page: the workflow checks nothing out, the one action it reaches is the token mint, and no step of it runs a command that fetches content. The third is there because the first two read uses: lines alone, and a step that shells out to a version-control, download, or CLI command to pull the fork's head adds no action reference for them to catch. A step added here that clones the head, restores it, or runs anything out of it hands the token to whoever opened the pull request, and the test fails before a reviewer has to notice.

The register is appended to by compare-and-swap — the ref is updated with force=false, so a register that moved under a run produces a rejected call and the run reads again, five bounded attempts with jittered backoff. Only that rejection is read again for: the call's own output is kept rather than discarded, and a refusal that is not the non-fast-forward — a permission the App does not hold, a ruleset that does not admit it, a branch that is gone — ends the step immediately with the message the API sent, because retrying a permanent refusal spends the budget proving it four more times while the reason stays invisible. The license/cla status tells the two apart, and tells both apart from an agreement whose version line is missing. A concurrency group was rejected for the reason it looks right: with cancel-in-progress: false the platform keeps one run queued and cancels older pending ones, so two acceptances in the same minute would lose one silently. The branch carries a ruleset of its own admitting the Fathom license App and nothing else, which is what makes the register evidence rather than a file the party it speaks about can edit. ADR 0015 holds the decision and CLA.md the agreement.

Review on the pull request

review-change reviews the diff before it leaves the workspace. Two reviewers then comment on the pull request itself: Codex and Claude. Both post threads carrying a P1, P2, or P3 severity, so one pass over the pull request's threads answers both rather than two passes reading two vocabularies.

The Claude pass is the Fathom review workflow. It runs by itself when a pull request whose branch is in this repository becomes reviewable — opened, reopened, or ready_for_review — and again on every push to one that is already published. The branch that will merge is the one worth a verdict, and the main ruleset sets dismiss_stale_reviews_on_push, so a commit landing on an approved pull request discards that approval; without a re-review it would carry no verdict at all, which is the state a reader is most likely to mistake for one.

A draft is skipped, because a draft is still being written and reviewing it spends subscription usage on a moving target. That is also what contains the cost of reviewing pushes: a branch still being written is pushed to freely and spends nothing, and marking it ready is the deliberate act that opts every later push in.

A pull request authored by dependabot[bot] is skipped as well, and that one is about who opened it rather than about what state it is in: such a pull request arrives published and non-draft, so the check above would let it straight through. Dependency update pull requests carries the reasoning and when that author appears at all, next to the questions a bump is actually read against.

Two things ask for a review anyway, whichever skip refused it:

  • a comment on the pull request that begins a line with fathom-review or @fathom-review, from an author with write access. A draft is reviewed this way, and so is any published pull request whose current head is worth a second look; the comment path applies none of the checks above, because somebody with write access typing the phrase has already decided the run is worth its cost. Adding opus to that comment buys a second, costlier opinion; claude-sonnet-5-5 is the default.

    A comment reaches the reviewer as two runs rather than one. The run the comment itself creates only decides, and when the answer is yes it asks for the review through a repository_dispatch the workflow listens for; the review happens in the run that event creates. Nothing about the phrase or who may type it changes — the split is about concurrency, and When a review is cancelled is the whole reason for it.

    Three things about that phrase are deliberate. It is not @claude, which collides with GitHub Copilot's own trigger. It has to lead a line rather than appear anywhere in the body, because fathom-review names this pipeline and is therefore exactly the word somebody writes when discussing it — "I'll rerun the fathom-review workflow" mid-sentence must not spend subscription usage on a run nobody asked for. And the @ is optional rather than required, because every other reviewer is summoned with one and a trigger that silently ignores the spelling a hand reaches for first is a trap. @fathom-review addresses no account: the App is named Fathom reviewer, so GitHub renders it as plain text.

    Leading whitespace is fine, and so is a -, *, or + list marker, because a request written as one of several bullet points is still a request. A > is not: that is GitHub's quote-reply marker, so accepting it would make answering a thread that contains the phrase start a second run, and a citation is not an instruction. The marker must be followed by whitespace, so the hyphenated -fathom-review does not count, and neither does fathom-reviewer;

  • the fathom-review label, which is how a fork's pull request is reviewed at all. A fork's own pushes never start a review, so a maintainer decides. It is also how a dependency bump gets the pass anyway, which is worth doing for a major that touches a workflow's inputs and is not worth doing for a version number the register already answers.

An automatic review is bounded per pull request: once nine automatic reviews by fathom-reviewer[bot] stand on it, the gate refuses and says so in the run log instead of starting a tenth. Every push to a published branch starts a review, so a branch pushed to forty times would otherwise be reviewed forty times, and past some number of passes over the same change another one repeats what it already said. Six is where that begins: #811 took six rounds, and the last two of them each moved two findings that were corrections to earlier findings rather than anything the first pass had missed.

The other three are for the pushes that answer no finding. The main ruleset merges only a branch that is current with its base, so with several pull requests open every merge leaves the others behind, and the rebase that brings one back is a push like any other and spends a pass. Counted against six alone, a pull request rebased twice while its findings are being answered runs out of reviews before it runs out of findings, and the push that needs a verdict is the one refused. Nine keeps the six and leaves room beside them, and it is still a ceiling: past it the work is answering the review rather than asking for another.

The count is the App's own published reviews rather than a quota read from run history, because the runs endpoint cannot tell a run that decided not to review — a draft push, a comment about the workflow — from one that did. Among those it counts the automatic ones alone. A review somebody asked for neither consumes the budget a later push draws on nor is refused by it, because asking is the decision this ceiling exists to make when nobody made it, and a maintainer who has made it must not find the next push unreviewed as a consequence. So a label or a comment starts a review however many stand on the pull request already.

Which passes were automatic is not something the reviews endpoint records, so the submission step writes it: every review it publishes carries an invisible Markdown comment naming what started the run, and the gate of a later run counts the ones carrying the automatic marker. Both spellings are declared once at the top of the workflow, because a marker written differently in the two halves would stop counting silently and the ceiling would stop holding with nothing red to say so. A review published before this arrangement carries no marker and counts as nothing, which resets the budget of any pull request open at the time and is worth a sentence rather than a migration.

When a review is cancelled

A run also ends before it finishes when the pull request it is reading closes. A merge — the owner's ruleset bypass included — and a close both arrive as closed, and the gate refuses that event outright: it is a trigger only so that it enters the pull request's concurrency group and cancels the review still running there. Without it the reviewer reads the rest of a change that has already landed and posts a verdict nobody can act on, which is the one shape of wasted subscription usage that cancelling on a push does not cover. The submission step is skipped by the same cancellation, which is why it tests !cancelled() rather than always(): GitHub documents always() as running a step even when the run was cancelled, so it would publish the verdict the cancellation exists to prevent.

Those two events are the whole of what may cancel, and the rule they share is worth stating in the other direction: a comment never ends a review already running. A push replaces the head and a close removes it, so in both cases what is running has stopped describing the code that will merge. Everything else — a label, a pull request marked ready — asks for a review without invalidating one, and queues on the same group instead. cancel-in-progress is therefore an expression naming those two events rather than the literal true, because issue_comment fires for any comment on a pull request, a bot's included, and the gate that tells a request apart from a passing remark runs inside the run — after the run has entered the group. Left unconditional, a notice posted by another workflow ends a review several minutes in and then declines to start one, which spends the entire cost of a review to publish nothing. a_comment_never_cancels_a_review_in_flight in scripts/test-agent-workflow.sh is what keeps it from quietly reverting.

That expression governs a run that is running, and it is only half the answer, because a concurrency group also cancels a run that is pending — and that cancellation is unconditional. GitHub holds one pending run per group: when a run joins, whichever run was waiting there is ended outright, whatever cancel-in-progress says. Every review is pending for its first seconds, so any comment arriving in them ended it and then declined to start one, leaving the head with no verdict at all. Measured on pull request #1335 on 2026-08-28: the review of freshly pushed head ce165647 was created at 10:29:54 and cancelled at 10:30:05 having started no job, by an ordinary round-summary comment that created its own run a second earlier; that head carried no verdict until a maintainer asked for one four hours later.

So what decides the outcome is membership of the group rather than the cancellation rule, and the group expression is where it is decided rather than in the gate — which is inside the run and therefore always too late. A run that can neither review nor cancel is keyed by its own run id and shares a group with nothing. Two events are in that position, and both arrive on a pull request repeatedly while it is being worked on: a comment, which after this arrangement reviews nothing at all and asks for the review through a repository_dispatch whose run joins the group in its place, and a labeled event for a label that is not fathom-review, since Apply pull request rules writes labels and only that one asks for a review.

Everything else joins the group and must: synchronize and closed because cancelling is what they are there for, repository_dispatch and fathom-review labelling because they review, and opened, reopened, and ready_for_review because each of them reviews unless the pull request is a draft, a fork's, or the updater's. Those three can decline and are kept in the group anyway — a pull request just opened or reopened has no review of its own to displace, and ready_for_review would have to land in the seconds a requested review of the same draft sat pending. That residue is bounded by an event a hand performs once, which is why it is stated rather than engineered away. a_comment_never_cancels_a_queued_review is the assertion, and the_reviewer_listens_for_the_dispatch_it_sends is what keeps the two halves of the comment path naming one event type.

The workflow reports no status check and is not in the main ruleset. It advises; nothing waits on it.

What the run is allowed to touch

The branch under review is never checked out and nothing from it is executed. The workspace holds the base commit, which is code that already merged, and it is there so the reviewer can read the repository's own contract: root AGENTS.md, the recurring findings in the review-change skill, and the ADRs, as main states them rather than as the branch would rewrite them.

The change arrives as data. A collection step reads the pull request, its changed files with their patches, the resulting content of each changed file, the inline threads and issue comments, the reviews already submitted, and the issues its body closes, and writes them under $RUNNER_TEMP/review with an explicit ceiling on every one of them. What a ceiling drops is recorded and ends up in the review body, because a partial review that looks complete is worse than one that says what it did not see. truncation.txt is where each of them appends, so it is created empty before the first ceiling can run rather than written by whichever one happens to be last — the closing references carry a ceiling of their own, and it is the script that applies it that reports what it cut, which is also what lets the contract suite exercise both without a gh stub for the whole collection.

A second step then writes obligations.json beside them, and unlike everything above it calls no API: it reads the base checkout and the collected files.json, and what it produces is what the change obliges the rest of the repository to do. The directory is made read-only after that step rather than after the collection, because it is the last one that writes into it — the reviewer reads those files and the submission step trusts them, so nothing running in between may rewrite the anchor list that validates a finding.

Every one of those collections produces a single JSON array whatever the page count. --paginate runs --jq once per page, so a filter that built an array per page would leave a stream of them as soon as a pull request passed a hundred files or comments; the line list derived from the files would inherit that shape, and the submission step would then validate every anchor against the first page alone and push every other finding into the review body.

Three classes of changed file never reach the readers. design/runtime/ holds the generated runtime the design's artboards boot on — one minified bundle a design tool wrote, which nobody here writes a line of and which is more added lines than a large change. It is that one directory rather than the tree above it: the artboards, their data, logic and styles, design/state-inventory.md, design/parity.json, design/README.md and design/AGENTS.md are written in this repository and are read like anything else, against the bar the last of those states.

backend/src/Infrastructure/Persistence/Migrations/ is the second. EF Core writes the migration, its .Designer.cs twin and the model snapshot; AGENTS.md makes them append-only; and the schema change they carry is reviewed as SQL by $add-migration before it is committed — so a reader given one can only judge a tool's output or re-judge a decision already reviewed, while the snapshot alone is thousands of lines that would take a group of the reader matrix and head-content budget from the files somebody wrote. It is the same reasoning index-obligations.sh has always applied to the test obligation, extended to the reading.

The third is every file .gitattributes marks linguist-vendored, which today is the skills vendored from another repository and listed as such in .agents/skills/README.md. Somebody else wrote them, a change to one is a refresh from its upstream rather than an edit made here, and their licence is reviewed in THIRD_PARTY_LICENSES.md rather than by a reader. The attribute is read with git check-attr from the base commit the collection checked out, never from the head, so a change cannot mark its own files vendored and exempt them from its own review — which also means a pull request that adds the attribute is still read in full, and the files it marks stop being read from the next pull request on.

Nothing compares a vendored file against its upstream, so the drop rests on who can change one rather than on what it contains. That is a decision rather than an oversight. Both .agents/ and .gitattributes are protected paths, so a pull request from anyone but the owner that edits a vendored skill, adds a file beside one, or marks a new directory vendored fails Protected paths whatever the review says. What the drop gives up is a second opinion on the owner's own refresh. The note it leaves in the review names every file it dropped rather than only counting them, so an edit to vendored text that was not meant as a refresh is still visible in the review body.

All three are dropped where the collection is frozen, once, ahead of the anchors, the head content and the groups that all read it, and each count joins the truncation notes so a reader of the review can tell a file nobody looked at from a file nobody was meant to. The obligations index is the one step given the change with the migrations still in it: docs/operations/database-schema.md declares that directory as its subject, so a schema change still owes that page, and the single obligation a migration carries exists precisely because nobody reads it.

The collection then splits the change into groups and the run starts one reader per group, concurrently — the fan-out described under How a review is spread over readers below.

Every session, reader or judge, runs with Read, Grep, and Glob and nothing else: no shell, no editor, no writer, no network tool, no MCP tool, no subagent, and no read access to .git, where the action leaves a token for its own use. None of them holds a credential it could use and none posts anything. The judge's findings are the run's own answer, and the step after it validates them and submits a single review: event: COMMENT when the answer holds any finding at all, and event: APPROVE when it holds none, described under What a later pass is for below.

The model is named exactly rather than by alias: claude-sonnet-5-5 at --effort high. An alias re-points at whatever ships next, and findings are only comparable across runs when the model that produced them is the one the workflow names.

Effort decides how much the reviewer works before answering, which is the difference between a sweep over the whole change and a close reading of the first few files followed by a shrug. It was raised to xhigh on #811's argument that a round finding what an earlier round walked past costs more than the depth that would have avoided it, and a day of running that way measured the other side of the trade. Over the 75 runs and 108 reviews either side of that change:

at high at xhigh
run duration, median 5.1 min 8.7 min
run duration, longest 16.8 min 29.2 min
runs past twenty minutes 0 of 40 11 of 35
approvals 41 of 87 reviews 6 of 21
findings per review 1.71 2.86

The depth did not buy earlier convergence. What it bought was a reviewer with the budget to keep finding one more thing, which the coverage ledger then pointed at the whole change on every pass — #839 is the worked example, and it is under What a later pass is for below. So the level is back where it was, and the convergence problem is answered by narrowing what a later pass may conclude rather than by making any pass read less.

That split is the point. Everything the reviewer reads about the change is untrusted — a diff, a comment, or an issue body can carry an instruction aimed at the model — and none of it reaches an authenticated API call. The prompt tells Claude to report such an instruction as a P1 finding rather than obey it, but the guarantee is structural rather than textual.

Every trigger runs the workflow file from the default branch. pull_request_target and issue_comment both do, by definition, and so does repository_dispatch, which takes no ref to run from at all — which is why the comment path asks for its review that way rather than through a workflow_dispatch, whose ref a branch could aim at the job holding the Claude credential. The next section is why pull_request_target is allowed here when no other workflow may use it.

The paths under $RUNNER_TEMP are declared on each step that uses them rather than once for the job, because runner is not among the contexts a job-level env block may read and naming it there fails the whole file's validation before any job exists.

The reviewer's instructions are a file of their own, .github/fathom-review/reviewer-prompt.md, and a step substitutes the run's values into its {{PLACEHOLDER}} markers before the action is reached. GitHub compiles every string holding a ${{ }} expression into one format(...) expression and refuses a workflow whose expression passes 21000 characters, so instructions written inline eventually invalidate the file that carries them — every trigger included, which stops the pipeline rather than degrading it. The expressions stay here, where they are six short lines; the prose sits where no length limit reaches it. The template is read from the workspace, which holds the base commit, so a pull request cannot supply the prompt that reviews it.

What a dropped connection costs

Every read the workflow makes goes through .github/pull-request/call-github-api.sh, and so does every read in the two scripts it shells out to. The helper exists because a single request that never arrived used to end the run that contained it: on 2026-08-13 the collection step failed 0.35 seconds into its first call with invalid character 'u' looking for beginning of value, which is gh decoding an upstream connect error or disconnect/reset before headers from the proxy in front of the API as if it were JSON. Nothing about that run was wrong. It published no review, left the pull request with a red check and no verdict, and waited for somebody to notice and re-run the job by hand — a review that silently does not happen being the failure this pipeline is least able to report on itself.

The bound is four attempts, the first included, each of them killed after thirty seconds, with the wait doubling from two seconds and carrying up to two further seconds of jitter so several calls failing at once do not come back in step. The deadline is what makes the attempt budget a bound at all: gh sets none of its own, so a connection that stalls rather than drops — the same failure in its other shape — would otherwise hang with the budget never advancing, until the collecting job's twelve minutes ran out. That recovers a request that was dropped and deliberately cannot wait out an outage: a call that exhausts its budget returns the failure rather than swallowing it, and says how many attempts it made, because the caller's own failure would otherwise say only that the call did not succeed.

What the caller does with that failure is the caller's, and several reads here deliberately carry on: the per-pull-request ceiling counts zero and reviews anyway, the model decision keeps the default model, the settle loop collects at once, and an issue the run could not fetch is recorded as its number with a null body and null labels. Each is argued at its own call site, and each is a place where the retries narrow how often a read degrades without removing it. The head-content a path the head does not carry is an ordinary outcome of that loop, so a file dropped after four failed attempts leaves the same gap as one that was never there. The prompt names an unfetchable path among the causes of a missing head/<path>, so what stays silent is how many paths it happened to. there — which the reviewer reads as content too large to collect.

Three loops call once per record, and a retry budget is per call, so each carries a wall-clock window: the head content, the issues the change closes, and the board write, which spends two budgets per issue and runs in two workflows that declare no timeout-minutes of their own. Without one, an endpoint that has started failing costs every remaining record a whole budget — minutes of a job whose thirty are mostly meant for the model, and a run killed before it starts is the failure the retries exist to remove. Each window is tested before a call rather than during one, so what it bounds is the record the loop starts: the real ceiling is the window plus one record's calls. The two collection ceilings write their line into truncation.txt and reach the review body, because a file missing from head/ and an issue present as its number alone both say something specific to a reviewer, and a gap left by a ceiling would otherwise be read as that statement; the board write names the issues it left where they stand in a warning on the run instead, which is where the rest of its per-issue failures are reported.

What is retried is decided from what the API said rather than from the fact that something failed. A reply carrying a client status is an answer — the endpoint does not exist, the token cannot see it — and asking again produces it more slowly, so it is returned on the first attempt; 408, 429, and every 5xx are retried, and so is a failure carrying no status at all, which is the shape the lost run took. That distinction is what keeps the head-content loop, which reads a path the head does not carry as an ordinary outcome, from spending a budget on each of sixty files.

Two calls are excluded by name, both of them the submission of a review. Every read may be repeated because asking twice returns the same answer; a submission creates a record, so a reply lost after the review was already accepted would, on a retry, publish a second review of the same pass — and since the per-pull-request ceiling counts submitted reviews, spend a second automatic pass on one push. The board write is not among them: it writes an option id the same run has already read, so repeating it converges on the value rather than adding a record.

The helper buffers the whole answer and prints it only once the call has succeeded, which is what makes --paginate safe to retry. Pages stream as they arrive, so a call that dropped on the third page would otherwise have written the first two already, and the retry would hand a filter expecting one record per line a second copy of them.

The verdict is the run's answer, not a file it might not write

--json-schema in claude_args is what makes it one. Under that flag the reviewer's final message is validated against .github/fathom-review/findings-schema.json and published as the step's structured_output, so a run either answers in the shape the submission step reads or fails naming that as its cause.

The contract it replaces was an instruction to write the findings to a file with the Write tool, and nothing enforced it. Both reviews of #306 on 2026-08-02 ended without the call: the reviewer read the whole change, spent four minutes and 34 turns on it, and ended cleanly with no permission denial — and the verdict it reached went nowhere, leaving a red job whose message named a missing file rather than a cause anybody could act on. The same failure had been measured once in roughly twenty runs the day before and treated as a flake worth re-running, which two failures out of two on one pull request is not.

The schema is a committed file rather than a literal in the workflow, because it is a contract somebody reads; the step that composes the prompt compacts it onto one line, because --json-schema takes the schema itself and not a path to one. That step also refuses a schema containing an apostrophe — the flag is single-quoted in claude_args, which the action parses with shell-quoting rules, so an apostrophe would end the quoting and hand the CLI a fragment. Both files are read from the workspace, so a pull request can supply neither the prompt that reviews it nor the shape of the verdict.

Removing the write removed the reviewer's last reason to hold a tool that writes. Write is denied in the session settings as well as absent from --allowedTools, so the session stays read-only whichever of the two a later change touches, and the collected inputs the submission step trusts cannot be rewritten by the session that reads them.

Waiting for the conversation before collecting it

A step before the collection waits for the pull request's conversation to stop moving, and it exists because answering a review is one act that GitHub delivers as two. The fix is pushed and the replies are written into the threads a moment later, so the event that starts the run arrives before the answers it should be read with. On #223 the collection closed at 18:31:40 and the two replies disputing the previous pass were written at 18:31:52 and 18:32:07; the reviewer then spent five minutes on a snapshot that could not contain them and reported both findings again, stating that neither thread had received a reply. No wording in the prompt recovers an answer that is not in the data, which is why this is a step rather than a paragraph.

So the snapshot is frozen only after a minimum window, extended for as long as comments keep arriving, and bounded by a ceiling so somebody typing steadily cannot hold a run open. A pull request nobody has commented on has nothing to settle and waits not at all, which is every first review. The wait costs runner time and no subscription usage, because the model has not started. The windows are declared in the step's own env block, which is also what lets scripts/test-agent-workflow.sh run the real loop against seconds rather than minutes. It covers the three decisions the loop takes: collect at once, wait out a quiet conversation, stop at the ceiling.

The collection then records the instant it began, and the prompt states it. That makes the snapshot's edge something the reviewer can reason about rather than mistake for the record: it may say what the code does and what a thread contains, and never that an answer does not exist because it was not given one.

What a re-review is given

The threads and the submitted reviews are what a re-review runs on. The job keeps no state between runs and a push arrives as the whole change rather than as an increment, so the previous verdicts — its own included, posted as fathom-reviewer[bot] — are the only record of what was already reported.

The threads come from GraphQL rather than from the REST comment list, for the one field REST does not carry: whether a thread is resolved. Resolving is how this repository closes a finding out — reply, then resolve, never one without the other — so it is the author's clearest statement that a thread is settled, and a reviewer that cannot see it re-opens what the pull request already closed. GraphQL also returns the comments already grouped into their threads, so a reply sits beside the finding it answers rather than having to be reassembled from in_reply_to_id, and it marks a thread outdated when the line it was written against has moved or gone. Both are bounded, and both keep the newest: the last hundred threads, the last twenty comments in each, and the same body ceiling every other collected text carries. A ceiling that kept the oldest would drop the reviewer's own most recent pass and the answers to it, which is what the collection exists for.

The prompt spends all of that on not repeating itself. A resolved thread is taken as closed and re-opened only where the code still plainly has the defect. A reply that argues against a finding is answered on its merits or the finding is dropped, because restating it beside an argument that engaged it tells the author their answer was not read. A reply that showed the finding was wrong is a correction to carry. What survives is raised in one line — that it stands, and what the reply left unanswered — rather than by restating it, and the summary says what the new commits fixed, what they did not, and what they introduced. The change under review is still the whole branch, because a defect introduced by the fix for an earlier finding is what a second pass is for.

Why pull_request_target is a granted exception

Every other workflow in this repository is forbidden to use pull_request_target, because the trigger hands repository secrets to a run started by a pull request, and the rule exists so contributed code never executes with them. Fathom review uses it anyway, as the first of two recorded exceptions rather than as a rule the repository quietly breaks.

The exception holds because the trigger is what the workflow needs and the danger is not what it does. issue_comment, repository_dispatch, and a label event carry no head ref to run, and reviewing a fork at a maintainer's request is the whole reason the workflow reaches one at all; pull_request would give the run neither the secrets it needs to publish under the App nor a trigger a maintainer can aim. What makes that safe is structural rather than procedural: every job holds base.sha and never the branch, nothing from the contribution is executed, and every session — each reader and the judge — runs with Read, Grep, and Glob and no shell, writer, network tool, MCP tool, or subagent. The purpose of the prohibition — untrusted code never runs with a credential — is met without avoiding the trigger.

The reader jobs are inside that argument rather than an exception to it. A reader holds the Claude credential and nothing else: no App token, no write permission of any kind, and no API call. Six of them read the same frozen snapshot one session used to, under the same deny list, and what each returns is untrusted text on the same terms as the diff that produced it — which is why the judge confirms a candidate against the file before it can become a finding.

Contributor licence is the second exception, and it inherits none of this reasoning: it argues its own case above, on the narrower ground that it executes nothing from anywhere because it checks nothing out at all.

The exception is scoped to this workflow and to that shape. It is revoked by any change that checks out, builds, restores, or executes the branch under review, that grants a reader or the judge a shell, a writer, or a network tool, that lets a job other than the judge hold a credential that writes, that adds workflow_dispatch — a dispatch takes a ref, which would let the branch supply the job that receives the Claude credential — or that lets a trigger other than a maintainer's label or comment reach a fork. A third workflow wanting the trigger does not inherit either argument; it makes its own or uses pull_request.

What bounds the cost

The run spends the repository owner's personal Claude subscription — whichever of the two the CLAUDE_CODE_PROFILE variable selects, as Provisioning the App describes — so what limits how often it runs is a design concern rather than an operational one. Eleven things do, and they are listed together because each closes a different way the bill could grow:

  • a draft is never reviewed automatically, so a branch still being written is pushed to freely and spends nothing;
  • concurrency with a conditional cancel-in-progress means a superseded head never finishes a review, so a rapid series of pushes costs one run rather than one per push, and a merge or a close ends the run reading a pull request that has stopped being worth a verdict. A comment supersedes nothing and no longer joins that group at all: its run only decides, and the repository_dispatch it may send is what queues there instead, so a review already running is neither cancelled nor thrown away. When a review is cancelled carries the whole of it;
  • a fork's own pushes never start a review; a maintainer's label does;
  • the comment trigger requires an OWNER, MEMBER, or COLLABORATOR author, so nobody outside the project can spend the subscription by typing;
  • an automatic review is capped at nine per pull request, as described above, and a review somebody asked for is outside that count in both directions;
  • the model is claude-sonnet-5-5 rather than the costlier Opus, which exactly two things reach: a review request asking for it by name, and the security label on the pull request, described below;
  • every collected input carries an explicit ceiling, and what a ceiling dropped is stated in the review body;
  • --effort high is a step down from the xhigh Claude Code applies by default, measured rather than assumed: the table under What the reviewer is measured against is what put it back there after a day at xhigh nearly doubled the median run;
  • the readers are capped at six concurrent sessions, and a change too large for that gets larger groups rather than more of them — the concurrency is a decision about the subscription rather than about any one change;
  • a later pass starts readers only for the groups holding a path that moved since the previous review, so the second and later rounds cost a fraction of the first;
  • from the fourth automatic pass the reviewer reports P1 alone, so no round is ever spent on a finding whose own severity says it can wait — and the pass that raises that bar leaves the security label's wide sweep behind with it.

The last four are the only ones that bound how hard a run works rather than how often one starts, and they are the set worth re-measuring rather than tuning by feel: reading depth is where this workflow spends deliberately, and a change that stops converging is where that spending stops paying. The metrics artifact described under What a run leaves behind is what makes re-measuring them possible; the fan-out spends the same tokens as the session it replaced, only concurrently, so what it changed is the duration rather than the bill.

Moving the run onto a metered API key with a spend limit would replace that set with one number, and it is deliberately not done: the gate above already stops anyone outside the project from spending anything, so the remaining cost is the owner's own pushing, and a second credential to provision, rotate, and register buys no protection against that.

What the security label decides

security on the pull request — put there by Apply pull request rules, from an issue the change refers to, which need not be one it closes — is the one input that changes how the review is conducted rather than only what it concludes. Two things follow from it, and the reviewer reads the label off the pull request for both rather than deriving it from the issues again: which conditions earn which label is that pipeline's decision, and a second implementation of it could disagree with the label a reader sees.

The prompt applies the security rubric to every file in the change rather than to the ones whose diff invites it, confirms the weakness the issue names is closed on every path the change reaches rather than the one the diff illustrates, and says in the summary that the pass ran and what surface it covered — under an approval as much as under findings, because a verdict that does not say what was examined is not evidence a security review happened. It widens what the reviewer reads and nothing about what it reports: a defect in code the change does not touch is still not a finding. The absence of the label changes nothing, and an unlabelled change is not read more loosely for it.

That sweep belongs to the first three passes. Where the posture is settling — a fourth automatic pass or later, resolved as What a later pass is for describes — the security rubric applies to what the change touches, like every other rubric, and the wide reading is left behind: it earns its cost while the change is being shaped and stops earning it once a fifth reading of a path no fix moved is reading what four passes already read and let through. The label's other consequence is untouched, and the paragraph below is why that matters more: the costlier model performs the pass at every count.

The second is the model. claude-opus-5-5 performs that pass, which is the same shape of exception as a maintainer writing opus in a request, taken by the project rather than by a hand: the change whose defect would be a security defect is the one a second, costlier opinion most repays. Nothing else escalates.

Because both workflows start from the same event, the reviewer waits for the labelling run on that head to finish before reading the labels — otherwise a security change opened or pushed a moment ago would be reviewed with the default model and no pass, on exactly the changes where that costs most. Only a run still in flight is waited for, so a comment or a label event, which arrives long after that head was labelled, waits not at all. The wait is bounded at two minutes and then reads the labels as they stand: this decides which model reviews rather than whether a review happens, so a stuck labelling run must not hold a review open or fail one.

What the reviewer is measured against

The prompt points the reviewer at this repository's own rules rather than at general review practice: root AGENTS.md, the nested AGENTS.md files under backend/, backend/src/, backend/src/Infrastructure/, backend/tests/, frontend/, frontend/src/, frontend/tests/, design/, and docs/, the recurring findings in the review-change skill, and the ADRs that govern the area the change touches. A finding names the rule it rests on in a field of its own, and one that applies generic advice where this repository has stated a different rule is itself wrong.

Which of those rules a file is judged against follows the stack it sits in, which is the part the rubrics carry rather than the prompt. The service's boundaries, its type shape, its async and time conventions, and its email invariants are stated for backend/; the client's package boundary, its state and effect rules, its suppression policy, and its screen obligations are stated for frontend/; and the security, privacy, reliability, performance, and licensing rules that reach both are stated once, outside either. A finding that judges a .tsx file by a C# convention, or a .cs file by a React one, is the same wrong-rule failure as one that applies general practice over a stated rule, and it is the failure a mixed pull request is most exposed to. The recurring findings in the review-change skill are named as the service's own measured history for that reason: every category in them came from a merged pull request under backend/, so the prompt has the reviewer apply one where the change reaches it rather than translate it onto a client file it was never about.

Beyond that contract it works through seven rubrics — the repository's rules, security and privacy, reliability, performance, clean code, the screen a person uses, and tests and documentation — each stated as the specific things reviews have caught here rather than as a category name, and each applied only where the change reaches it. Five of the seven are split by stack; the screen a person uses is the client's alone, and a change that renders nothing reaches none of it. What the change says about itself is a rubric of the reviewer's own, since a reader holding a fraction of the change cannot judge the body against it. The same prompt still rules out what a build already enforces — the analyzer set for the service, and tsconfig.base.json, eslint.config.ts, and Prettier for the client — anything about backward compatibility or migration paths, a request for tests that names no untested case, and a suggestion that the client adopt a component library, a router, a state container, or a data-fetching library, each of which is kept absent by a decision rather than by an oversight. So the two reviewers do not spend threads on findings this repository has already decided against.

The work is two passes and they are two different jobs, which is what separates coverage from the bar. The first pass reads every entry in files.json and the resulting file around every hunk, collecting candidates without filtering or ranking any of them. The second pass confirms each candidate against the file it concerns, names the rule it rests on, and drops whatever cannot be confirmed, is already answered by the surrounding file, or was already raised by another reviewer.

How a review is spread over readers

The first pass is a matrix of reader jobs rather than one session. The collection step runs group-changed-files.sh, which assigns every collected file to exactly one group, and the run starts one reader per group with a ceiling of six concurrent readers and a target of a dozen files each. A reader is given the paths of its group and returns the paths it opened, the candidates it noticed, and its notes; it reaches no verdict, because it saw a fraction of the change and cannot know what the rest of it answers.

The split is where it is because a request is not a property. The reading used to happen in one session that the prompt asked to spread the work over subagents, and nothing enforced the split, the grouping, or the launch — so both the duration and the coverage of a review were decided by what the model chose. Measured over the 39 runs that reached the model between 2026-08-16 and 2026-08-18:

changed files runs median run longest
1–5 3 3.4 min 5.2 min
6–15 2 5.8 min 7.7 min
16–30 13 8.1 min 20.1 min
31–60 12 17.9 min 22.2 min
60+ 8 24.7 min 28.1 min

Twelve of the 39 passed twenty minutes and every one of them was a change of 42 files or more, against a job ceiling of thirty. Three others ended early having read a fraction of the change — 8 of 42 files in 2.7 minutes, 27 of 51 in 4.7, 15 of 21 in 6.3 — and each published a verdict shaped exactly like a complete one. Both are the same defect, and the split answers both: the duration now follows the largest group rather than the whole change, and a group nobody read is a missing report rather than a silence.

Three things are never a reader's, each being a judgment about the change as a whole: the reading of obligations.json, the two readings of the pull request body, and the second pass. A reader's report is untrusted in exactly the way the diff it read is, so it is a list of places to look, and the judge confirms every candidate by opening the file itself.

The review states what it read

The coverage is composed from what the readers reported opening, not claimed by the reviewer about itself. A step between the review and its submission gathers every reader's list, compares it against the collection, and writes the difference into the published body beside whatever a ceiling dropped — and states separately how many readers reported back, because a group whose reader failed is a part of the change no session opened rather than one a model skipped.

It reports and never gates. A partial review that says what it missed is worth more than no review, so the verdict is published either way. An approval is where that matters most, since an approval asserts the absence of defects across a whole change.

Every path it prints comes from files.json rather than from a report, because this is a path from model text into a published review body: what the step names is the difference — paths the collection step wrote — and a name in a report that matches nothing in the collection is reported as a count and never quoted. The list of unread paths is bounded, and the remainder becomes a number.

What a run leaves behind

Each run publishes a fathom-review-metrics artifact holding numbers alone: the changed-file count, how the split fell, what each reader covered and how long its session took, the judge's own duration and turn count, the coverage, the verdict, and the findings by severity. It carries no summary, no finding, no path, and no prose from any session.

It exists because adjustments to this workflow could not be told apart. --effort moved to xhigh and back, the reading was narrowed, the settling threshold was added, and each was judged by wall-clock duration on whichever pull requests were open that day — while duration here is mostly a function of how many files the change has, which nothing recorded alongside it. The action's own execution log is never published, so this file is the whole of what a run leaves for the next comparison. It is retained for thirty days, against the one day the collected inputs and the candidates keep, because it is read across runs rather than inside one.

What a later pass is for

Judging the whole change again on every pass is wrong, and so — once the reading was split across jobs and priced — is re-reading it. The two came in together: with the ledger asking for the whole change to be read and xhigh paying for it, a fourth pass had both the reach and the budget to open a file no fix had touched and start there.

#839 is what that looks like. Four files, 401 added lines — the smallest pull request of the sample — six automatic rounds, 34 inline findings, no approval, and a merge that happened only because the ceiling refused a seventh pass. Its first three rounds stayed in CHANGELOG.md. The fourth opened README.md and raised two P1 findings there, the fifth opened docs/users/README.md and raised one, the sixth opened SECURITY.md and raised another. Not one of those pages had been touched by a single fix. The reviewer was not converging on the change; it was widening across it.

Four rules answer that. Two bound what a pass may conclude; the third bounds what it re-reads, and arrived later, when the fan-out made the cost of a pass legible; the fourth raises the bar a pass this late applies at all.

What moved is what a later pass may conclude something about. The collection step compares the head of the reviewer's previous review with the one in front of it and writes the paths between them into changed-since-last-review.txt. A new finding belongs on a path that file names, or on something that stopped being true because one of them moved — a page describing code that just changed, a test whose subject moved — and the second kind names the changed path that made it wrong, so the connection is on the record. Everything else stays context: the ledger is unchanged, and a file the reviewer did not open is one it cannot judge the changed files against.

obligations.json is outside that bound, and the exception is what keeps the narrowing from contradicting the rubric beside it. That index is derived from the whole of files.json and the declared describes: markers, so it is the same list on the sixth pass as on the first — it cannot widen, which is the only thing the narrowing exists to stop. Without the exception a fourth pass would be shown a row saying a page describing a changed file is not in the change, and told in the same prompt not to raise it because that file had not moved since the last push. It is also the one rubric where the defect is what the change is missing, and nothing a later push contains can put a missing page or a missing test in front of the reviewer. The file is absent on a first pass, on a review somebody asked for, and where the comparison failed, and each of those puts the whole change back in scope — a bound derived from an API error would silence findings on files that did move.

A later pass re-reads only the groups that moved. group-changed-files.sh reads changed-since-last-review.txt beside the split and marks each group read_this_pass, and the run starts readers for the marked ones alone. The rule above already bounds what a later pass may conclude to those paths, so a reader opening the rest was paying full price for a reading no verdict could rest on — and at 2.94 reviews per pull request, that was the largest recurring cost this workflow carried. The judge is not bounded by it: it reads obligations.json over the whole change, reads the body twice, and has files.json and head/ in front of it. The coverage line then separates the two shapes of unread — a file inside a re-read group that no report names, which is a gap and is named, and a file in a group nobody re-read, which carries the previous review's verdict and is counted.

An approval carries no findings. The verdict follows the list rather than the severities in it: an empty answer is published as event: APPROVE under an APPROVED heading with the summary and nothing else, and an answer holding anything at all is published as event: COMMENT under NEEDS CHANGES with its findings as inline threads. So APPROVED means the reviewer found nothing, and reading the verdict is the whole of reading an approval.

A finding is a round the reviewer asks the author for, so what a pass weighs is whether each one is worth a round — and it weighs it before writing the finding rather than afterwards in the verdict. A verdict that softened for a low severity would spare the author nothing, the thread being there to answer either way, while costing every reader of an approval the question of what was still owed under it. A fourth pass raises its own bar below is where that weighing happens.

The severity is therefore a property of the defect and nothing else. It ranks a finding for whoever answers it and decides whether a settling pass writes it at all; it steers no verdict, so the prompt states it with nothing for a reviewer to arrange by writing one level as another.

A fourth pass raises its own bar. The three rules above bound what a later pass concludes about and re-reads; this one bounds what is worth an author's round at all. The gate resolves a posture beside the pass count it already keeps — settling for an automatic pass with three or more automatic reviews already published, full otherwise — and hands the same value to the readers' prompts and the reviewer's prompt, so what one pass looks for and what another judges it by cannot come apart. Under settling the reviewer reports P1 alone and the wide sweep the security label asks for is behind it: a P2 or a P3 noticed that late is left out of the answer entirely rather than published under a softer verdict. The submission reads the posture nowhere, because a finding never written needs no threshold. Nothing else moves: the same rubrics apply, the coverage ledger and obligations.json are unchanged, the security label still selects the costlier model on every pass, and the severity written is still the one the defect has.

The threshold is measured rather than chosen. Across the 60 most recently merged pull requests — 59 of them reviewed, 187 published reviews — 21 reached a fourth pass, 10 reached a sixth, and 9 never received an approval at all. Of the 33 reviews published at pass 4 or later, 31 withheld approval and 27 of those carried no P1 at all: a rule-owed P2 spent the round, at the point where the author is answering review rather than writing code. The findings sit the same way — 38 of the 43 P1 findings on those pull requests were raised in the first three passes against 5 after them, while P2 and P3 kept arriving at 57 and 51. So the fourth pass is where this reviewer stops finding what breaks and starts finding what a later change pays for.

A review somebody asked for is full at any count, for the same reason it is unbounded in scope: a maintainer spending usage on a pass no push asked for wants the reading a first pass performs, and the count the posture reads deliberately excludes requested reviews. The run records the posture beside the pass count in its metrics artifact rather than leaving it to be recomputed, because a requested pass and a settling one can carry the same count and mean opposite things.

What those 27 rounds argue is that the findings were not worth the passes they cost, and a pass that does not write a finding does not cost one. That is the whole of what the posture buys, and it buys it with one value resolved in one place: the verdict holds every finding that was written, so nothing at the submission has to agree with this bar and nothing there can drift from it.

Both failure modes that split addresses are real and opposite. Judging a candidate while still looking suppresses findings that were not yet understood, which is how a reviewer stops searching once it has a few; reporting a candidate it never went back to check is how a review fills with hedged noise. So the cap of twenty findings is stated as a ceiling and never a target: a change with two defects gets two findings, a change with none gets none, and an entry written to lengthen the list is itself a defect in the review.

What the change says about itself

The pull request body and the issues it closes are the change's own account of what it does and what it was for, and both outlive the review: the body becomes the merge commit's message and is what a release's changelog is later composed from, and merging closes every referenced issue whether or not the change finished it. The reviewer therefore judges a claim in either against the diff exactly as it judges a line of documentation, and reads the body twice — once against the file list before reading any file, once after reading them all, because only the second reading can tell whether the claim held.

Four shapes are findings: a body claiming behavior the diff does not have; a body claiming verification that did not happen, which is worse because it is what a reader uses to decide how closely to look; a diff doing something substantial the body does not mention, which is scope nobody agreed to; and a change that does not deliver an acceptance item of an issue it closes, which leaves a closed issue nobody will look at again. Unrecorded scope growth against an issue is worth one line, because AGENTS.md asks for it to be recorded rather than for the change to be narrowed.

None of that reaches how the body was written. A finding here names a contradiction between what the change says and what it does, never a preference about clarity, length, or order, and an issue the run could not fetch supports no finding at all — the reviewer says so in the summary and judges nothing by it.

Every issue merging will close is collected, not the first one, and the list comes from GitHub rather than from a reading of the body: .github/pull-request/collect-closing-issues.sh asks for the pull request's closingIssuesReferences, which is the resolved answer the merge itself will act on. Collecting fewer than that is how an issue closes on merge with nothing having read what it asked for, and collecting more is how a review holds a change to a contract nobody wrote. An issue in another repository is the one thing the script drops, because it is neither a contract this reviewer can fetch nor an item on this board.

A defect in what the change says about itself is usually a property of the change rather than of a line, so those findings carry a null path and the submission step renders them in the review body. That is deliberately not the summary: the verdict is decided by whether any finding exists, so a concern left in the summary would arrive under an APPROVED heading.

What the change obliges elsewhere

A whole class of defect here is invisible in a diff, because the defect is the absence of a second file from it: a source file that changed while no test followed it, a page that still describes the behavior the change replaced, a moved pin with no row in THIRD_PARTY_LICENSES.md. Each is a rule in AGENTS.md, and a reviewer reading only the diff cannot see any of them.

.github/fathom-review/index-obligations.sh produces the list of second files. It runs from the workspace, which holds the base commit, so a pull request cannot supply the index that judges it — the same reason the prompt is read from there — and it lives under .github/ rather than in scripts/ so that Protected paths refuses a change to it from anyone but the owner. Calling no API is what lets scripts/test-agent-workflow.sh run the real script against a fixture tree with no gh stub at all.

The two kinds of edge it follows are recorded differently, and which one applies turns on whether the repository's own rules already derive it.

A production file to its test is derived and never written down, and each stack states the rule the derivation reads, so the index follows two edges rather than one. In the service, AGENTS.md requires one primary type per file with a matching file name, and backend/tests/<Boundary>.UnitTests/ mirrors backend/src/<Boundary>/, so the edge is that type name searched for across the test tree. In the client, frontend/tests/AGENTS.md puts the test beside the source and names it after it, so the edge is one path rather than a search: session.ts is covered by session.test.ts in the same directory and App.tsx by App.test.tsx. Both mappings are already rules; a recorded copy could drift from either. Either way the index reads the base tree and the tests the change itself adds, because a change that adds a file together with its test is the case where reporting a missing test would be most obviously wrong.

The two are exact in different ways, and the report says which per entry because an empty list means a different thing in each. A type name is a search, so it over-reports — a test naming Result in passing is listed as covering it, which is what referencing_test_count warns about. A sibling path is a lookup, so an empty list under a client entry means precisely that no file of that name exists, and expected_test_project names the package it would sit in, since a client test lives inside the package it covers rather than in one of its own.

Under the client, three kinds are left out for the reason migrations are left out of the service's half — a test for one is not a thing that can exist, so an index asking for one would produce the same wrong finding on every change of that kind: a test file itself, a .d.ts declaration, and an index.ts or index.tsx, which re-exports and is proven by whether its consumers still compile. So is anything above a package's own src/, which is where vite.config.ts, vitest.setup.ts, and tsconfig.json sit, so scoping the index to that directory excludes the build's configuration without naming any of it.

Both stacks' pin families oblige THIRD_PARTY_LICENSES.md, as two register pairs rather than one, so the trigger names what actually moved: backend/Directory.Packages.props or a packages.lock.json for the service, and a frontend package.json, frontend/pnpm-lock.yaml, frontend/src-tauri/Cargo.toml, or frontend/src-tauri/Cargo.lock for the client. scripts/update-dependencies.sh now reads both of the client's families too, so a pin behind its upstream is caught before review; what review still catches alone is the half no survey computes — the census the register records for each of the client's three closures, which a moved pin invalidates without changing a line of any manifest.

The client's npm family obliges a third pair, and its register is the only one here that a user meets rather than a reader: frontend/src/Client.App/public/THIRD-PARTY-NOTICES.txt, the notice the bundle carries. pnpm build copies it verbatim into the output every published image and every desktop package redistributes, and it names each redistributed package and its version, so a moved npm pin can leave a shipped artifact naming a version it no longer carries — which neither the register row nor the census would show. The crate family is excluded rather than overlooked: those crates are a separate component that reaches no bundle, so a Cargo.toml bump owes the register alone.

A source path to the page that documents it is declared, because nothing derives it: documentation is written about configuration keys and behavior rather than about type names, so no name match finds the edge. Each page names its own subject in a describes: marker under its heading, and docs/AGENTS.md states the convention. A central index was refused rather than not considered — it would go stale exactly when it matters and silently, since the pull request that adds a class and forgets its test forgets the edge too, and it would need a freshness gate of its own beside the check that already exists. In the page, both ways the declaration can rot are loud instead: scripts/test-agent-workflow.sh fails a page carrying no marker and a marker naming a pattern that matches nothing, so deleting a documented class fails the build rather than waiting for a review to notice.

The same index answers the same question before a pull request exists. scripts/review-obligations.sh is the local entry point: it builds a document of the shape GitHub returns from git diff <base> and hands it to the script above, so the two callers share one implementation and a rule cannot hold in review while lapsing in the pipeline. $review-change runs it and works through what it reports, $check-docs-licenses starts its documentation verdict from it, and $finish-change names it in the diff inspection — which is the point of having it locally at all: an absent test costs least to add while the file that owes it is still open.

The local report differs from the pipeline's in two ways, both because a working tree is not a pull request. It compares against the working tree rather than against a commit, since what is committed, what is staged, and what is neither are one change to a reader. And it names the untracked paths no diff contains, because a new class that owes a test is exactly the shape one takes, and a report silently describing less than the change is worse than one that says so.

The index is bounded like every other collected input: eighty changed source files, and twenty listed tests per type. The second bound is the one that is not obvious — how many tests name a type is a property of how common the name is rather than of the change — so the true count survives the cut beside the shortened list. What a bound dropped is recorded in the index's notes, and the prompt requires those to reach the reviewer's summary alongside anything truncation.txt says, because a section that was cut short looks complete to everybody but the reviewer.

The patterns a marker declares are resolved the way git's own :(glob) pathspec resolves them, and the two have to agree: the contract suite validates every marker through git, so a pattern the index read more narrowly would be called valid while the paths it covers were skipped. That is why ** between two slashes matches zero directories as well as many — backend/src/**/*Options.cs credits backend/src/FooOptions.cs, not only a nested one — and why a leading **/ reaches the repository root.

Nothing the index emits is a finding. It says where to look, and it is derived from file names and declared markers, so it points at obligations a change does not always incur — a rename owes no test, a page whose marker covers a path may say nothing about the part that moved, a register may already carry the row. The prompt requires each row to be confirmed in the file it points at and names what confirmation is: the behavior no test reaches, the sentence that stopped being true, the row that is missing. A finding whose whole content is that a file was not touched is a defect in the review. What survives is a P2 anchored to the changed line that created the obligation, which is both the line the author would edit to discharge it and the only kind of line a review comment can reach.

When the reviewer stops

claude-code-action hides everything the reviewer produced, and rightly so: that output is model text derived from an untrusted diff. It hides the run's own error string with it, which is the one place a failure says what happened — an expired credential, an exhausted subscription, a model the plan cannot use, or a reviewer that answered without conforming to the schema, where the last result message holds what it said instead. The action does save every message to $RUNNER_TEMP/claude-execution-output.json, and it does so before it refuses a non-conforming answer, so a step after it reads the last result message's text and prints that and nothing else, flattened to one line, truncated to 500 characters, and withheld if it matches a credential shape or either credential the workflow holds. The alternative the action offers is show_full_output, which would print the entire review into the log to recover one sentence.

The submission step then distinguishes two silences. A reviewer that never answered has already failed and said why, so an empty structured_output from a step that failed is reported as a notice and the run keeps the reviewer's own error as its only cause. An empty one from a step that succeeded is unreachable while the action keeps failing on a missing structured answer, and it fails there anyway: that branch is what stops the workflow depending on a promise it does not own, because a later action version that renamed the output or stopped failing on it would otherwise leave every review posting nothing under a green job — a pipeline that has silently stopped reviewing.

Both steps refuse to compare against an unset Claude credential and report the missing secret by name instead, because grep -F '' matches every file and an empty pattern would otherwise turn every review into a refusal that reads like a credential leak. The name they report is the one the profile selected, so a run missing a credential says which of the two subscriptions it looked for.

What the submission step guarantees

It validates each finding's anchor against the same patches the reviewer was given, so a line that moved cannot make GitHub reject the whole review; an unanchored finding moves into the review body instead of being dropped. It caps the review at twenty findings, sets start_side alongside start_line for a ranged comment, submits with an explicit POST, and refuses to post at all if the findings contain any credential this workflow holds or anything shaped like one.

It also lays each finding out. The reviewer answers with separate fields — impact, what breaks; correction, the smallest change that fixes it; rule, what the finding rests on — and this step renders them under fixed headings, so every thread answers the same three questions in the same order. An author reading a column of threads can skip to the part they need instead of parsing a paragraph per finding, and a reviewer that skipped a field leaves a visible gap rather than a plausible-looking sentence. The unanchored findings in the body are rendered by the same code, so a finding does not change shape because its line moved. The count by severity is rendered here too, and the prompt forbids the reviewer from restating it: a tally written by hand can disagree with the threads that were actually posted.

Either body opens with the verdict as a heading of its own — APPROVED when the findings array is empty, NEEDS CHANGES when it is not — and the summary sits under it. That is the one thing a reader wants before deciding whether to read the rest, and inferring it from whether threads appeared fails exactly where it matters, on a long pull request.

A run that found nothing takes the other branch: event: APPROVE, carrying the verdict and the reviewer's summary as the review body and no inline comments. Nothing found is a verdict, so it is delivered where GitHub renders a verdict. The alternatives are both worse — event: COMMENT with an empty comment list records that a review happened without saying what it concluded, and an ordinary issue comment says it somewhere nothing reads as a verdict at all.

That branch consults the reviewer's own exit status a second time. An empty findings array means two different things: from a run that finished it means nothing was found, and from one that answered and then failed anyway it means the search never completed. Findings from such a run are still posted, because a defect it did name is real. An approval is not, because it asserts the absence of what the run stopped looking for, so an unfinished run that found nothing reports a notice and publishes no verdict.

commit_id ties the approval to the head the reviewer actually saw, and the main ruleset sets dismiss_stale_reviews_on_push, so the next push dismisses it and an approval can never describe code that has since changed.

The approval cannot merge anything on its own. The ruleset requires one approving review from a code owner, CODEOWNERS makes the repository owner the code owner of every path, and a GitHub App cannot be a code owner — so the owner's approval is still required and this one sits beside it as a signal. REQUEST_CHANGES is never used in either branch: a reviewer that reports no status check and gates nothing must not be able to block a merge either, which is why NEEDS CHANGES is a heading in a body and never a review state.

What a review moves on the board

The workflow writes the roadmap board's Status field once, on every issue the pull request's body closes and on nothing else — because closing an issue is what makes a review of the pull request a statement about that issue's lifecycle.

That write happens as the review starts, beside the collecting job rather than before it, and it writes In review. A review takes minutes, and without it the column says whatever the last event left there for that whole time — usually In progress, the state the work was in before the pull request existed. Nothing in the review depends on that write, which is why it runs in parallel: a project API failure must not delay or skip a review.

Neither verdict is written here, and that is deliberate on both sides. Each of them claims something about the whole state of the change rather than about the diff: Ready to merge says the change is waiting on nothing but the owner pressing the button, and Changes requested says what is owed is the agent's answer — and a pipeline still running can add to what that answer has to cover. This workflow reads the diff and cannot see the pipeline, so both are asked in The board status the state earns, where the review and the checks are visible at once and where both wait for every pipeline outside CodeQL to finish. An item therefore sits in In review for as long as the change is still being decided about — which is what that column says — and a run that publishes no verdict leaves it there too, where a reader sees that a review was asked for and produced nothing.

That the review's verdict has to be read from the pull request rather than announced by this workflow costs nothing: the reviewer publishes a withheld approval as a COMMENT review on the head, which is a fact the pipeline rules read directly and a reader can go and look at.

The write is one script, write-board-status.sh, and so are the rules in Apply pull request rules. The walk is identical — collect what the pull request closes, resolve the field and the option by name, find the item on this board, mutate it — and the callers differ only in the value they write and in the statuses they may write it over. That authority is two arguments rather than one, because it is one question asked in two directions: the statuses a write refuses to overwrite, and the statuses it may act on and no others. The announcement and the verdict rules — both routes to Changes requested, and an approved head's Ready to merge or Conflicts — name the same preserved pair and no required list, because each describes whatever item it finds; the conflict rule for a draft or a head no review has answered names one required status and no preserved list, because it is only true of an item that had been ready. The closing issues come from collect-closing-issues.sh, the same script the collection step and Apply pull request rules run, so which issues a merge closes is one answer GitHub gives rather than three derivations of it that drift.

Two statuses are never written over, by the announcement or by any verdict. Done is the merge and the close, so a verdict arriving after one must not drag a finished item back into review, and a review starting on one must not either. Blocked is the one status a hand writes, and it says the issue waits on something outside the project — a question neither a verdict nor a review in flight answers, so neither gets to erase the answer.

The write is a job of its own for the credential. The workflow token is scoped to the repository and reaches no project, so writing a field on the board takes a classic token with the project scope, which Issue tracking and the roadmap board records along with what that costs. The job checks out only the base commit, runs no model, and receives its input as a string, so the account-wide credential never shares a runner with the reviewer session — the same separation that keeps the App's token in the one step that makes no model call. Where the secret is absent the job says so and ends green: this workflow gates nothing, and a missing credential must not turn a review red. A pull request that closes no issue ends the same way, with a notice, because a change opened without a contract is an ordinary shape. An issue that is not on the board ends green too, but as a warning: every issue this project opens is placed there by a built-in workflow, so one that is missing has something wrong with it rather than nothing.

scripts/test-agent-workflow.sh runs the step against a fake gh the way it runs the gate, the settle loop, and the submission: it asserts that the announcement writes In review, that it leaves Done and Blocked alone, and that a run without the token writes nothing. That this workflow writes no verdict at all is asserted against the workflow itself, since it is the absence of a job rather than a branch inside a step.

Who publishes it

Not github-actions. The submission step authenticates as the owner's Fathom reviewer GitHub App, whose installation token it mints from the REVIEWER_APP_CLIENT_ID repository variable and the REVIEWER_APP_PRIVATE_KEY repository secret. The split is deliberate: a client id is visible on the App's own page and in every installation, so it is not a credential, and keeping it out of the secret store is what lets a failed run name the App it tried to authenticate as rather than printing ***. The private key is the credential, and it is the only one.

The identifier is the App's Client ID rather than its numeric App ID. create-github-app-token deprecated the app-id input in v3 and warns on every run that still passes one; both are issuers of the same JWT, so this is the identifier GitHub now expects rather than a second credential.

Two things follow, and the second is the reason for the first. The review carries an identity that names what produced it instead of the identity every other workflow in this repository posts under. And the workflow token drops to read-only across the whole job — contents: read, pull-requests: read, issues: read — because the only credential that can write to a pull request is now minted per run, scoped to this repository, expiring with the job, and held by the single step that makes no model call. The App itself needs exactly one permission, Pull requests: Read and write, which covers submitting a review and commenting on a pull request alike.

One write in the file is not the App's, and it is worth naming because it is the exception: the job that turns a review request into a repository_dispatch holds contents: write, which is the narrowest permission that reaches POST /repos/{owner}/{repo}/dispatches. That job checks nothing out, runs no model, and its whole body is one API call built from values the gate decided; main's ruleset is what stands between the token and the default branch. It is the only workflow-token write in the file; every other write a run performs is the App's, minted per run and held by the step that publishes.

A missing or invalid App credential fails the run at its first step, before the change is collected and before any subscription usage is spent.

Every run logs Cache reservation failed: cache write denied: token has no writable scopes, and that warning is expected rather than a defect. claude-code-action installs Bun through setup-bun, which tries to cache the binary, and a cache write needs actions: write on the workflow token. The warning costs one download of a runner-local binary per run; the scope that would silence it also permits cancelling workflow runs and deleting artifacts and caches, from a job that pull_request_target starts. setup-bun does expose a no-cache input, but the action does not forward it, so the choice is between the warning and the scope — and the warning is the cheaper of the two.

Provisioning the App

Once, by the owner. A GitHub App is an account-level object that is then installed on repositories, so the two halves are created in different places and both are required before a review can be posted.

  1. At https://github.com/settings/apps/new, create an App named Fathom reviewer. The name is what appears as the review's author, so it is the one field with a user-visible consequence. App names are unique across all of GitHub rather than per account, so this one may be unavailable; pick another and update this file and the workflow's comments, which are the only two places that name it. Give it any homepage URL — the field is required and unused — and clear Webhook → Active, because nothing here receives events.

  2. Under Permissions → Repository permissions, grant Pull requests: Read and write and nothing else. That single scope covers both API calls the workflow makes. Leave Where can this GitHub App be installed? at Only on this account.

  3. On the App's settings page after creation, note the Client ID — the Iv23… value beside the App ID, not the numeric one — then under Private keys choose Generate a private key. GitHub downloads a .pem file and keeps only its fingerprint; the file is the credential and cannot be recovered from GitHub if it is lost.

  4. Under Install App, install it on this repository. An App that is created but never installed mints no token, and the workflow fails at its first step with an authentication error rather than a missing-secret one.

  5. In the repository's Settings → Secrets and variables → Actions, add both, on their own tabs:

    • the Variables tab: REVIEWER_APP_CLIENT_ID, the App's Client ID;
    • the Secrets tab: REVIEWER_APP_PRIVATE_KEY, the entire contents of the .pem file including the -----BEGIN…----- and -----END…----- lines and the trailing newline. A key pasted without its header lines fails to parse.

    The tabs are not interchangeable. The workflow reads the id through vars and the key through secrets, so an id added as a secret resolves to an empty string and the token step fails with an authentication error that names nothing.

  6. Delete the downloaded .pem from the machine that generated it. It exists in the secret store now, and a second copy on disk is a second thing to protect.

Rotating the key is generating a new one, replacing REVIEWER_APP_PRIVATE_KEY, and then deleting the old key from the App — in that order, so no run falls between a revoked key and its replacement.

The reviewer authenticates with a Claude Code OAuth token, produced by claude setup-token against a Claude subscription. Without it the run fails at the action step. That secret buys model time and nothing else; publishing is the App's, and the two credentials are never held by the same step. THIRD_PARTY_LICENSES.md records exactly what the run sends and under whose terms, including the consumer-plan data-training setting that decides whether what is submitted this way trains future models.

Which subscription pays for a review is a repository variable. The owner runs Claude Code under more than one profile, and each profile's subscription has its own token, so both live in the secret store at once and one variable selects between them: CLAUDE_CODE_PROFILE set to secondary makes every run authenticate with CLAUDE_CODE_OAUTH_TOKEN_SECONDARY, and unset — or set to anything else — means CLAUDE_CODE_OAUTH_TOKEN. It is a variable rather than a secret because the name of a profile is not one, and keeping it out of the secret store is what lets a run's log say which subscription it selected instead of ***. Switching back is that variable changing rather than a token regenerated over one somebody overwrote.

A secondary profile whose secret was never stored falls back to the first profile's token rather than authenticating with nothing, because a GitHub expression yields its right operand whenever the middle one is empty. That is the better of the two outcomes — a review running on the other subscription beats one that cannot run — and it is why the two steps that compare findings against the credential still refuse an unset one outright: both secrets missing is the case no fallback covers, and each of those steps names the secret the run actually looked for.

Three places in the workflow name that credential and a fourth names the secret, so scripts/test-agent-workflow.sh fails when they stop agreeing. Handing the secret to one place and letting every step read it would be the alternative, and it would put the credential in the environment of the two jobs that never touch one and of the step that runs the model. What the contract guards against is the failure that is otherwise silent: a leak check comparing a review against the token the run never spent matches nothing, passes every review, and is green.

The board write is a third credential, BOARD_PROJECT_TOKEN, and it is optional: without it the review is published exactly as before and only the Status write is skipped. It is a classic personal access token with the project scope and no other, created at https://github.com/settings/tokens by an account that can write to the organization's board, because the workflow token is scoped to the repository and reaches no project. Give it an expiry and replace it there when it lapses: a token the board refuses fails that job and says so, rather than leaving the board quietly behind. Nothing else reads it, and it is held by a job that runs no model and checks out nothing from the branch under review.

Dependency update pull requests

Nothing here opens one on a schedule. Actions are referenced by major tag, so an upstream patch arrives without a commit, and a major arrives when somebody looks; docs/operations/local-development.md records how that looking is done and why an updater is not what does it. A bump is therefore ordinary task-shaped work — a branch, an issue, and the skills — rather than a pull request that appears.

update-dependencies is the skill for it, and it is entered only when the task in front of the session is a dependency update: a pin being behind is never a tidy-up to fold into an unrelated change. It runs the survey first, before start-task, because the survey writes nothing and needs no branch, and that order is what lets the issue describe a hundred pins whose state is known rather than an intention. Then the decision, which is the step with no command in it and which the four questions below are; then --apply on the branch, corrected against that decision, because the script moves every behind pin it can and is not where the decision was made; then the register, by hand, from the line numbers the run printed. The two pin families the script refuses to rewrite — the SDK floor, and a container image written across four assets — are refused by the skill too, and each is a task of its own.

One author can still open one without a task behind it. Dependabot security updates is a repository setting, off today and one click from not being, and an advisory the owner decides to act on that way arrives as a pull request from dependabot[bot]. The paragraphs below are about that case, and the four questions are what answers a version bump whoever wrote it.

No skill runs on such a pull request and none should. start-task opens an issue and finish-change writes a board field, and neither has anything to do there: the change is already written, it closes no issue, and it belongs to no roadmap item. What it needs is a reading, and the reading is the maintainer's.

Fathom review does not run on one either, and the four questions below are why. Three of them are answered somewhere the diff does not reach — the upstream release notes, the action's ownership, the register — and the fourth is answered by the checks. A reviewer given the diff sees a version number in a uses: line and can confirm none of them, so a run would spend subscription usage restating what the tag already says, again on every rebase the updater performs. The gate refuses by author, before the draft and fork checks that would otherwise let a published bump straight through; the fathom-review label still reaches one, which is what a major touching a workflow's inputs is worth.

Four questions answer a version bump, and the first is the one a version number on its own makes easy to skip.

  1. Is the new revision one this repository would have chosen? Read the upstream release notes, not just the version numbers. A major is where this matters: it can rename an input, drop a runner, or refuse something the previous one allowed, and the diff shows the tag moving rather than what moved with it.
  2. Does the owner stay inside the reviewed set? An update never introduces a new owner, and every_external_action_names_an_approved_owner in scripts/test-agent-workflow.sh refuses one on this pull request as on any other. A version that changed what an action is — a transfer, a rename, a fork under the same name — is the case that contract cannot see and a reader can.
  3. Does THIRD_PARTY_LICENSES.md still describe the truth? Its continuous integration rows name each action, the version its reference resolves to, and the argument for allowing it. A bump moves what those rows record, so the register is updated in the same change — which is $check-docs-licenses's rule, and the reason a bump is worth a task rather than a click.
  4. Do the checks pass on their own terms? Required CI and Protected paths are required on this pull request exactly as on any other, and Protected paths passes only because the exception it carries recognises this author for .github/workflows/ alone. A red one is a red one; nothing here is exempt and nothing auto-merges.

The pull request is merged the same way everything else is: a code owner approves it, and the owner merges it. If a bump has to be declined, close the pull request and say why in it. Closing settles that version and not the dependency, and the comment is where the next reader finds out the version was considered rather than missed — which matters more when nothing will raise it a second time.

Instruction scope

Root AGENTS.md is loaded into every agent session in either stack, so it carries what has to be true before a file is read and what a session in one stack still owes the other, and nothing else. A rule a client session could not act on is not one of them, which is why the .NET and C# contract sits in backend/AGENTS.md rather than at the root. Its Where the rest of the contract lives table names every other file and says when each one is read; this section is the same split seen from the other end, with the reason each destination is reached whenever its rule matters.

File Loaded when Reached because
AGENTS.md Always CLAUDE.md is a single @AGENTS.md include
backend/AGENTS.md A change anywhere under backend/ The directory cascade. It holds the service stack's whole contract — the .NET and C# conventions among it — because the root file is loaded into client sessions that have no .cs file to apply them to
backend/src/AGENTS.md A change under backend/src/ The directory cascade. It holds what is true of the service's production code alone
backend/src/Infrastructure/AGENTS.md A change under backend/src/Infrastructure/ The directory cascade
backend/tests/AGENTS.md A change under backend/tests/ The directory cascade, and root AGENTS.md names it wherever tests are owed
design/AGENTS.md A change under design/ The directory cascade. It holds how the design is authored, which is the one place the stacks' rules for structure, logic, and tests are stated not to reach
docs/AGENTS.md A change under docs/ The directory cascade
docs/operations/issue-tracking.md An issue is opened, placed, or linked start-task step 8 and finish-change both name it at the step that writes the board — the only two points at which the rules are acted on
docs/operations/agent-workflow.md A workflow script or skill is in question Root AGENTS.md § Agent workflow and verification opens by naming it
docs/operations/local-development.md The SDK, database, packages, or Actions policy are involved Root AGENTS.md and CONTRIBUTING.md both point at it for setup, and it is where the settings that live outside Git are recorded
.agents/skills/check-docs-licenses/SKILL.md Every change It is the mandatory completion gate, so the licensing rules it holds are read on every change by construction
.agents/skills/add-migration/SKILL.md A model change needs a migration Root AGENTS.md names it as the only way to add one
.agents/skills/update-dependencies/SKILL.md The task is to move dependency pins Root AGENTS.md names it beside the survey script, and § Dependency update pull requests above names it where a bump is described

Each nested CLAUDE.md imports its sibling AGENTS.md.

What is here for the process rather than for the product

The repository is public, so everything below is read by people who did not write it. Each was classified deliberately rather than left in place by default:

  • The seven AGENTS.md files and their CLAUDE.md imports — kept in place. They are the contract the agents execute, they are what makes a contribution produced by an agent satisfy the same rules, and AGENTS.md is a convention other projects now share rather than a private artifact.
  • .agents/skills/ — kept in place. The skills run in a fork, which is the whole of The two roles above; removing them would leave a contributor's agent with the rules and none of the procedure.
  • .claude/skills — kept. It is a relative symlink to ../.agents/skills, inside the repository, and it is what makes those skills reachable from Claude Code in any clone. Copying the tree instead would create a second copy to keep true.
  • .worktreeinclude — kept. It names the gitignored files a new worktree needs and is inert everywhere else, which costs a reader one file and saves the next person configuring a worktree from rediscovering the list.
  • This page — kept. How the project is worked is part of what a contributor needs, not residue from it.

Nothing here is retained for sentiment: a dated implementation plan, design note, or architecture draft is the shape that was removed, because it records how a change was arrived at or what was once intended, is not allowed to be rewritten, and therefore can only drift from the code while sitting in a tree a reader takes as fact. What replaces it is a decision record for the intent that is settled and an issue for the work that is not.

Failure recovery

  • Detached HEAD, a primary checkout, a non-agent/* branch, or a branch that does not contain the freshly fetched origin/main blocks file changes. Create the required linked worktree and branch from current origin/main, then rerun start-task.
  • A dirty workspace blocks new edits until git status --short --untracked-files=all has identified every existing path and the user has approved a preservation plan. Never assume pre-existing changes are unrelated.
  • verify-fast.sh must not run on main (or master, or the same message from verify-full.sh) means verification was started on the integration branch. Check out the branch that carries the change and rerun; the scripts never change branches themselves.
  • HEAD does not contain the current origin/main means main moved after the branch was cut. Both gates refuse it. Rebase onto the fetched base, resolve any conflicts, and rerun; earlier passing results describe a base that no longer exists.
  • cannot fetch origin main, from either gate, means the remote is unreachable or the credentials failed. Restore access and rerun. Do not work around it by verifying against the local remote-tracking ref.
  • Untracked files must be staged or removed before full verification means the focused task files have not all entered the index. Stage only those task files, inspect the staged diff, and rerun the complete gate.
  • NU1004: The packages lock file is inconsistent with the project dependencies means a pin moved without the lock files being regenerated. Both scripts restore in locked mode, so this is the intended result rather than a tooling fault. Run dotnet restore backend/MailFathom.slnx --force-evaluate, review the transitive changes it writes, stage them with the pin, and rerun.
  • .NET SDK: unavailable means the global.json SDK selection failed. Install the pinned SDK and confirm dotnet --version before verification.
  • A coverage failure leaves detailed reports under artifacts/coverage/report/. Add meaningful tests, rerun the complete gate, and do not weaken the 85% scope or exclusions.
  • If Claude Code cannot discover the skills, confirm that .claude/skills is the relative symlink ../.agents/skills, that its target contains every SKILL.md file, and that the installed Claude Code version supports directory symlinks. Stop instead of creating a duplicate skill tree.

Completion evidence

A change is not complete until check-docs-licenses returns pass or n/a for all three categories, verify-fast.sh succeeds from a fresh run, the complete diff has been inspected for secrets, generated files, unrelated edits, and boundary violations, and the published pull request body references its issue. The rest of the evidence is the pull request's own checks, which is where the coverage target, the contract suite, and the client's bundle, browser suite, and desktop suite report.

gh pr edit fails against this repository with a Projects-classic GraphQL error and silently drops the edit, so correct a missing issue reference through gh api repos/<owner>/<repo>/pulls/<number> -X PATCH -f body=....