Skip to content

T4 refuses automated rows at a commit whose inputs equal the head's, because that commit has no attest record #548

Done

Description

@napkinstack-agent

What happened

On a consumer project with checks: attested, seen three times on 2026-11-26: a pull request is verified at commit X, then merges the default branch, whose new commits touch only another module. T4 refuses its automated rows as "verified on another commit than the head", and the verifier runs the end-to-end suite again for the same result: 30 to 60 minutes of machine time each time.

Measured on one case: X = 2fa7986, head = the merge 7ba3930, whose 63 changed files are all under the other module's folder. attest.inputs() computed from git at both commits gives the same digest (3509908a68dd, module checks scope ['shell']).

Cause

same_inputs (pull_request.py, around line 964) compares the head's digest with the digest in a passing record of X. When X has no record, which is the usual case because a project attests after the verification, it refuses: "X has no passing record of its module checks". So the relief needs a run at X that the row's own verification already made.

This is stricter than the head itself: a row whose commit is the head stands on the verifier's evidence, with no record asked.

Triage

  • Proposed: when X has no record, compute X's digest from git (attest.inputs at X, same scope and identity as the head's) and let the row stand when it equals the head's. A commit with the same inputs is the head, for an automated row, as a commit with the same tree already is (D93).
  • Kept: the digest's scope stays as it is (every tracked path outside module folders, contracts/ and platform/ included, records excluded). So a change to the lockfile, platform/ or a contract still asks for the rows again. This is the safety a "same module folders only" rule would lose, so that rule is not taken.
  • Kept: a record of X, when there is one, is read first as today, with its freshness.
  • Not proposed: attesting X automatically when a row is signed. That spends the run the relief exists to save.

Tests: a row at X with no record, the head a merge touching only another module → T4 passes; the same merge touching contracts/ or the lockfile → T4 refuses; an X record present → unchanged behaviour.

Activity

  1. napkinstack-agent commented on Nov 26, 2026

    @napkinstack-agent
    ContributorAuthor

    Published in v0.34.13 (D295, #549): a row at a commit with no record at all stands when git gives the same inputs digest there and at the head, the commit is in the head's history and fresh. A voided or failed record is refused as before; differing digests name what changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions