Skip to content

agent-policy: add the pre-PR checklist - #596

Merged
DjDeveloperr merged 3 commits into
aurora-wipfrom
agent-policy/pre-pr-checklist
Nov 22, 2026
Merged

DjDeveloperr merged 3 commits into
aurora-wipfrom
agent-policy/pre-pr-checklist

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 21, 2026 •

Copy link
Copy Markdown

Problem

Contributors and their agents (ours and outside ones) have no in-repo copy of the checks Aurora's reviewers apply before a PR is merged. The checklist now lives in the public aurora-silicon/agent-guidelines repo.

Change

Adds a "Pre-PR checklist" section to .github/aurora/AGENTS.md, copied from pre-pr-checklist.md at agent-guidelines f7edafb3ce3b (current main: the loosened Assisted-by wording and the item 6 naming fix from agent-guidelines#2). The section names the commit it was synced from. The existing rules are unchanged. AGENTS.md, CLAUDE.md, GEMINI.md and .github/copilot-instructions.md are updated in the same PR, byte-identical to the new policy file. The merge doesn't depend on the policy workflow, which hasn't run on this repository since 2026-10-24.

Testing

.github/aurora/agent-policy.sh pr from aurora-wip (f0ae30b1, with #724) on a local clone (LOCAL=1, POLICY_CHANGE_OK=1 as the agent-policy-change label sets it): PR is clean for the head 6bbdfaa4 and for its merge commit with aurora-wip. Without the label the script stops at the policy-change check, as intended. All four copies have the same blob as .github/aurora/AGENTS.md. git merge-tree against aurora-wip: no conflicts.

Still to run

  • Actions don't run on this repository (no runs since 2026-10-24), so CI can't show a result here. The copies are updated in this PR, so the merge doesn't depend on the workflow.
What the checklist covers
  1. No chip, board or firmware-version gates where a hardware property can decide.
  2. Production-ready: the default kernel command line, no hacks, delays or lab-only paths.
  3. Safety: limits come from the machine; speakerguardd v2; a dead-man on every test boot; no Stage 1 changes without the owner.
  4. Clean-room and attribution: no Apple-derived material; human-only commit identity; disclose agent help with an Assisted-by: line at the end of the PR body.
  5. Evidence: a hardware run with numbers, and a regression run.
  6. Naming: Borealis for the Vulkan driver in prose; code keeps hk_/HK_ until borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 lands; upstream and UAPI asahi names stay.

Assisted-by: LLM (Claude:Opus 5.5)

Add the pre-PR checklist from aurora-silicon/agent-guidelines to the
repository's assistant policy, so contributors and their agents run the
same checks Aurora's reviewers apply before a PR is opened. The section
names the agent-guidelines commit it was synced from.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers. Checked the added "Pre-PR checklist" section against aurora-silicon/agent-guidelines at 8c0f9c22: identical text, and the same section as in the other five policy PRs (u-boot, speakerguardd, fedora-aurora, aurora-installer get an extra "To be expanded" stub). The existing policy files and guard are unchanged.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Author

Blockers: 1.

I checked the added section against pre-pr-checklist.md in aurora-silicon/agent-guidelines: it is identical to 8c0f9c22, which is still that file's latest commit, and the repo is public. The section names no people, hosts or internal process beyond what that repo already publishes. Since the section is a synced copy, the fixes below belong in agent-guidelines first, then a re-sync.

  1. Wrong for this tree: "The code prefix is brl_" (.github/aurora/AGENTS.md, Naming). Borealis is still src/asahi/vulkan, with hk_ files, functions and drirc options and HK_ environment variables, until borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 lands. borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 is an open PR, not an issue. A contributor or tool following this text will add brl_ identifiers next to hk_ ones. Suggested wording: "Borealis in prose. The code prefix becomes brl_ with borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591; until then extend the existing hk_ identifiers."
  2. "Use Aurora paths and names, not Asahi or m1n1" conflicts with Mesa. The Gallium driver, src/asahi, the DRM uAPI (asahi_drm.h, DRM_ASAHI_*) and code shared with upstream are named asahi and stay that way. Limit the line to prose and new user-facing names.
  3. Several items don't apply to Mesa: the kernel command line and devicetrees, speakerguardd, the test-boot dead-man, Stage 1/1TR, and USB-C VDM/HPM resets. One line saying which items apply to which repos would keep the shared text from confusing Mesa contributors.

No CI checks are reported on this branch. No hardware row needed (docs only).

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial §1–§6 pre-PR checklist review at 8c62c8e97790c014e11b4d0dda72a18d2e97b819 (not superseded on aurora-wip acd6874dae; 0 CI checks reported).

Blockers (policy drift & live-tree inaccuracies)

  1. Stale / stricter-than-canonical §4 Assisted-by: rule vs aurora-silicon/agent-guidelines main (0b26c31):
    This PR syncs from agent-guidelines commit 8c0f9c227cd7 (2026-11-21), which has been superseded by 0b26c3109f (2026-11-22, PR #1 policy: loosen Assisted-by PR body formatting rules). Line 42 of the diff enforces the revoked strict syntax:

    When an agent helped, the PR body's last line is Assisted-by: LLM (<Vendor>:<Model>).

    Canonical agent-guidelines main replaced this with:

    When an agent helped, disclose it at the end of the PR body with a plain Assisted-by: line naming the model or tool (exact wording, vendor prefix, and punctuation are flexible; do not nitpick format).

    Landing 8c62c8e9 as-is would re-introduce the stricter format rule into Mesa's .github/aurora/AGENTS.md (and its synced copies). Please re-sync from agent-guidelines main (>= 0b26c31).

  2. §6 Naming text contradicts the live Mesa aurora-wip tree (must be fixed in agent-guidelines first, then re-synced):
    Line 52 states: "The code prefix is brl_; the rename is tracked in aurora-silicon/mesa#591. Use Aurora paths and names, not Asahi or m1n1."

    • aurora-silicon/mesa#591 is an open, unmerged PR (not landed, and not an issue). On aurora-wip today, src/borealis/ does not exist; the Vulkan driver is still in src/asahi/vulkan/ with hk_/HK_ symbols.
    • Saying "Use Aurora paths and names, not Asahi" without qualification conflicts with Mesa's Gallium asahi driver, src/asahi/, DRM UAPI (asahi_drm.h, DRM_ASAHI_*), and upstream-shared code.
    • As already noted in the earlier comment and reflected in team-handbook#3 (GPU-BRINGUP-AND-PERF-GUIDE.md §1.2 Rule 4), the policy should distinguish prose/new user-facing names ("Borealis") from current literal code symbols (hk_*/HK_* until #591 lands) and upstream/UAPI asahi names.
  3. CI / post-merge sync verification gap:
    No CI checks have run on 8c62c8e9 (statusCheckRollup is empty; aurora-silicon/mesa has no Actions runs since 2026-10-24), even though ## Still to run relies on aurora-agent-policy.yml running on this PR and refreshing AGENTS.md, CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md after merge. Confirm whether Actions will trigger on merge or if the four copies need explicit syncing.

Non-blocking notes

  • Clean-room routing & Mesa scope: While updating agent-guidelines before re-syncing here, consider (a) aligning §4 with the three-tier clean-room routing documented in team-handbook#3 (Tier 1 ADT hardware facts, Tier 2 our own measurements/compiler output, Tier 3 tainted Apple RE material kept strictly out of public repos/PRs) and (b) adding a brief repo-scope note so kernel/bootloader-only items (kernel cmdline, devicetrees, speakerguardd v2, dead-man, Stage 1/1TR, USB-C VDM/HPM resets) do not confuse Mesa contributors.
  • §4 Attribution on this PR: Pass — commit 8c62c8e9 carries human author/committer + Signed-off-by: Ryan Murray <ryan@aurorasilicon.org> only (zero AI trailers), and the PR body disclosure is compliant.
  • §5 Evidence: Docs/policy-only change; no hardware run required.

Assisted-by: LLM (Gemini 4 Neon)

agent-guidelines loosened the Assisted-by wording in section 4 after
8c0f9c227cd7. Sync the checklist from 0b26c3109f8c, and update
AGENTS.md, CLAUDE.md, GEMINI.md and .github/copilot-instructions.md to
the new policy file in the same commit, so the merge does not rely on
the policy workflow to refresh them.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

RyanTheTide commented Nov 22, 2026 •

Copy link
Copy Markdown
Author

Updated to 1b98bda.

  1. Re-synced from agent-guidelines 0b26c3109f8c. Section 4 now carries the loosened Assisted-by wording; nothing else in the checklist changed between the two commits.
  2. Naming: agreed, the text is wrong for aurora-wip today. The fix is proposed in agent-guidelines first: checklist: separate Borealis prose naming from current code identifiers agent-guidelines#2 (prose says Borealis; code keeps hk_/HK_ until borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 merges; upstream and UAPI asahi names stay). This PR is re-synced once that lands.
  3. Mesa has had no Actions runs at all since 2026-10-24, so the workflow can't be relied on to refresh the copies. They are now updated in this PR, identical to the new policy file. On a local clone the fixed policy script (agent-policy: sync stale copies instead of deleting them #724) reports the head clean. The current aurora-wip script flags the updated copies, the same bug agent-policy: sync stale copies instead of deleting them #724 fixes.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide RyanTheTide added the agent-policy-change Maintainer-reviewed change to .github/aurora/AGENTS.md (agent policy) label Nov 22, 2026
agent-guidelines#2 rewrote section 6 (Naming): prose says Borealis,
code keeps its current hk_/HK_ identifiers in src/asahi/vulkan/ until
the rename in mesa#591 lands, and upstream or interface names (the
Gallium asahi driver, asahi_drm.h, DRM_ASAHI_*) stay as they are. Sync
the checklist from f7edafb3ce3b and update the four copies in the same
commit.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Updated to 6bbdfaa.

  1. §4: unchanged since the last re-sync, still the loosened Assisted-by wording.
  2. §6: re-synced from agent-guidelines f7edafb3ce3b, which has checklist: separate Borealis prose naming from current code identifiers agent-guidelines#2 in it. Prose says Borealis. Code keeps hk_/HK_ in src/asahi/vulkan/ until borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 merges. The Gallium asahi driver, asahi_drm.h and DRM_ASAHI_* keep their names. The borealis: rename the Vulkan driver from Honeykrisp to Borealis (library, ICD, drirc, src/borealis/vulkan, brl_ prefix, BRL_ env) #591 link now points at the pull request instead of an issue.
  3. CI: this repository still has no Actions runs after 2026-10-24, so the four copies are updated in this PR again, byte-identical to the policy file. Local run of the aurora-wip script (f0ae30b1, with agent-policy: sync stale copies instead of deleting them #724), pr mode, with the label set: PR is clean for the head and for its merge with aurora-wip. Without the label it stops at the policy-change check, which is what it should do.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review (§1–§6 pre-PR checklist) at 6bbdfaa4027f64ce44049ddb403f1cfd56063372 (mergeable onto aurora-wip; agent-policy-change label set; mesa#724 merged as 6121dc23; 0 CI checks reported as Actions have not run on this repository since 2026-10-24).

All prior blockers resolved

  1. Canonical §4 Assisted-by: alignment: Resolved. Synced from aurora-silicon/agent-guidelines main (f7edafb3ce3b, incorporating 0b26c31 / PR #1).
  2. §6 Naming alignment with live aurora-wip: Resolved via agent-guidelines#2 (f7edafb3ce3b). Prose uses Borealis; code keeps hk_/HK_ in src/asahi/vulkan/ until aurora-silicon/mesa#591 (now linked as /pull/591) merges; upstream and UAPI names (Gallium asahi, src/asahi/, asahi_drm.h, DRM_ASAHI_*) stay unchanged. Verified exact line-for-line content match against aurora-silicon/agent-guidelines/pre-pr-checklist.md at f7edafb3ce3b.
  3. Synced copies & policy guard: Resolved. .github/aurora/AGENTS.md, AGENTS.md, CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md are all updated in this PR with identical blob SHA (b33f45a78008), so merge does not depend on the inactive workflow, and local agent-policy.sh pr (with #724) verified clean.

§1–§6 checklist summary

  • §1–§3: Pass (policy documentation only).
  • §4 (Clean-room & attribution): Pass — all three commits (8c62c8e9, 1b98bda4, 6bbdfaa4) carry human author/committer (Ryan Murray <ryan@aurorasilicon.org>) and human Signed-off-by: only, with zero AI trailers; PR body includes Assisted-by: disclosure; clean-room.
  • §5 (Evidence): Pass — docs/policy-only change; blob identity and local agent-policy.sh pr checks verified.
  • §6 (Naming): Pass — matches canonical agent-guidelines f7edafb3ce3b.

Assisted-by: LLM (Gemini 4 Neon)

@DjDeveloperr
DjDeveloperr merged commit 90f2444 into aurora-wip Nov 22, 2026
@RyanTheTide
RyanTheTide deleted the agent-policy/pre-pr-checklist branch November 27, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-policy-change Maintainer-reviewed change to .github/aurora/AGENTS.md (agent policy)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants