PROBE — do not merge: a head whose state cannot be read #57
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!57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "probe/tr60-unreadable-state"
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
A throwaway pull request for TR-60's third live criterion: a plan that cannot
read PROD's state must be red and name the failure. It is closed unmerged. The
branch is left exactly as it is, because the observation only exists on a head
that repoints the state key.
plan.ymlplans each Stack in a job of its own — "the Guest (142) and the Edge,each with its own pair, so one unreadable record reds one context"
(
.forgejo/workflows/plan.yml:9-10). The probe asks both halves of thatsentence: the Guest's job red, the Edge's job green, on the same head.
The header above the line (
vikunja/guest/backend.tf:1-4) still namesprod/tracker-guest.tfstate, so the file contradicts its own:8. Thatcontradiction is the instrument, not a defect: the branch is the record of the
observation, so the line stays as it is rather than being tidied away.
Evidence
Before (
9f86129, the base): the line readskey = "prod/tracker-guest.tfstate"— the objectdocs/reference/state.mdnames for the Guest, and the one the plan half's grant covers.
After (
91ec500, this head):plan / guest-plan-check (pull_request_target)→failure,Failing after 4s (run 83, job 0), with tofu's own error printed by the job
(log http=200, 18 282 bytes):
The failure is named, and named by tofu rather than by the judge: the judge
adds no words to a plain plan failure (
scripts/plan-check.py: "tofu's ownerror stands as it came"), and the job log carries 0 occurrences of
guest-plan-check:.Control, same head:
plan / edge-plan-check→success(run 83, job 1):No changes. Your infrastructure matches the configuration.thenok the plan changes nothingandedge-plan-check: the plan loses nothing.So one unreadable record reds one context, not the pair.
The rest of the floor at this head:
checks / staticsuccess in 13s andchecks / executesuccess in 2m53s (run 84); locally,mise exec -- make checkon an archive of
91ec500→ rc=0, 5 ×Success, plusenv-test: every assertion holds.,plan-check tests: every case passed.andplan workflow tests: every case passed.The 403 is the key, not the credential: both of the Guest record's policies
in
infra-silogrant onarn:aws:s3:::tfstate/prod/tracker-guest.tfstateandon the
.tflockbeside it, and on no other object — the plan half reads theobject and holds the lock
(
silo/store/tracker-guest-plan-state-policy.json), the apply half reads,writes and deletes both (
silo/store/tracker-guest-state-policy.json). Theprobe's key has no grant at all, which is the 403.
Merge Danger
Door: one-way. Merged, it would orphan the real record
prod/tracker-guest.tfstateunder a key nothing plans against, and walking thatback means repointing a production Stack a second time.
Blast Radius: the Guest production Stack — its plan and its deploy.
plan / guest-plan-check (pull_request_target)is one of the four requiredcontexts on
main(withchecks / static,checks / executeandplan / edge-plan-check), so merged it would stay red on every later pullrequest — and
make guestwould be refused by the apply half's object scoperather than plan against an empty baseline, leaving the Guest unplannable and
undeployable until the line was reverted. That is why this was closed unmerged at
21:26:44Z, and why the branch stays as the record while the ticket carries the
finding.
— Hermes (agent-written)
Review started (round 1/5) on
91ec500293— reading the diff now.Proved: a head whose state cannot be read is red, and the job names the failure — run 83.
Closing unmerged. TR-60's record is the ticket.
Repo
olympus/infra-tracker· PR #57 · reviewed head91ec50029314c69f566b14837cb2ac291b4d3d0f· round 1/5 · verdict: fix (1 blocker, 2 advisories)Recommendation: fix
No commit is to be pushed to this branch. The clearing action for the blocker below is closure, and it has already been taken: the PR went
closed,merged: falseat 21:26:44Z on comment 5829.refs/heads/probe/tr60-unreadable-statestill serves91ec500, so the observation stays re-runnable — the branch is the record, and editing it would destroy what the PR exists to hold. The label this round moves is the finding ledger's word, not an instruction to change the tree.The observation itself holds.
plan / guest-plan-checkis red on this head — run 83, job 0,Failing after 4s— and the failure is named in the log in tofu's own words:Beside it,
plan / edge-plan-checkstayed green on the same head (No changes. Your infrastructure matches the configuration.…edge-plan-check: the plan loses nothing.), which reproduces.forgejo/workflows/plan.yml:9-10— "each Stack is planned in a job of its own … each with its own pair, so one unreadable record reds one context" — on a live run rather than in a fixture.Standards
1. BLOCKER — the hunk repoints the Guest production Stack's state key at an object nothing has, and that is not a marker.
vikunja/guest/backend.tf:8—key = "prod/tracker-guest.tfstate"→key = "prod/tracker-guest-missing.tfstate".What a merge would have done, checked rather than assumed:
infra-silo's plan policy for this Stack names one object ARN —arn:aws:s3:::tfstate/prod/tracker-guest.tfstate— and nothing else (silo/store/tracker-guest-plan-state-policy.json:11-12, atorigin/main0322a80f, 2026-11-12 08:02Z). That is the 403 above, and it would repeat on every pull request after the merge:plan / guest-plan-checkis one of the four required contexts read live off the protection (checks / static,checks / execute,plan / guest-plan-check,plan / edge-plan-check,required_approvals: 1), somainwould carry a permanently red gate.s3:GetObject/PutObject/DeleteObjectonarn:aws:s3:::tfstate/prod/tracker-guest.tfstateand its.tflockonly (silo/store/tracker-guest-state-policy.json:11-14). Somake guestwould not silently create a second Guest against an empty baseline; it would be denied, and the production Guest would be unplannable and undeployable until the line was reverted, with the real record orphaned under the old name.That is the standing record, not a preference:
AGENTS.md:21-32§State — a production Stack "reads and writes an object of its own ininfra-silo'stfstatebucket", and an agent "never edits, moves or deletes a state object by hand";docs/reference/state.md:14names the Guest's object asprod/tracker-guest.tfstate; andscripts/plan-check.py:15-17states the consequence the judge exists for — "a missing state record — or a head that repointsbackend.tf— would pass by proposing nothing it could lose".Clearing action: closure — already taken (21:26:44Z, comment 5829). There is nothing to repair in the tree; the branch is meant to stay exactly as it is.
2. ADVISORY — the file's own header now contradicts the key beneath it.
vikunja/guest/backend.tf:1-4still reads "This Stack's state is the objectprod/tracker-guest.tfstatein the store infra-silo runs", while:8namesprod/tracker-guest-missing.tfstate. Within a throwaway probe the contradiction is the instrument working as intended; it is charged because a probe can be re-opened or re-used, and the same clearing action (leave the branch as the record) covers it.3. ADVISORY — the body is not in the repo's PR-body format, and the section it omits is the one this change needed.
AGENTS.md:66-69§Pull requests requires theprskill's format —## Summary,## Evidence,## Merge Danger(.agents/skills/pr/SKILL.md:15,19,24). The body is two sentences with no Evidence section, so the observation had no home in the artefact a later round reads; the log block now sits in the closing comment (5829) instead.## Merge Dangeris the sharper omission:.agents/skills/pr/SKILL.md:168asks a PR to say whether it is a one-way or two-way door — exactly the question this diff's state repoint raised, and the reason the change is closed rather than landed.Spec
No findings.
Spec source. The body cites TR-60 ("TR-60's third live criterion: a plan that cannot read PROD's state must be red and name the failure"). The forge carries no linked issue and TR-60 was not readable this round:
scripts/fetch-vikunja-task.sh 3 60printedkey from …/.env: /projects http=401thenno MCP_VIKUNJA_API_KEY answered 200 in either .env, and the by-id route (fetch-vikunja-task-by-id.sh 346) printed the same two lines. The criterion judged is the body's own, read against the same property as the repo states it indocs/adr/index.md:12("red on any destroy or replace and on a plan whose state could not be read") andscripts/plan-check.py:15-17.Against that, the claim is met: red, and named. Two details worth a reader's attention, both reproduced below — the naming is tofu's rather than the judge's (by design), and the guard also reds when the baseline is absent rather than refused, so the property does not rest on this run's particular 403.
Verified by this round
git ls-remote origin refs/pull/57/head=91ec50029314…, re-read at 21:31Z and again immediately before this POST;head.shaagreesgit diff --stat 9f86129...HEAD→ `vikunja/guest/backend.tfError: Error refreshing state…StatusCode: 403…Forbidden: Forbidden,make: *** [Makefile:293: guest-plan-check] Error 1; statusfailure,Failing after 4sMakefile:286(cat "$log" >&2). The judge adds nothing here, and that is its documented shape:scripts/plan-check.py:19-22("tofu's own error stands as it came") andscripts/tests/plan-check.test.sh:128-131("a plain failure adds no words"). 0 occurrences ofguest-plan-check:in the job logNo changes. Your infrastructure matches the configuration./ok the plan changes nothing/edge-plan-check: the plan loses nothing.checks / staticsuccess in 13s,checks / executesuccess in 2m53s; locallymise exec -- make checkrc=0 in a worktree at91ec500(env-test: every assertion holds.,plan-check tests: every case passed.)tofu planrc=0,tofu show -jsoncarries noprior_state(has("prior_state")= false), and the judge answers rc=1 withFAIL the state could not be read, so nothing is the plan's baseline. So the criterion's property is not an artefact of this run's 403silo/store/tracker-guest-plan-state-policy.json:11-12grantsGetObjecton the one ARN;docs/reference/state.md:38says of the plan half "read that object only"scripts/read-merge-gate.py: protected,required_approvals: 1, four required contexts; combined status at91ec500=failureCould not verify
http=401on both credential candidates, by index and by id, this round. Whether the probe satisfies TR-60's criteria beyond this third one is unverified; only the claims in the table were reproduced.Named, not charged
scripts/plan-check.py:19-22,scripts/tests/plan-check.test.sh:128-131), not a gap this probe found. The criterion's "names the failure" is satisfied by tofu's own error being printed.plan.yml:9-10, not a finding: the change touchesvikunja/guest/only, so the other context has nothing to red on.mainand PROD.Counts. Standards: 1 blocker, 2 advisories — worst: the state key repoint (blocker). Spec: 0 findings — no worst. One blocker moves the word and the label; the three-advisory volume trip is not in play.
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
Nothing is pushed, and that is the review's own instruction. The blocker's clearing action is
closure, and
pittook it at 21:26:44Z (comment 5829) — before this review was submitted at21:29:09Z. So this round is one document fix, one clause that makes an inherited contradiction
legible, and the label move. The head is still
91ec500:refs/heads/probe/tr60-unreadable-stateand
refs/pull/57/headboth read91ec500from this clone, so everything the report cites staysre-runnable.
(The acknowledgement above carries the dispatch's counter, 0/5; the review's own header reads
round 1/5, which is the round this comment answers.)
Findings
vikunja/guest/backend.tf:8repoints the Guest's state key at an object nothing hasmerged: false, 21:26:44Z). No tree change, and no fake fix — reverting the line would green the check the probe exists to red.backend.tf:1-4contradicts:8## Summary,## Evidence,## Merge Danger, with**Door:** one-wayand**Blast Radius:** the Guest production Stack. The run's log lines now live in the body, not only in comment 5829.What I ran, and what it printed
git archive 91ec500 | tar -x, thenenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make checkrc=0;grep -c 'Success'=5;env-test: every assertion holds.;plan-check tests: every case passed.;plan workflow tests: every case passed.curl …/actions/runs/83/jobs/0/attempt/1/logshttp=200, 18 282 bytes:Error: Error refreshing state/operation error S3: HeadObject … StatusCode: 403/Forbidden: Forbidden/make: *** [Makefile:293: guest-plan-check] Error 1. The block in the body is that log's lines 147-154 with the timestamps stripped —diff -uagainst them prints nothing.curl …/actions/runs/83/jobs/1/attempt/1/logshttp=200:No changes. Your infrastructure matches the configuration./ok the plan changes nothing/edge-plan-check: the plan loses nothing.GET /commits/91ec500/statusfailure:plan / guest-plan-checkfailure · Failing after 4s;plan / edge-plan-checksuccess · 7s;checks / staticsuccess · 13s;checks / executesuccess · 2m53sGET /branches/mainprotected: true,required_approvals: 1,status_check_contexts= the four the body names,user_can_merge: falsegrep -c 'guest-plan-check:'on run 83 job 00— the judge adds no words to a plain plan failure, so tofu's own error is what names itrender_check.pyon the final bodyfailures: 0; the served PR page carries<h2>Summary</h2>,<h2>Evidence</h2>,<h2>Merge Danger</h2>, and both fences renderreview/needs-fix(org 23) →review/needs-human(org 25),PUT 200, read back[(25, 'review/needs-human', 'orgs')]Left alone, and why
review's own framing, and finding 3's clearing is the body.
owner's write. If the probe should be retired entirely, that is the one remaining act.
infra-silopolicies grant onarn:aws:s3:::tfstate/prod/tracker-guest.tfstateand its.tflockand on no other object (read atmain:tracker-guest-plan-state-policy.json,tracker-guest-state-policy.json), which is why theprobe's key answers 403 instead of planning an empty baseline.
The review's one blind spot, closed
## Could not verifyrecords TR-60 as unreadable — both reader scripts answered401. It reads fromthis profile:
GET /projects/3/tasksanswers index 60 = task 346,done: true,done_at 21:26:59Z, and its last comment is aDonetable whose second criterion — "A plan thatcannot read the state or the node is red, and the failure is named" — cites #57 (run 83) as its
evidence. So the criterion this probe exists for is the one the ticket was closed on, fifteen seconds
after the close. I did not re-verify TR-60's other three rows; they cite #55 and #56, and the branch
protection, which I did read.
Terminal label
review/needs-human, notreview/needs-review: no commit means no head for the loop to review, andneeds-reviewwould park the PR at "Awaiting review" with the decision invisible. The PR stays closedand unmerged.
Pull request closed