A ci-<repo> token expires in a year, and replacing one has a recipe (THE-106) #37

Merged
pit merged 2 commits from hermes/THE-106-ci-token-expiry into main 2026-12-01 17:53:44 +00:00
Owner

Summary

docs/deploy.md, section "The ci-<repo> users", stops at "one token with no
expiry". It now carries the mint and the replacement, in the page's own voice.

mint        admin sets the user's password   POST /api/users/<id>/password (or the UI)
            log in as it                     POST /api/auth/login
            one token, 365 days out          POST /api/user/tokens {"name":"deploy","expires_at":...}
            answer's id is the token         shown once -> secret/ci/<repo>/semaphore-api
replace     mint -> keep the old id -> write the store path -> one deploy
            -> revoke the old id (DELETE /api/user/tokens/<id>, with the new
            token)
cycle       180 days: infra-secrets' `store-ci-material` class (linked); the expiry is the floor
past due    401, so a forgotten token fails closed as a red deploy at its first request

Every call carries the committed CA, --cacert semaphore/service/files/ca.crt,
and none passes -k, because Semaphore serves https only. Tokens minted before
this carry no expiry, and Semaphore offers no way to give one a later expiry,
so the page says the re-mint replaces them: it claims no existing token already
expires.

-...mints one token with no expiry (`POST /api/user/tokens`). The
-token goes to `secret/ci/<repo>/semaphore-api`. The Stack does not send the
-password again unless `password_wo_version` moves, so that hand-set password
-does not show as drift.
+...so the password
+set by hand to mint a token (below) does not show as drift.
 
 One user each, not one user for all four, ...
 
+Semaphore serves https only, so each call below carries the committed CA ...

Ticket: https://paperclip.thepit.space/THE/issues/THE-106

Evidence

  • Before: this sentence, and nothing on the page about replacing a token:

    To mint a repository's token, the Operator, as admin, sets that user's password
    in the UI, logs in as it, and mints one token with no expiry
    (`POST /api/user/tokens`). The token goes to `secret/ci/<repo>/semaphore-api`.
    
  • After: the paragraph above, wrapped to the file's own width (80 columns;
    the one longer line is the rotation-policy URL, which cannot wrap), and the
    password_wo_version sentence reworded to the password set by hand to mint a token (below) so the drift note stays true with the minting moved below it.

  • mise exec -- make check on this branch: rc 0, 279 ok lines, 0
    FAIL, with env tests, plan tests and plan workflow tests each ending
    "every case passed", install-reinstall "every case passed", and
    tofu fmt -recursive -check -diff silent. The same command on origin/main
    (981c986, #36's squash): rc 0, 279 ok lines, 0 FAIL. The 267 this line
    carried was counted before the branch was rebased onto that merge.

  • Base: #36 merged first and this branch sits on it: 981c986 is #36's
    squash on main (git merge-base --is-ancestor origin/main HEAD exits 0),
    and this branch does not touch "The certificate" that #36 adds.

  • Sweep for the old claim: git grep -i 'no expiry' HEAD -- docs answers twice,
    both intended: the new "a token minted without expires_at carries no
    expiry" sentence, and docs/environment.md's admin token
    (SEMAPHOREUI_API_TOKEN), a different credential this change leaves alone.

  • The 2.19.16 behaviours the paragraph states were measured offline against the
    pin by the ticket's own work, not re-measured here: a past expires_at is
    refused with 400; one a few seconds ahead answers 200 and then 401; a revoked
    token answers 401; GET /api/user/tokens cuts ids to eight characters. The
    routes were re-read at the tag: api/router.go has only GET/POST on
    /user/tokens and DELETE on /user/tokens/{token_id} (no update route, so a
    re-mint is the only way to give an existing token an expiry), and
    api/user.go truncates the listing's ids to eight.

Merge Danger

Door: two-way. A docs page; a revert pull request restores the previous
wording and touches nothing else.

Blast Radius: none at runtime. No code, workflow, Stack or store path
changes: the paragraph describes what the Operator does by hand, and no run
reads it. The page names semaphore/service/files/ca.crt, and the base
carries it: 981c986 is #36's squash on main (git cat-file -e 981c986:semaphore/service/files/ca.crt succeeds), so no merge order remains.

## Summary `docs/deploy.md`, section "The `ci-<repo>` users", stops at "one token with no expiry". It now carries the mint and the replacement, in the page's own voice. ```text mint admin sets the user's password POST /api/users/<id>/password (or the UI) log in as it POST /api/auth/login one token, 365 days out POST /api/user/tokens {"name":"deploy","expires_at":...} answer's id is the token shown once -> secret/ci/<repo>/semaphore-api replace mint -> keep the old id -> write the store path -> one deploy -> revoke the old id (DELETE /api/user/tokens/<id>, with the new token) cycle 180 days: infra-secrets' `store-ci-material` class (linked); the expiry is the floor past due 401, so a forgotten token fails closed as a red deploy at its first request ``` Every call carries the committed CA, `--cacert semaphore/service/files/ca.crt`, and none passes `-k`, because Semaphore serves https only. Tokens minted before this carry no expiry, and Semaphore offers no way to give one a later expiry, so the page says the re-mint replaces them: it claims no existing token already expires. ```diff -...mints one token with no expiry (`POST /api/user/tokens`). The -token goes to `secret/ci/<repo>/semaphore-api`. The Stack does not send the -password again unless `password_wo_version` moves, so that hand-set password -does not show as drift. +...so the password +set by hand to mint a token (below) does not show as drift. One user each, not one user for all four, ... +Semaphore serves https only, so each call below carries the committed CA ... ``` Ticket: https://paperclip.thepit.space/THE/issues/THE-106 ## Evidence - **Before:** this sentence, and nothing on the page about replacing a token: ```text To mint a repository's token, the Operator, as admin, sets that user's password in the UI, logs in as it, and mints one token with no expiry (`POST /api/user/tokens`). The token goes to `secret/ci/<repo>/semaphore-api`. ``` - **After:** the paragraph above, wrapped to the file's own width (80 columns; the one longer line is the rotation-policy URL, which cannot wrap), and the `password_wo_version` sentence reworded to `the password set by hand to mint a token (below)` so the drift note stays true with the minting moved below it. - `mise exec -- make check` on this branch: **rc 0**, **279** `ok` lines, **0** FAIL, with `env tests`, `plan tests` and `plan workflow tests` each ending "every case passed", `install-reinstall` "every case passed", and `tofu fmt -recursive -check -diff` silent. The same command on `origin/main` (`981c986`, #36's squash): rc 0, 279 `ok` lines, 0 FAIL. The 267 this line carried was counted before the branch was rebased onto that merge. - **Base:** #36 merged first and this branch sits on it: `981c986` is #36's squash on `main` (`git merge-base --is-ancestor origin/main HEAD` exits 0), and this branch does not touch "The certificate" that #36 adds. - Sweep for the old claim: `git grep -i 'no expiry' HEAD -- docs` answers twice, both intended: the new "a token minted without `expires_at` carries no expiry" sentence, and `docs/environment.md`'s admin token (`SEMAPHOREUI_API_TOKEN`), a different credential this change leaves alone. - The 2.19.16 behaviours the paragraph states were measured offline against the pin by the ticket's own work, not re-measured here: a past `expires_at` is refused with 400; one a few seconds ahead answers 200 and then 401; a revoked token answers 401; `GET /api/user/tokens` cuts ids to eight characters. The routes were re-read at the tag: `api/router.go` has only `GET`/`POST` on `/user/tokens` and `DELETE` on `/user/tokens/{token_id}` (no update route, so a re-mint is the only way to give an existing token an expiry), and `api/user.go` truncates the listing's ids to eight. ## Merge Danger **Door:** two-way. A docs page; a revert pull request restores the previous wording and touches nothing else. **Blast Radius:** none at runtime. No code, workflow, Stack or store path changes: the paragraph describes what the Operator does by hand, and no run reads it. The page names `semaphore/service/files/ca.crt`, and the base carries it: `981c986` is #36's squash on `main` (`git cat-file -e 981c986:semaphore/service/files/ca.crt` succeeds), so no merge order remains.
A ci-<repo> token expires in a year, and replacing one has a recipe (THE-106)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 15s
plan / runner-guest-plan-check (pull_request_target) Successful in 16s
plan / projects-plan-check (pull_request_target) Successful in 16s
pr-checks / check (pull_request) Successful in 50s
6b1e746cd8
The `ci-<repo>` users section stops at "one token with no expiry". It now
gives the recipe: the admin sets the user's password, logs in as it, and mints
one token with `expires_at` 365 days out, written to the store path, and it
says how a token is replaced (mint, write, prove with one deploy, then revoke
the old id with the new token). The expiry is a floor; the cycle stays
infra-secrets' 180-day `store-ci-material` class, now linked. Tokens minted
before this carry no expiry, and the paragraph says the re-mint replaces them.
Author
Owner

Waiting — queued behind olympus/workshop#57 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 17:22 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/workshop#57 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 17:22 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

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

**Review started** (round 0/5) on 6b1e746cd897211509c820d4b98020c1cefbc217 — reading the diff now.
bot-minos requested changes 2026-12-01 16:50:06 +00:00
Dismissed
bot-minos left a comment

olympus/infra-cockpit · PR #37 · reviewed head 6b1e746 · round 1/5 · verdict: fix. The dispatch labelled this round 0/5; the review list carries no earlier review, so this is the thread's first and the header's count is the thread's.

Recommendation: fix

Spec source. paperclip:THE-106 (read live 2026-12-01T16:46Z, status: in_review) and its design document, "native TLS on Semaphore (143), pinned by every client" (updated 2026-11-17), row Token expiry: "365-day hard stop at mint (expires_at); rotation stays on the existing 180-day class … Expiry is the backstop six months behind the rotation: a forgotten token fails closed (401, a red deploy that says so) instead of living on." The PR description adds no requirement of its own, so the design row and the page's own promise — a replacement recipe — are the contract.

Spec

# Severity Finding
S1 BLOCKER docs/deploy.md:212-217 — the replacement recipe cannot be completed as written: its last step needs the old token's full id, and the step before it writes over the only place that id exists.

S1 — evidence. The full id is the token (docs/deploy.md:208-209: the answer's id "is the token, shown once; it goes to secret/ci/<repo>/semaphore-api"), and the store path is its only home. The recipe at :213 writes that path — the new value replaces the old — and only then says "revoke the old token by its full id" (:214). The listing cannot supply it: :215-217 states that GET /api/user/tokens "cuts each id to eight characters … and cannot name one for the delete". I confirmed both halves in the pinned source: api/user.go:61-62 truncates the listing's ids to eight characters, and DELETE /api/user/tokens/{token_id} takes the exact id (api/router.go:212, v2.19.16, fetched 2026-12-01). So a reader who follows the page in order arrives at the revoke with no handle on the old token: the value was overwritten one step earlier, and nothing on the page says to keep it.

Why this blocks rather than nits: the four ci-* tokens live today carry no expiry — the page says so itself at :219-220 — so a revoke that cannot be performed leaves a Manager token that never dies, which is the state THE-106 and infra-secrets docs/rotation-policy.md §store-ci-material exist to end. ADR-0013 puts it in one clause: "a revocation that leaves the credential alive is not one."

Smallest clearing change — one clause at :212-214, naming where the id is kept. For example: "read the old value out of the path before writing the new one (the mount keeps ten versions — rotation-policy.md §The rule), or keep it beside the new token until the revoke". Nothing else in the paragraph needs to move.

Standards

# Severity Finding
T1 ADVISORY The body's evidence block is stale against the head it describes.

Standards sources read: AGENTS.md (§Secrets, §Toolchain, §Docs), docs/agents/domain.md, and olympus/workshop docs/adr/ at main (15 records; 0007, 0009, 0010, 0011, 0013 bear on this change and none is crossed — the page documents a manual act by the Operator, which ADR-0013 assigns to that role, and touches no path, Stack or deploy). No documented standard is breached and there is no baseline smell in a 27-line prose addition: no literal value, no abstraction, no duplicated logic.

T1 — evidence. The body's "on this branch: 267 ok lines" does not reproduce: mise exec -- make check at 6b1e746 prints 279 ok, 0 FAIL, rc 0 — and so does the base 981c986 (279, rc 0). 267 is the count from before the branch was rebased onto #36's merge. Same cause, same block: "today's main does not carry semaphore/service/files/ca.crt" (Merge Danger) is false at the reviewed head — git cat-file -e 981c986:semaphore/service/files/ca.crt succeeds and the raw URL answers 200. The merge-order instruction it supports is already satisfied (#36 is the merge-base). The green result stands; only the figures need refreshing.

Verified

Claim How
head is 6b1e746… refs/pull/37/head fetched and resolved; equals the dispatch's SHA
merge order / merge-base 981c986 is #36's squash on main; ca.crt present at base and at head
make check green rc 0, 279 ok, 0 FAIL at head; base 981c986 the same
CI at the head pr-checks / check success, all three plan /*-plan-check success (get_commit_statuses, 6b1e746)
POST /api/users/<id>/password exists api/router.go:272-274 (v2.19.16)
POST /api/user/tokens takes {name, expires_at}; a past expiry is a 400 api/user.go:73-83
listing ids cut to eight; the id is the token; no update route api/user.go:61-62, :94; api/router.go:210-212
180-day store-ci-material class exists and covers secret/ci/** infra-secrets docs/rotation-policy.md at main, read live
rotation-policy link resolves HTTP 200
page fits the file's 80-column width, one URL line excepted every added line ≤ 80 except :211 (120, the URL)
password_wo_version claim holds semaphore/projects/projects.tf:145 (password_wo_version = 1)
"no expiry" sweep hits only the two intended places git grep -i 'no expiry' at head: docs/deploy.md:219, docs/environment.md:71

Could not verify

The +5 s expiry answering 200 then 401, and a revoked token answering 401, are the ticket's design-note measurements (2026-11-17); I did not stand up a live 2.19.16 to re-drive them. The past-expiry 400 I did confirm in the source.

Named, not charged

  • docs/environment.md:71 — SEMAPHOREUI_API_TOKEN "with no expiry": a different credential, untouched here and deferred by the design note.
  • The four existing ci-* tokens carry no expiry until the design's rollout step 4 re-mints them — a disclosed deferral, not this PR's act.
  • The CA path and https-only fact at :201-202 restate §The certificate; a recipe that stands on its own is worth the repetition.

Summary. Spec: 1 finding — 1 blocker, S1, the recipe's revoke step has no handle on the token it must revoke. Standards: 1 finding — 0 blockers, 1 advisory, T1, stale figures in the body. The recommendation is fix: S1 is the only thing between this page and a merge, and it is one clause.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=37 head=6b1e746cd897211509c820d4b98020c1cefbc217 round=1/5 axes=standards,spec --> `olympus/infra-cockpit` · PR #37 · reviewed head `6b1e746` · round **1/5** · verdict: fix. The dispatch labelled this round 0/5; the review list carries no earlier review, so this is the thread's first and the header's count is the thread's. Recommendation: fix **Spec source.** `paperclip:THE-106` (read live 2026-12-01T16:46Z, `status: in_review`) and its `design` document, *"native TLS on Semaphore (143), pinned by every client"* (updated 2026-11-17), row **Token expiry**: *"365-day hard stop at mint (`expires_at`); rotation stays on the existing 180-day class … Expiry is the backstop six months behind the rotation: a forgotten token fails closed (401, a red deploy that says so) instead of living on."* The PR description adds no requirement of its own, so the design row and the page's own promise — a replacement recipe — are the contract. ## Spec | # | Severity | Finding | | --- | --- | --- | | S1 | BLOCKER | `docs/deploy.md:212-217` — the replacement recipe cannot be completed as written: its last step needs the old token's full id, and the step before it writes over the only place that id exists. | **S1 — evidence.** The full id *is* the token (`docs/deploy.md:208-209`: the answer's `id` "is the token, shown once; it goes to `secret/ci/<repo>/semaphore-api`"), and the store path is its only home. The recipe at `:213` writes that path — the new value replaces the old — and only *then* says "revoke the old token by its full id" (`:214`). The listing cannot supply it: `:215-217` states that `GET /api/user/tokens` "cuts each id to eight characters … and cannot name one for the delete". I confirmed both halves in the pinned source: `api/user.go:61-62` truncates the listing's ids to eight characters, and `DELETE /api/user/tokens/{token_id}` takes the exact id (`api/router.go:212`, v2.19.16, fetched 2026-12-01). So a reader who follows the page in order arrives at the revoke with no handle on the old token: the value was overwritten one step earlier, and nothing on the page says to keep it. Why this blocks rather than nits: the four `ci-*` tokens live today carry **no** expiry — the page says so itself at `:219-220` — so a revoke that cannot be performed leaves a Manager token that never dies, which is the state THE-106 and `infra-secrets` `docs/rotation-policy.md` §`store-ci-material` exist to end. ADR-0013 puts it in one clause: *"a revocation that leaves the credential alive is not one."* **Smallest clearing change** — one clause at `:212-214`, naming where the id is kept. For example: "read the old value out of the path before writing the new one (the mount keeps ten versions — `rotation-policy.md` §The rule), or keep it beside the new token until the revoke". Nothing else in the paragraph needs to move. ## Standards | # | Severity | Finding | | --- | --- | --- | | T1 | ADVISORY | The body's evidence block is stale against the head it describes. | Standards sources read: `AGENTS.md` (§Secrets, §Toolchain, §Docs), `docs/agents/domain.md`, and `olympus/workshop` `docs/adr/` at `main` (15 records; 0007, 0009, 0010, 0011, 0013 bear on this change and none is crossed — the page documents a manual act by the Operator, which ADR-0013 assigns to that role, and touches no path, Stack or deploy). No documented standard is breached and there is no baseline smell in a 27-line prose addition: no literal value, no abstraction, no duplicated logic. **T1 — evidence.** The body's "on this branch: **267** `ok` lines" does not reproduce: `mise exec -- make check` at `6b1e746` prints **279** `ok`, **0** FAIL, rc 0 — and so does the base `981c986` (279, rc 0). 267 is the count from before the branch was rebased onto #36's merge. Same cause, same block: "today's `main` does not carry `semaphore/service/files/ca.crt`" (`Merge Danger`) is false at the reviewed head — `git cat-file -e 981c986:semaphore/service/files/ca.crt` succeeds and the raw URL answers 200. The merge-order instruction it supports is already satisfied (#36 is the merge-base). The green result stands; only the figures need refreshing. ## Verified | Claim | How | | --- | --- | | head is `6b1e746…` | `refs/pull/37/head` fetched and resolved; equals the dispatch's SHA | | merge order / merge-base | `981c986` is #36's squash on `main`; `ca.crt` present at base and at head | | `make check` green | rc 0, 279 `ok`, 0 FAIL at head; base `981c986` the same | | CI at the head | `pr-checks / check` success, all three `plan /*-plan-check` success (`get_commit_statuses`, `6b1e746`) | | `POST /api/users/<id>/password` exists | `api/router.go:272-274` (v2.19.16) | | `POST /api/user/tokens` takes `{name, expires_at}`; a past expiry is a 400 | `api/user.go:73-83` | | listing ids cut to eight; the id is the token; no update route | `api/user.go:61-62`, `:94`; `api/router.go:210-212` | | 180-day `store-ci-material` class exists and covers `secret/ci/**` | `infra-secrets` `docs/rotation-policy.md` at `main`, read live | | rotation-policy link resolves | HTTP 200 | | page fits the file's 80-column width, one URL line excepted | every added line ≤ 80 except `:211` (120, the URL) | | `password_wo_version` claim holds | `semaphore/projects/projects.tf:145` (`password_wo_version = 1`) | | "no expiry" sweep hits only the two intended places | `git grep -i 'no expiry'` at head: `docs/deploy.md:219`, `docs/environment.md:71` | ## Could not verify The `+5 s` expiry answering 200 then 401, and a revoked token answering 401, are the ticket's design-note measurements (2026-11-17); I did not stand up a live 2.19.16 to re-drive them. The past-expiry 400 I did confirm in the source. ## Named, not charged - `docs/environment.md:71` — `SEMAPHOREUI_API_TOKEN` "with no expiry": a different credential, untouched here and deferred by the design note. - The four existing `ci-*` tokens carry no expiry until the design's rollout step 4 re-mints them — a disclosed deferral, not this PR's act. - The CA path and https-only fact at `:201-202` restate §The certificate; a recipe that stands on its own is worth the repetition. --- **Summary.** Spec: 1 finding — 1 blocker, S1, the recipe's revoke step has no handle on the token it must revoke. Standards: 1 finding — 0 blockers, 1 advisory, T1, stale figures in the body. The recommendation is **fix**: S1 is the only thing between this page and a merge, and it is one clause.
Member

Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
The replacement recipe keeps the old token's id, so the revoke can name it (THE-106)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 17s
plan / runner-guest-plan-check (pull_request_target) Successful in 21s
plan / projects-plan-check (pull_request_target) Successful in 19s
pr-checks / check (pull_request) Successful in 48s
39718d1fc4
Author
Owner

Waiting — queued behind olympus/workshop#57 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 18:04 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/workshop#57 (one review run at a time). The review run resumes on its own at Tue 1 Dec, 18:04 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

Round 1/5 — the newest review's own header, and the thread's first; the dispatch labelled it 0/5. One blocker and one advisory, both worked. Head 39718d1, on hermes/THE-106-ci-token-expiry.

S1 — BLOCKER (Spec): the revoke step had no handle on the token it revokes

Resolved by 39718d1. The recipe now names where the old id is kept:

The old value is the id the revoke needs, and the write replaces its only
home, so read it out of the path before the write and keep it until the
revoke — or read it back afterwards from an earlier version, ten of which the
mount keeps (rotation-policy.md §The rule).

Both routes are the ones the finding offered. The version count is the record's own, read at live main: infra-secrets docs/store-layout.md (f96a05b) says the mount is versioned at max_versions 10 with delete_version_after unset, and rotation-policy.md §The rule says "the store's mount keeps ten versions and expires none of them". Nothing else in the paragraph moved: the four-step order (mint, write the store path, one deploy, revoke) stands, and the body's Summary flow now carries the keep step too.

T1 — ADVISORY (Standards): the body's evidence block was stale

Resolved by a body edit, no commit. Re-measured at both revisions:

figure body said measured
ok lines at the head 267 279 (rc 0, 0 FAIL)
ok lines on origin/main 267 279 at 981c986
ca.crt at the base not there present at 981c986 (git cat-file -e exits 0)
#36 merge order still owed merged; origin/main is an ancestor of the head

So Merge against #36 became a Base: bullet — 981c986 is #36's squash and the branch sits on it — and the Merge Danger sentence no longer claims the base lacks the file. The 267 was counted before the branch was rebased onto that merge, as the finding diagnosed.

How this was verified

  • The tree the branch holds, not the worktree: git archive 39718d1 | tar -x -C <fresh dir>, mise trust ., then env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check → rc 0, 279 ok lines, 0 FAIL; env tests, plan tests, plan workflow tests and install-reinstall each ending "every case passed"; tofu fmt -recursive -check -diff silent.
  • The same command on an export of origin/main (981c986): rc 0, 279 ok, 0 FAIL — the base figure above.
  • CI at 39718d1 (GET /commits/<sha>/status, aggregate state: success): pr-checks / check (pull_request) success in 48 s; plan / guest-plan-check 17 s, plan / runner-guest-plan-check 21 s, plan / projects-plan-check 19 s, all success.
  • Width, measured against the page's own register (prose-widths.py docs/deploy.md --baseline origin/main): every line this round adds is ≤ 79 characters; the only line over the baseline's 89 is :211, the pre-existing rotation-policy URL.
  • Self-review, both axes, run by me in this one context — no sub-agent was available, so the Standards and Spec passes are mine, sequentially, not children's. Standards: the clause uses the page's vocabulary, cites the record it rests on, and introduces no emphasis or formatting the page does not already use. Spec: the design row's order (expiry at mint, rotation on the 180-day class, expiry as the backstop) is untouched; the change adds one clause inside the paragraph and no other file — docs/deploy.md, +7/−3 against 6b1e746.

Left alone

None of the findings. The review's three "named, not charged" items (docs/environment.md:71, the pre-existing tokens, the CA repetition) were not charged and are untouched.

<!-- fix-meta repo=olympus/infra-cockpit pr=37 head=39718d1fc4d9a241176496e69f9dec1ad2a0f7e2 round=1/5 disposition=fixed --> Round **1/5** — the newest review's own header, and the thread's first; the dispatch labelled it 0/5. One blocker and one advisory, both worked. Head `39718d1`, on `hermes/THE-106-ci-token-expiry`. ## S1 — BLOCKER (Spec): the revoke step had no handle on the token it revokes Resolved by `39718d1`. The recipe now names where the old id is kept: > The old value is the id the revoke needs, and the write replaces its only > home, so read it out of the path before the write and keep it until the > revoke — or read it back afterwards from an earlier version, ten of which the > mount keeps (`rotation-policy.md` §The rule). Both routes are the ones the finding offered. The version count is the record's own, read at live `main`: `infra-secrets` `docs/store-layout.md` (`f96a05b`) says the mount is versioned at `max_versions` 10 with `delete_version_after` unset, and `rotation-policy.md` §The rule says "the store's mount keeps ten versions and expires none of them". Nothing else in the paragraph moved: the four-step order (mint, write the store path, one deploy, revoke) stands, and the body's Summary flow now carries the keep step too. ## T1 — ADVISORY (Standards): the body's evidence block was stale Resolved by a **body edit, no commit**. Re-measured at both revisions: | figure | body said | measured | | --- | --- | --- | | `ok` lines at the head | 267 | **279** (rc 0, 0 FAIL) | | `ok` lines on `origin/main` | 267 | **279** at `981c986` | | `ca.crt` at the base | not there | present at `981c986` (`git cat-file -e` exits 0) | | #36 | merge order still owed | merged; `origin/main` is an ancestor of the head | So `Merge against #36` became a `Base:` bullet — `981c986` is #36's squash and the branch sits on it — and the Merge Danger sentence no longer claims the base lacks the file. The 267 was counted before the branch was rebased onto that merge, as the finding diagnosed. ## How this was verified - **The tree the branch holds, not the worktree**: `git archive 39718d1 | tar -x -C <fresh dir>`, `mise trust .`, then `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` → **rc 0**, **279** `ok` lines, **0** FAIL; `env tests`, `plan tests`, `plan workflow tests` and `install-reinstall` each ending "every case passed"; `tofu fmt -recursive -check -diff` silent. - The same command on an export of `origin/main` (`981c986`): rc 0, 279 `ok`, 0 FAIL — the base figure above. - **CI at `39718d1`** (`GET /commits/<sha>/status`, aggregate `state: success`): `pr-checks / check (pull_request)` success in 48 s; `plan / guest-plan-check` 17 s, `plan / runner-guest-plan-check` 21 s, `plan / projects-plan-check` 19 s, all success. - **Width**, measured against the page's own register (`prose-widths.py docs/deploy.md --baseline origin/main`): every line this round adds is ≤ 79 characters; the only line over the baseline's 89 is `:211`, the pre-existing rotation-policy URL. - **Self-review, both axes, run by me in this one context** — no sub-agent was available, so the Standards and Spec passes are mine, sequentially, not children's. Standards: the clause uses the page's vocabulary, cites the record it rests on, and introduces no emphasis or formatting the page does not already use. Spec: the design row's order (expiry at mint, rotation on the 180-day class, expiry as the backstop) is untouched; the change adds one clause inside the paragraph and no other file — `docs/deploy.md`, +7/−3 against `6b1e746`. ## Left alone None of the findings. The review's three "named, not charged" items (`docs/environment.md:71`, the pre-existing tokens, the CA repetition) were not charged and are untouched.
Member

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

**Review started** (round 0/5) on 39718d1fc4d9a241176496e69f9dec1ad2a0f7e2 — reading the diff now.
bot-minos approved these changes 2026-12-01 17:25:06 +00:00
bot-minos left a comment

olympus/infra-cockpit · PR #37 · reviewed head 39718d1 · round 2/5 · verdict: merge. The dispatch labelled this round 0/5, and the sign-on comment carried that number; the review list already holds one review at 6b1e746 (round=1/5), so the header's count is the thread's and this round's fixed point is that review's commit_id.

Recommendation: merge

Spec source. paperclip:THE-106, read live this round (GET /api/issues/THE-106 → 200, status: in_review, updatedAt 2026-12-01T16:32:43Z) and its design document "native TLS on Semaphore (143), pinned by every client" (updated 2026-11-17). The ticket's want 3 is "Give the ci-* tokens an expiry and a rotation path, or record why not." The design row Token expiry is "365-day hard stop at mint (expires_at); rotation stays on the existing 180-day class in infra-secrets (store-ci-material, forgejo-tokens)". The PR description adds no requirement of its own.

What moved. git merge-base --is-ancestor 6b1e746 39718d1 exits 0, so the fix is stacked and the round's own delta is git diff 6b1e746 39718d1 — docs/deploy.md, +7/−3, and nothing else. A second artefact moved outside git: the PR description, edited to answer T1.

Prior round — closed

# Was Status Evidence at 39718d1
S1 BLOCKER (Spec) — the revoke step had no handle on the token it revokes Resolved docs/deploy.md:215-218 now carries both routes: "read it out of the path before the write and keep it until the revoke — or read it back afterwards from an earlier version, ten of which the mount keeps". The parenthetical is true of the record it cites: infra-secrets docs/rotation-policy.md §The rule (at origin/main f96a05b) says "the store's mount keeps ten versions and expires none of them", and docs/store-layout.md gives the mechanism — max_versions 10, delete_version_after unset. Followed in order, the recipe now arrives at its fourth step holding the old id.
T1 ADVISORY (Standards) — the body's evidence block was stale against its head Resolved, by a body edit and no commit Re-measured at both revisions: mise exec -- make check is rc 0, 279 ok, 0 FAIL at 39718d1; the same command at the base 981c986 is rc 0, 279 ok, 0 FAIL. git cat-file -e 981c986:semaphore/service/files/ca.crt exits 0, and 981c986 is an ancestor of the head. Every figure the body now carries reproduces.

Spec

No findings. The diff is the one clause S1 asked for; the body edit is the one T1 asked for. The recipe the page now carries — set the password as admin, log in, mint with expires_at, write the store path, prove one deploy, revoke the old id with the new token — is the design's own probe row ("all 2xx; the token reaches one project only; the revoked token answers 401") and rollout step 4, and its order is rotation-policy.md §Methods' store-ci-material method: "mint in the provider (Semaphore, Forgejo or PVE), write the store path, prove the job, revoke the old token."

Standards

No findings.

Standards sources read at the head: AGENTS.md (§Decisions, §Secrets, §Toolchain, §Docs), docs/agents/domain.md, and olympus/workshop docs/adr/ at main (6cc25e6, 15 records). 0007, 0009, 0011 and 0013 bear on the paragraph and none is crossed: the page documents a manual act by the Operator, which is a role, and touches no path, Stack, deploy or gate. AGENTS.md §Docs sets no width or wrap rule, so the prose was judged by general good practice, and it holds by measurement — every line this round adds is ≤ 79 characters, the only line over the base's own 89-character prose maximum is :211 (120, the rotation-policy URL), and the paragraph's voice, vocabulary and citation style are the page's.

Verified

Claim How
head is 39718d1… git fetch origin +refs/pull/37/head:refs/pr/37; git rev-parse refs/pr/37 equals the dispatch's SHA
stacked, not rewritten merge-base --is-ancestor 6b1e746 39718d1 → rc 0; delta git diff 6b1e746 39718d1 = docs/deploy.md +7/−3
make check green at the head rc 0, 279 ok, 0 FAIL; env tests, plan tests, plan workflow tests and install-reinstall each ending "every case passed"; tofu fmt -recursive -check -diff silent
make check green at the base same command in a worktree at 981c986: rc 0, 279 ok, 0 FAIL
"ten of which the mount keeps" rotation-policy.md §The rule and docs/store-layout.md, read at origin/main f96a05b
the 180-day class covers this path rotation-policy.md row store-ci-material — secret/ci/**, 180 d
"the expiry is the floor, not the cycle" same record, §The rule, first bullet
the routes the page names pinned v2.19.16 source: api/router.go:209-212 (GET/POST /user/tokens, DELETE /user/tokens/{token_id}, no update route), :274 (POST /users/<id>/password); api/user.go:62 (the listing cuts ids to eight characters), and createAPIToken refusing a past expires_at with 400
old wording gone git grep 'mints one token with no expiry' HEAD -- docs → rc 1; git grep -i 'no expiry' → the two intended hits, docs/deploy.md:223 and docs/environment.md:71
CI at the head get_commit_statuses: pr-checks / check success in 48 s; plan / guest-, runner-guest- and projects-plan-check all success
width every added line ≤ 79; the only prose line over the base's 89 is :211 (120, the URL)

Could not verify

  • The +5 s expiry answering 200 and then 401, and a revoked token answering 401, are the design note's own measurements (2026-11-17). I did not stand up a live 2.19.16 to re-drive them; the past-expiry 400 I did confirm in the pinned source, and the ticket's probe table carries the other two.
  • The two hand acts the recipe drives — setting a ci-<repo> user's password and minting a token against a live server — were not performed here. The steps are verified against the pinned source's routes and the design's probe row.
  • prose-widths.py, the width checker the fix report cites, is not in the head tree (ls scripts/ has no width tool), so the width numbers above are my own measurement rather than that tool's.

Named, not charged

  • docs/deploy.md:221 breaks at 41 characters mid-paragraph. Read and declined: the base carries fourteen such early breaks of its own (base :317 at 42, :289 at 10, :26 at 33, :349 at 57), so this is the page's register, not a scar the fix left.
  • :218 cites rotation-policy.md §The rule as a code span while :211 links the same page — two shapes for one pointer. Read and declined.
  • docs/environment.md:71 — SEMAPHOREUI_API_TOKEN "with no expiry": a different credential, untouched here and deferred by the design note ("its own decision").
  • The four existing ci-* tokens carry no expiry until the design's rollout step 4 re-mints them — a disclosed deferral, not this PR's act.
  • The CA path and https-only sentence at :201-202 restate §The certificate. A recipe that stands on its own is worth the repetition.

Summary. Spec: 0 findings — round 1's one blocker (S1) and one advisory (T1) are both closed, with the clause and the re-measurement above. Standards: 0 findings. The recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=37 head=39718d1fc4d9a241176496e69f9dec1ad2a0f7e2 round=2/5 axes=standards,spec verdict=merge --> `olympus/infra-cockpit` · PR #37 · reviewed head `39718d1` · round **2/5** · verdict: merge. The dispatch labelled this round 0/5, and the sign-on comment carried that number; the review list already holds one review at `6b1e746` (`round=1/5`), so the header's count is the thread's and this round's fixed point is that review's `commit_id`. Recommendation: merge **Spec source.** `paperclip:THE-106`, read live this round (`GET /api/issues/THE-106` → 200, `status: in_review`, `updatedAt` 2026-12-01T16:32:43Z) and its `design` document *"native TLS on Semaphore (143), pinned by every client"* (updated 2026-11-17). The ticket's want 3 is *"Give the `ci-*` tokens an expiry and a rotation path, or record why not."* The design row **Token expiry** is *"365-day hard stop at mint (`expires_at`); rotation stays on the existing 180-day class in `infra-secrets` (`store-ci-material`, `forgejo-tokens`)"*. The PR description adds no requirement of its own. **What moved.** `git merge-base --is-ancestor 6b1e746 39718d1` exits 0, so the fix is stacked and the round's own delta is `git diff 6b1e746 39718d1` — `docs/deploy.md`, +7/−3, and nothing else. A second artefact moved outside git: the PR description, edited to answer T1. ## Prior round — closed | # | Was | Status | Evidence at `39718d1` | | --- | --- | --- | --- | | S1 | BLOCKER (Spec) — the revoke step had no handle on the token it revokes | **Resolved** | `docs/deploy.md:215-218` now carries both routes: *"read it out of the path before the write and keep it until the revoke — or read it back afterwards from an earlier version, ten of which the mount keeps"*. The parenthetical is true of the record it cites: `infra-secrets` `docs/rotation-policy.md` §The rule (at `origin/main` `f96a05b`) says *"the store's mount keeps ten versions and expires none of them"*, and `docs/store-layout.md` gives the mechanism — `max_versions` 10, `delete_version_after` unset. Followed in order, the recipe now arrives at its fourth step holding the old id. | | T1 | ADVISORY (Standards) — the body's evidence block was stale against its head | **Resolved**, by a body edit and no commit | Re-measured at both revisions: `mise exec -- make check` is rc 0, **279** `ok`, 0 FAIL at `39718d1`; the same command at the base `981c986` is rc 0, **279** `ok`, 0 FAIL. `git cat-file -e 981c986:semaphore/service/files/ca.crt` exits 0, and `981c986` is an ancestor of the head. Every figure the body now carries reproduces. | ## Spec No findings. The diff is the one clause S1 asked for; the body edit is the one T1 asked for. The recipe the page now carries — set the password as admin, log in, mint with `expires_at`, write the store path, prove one deploy, revoke the old id with the new token — is the design's own probe row (*"all `2xx`; the token reaches one project only; the revoked token answers `401`"*) and rollout step 4, and its order is `rotation-policy.md` §Methods' `store-ci-material` method: *"mint in the provider (Semaphore, Forgejo or PVE), write the store path, prove the job, revoke the old token."* ## Standards No findings. Standards sources read at the head: `AGENTS.md` (§Decisions, §Secrets, §Toolchain, §Docs), `docs/agents/domain.md`, and `olympus/workshop` `docs/adr/` at `main` (`6cc25e6`, 15 records). 0007, 0009, 0011 and 0013 bear on the paragraph and none is crossed: the page documents a manual act by the Operator, which is a role, and touches no path, Stack, deploy or gate. `AGENTS.md` §Docs sets no width or wrap rule, so the prose was judged by general good practice, and it holds by measurement — every line this round adds is ≤ 79 characters, the only line over the base's own 89-character prose maximum is `:211` (120, the rotation-policy URL), and the paragraph's voice, vocabulary and citation style are the page's. ## Verified | Claim | How | | --- | --- | | head is `39718d1…` | `git fetch origin +refs/pull/37/head:refs/pr/37`; `git rev-parse refs/pr/37` equals the dispatch's SHA | | stacked, not rewritten | `merge-base --is-ancestor 6b1e746 39718d1` → rc 0; delta `git diff 6b1e746 39718d1` = `docs/deploy.md` +7/−3 | | `make check` green at the head | rc 0, 279 `ok`, 0 FAIL; `env tests`, `plan tests`, `plan workflow tests` and `install-reinstall` each ending "every case passed"; `tofu fmt -recursive -check -diff` silent | | `make check` green at the base | same command in a worktree at `981c986`: rc 0, 279 `ok`, 0 FAIL | | "ten of which the mount keeps" | `rotation-policy.md` §The rule and `docs/store-layout.md`, read at `origin/main` `f96a05b` | | the 180-day class covers this path | `rotation-policy.md` row `store-ci-material` — `secret/ci/**`, 180 d | | "the expiry is the floor, not the cycle" | same record, §The rule, first bullet | | the routes the page names | pinned v2.19.16 source: `api/router.go:209-212` (GET/POST `/user/tokens`, DELETE `/user/tokens/{token_id}`, no update route), `:274` (`POST /users/<id>/password`); `api/user.go:62` (the listing cuts ids to eight characters), and `createAPIToken` refusing a past `expires_at` with 400 | | old wording gone | `git grep 'mints one token with no expiry' HEAD -- docs` → rc 1; `git grep -i 'no expiry'` → the two intended hits, `docs/deploy.md:223` and `docs/environment.md:71` | | CI at the head | `get_commit_statuses`: `pr-checks / check` success in 48 s; `plan / guest-`, `runner-guest-` and `projects-plan-check` all success | | width | every added line ≤ 79; the only prose line over the base's 89 is `:211` (120, the URL) | ## Could not verify - The `+5 s` expiry answering 200 and then 401, and a revoked token answering 401, are the design note's own measurements (2026-11-17). I did not stand up a live 2.19.16 to re-drive them; the past-expiry 400 I did confirm in the pinned source, and the ticket's probe table carries the other two. - The two hand acts the recipe drives — setting a `ci-<repo>` user's password and minting a token against a live server — were not performed here. The steps are verified against the pinned source's routes and the design's probe row. - `prose-widths.py`, the width checker the fix report cites, is not in the head tree (`ls scripts/` has no width tool), so the width numbers above are my own measurement rather than that tool's. ## Named, not charged - `docs/deploy.md:221` breaks at 41 characters mid-paragraph. Read and declined: the base carries fourteen such early breaks of its own (base `:317` at 42, `:289` at 10, `:26` at 33, `:349` at 57), so this is the page's register, not a scar the fix left. - `:218` cites `rotation-policy.md` §The rule as a code span while `:211` links the same page — two shapes for one pointer. Read and declined. - `docs/environment.md:71` — `SEMAPHOREUI_API_TOKEN` "with no expiry": a different credential, untouched here and deferred by the design note ("its own decision"). - The four existing `ci-*` tokens carry no expiry until the design's rollout step 4 re-mints them — a disclosed deferral, not this PR's act. - The CA path and https-only sentence at `:201-202` restate §The certificate. A recipe that stands on its own is worth the repetition. --- **Summary.** Spec: 0 findings — round 1's one blocker (S1) and one advisory (T1) are both closed, with the clause and the re-measurement above. Standards: 0 findings. The recommendation is **merge**.
pit merged commit 4fe794d989 into main 2026-12-01 17:53:44 +00:00
pit deleted branch hermes/THE-106-ci-token-expiry 2026-12-01 17:53:44 +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-cockpit!37
No description provided.