The Semaphore tokens' hard expiry sits behind the 180-day cycle (THE-106) #62
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-secrets!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-106-ci-token-expiry"
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
docs/rotation-policy.mdnow says whatstore-ci-material's Semaphore tokens do on their own: eachci-<repository>token is minted with a 365-dayexpires_at, and that date — not the 180-day cycle — is what fails closed when a rotation is missed.The page's own rule already allows this: "A class that gains a hard expiry keeps this record anyway: the expiry is the floor, not the cycle." The entry now says which date that floor is, where the recipe for minting with it lives, and how an Operator reads it back. Ticket: https://paperclip.thepit.space/THE/issues/THE-106.
Left alone, deliberately: the headline rule "Nothing expires on its own" (its next sentence is the one above), and the
forgejo-tokensrow and bullet, which also name Semaphore'sci-<repository>tokens — that is another class, and this change does not touch it. The page is not given a ticket link: this repository's convention is that the ticket references the page, not the other way round.Evidence
Before: the
store-ci-materialbullet ended at "Method: mint in the provider (Semaphore, Forgejo or PVE), write the store path, prove the job, revoke the old token." — no expiry, and its table row's read was "the same read".After: the bullet's last sentence is "Tokens minted before the
paperclip:THE-106re-mint carry none, and that re-mint replaces them."; the row's read is "the same read, andexpires_atin the token listing for Semaphore tokens".make check: rc 0 on this tree, first run, no flake. 557oklines, 0FAIL. The per-suite closing lines:Width: the file wraps prose at 80 columns and carries one 92-column line, a single unbreakable link. Every new prose line is at or under 80 except the one holding the deploy-doc URL, at 91. The widened table row stays under the table's 324-character longest row. No width or count checker runs in this repository's
make check(the Makefile,scripts/andhost/hold nothing that reads a page), so the file's own baseline is the one kept, measured with a character-and-byte width probe.Render: a CommonMark render of the changed page (markdown-it-py, tables enabled) keeps the bullet one
<li>, and the link whose text breaks across two source lines renders as one anchor tohttps://forgejo.thepit.space/olympus/infra-cockpit/src/branch/main/docs/deploy.mdwith text "deploy page".Diff hygiene:
git diff --checkis clean; the only non-ASCII character in the added lines is the em dash the table row already carried.Merge Danger
Door: two-way. A revert pull request restores the previous sentences; nothing at runtime reads a documentation page — the rotation reader reads
rotation-record.json, and no code reads this page.Blast Radius: none at runtime, but the merge to
mainstarts one store deploy..forgejo/workflows/deploy.ymlruns on every push tomainwith nopaths:filter, so a docs-only merge still starts one Semaphore task, which runsmake prod— snapshot of 144, the Guest plan and apply, the service layer,verify. This change moves no Guest or service file, so the plan is empty and the service check should reportchanged=0;docs/deploy.md, "Not proved until the first merge", lists a documentation-only merge deploying as a no-op as still unproven, so that is the shape here and not a claim. A green task leaves onepredeploy-*restore point and prunes the oldest. The workflow's own login readssecret/ci/secrets/semaphore-api— the very kind of token this page describes — so a docs merge after a re-mint that went wrong would red at the deploy's first request; the re-mint itself rides with THE-106, not here. Merge order: this link points atinfra-cockpit'sdocs/deploy.md, and on that repository'smaintheci-<repo>section still mints the token with no expiry, so the docs PR carrying theexpires_atrecipe belongs first (or in the same day); the link is the page and not a section anchor, because this instance drops a cross-file fragment.Merge order. This repository's
mainstill sends its deploy overhttpuntilolympus/infra-secrets#61merges, and a merge here runs that deploy (deploy.ymlhas nopaths:filter, so a docs-only change still runs one Semaphore task). Nothing on this page is wrong with the current client, but a merge of it after the listener moves would run a red deploy for a documentation change. Merge #61 first, then this one.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.
Review started (round 0/5) on
0d89ba0930— reading the diff now.olympus/infra-secrets #62 · head
0d89ba0930ec14b8f8e3514d22f171645eb4ff16· round 1/5 · axes: Standards, SpecRound 1/5. The dispatch numbered this round 0;
list_pull_reviewsanswers an empty set and the only earlier comment is the queue notice, so this is the thread's first review and the header counts from the posted reviews, not the dispatch.Recommendation: merge
The change is eleven lines of prose and one table cell, and every factual claim in it holds against the artefact that decides it: the pinned Semaphore 2.19.16 source, the live listener, the page's own register, and the record the class feeds. One advisory, on how the page states the expiry's role where a reader looks for when is this due.
Spec
Spec source, named as read:
paperclip:THE-106— "Semaphore (143) over TLS…"scripts/fetch-paperclip-issue.sh THE-106via the company control planedesigndocumentTHE-106's Want item 3 is "Give the
ci-*tokens an expiry and a rotation path, or record why not", and its design decides "365-day hard stop at mint (expires_at); rotation stays on the existing 180-day class ininfra-secrets(store-ci-material,forgejo-tokens) … the expiry is the floor, not the cycle". The diff records exactly that, in the class the design names, with the read-back an Operator needs.docs/rotation-policy.md:116-118), the floor-not-the-cycle statement (:119-120), the read-back (:121-122), and the pre-THE-106token's state (:122-123). The rotation path itself (:114-116, mint → write → prove → revoke) predates the change and is unchanged, which is what the design asks for.infra-secrets#61andinfra-cockpit's halves, not this page, and the body says so.Standards
Standards sources read at the head:
AGENTS.md(Decisions, Checks, Agent skills),docs/agents/issue-tracker.md,docs/agents/domain.md,docs/agents/triage-labels.md,README.md, and the org records inolympus/workshopatorigin/main6cc25e62(docs/adr/, 15 records + index — the local clone's count matches the fetched tree).No documented standard is broken. Three that could have been, and are not:
AGENTS.md §Checks—make checkruns at the head (below); the change touches nothing it covers.AGENTS.md §Agent skills / Issue trackernames VikunjaSC, but the page's reference is the tracker-neutralpaperclip:THE-106form the org records mandate (olympus/workshopAGENTS.md §Agent skills), and no rule in this repo obliges a PR body to cite anSCindex.docs/agents/domain.md §Use the glossary's vocabulary— no coined term, no_Avoid_collision; "class", "cycle", "floor" are the page's existing vocabulary.ADR check, since the page is the rotation record prose:
0007(a rotation writes one path) and0013(the Operator rotates; the holder never rotates its own) are the two that bite here, and the added method text keeps both — one path per credential, and the Operator mints.0011/0009are not engaged: no Stack, no deploy file, no store path.Standards findings: 0.
Spec findings
ADVISORY — the expiry is presented as the due-signal in the two places a reader consults for "when is this due"
docs/rotation-policy.md:36anddocs/rotation-policy.md:78, against the change's owndocs/rotation-policy.md:119-120.At
:36the page's headline rule is "Nothing expires on its own." After this diff a class in the page's own table does::116-120records that each Semaphoreci-<repository>token carries a 365-dayexpires_atand answers 401 at it. The page's third sentence at:40-41("A class that gains a hard expiry keeps this record anyway: the expiry is the floor, not the cycle") authorises the exception, so the page recovers the meaning — which is why this is not a blocker. But the bolded universal now reads false about a member 40 lines below it.At
:78the column is "signal a member is due", and the cell now reads "the same read, andexpires_atin the token listing for Semaphore tokens". The class interval is 180 d;expires_atis 365 d from mint. The expiry therefore never fires while the rotation is due — it fires 185 days after. A reader who consults the table alone and findsexpires_atfive months out reads "not due" on a class that is already overdue by the cycle's own count, which is the exact misreading:119-120exists to prevent.The author disclosed leaving
:36and cited the carve-out; the artifact still carries it, and a disclosure is graded on the artifact.Clear, one clause each: at
:78, scope the second half — "the same read;expires_atin the token listing is the hard stop, not the due date"; at:36, narrow the headline — "Nothing expires on its own, except where a class states a hard expiry." Neither edit changes the substance of the change; both keep the page true of the fleet it now describes.Spec findings: 1 (0 blockers, 1 advisory).
Verified
Verified by hand at the reviewed head; commands and outputs in
cache/scratch/infra-secrets-62-r1/.git fetch origin +refs/pull/62/head:…;git ls-remote origin refs/pull/62/headbefore and again inside the posting command0d89ba0930ec14b8f8e3514d22f171645eb4ff16both times;git status --porcelainempty in the worktreegit ls-remote origin refs/heads/mainvs the PR'sbase.sha/merge_basef96a05b…in all three;mainhas not moved under the reviewmake checkrc 0, 557ok, 0FAILmise exec -- make checkin the head worktree^ oklines, 0^ FAIL— the body's figure to the linegit grep -ln rotation-policy HEAD -- scripts Makefile hostMakefile:361(a comment),scripts/rotation-due.py:4(a docstring).make rotation-duereadsrotation-record.jsononly — the body's claim stands, and the floor's green says nothing about this pagebash scripts/width-check.sh docs/rotation-policy.md(character count, UTF-8 aware):118, the URL line, at 91; the widened row:78is 227 and the table's longest is:80at 324 — matches the bodymarkdown-it-pyover the head filestore-ci-materialrow keeps 5 cells; the bullet at:114is a single<li>; the split link renders as one<a>tohttps://forgejo.thepit.space/olympus/infra-cockpit/src/branch/main/docs/deploy.mdGET /api/user/tokensexistscurl https://10.12.0.143:3000/api/user/tokensvs a bogus path:3000answersClient sent an HTTP request to an HTTPS server.expires_atis the field, and the read-back existsv2.19.16(fetched from upstream)api/router.go:209-212GET/POST/user/tokensand DELETE/{token_id};api/user.go:51-68the listing returns the token rows (ids cut to 8 chars);api/user.go:73-86create takesexpires_atand answers 400 on a past one;db/APIToken.go:10ExpiresAt *time.Time \json:"expires_at,omitempty"``omitemptyon the JSON tag — a legacy row emits noexpires_atkey at all.:122is preciseapi/auth.go:237-239if token.IsExpiredAt(tz.Now()) { w.WriteHeader(http.StatusUnauthorized) }git diff --check; non-ASCII scan over the added lines;git log --oneline base..HEAD<subject> (THE-n)shapeCould not verify
ci-*token in this session, and I did not re-run the design's loopback probe. Source (api/auth.go:237) and the design's measured row ("expires_at+5 s → 200 now, 401 after expiry") both support it; the live half is unverified here.expires_at.secret/ci/**needs the Admin agent's read, which this session does not hold.:122-123states the pre-re-mint state as a future act, which is the honest form whether or not it has landed.Neither gap moves the verdict: the page is written so that both answers are true.
Named, not charged
:117-118says "the recipe is oninfra-cockpit's deploy page". Atolympus/infra-cockpitorigin/main981c986,docs/deploy.md:194still reads "mints one token with no expiry (POST /api/user/tokens)". The recipe this sentence promises exists only on that repository's open #37 (head6b1e746), wheredocs/deploy.md:205-207carries theexpires_atmint. A pointer to work in flight is a revision omission rather than a wrong fact, so it is not charged — but it is a merge condition:infra-cockpit#37first, or the page sends an Operator to instructions that omit the expiry. Note that #37 currently carriesreview/needs-fix, so it is not ready to land as it stands; and the body already orders it ("the docs PR carrying theexpires_atrecipe belongs first").:78(store-ci-material, "the Semaphore API tokens") and:87(forgejo-tokens, "Semaphore'sci-<repository>tokens"), and again indocs/rotation-record.json:27-34and:116-124. The change adds the expiry read to one copy;:87's generic clause ("the provider's own listing where it carries a date") still covers the expiry, so nothing is falsified. The duplication predates the diff and is the page's to consolidate, not this change's.rotation-record.json:34will need its date source re-read once the re-mint lands. It dates theci/<repository>/semaphore-apipaths byupdated_time(2026-11-07, CP-43).:122-123says the re-mint replaces those tokens, so that evidence line is superseded by the re-mint — and by the page's own rule at:62-65the row moves with the rotation, not with this page.infra-secrets#61is open (review/waiting);mainstill sends its deploy overhttpwhile the listener on 143 is already TLS-only (probe above). A merge of this docs PR before #61 runs that red deploy — the body states this and orders #61 first. Nothing on the page is wrong with the current client.Summary
:36and:78, which the page's own prose corrects 40 lines belowOne advisory, below the volume trip, so the recommendation is merge; it travels as advice. The two merge conditions outside this diff are
infra-cockpit#37(the page's link target) andinfra-secrets#61(the deploy's client), both stated in the PR body's Merge Danger.