Skip to content

Source and scope checkpoint

Workflow (Exact Commands)

For allowed GitHub reads, run the direct collector under current effective network and filesystem grants or request runtime approval for the complete owning command when required capability is unavailable. No separate workflow consent is needed. Apply GitHub Read Execution; runtime permission and denial remain authoritative.

Permission recovery precedes terminal reporting: Complete the entry metadata reader and PR State Preflight before collector permission handling. For an admitted OPEN PR, before collection, resolve required network and write access using GitHub Read Execution. Missing or unknown access with requests allowed requires the five-field brief and a runtime approval request for the complete collector, not profile setup or an unavailable report. A github-network error alone does not prove denial: inspect current grants and safe diagnostics, request missing capability if permitted and not already denied, then resume collection after approval. Preserve the failed attempt in its run directory and use a fresh run directory for approved recollection. An actual denied request or non-overridable restriction stops this route; never request equivalent access again or broaden destinations. Apply the unavailable gate only after permitted recovery is exhausted or unavailable.

Apply the same capability recovery to required later GitHub reads, including the final PR-state check. Reuse observed permission requirements for the complete owning reader; do not repeat a known default-permission failure or infer a denial from a missing capability. A recovered read resumes the first unmet review checkpoint with retained valid source and reviewer evidence. Preparation, batching or report repair alone does not require recollection or a new user turn.

When runtime permissions show network access enabled and the helper's required paths writable, omit sandbox_permissions and justification on the direct helper call; give no approval brief. Apply GitHub Read Execution even when the active profile name is omitted. A missing label or failed lookup does not mean disabled access; do not run codex execpolicy list to detect a profile. Preserve explicit destination restrictions and check report, .git, and checkout paths separately where applicable.

Entry: resume or start fresh

First apply PR State Preflight for PR scope, including resumed PR work, before prior-report lookup, run creation, collector permission requests or any dependent workflow. Use the retained canonical PR URL on resume. Stop immediately for a currently closed or merged PR; preserve the existing run and local work. The metadata reader owns entry permission recovery and failure diagnostics; collector recovery below applies only after an OPEN state is admitted.

Resolve the metadata reader's profile-or-approval route before the first read, and finish permitted reader permission recovery before reporting entry blocked. Use GitHub Read Execution to distinguish missing capability from an actual denial, then continue this same review after a successful state check.

Resolve this entry before creating or promoting another run. An explicitly resumed incomplete run keeps its frozen source and valid evidence: recover the first unmet checkpoint, without another continuation question or fresh collection solely to repair bookkeeping. Revalidate source receipts and gates when their inputs changed; an unavailable required capability still stops that operation.

When a requested existing report fails lookup, validation or its next consumer (an older result, an unpromoted candidate or a result awaiting admission by a joined +review caller), read and apply Report compatibility and recovery before treating it as missing; lookups that succeed do not load it. The reference preserves the version-reader assessment, the evidence-preserving repair rules, automatic missed-ordering recovery, and the interrupted-check Continue or Skip exception before the other New review, Resume last one and Stop recovery choices.

Previous review run lookup

For a new invocation, resolve identity for all PR input forms before prior-report lookup or run allocation:

  1. A canonical PR URL supplies the lookup identity directly.
  2. For a number or #number, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/select-git-remote.py --canonical-pr-url <positive PR number> --cwd <repository> and retain its printed canonical URL. It selects valid GitHub origin despite fork remotes, or the sole GitHub remote if origin is absent; stop if no safe default identity exists. This reads local configuration without contacting GitHub.
  3. For the current-branch PR, obtain one temporary identity file through PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/github_read.py --out <temporary identity file> -- gh pr view --json url,state from the invoking repository, under the existing GitHub-read boundary. Validate its returned url and current state through PR State Preflight; this one read satisfies both identity and state entry checks. Do not create a review run for identity lookup. This metadata is not a completed review or fresh source proof. An identity-read failure after permitted reader permission recovery stops dependent entry work with its diagnostic; never guess an identity or treat denied access as a missing prior report.

Inspect PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/find-review-report.py --help for lookup arguments. For standalone PR entry, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/find-review-report.py --latest-run --target <canonical PR URL> from the original invoking checkout to locate the newest matching run, completed or incomplete, across the current and historical report roots bound to that checkout and PR. Keep this working directory for the subsequent --expect-run lookup. For standalone local entry, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/find-review-report.py --latest-run --local-scope <scope> from the repository root. Append --local-target <path or revision> for path and commit reviews. This discovers prior sessions by checkout, scope, target and reviewed revision, including selected tracked and untracked contents for mutable source. Existing working-tree and path reviews with sufficient frozen collection and preparation receipts remain discoverable. An explicitly named older run without recoverable selection evidence uses exact-path recovery. Never infer a local match from a timestamp. An interrupted PR allocation can be resumed from its canonical URL in review-entry.json before collection starts. Any retained collector identity must agree with that entry. Keep assessed-report intake (--target and --result) for consumers that require validated findings.

  • Matching standalone repeat. Unless the user supplied an explicit choice, ask through User Questions before allocating a run or collecting source. Identify the target, retained run, recorded revision and completion state. Offer exactly Resume last and Start fresh. Await the answer. A bare repeated invocation leaves this choice open. A request to re-review the PR or assess new discussion selects Start fresh directly.
  • Resume last. After the choice for a PR, run find-review-report.py --latest-run --target <canonical PR URL> --expect-run <selected directory> before continuing. For local scope repeat the same --latest-run --local-scope lookup with its original target and append --expect-run <selected directory>. Bind the answer to the directory offered. If a newer run superseded it, resolve the choice again against the new evidence; preserve both runs. An explicitly named historical run keeps its existing exact-path recovery or completion route. For incomplete work, continue from its first unmet checkpoint, reusing verified evidence, completing missing gates and producing the usual validated handoff. For a completed run, revalidate it with --complete-run. In either case deliver Review delivery through the completion command's successful stdout verbatim, including the assessed summary table and findings (also when empty), recorded revision and evidence limits. The completed report describes the source and online discussion captured in that run. Its recorded head SHA establishes no current-head freshness or coverage of subsequent comments, reviews, replies, edits or resolution changes. If validation fails, follow report recovery and continue authorized work.
  • Start fresh. Preserve the prior run. For a standalone PR, prepare the standalone PR workspace before step 01. Then allocate the run, collect current source and perform the full review. After collection and, for PRs, run-directory promotion, continue at the first unmet checkpoint under the applicable claim. Establish the independent baseline and record the blind blueprint or applicability skip before opening changed source. Keep collection status in progress updates. Finish the completion checkpoint and deliver its successful stdout verbatim, including the tables for the resulting review branch. An explicit choice of fresh or resume, including an answer from an earlier turn for this invocation, goes straight to its route. A nested review follows its caller's intake and delivery contract without this standalone prompt only when the same Code Remediate invocation includes the explicit +review argument.
  • No matching run. Start fresh without a question. Preserve diagnostics for mismatched, unavailable, closed or unverified artifacts. Never substitute an older run behind the latest matching run. A failed requested-report recovery instead returns to the Incomplete review decision in Report compatibility and recovery only after permitted automatic recovery is exhausted. A denied identity read or an unknown PR state still stops dependent work.

Standalone PR workspace

After OPEN preflight and selection of a fresh standalone review, collect from the existing invoking repository and keep reports outside its source tree. PR State Preflight binds the canonical PR URL to a configured remote of the original invoking checkout.

  1. Run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/review_checkout_slot.py acquire --checkout <original invoking checkout> --target <canonical PR URL> --owner <invocation ID> --queue. Retain its owner and locator. Follow Review checkout scheduling for queueing and PR-state refresh. Different PRs can proceed concurrently. Another review of this PR waits for its claim.
  2. From the original invoking checkout, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/review_code_safety.py report-root --checkout <original invoking checkout> --pr-url <canonical PR URL>. Pass its printed absolute directory as create_run.py --root for allocation and promotion. It uses the checkout’s Git administration directory when reverse worktree registration is verifiable and otherwise selects the checkout’s .reports/codex. From the same checkout, run collect_pr.py with the canonical URL and --checkout --checkout-mode review. The collector fetches the exact head and creates the detached worktree used for inspection and checks. Use the same repository for promotion, final validation and cleanup.
  3. Before protected execution, release the PR target claim before queueing for repository-wide exclusivity under the shared scheduling procedure. Revalidate the protected inputs on admission. Snapshot the verified detached source with --main-checkout <original invoking checkout> and --watch-surface. Verify the original checkout against the collector’s integrity_main_checkout when present and preserve the exclusive claim through integrity disposition, including cleanup when it must reverify that snapshot. After a clean disposition, release exclusivity and reclaim the target as needed for remaining work. An inspection hold retains its original owner and locator.

Resume a selected legacy run at its recorded location using its original source, identities and applicable slot rules. For a fresh local review, acquire review_checkout_slot.py acquire --checkout <original invoking checkout> --local --owner <invocation ID> --queue before allocating the run or freezing working-tree, path or commit scope. Retain the locator for that checkout. A nested +review uses the caller’s ownership. Reading a completed report requires no new checkout.

Honor cancellation until the user resumes. Resolve an ambiguous acquisition through the interrupted-owner procedure and preserve every peer’s claim. Maintain existing inspection holds through recovery. While waiting, report changes in owner or state once.

Approved inert fixtures

Before native review input is frozen, the parent may admit an inert test fixture occurrence only after verifying it is inert and obtaining explicit user approval. Record each decision in the optional review-routing.json inert_fixture_admissions list with input_sha256, match_start, match_end, match_sha256, approval_evidence, and rationale. Offsets are Python character offsets; both hashes are lowercase 64-character SHA-256 of UTF-8 bytes for the exact input and matched occurrence. Evidence and rationale must be nonblank and pass strict scanning. Store admission metadata outside untrusted source; frozen plans retain declarations and hashes but do not authenticate human approval. A changed context, new occurrence, or overlapping match requires separate approval. Admission covers native direct, paged/challenge, and batch review input only. Real credentials remain refused; outputs, logs, failure and retry explanations, and portable or isolated runtime contexts remain strictly scanned. Never infer admission from placeholders or paths, or whitelist a pattern. New direct plans use version 4. Versions 1-3 retain their original scanning and admission contracts. The component discovery, metadata binding, and verification rules apply to versions 3 and 4. Versions 1 and 2 retain aggregate direct-plan and direct-diff inputs.

If strict failure-telemetry scanning blocks an in-place retry because an admitted fixture appeared in the original task, preserve the failed evidence and start a fresh review with a neutral task and axis that do not copy the fixture. Rediscover and obtain approval for the new context-bound admissions; re-review any coverage that cannot be reused. This recovery is not guaranteed if later reviewer telemetry also contains the fixture. Never redact or exempt failure telemetry to make a retry pass.

For an opaque sensitive-material rejection, the parent may rerun the same review_prepare.py prepare arguments with --discover-fixtures. Valid synchronized routing is required; discovery does not change routing, freeze plans, dispatch reviewers, print source text, or return hashes. It returns input IDs and character spans for scanner matches. In versions 3 and 4, direct-plan:file:<ordinal> identifies one complete source snapshot record in canonical plan JSON, and direct-diff:section:<ordinal> identifies one complete Git diff section; ordinals start at zero. direct-plan:remainder:<ordinal> and direct-diff:remainder:<ordinal> cover all remaining bytes. Components retain exact UTF-8 slices and bind the artifact root, artifact path, source root and original byte range. Every direct input of version 3 or 4 also binds shared non-source review metadata: run and parent identity, reviewer assignments and selections, model choice, brief and role-card digests, independence evidence, comparison scope, actual source revision and verified comparison base (including a base obtained from a PR receipt). Verify that metadata as part of the complete input. Aggregate diff and source-content hashes are excluded from this shared identity; unrelated sibling content is separately scanned and does not enlarge component verification. The complete original aggregate is strictly scanned before partitioning, and any match crossing a component boundary is refused. Versions 1 and 2 retain aggregate direct-plan and direct-diff inputs; direct-task:<role>, direct-brief:<role>, and direct-role-card:<role> identify the delivered task, brief and role card. Each run-owned direct input is framed with its class, role when applicable, artifact root and path, and verified source root; its UTF-8 body remains unchanged. Moving the run or changing an input's identity requires a fresh binding and approval. direct-source:<ordinal> identifies an individual selected UTF-8 source file, framed with its verified source root and repository-relative path; enumerate the sorted snapshot records before excluding missing or non-UTF-8 entries, and recheck that mapping after any inventory change. paged:<role> and source-context:<role> identify complete role inputs; batch:source-NNN:<role> identifies a generated source fragment. Discovery is local parent-owned work, not an authorization for a reviewer or untrusted source to inspect secrets.

Before exporting any binding, inspect the complete current input by verifying its complete component closure and the deterministic generator: for a version-3 plan file component, its complete source snapshot record, component identity and canonical JSON serialization; for a version-3 diff component, its complete Git section and component identity; for a remainder component, all its original bytes and component identity; for a historical aggregate direct plan, the source snapshot, source and selection metadata, context descriptors, independence evidence, brief references and JSON serialization; for a role input, the role card, brief axis and evidence, all assigned source records, matching diff or untracked notices, and generator transformations. A batch fragment also depends on its role card, prefix, UTF-8 slicing and generated coordinates. Every component is an independent scanner input: verifying one does not attest its siblings or authorize an aggregate fingerprint. Reuse component inspection only when its exact bytes and identity remain current. Comparing scanner matches alone is insufficient: a private-key header can be followed by unknown key material. If any component cannot be verified as safe, do not attest or export that input.

For selected verified inputs, create a parent-owned JSON selection file with schema_version: 1 and inputs: each entry has input_id, complete_input_verified: true, nonblank verification_evidence, and matches. Include every scanner match in that input, including overlaps, as pattern_index, match_start, match_end, and match_sha256; derive expected match hashes locally from independently known inert material, without printing unknown matches or hashes. Run the same preparation with --export-fixture-bindings <selection-file> instead of discovery. The helper checks the current generated input and all expected matches before returning binding proposals; it does not grant admission, authenticate the attestation or consent, or modify routing. Expected-hash equality is a success/failure oracle, so this operation is trusted parent-only. Obtain explicit user approval, add the approved proposals with authentic evidence and rationale to review-routing.json, and rerun ordinary preparation. Unselected or changed input remains refused.

Direct-plan matching operates on serialized JSON, so an expected match can include escaped newlines or JSON punctuation beyond the source literal. For a verified source snapshot record, derive expected matches from that complete record encoded with the producer's sorted, indented JSON serialization, rather than hashing a bare source substring. Confirm every derived match against its discovered pattern and span; do not assume the same boundary for other plan components. If the parent cannot verify a match or its complete input safely, leave it unselected and refused.

01: Create run directory

Run create_run.py --skill code-review --pr-number <resolved-pr-number> --pr-url <canonical PR URL> for PR scope, using the existing entry preflight identity and the selected report root. For local scope, use create_run.py --skill code-review --branch <branch-name> --local-scope <scope> from the repository root, adding --local-target <path or revision> for path and commit scope. Use the local Git branch name or detached-<commit-id> for detached HEAD. Retain its review-entry.json for cross-session discovery from the first checkpoint. Follow ../../../shared/helper-cli-contract.md and retain the single printed identity-bearing timestamped path literally. Do not add a network read for naming. A local review keeps that path for its complete lifecycle. A fresh PR review begins there after entry identity resolution; an identity/state-read failure stops before workflow run allocation and retains its temporary reader diagnostic.

02: T0 mechanical scope gate

For local scopes, inspect PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/collect_diff.py --help; collect normalized scope, optional target, and literal <run-directory> path.

For fresh local reviews, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/review_worktree_cleanup.py --create-local <working-tree|path|commit> --repository <invoking repository> --run <run-directory> --slot <local locator> --owner <invocation ID>. Commit scope also requires --head <frozen full tip>. Retain the printed absolute checkout path and ownership receipt digest in parent context for terminal cleanup. For working-tree and path, this invokes the collector’s --review-worktree mode with <run-directory>/local-source output. It preserves the caller's branch, index, and files while freezing changed tracked/untracked bytes in a detached worktree; retain its review-worktree.json, source snapshot, and staged patch. Inspect source and run authorized checks from the recorded review_worktree, restricting a path review to its selected scope. Caller edits after collection do not update reviewed evidence. Run --verify-review-worktree against that same output after checks and before promotion; source drift fails the review. The intentionally dirty local mirror uses its retained collector receipt for source-bound gates instead of clean-PR --expected-head; never run those gates against the invoking checkout. Keep gate artifacts outside reviewed source; process-working-directory checks do not provide source-bound proof.

If a retained local receipt or patch no longer matches the current collection format, preserve that run and automatically start a fresh authorized review in a new run directory. Recollect the source and regenerate dependent review and gate evidence; do not rewrite the older receipt or ask the user to repair it.

For commit, review the requested Git revision specification, such as COMMIT^!, BASE..HEAD, or BASE...HEAD. Freeze the original revision expression into exact commit IDs before creating a detached worktree at the reviewed tip. For a three-dot range, freeze its merge base; for a single commit, freeze its parent (or empty-tree object for the initial commit). Pass the frozen comparison base as --expected-diff-base and the reviewed tip as --expected-head. Keep the collected diff and requested comparison identity; never reinterpret a relative revision expression after changing checkout. Use clean-head gate guards for this committed-source worktree. A worktree isolates the caller's edits but is not an immutable filesystem: preserve source checks through final acceptance.

PR collection

For PR scope, inspect PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/collect_pr.py --help. Use the canonical URL already resolved at entry as the collector target; do not repeat numeric/current-branch identity resolution after creating the run. A user-supplied URL takes precedence and must pass the collector's canonical PR URL and configured-remote validation. Collect into the literal <run-directory> with --checkout --checkout-mode review; fresh collection must establish current source and PR evidence under the existing collector boundary.

Apply PR Collection Runtime Boundary before collector execution. Do not create or modify runtime approval rules files.

After successful authoritative pr.json collection, run create_run.py --skill code-review --promote-pr-run <run-directory> using the same --root as allocation and capture its single printed final path. The promotion derives the authoritative PR number from pr.json, allocates code-review/pr-<number>/run-<NNN>/ under that root, and moves the complete run without overwriting another run. Use the printed promoted path literally for every later helper, artifact, specialist context, result, and final handoff. Never reconstruct the numbered path or keep writing to the temporary path.

If collection fails before authoritative PR identity exists, keep the timestamped run as an unavailable diagnostic. It is not an assessed PR review and must not be promoted. Existing flat timestamped runs remain discoverable historical artifacts; do not migrate them.

Run the direct owning collector per GitHub Read Execution. Its nested GitHub CLI, HTTPS fallback, checkout, and Git fetch traffic remain bound by the collector contract. An explicit runtime denial or non-overridable restriction stops the collection attempt; diagnose the active permissions and exact command without broadening access or retrying the denied command. Report core collection failure through the existing unavailable-evidence gate.

PR evidence has two tiers.

  • Core evidence: gh pr view metadata including contributor description/body, authoritative base-repository identity, refreshed target ancestry, exact local PR head, and diff derived with local git diff <base>...<head> after SHA verification.
  • Supplemental evidence: GraphQL review-thread resolution state and derived diff statistics.

Collector and source boundary:

  • The collector delegates remote GitHub state reads to github_read.py, which uses gh as opaque local credential broker: it never invokes gh auth, reads token/keychain state, or writes CLI failure output to artifacts.
  • That read-only boundary permits audited view commands, REST GET, and GraphQL query operations; public HTTPS fallback cannot establish private PR evidence.
  • A classified core command failure is recorded in command-failure.json when diagnostics exist.

Checkout and source requirements:

  • Fresh source is agent's responsibility before review. The collector fetches and verifies the exact PR head, then review mode uses git worktree add --detach at that immutable commit in an isolated worktree. It does not call gh pr checkout, switch the invoking branch, update PR branch refs, or need the invoking worktree to be clean. Fork, historical, and public-fallback collection fetch base repository's refs/pull/<number>/head; documented public fallback remains conditional, not default. Never consume mutable FETCH_HEAD after another fetch: use the captured verified commit IDs.
  • A routine refresh or missing local PR branch is work to perform, not human blocker. Use refreshed target ref directly; do not switch to or merge target merely for reading. Review does not need git pull, merge, reset, tracking repair, or forced checkout.
  • Inspect source and run source-dependent checks only in the exact detached path recorded by <run-directory>/local-checkout.json; diff.patch must record diff_source=verified-local-checkout provenance there. Use absolute run-artifact paths after changing execution workdir to that review worktree. A SHA in the receipt alone does not prove that tests ran against it.
  • Use the collector’s verified detached worktree for local inspection of external PRs under the existing fetch and filesystem permissions. Reading source or inspecting the diff without executing contributed code requires no contributor-execution decision. Before the first command that executes PR code, follow Contributed Code Execution. For previously unreviewed external code, scan the exact revision and inspect the actual command inputs, including working edits, auto-loaded configuration and build inputs. Choose execution protection under the review execution rules.
  • Immediately after collection and before any PR code or shell-capable reviewer runs, retain the collector’s verified upstream repository, base branch name and OID, PR head OID, pristine local-checkout.json SHA-256 and absolute detached worktree path in parent context. These bind the checkout eligible for review worktree cleanup.
  • If collection reports review-worktree-dirty while retrying a known pre-existing detached checkout before contributor execution, preserve that checkout and its evidence. Under the held slot, allocate one fresh review run, recollect the verified PR head and rebuild source-dependent evidence in the new worktree. An active integrity stop still requires its own recovery. A newly created worktree that is already dirty needs diagnosis. If a paused review reports review-source-collection-digest-missing or its checkout bytes or modes differ from the original collection, use the same fresh-review recovery before running any contributor code. Previously promoted legacy reports remain eligible for read-only verification against their frozen evidence.
  • After a verified target-branch fast-forward, retain the original detached source receipt and recheck the frozen comparison and its dependent findings and gates before retrying the interrupted operation.
  • After inspected integrity recovery, recheck the original checkout with the ordinary collector and source-identity requirements. If retained ignored outputs prevent a pristine checkout or its legacy collection receipt cannot prove the original bytes, preserve the entire original worktree, failed interval and inspection evidence. Under the held slot, use the fresh-review recovery above for the same PR, verify its exact head, and rebuild the source-bound checks, review evidence and final handoff for the requested review. Keep the original run's failure and identify the successor run in the handoff. Never remove retained output, retrofit a collection digest or waive a source check to admit the old checkout.
  • Never reconstruct changed source from curl, raw.githubusercontent.com, or head-files/ snapshots.
  • If isolated worktree creation or local-diff verification fails, fail instead of reviewing remote raw files. Do not offer detached review source as a remediation destination.
  • Do not retry with --force unless user explicitly confirms after receiving force reason and overwrite risk.

Review worktree cleanup

After promotion, a successful find-review-report.py --complete-run and any required contributor integrity verification, join all writers and keep the checkout slot held.

For an owned local working-tree, path or commit review, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/review_worktree_cleanup.py --run <run-directory> --worktree <retained-absolute-path> --checkout-sha256 <retained-local-ownership-digest> --slot <local locator> --owner <invocation ID>. Keep the same completion provenance options. The helper verifies the captured checkout, seals its source and result evidence, removes the detached Git worktree and its registration. For the deliberately dirty local mirror, it verifies each original entry before removing it and resumes interrupted removal from its sealed receipt. Any later edits, ignored files, unknown ownership or lock preserve the checkout. After removal, repeat the completion check and require byte-identical output before releasing the slot. Preserve a legacy or reused local checkout without creation proof and disclose its path.

For a PR, run PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/review_worktree_cleanup.py --run <canonical-promoted-run> --worktree <retained-absolute-path> --checkout-sha256 <retained-receipt-digest> --slot <retained-locator> --owner <retained-invocation-id>. For an assessed PR whose commands ran on the ordinary route, pass --ordinary-execution with the promoting finalizer’s result digest. The parent retains the execution decision separately from the checkout receipt, which authenticates the collected source. For an assessed review, also pass --review-result-sha256 <review_result_sha256 from the promoting finalizer> and retain it for retries. This binds later safety reuse to the result the producer approved. For historical same-repository reviews on the ordinary route, the original checkout receipt also permits cleanup with the original arguments. Include --integrity-sha256 <retained-pre-execution-digest> whenever a snapshot was taken, including before shell-capable reviewers that performed only static reads. After either a verified target-branch fast-forward restart or an inspected restart, also supply --original-snapshot <retained-original-absolute-path> --inspected-snapshot <retained-successor-absolute-path> --inspected-sha256 <parent-held-successor-digest>. Both files must belong to the same run. Name the successor integrity-restart.json or integrity-restart-<positive integer>.json. Keep these exact arguments on a witness retry. Use --no-contributor-execution only when no such code ran and no snapshot exists. Supply the same --codex-home used for completion when it differs from the default. Before removal the helper seals the validated evidence using one create-only local Git ref. Completion and remediation can then verify the exact saved result and source fingerprints without recreating a checkout. After the helper reports removed, repeat the read-only --complete-run check with the same provenance arguments and require byte-identical final output before releasing the slot. Diagnose any mismatch against the saved evidence. If cleanup was interrupted, retry with the original checkout path, owner and receipt digest, even when the worktree is already gone. For every run that took an integrity snapshot, keep its original integrity digest and, if cleanup emitted a witness object ID, add --retry-witness <retained-object-id> from that invocation’s output. For a read-only run that used --no-contributor-execution, repeat that command. This accounts only for the exact witness this cleanup published. On the protected contributor route, a missing integrity anchor or different state follows the normal integrity procedure. Preserve a reused, dirty, locked or unverifiable worktree and disclose its path and the reason. A missing creation record or lost digest also preserves the checkout. An inspected ignored file still belongs to the checkout. Retain the checkout and disclose the remaining files if cleanup detects them. A legacy review without authenticated creation evidence retains its checkout through terminal handoff. Report the helper’s disposition in a progress update before the verbatim final handoff. An integrity stop follows the applicable shared recovery procedure before any ordinary Git operations. An interrupted or unvalidated review retains its checkout for diagnosis. A completed assessment with a negative recommendation or failed substantive gate follows normal cleanup after its handoff passes validation. Completed-report lookup, local mirror reviews and remediation never clean up another invocation’s worktree. Never force removal or prune the repository.

PR fallback

When gh pr view metadata fails, public unauthenticated HTTPS fallback is eligible only when all of these hold:

  • The failure is github-network, github-auth, github-rate-limit, or command-timeout.
  • The checkout target is trusted: canonical PR URL must match a configured GitHub remote; a numeric target is bound to valid GitHub origin, or the sole GitHub remote when origin is absent.

Ambiguous or unsafe targets, permission failures, not-found failures, and unclassified failures remain fail-closed.

Fallback behavior:

  • The review-only fallback normalizes limited PR metadata, then uses verified refs/pull/<number>/head ref for detached checkout and derives local diff; it never establishes private PR evidence and is never available to code-remediate.
  • online-review-summary.json must list unavailable fallback evidence as sorted IDs.
  • Raw GitHub CLI stderr is never persisted; terminal diagnostics may include safe failure_reason enum alongside non-secret classification metadata.

Classify scope

Classify diff; write <run-directory>/scope.txt:

  • TRIVIAL: no public API/config/security/ML behavior touched, \<3 files, \<50 changed lines.
  • LOCAL: one subsystem or 3-7 files; local context explains behavior.
  • BROAD: 8+ files, cross-subsystem change, dependency/config change, or unclear ownership.
  • HIGH_RISK: release, security, auth, credentials, deserialization, data pipeline, ML tensor math, CI/CD, or migration behavior, based on evidence beyond public-API touch alone. The mechanical risk floor also raises a change to HIGH_RISK when a changed path names oauth, token/tokens, secret/secrets, jwt or crypto, a Dockerfile, or a file under .github/workflows/ or .github/actions/, so ordinary lexer or tokenizer modules named token accept the larger fan-out.

Risk categories determine review depth and specialist preference; they do not grant execution permission or independently prove sandbox, approval policy, or provenance. Public API compatibility remains normal T1 review axis and may elevate tier when verified breaking, migration, or release evidence requires it.

PR source and triage

For scope=pr, merge-oriented code review is limited to an OPEN PR. collect_pr.py can also collect historical evidence for merged or closed PR, including its diff, online discussions, refreshed current target state, and exact checked-out PR head; that raw collector evidence is useful for diagnosis but must not receive merge recommendation or feed code-remediate.

  • Core evidence includes pr.json, pr-routing.json, remote-selection.json, target-branch.json, worktree-preflight.json, local-checkout.json, and locally derived diff.patch. Online evidence includes comments, reviews, review-threads.json, unresolved-review-threads.json, and online-review-summary.json.
  • Selected remote matches base repository from PR URL. Fresh target must equal or descend from PR-recorded base (expected_base_is_ancestor=true); advancement is integration context, never PR finding or merge blocker. Genuine divergence fails open-PR collection; historical target-branch.json may record it.
  • Verify isolated source state independently of HEAD equality: block unresolved index, tracked edits, and untracked source files in the review worktree. Preserve unrelated edits in the invoking worktree and record them only as context; they cannot be treated as reviewed PR source. Repeat source-state checks after worktree creation.
  • Review worktree HEAD exactly matches metadata; pr-routing.json and local-checkout.json include force_policy proving no automatic forced checkout. Run tests from the recorded worktree, not from the invoking repository checkout.
  • Report the detached review worktree path and verified revision in the handoff. That receipt identifies reviewed source only. For an explicit +review caller, return the canonical result through Nested review delivery. The caller owns its separate attached checkout.
  • For a fresh PR review, triage the newly collected top-level comments, submitted reviews and inline threads, including replies and resolution changes. A matching head SHA or unchanged comment count cannot establish that the discussion matches an earlier review. Before reporting an unchanged assessment, verify current discussion against the reviewed source and record how new or changed concerns were resolved in Online Review Triage. Disclose any unavailable discussion evidence.
  • Treat unresolved online threads/comments as candidate findings until triaged valid, duplicate, out-of-scope, or already fixed. Never triage a concern as stale: an outdated anchor or line drift does not prove it gone, so follow it into current code. If GraphQL review-thread collection fails or is incomplete, continue source review with empty normalized thread arrays, review-threads-error.txt, review_threads_status=unavailable, explicit partial-online-triage notes, and confidence gap PR review-thread resolution status was unavailable; online review triage may be incomplete. Never convert that supplemental gap into PR finding or merge blocker by itself.

Embedded review findings

Read the complete parent body of each review/comment, including nested <details>, suppressed comments, nitpicks, and outside-diff suggestions. Enumerate every nested finding before deduplication; Comments generated, inline-thread counts, and a summary verdict do not measure embedded obligations. Use <parent-id>#finding-<ordinal> in body order starting at 1 as a local source identity, not a GitHub comment ID. Preserve each exact finding body, code/suggestions, location, and the collected parent evidence path; retain the unsplit parent in reviews.json or comments.json.

In Online Review Triage, record parent IDs, advertised per-section counts when present, every fragment identity, and its individual disposition or owning canonical finding. Reconcile counts before deduplication; unexplained omissions block complete-triage claims and remain explicit confidence gaps. Without advertised counts, inspect the entire body and retain the enumeration. Check each suggestion against current code; the bot's suppressed/duplicate label is not a disposition. Group only independently evidenced same obligations across rounds or bots, preserving all source identities and locations; same file or line alone cannot justify merging. Give distinct obligations separate findings. A summary that merely repeats them is not an additional finding. A changed parent body requires fresh enumeration; do not silently reuse identities from an older snapshot. Keep the complete fragment mapping in the review evidence.

Collection failure and conflicts

Commit review retains binary patch payloads in the frozen comparison. Treat Git's line-delimited, C-quoted path inventory as encoded paths: decode it before matching names to source or coverage, including paths with escaped control characters. Changed gitlinks and selected gitlink source fail closed because the snapshot cannot capture nested repository source; retain that limitation rather than claiming complete review.

If files.txt and untracked.txt are empty with no explicit target, fail before gates. If scope=pr and pr-error.txt exists, fail with captured reason through the Terminal review-unavailable output gate below and do not begin T1/T2 source review.

Terminal review-unavailable output gate: A core T0 PR collection failure is process failure, not review result. When scope=pr and pr-error.txt exists, read and apply collection-failure.md before writing any output or retrying the collector; successful collection does not load it. The reference preserves the unavailable-output prose, result.json and confidence contract, the all-not-applicable check profile, the evidence inspection, and the recovery rules per failure class.

For an existing merge or conflict in the invoking worktree, inspect unmerged paths, MERGE_HEAD when present, and current HEAD read-only. Report the observed state in plain English. A review-only run never finishes, aborts, or resolves that merge or asks for merge authorization. Review inspects its own detached worktree, so an invoking-worktree conflict does not block collection or source review: continue through normal completion gates and record the conflict as context, never as a PR finding. If collection itself fails, explain that separate failure and the exact remaining recovery decision.

PR close screening

Terminal close gate (PR only): After successful T0 collection for an OPEN PR and before structural context or T1/T2, screen PR goal, description, authoritative project policy/history, and linked upstream evidence. Establish the independent package-purpose baseline below and complete the blind blueprint or its documented applicability skip before any diff evidence used to support this screen; the pre-diff requirement below also applies here. Then inspect only the diff evidence needed for one conclusive proposal-level close reason. This is disposition decision, not source review. If evidence is inconclusive, continue to T1/T2; never close from suspicion, reviewer preference, contributor identity, AI authorship/style, or merely related change.

Use exactly one close code:

Code Conclusive evidence Insufficient alone
FALSE_GOAL The stated goal contradicts citable invariant, specification, domain fact, or verified current behavior. Implementation disagreement, stale wording, or unverified claim.
BREAKING_CONDUCT Direct evidence that contribution is intentionally malicious or adversarial by design, such as backdoor, exfiltration, or supply-chain attack. An accidental security bug, poor code, suspicion, or inferred intent.
WRONG_SCOPE A documented roadmap, maintainer decision, ADR, or contribution boundary directly excludes proposed goal. Size, mixed files, or undocumented preference.
WRONG_PROVENANCE A documented license or rights requirement and objective evidence of incompatible or unresolvable provenance conflict. Fork ownership, code similarity, unknown provenance, or missing CLA/DCO signature that project permits contributor to fix.
DUPLICATE A verified merged change or resolved upstream issue already supplies same still-applicable outcome. A similar title, overlapping files, related open work, or same issue area.
UNADDRESSED_REVERT The PR semantically reintroduces reverted change and does not address documented reason for that revert. File overlap, patch similarity, or revert title alone.
SPAM Objective irrelevant, promotional, repeated-submission, or non-substantive evidence shows no bona fide project change. A small change, missing tests, low quality, or AI-generated content by itself.
ARCHITECTURE_VIOLATION The proposal directly contradicts documented current architectural principle. Style preference, abstraction concern, or reasoning that requires detailed source review.

For DUPLICATE, identify the earlier merged PR, merged commit, or resolved issue and verify the behavior it delivered on the current target. Prefer the merged PR when an issue links to the implementing change. Compare any remaining difference and explain its consequence. If the PR still serves a distinct in-scope goal, continue to detailed review.

A close decision requires confidence >= 0.90, two distinct evidence sources, recorded counterevidence/falsification check, and binding to verified current PR head. Public-HTTPS fallback evidence cannot close because its confidence cap is 0.89. For WRONG_PROVENANCE, missing required CLA/DCO signature remains normal blocking item unless documented project policy makes conflict terminal. For BREAKING_CONDUCT, accidental security defect remains normal blocking finding; only evidenced by-design harm reaches this gate.

On close, skip structural context, T1, T2, specialist routing, detailed findings, severity classification, and normal recommendation step. The finalizer writes the recommendation and exact close code in the decision table in review-notes.md. Retain source findings not assessed, detailed review skipped, exact close reason, summary, rationale, evidence, counterevidence checked, and GitHub mutation: not performed. Emit status=pass for successfully completed workflow, zero findings, review_status=closed, and close_decision={"schema_version": 1, "code": "<CODE>", "advisory_only": true, "head_sha": "<verified PR head>", "summary": "<summary>", "rationale": "<rationale>", "evidence": [{"claim": "<observed fact>", "source": "<artifact, repository path, or authoritative URL>"}], "counterevidence_checked": ["<falsification check>"]}. For a new duplicate decision, use close_decision.schema_version=2 and add duplicate_of, the canonical GitHub URL of the verified earlier change or issue. Use that exact URL as an evidence source. Its claim describes the behavior already delivered. Use the rationale for material differences and why closure is appropriate. The duplicate review notes and handoff both give the Reject recommendation with the DUPLICATE reason and the linked maintainer action. Other close codes use schema 1. A schema-1 duplicate decision from an earlier run fails finalization until its schema is 2 and duplicate_of names the earlier change. Include at least two distinct evidence entries. Omit assessed-result metadata (review_decision, recommendations, follow-up and review routing), specialist artifacts and assessed findings tables. The handoff derives the proposal recommendation and any duplicate follow-up from close_decision. Every new terminal close handoff renders Reject, the exact code and reviewed commit in the compact results table. Run shared gates with detailed-review checks marked not applicable and the review gate validating close artifact, then run both artifact validators. This result only advises user to close; never close, comment on, merge, or otherwise mutate GitHub.

Linked evidence

Referenced GitHub evidence: Use the collected current PR body first. If a linked PR or issue is material to a finding, proposal-level close, or compatibility claim, read its canonical identity through installed github_read.py under the same active-profile/runtime approval rules. Browser-cache absence is not evidence that GitHub content is unavailable. Retain the reader's classified failure when access genuinely fails; do not repeat denied requests. An unneeded link is an explicit scope exclusion, not an unresolved prerequisite or a reason to lower confidence in independently established source findings.

Review environment

Compare the reviewed project's required tests with available CI evidence before preparing an environment. For uncovered execution on verified source, use the project command under existing host permissions after assessing the inputs that command loads. This applies to fork, same-repository and local changes. When --sandbox is requested, apply Sandboxed Test Runs. Run the ordinary gate within the verified native host sandbox, or use run_gates.py --sandbox when the runner must supply independent confinement. Retain the selection for each retry, resume and nested review. Keep PR source verification, active integrity intervals and the user’s execution decisions in force.

When concrete evidence identifies unsafe execution in a particular gate, pass run_gates.py --sandbox-gate <gate> for that gate. Repeat the option for each affected gate. Apply Contributed Code Execution to the affected commands and retain any active integrity anchors. If required confinement is unavailable, record the affected check as unavailable and continue other feasible gates and static inspection.

Review environment: Resolve declared checks from the reviewed project's instructions, configuration, and existing environments before assigning missing-tool gaps. A detached worktree does not copy .venv. Use run_gates.py --project-env <absolute existing virtual environment> with the verified PR/commit --worktree; execute the project's declared checker entrypoint, such as its configured pre-commit hook, rather than assuming bare mypy src/. Reusing an environment does not permit imports from the invoking checkout: retain the existing PR pytest import-origin proof. Check that pre-commit's hook environment is provisioned before execution; prepare missing declared tools deliberately through the parent under Project Dependency Preparation, retaining actual filesystem, network and code-execution boundaries. A genuinely absent required checker remains a failed prerequisite with the exact attempted environment and command; an unconfigured checker is not applicable. Never install dependencies into the project or global environment, silently skip a required check, or lower assertions to manufacture a passing gate. Complete environment bootstrap follows Project Dependency Preparation below. A remaining claim blocked by a Python package absent or installed outside the reviewed head's declared specifier follows Ephemeral Dependency Evidence instead of becoming a missing-tool gap: a non-executing wheel fetch into the run directory, then a separate test run over that overlay that never shares the fetch's escalation. A package newly declared by the reviewed head but absent from the review base is a new dependency finding, never an overlay; a package only named by the base CI is not a new PR dependency, but remains ineligible for this overlay. For that overlay, a name the review base or the user routes anywhere but the default index, or whose routing cannot be determined, keeps the gap with reason non-default index dependency <name> and is never fetched.

Before leaving a required check unresolved, inspect the complete declared bootstrap, runtime, existing project environments and pre-commit cache, including installed project metadata and isolated subprocess imports. A dependency overlay alone does not install the reviewed distribution. Reuse an eligible environment with source-origin proof or let the parent prepare a disposable task-local environment under Project Dependency Preparation. A review that requires executable gates already authorizes eligible declared preparation; do not ask a bootstrap-consent question just because packages are absent. Verify the complete lane, including runtime dependencies, test groups/extras and compatible interpreter. Request only an actual missing runtime capability under its owning boundary, then resume this run's same source-bound checks without another review invocation. Continue independent inspection while an actual decision is pending. Do not install globally, change the invoking environment, substitute a released package for reviewed source, or execute project build code outside its authorized sandbox. A denial or genuinely unavailable preparation retains the actual failed check, exact recovery condition and truthful completed review; never convert a missing environment into source rejection, null source judgment or a skipped applicable check.

Failing hooks

Failing hooks: Apply the diagnosis and PR and target hook comparison contract. Run applicable pinned hooks on isolated disposable source copies when they may autofix; retain source identity, exit status and before/after diff. Autofix capability alone never justifies an unexecuted lint/format gap. If CI reports an error but its details are inaccessible, retain that remote state and still perform feasible local diagnosis and checks; local success does not clear the remote check. Compare exact revisions without changing the invoking checkout; retain failed or unavailable gates. Report evidenced defects in the review findings. This read-only review does not authorize source/config repairs.

Python structural context

Structural context (required for Python diffs): after diff is collected, probe codemap-py once for changed-symbol blast radius: PLUGIN_ROOT/bin/python PLUGIN_ROOT/shared/codemap_adapter.py context --category review --root <reviewed-source-root> --diff-file <run-directory>/diff.patch --out <run-directory>/codemap-context.json. <reviewed-source-root> is the verified source checkout: local-checkout.json.worktree for PR review, the review_worktree in review-worktree.json for local working-tree/path review, or the detached checkout at the verified reviewed tip for commit review. The adapter uses run-owned index and telemetry destinations by default for this review CLI, with provider coordination retained beside the chosen index; keep the run outside the verified source checkout and reuse its public destination overrides for follow-ups. Preserve explicit overrides and frozen selection, and verify that any explicit destination does not change the frozen source inventory. Never alter source ignore rules or receipts to hide cache writes. The parent runs this query serially before specialist preparation; a supporting provider automatically prepares that checkout's own canonical index from its current source bytes, including the frozen local mirror's unstaged content. This cache preparation never authorizes source edits, staging, commits, or mechanical invocation of scan-codebase. Never substitute the invoking checkout's index; preserve an older provider's missing-index, incompatible, or root_mismatch outcome and use bounded source inspection under the shared contract. Never run diff-impact without --diff-file: in a detached review worktree it compares the tree with itself and reports zero changed files. Running it is mandatory whenever files.txt lists a .py path; untracked-only and .pyi-only changes are outside the diff file the provider reads. Relative --root/--diff-file resolve against your working directory. The artifact keeps the bounded diff-impact answer (changed modules, risk, unmapped files, test impact); every changed Python file unmapped, or any deleted Python module (the provider never reads it, so its importers stay unchecked), is degraded with its reason. The review validator rejects a fresh candidate for a Python diff with no artifact, a skipped one, one whose --diff-file was not <run-directory>/diff.patch, or one whose status, reasons, or query disagree with what ran. Per ../../../shared/codemap-contract.md, provider absence/incompatibility stays non-fatal — the artifact records status and reason, then continue with T1/T2 as scoped by scope.txt alone. Before recording a PATH miss as provider absence, resolve an available active Codemap skill path/install record and pass its exact plugin root via --provider-root; never glob installed caches or choose a newest version. Reuse CODEMAP_BIN when explicitly configured; select an existing compatible CODEMAP_PYTHON when the provider requires a newer Python. A degraded artifact names each cause in status_reasons; carry them as structural-evidence limits, never as reviewed-source coverage. Persist diff-impact evidence once here; T2 specialist fan-out (step 04) includes <run-directory>/codemap-context.json in each triggered context pack. A role whose axis needs a structural fact this artifact leaves open gets at most 3 targeted follow-ups under the contract's Specialist follow-up queries rule; the parent owns these follow-up queries, so run them before preparation and cite each codemap-followups/<role>-<NN>.json in that role's brief.

Package-purpose assessment

Start every review, including local, trivial, and non-code changes, with “Is this desired behavior for this package?” Judge the proposed outcome against the package's established purpose, supported workflows, and contracts before judging whether its implementation is correct.

  • Before reading the diff or changed source, establish a bounded independent baseline from the verified pre-change revision's README, public documentation, relevant contracts and maintainer decisions. Use the collected PR comparison base, frozen commit diff base, or recorded local comparison revision; record the revision and source references. Existing implementation and tests are supporting evidence, not proof that an old bug is desired behavior.
  • Treat PR descriptions, linked issue claims, and documentation or tests changed by the contribution as proposals to assess, never as authority to redefine package intent. Verify any claimed maintainer authorization independently of the contribution. A supported evolution or explicit maintainer-approved scope change can be desired; absence from existing code alone is not a defect.
  • Record an initial yes, no, or unclear assessment with the intended outcome and baseline evidence. After opening the diff, reconcile the actual behavior and side effects against that baseline, including behavior omitted or misrepresented in the description. For detailed reviews, pass relevant baseline evidence and unresolved questions into reviewer briefs, retain the initial and final assessments in the existing review notes' Scope section, and explain the final assessment's effect on the recommendation in Decision Summary. For terminal close, retain the assessment and baseline in the existing close rationale and evidence; do not add a normal recommendation or claim detailed source review.
  • A concrete mismatch becomes a candidate finding with the violated purpose or contract, trigger and consequence; validate it through the normal finding process. Proving malicious intent is unnecessary to report an undesired behavior. Keep the stronger evidence requirements for terminal WRONG_SCOPE and BREAKING_CONDUCT closure unchanged.
  • Missing or conflicting baseline evidence remains unclear, with the missing evidence or maintainer decision named. Continue feasible inspection; never invent intent, infer alignment from green tests, or give unconditional approval while a material desirability question remains unresolved. Ask only for a genuinely missing decision through the existing question workflow.

This assessment is mandatory even when the blind blueprint is skipped. If the diff was already read, use ordering recovery and retain a non-blind assessment rather than claiming retroactive independence.

03: T1 primary diff review

Blind blueprint first, when declared tier is not TRIVIAL and the change adds behavior or public API (T0 evidence: PR body/title, files.txt, numstat.txt — not diff content). Before opening diff.patch or any changed file at head, read only the independent package-purpose baseline above, PR title/body, linked issue bodies, and files.txt names; write <run-directory>/blind-blueprint.md: the problem restated in two lines and assessed against that baseline, then your own blueprint-level solution — approach, key data structures/functions, edge cases — one page maximum, no code. Then open diff.patch for the axes below. Where diff and blueprint diverge: a divergence with a concrete defect and a required change becomes a canonical finding record; one that a prior decision, constraint, or incident could explain becomes a question to the author under No-Finding Residual Risks — never a Findings row, whose contract requires required_change and a status. Same thread means ordering-only isolation, not context isolation; add Confidence Gaps line Blind blueprint written before diff in the same context; anchoring reduced, not eliminated. Skip the blueprint for pure refactor, style, docs, dependency, or CI changes and when PR body and issues give no usable problem statement; record the skip reason in Scope, never invent a problem statement.

Review axes, in order:

  • Desired behavior for the package, using the independent baseline and actual change effects.
  • API and behavior regressions.
  • Test coverage and edge-case gaps.
  • Error handling and logging.
  • Project coding principles: changed code follows applicable AGENTS.md layers for simplicity, readability, reproducibility, short reusable units without low-value argument-remapping wrappers, guard clauses or early return/yield/continue, project docstring-style detection, concise purpose docstrings, and inline comments only for non-trivial implementation blocks.
  • Security, data, ML, CI/CD, or release risks signaled by T0.
  • Documentation or migration gaps caused by behavior/API changes.

Blocking defaults guide merge judgment; they are not automatic labels:

Category Default Nuance
Pending or failed CI report check status Continue reviewing. A required failure can affect merge readiness. A source finding requires evidence tying the failure to the reviewed change.
Missing test coverage for new or changed logic blocking Require coverage proportional to changed contract and regression risk.
Accidental security bug blocking Evidenced by-design harm is terminal BREAKING_CONDUCT at close gate.
Breaking API change without deprecation or migration path blocking Require project-compatible transition before merge.
Missing docs for new or changed public behavior blocking Missing CHANGELOG entry alone is not blocking and may be completed through release workflow.
Performance regression contextual Block unexplained regression against recent releases; do not block when correctness fix necessarily removes invalid prior speed.
Merge conflicts not blocking Record the observed conflict as checkout context. Continue the detached review.
Incomplete implementation blocking Includes TODOs in changed paths, missing expected error handling, or unfinished public contract.
Missing CLA/DCO signature blocking only when the project requires it Verify a CLA/DCO bot check or explicit contribution policy first; without such a requirement it is not applicable.