docs: the CI binding is three claims, and the record says so (TR-57) #40

Merged
pit merged 2 commits from wr39/jwt-claim-record into main 2026-10-28 21:45:05 +00:00
Owner

Summary

The store's CI role no longer binds ref_protected (infra-secrets #14, already applied
to the live store), because this instance asserts it as false on a push to main even
though main carries a protection rule. This makes the tracker's own record say the
same thing, so the ADR and the role agree.

  • docs/adr/0005-the-environment-comes-from-the-store.md — the binding is
    repository, ref, event_name, and the paragraph says why ref_protected is not
    among them.
  • scripts/store-env.sh — its header carried the same four-claim list; it now names
    the three, says why the fourth is absent, and points at ADR-0005. Comment only: the
    door's behaviour is unchanged.

Evidence

  • The refusal that named the claim, from job 180 on main:
    claim "ref_protected" does not match any associated bound claim values.
  • The live role now reads
    bound_claims map[event_name:push ref:refs/heads/main repository:olympus/infra-tracker].
  • make check → exit 0 at 1740895 — three tofu validate successes and both
    plan-only tests 1 passed, 0 failed; the diff adds no behaviour to run.

Merge Danger

Docs and one comment-only script edit; nothing runs differently. Merging it is also
the first push to main after the role changed, so the
edge and guest jobs on that merge are the proof that the CI door opens: both should
plan against PROD's state with their plan keys and no apply key.

## Summary The store's CI role no longer binds `ref_protected` (infra-secrets #14, already applied to the live store), because this instance asserts it as `false` on a push to main even though `main` carries a protection rule. This makes the tracker's own record say the same thing, so the ADR and the role agree. - `docs/adr/0005-the-environment-comes-from-the-store.md` — the binding is `repository`, `ref`, `event_name`, and the paragraph says why `ref_protected` is not among them. - `scripts/store-env.sh` — its header carried the same four-claim list; it now names the three, says why the fourth is absent, and points at ADR-0005. Comment only: the door's behaviour is unchanged. ## Evidence - The refusal that named the claim, from job 180 on `main`: `claim "ref_protected" does not match any associated bound claim values`. - The live role now reads `bound_claims map[event_name:push ref:refs/heads/main repository:olympus/infra-tracker]`. - `make check` → exit 0 at `1740895` — three `tofu validate` successes and both plan-only tests `1 passed, 0 failed`; the diff adds no behaviour to run. ## Merge Danger Docs and one comment-only script edit; nothing runs differently. Merging it is also the first push to `main` after the role changed, so the `edge` and `guest` jobs on that merge are the proof that the CI door opens: both should plan against PROD's state with their plan keys and no apply key.
docs: the CI binding is three claims, and the record says so (TR-57)
All checks were successful
checks / static (pull_request) Successful in 10s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m47s
42f25e2516
bot-minos approved these changes 2026-10-28 21:19:41 +00:00
Dismissed
bot-minos left a comment

olympus/infra-tracker #40 · head 42f25e2 · round 1/5 · axes: Standards, Spec
The timeline carries no earlier review from this loop (0 reviews, 0 comments), so this is round 1.

Recommendation: merge

Standards

Sources: AGENTS.md (§Decisions, §State, §Pull requests), docs/adr/index.md, docs/adr/template.md, workshop docs/adr/0001–0007 read from the forge at main. No CONTRIBUTING.md or coding-standards file exists; the record's own neighbours are the standard the prose is measured against. No baseline smell in a three-line prose hunk.

  • ADVISORY — scripts/store-env.sh:22-23: the second copy of this list was left behind.
    The header of the CI door still reads
    # `ref: refs/heads/main`, `ref_protected: "true"`, `event_name: push` — so this
    # door opens on a push to main and nowhere else, a pull request included.
    which is the four-claim binding docs/adr/0005-the-environment-comes-from-the-store.md:29-31
    now says is deliberately absent. After this merge the tree states both: the ADR right, the
    script header wrong. It is not a duplicate of prose at a distance — it is the file an agent
    reads to understand the door, and it would send the next author to re-add the claim that
    produced the refusal this PR exists to explain.
    Clearing: the same one-line edit — drop ref_protected: "true" from that sentence, and let
    it point at ADR-0005 for why the fourth claim is not bound.

  • ADVISORY (merge-time gate) — the branch does not contain main's tip.
    git merge-base --is-ancestor 2173ede 42f25e2 → false; git log --oneline 6897d9e..2173ede
    → one commit, ci: the store's refusal says why (TR-57) (!39). workshop
    docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md §Decision: "the change has
    to be current with main immediately before the merge, and a change behind main cannot
    merge."
    Not a defect in the diff — honouring it adds a commit — and the approval above is
    pinned to 42f25e2, so bring the branch current and the delta is what I re-read.

Spec

Spec: TR-57 — infra-tracker reads its environment from the store and loses its vault
(Vikunja project 3, index 57, id 161). Its acceptance criteria and the resolution comment
(bot-telesphoros, 2026-10-28T14:15:55Z) leave exactly one line red: "guest and edge fail
at auth/jwt/login with 400, before any plan."
This PR is the record half of that line;
the mechanism half is infra-secrets #14.

0 findings. The change makes the record say what the role does, and the claim it adds is
true — see (2) below. Nothing in the hunk is unasked for; nothing the ticket needs is dropped.

What I verified

  1. Head pinned. refs/pull/40/head = refs/heads/wr39/jwt-claim-record = 42f25e2
    (git ls-remote); diff is one file, +3/−2, all inside
    docs/adr/0005-the-environment-comes-from-the-store.md:28-34.
  2. The load-bearing claim is true, from the instance's own code. GET /api/v1/version →
    15.0.9+gitea-1.22.0. At tag v15.0.9, services/actions/context.go:104 is the only
    writer of the claim — gitContext["ref_protected"] = false, commented "boolean, true if
    branch protections are configured for the ref that triggered the workflow run"
    — and
    nothing sets it true anywhere in the tree; services/actions/auth.go:128 copies it into the
    ID token, and the tree's own integration test asserts claims["ref_protected"] == "false"
    (tests/integration/api_actions_id_token_test.go:82). So "this instance asserts it as
    false on a push to main even under a protection rule"
    holds, and holds for every run of
    every ref.
  3. The refusal the body quotes, reproduced. Run 22 (push, 2173ede), job 2 — the log's
    first line is received task 180 of job guest, i.e. the "job 180" of the body — at
    15:21:24Z: claim "ref_protected" does not match any associated bound claim values. It
    lines up: the role bound "true", the token carries "false".
  4. The page renders. POST /api/v1/markdown on the head blob → 200, 8,327 bytes, one
    <h1> and four <h2>, the added clause present, no relative links to resolve. Widths in
    characters (${#line}): the two added lines are 81 and 82, against a file that already
    carries 26 lines over 80 (max 98) — inside its own register, no rewrap artifact.
  5. The repo's gate at this head. Run 23: static green — env-check "the pin and the
    map agree"
    , env-test "every assertion holds", tofu fmt -check, three tofu validate
    successes and the two plan-only tests 1 passed, 0 failed — and execute (make test-ci,
    the Suite against a real Test Guest) successful in 2m47s at 21:18:47Z; edge and guest
    are skipped on a pull request by design. The body's "make check → exit 0" holds.

A note on the body's Evidence. The token-claim probe it cites is runs 16/17
(refs/heads/probe/idtoken): an unprotected ref, where "false" is trivially correct. Those
runs do not establish the main-push behaviour. The conclusion survives the citation — (2) is
what establishes it — but the citation is weaker than it reads.

Also worth correcting where it lives: TR-57's resolution comment asserts the run's token
carried ref_protected: "true" alongside ref: refs/heads/main. That is refuted by (2) — the
claim is hardcoded false — and it is the sentence that made this look like a store-side bug
for half a day. Worth a line in the ticket when it closes.

What I could not verify

  • The live role's bound_claims. I hold no store credential: GET https://10.12.0.144:8200/v1/sys/health answers 200 from this host, but auth/jwt/role/tracker
    needs a token I do not have. The three-claim binding rests on the body's read. No run on this
    head has exercised it — the last push to main (run 22) predates the change, which is why the
    Merge Danger makes the merge itself the proof. If the role update did not land, the merge's
    own edge/guest jobs will fail exactly as run 22 did.
  • make check re-run by hand — not repeated here; the head's static job (5) is the repo's
    own execution of the same target.

Checked and accepted

  • The merged source of record still declares four claims. infra-secrets at main:
    bao/service/roles/openbao/defaults/main.yml:101 still carries ref_protected: "true", and
    docs/store-identity.md:127 still says the role is bound "to ref_protected true". PR #14
    (d02517d, open) drops both. The body declares it — "infra-secrets #14, already applied to
    the live store"
    — so this is sequencing across two PRs, not a defect of this diff. Until #14
    lands, these two repositories disagree and this ADR is the one that is ahead; merging both in
    the same pass is what closes it.
  • Editing an accepted record in place. docs/adr/index.md:15-16 reserves a superseding file
    for reversing a decision. None is reversed here — the plans still run on the push to main
    and the Consequences section still reads true — so correcting the Context's description of
    the binding is the right shape, as ADR-0003's own in-place deferral note already is.
  • The narrower binding's security consequence — that what forbids a direct push is the
    branch protection rule, not a token binding — is stated in infra-secrets #14's Merge Danger
    but not in this ADR. Not charged: the added clause already names the protection rule as the
    thing ref_protected would have carried, and the decision's home is the store's record.
  • PR body shape: ## Summary / ## Evidence / ## Merge Danger per AGENTS.md
    §Pull requests. One of the last eight bodies in this repo carries the pr skill's
    **Door:** / **Blast Radius:** labels, so their absence here is repo-wide drift, not this
    change's doing.

Summary

axis findings worst
Standards 2 — both ADVISORY scripts/store-env.sh:22-23: the four-claim list the ADR now contradicts
Spec 0 —

Two advisories, below the volume trip, so the recommendation is merge; both travel as
advice. The currency one names the single commit (!39) that has to be brought in before the
merge button, and the approval above is pinned to 42f25e2.

<!-- minos review-loop: repo=olympus/infra-tracker pr=40 head=42f25e2516b4edd22450a25960a9775760d84f50 round=1/5 axes=standards,spec --> **olympus/infra-tracker #40** · head `42f25e2` · round 1/5 · axes: Standards, Spec The timeline carries no earlier review from this loop (0 reviews, 0 comments), so this is round 1. Recommendation: merge ## Standards Sources: `AGENTS.md` (§Decisions, §State, §Pull requests), `docs/adr/index.md`, `docs/adr/template.md`, workshop `docs/adr/0001`–`0007` read from the forge at `main`. No `CONTRIBUTING.md` or coding-standards file exists; the record's own neighbours are the standard the prose is measured against. No baseline smell in a three-line prose hunk. - **ADVISORY — `scripts/store-env.sh:22-23`: the second copy of this list was left behind.** The header of the CI door still reads ``# `ref: refs/heads/main`, `ref_protected: "true"`, `event_name: push` — so this`` ``# door opens on a push to main and nowhere else, a pull request included.`` which is the four-claim binding `docs/adr/0005-the-environment-comes-from-the-store.md:29-31` now says is deliberately absent. After this merge the tree states both: the ADR right, the script header wrong. It is not a duplicate of prose at a distance — it is the file an agent reads to understand the door, and it would send the next author to re-add the claim that produced the refusal this PR exists to explain. *Clearing:* the same one-line edit — drop `ref_protected: "true"` from that sentence, and let it point at ADR-0005 for why the fourth claim is not bound. - **ADVISORY (merge-time gate) — the branch does not contain `main`'s tip.** `git merge-base --is-ancestor 2173ede 42f25e2` → false; `git log --oneline 6897d9e..2173ede` → one commit, `ci: the store's refusal says why (TR-57) (!39)`. workshop `docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md` §Decision: *"the change has to be current with `main` immediately before the merge, and a change behind `main` cannot merge."* Not a defect in the diff — honouring it adds a commit — and the approval above is pinned to `42f25e2`, so bring the branch current and the delta is what I re-read. ## Spec Spec: **TR-57** — *infra-tracker reads its environment from the store and loses its vault* (Vikunja project 3, index 57, id 161). Its acceptance criteria and the resolution comment (`bot-telesphoros`, 2026-10-28T14:15:55Z) leave exactly one line red: *"`guest` and `edge` fail at `auth/jwt/login` with **400**, before any plan."* This PR is the record half of that line; the mechanism half is infra-secrets #14. **0 findings.** The change makes the record say what the role does, and the claim it adds is true — see (2) below. Nothing in the hunk is unasked for; nothing the ticket needs is dropped. ## What I verified 1. **Head pinned.** `refs/pull/40/head` = `refs/heads/wr39/jwt-claim-record` = `42f25e2` (`git ls-remote`); diff is one file, +3/−2, all inside `docs/adr/0005-the-environment-comes-from-the-store.md:28-34`. 2. **The load-bearing claim is true, from the instance's own code.** `GET /api/v1/version` → `15.0.9+gitea-1.22.0`. At tag `v15.0.9`, `services/actions/context.go:104` is the *only* writer of the claim — `gitContext["ref_protected"] = false`, commented *"boolean, true if branch protections are configured for the ref that triggered the workflow run"* — and nothing sets it true anywhere in the tree; `services/actions/auth.go:128` copies it into the ID token, and the tree's own integration test asserts `claims["ref_protected"] == "false"` (`tests/integration/api_actions_id_token_test.go:82`). So *"this instance asserts it as `false` on a push to main even under a protection rule"* holds, and holds for every run of every ref. 3. **The refusal the body quotes, reproduced.** Run 22 (push, `2173ede`), job 2 — the log's first line is `received task 180 of job guest`, i.e. the "job 180" of the body — at 15:21:24Z: `claim "ref_protected" does not match any associated bound claim values`. It lines up: the role bound `"true"`, the token carries `"false"`. 4. **The page renders.** `POST /api/v1/markdown` on the head blob → 200, 8,327 bytes, one `<h1>` and four `<h2>`, the added clause present, no relative links to resolve. Widths in **characters** (`${#line}`): the two added lines are 81 and 82, against a file that already carries 26 lines over 80 (max 98) — inside its own register, no rewrap artifact. 5. **The repo's gate at this head.** Run 23: `static` green — `env-check` *"the pin and the map agree"*, `env-test` *"every assertion holds"*, `tofu fmt -check`, three `tofu validate` successes and the two plan-only tests `1 passed, 0 failed` — and `execute` (`make test-ci`, the Suite against a real Test Guest) `successful in 2m47s` at 21:18:47Z; `edge` and `guest` are `skipped` on a pull request by design. The body's "`make check` → exit 0" holds. **A note on the body's Evidence.** The token-claim probe it cites is runs 16/17 (`refs/heads/probe/idtoken`): an unprotected ref, where `"false"` is trivially correct. Those runs do not establish the main-push behaviour. The conclusion survives the citation — (2) is what establishes it — but the citation is weaker than it reads. **Also worth correcting where it lives:** TR-57's resolution comment asserts the run's token carried `ref_protected: "true"` alongside `ref: refs/heads/main`. That is refuted by (2) — the claim is hardcoded `false` — and it is the sentence that made this look like a store-side bug for half a day. Worth a line in the ticket when it closes. ## What I could not verify - **The live role's `bound_claims`.** I hold no store credential: `GET https://10.12.0.144:8200/v1/sys/health` answers 200 from this host, but `auth/jwt/role/tracker` needs a token I do not have. The three-claim binding rests on the body's read. No run on this head has exercised it — the last push to `main` (run 22) predates the change, which is why the Merge Danger makes the merge itself the proof. If the role update did not land, the merge's own `edge`/`guest` jobs will fail exactly as run 22 did. - **`make check` re-run by hand** — not repeated here; the head's `static` job (5) is the repo's own execution of the same target. ## Checked and accepted - **The merged source of record still declares four claims.** `infra-secrets` at `main`: `bao/service/roles/openbao/defaults/main.yml:101` still carries `ref_protected: "true"`, and `docs/store-identity.md:127` still says the role is bound *"to `ref_protected` true"*. PR #14 (`d02517d`, open) drops both. The body declares it — *"infra-secrets #14, already applied to the live store"* — so this is sequencing across two PRs, not a defect of this diff. Until #14 lands, these two repositories disagree and this ADR is the one that is ahead; merging both in the same pass is what closes it. - **Editing an accepted record in place.** `docs/adr/index.md:15-16` reserves a superseding file for *reversing* a decision. None is reversed here — the plans still run on the push to `main` and the Consequences section still reads true — so correcting the Context's description of the binding is the right shape, as ADR-0003's own in-place deferral note already is. - **The narrower binding's security consequence** — that what forbids a direct push is the branch protection rule, not a token binding — is stated in infra-secrets #14's Merge Danger but not in this ADR. Not charged: the added clause already names the protection rule as the thing `ref_protected` would have carried, and the decision's home is the store's record. - **PR body shape:** `## Summary` / `## Evidence` / `## Merge Danger` per `AGENTS.md` §Pull requests. One of the last eight bodies in this repo carries the `pr` skill's `**Door:**` / `**Blast Radius:**` labels, so their absence here is repo-wide drift, not this change's doing. ## Summary | axis | findings | worst | | --- | --- | --- | | Standards | 2 — both ADVISORY | `scripts/store-env.sh:22-23`: the four-claim list the ADR now contradicts | | Spec | 0 | — | Two advisories, below the volume trip, so the recommendation is **merge**; both travel as advice. The currency one names the single commit (`!39`) that has to be brought in before the merge button, and the approval above is pinned to `42f25e2`.
pit force-pushed wr39/jwt-claim-record from 42f25e2516
All checks were successful
checks / static (pull_request) Successful in 10s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m47s
to 4b6a459f73
Some checks failed
checks / static (pull_request) Successful in 11s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Has been cancelled
2026-10-28 21:33:51 +00:00
Compare
Author
Owner

Fix advisories

Fix advisories
docs(store-env): the CI door's header lists three claims, not four (TR-57)
All checks were successful
checks / static (pull_request) Successful in 8s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m41s
1740895b48
ADR-0005 stopped claiming the store's JWT role binds `ref_protected`,
because this instance asserts it as `false` on a push to main even under a
protection rule. `scripts/store-env.sh` still described the four-claim
binding in its header — the file an author reads to understand the door, and
the sentence that would send the next one to re-add the claim whose
mismatch refused every token.

Drop it from the list, say why it is not there, and point at the record.
Comment only: the script's behaviour is unchanged.

Refs: TR-57, olympus/infra-tracker#40
bot-efesto dismissed bot-minos's review 2026-10-28 21:35:34 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

The ask was inferred. The standing review (id 298, bot-minos, pinned to 42f25e2) is an APPROVE with blockers: 0 and 2 advisories; what dispatched this round is pit's comment "Fix advisories" (21:34:05Z) together with the label move to review/needs-fix. So this round works those two advisories and re-derives no blocker. The round is the review set's own round=1/5, not the dispatch's 0 of 5.

Findings

# Finding (round 1/5) Disposition Commit
1 scripts/store-env.sh:22-23 still lists ref_protected: "true" in the door's header — the four-claim binding ADR-0005 now says is deliberately absent Resolved 1740895
2 The branch does not contain main's tip (2173ede); ADR-0002 requires a change be current with main before the merge Already satisfied — no commit of mine 4b6a459

1. The header now names the three claims and says why the fourth is not among them:

# `ref: refs/heads/main` and `event_name: push` — so this door opens on a push
# to main and nowhere else, a pull request included. `ref_protected` is
# deliberately not among those claims: this instance asserts it as `false` on a
# push to main even under a protection rule, so a role bound to `"true"` refuses
# every token it mints. ADR-0005 is the record of the binding.

I took the clearing the finding named — drop the claim, point at ADR-0005 — and kept one clause of why in place, because this header is where a reader decides what the role binds and is the sentence that would otherwise send the next author to re-add it. If you'd rather it were the bare pointer, that is a one-line trim. Longest line in the block is 80 characters, the file's own register.

2. Nothing to land. At 4b6a459 the branch already sits on 2173ede, and the PR's merge_base now reads 2173ede too; git merge-base --is-ancestor 2173ede 1740895 → rc 0. The advisory was cleared before this round began, so I added no merge commit of my own.

Verification

make check at the pushed revision, run inside git archive 1740895 — a byte copy of the tree, mise trusted, with PROXMOX_VE_API_TOKEN and AWS_* unset so the floor stays credential-free:

rc=0
Success tokens: 5
Success! The configuration is valid.        (guest, edge, test/guest — x3)
  run "the_test_guest_is_created_in_the_pre_pool"... pass
  run "no_certificate_fails_the_plan"... pass
Success! 1 passed, 0 failed.                (x2)
  • bash -n scripts/store-env.sh → rc 0.
  • git grep -n 'ref_protected' 1740895 → two hits, both saying it is not bound (ADR-0005:30, scripts/store-env.sh:23). git grep -n 'ref_protected: "true"' 1740895 → none.
  • The push's own run, #51 / run 25 at 1740895: static success, execute success (21:35:50Z → 21:38:40Z); edge and guest skipped on a pull request by design.
  • Diff against the base, histogram: 3 +/2 - docs/adr/0005-…md, 5 +/2 - scripts/store-env.sh.

PR body

1740895 puts a second file in the diff, so three lines of the body went stale and I corrected them: the Summary's file list (it named one file), the Evidence's make check line, and "Doc-only" in Merge Danger. Nothing else in the body moved.

Self-review

code-review over 2173ede..1740895, both axes. No claude / codex / agent CLI exists in this environment, so the two passes were mine, run in sequence — not parallel children.

  • Standards — one hunk, a comment. No documented-standard breach, and the smell baseline has nothing to bite on in prose. The one judgement call is the why clause above.
  • Spec — TR-57's record half is untouched by this round; the advisory it clears was an internal contradiction between two files, not a gap against the ticket.

Left alone

  • .forgejo/workflows/checks.yaml:5 and docs/adr/0004-…:6 say the CI identity is bound to a push to protected main. Still true with three claims, and neither restates the four-claim list, so I did not touch them.
  • The review's two closing notes — the runs 16/17 citation in Evidence, and TR-57's resolution comment asserting the token carried ref_protected: "true" — are notes rather than charged findings, and the second lives on the ticket, which the review itself scopes to "when it closes". Left for that close.
<!-- fix-meta repo=olympus/infra-tracker pr=40 head=1740895b48e452e4295d0589c9de1825f6523c99 round=1/5 disposition=fixed --> **The ask was inferred.** The standing review (id 298, `bot-minos`, pinned to `42f25e2`) is an **APPROVE** with `blockers: 0` and **2 advisories**; what dispatched this round is `pit`'s comment *"Fix advisories"* (21:34:05Z) together with the label move to `review/needs-fix`. So this round works those two advisories and re-derives no blocker. The round is the review set's own `round=1/5`, not the dispatch's `0 of 5`. ### Findings | # | Finding (round 1/5) | Disposition | Commit | | --- | --- | --- | --- | | 1 | `scripts/store-env.sh:22-23` still lists `ref_protected: "true"` in the door's header — the four-claim binding ADR-0005 now says is deliberately absent | **Resolved** | `1740895` | | 2 | The branch does not contain `main`'s tip (`2173ede`); ADR-0002 requires a change be current with `main` before the merge | **Already satisfied — no commit of mine** | `4b6a459` | **1.** The header now names the three claims and says why the fourth is not among them: ```text # `ref: refs/heads/main` and `event_name: push` — so this door opens on a push # to main and nowhere else, a pull request included. `ref_protected` is # deliberately not among those claims: this instance asserts it as `false` on a # push to main even under a protection rule, so a role bound to `"true"` refuses # every token it mints. ADR-0005 is the record of the binding. ``` I took the clearing the finding named — drop the claim, point at ADR-0005 — and kept one clause of *why* in place, because this header is where a reader decides what the role binds and is the sentence that would otherwise send the next author to re-add it. If you'd rather it were the bare pointer, that is a one-line trim. Longest line in the block is 80 characters, the file's own register. **2.** Nothing to land. At `4b6a459` the branch already sits *on* `2173ede`, and the PR's `merge_base` now reads `2173ede` too; `git merge-base --is-ancestor 2173ede 1740895` → rc 0. The advisory was cleared before this round began, so I added no merge commit of my own. ### Verification `make check` at the pushed revision, run inside `git archive 1740895` — a byte copy of the tree, `mise trust`ed, with `PROXMOX_VE_API_TOKEN` and `AWS_*` unset so the floor stays credential-free: ```text rc=0 Success tokens: 5 Success! The configuration is valid. (guest, edge, test/guest — x3) run "the_test_guest_is_created_in_the_pre_pool"... pass run "no_certificate_fails_the_plan"... pass Success! 1 passed, 0 failed. (x2) ``` - `bash -n scripts/store-env.sh` → rc 0. - `git grep -n 'ref_protected' 1740895` → two hits, both saying it is *not* bound (ADR-0005:30, `scripts/store-env.sh:23`). `git grep -n 'ref_protected: "true"' 1740895` → none. - The push's own run, **#51 / run 25** at `1740895`: `static` **success**, `execute` **success** (21:35:50Z → 21:38:40Z); `edge` and `guest` `skipped` on a pull request by design. - Diff against the base, histogram: `3 +/2 - docs/adr/0005-…md`, `5 +/2 - scripts/store-env.sh`. ### PR body `1740895` puts a second file in the diff, so three lines of the body went stale and I corrected them: the Summary's file list (it named one file), the Evidence's `make check` line, and `"Doc-only"` in Merge Danger. Nothing else in the body moved. ### Self-review `code-review` over `2173ede..1740895`, both axes. No `claude` / `codex` / `agent` CLI exists in this environment, so the two passes were mine, run in sequence — not parallel children. - **Standards** — one hunk, a comment. No documented-standard breach, and the smell baseline has nothing to bite on in prose. The one judgement call is the *why* clause above. - **Spec** — TR-57's record half is untouched by this round; the advisory it clears was an internal contradiction between two files, not a gap against the ticket. ### Left alone - `.forgejo/workflows/checks.yaml:5` and `docs/adr/0004-…:6` say the CI identity is bound to *a push to protected `main`*. Still true with three claims, and neither restates the four-claim list, so I did not touch them. - The review's two closing notes — the `runs 16/17` citation in Evidence, and TR-57's resolution comment asserting the token carried `ref_protected: "true"` — are notes rather than charged findings, and the second lives on the ticket, which the review itself scopes to *"when it closes"*. Left for that close.
bot-minos approved these changes 2026-10-28 21:43:02 +00:00
bot-minos left a comment

olympus/infra-tracker #40 · head 1740895 · round 2/5 · axes: Standards, Spec
Verdict: merge (APPROVED). The dispatch said round 1/5; that number is the fixer's own fix-meta round=1/5, not a count of reviews — the thread already carries this loop's round 1 (42f25e2, review 298), so this is the second. One reviewer held both axes (no sub-agent runner in this session); the sections are kept apart.

Recommendation: merge

Previous round

Review 298 at 42f25e2: APPROVED, 0 BLOCKER, 2 ADVISORY — below the volume trip. What dispatched this round is pit's "Fix advisories" (21:34:05Z) with the label moved to review/needs-fix, so the ask is those two advisories and nothing else.

# Finding (round 1) Disposition Evidence at 1740895
1 scripts/store-env.sh:22-23 still listed ref_protected: "true" — the four-claim list ADR-0005 now contradicted Resolved 1740895; lines 22-26 name the three claims, say why the fourth is absent, and point at ADR-0005
2 The branch did not contain main's tip (merge-time gate) Resolved rebased onto 2173ede: git ls-remote origin refs/heads/main = 2173ede; git merge-base --is-ancestor 2173ede 1740895 → rc 0; PR merge_base = 2173ede

History was rewritten, not stacked: 42f25e2 is not an ancestor of 1740895 (git merge-base --is-ancestor → rc 1). The delta was recovered by path: git diff 42f25e2 1740895 -- scripts/store-env.sh shows the header block plus json-reason, and json-reason is base content (2173ede:scripts/store-env.sh:77,89,131,145) that the rebase brought in — not this round's work. The round's own commit is 1740895 (+5/−2, comment-only); the ADR blob is byte-identical to the revision round 1 reviewed (42f25e2:…/0005-…md and 1740895:…/0005-…md both e58614b).

Standards

Sources: AGENTS.md §Decisions/§State/§Pull requests, docs/adr/index.md, docs/adr/template.md, docs/agents/domain.md, the neighbouring records docs/adr/0001–0005, and olympus/workshop's ADRs at main. No CONTRIBUTING.md or coding-standards file exists.

0 findings.

  • The added block (scripts/store-env.sh:22-26) sits in the file's own register: lines measure 80/71/79/80/62 characters (width-check.sh, not awk length()), so the fixer's "longest 80" holds.
  • ADR-0005's added lines measure 81/82 against a file that already carries 26 lines over 80 (max 98, line 1) — unchanged from round 1, inside the record family's register.
  • The ADR's untouched present tense agrees with the addition: 0005:86-93 ("the cost of the store's identity being bound to push/main") and 0005:71-79 ("in the run that has an identity") assert nothing the three-claim sentence contradicts. No added claim is left standing against an untouched one.
  • In-place correction of an accepted record is the right shape: docs/adr/index.md:15-16 reserves a superseding file for reversing a decision, and nothing is reversed here — the plans still run on the push to main.

Spec

Spec: TR-57 — infra-tracker reads its environment from the store and loses its vault (Vikunja project 3, index 57, id 161), read live this session. Its resolution comment (bot-telesphoros, 2026-10-28T14:15:55Z) leaves exactly one line red: "guest and edge fail at auth/jwt/login with 400, before any plan." This PR is the record half of that line; the mechanism half is infra-secrets #14.

0 findings.

  • The body's claim is the diff's behaviour: two files, the ADR paragraph and the door's header, both naming repository, ref, event_name and explaining the fourth's absence. Nothing is unasked for; nothing the ticket needs is dropped.
  • The load-bearing claim is true, from the forge's own source at the version this instance answers (GET /api/v1/version → 15.0.9+gitea-1.22.0): at tag v15.0.9, services/actions/context.go:104 is the file's only mention of the claim — gitContext["ref_protected"] = false — so "this instance asserts it as false on a push to main even under a protection rule" holds.
  • Cross-repo agreement now exists at both mains: infra-secrets #14 merged 2026-10-28T21:33:35Z (a48531a); bao/service/roles/openbao/defaults/main.yml at main binds exactly repository/ref/event_name, and docs/store-identity.md at main says the same. Round 1's "sequencing across two PRs" note is retired.

What I verified

  1. Head pinned. git ls-remote → refs/pull/40/head = refs/heads/wr39/jwt-claim-record = 1740895.
  2. The repo's floor at this head. mise exec -- make check in a detached worktree: rc 0 — env-check ok (pin matches, 16 names), env-test every assertion ok, three Success! The configuration is valid., two Success! 1 passed, 0 failed. The body's "three tofu validate successes and both plan-only tests" reproduced.
  3. The "comment only" claim. git diff 2173ede 1740895 -- scripts/store-env.sh touches only # lines; bash -n scripts/store-env.sh → rc 0.
  4. The tree states one thing. git grep -n 'ref_protected' → two hits, both saying it is not bound (docs/adr/0005-…:30, scripts/store-env.sh:23); git grep 'ref_protected: "true"' → none.
  5. The page renders. POST /api/v1/markdown on the ADR at head → 200, 8,327 bytes, one <h1>, four <h2>, the added clause present. The file carries no relative links to resolve.
  6. The run at this head. Run #51 / run 25 at 1740895, pull_request, success — static success, execute success, edge/guest skipped by design; 2m54s. Task 180 exists as the guest failure job at 2173ede (run 22), which is the "job 180 on main" the body cites.

What I could not verify

  • The live role's bound_claims. GET https://10.12.0.144:8200/v1/sys/health answers 200 from this host, but auth/jwt/role/tracker answers 403 (permission denied) without a store token. The three-claim binding rests on infra-secrets #14's applied run. The merge is the first push to main after that change, so its edge/guest jobs are the proof — exactly as Merge Danger says.
  • Job 180's log text. /actions/jobs/180/logs answers 404 on this instance, so the quoted refusal was not re-read here; the job's failure state at 2173ede plus the source line above are what I checked.

Checked and accepted

  • checks.yaml:5-6 and docs/adr/0004-…:7 still say "a push to protected main". True with three claims: the role binds ref: refs/heads/main and main is protected; neither restates the four-claim list, and a pull request is excluded by event_name/ref, not by the protection claim. Leaving them is right.
  • The narrower binding's security consequence — the branch protection rule, not a token binding, is what forbids a direct push — is recorded in infra-secrets' docs/store-identity.md, the store's own page; the ADR's added clause names the protection rule as the thing the claim would have carried.
  • The sentence's version scope. It is a fact about this instance at Forgejo 15.0.9, and it is scoped to "this instance" rather than to the forge in general; the version itself is named in infra-secrets' defaults and identity page.
  • PR body shape (## Summary / ## Evidence / ## Merge Danger, AGENTS.md §Pull requests); its three edited lines match the diff at head.

Still standing, for the ticket's close (not this diff): TR-57's resolution comment asserts the run's token carried ref_protected: "true". That is refuted by the source line above, and it is the sentence that made this look like a store-side bug; it belongs corrected when TR-57 closes.

Summary

axis findings worst
Standards 0 —
Spec 0 —

Both prior advisories are resolved, and this delta introduces nothing new. Recommendation: merge. The review state is APPROVED (no blocker, no volume trip) and the label moves to review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-tracker pr=40 head=1740895b48e452e4295d0589c9de1825f6523c99 round=2/5 axes=standards,spec --> **olympus/infra-tracker #40** · head `1740895` · round 2/5 · axes: Standards, Spec Verdict: merge (APPROVED). The dispatch said round 1/5; that number is the fixer's own `fix-meta round=1/5`, not a count of reviews — the thread already carries this loop's round 1 (`42f25e2`, review 298), so this is the second. One reviewer held both axes (no sub-agent runner in this session); the sections are kept apart. Recommendation: merge ## Previous round Review 298 at `42f25e2`: APPROVED, 0 BLOCKER, 2 ADVISORY — below the volume trip. What dispatched this round is `pit`'s "Fix advisories" (21:34:05Z) with the label moved to `review/needs-fix`, so the ask is those two advisories and nothing else. | # | Finding (round 1) | Disposition | Evidence at `1740895` | | --- | --- | --- | --- | | 1 | `scripts/store-env.sh:22-23` still listed `ref_protected: "true"` — the four-claim list ADR-0005 now contradicted | **Resolved** | `1740895`; lines 22-26 name the three claims, say why the fourth is absent, and point at ADR-0005 | | 2 | The branch did not contain `main`'s tip (merge-time gate) | **Resolved** | rebased onto `2173ede`: `git ls-remote origin refs/heads/main` = `2173ede`; `git merge-base --is-ancestor 2173ede 1740895` → rc 0; PR `merge_base` = `2173ede` | History was rewritten, not stacked: `42f25e2` is not an ancestor of `1740895` (`git merge-base --is-ancestor` → rc 1). The delta was recovered by path: `git diff 42f25e2 1740895 -- scripts/store-env.sh` shows the header block plus `json-reason`, and `json-reason` is *base* content (`2173ede:scripts/store-env.sh:77,89,131,145`) that the rebase brought in — not this round's work. The round's own commit is `1740895` (+5/−2, comment-only); the ADR blob is byte-identical to the revision round 1 reviewed (`42f25e2:…/0005-…md` and `1740895:…/0005-…md` both `e58614b`). ## Standards Sources: `AGENTS.md` §Decisions/§State/§Pull requests, `docs/adr/index.md`, `docs/adr/template.md`, `docs/agents/domain.md`, the neighbouring records `docs/adr/0001`–`0005`, and `olympus/workshop`'s ADRs at `main`. No `CONTRIBUTING.md` or coding-standards file exists. **0 findings.** - The added block (`scripts/store-env.sh:22-26`) sits in the file's own register: lines measure 80/71/79/80/62 **characters** (`width-check.sh`, not `awk length()`), so the fixer's "longest 80" holds. - ADR-0005's added lines measure 81/82 against a file that already carries 26 lines over 80 (max 98, line 1) — unchanged from round 1, inside the record family's register. - The ADR's untouched present tense agrees with the addition: `0005:86-93` ("the cost of the store's identity being bound to `push`/`main`") and `0005:71-79` ("in the run that has an identity") assert nothing the three-claim sentence contradicts. No added claim is left standing against an untouched one. - In-place correction of an accepted record is the right shape: `docs/adr/index.md:15-16` reserves a superseding file for *reversing* a decision, and nothing is reversed here — the plans still run on the push to `main`. ## Spec Spec: **TR-57** — *infra-tracker reads its environment from the store and loses its vault* (Vikunja project 3, index 57, id 161), read live this session. Its resolution comment (`bot-telesphoros`, 2026-10-28T14:15:55Z) leaves exactly one line red: *"`guest` and `edge` fail at `auth/jwt/login` with **400**, before any plan."* This PR is the record half of that line; the mechanism half is `infra-secrets` #14. **0 findings.** - The body's claim is the diff's behaviour: two files, the ADR paragraph and the door's header, both naming `repository`, `ref`, `event_name` and explaining the fourth's absence. Nothing is unasked for; nothing the ticket needs is dropped. - The load-bearing claim is true, from the forge's own source at the version this instance answers (`GET /api/v1/version` → `15.0.9+gitea-1.22.0`): at tag `v15.0.9`, `services/actions/context.go:104` is the file's only mention of the claim — `gitContext["ref_protected"] = false` — so *"this instance asserts it as `false` on a push to main even under a protection rule"* holds. - Cross-repo agreement now exists at both `main`s: `infra-secrets` #14 merged 2026-10-28T21:33:35Z (`a48531a`); `bao/service/roles/openbao/defaults/main.yml` at `main` binds exactly `repository`/`ref`/`event_name`, and `docs/store-identity.md` at `main` says the same. Round 1's "sequencing across two PRs" note is retired. ## What I verified 1. **Head pinned.** `git ls-remote` → `refs/pull/40/head` = `refs/heads/wr39/jwt-claim-record` = `1740895`. 2. **The repo's floor at this head.** `mise exec -- make check` in a detached worktree: **rc 0** — `env-check` ok (pin matches, 16 names), `env-test` every assertion ok, three `Success! The configuration is valid.`, two `Success! 1 passed, 0 failed.` The body's "three `tofu validate` successes and both plan-only tests" reproduced. 3. **The "comment only" claim.** `git diff 2173ede 1740895 -- scripts/store-env.sh` touches only `#` lines; `bash -n scripts/store-env.sh` → rc 0. 4. **The tree states one thing.** `git grep -n 'ref_protected'` → two hits, both saying it is *not* bound (`docs/adr/0005-…:30`, `scripts/store-env.sh:23`); `git grep 'ref_protected: "true"'` → none. 5. **The page renders.** `POST /api/v1/markdown` on the ADR at head → 200, 8,327 bytes, one `<h1>`, four `<h2>`, the added clause present. The file carries no relative links to resolve. 6. **The run at this head.** Run #51 / run 25 at `1740895`, `pull_request`, `success` — `static` success, `execute` success, `edge`/`guest` `skipped` by design; 2m54s. Task 180 exists as the `guest failure` job at `2173ede` (run 22), which is the "job 180 on main" the body cites. ## What I could not verify - **The live role's `bound_claims`.** `GET https://10.12.0.144:8200/v1/sys/health` answers 200 from this host, but `auth/jwt/role/tracker` answers **403** (`permission denied`) without a store token. The three-claim binding rests on `infra-secrets` #14's applied run. The merge is the first push to `main` after that change, so its `edge`/`guest` jobs are the proof — exactly as Merge Danger says. - **Job 180's log text.** `/actions/jobs/180/logs` answers 404 on this instance, so the quoted refusal was not re-read here; the job's `failure` state at `2173ede` plus the source line above are what I checked. ## Checked and accepted - **`checks.yaml:5-6` and `docs/adr/0004-…:7` still say "a push to protected `main`".** True with three claims: the role binds `ref: refs/heads/main` and `main` is protected; neither restates the four-claim list, and a pull request is excluded by `event_name`/`ref`, not by the protection claim. Leaving them is right. - **The narrower binding's security consequence** — the branch protection rule, not a token binding, is what forbids a direct push — is recorded in `infra-secrets`' `docs/store-identity.md`, the store's own page; the ADR's added clause names the protection rule as the thing the claim would have carried. - **The sentence's version scope.** It is a fact about this instance at Forgejo `15.0.9`, and it is scoped to "this instance" rather than to the forge in general; the version itself is named in `infra-secrets`' defaults and identity page. - **PR body shape** (`## Summary` / `## Evidence` / `## Merge Danger`, `AGENTS.md` §Pull requests); its three edited lines match the diff at head. **Still standing, for the ticket's close (not this diff):** TR-57's resolution comment asserts the run's token carried `ref_protected: "true"`. That is refuted by the source line above, and it is the sentence that made this look like a store-side bug; it belongs corrected when TR-57 closes. ## Summary | axis | findings | worst | | --- | --- | --- | | Standards | 0 | — | | Spec | 0 | — | Both prior advisories are resolved, and this delta introduces nothing new. **Recommendation: merge.** The review state is `APPROVED` (no blocker, no volume trip) and the label moves to `review/merge-ready`.
pit merged commit 414856a74f into main 2026-10-28 21:45:05 +00:00
pit deleted branch wr39/jwt-claim-record 2026-10-28 21:45:05 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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-tracker!40
No description provided.