docs: the CI binding is three claims, and the record says so (TR-57) #40
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-tracker!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wr39/jwt-claim-record"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The store's CI role no longer binds
ref_protected(infra-secrets #14, already appliedto the live store), because this instance asserts it as
falseon a push to main eventhough
maincarries a protection rule. This makes the tracker's own record say thesame thing, so the ADR and the role agree.
docs/adr/0005-the-environment-comes-from-the-store.md— the binding isrepository,ref,event_name, and the paragraph says whyref_protectedis notamong them.
scripts/store-env.sh— its header carried the same four-claim list; it now namesthe three, says why the fourth is absent, and points at ADR-0005. Comment only: the
door's behaviour is unchanged.
Evidence
main:claim "ref_protected" does not match any associated bound claim values.bound_claims map[event_name:push ref:refs/heads/main repository:olympus/infra-tracker].make check→ exit 0 at1740895— threetofu validatesuccesses and bothplan-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
mainafter the role changed, so theedgeandguestjobs on that merge are the proof that the CI door opens: both shouldplan against PROD's state with their plan keys and no apply key.
olympus/infra-tracker #40 · head
42f25e2· round 1/5 · axes: Standards, SpecThe 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, workshopdocs/adr/0001–0007read from the forge atmain. NoCONTRIBUTING.mdor 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-31now 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 letit 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). workshopdocs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md§Decision: "the change hasto be current with
mainimmediately before the merge, and a change behindmaincannotmerge." 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: "guestandedgefailat
auth/jwt/loginwith 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
refs/pull/40/head=refs/heads/wr39/jwt-claim-record=42f25e2(
git ls-remote); diff is one file, +3/−2, all insidedocs/adr/0005-the-environment-comes-from-the-store.md:28-34.GET /api/v1/version→15.0.9+gitea-1.22.0. At tagv15.0.9,services/actions/context.go:104is the onlywriter of the claim —
gitContext["ref_protected"] = false, commented "boolean, true ifbranch protections are configured for the ref that triggered the workflow run" — and
nothing sets it true anywhere in the tree;
services/actions/auth.go:128copies it into theID 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 asfalseon a push to main even under a protection rule" holds, and holds for every run ofevery ref.
2173ede), job 2 — the log'sfirst line is
received task 180 of job guest, i.e. the "job 180" of the body — at15:21:24Z:
claim "ref_protected" does not match any associated bound claim values. Itlines up: the role bound
"true", the token carries"false".POST /api/v1/markdownon the head blob → 200, 8,327 bytes, one<h1>and four<h2>, the added clause present, no relative links to resolve. Widths incharacters (
${#line}): the two added lines are 81 and 82, against a file that alreadycarries 26 lines over 80 (max 98) — inside its own register, no rewrap artifact.
staticgreen —env-check"the pin and themap agree",
env-test"every assertion holds",tofu fmt -check, threetofu validatesuccesses and the two plan-only tests
1 passed, 0 failed— andexecute(make test-ci,the Suite against a real Test Guest)
successful in 2m47sat 21:18:47Z;edgeandguestare
skippedon 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. Thoseruns 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"alongsideref: refs/heads/main. That is refuted by (2) — theclaim is hardcoded
false— and it is the sentence that made this look like a store-side bugfor half a day. Worth a line in the ticket when it closes.
What I could not verify
bound_claims. I hold no store credential:GET https://10.12.0.144:8200/v1/sys/healthanswers 200 from this host, butauth/jwt/role/trackerneeds 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 theMerge Danger makes the merge itself the proof. If the role update did not land, the merge's
own
edge/guestjobs will fail exactly as run 22 did.make checkre-run by hand — not repeated here; the head'sstaticjob (5) is the repo'sown execution of the same target.
Checked and accepted
infra-secretsatmain:bao/service/roles/openbao/defaults/main.yml:101still carriesref_protected: "true", anddocs/store-identity.md:127still says the role is bound "toref_protectedtrue". PR #14(
d02517d, open) drops both. The body declares it — "infra-secrets #14, already applied tothe 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.
docs/adr/index.md:15-16reserves a superseding filefor reversing a decision. None is reversed here — the plans still run on the push to
mainand 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.
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_protectedwould have carried, and the decision's home is the store's record.## Summary/## Evidence/## Merge DangerperAGENTS.md§Pull requests. One of the last eight bodies in this repo carries the
prskill's**Door:**/**Blast Radius:**labels, so their absence here is repo-wide drift, not thischange's doing.
Summary
scripts/store-env.sh:22-23: the four-claim list the ADR now contradictsTwo 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 themerge button, and the approval above is pinned to
42f25e2.42f25e25164b6a459f73Fix advisories
New commits pushed, approval review dismissed automatically according to repository settings
The ask was inferred. The standing review (id 298,
bot-minos, pinned to42f25e2) is an APPROVE withblockers: 0and 2 advisories; what dispatched this round ispit's comment "Fix advisories" (21:34:05Z) together with the label move toreview/needs-fix. So this round works those two advisories and re-derives no blocker. The round is the review set's ownround=1/5, not the dispatch's0 of 5.Findings
scripts/store-env.sh:22-23still listsref_protected: "true"in the door's header — the four-claim binding ADR-0005 now says is deliberately absent1740895main's tip (2173ede); ADR-0002 requires a change be current withmainbefore the merge4b6a4591. The header now names the three claims and says why the fourth is not among them:
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
4b6a459the branch already sits on2173ede, and the PR'smerge_basenow reads2173edetoo;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 checkat the pushed revision, run insidegit archive 1740895— a byte copy of the tree,mise trusted, withPROXMOX_VE_API_TOKENandAWS_*unset so the floor stays credential-free: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.1740895:staticsuccess,executesuccess (21:35:50Z → 21:38:40Z);edgeandguestskippedon a pull request by design.3 +/2 - docs/adr/0005-…md,5 +/2 - scripts/store-env.sh.PR body
1740895puts 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'smake checkline, and"Doc-only"in Merge Danger. Nothing else in the body moved.Self-review
code-reviewover2173ede..1740895, both axes. Noclaude/codex/agentCLI exists in this environment, so the two passes were mine, run in sequence — not parallel children.Left alone
.forgejo/workflows/checks.yaml:5anddocs/adr/0004-…:6say the CI identity is bound to a push to protectedmain. Still true with three claims, and neither restates the four-claim list, so I did not touch them.runs 16/17citation in Evidence, and TR-57's resolution comment asserting the token carriedref_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.olympus/infra-tracker #40 · head
1740895· round 2/5 · axes: Standards, SpecVerdict: 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 ispit's "Fix advisories" (21:34:05Z) with the label moved toreview/needs-fix, so the ask is those two advisories and nothing else.1740895scripts/store-env.sh:22-23still listedref_protected: "true"— the four-claim list ADR-0005 now contradicted1740895; lines 22-26 name the three claims, say why the fourth is absent, and point at ADR-0005main's tip (merge-time gate)2173ede:git ls-remote origin refs/heads/main=2173ede;git merge-base --is-ancestor 2173ede 1740895→ rc 0; PRmerge_base=2173edeHistory was rewritten, not stacked:
42f25e2is not an ancestor of1740895(git merge-base --is-ancestor→ rc 1). The delta was recovered by path:git diff 42f25e2 1740895 -- scripts/store-env.shshows the header block plusjson-reason, andjson-reasonis 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 is1740895(+5/−2, comment-only); the ADR blob is byte-identical to the revision round 1 reviewed (42f25e2:…/0005-…mdand1740895:…/0005-…mdbothe58614b).Standards
Sources:
AGENTS.md§Decisions/§State/§Pull requests,docs/adr/index.md,docs/adr/template.md,docs/agents/domain.md, the neighbouring recordsdocs/adr/0001–0005, andolympus/workshop's ADRs atmain. NoCONTRIBUTING.mdor coding-standards file exists.0 findings.
scripts/store-env.sh:22-26) sits in the file's own register: lines measure 80/71/79/80/62 characters (width-check.sh, notawk length()), so the fixer's "longest 80" holds.0005:86-93("the cost of the store's identity being bound topush/main") and0005: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.docs/adr/index.md:15-16reserves a superseding file for reversing a decision, and nothing is reversed here — the plans still run on the push tomain.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: "guestandedgefail atauth/jwt/loginwith 400, before any plan." This PR is the record half of that line; the mechanism half isinfra-secrets#14.0 findings.
repository,ref,event_nameand explaining the fourth's absence. Nothing is unasked for; nothing the ticket needs is dropped.GET /api/v1/version→15.0.9+gitea-1.22.0): at tagv15.0.9,services/actions/context.go:104is the file's only mention of the claim —gitContext["ref_protected"] = false— so "this instance asserts it asfalseon a push to main even under a protection rule" holds.mains:infra-secrets#14 merged 2026-10-28T21:33:35Z (a48531a);bao/service/roles/openbao/defaults/main.ymlatmainbinds exactlyrepository/ref/event_name, anddocs/store-identity.mdatmainsays the same. Round 1's "sequencing across two PRs" note is retired.What I verified
git ls-remote→refs/pull/40/head=refs/heads/wr39/jwt-claim-record=1740895.mise exec -- make checkin a detached worktree: rc 0 —env-checkok (pin matches, 16 names),env-testevery assertion ok, threeSuccess! The configuration is valid., twoSuccess! 1 passed, 0 failed.The body's "threetofu validatesuccesses and both plan-only tests" reproduced.git diff 2173ede 1740895 -- scripts/store-env.shtouches only#lines;bash -n scripts/store-env.sh→ rc 0.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.POST /api/v1/markdownon the ADR at head → 200, 8,327 bytes, one<h1>, four<h2>, the added clause present. The file carries no relative links to resolve.1740895,pull_request,success—staticsuccess,executesuccess,edge/guestskippedby design; 2m54s. Task 180 exists as theguest failurejob at2173ede(run 22), which is the "job 180 on main" the body cites.What I could not verify
bound_claims.GET https://10.12.0.144:8200/v1/sys/healthanswers 200 from this host, butauth/jwt/role/trackeranswers 403 (permission denied) without a store token. The three-claim binding rests oninfra-secrets#14's applied run. The merge is the first push tomainafter that change, so itsedge/guestjobs are the proof — exactly as Merge Danger says./actions/jobs/180/logsanswers 404 on this instance, so the quoted refusal was not re-read here; the job'sfailurestate at2173edeplus the source line above are what I checked.Checked and accepted
checks.yaml:5-6anddocs/adr/0004-…:7still say "a push to protectedmain". True with three claims: the role bindsref: refs/heads/mainandmainis protected; neither restates the four-claim list, and a pull request is excluded byevent_name/ref, not by the protection claim. Leaving them is right.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.15.0.9, and it is scoped to "this instance" rather than to the forge in general; the version itself is named ininfra-secrets' defaults and identity page.## 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
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 toreview/merge-ready.