Skip to main content

Enforcement status

See where your posture reports — and where it prevents.

The cross-layer status surface gives an honest picture of the enforcement posture your configuration currently exposes.

What status reports

Measured 2026-09-30 on 8.6.8: coderifts@8.6.8, with no API key, in an empty git folder: coderifts status exits 0 and prints three local lines. Runtime PREVENTS (host wrap fail-closed; CODERIFTS_ADVISORY unset), Merge REPORTS (MERGEGATE_ENFORCE=not true) is what coderifts status printed that day. It is not the live check conclusion: check_run 111270526393 concluded failure. Deploy PREVENTS (deploy-gate fail-closed). The 2026-09-18 sentence that said both commands stop at no API key is withdrawn. In a folder with nothing wired, the three lines describe the packages' defaults, not this repository. Re-measured 2026-10-24 on 8.8.0: npx coderifts@8.8.0 status, in an empty git folder, with CODERIFTS_API_KEY, CODERIFTS_ADVISORY, and MERGEGATE_ENFORCE unset, and with HOME set to an empty directory, exits 0 and prints:

Runtime    not wired here  (no coderifts claude-hook or cursor-hook in .claude/settings.json, .claude/settings.local.json, ~/.claude/settings.json, .cursor/hooks.json, ~/.cursor/hooks.json)
Merge      not measurable without a key  (the required check is read from GitHub by the API; local: no contract-gate workflow, no .coderifts.yml)
Deploy     not wired here  (no active workflow step runs coderifts deploy-gate; no admission webhook names coderifts-k8s-admission)

coderifts status is a read-only report. These three lines do not write to GitHub and do not change branch protection.

REPORTS

The result is visible while merge or deploy can still proceed.

PREVENTS

The action physically cannot proceed on that path.

coderifts status owner/repo
coderifts status --repo owner/repo --json

What enforce does

coderifts enforce closes enforcement gaps by chaining existing setup commands: Merge → setup-required-check; Runtime → hook install (apply only) plus agent-guard guidance; Deploy → deploy-gate CD-step guidance; Content → guidance only.

Dry-run by default

--apply is required to mutate. The command does not silently flip enforcement, does not bypass underlying command safety, does not label Runtime or Content as server ENFORCING, and does not upgrade UNKNOWN.

coderifts enforce owner/repo
coderifts enforce --repo owner/repo --apply

The reporting-to-enforcement bridge

status shows the posture the endpoint measured. enforce is the dry-run-first setup path for closing gaps. The gates enforce; these commands surface and configure the posture.

Make the check block a merge

A CodeRifts check appears on a pull request as soon as the App is installed. It does not block anything at that point. Four conditions have to hold together before GitHub will actually stop a merge; miss any one and the check is advisory, which looks identical on the PR page.

  1. Branch protection requires the context by name. re-read 2026-10-10, the check-run name fields on coderifts/demo pull request 4, head b3a4b9c309f161de73d9ca99964de67a34f45a91, are CodeRifts / issuer (app id 2860592, check_run 114149286705, conclusion failure) and CodeRifts / contract-gate (app id 15368, check_run 114149308924, conclusion failure). No check-run on that head is named with an em dash. A different string does not match.
  2. Each context is bound to the app that posts it, not just to the name. Under name-only matching (app_id: null) any user with write access can post a success status under that name and open the merge. Bind CodeRifts / issuer to app id 2860592 and CodeRifts / contract-gate to app id 15368.
  3. An analysable schema is present. With no spec to read, the check reports neutral — and GitHub does not treat neutral as a failure. A required check can stay green while looking at nothing.
  4. Bypass is closed. On classic branch protection, enforce_admins is on. Without it an administrator walks straight past a red check. In the UI: Settings → Branches → the rule for the default branch → Include administrators. On a ruleset, bypass_actors is empty. The reader may be on either surface. Measured 2026-10-11 on coderifts/demo: ruleset 22074842 is active, bypass_actors is empty, and classic branch protection is deleted (GET /repos/coderifts/demo/branches/main/protection answers 404 Branch not protected). enforce_admins is absent from the ruleset response. An admin override is refused with “2 of 2 required status checks are failing.”

Binding by app_id is what the checks[] form of the branch-protection API is for:

gh api -X PUT repos/OWNER/REPO/branches/main/protection/required_status_checks \
  --input - <<'JSON'
{
  "strict": true,
  "checks": [
    { "context": "CodeRifts / issuer", "app_id": 2860592 },
    { "context": "CodeRifts / contract-gate", "app_id": 15368 }
  ]
}
JSON

The App posts CodeRifts / issuer. GitHub Actions posts CodeRifts / contract-gate. On the head above both concluded failure, so this page does not say the issuer conclusion is neutral. What each path does separates the two.

When our API is unreachable

Measured 2026-10-02 with our API unreachable, timing out, or answering 5xx: on the enforcing profile, a head commit that carries a valid signed receipt for its own diff still passes offline without calling us, and every other case fails closed (the contract-gate check concludes failure); if the CodeRifts App cannot post its `CodeRifts / issuer` run, a repository that requires that context stays blocked as "Expected — waiting for status", GitHub's documented behavior for a required check that never reports.

Everything above is GitHub, and it is the “how to make it block” side. Below is the other side, for all three providers we read: what a VERIFIED result means there, and what it cannot mean. It is generated from the CLI’s own statements, so this page cannot drift from the tool that produces the verdict.

Two app ids appear below, and they are not the same control. CodeRifts / issuer is the CodeRifts App, app id 2860592. CodeRifts / contract-gate is GitHub Actions, app id 15368, shared by every workflow in the repository. Both concluded failure on the demo head named above. What each path does separates them per path.

What VERIFIED means, per provider

GitHub

VERIFIED on GitHub means a required status check named contract-gate is bound to a specific app id, on a surface that blocks the merge — either classic branch protection's required_status_checks.checks[], or an active repository ruleset that targets this branch. Only that app can satisfy the check; a passing status posted by anything else does not clear it.

What it cannot mean:

  • It does not identify the WORKFLOW. The bound id is normally 15368, the GitHub Actions App, which is shared by every workflow in the repository — anyone who can write .github/workflows can post a passing check under it. A required workflow pinned by sha is what narrows this to specific bytes.
  • It does not bind a repository admin. With enforce_admins off, an admin merges past the check.
  • It is a configuration fact, not a run: it says the gate is set up, not that any particular pull request was gated by it.
  • It does not cover bypass actors, which are not readable from the ruleset document.

GitLab

VERIFIED on GitLab means the merge was gated: the protected branch restricts who may merge and forbids force-push, the project requires all status checks to pass, and an external status check passed for the merge request HEAD SHA.

What it cannot mean:

  • It does not identify WHO satisfied the check. GitLab external status checks bind to the merge request HEAD SHA and carry no issuer identity — the API records that a check passed, not which integration passed it. Any actor holding a token permitted to post external status checks can satisfy this control.
  • There is no GitLab equivalent of the GitHub app-id binding. This is a platform limit, not a configuration gap: no setting on GitLab closes it.
  • External status checks are a GitLab Ultimate feature. On a lower tier the project cannot express a merge-blocking check at all, which we report as UNSUPPORTED_PLAN rather than as a misconfiguration.

Bitbucket

We do not currently issue VERIFIED for Bitbucket from configuration alone. Branch restrictions are readable and we report exactly which are present; the result is capped at UNVERIFIABLE until a behavioural canary observes the provider actually refusing a merge.

What it cannot mean:

  • A green build is not an unforgeable gate. require_passing_builds_to_merge gates on build statuses, and any actor with repository write can overwrite a status by posting a new one on the same commit.
  • The control that WOULD be unforgeable — a required custom merge check, which is a Forge app and Premium-only — exposes no API for reading its configuration, so whether it is present and required cannot be determined by reading.
  • Because of the two limits above, a configuration read on Bitbucket can never rise above UNVERIFIABLE. Only the negative canary can settle it.

Honest bound

Status reflects configuration, not a guarantee. A layer shown as preventing depends on repository and host configuration. Prevention holds inside the wired boundary; an unwired surface can be bypassed.

Integration ceilings, measured 2026-10-25

ENFORCING: the provider holds the gate. INTERCEPTING: a host or a running step holds it, if it honours the exit code. ADVISORY: nobody holds it. null: not measured (source outside this repository).

Source file docs/evidence/adapter-manifest/adapter-manifest-2026-10-25.json. 26 rows.

adapter_idmaximum_claimenforcement_pointcredential_ownerknown_bypass_pathscoverage_evidence
github-app-issuer ENFORCING A GitHub, ha a context required, app id-hez kötött, és a bypass zárva van. A check posztolásához a GitHub App installation tokenje. A merge joga a GitHub-felhasználónál, illetve az adminnál marad.
  • app_id null mellett azonos nevű success státusz write joggal
  • enforce_admins ki; a setup-required-check alapja false (admin_bypass_open)
  • ruleset bypass_actors: csak a dokumentumon jelen lévő kulcsot osztályozza, a nem látott hiányt nem állítja üresnek
  • neutral conclusion a GitHubon nem failure
  • legacy em-dash check név nem a required név
  • MERGEGATE_ENFORCE alapból nem true: az App check neutral
  • workflow-fájl átírása: fedve: P70 (két külön nem-szerző jóváhagyó, REQUIRE_APPROVAL, nem STOP)
test/r5-check-run-takeover.test.js — R5 · a re-evaluation that cannot create its run takes over the latest one and ends red; test/control-plane-never-neutral.test.js — a .coderifts.yml-only diff: failure; packages/cli/test/provider-statements.test.js — GitHub names the SHARED issuer
github-action-contract-gate ENFORCING A GitHub, ha a CodeRifts / contract-gate context required. Az app id 15368 minden workflow-é. A workflow GITHUB_TOKEN / Actions app 15368 posztolja a checket. A CODERIFTS_API_KEY a repo secretje.
  • az alap sablon coderifts/contract-gate@v0, mozgó tag
  • aki .github/workflows alá írhat, 15368 alatt success checket posztolhat, amíg a workflow nincs SHA-ra kötve
  • enforce_admins ki; ruleset bypass_actors
  • a workflow-fájl saját diffje: fedve: P70 (két jóváhagyó, nem STOP)
  • a grant-követelés az alap és a partner sablonban ki van; a strict sablonban be
packages/cli/test/gate-version-consistency.test.js; packages/cli/test/provider-statements.test.js — GitHub names the SHARED issuer
cli-diff ADVISORY Senki. A kilépési kódot a hívó olvashatja. A parancsot futtató OS-felhasználó.
  • a parancsot nem kell meghívni
  • a küszöb a hívásban átírható
nincs külön kaputesztnév kiolvasva; a diff.js a statikus diffet helyi elemzésnek írja
cli-diff-gate ADVISORY Senki, amíg egy shell vagy egy skill az exit kódot tiszteletben nem tartja. A felhasználó CODERIFTS_API_KEY-je a döntéshez. A git írás joga a felhasználónál marad.
  • a --gate elhagyása
  • a parancs meg nem hívása
  • a skill || exit 2 szövege nem host-kapu
nincs külön tesztnév kiolvasva; a szerződés a quoteAuthorizeGate függvény
cli-verify ADVISORY Senki. A parancs egy telepített profilt minősít. A parancsot futtató OS-felhasználó.
  • a parancsot nem kell futtatni
  • más target neve usage exit 1
nincs külön tesztnév kiolvasva; a kilépési szerződés a verify-atomic-v2.js fejléce
cli-tools-check ADVISORY Senki, amíg egy script az exit 2-t be nem köti. A fájlokat olvasó OS-felhasználó.
  • a parancs meg nem hívása
  • a pillanatkép nem a futó szerver
test/tools-check.test.js — Neon → exit 2; explain_sql_statement readOnlyHint true→false and destructiveHint false→true are named
cli-status ADVISORY Senki. A parancsot futtató OS-felhasználó. GitHub írásjogot nem használ.
  • CODERIFTS_ADVISORY mellett a Runtime sor REPORTS
  • bináris hiányában BINARY_MISSING, és az nem PREVENTS
  • vezetékezés nélkül NOT_WIRED_HERE
packages/cli/test/status.test.js — an admission webhook naming coderifts-k8s-admission → Deploy PREVENTS; failurePolicy Ignore → REPORTS
cli-enforce ADVISORY Senki. A kaput a bekötött check vagy hook tartja, miután lefutott. --apply mellett a felhasználó GitHub tokenje a protection írásához, és az OS-fiók a hookfájl írásához.
  • dry-run mellett semmi nem változik
  • az enforce_admins a setup parancsban alapból false
packages/cli/bin/coderifts.js enforce komment: dry-run by default; status.js renderStatusReport: Runtime és Content nem server ENFORCING
mcp-server ADVISORY Senki. Az src/index.js: Decision only — this server enforces nothing by itself. A hívó API-kulcsa a tools/call-hoz. Az írás, a merge és a tool hívás joga a kliens hostnál marad. A tools/list kulcs nélkül megy.
  • a hívás kihagyása
  • analyze mód may_execute false, és nem engedély
  • agent_operation: nincs szemantikai elemzés és nincs execution grant
  • a tool description UNTRUSTED_INPUT
test/agent-operation.test.js — schema description carries the agent_operation sentence word-for-word; MCP artifacts[].type enum includes agent_operation
claude-hook INTERCEPTING A host, ha az exit 2-t tiszteletben tartja. A tool hívás joga a Claude Code hostnál és a felhasználó OS-fiókjánál van. A CodeRifts kulcs a döntéshez kell.
  • CODERIFTS_ADVISORY=1|true a governance-could-not-run helyeken lágyít; CODERIFTS_STRICT alatt nem
  • matcherön kívüli eszköz
  • host, ami az exit 2-t figyelmen kívül hagyja
  • a settings átírását a self-protect exit 2-vel utasítja
  • a governált útvonal a contract glob
  • a control-plane nevű Grok-konfig írást a hook másolatok átengedik
packages/cli/test/claude-hook-deadline-p38.test.js — an API that accepts and never answers: exit 2; packages/cli/test/claude-hook-self-protect.test.js — claude-hook self-protection — refused (exit 0 on 8.7.5, exit 2 now)
cursor-hook INTERCEPTING A host, ha a deny-t és az exit 2-t tiszteletben tartja. A hooks.json failClosed alapja false; a telepítő true-ra írja. A Cursor host és a felhasználó OS-fiókja.
  • CODERIFTS_ADVISORY és a matcherön kívüli eszköz, ugyanaz a család, mint a claude-hook
  • failClosed false, ha a fájlt nem a telepítő írta
  • olvashatatlan stdin deny
packages/cli/test/cursor-hook.test.js — REQUIRE_APPROVAL denies (Cursor does not enforce ask) and says a human must approve
git-pre-push INTERCEPTING A git, ha a hook telepítve van és az exit 1-et tiszteletben tartja. REQUIRE_APPROVAL és WARN is exit 1, a sor megnevezi a verdiktet. A git push joga a felhasználó OS- és Git-fiókjánál van. A döntéshez API-kulcs kell.
  • CODERIFTS_SKIP=1 hangos exit 0
  • git push --no-verify
  • nincs kulcs és CODERIFTS_ADVISORY: exit 0
packages/cli/test/pre-push-hook-logic.test.js — explicit-skip CODERIFTS_SKIP=1 → exit 0 loud (even if API would BLOCK); unknown execution_action present → halt (exit 1); PRE_PUSH_SCRIPT REQUIRE_APPROVAL / WARN → exit 1, named (2026-10-24).
claude-plugin-early-guard INTERCEPTING A host, ha az exit 2-t tiszteletben tartja, és csak a GRANT_ABSENT úton. Bekötetlen gépen NO_LOCAL_GRANT_EVIDENCE_AVAILABLE és exit 0. A felhasználó OS-fiókja. A hook fájl és a .coderifts könyvtár ugyanazon a gépen van.
  • CODERIFTS_EARLY_GUARD=off exit 0
  • olvashatatlan stdin exit 0
  • bizonytalan Bash exit 0
  • a .coderifts könyvtár hiánya átenged
  • disableAllHooks, --safe-mode, --bare (plugin.json modDoesNotProve)
  • a grant fájl lejárat és útvonal, ujjlenyomat-újraszámolás nélkül
test/early-guard-x20.test.js — a contract write with the mechanism WIRED and no grant is BLOCKED (exit 2); with NO mechanism at all the state is NAMED and the write proceeds; unreadable input PASSES
deploy-gate INTERCEPTING A workflow-lépés, ha a deploy job futtatja a parancsot és a nem-nulla exitet figyeli. A --enforce az exitet nem változtatja. A CD-jobot futtató CI-identitás. A deploy infrastruktúra joga annál a rendszernél van, amelyik a lépést a jobba teszi.
  • a lépés kihagyása a deploy jobból
  • CODERIFTS_DEPLOY_ADVISORY vagy CODERIFTS_ADVISORY
packages/cli/test/deploy-gate.test.js — advisory: DENY exits 0 + loud ADVISORY MODE label; DB-001: no receipt → pending + must_re_preflight; DB-014: inescapable_deploy is ONLY from the gate
publish-gate INTERCEPTING Az npm, ha a script a prepublishOnly-ban van és az exit 1-et figyeli. A publikáló OS-felhasználó és a registry tokenje. A CodeRifts kulcs nélkül helyi elemzés fut.
  • npm publish --ignore-scripts
  • a script kihagyása a package.json-ból
  • más registry kliens
packages/cli/test/publish-gate.test.js — STOP / REQUEST_APPROVAL block; CONTINUE permits; breaking change BLOCK → exit 1; empty before rejection is EMPTY_BEFORE
registry-gate INTERCEPTING A folyamat, ha valaki meghívja és az exit 1-et figyeli. A termék nem köti be lifecycle-ba. A könyvtárat olvasó OS-felhasználó.
  • --warn-only
  • a parancs meg nem hívása
packages/cli/test/registry-gate.test.js — --warn-only never fails; collision-only → exit 1 by default (WARNING fails)
docker-mcp-interceptor INTERCEPTING A Docker MCP Gateway, ha ezt az URL-t before-interceptornak hívja. A HTTP-státust a gateway nem olvassa. Az API-kulcs a CodeRifts bérlőé. A tool végrehajtása a gateway és a hátsó MCP-szerver joga.
  • a gateway interceptor nélkül
  • nem író eszköznév vagy nem contract útvonal: üres body, a hívás átmegy
  • egy compose-fájl említése a boundary-paths.js szerint ADVISORY, és fájl jelenlétéből nem ENFORCING
test/docker-mcp-interceptor.test.js — a write-class tool on a contract path → CallToolResult isError; fail closed unreadable body → BLOCK; keyless → 401. packages/cli/test/status-paths.test.js — compose mentioning docker-mcp-gateway is ADVISORY never ENFORCING
mcp-gateway-core ADVISORY Senki a szállított szerveren. Aki a middleware-t egy saját proxyba beköti.
  • a modul kihagyása
  • a szállított /mcp út e nélkül válaszol
test/warn-fail-closed.test.js használja a projectGatewayVerdict-et. A nem ül a vezetéken mondat a mcp-gateway.js fejléce.
gitlab-enforcement-adapter ADVISORY A GitLab, ha a projekt saját beállításai a merge-et zárják. Az adapter osztályoz. identity_binding none. A GitLab token, amivel a CLI olvas. A merge joga a GitLab projektnél van.
  • bármely token, amivel external status check posztolható
  • force-push engedélyezése, az all-checks kapcsoló ki, más SHA-ra szóló check
  • alacsonyabb csomag: UNSUPPORTED_PLAN
  • app-id kötés a platformon nincs
packages/cli/test/enforcement-adapter.test.js — POSITIVE: all three surfaces aligned → VERIFIED with identity_binding NONE; no external status checks at all → UNSUPPORTED_PLAN
bitbucket-enforcement-adapter ADVISORY A Bitbucket, ha egy nem olvasható Forge check zár. Ebből az olvasásból az adapter VERIFIED-ig nem megy. A Bitbucket token az olvasáshoz. A státusz felülírása repository write jog.
  • require_passing_builds_to_merge mellett új státusz ugyanarra a commitra, repository write-tal
  • a Forge check jelenléte olvasásból nem derül ki
packages/cli/test/enforcement-adapter.test.js — EVEN WITH every readable restriction present, it cannot reach VERIFIED; packages/cli/test/provider-statements.test.js — Bitbucket does NOT claim VERIFIED from configuration
grok-bot-skill ADVISORY Senki a skillben. A fájl a PR required checkjét nevezi kapunak. A bot sandboxja és a környezet CODERIFTS_API_KEY-je.
  • a bot, ami a szöveget nem követi
  • a Never-lista szöveg
  • a .coderifts/grant-*.json a skill szerint helyi evidence, nem engedély
nincs futtatott node-teszt kiolvasva; markdown forgatókönyvek az agent/grok-bot/tests/ alatt
agent-setup-rules ADVISORY Senki. Szöveg. A host, amelyik a szabályfájlt olvassa, és a felhasználó OS-fiókja, amelyik a fájlt törölheti.
  • a fájl átírása
  • a parancs kihagyása
  • olyan host, ami a szabályfájlt nem tölti be
test/agents-quickstart-copy.test.js — primary example is ONE chain: native executionGrant + withCodeRifts + executor + attestation
execution-grant-client ADVISORY Senki. A host, amelyik a wrappert a saját executorába teszi.
  • a wrapper kihagyása
nincs külön tesztnév kiolvasva; a szerződés a fájl fejléce
k8s-admission-detector ADVISORY Senki ebben a repóban. A detektort futtató OS-felhasználó csak olvas. A klaszter admission joga a klaszteré, és az a vezérlő, ami nincs ebben a fában.
  • más webhook-név
  • failurePolicy: Ignore
  • a vezérlő hiánya: a detektor a név alapján így is PREVENTS-et nyomtathat
packages/cli/test/status.test.js — an admission webhook naming coderifts-k8s-admission → Deploy PREVENTS; failurePolicy Ignore → REPORTS
receipt-verifier null not measured — source outside this repository not measured — source outside this repository nincs
agent-guard null not measured — source outside this repository not measured — source outside this repository nincs a csomag forrása a fában. A deploy-gate.test.js a CLI saját mátrixa, ami a guard függvényét hívja.

This table is the ceiling measured from the code on 2026-10-25. It does not prove that any given installation has the gate wired.