The page says which claim each of the two roles binds (THE-40) #115

Merged
pit merged 1 commit from hermes/THE-40-schedule-ref into main 2026-12-03 06:32:38 +00:00
Owner

paperclip:THE-40

Summary

Two sentences said both store roles bind refs/heads/main; the scheduled one cannot. A scheduled run's OIDC ref claim is the branch name, main, so the scheduled role binds the repository and the event alone — infra-secrets carries that change (renovate's bound claims), and this repository's page and script say what each role binds.

File Change
scripts/renovate-token.sh the header names each role's claims
docs/renovate.md the token paragraph says the same

Evidence

Check Result
mise exec -- make check exit 0 — docs-check: all 5 assertions hold
paperclip:THE-40 ## Summary Two sentences said both store roles bind `refs/heads/main`; the scheduled one cannot. A scheduled run's OIDC `ref` claim is the branch name, `main`, so the scheduled role binds the repository and the event alone — `infra-secrets` carries that change (`renovate`'s bound claims), and this repository's page and script say what each role binds. | File | Change | | --- | --- | | `scripts/renovate-token.sh` | the header names each role's claims | | `docs/renovate.md` | the token paragraph says the same | ## Evidence | Check | Result | | --- | --- | | `mise exec -- make check` | exit 0 — `docs-check: all 5 assertions hold` |
The page says which claim each of the two roles binds (THE-40)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 29s
plan / edge-plan-check (pull_request_target) Successful in 33s
plan / runner-guest-plan-check (pull_request_target) Successful in 25s
pr-checks / docs-check (pull_request) Successful in 26s
pr-checks / env-check (pull_request) Successful in 22s
pr-checks / fmt-check (pull_request) Successful in 24s
pr-checks / validate (pull_request) Successful in 23s
pr-checks / syntax-check (pull_request) Successful in 21s
a6ac958c10
A scheduled run's OIDC `ref` claim is the branch name, `main`, not the full ref,
so the store's `renovate` role binds the repository and the event alone; the
dispatch role keeps `refs/heads/main`. The page and the script's header now say
that instead of claiming both bind the full ref.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Author
Owner

Waiting — queued behind olympus/infra-secrets#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:15 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/infra-secrets#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:15 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

Review started (round 0/5) on a6ac958c10 — reading the diff now.

**Review started** (round 0/5) on a6ac958c10049555d10f97bc5c67b51dba912813 — reading the diff now.
bot-minos approved these changes 2026-12-02 22:04:32 +00:00
bot-minos left a comment

Review loop: repo=olympus/infra-forge · PR #115 · head=a6ac958c10049555d10f97bc5c67b51dba912813 · round=1/5 · verdict=merge

Recommendation: merge

Round. list_pull_reviews → [] before this round, so this is round 1/5; the dispatch's step-0 line carried 0/5 because that is the line it dictated, and the earlier Waiting comment on this PR says a retry does not count as a round. Fixed point: merge-base d53823f, git diff d53823f...a6ac958 — 2 files, +8/−5, one commit (a6ac958). The branch sits one commit behind origin/main (59d427c, THE-122, which touches scripts/env.sh and not this diff's files); mergeable: true.

Spec. paperclip:THE-40, read live over the control plane: GET /api/issues/THE-40 → 200 (in_progress), and its design document E4 — hardening in code → 200, 8423 chars. Neither names the ref claim, so the contract this round judges is the PR body's own: two sentences said both store roles bind refs/heads/main, the scheduled one cannot, and this repository's page and script should say what each role binds. Both sites are in the change, and no third site carries the old claim: grep -n 'refs/heads/main' at the head returns .forgejo/workflows/deploy.yml:18 (the push role, still true), docs/renovate.md:45 and scripts/renovate-token.sh:6 (the two rewritten).

Standards. AGENTS.md at the head — §Decisions, §Rules (Secrets, State, Privacy, Code comments), §Toolchain. No CONTRIBUTING.md, no coding-standards.md, no docs/adr/ rule on comments. scripts/renovate-token.sh has no shell prose gate: fmt-check runs the formatter, which does not reflow comments, so the header's own wrap is the convention it keeps — every prose line but one is 83 columns or fewer.

Standards

ADVISORY — scripts/renovate-token.sh:5-7: the corrected sentence is true, its wrapping is not the header's, and its reason now lives on the page too

The hunk reads:

# their event; the dispatch role to `refs/heads/main` too, because a scheduled
# run's `ref` claim is the branch name, `main`. The lease they answer reads one path. The
# token goes to stdout and nowhere else — the workflow masks it and hands it to

Two things ride on those three lines, both one edit away:

  1. The reflow. Line 7 is 89 columns against the header's 83-or-fewer, and it merges the tail of one sentence with the head of the next (…reads one path. The / # token goes…), so the lease sentence starts mid-line. The paragraph the header had — roles, then the lease, then stdout — is now two sentences sharing a line.
  2. AGENTS.md §Rules → Code comments: "Keep comments to a minimum… When something genuinely needs more explanation than the code can carry, propose a docs page under docs/ instead of writing it as a comment." The causal clause is now carried by docs/renovate.md:45-46 in nearly the same words, so the script keeps the binding and the page keeps the reason. This is the judgement call of the two — the pre-existing header is already prose, and the comment that was wrong had to be corrected — but the because… is exactly the explanation the rule sends to docs/.

ADVISORY, not a blocker: the claim the comment makes is correct, nothing reads this comment, and the same rewrite clears both. Clearing it: keep the dispatch role to refs/heads/main too, drop the because a scheduled run's ref claim… clause, and wrap the paragraph at the header's 83 columns.

Spec

No findings.

The two sentences the change claims are wrong are the two it edits, and the replacement matches the store as it stands at olympus/infra-secrets origin/main (095dbd4): bao/service/roles/openbao/defaults/main.yml binds renovate to {repository, event_name: schedule} and renovate-dispatch to {repository, ref: refs/heads/main, event_name: workflow_dispatch}. Nothing in the diff is outside the claim: two files, the page and the script, both named in the PR body's table.

Verified

Probe Result
list_pull_reviews and list_issue_comments at the head [] reviews; two comments — the scheduler's Waiting note and this round's step-0 line
git log --oneline d53823f..a6ac958 and --stat one commit, 2 files, +8/−5, both files in the diff
the mechanism, read from forgejo/forgejo at tag v15.0.9 (source fetched live) notifier_helper.go:617 sets the schedule row's Ref to input.Repo.DefaultBranch — the name; schedule_tasks.go:132 copies it into the run as Ref: cron.Ref; context.go:27 takes ref := run.Ref and :54 sets EventName: run.TriggerEvent; auth.go:127 puts ctxVal("ref") into the ID token. A scheduled run therefore claims ref=main, event_name=schedule, repository=olympus/infra-forge — the sentence both files now carry
GET /api/v1/version on the instance 15.0.9+gitea-1.22.0 — the tag that source was read at
the store's roles at infra-secrets origin/main 095dbd4 the two roles' bound_claims are the maps quoted above; the page's and the script's description matches them claim for claim
mise exec -- make check in a worktree at the head, twice both rc 0; docs-check: all 5 assertions hold — the PR body's evidence line reproduced
commit statuses at a6ac958 six contexts success — pr-checks env-check, validate, fmt-check, syntax-check, docs-check; plan guest-plan-check, edge-plan-check, runner-guest-plan-check
the diff prose only: no secret, no credential, no path value, no executable line

Could not verify

  • The live store's auth/jwt/role/renovate. I hold no token with read on that mount, so whether infra-secrets#69's deploy has already reconciled the role on 144 is not something I read. The page states the merged grant; the first scheduled run (Monday 04:17Z) is the end-to-end proof, which is what THE-40's own monitor note says.
  • The action_schedule row on the forge. Not read; the claim rests on the code path above, which forces the same value from the same column.

Named, not charged

  • The page gives the reason but not the defence. docs/renovate.md:44-48 now says the scheduled role binds the repository and the event, and why its ref claim cannot be refs/heads/main; it does not carry the sibling's argument that dropping the binding is safe — the forge schedules only workflows present on the default branch (infra-secrets/docs/store-identity.md and the defaults comment both say so). A reader holding the two pages sees one assert and one justify. No standard asks for it here and nothing the page says is false, so it is advice, not a finding.
  • .forgejo/workflows/renovate.yml:9-11 states the two events and their roles without mentioning the ref claim, and stays true either way — not a third stale site.

Counts and the gate

Axis BLOCKER ADVISORY Worst
Standards 0 1 the script header: an 89-column line joining two sentences, and a reason the page now carries
Spec 0 0 —

Zero blockers and one advisory: merging. The advisory travels as advice — one rewrite of three comment lines — and does not need a round of its own.

This change edits a page and a comment; it touches no state, no store role, no workflow, no ADR and no branch protection, so no charter hold and no board card was needed, and the state here is the findings'.

<!-- minos review-loop: repo=olympus/infra-forge pr=115 head=a6ac958c10049555d10f97bc5c67b51dba912813 round=1/5 axes=standards,spec --> Review loop: repo=olympus/infra-forge · PR #115 · head=a6ac958c10049555d10f97bc5c67b51dba912813 · round=1/5 · verdict=merge Recommendation: merge **Round.** `list_pull_reviews` → `[]` before this round, so this is round **1/5**; the dispatch's step-0 line carried `0/5` because that is the line it dictated, and the earlier `Waiting` comment on this PR says a retry does not count as a round. Fixed point: merge-base `d53823f`, `git diff d53823f...a6ac958` — 2 files, +8/−5, one commit (`a6ac958`). The branch sits one commit behind `origin/main` (`59d427c`, THE-122, which touches `scripts/env.sh` and not this diff's files); `mergeable: true`. **Spec.** `paperclip:THE-40`, read live over the control plane: `GET /api/issues/THE-40` → 200 (`in_progress`), and its design document *E4 — hardening in code* → 200, 8423 chars. Neither names the `ref` claim, so the contract this round judges is the PR body's own: two sentences said both store roles bind `refs/heads/main`, the scheduled one cannot, and this repository's page and script should say what each role binds. Both sites are in the change, and no third site carries the old claim: `grep -n 'refs/heads/main'` at the head returns `.forgejo/workflows/deploy.yml:18` (the push role, still true), `docs/renovate.md:45` and `scripts/renovate-token.sh:6` (the two rewritten). **Standards.** `AGENTS.md` at the head — §Decisions, §Rules (Secrets, State, Privacy, Code comments), §Toolchain. No `CONTRIBUTING.md`, no `coding-standards.md`, no `docs/adr/` rule on comments. `scripts/renovate-token.sh` has no shell prose gate: `fmt-check` runs the formatter, which does not reflow comments, so the header's own wrap is the convention it keeps — every prose line but one is 83 columns or fewer. ## Standards ### ADVISORY — `scripts/renovate-token.sh:5-7`: the corrected sentence is true, its wrapping is not the header's, and its reason now lives on the page too The hunk reads: ``` # their event; the dispatch role to `refs/heads/main` too, because a scheduled # run's `ref` claim is the branch name, `main`. The lease they answer reads one path. The # token goes to stdout and nowhere else — the workflow masks it and hands it to ``` Two things ride on those three lines, both one edit away: 1. **The reflow.** Line 7 is 89 columns against the header's 83-or-fewer, and it merges the tail of one sentence with the head of the next (`…reads one path. The` / `# token goes…`), so the lease sentence starts mid-line. The paragraph the header had — roles, then the lease, then stdout — is now two sentences sharing a line. 2. **`AGENTS.md` §Rules → Code comments**: *"Keep comments to a minimum… When something genuinely needs more explanation than the code can carry, propose a docs page under `docs/` instead of writing it as a comment."* The causal clause is now carried by `docs/renovate.md:45-46` in nearly the same words, so the script keeps the binding and the page keeps the reason. This is the judgement call of the two — the pre-existing header is already prose, and the comment that was *wrong* had to be corrected — but the `because…` is exactly the explanation the rule sends to `docs/`. ADVISORY, not a blocker: the claim the comment makes is correct, nothing reads this comment, and the same rewrite clears both. **Clearing it:** keep `the dispatch role to refs/heads/main too`, drop the `because a scheduled run's ref claim…` clause, and wrap the paragraph at the header's 83 columns. ## Spec No findings. The two sentences the change claims are wrong are the two it edits, and the replacement matches the store as it stands at `olympus/infra-secrets` `origin/main` (`095dbd4`): `bao/service/roles/openbao/defaults/main.yml` binds `renovate` to `{repository, event_name: schedule}` and `renovate-dispatch` to `{repository, ref: refs/heads/main, event_name: workflow_dispatch}`. Nothing in the diff is outside the claim: two files, the page and the script, both named in the PR body's table. ## Verified | Probe | Result | | --- | --- | | `list_pull_reviews` and `list_issue_comments` at the head | `[]` reviews; two comments — the scheduler's `Waiting` note and this round's step-0 line | | `git log --oneline d53823f..a6ac958` and `--stat` | one commit, 2 files, +8/−5, both files in the diff | | the mechanism, read from `forgejo/forgejo` at tag `v15.0.9` (source fetched live) | `notifier_helper.go:617` sets the schedule row's `Ref` to `input.Repo.DefaultBranch` — the *name*; `schedule_tasks.go:132` copies it into the run as `Ref: cron.Ref`; `context.go:27` takes `ref := run.Ref` and `:54` sets `EventName: run.TriggerEvent`; `auth.go:127` puts `ctxVal("ref")` into the ID token. A scheduled run therefore claims `ref=main`, `event_name=schedule`, `repository=olympus/infra-forge` — the sentence both files now carry | | `GET /api/v1/version` on the instance | `15.0.9+gitea-1.22.0` — the tag that source was read at | | the store's roles at `infra-secrets` `origin/main` `095dbd4` | the two roles' `bound_claims` are the maps quoted above; the page's and the script's description matches them claim for claim | | `mise exec -- make check` in a worktree at the head, twice | both rc 0; `docs-check: all 5 assertions hold` — the PR body's evidence line reproduced | | commit statuses at `a6ac958` | six contexts success — `pr-checks` env-check, validate, fmt-check, syntax-check, docs-check; `plan` guest-plan-check, edge-plan-check, runner-guest-plan-check | | the diff | prose only: no secret, no credential, no path value, no executable line | ## Could not verify - **The live store's `auth/jwt/role/renovate`.** I hold no token with read on that mount, so whether `infra-secrets#69`'s deploy has already reconciled the role on 144 is not something I read. The page states the merged grant; the first scheduled run (Monday 04:17Z) is the end-to-end proof, which is what THE-40's own monitor note says. - **The `action_schedule` row on the forge.** Not read; the claim rests on the code path above, which forces the same value from the same column. ## Named, not charged - **The page gives the reason but not the defence.** `docs/renovate.md:44-48` now says the scheduled role binds the repository and the event, and why its `ref` claim cannot be `refs/heads/main`; it does not carry the sibling's argument that dropping the binding is safe — the forge schedules only workflows present on the default branch (`infra-secrets/docs/store-identity.md` and the defaults comment both say so). A reader holding the two pages sees one assert and one justify. No standard asks for it here and nothing the page says is false, so it is advice, not a finding. - **`.forgejo/workflows/renovate.yml:9-11`** states the two events and their roles without mentioning the ref claim, and stays true either way — not a third stale site. ## Counts and the gate | Axis | BLOCKER | ADVISORY | Worst | | --- | ---: | ---: | --- | | Standards | 0 | 1 | the script header: an 89-column line joining two sentences, and a reason the page now carries | | Spec | 0 | 0 | — | Zero blockers and one advisory: merging. The advisory travels as advice — one rewrite of three comment lines — and does not need a round of its own. This change edits a page and a comment; it touches no state, no store role, no workflow, no ADR and no branch protection, so no charter hold and no board card was needed, and the state here is the findings'.
pit merged commit 0c9a5eb199 into main 2026-12-03 06:32:38 +00:00
pit deleted branch hermes/THE-40-schedule-ref 2026-12-03 06:32:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-forge!115
No description provided.