From 459bdde6a088ff1d1e6f8421a38f89b813b9d837 Mon Sep 17 00:00:00 2001 From: sehkone Date: Sun, 9 Aug 2026 11:38:16 +0900 Subject: [PATCH] Read the instruction pin from .agents aicers/agent-instructions dropped the `blocks` and `instructions-ref` inputs from its reusable drift check, which this repository still passed. An unknown input is a startup failure, so the whole run went red before a single job began -- on main as well as on every open branch, and with no repository content at fault. The two values now live in `.agents/instructions.toml`, where the check reads them from. They record what this repository carries rather than what its workflow says it does, and keeping them out of `.github/workflows/` is what lets the upstream apply job rewrite them with the default GITHUB_TOKEN, which may not push to that directory. The pin stays at v2 and the block list at what AGENTS.md carries, so the comparison is the same one that was running before. Closes #42 --- .agents/instructions.toml | 6 ++++++ .github/workflows/ci.yml | 16 ++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .agents/instructions.toml diff --git a/.agents/instructions.toml b/.agents/instructions.toml new file mode 100644 index 0000000..065b919 --- /dev/null +++ b/.agents/instructions.toml @@ -0,0 +1,6 @@ +# What this repository carries from aicers/agent-instructions: the release +# it is on, and the shared blocks it has. Its drift check reads this file, +# and its apply job rewrites it. Which blocks a repository should carry is +# decided upstream in repos.json, not here. +ref = "v2" +blocks = ["workflow", "rust"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd839a0..3444586 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,15 +29,19 @@ jobs: # Ungated and unconditional, like Markdown: AGENTS.md is itself Markdown, # so a documentation-only change is exactly the change that can edit a - # generated region. Pinned to a release tag rather than a branch, so an - # edit upstream reaches this repository through its sync pull request - # instead of turning every unrelated pull request red. + # generated region. + # + # No `with:` block. The release to compare against and the blocks to + # compare are both read from `.agents/instructions.toml`, so they have + # one source rather than two that can disagree, and the apply job that + # rewrites them never has to touch `.github/workflows/` -- which the + # default GITHUB_TOKEN may not push to. The pin is a release tag rather + # than a branch, so an edit upstream reaches this repository through the + # pull request that moves it instead of turning every unrelated pull + # request red. instructions: name: Instructions uses: aicers/agent-instructions/.github/workflows/check-drift.yml@main - with: - blocks: "workflow rust" - instructions-ref: v2 check: runs-on: ubuntu-latest