Skip to content

docs: say who the local-gate stamp helps, and that a private org membership counts as a non-writer #2808

Closed

Description

@vpacher

Problem

The README ("How CI works here") says:

One command (ci-lint local-gate run) runs the same Linux checks on your machine and signs your commit. CI sees the signature and skips the checks you already ran.

This is true only for an author whose PR CI trusts. docs/ci-tooling.md says that CI ignores the stamp when "the PR comes from a fork or from a non-writer". A contributor who reads only the README runs the gate (about 5 to 17 minutes) and then waits for the same checks in CI.

There is also one case that neither text describes. GATE-008 reads the author's association from the event payload. For a member of the obs-rust organization whose membership is private, GitHub sends CONTRIBUTOR, not MEMBER. Thus CI treats that member as a non-writer and ignores the stamp, although the member has write access.

Evidence (same author, same kind of PR, stamped and attested both times):

PR Membership CI Mode Linux lanes
#2763 private GATE-003 attested, GATE-008 untrusted Rust Tests (Linux), Rust Tier 2 Linux and Rust Cross Lint ran
#2805 public GATE-003 attested, GATE-008 "skip remote quick gate (trusted)" the three lanes skipped (GATE-010)

Proposal

Documentation only. The trust rule does not change: anyone can compute a stamp, so trusting only writers is correct.

  1. README: one sentence after "CI sees the signature and skips the checks you already ran", for example: "This applies to PRs from a branch of this repository by an author with write access; for fork PRs, CI runs every check."
  2. docs/ci-tooling.md, in "The stamp is ignored … when": after "the PR comes from a fork or from a non-writer", add: "GitHub reports a private member of the organization as a contributor, so a member must make the membership public (organization's People page, 'Public') for CI to trust the stamp."

Related

🤖 Generated with Claude Code

Activity

  1. zackees commented on Oct 28, 2026

    @zackees
    Member

    Claiming: docs — say who the local-gate stamp helps, and the private-membership case (#2808)

    Plan, one docs PR:

    1. README.md "How CI works here": one sentence after the stamp bullet — it applies to a PR from a branch of this repository by an author with write access; a fork PR runs every check anyway.
    2. docs/ci-tooling.md "The stamp is ignored … when": name the mechanism (GATE-008, ci_lint/gate_trust.py, TRUSTED_ASSOCIATIONS = OWNER/MEMBER/COLLABORATOR) and the private-membership case — GitHub reports a private member as CONTRIBUTOR, so the member loses the skip until the membership is public.

    Docs only: no behaviour change, no RED/GREEN (obs-worker §4). I verified the association rule against zackees/ci.yml at the pinned ref (a1917ce, ci_lint/gate_trust.py:37,220).

  2. added
    ready
    on Oct 28, 2026
  3. zackees commented on Oct 28, 2026

    @zackees
    Member

    Merged: #2817 landed on master as 4625d1f27 (squash, 2026-10-28 15:35Z).

    • README.md ("How CI works here"): the local-gate paragraph now says the skip applies to a pull request from a branch of this repository whose author has write access, and that a fork PR runs every check anyway — so the 5-17 minute gate is not sold as a saving it never was.
    • docs/ci-tooling.md ("The stamp is ignored when"): names the mechanism and the private-membership case — GATE-008 reads the author's association from the event payload (ci_lint/gate_trust.py, TRUSTED_ASSOCIATIONS = OWNER, MEMBER, COLLABORATOR), and GitHub reports a member whose organization membership is private as CONTRIBUTOR, so that member has write access and still loses the skip; the fix is to make the membership public.

    Docs only; the trust rule (ci_lint/gate_trust.py) is unchanged, so no RED/GREEN applies. Closing as complete.

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

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions