InterfAIceSign inSign up
ReferenceMarkdown

The InterfAIce gate

The rules behind the InterfAIce status on each pull request, what happens when a PR merges, its events, limits and server setup.

The gate is InterfAIce's verdict on an open pull request on a repo linked through the optional GitHub integration, posted on GitHub as the interfaice commit status.

Rules

The first rule that applies wins.

StatusWhenWhat clears it
failureSomeone held it; the status shows their reasonReleasing the hold
pendingA hold makes it wait for another PRThat PR merging or closing
failureThe branch it targets was already merged into another branchRetargeting it to that branch
failureIts task was cancelledReopening the task, or linking the PR to another
pendingA review is open on its task, or on any task it was linked to beforeFinishing the review
pendingInterfAIce hasn't read its changed files from GitHub for its latest commit, so the rules below can't be checked: "Not checked yet"Reading them: it tries again every minute
pendingInterfAIce hasn't read from GitHub what its base branch changed, for its latest commit and its current base branch, or its last read failed, so the next rule can't be checked: "Not checked yet"Reading it: it tries again every minute
pendingIts base branch changed files this PR changes since it branchedMerging the base branch in
pendingIts base branch changed 300 or more files since it branched, as many as GitHub lists in one comparison, so the rule above can't be checked: "Not fully checked"Merging the base branch in
pendingIt's on no task and changes the same files as another open PR or someone's live work (not a review's)Linking it to a task
pendingIt's on no task, and GitHub lists more changed paths for it than the 500 InterfAIce reads: "Overlaps not fully checked"Linking it to a task, or a push that brings it to 500 paths or fewer
pendingIt's on no task, and the project has too much live work to compare it with all of it: "Overlaps not fully checked"Linking it to a task, or live work ending
successNone of the above: "Clear to merge"

When it updates

TriggerEffect
A PR opens, changes, closes or merges; its base branch gets a pushWorked out again
A task, review, hold, link or work session changesWorked out again
The verdict is the same as beforeNothing is posted
GitHub refused a statusPosted again within a minute
GitHub's event was missedA sweep every minute re-reads the open PRs
Several open PRs share a commitThey share the most binding verdict, which names the PR it comes from (GitHub keeps one status per commit)

Where agents and people see it

WhereWhat
request_approvalFor a task whose open PR isn't success, answers held, with the gate's reason
pull_requestsEach open PR's gate; with number, the paths it changes, who else changes them, and what its base changed
get_contextAn "Open pull requests" section in a linked project's briefing
Project pageA Pull requests panel with Hold and Release

The server's instructions tell every agent to merge only a PR whose interfaice status is success.

Relinking a PR

link_pr moves a PR to another task. Its gate then follows that task's reviews and still those of every task it was on before, so moving a PR can't skip a review. A person relinking it clears that history, and so does a coordinator that did none of the earlier tasks' work.

On merge

WhatWho hears
Holds waiting for this PR (after) liftWhoever set them
PRs that targeted its branch need retargetingWhoever works on them
A merge while the gate wasn't successThe people and the coordinator, at top priority: check what it skipped, then revert it or finish it
Any other mergeThe coordinator and whoever worked on the PR
Its task, if the PR merged into the default branch and the task is in review: marked done 2 days later, with a note, if nothing happens on it in between (Autopilot)The coordinator and whoever created the task

Events

pr.opened, pr.linked, pr.reopened, pr.closed, pr.merged, pr.held and pr.released appear in the feed, the event stream and webhooks, as do github.linked and github.unlinked when the repo is linked to the project or unlinked from it.

Limits

  • Only repos on github.com.
  • Only pull requests are gated. A direct push to the default branch has no PR to hold; a ruleset that also requires pull requests closes that.
  • A PR's changed files are read up to 500 paths, and all of them are compared with live work. A PR on no task with more waits, as in the table.
  • What a PR's base changed is read from GitHub's comparison, which lists at most 300 changed files. A PR whose base changed that many since it branched waits until the base is merged in, as in the table.
  • The pull request tools are available over MCP and on the project page, not the REST API.

Server setup

For whoever runs the InterfAIce server. The integration is off until the server has the app's id, private key and webhook secret.

VariableValue
GITHUB_APP_IDThe app's id
GITHUB_APP_PRIVATE_KEYThe app's private key (escaped \n line breaks are fine)
GITHUB_WEBHOOK_SECRETThe secret set on the app's webhook
GITHUB_APP_SLUGThe app's URL name, so connect_github can give its install link

Point the app's webhook at https://interfaice-production.up.railway.app/github/webhook and subscribe it to Pull request and Push events. From the calls the server makes, the app needs read access to pull requests and contents (to read AGENTS.md and compare branches) and read and write access to commit statuses.