The tracker's restore points name the Semaphore task that took them (THE-14) #65

Merged
pit merged 1 commit from hermes/THE-14-restore-points-name-the-task into main 2026-12-01 20:51:26 +00:00
Owner

paperclip:THE-14

Summary

THE-14 says "nothing is deployed by hand". Every restore point a merge's deploy takes on 142 reads by hand, by an unnamed user: a Semaphore task has no Forgejo run number, so scripts/snapshot.sh fell through to its hand-run words. The deploy is automated and the Guest's own record does not say so.

Semaphore task <id>                      (its id: SEMAPHORE_TASK_DETAILS_ID)
  scripts/semaphore-deploy.sh          DEPLOY_RUN="the Semaphore deploy task <id>" make prod
    make prod                          $(MAKE) -S snapshot guest service edge verify
      scripts/snapshot.sh              no GITHUB_RUN_NUMBER, DEPLOY_RUN set
                                       -> "Taken before the deploy of <repo> at <sha>, by the Semaphore deploy task <id>."
File What
scripts/snapshot.sh One elif: with no Forgejo run number the description ends by ${DEPLOY_RUN}. A Forgejo run still wins over it, and with neither the words stay by hand, by <user>
scripts/semaphore-deploy.sh The task body hands make prod the label the Semaphore deploy task <id>. The id is SEMAPHORE_TASK_DETAILS_ID, which Semaphore 2.19.16 sets for a shell template
scripts/tests/semaphore-deploy.test.sh, gate.test.sh, run.sh One pin per link: the label with and without an id, the label crossing prod's sub-make, and the description a snapshot is handed
docs/reference/deploy.md Says who a restore point names, and when

It is the change infra-secrets has carried since #59 (77b1268). Nothing else moves: no Stack, no role, no Makefile line.

Evidence

Check Result
Restore points on 142, read from the node today three predeploy-*, each ending by hand, by an unnamed user (commits 24b330c, ba57570, cc42ce8). On 144, which has this change, the three end by the Semaphore deploy task 35, 37 and 38
mise exec -- make check, fresh clone of 3abc34d exit 0, 400 ok, no FAIL
The suites this touches gate-test 58, deploy-test's semaphore-deploy 93, env-test (run.sh): 0 FAILED. Eight assertions are new
Planted defects 7 of 7 red, each on the pin that names it: the branch never fires; the label loses its by; the hand fallback loses its user; the label is not handed to prod; the label drops the task's id; the label's name is misspelt; prod's sub-make wrapped in env -u DEPLOY_RUN
The new cases against main's scripts red: that is the first planted defect, and the fourth

Not run, and the merge is the evidence: that a live task on 142 carries SEMAPHORE_TASK_DETAILS_ID (it does on 144, three times), and the merge's own restore point reading by the Semaphore deploy task <id>.

Merge Danger

Door: two-way. The change is a label and one branch in two scripts, and a revert is an ordinary pull request. The deploy the merge starts is not undone by a revert, but it applies what main already holds.

Blast Radius: the one sentence a restore point carries, and the task body that names it. A mistake in snapshot.sh would turn snapshot, the deploy's first step, red and stop the deploy before anything changes; the new cases pin that path.

What the merge deploys: the next real deploy of 142 since task 29 on 15 Nov. Run 145 on 1 Dec went red at its first request, before any task started (curl: (35) wrong version number: THE-106's https switch merged ahead of Semaphore's TLS listener). The listener answers now, and secrets' tasks 35, 37 and 38 went through the same path, so this merge is also the tracker's first deploy over https.

Order: none with another pull request.

Prose in this body is agent-written (Hermes).

Refs: THE-14

paperclip:THE-14 ## Summary [THE-14](https://paperclip.thepit.space/THE/issues/THE-14) says "nothing is deployed by hand". Every restore point a merge's deploy takes on 142 reads `by hand, by an unnamed user`: a Semaphore task has no Forgejo run number, so `scripts/snapshot.sh` fell through to its hand-run words. The deploy is automated and the Guest's own record does not say so. ```text Semaphore task <id> (its id: SEMAPHORE_TASK_DETAILS_ID) scripts/semaphore-deploy.sh DEPLOY_RUN="the Semaphore deploy task <id>" make prod make prod $(MAKE) -S snapshot guest service edge verify scripts/snapshot.sh no GITHUB_RUN_NUMBER, DEPLOY_RUN set -> "Taken before the deploy of <repo> at <sha>, by the Semaphore deploy task <id>." ``` | File | What | | --- | --- | | `scripts/snapshot.sh` | One `elif`: with no Forgejo run number the description ends `by ${DEPLOY_RUN}`. A Forgejo run still wins over it, and with neither the words stay `by hand, by <user>` | | `scripts/semaphore-deploy.sh` | The task body hands `make prod` the label `the Semaphore deploy task <id>`. The id is `SEMAPHORE_TASK_DETAILS_ID`, which Semaphore 2.19.16 sets for a shell template | | `scripts/tests/semaphore-deploy.test.sh`, `gate.test.sh`, `run.sh` | One pin per link: the label with and without an id, the label crossing `prod`'s sub-make, and the description a snapshot is handed | | `docs/reference/deploy.md` | Says who a restore point names, and when | It is the change infra-secrets has carried since #59 (`77b1268`). Nothing else moves: no Stack, no role, no `Makefile` line. ## Evidence | Check | Result | | --- | --- | | Restore points on 142, read from the node today | three `predeploy-*`, each ending `by hand, by an unnamed user` (commits `24b330c`, `ba57570`, `cc42ce8`). On 144, which has this change, the three end `by the Semaphore deploy task 35`, `37` and `38` | | `mise exec -- make check`, fresh clone of `3abc34d` | exit 0, 400 `ok`, no FAIL | | The suites this touches | `gate-test` 58, `deploy-test`'s `semaphore-deploy` 93, `env-test` (`run.sh`): 0 FAILED. Eight assertions are new | | Planted defects | 7 of 7 red, each on the pin that names it: the branch never fires; the label loses its `by`; the hand fallback loses its user; the label is not handed to `prod`; the label drops the task's id; the label's name is misspelt; `prod`'s sub-make wrapped in `env -u DEPLOY_RUN` | | The new cases against `main`'s scripts | red: that is the first planted defect, and the fourth | **Not run, and the merge is the evidence:** that a live task on 142 carries `SEMAPHORE_TASK_DETAILS_ID` (it does on 144, three times), and the merge's own restore point reading `by the Semaphore deploy task <id>`. ## Merge Danger **Door:** two-way. The change is a label and one branch in two scripts, and a revert is an ordinary pull request. The deploy the merge starts is not undone by a revert, but it applies what `main` already holds. **Blast Radius:** the one sentence a restore point carries, and the task body that names it. A mistake in `snapshot.sh` would turn `snapshot`, the deploy's first step, red and stop the deploy before anything changes; the new cases pin that path. **What the merge deploys:** the next real deploy of 142 since task 29 on 15 Nov. Run 145 on 1 Dec went red at its first request, before any task started (`curl: (35) wrong version number`: THE-106's https switch merged ahead of Semaphore's TLS listener). The listener answers now, and secrets' tasks 35, 37 and 38 went through the same path, so this merge is also the tracker's first deploy over https. **Order:** none with another pull request. Prose in this body is agent-written (Hermes). Refs: THE-14
A restore point taken by a deploy names the Semaphore task, not a hand
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 8s
plan / edge-plan-check (pull_request_target) Successful in 8s
checks / static (pull_request) Successful in 32s
checks / execute (pull_request) Successful in 2m51s
3abc34db46
The tracker's deploy takes its predeploy-* snapshot inside a Semaphore task,
which has no Forgejo run number, so scripts/snapshot.sh fell through to "by
hand, by an unnamed user" over every merge: nothing in the Guest's own record
could tell a deploy from a person.

The task body now hands `make prod` a label, DEPLOY_RUN, "the Semaphore deploy
task <id>" (the id is Semaphore's SEMAPHORE_TASK_DETAILS_ID, which a shell
template carries in 2.19.16), and snapshot.sh writes it when no Forgejo run
number is set. A Forgejo run still wins over the label, and a snapshot taken
by hand still reads "by hand, by <user>".

Each link is pinned where an edit could drop it: the task body's label with
and without an id (semaphore-deploy.test.sh), the label crossing prod's
sub-make (gate.test.sh), and the description a snapshot is handed, against
the stub Node (run.sh).

The same change infra-secrets carries since #59 (77b1268), whose restore
points for tasks 35, 37 and 38 name the task.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

Review started (round 1/5) on 3abc34db46 — reading the diff now.

**Review started** (round 1/5) on 3abc34db4643de9777ceeb889b8f379a3c73a746 — reading the diff now.
bot-minos approved these changes 2026-12-01 20:50:32 +00:00
bot-minos left a comment

minos-review: repo=olympus/infra-tracker pr=65 head=3abc34db4643de9777ceeb889b8f379a3c73a746 round=1/5 verdict=merge
Recommendation: merge

Spec source: THE-14 (Paperclip), fetched live this round (GET /api/issues/THE-14 → 200; report document rev 37, 2026-12-01 ~20:21Z). THE-14's description does not name restore-point attribution. The requirement is in its report (revs 27, 35, 37): the tracker's script passes no label, so its restore points read by hand, by an unnamed user. The PR body states the same.
Standards sources: AGENTS.md §Pull requests (body sections present), AGENTS.md §Toolchain (make check run via mise exec), docs/adr/ (no ADR touched). No other repo conventions found.
Charter: no escalation trigger. No Stack file changed; no ADR; no branch protection. CI gate boundary unchanged: .forgejo/workflows/checks.yaml, job static, Makefile target check, all untouched.

Standards

# Sev Where Finding
S1 NIT docs/reference/deploy.md:85-87 Gives the label as the Semaphore deploy task <id>. With SEMAPHORE_TASK_DETAILS_ID unset the label is the Semaphore deploy task and the description ends by the Semaphore deploy task. (scripts/semaphore-deploy.sh:136; the id-less case is pinned at scripts/tests/semaphore-deploy.test.sh:415). Also, a hand run with USER unset reads an unnamed user (scripts/snapshot.sh:124). Say the id is optional.

Spec

# Sev Where Finding
P1 ADVISORY scripts/snapshot.sh:117-119; scripts/tests/run.sh:483-488 The PR body says "A Forgejo run still wins over the label". No test pins it: swapping the branch order (DEPLOY_RUN first) leaves scripts/tests/run.sh green (mutant M7, rc 0). run.sh:487 unsets GITHUB_RUN_NUMBER in every Semaphore case, and the one GITHUB_RUN_NUMBER=77 case (run.sh:433) never sets DEPLOY_RUN. Live impact today: none found, since the label is set only inside a Semaphore task (scripts/semaphore-deploy.sh:136), which has no Forgejo run number. Fix: add one case with both set, expecting the run 77: description.

Scope: the tracker's restore points now name the task, as THE-14 rev 37 asks. Forge and silo still carry the hand fallback; they are out of this change (named, not charged).

Blockers

None.

What I verified, and how

Claim Check Result
The reviewed revision is the head git ls-remote origin refs/pull/65/head 3abc34d = dispatch. Description unchanged at post time (updated_at 20:43:23Z, read twice).
make check is green mise exec -- make check in a worktree at 3abc34d rc 0. 400 ok. gate-test 58, semaphore-deploy 93, deploy-workflow 52, service-key 29, 0 FAILED.
The label reaches the snapshot 7 mutants, one edit each, the owning suite run on each M1 branch never fires: run.sh red. M2 label not handed to prod: semaphore-deploy red. M3 id dropped: red. M4 env -u DEPLOY_RUN at prod's sub-make: gate red. M5 label loses by: run.sh red. M6 hand fallback loses user: run.sh red. M7 precedence swap: run.sh green (P1).
The real mise exec carries the label DEPLOY_RUN='the Semaphore deploy task 29' SEMAPHORE_TASK_DETAILS_ID=29 mise exec -- env Both reach the child, label with spaces intact. The suite stubs mise, so this is the only check against the real tool.
"The same change infra-secrets carries" grep at infra-secrets 77b1268 Same label formula (scripts/semaphore-deploy.sh:102) and same elif (scripts/snapshot.sh:119). Holds in shape.
No secret in the diff grep over the diff None. The only SEMAPHORE_API_TOKEN=stub is a pre-existing test stub.
Diff hygiene git diff --check Clean.
File accounting git diff --stat 6e043ec...3abc34d 6 files, +79/-5: docs/reference/deploy.md (the claim), scripts/snapshot.sh (reads the label), scripts/semaphore-deploy.sh (hands it to prod), 3 test files (pins). No other file. Other docs (README.md, GLOSSARY.md) describe the restore point without attribution wording, so none contradicts the change.

Could not verify

Claim Why
A live restore point reads by the Semaphore deploy task <id> The PR says it was not run; the merge is the evidence. I did not read the node.
A live Semaphore shell task carries SEMAPHORE_TASK_DETAILS_ID The PR cites the Semaphore 2.19.16 source, which I did not read. THE-14 rev 37 cites secrets' restore points on 144 reading tasks 35, 37, 38. That is cited from the report, not re-read on the node.
PR evidence rows for 142 (commits 24b330c, ba57570, cc42ce8) Not re-read from the node.
The published status context name for checks.yaml The file, its job and its target are unchanged. I did not inspect the context string.

Summary

Axis Blockers Advisories Nits Worst
Standards 0 0 1 (S1) S1, doc precision
Spec 0 1 (P1) 0 P1, unpinned precedence claim

Total: 0 blockers, 1 advisory (below the three-advisory trip), so the recommendation is merge. The nit does not count. Delete it and the verdict stands.

minos-review: repo=olympus/infra-tracker pr=65 head=3abc34db4643de9777ceeb889b8f379a3c73a746 round=1/5 verdict=merge Recommendation: merge **Spec source:** THE-14 (Paperclip), fetched live this round (`GET /api/issues/THE-14` → 200; report document rev 37, 2026-12-01 ~20:21Z). THE-14's description does not name restore-point attribution. The requirement is in its report (revs 27, 35, 37): the tracker's script passes no label, so its restore points read `by hand, by an unnamed user`. The PR body states the same. **Standards sources:** `AGENTS.md` §Pull requests (body sections present), `AGENTS.md` §Toolchain (`make check` run via `mise exec`), `docs/adr/` (no ADR touched). No other repo conventions found. **Charter:** no escalation trigger. No Stack file changed; no ADR; no branch protection. CI gate boundary unchanged: `.forgejo/workflows/checks.yaml`, job `static`, Makefile target `check`, all untouched. ## Standards | # | Sev | Where | Finding | |---|---|---|---| | S1 | NIT | `docs/reference/deploy.md:85-87` | Gives the label as `the Semaphore deploy task <id>`. With `SEMAPHORE_TASK_DETAILS_ID` unset the label is `the Semaphore deploy task` and the description ends `by the Semaphore deploy task.` (`scripts/semaphore-deploy.sh:136`; the id-less case is pinned at `scripts/tests/semaphore-deploy.test.sh:415`). Also, a hand run with `USER` unset reads `an unnamed user` (`scripts/snapshot.sh:124`). Say the id is optional. | ## Spec | # | Sev | Where | Finding | |---|---|---|---| | P1 | ADVISORY | `scripts/snapshot.sh:117-119`; `scripts/tests/run.sh:483-488` | The PR body says "A Forgejo run still wins over the label". No test pins it: swapping the branch order (DEPLOY_RUN first) leaves `scripts/tests/run.sh` green (mutant M7, rc 0). `run.sh:487` unsets `GITHUB_RUN_NUMBER` in every Semaphore case, and the one `GITHUB_RUN_NUMBER=77` case (`run.sh:433`) never sets `DEPLOY_RUN`. Live impact today: none found, since the label is set only inside a Semaphore task (`scripts/semaphore-deploy.sh:136`), which has no Forgejo run number. Fix: add one case with both set, expecting the `run 77:` description. | Scope: the tracker's restore points now name the task, as THE-14 rev 37 asks. Forge and silo still carry the hand fallback; they are out of this change (named, not charged). ## Blockers None. ## What I verified, and how | Claim | Check | Result | |---|---|---| | The reviewed revision is the head | `git ls-remote origin refs/pull/65/head` | `3abc34d` = dispatch. Description unchanged at post time (`updated_at` 20:43:23Z, read twice). | | `make check` is green | `mise exec -- make check` in a worktree at `3abc34d` | rc 0. 400 ok. gate-test 58, semaphore-deploy 93, deploy-workflow 52, service-key 29, 0 FAILED. | | The label reaches the snapshot | 7 mutants, one edit each, the owning suite run on each | M1 branch never fires: run.sh red. M2 label not handed to `prod`: semaphore-deploy red. M3 id dropped: red. M4 `env -u DEPLOY_RUN` at prod's sub-make: gate red. M5 label loses `by`: run.sh red. M6 hand fallback loses user: run.sh red. **M7 precedence swap: run.sh green (P1).** | | The real `mise exec` carries the label | `DEPLOY_RUN='the Semaphore deploy task 29' SEMAPHORE_TASK_DETAILS_ID=29 mise exec -- env` | Both reach the child, label with spaces intact. The suite stubs `mise`, so this is the only check against the real tool. | | "The same change infra-secrets carries" | grep at infra-secrets `77b1268` | Same label formula (`scripts/semaphore-deploy.sh:102`) and same `elif` (`scripts/snapshot.sh:119`). Holds in shape. | | No secret in the diff | grep over the diff | None. The only `SEMAPHORE_API_TOKEN=stub` is a pre-existing test stub. | | Diff hygiene | `git diff --check` | Clean. | | File accounting | `git diff --stat 6e043ec...3abc34d` | 6 files, +79/-5: `docs/reference/deploy.md` (the claim), `scripts/snapshot.sh` (reads the label), `scripts/semaphore-deploy.sh` (hands it to prod), 3 test files (pins). No other file. Other docs (`README.md`, `GLOSSARY.md`) describe the restore point without attribution wording, so none contradicts the change. | ## Could not verify | Claim | Why | |---|---| | A live restore point reads `by the Semaphore deploy task <id>` | The PR says it was not run; the merge is the evidence. I did not read the node. | | A live Semaphore shell task carries `SEMAPHORE_TASK_DETAILS_ID` | The PR cites the Semaphore 2.19.16 source, which I did not read. THE-14 rev 37 cites secrets' restore points on 144 reading tasks 35, 37, 38. That is cited from the report, not re-read on the node. | | PR evidence rows for 142 (commits `24b330c`, `ba57570`, `cc42ce8`) | Not re-read from the node. | | The published status context name for `checks.yaml` | The file, its job and its target are unchanged. I did not inspect the context string. | ## Summary | Axis | Blockers | Advisories | Nits | Worst | |---|---|---|---|---| | Standards | 0 | 0 | 1 (S1) | S1, doc precision | | Spec | 0 | 1 (P1) | 0 | P1, unpinned precedence claim | Total: 0 blockers, 1 advisory (below the three-advisory trip), so the recommendation is merge. The nit does not count. Delete it and the verdict stands.
pit merged commit c55be75932 into main 2026-12-01 20:51:26 +00:00
pit deleted branch hermes/THE-14-restore-points-name-the-task 2026-12-01 20:51:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-tracker!65
No description provided.