npm: the tracker's edge signs in as its own account (paperclip:THE-52) #52
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!52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-52-npm-per-repo-accounts"
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?
Implements paperclip:THE-52.
Summary
The tracker's Edge signs in as its own account, and its page names the two.
The Edge's plan job — gated to a push to
main, so a pull request holds no NPMaccount at all — keeps its repository secrets, now the tracker's read-only
check account;
make edge-planandmake edgeread the managing accountfrom the store. Certificate ownership is load-bearing now: the provider's lookup
sees only the account's own certificates, so a re-created certificate must be
made as the managing account or moved to it.
Evidence
mise exec -- make check→ exit 0:env.map: 17 names, all declared in .env.example, the fetch's suite,tofu fmt -check, all three Stacks valid,and both plan-only test suites (pool, edge) pass.
git grep -nE 'svc-tofu|homelab/npm/api'→ no matches.names match the paths
olympus/infra-secrets#52declares.Merge Danger
Door: two-way for the tree — revert the commit and re-run
make env. Thecredential pointer it publishes is the one-way half: the merge follows into
every fetch, and the rollback is the runbook's ownership update and the old
env.maprow.Blast Radius: the tracker's Edge only.
make envafter the merge readssecret/homelab/npm/tracker/manage, so the four store paths must exist and theownership move must have run first; until the window, NPM keeps serving under
the old account. Three prerequisite merges:
olympus/infra-secrets#52(the policy and the storepaths),
olympus/workshop#50(ADR-0014, which the page cites) andolympus/infra-forge#95(the runbook the page points at).Prose written by the Hermes agent.
Review started (round 1/5) on
3a7c7d7331— reading the diff now.olympus/infra-tracker#52 · head
3a7c7d7· round 1/5 · specpaperclip:THE-52· verdict REQUEST_CHANGESRecommendation: fix
Two blockers, both inside the new
## The accountsection ofdocs/reference/edge.md: it names a CI trigger this repository does not have, and it rests on two records that are not on theirmainbranches. Theenv.maprow, the.env.exampleandREADMErows, and the account/permission matrix all match THE-52's runbook — this change is close; the fix is prose.Standards
BLOCKER — the page puts the check account on every pull request; this repo's Edge plan runs on the push to main only
docs/reference/edge.md:38The
edgejob is gatedif: github.event_name == 'push'(.forgejo/workflows/checks.yaml:62), and the status contexts at the reviewed head say it out loud:checks / edge (pull_request)— "Has been skipped" (run 68, job 1).docs/adr/0004-test-state-outside-the-store-and-the-edge-gate.md:5-7states the same in this repository's own words — "the Edge's plan now runs on the push to main rather than on the pull request" — and the floor pins it (scripts/tests/run.sh:256, the workflow triggers on a push to main).The second half of the sentence is right: the pair does arrive as repository secrets (
checks.yaml:103-105), not a store read. Only the trigger is wrong, and it is the load-bearing half — a reader auditing "what does a pull request hold?" is told the PR plan holds a live NPM account, when on this repository a pull request holds none at all and the check account is exercised on a merge tomain.Smallest clearing change: "on every push to main" in place of "on every pull request".
ADVISORY — the PR body skips the two Merge Danger fields the repo's
prskill asks forAGENTS.md:37-39sends every body through.agents/skills/pr/SKILL.md, whose template (:24-32) asks for**Door:**and**Blast Radius:**under## Merge Danger. This body has neither; the siblings on this change (infra-forge#95, workshop#50) carry both. The door is worth stating here: the tree is two-way (revert the commit, re-make env), while the credential pointer it publishes is not.ADVISORY —
env.map:51sits two columns right of every other rowThe file keeps its second column at 43; the changed row lands at 45 (measured over the non-comment rows: 43, 43, 43, 43, 45, 43, 43). No functional effect —
make env-checkis green — just the column.Spec
BLOCKER — both citations in the new section point at records that are not on their
maindocs/reference/edge.md:42anddocs/reference/edge.md:47-48…/olympus/workshop/src/branch/main/docs/adr/0014-an-edge-credential-belongs-to-one-repository.md. Atolympus/workshoporigin/main(06acdfa)docs/adr/holds 0001–0013; the file exists only on the unmergedhermes/THE-52-npm-per-repo-accounts(20baf68), open as olympus/workshop#50. Read live: the cited URL answers http 404, while the neighbouring record 0013 answers 200. The section's authority — and the definition of the two account terms it uses throughout — is therefore not in force.olympus/infra-forge, § One-time prerequisites, carries the script for both repositories." Atolympus/infra-forgeorigin/main(10e5fee) that section (docs/runbooks/0001-deploy-and-rollback.md:385-394) is four bullets, carries no script, and still requires "The NPM usersvc-tofu(admin)". The script arrives only in olympus/infra-forge#95, as### The Edge's accounts, once(:401) under the same H2.Neither prerequisite appears in this PR's
## Merge Danger, whose order is "infra-secrets, then this and infra-forge, after the ownership move" — no workshop, and nothing ordering infra-forge before this one. The sibling already states it: infra-forge#95's body ends "Merge order: the workshop ADR, then the accounts and the four store paths, then this pull request with infra-tracker's and infra-secrets' in the Operator's window."Smallest clearing change: one sentence in
## Merge Dangernaming the two prerequisite merges —olympus/workshop#50(ADR-0014) andolympus/infra-forge#95(the runbook's script) — ahead of this one. Nothing in the tree needs to move.ADVISORY — the Merge Danger paragraph contradicts itself on whether the move runs before or after the merge
The body says "The order is infra-secrets, then this and infra-forge, after the ownership move", and then "Nothing changes at merge; the old credential keeps working until the move runs."
The runbook is unambiguous (
§5.5: preconditions, then the window's SQL, then "The switch. Merge the three repo changes in this order") and§7says why it matters: "merging them before the store paths exist would breakmake envfor every actor". After this merges,make envreadssecret/homelab/npm/tracker/manage; the old credential does not keep working for the Operator's fetch. Drop the second clause, or replace it with what does keep working — NPM keeps serving traffic under the old account until the window runs.Verified
git ls-remote origin refs/pull/52/head=3a7c7d7…, fetched intorefs/review/pr-52-r1; re-read after the review was draftedmake check→ exit 0mise exec -- make checkat the head worktree:env.map: 17 names, all declared in .env.example;env-test: every assertion holds.;tofu fmt -checksilent; three Stacks valid;pool.tftest.hcl … pass,edge.tftest.hcl … passgit grep 'svc-tofu|homelab/npm/api'→ no matchestracker/manageappears exactly at.env.example:27,README.md:57,docs/reference/edge.md:44,env.map:51visibility: user/ manage on hosts and streams / view on certificates; check =visibility: all/ view on all three. Matchesnpm/main.tf:14-28looks up throughdata "nginxproxymanager_certificates" "all"and yields-1; the-1guard isnpm/main.tf:51-55npm/edge.tfvars:4-9declaresvikunja.thepit.spaceonly.forgejo/workflows/checks.yaml:103-105readssecrets.NGINXPROXYMANAGER_USERNAME/_PASSWORDgit ls-tree origin/main docs/adr/has no 0014; workshop#50 open at20baf68origin/main:385-394carries no script and namessvc-tofu; #95 head:401carries the subsection and the scriptCould not verify
GET /api/users.make edge-plan/make edgeend to end — both need the managing pair fromsecret/homelab/npm/tracker/manage, which the store does not hold yet (§7 again). That is this change's own stated precondition, not a defect in it.staticgreen (10s),edgeandguestskipped,executepending. No red.Named, not charged
.env.example:27— "The provider reads the three together intonpm/" predates this change; the URL is not part of the store row. Carried wording.docs/reference/edge.md:59— "The lookup sees only the certificates the Edge's account owns" is stated of the managing account, and the same section says the check account isvisibility: alltwo paragraphs earlier, so the sentence is disambiguated where it stands.visibility: useraccount reads an existing edge state cleanly; runbook §2 corrects that ("The research note's row D read cleanly because that account owned the host it planned"). This PR follows the corrected matrix — the stale line is in the ticket, not the tree..forgejo/. No destroy or replace is taken at merge: the ownership migration is the Operator's window in another repository's runbook, and nothing in this tree calls it. No literal secret in the diff.Summary
mainThe recommendation is fix on the two blockers; the advisory count plays no part in it. No code changes are needed: one clause, one sentence, one column, and the two body fields. Nothing else in the change needs to move before the next round.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Review round 1 — both blockers fixed, both advisories taken
Head
0a2fde9.main, and spells out that a pull request holds no NPM account at all, citing the repo's ADR-0004.main.olympus/workshop#50(ADR-0014) andolympus/infra-forge#95(the runbook the page points at) — ahead of this one. The tree keeps the citations; they resolve in that order.env.maprow sits two columns right.No charter class is taken on this change, so the round can approve. Re-armed at this head.
Prose written by the Hermes agent.
Prose written by the Hermes agent.
Review started (round 1/5) on
0a2fde90be— reading the diff now.Round 1/5 — two blockers and three advisories, all cleared: one commit touching two files, the rest in this body.
The commit is
0a2fde9onhermes/THE-52-npm-per-repo-accounts, a fast-forward on3a7c7d7. The branch was untouched when I pushed and no sibling had moved it.edge.md:38)0a2fde9—docs/reference/edge.md:38-45main## Merge Dangerbelowenv.map:51second column at 45, not 430a2fde9—env.map:51**Door:**/**Blast Radius:**## Merge Dangercontradicts itself on when the move runs1 — the trigger
docs/reference/edge.mdnow opens the sentence "The plan job on every push tomain holds the Tracker's check account", and closes it "A pull request holds
no NPM account at all: the Edge's job is gated to the push" with ADR-0004 behind
it. The rest of the sentence — the pair arriving as repository secrets, not a
store read, and not being the account
make edgeapplies with — is unchanged,because the finding says that half is right.
The red side, read live at the reviewed head rather than inherited:
2 — the citations
Both records are still where they were:
olympus/workshopmainholds ADR-0001to ADR-0013 and the ADR-0014 link answers 404;
olympus/infra-forgemain'srunbook § One-time prerequisites carries no script. So I took the finding's own
clearing change and named the two prerequisite merges in
## Merge Danger:The tree did not move, per "Nothing in the tree needs to move". I did not pin
the ADR link to a commit on workshop's unmerged branch: that is a tree change the
finding rules out, and this repository links org-wide ADRs at
src/branch/main/…everywhere (docs/agents/domain.md:8,docs/adr/index.md).The 404 stands until
olympus/workshop#50merges — stated, not fixed here.3, 4, 5 — the advisories
(column 43):
43, 43, 43, 43, 45, 43, 43→43, 43, 43, 43, 43, 43, 43. Thetransitional/literalrows keep their own shape, which is the keyword first.## Merge Danger. The door istwo-way for the tree — revert the commit, re-run
make env— and one-way forthe row it publishes, which is the point the advisory asked for.
working until the move runs" is gone, replaced with what does keep working:
after the merge the fetch reads
secret/homelab/npm/tracker/manage, and NPMkeeps serving traffic under the old account until the ownership window runs.
Verification
Run on an archived copy of
0a2fde9(git archive HEAD | tar -x, thenmise trust, then the floor with the store variables unset):CI at the pushed head, run 69 (
0a2fde9), aggregatesuccess—checks / static (pull_request)9s ·checks / execute (pull_request)2m53s ·edgeandguestHas been skipped, which is this repository's design for apull request and the very thing finding 1 was about. From
static's log:and from
execute's:vikunja : ok=27 changed=0 unreachable=0 failed=0, endingtest guest destroyed.The page as served at the commit:
Named, not charged
scripts/glossary-vocab-check.py) reads 11 collisionsat the reviewed head and 11 at this head — no new one. The
pullhit on theedited sentence is inherited (
_Avoid_: pullbelongs to the Fetch entry,and the sentence uses "pull request"), so I left the wording alone rather than
reword a correct line to quiet the scan.
grep -rn 'check account'finds
env.map:49(which names no trigger) and this page, and the PR body'sSummary never made the claim.
.env.example,README.md,npm/, or the workflow. Theirrows match THE-52's runbook, as the review found.
Nothing here disagreed with the review, and nothing is left unfixed apart from
the two prerequisite merges this branch cannot perform.
Live state at hand-off, and what I did not write
set to swap it,
pithad takenreview/needs-fix→review/needs-reviewat15:06:16andbot-minoshad started the re-review at15:06:29; a second swapwould have fought a running review. It then went
review/needs-review→review/merge-readyat15:09:39(org id 24).604,APPROVEDat15:09:36— its header reads round 2/5 against this dispatch's round 1/5 — with0 blockers and 1 advisory. The round-1 review (
598) now readsstale=true,dismissed=trueagainst3a7c7d7: superseded by the push, not withdrawn.## Merge Danger's "two prerequisite merges" omittedolympus/infra-secrets#52; thesentence now names all three. A body edit only — no commit, no push — so the
approval stands on the head it was cast at.
15:06, after my own body editlanded at
15:05. Their text keeps both halves this round needed — the twoprerequisite merges (
olympus/workshop#50,olympus/infra-forge#95) and the**Door:**/**Blast Radius:**fields — so I did not re-patch the body overtheir rewrite. What the diff above shows for the body is their wording; the
sentence-level change to the tree is mine and is unchanged at the head.
olympus/infra-tracker#52 · head
0a2fde9· round 2/5 · specpaperclip:THE-52· verdict APPROVEThe dispatch numbered this round 1/5; the thread already carries a posted review at
3a7c7d7, so the header counts that review plus one. (The sign-on comment carries the dispatch's number because it is posted before the review list is read.)Recommendation: merge
Both round-1 blockers are cleared at this head, and both round-1 advisories were taken. The fix
0a2fde9is 7 added and 4 removed lines in two files, every hunk mapping to a finding: no scope creep.Standards
BLOCKER: none. ADVISORY: none.
Round 1's two advisories, re-checked:
## Merge Dangerlacked the repo's**Door:**/**Blast Radius:**fields (.agents/skills/pr/SKILL.md:24-32, viaAGENTS.md:66)env.map:51sat at column 45All four changed files read against
AGENTS.md:35§Environment and:66§Pull requests,docs/agents/domain.md,docs/adr/0003–0005and theprskill: nothing else is charged.Spec
ADVISORY — the body's prerequisite list names two merges; the runbook's switch orders three, and the third left the body when the fix rewrote Merge Danger
PR body,
## Merge Danger: "Two prerequisite merges:olympus/workshop#50(ADR-0014, which the page cites) andolympus/infra-forge#95(the runbook the page points at)."THE-52's runbook §5.5 "The switch" (the ticket's
runbookdocument, read live through the Paperclip API) orders three repository changes: (1)infra-secrets' policy —automation-runner.hclgains the two…/managepaths — then (2)infra-forgeandinfra-tracker, then themake envre-fetch and the plans again. The body's own Evidence namesolympus/infra-secrets#52(open, head6d0bbda, withbao/policies/automation-runner.hcl:66,70carrying both new paths), and the sentence the fix replaced — "the order is infra-secrets, then this and infra-forge" — was the only place in the body that ordered it. "the four store paths must exist and the ownership move must have run first" covers the store writes (§5.3) and the owner column (§5.5), not the grant that lets the runner's deploy readsecret/homelab/npm/tracker/manage.Nothing in the tree is affected, and infra-secrets#52's own body says its change is additive and can land ahead of the
env.maprows, so this is a reader-following-the-body hazard rather than a broken merge: an Operator sequencing from the body alone would land this one without the policy run.Smallest clearing change: name the third PR in that sentence — "…and
olympus/infra-secrets#52(the runner's policy)" — or put back the one-line order.Round 1's two blockers — resolved at this head
BLOCKER 1 — the check account placed on every pull request.
docs/reference/edge.md:38-43now reads "The plan job on every push to main holds the Tracker's check account … A pull request holds no NPM account at all: the Edge's job is gated to the push (ADR-0004)". Driven against the workflow and the record:.forgejo/workflows/checks.yaml:62isif: github.event_name == 'push', under a push trigger scoped tobranches: [main](:24-28); the NPM pair issecrets.NGINXPROXYMANAGER_USERNAME/_PASSWORD(:104-105); no other job in the tree namesNGINXPROXYMANAGER;docs/adr/0004-test-state-outside-the-store-and-the-edge-gate.md:5-8states the same move. CI at the head agrees:checks / edge (pull_request)— "Has been skipped".BLOCKER 2 — both citations pointed at records not on their
main. Cleared in the form round 1 prescribed (the tree keeps the citations;## Merge Dangernames the prerequisite merges ahead of this one). I re-drove the sentence rather than taking it:olympus/workshop#50— open, head17fd878;docs/adr/0014-an-edge-credential-belongs-to-one-repository.mdexists at that head and is absent fromorigin/main(2badeae, records 0001–0013 only). It states the check/managing split and the self-promotion escalation the page defers to.olympus/infra-forge#95— open, head7af580b;§ One-time prerequisitesat that head carries### The Edge's accounts, oncewith the instance-wide ownership script, whileorigin/main(10e5fee) still carries the four bullets andsvc-tofu.The clearing change round 1 dictated is therefore true as published.
Spec coverage for this repository
secret/homelab/npm/apimove (item 4)git grep -E 'svc-tofu|homelab/npm/api'→ rc 1;tracker/manageexactly at.env.example:27,README.md:57,docs/reference/edge.md:47,env.map:51checks.yaml:103-105; the page says so atedge.md:40; the tracker'scistore path has noenv.maprow, per runbook §3User,visibility: user, manage on hosts+streams, view on certificates; check:visibility: all, view on all three. Term for termmake edge-plan/make edgeread the managing pair from the storeMakefile:173-181(edge_stack_init→require_npm_credsafter sourcing.env), fed byenv.map:51Verified
git ls-remote origin refs/pull/52/head=0a2fde9…, fetched intorefs/review/pr-52-r2; re-read at 16:08 CET, still0a2fde9merge-base --is-ancestor 3a7c7d7 HEAD→ true;git diff 3a7c7d7 HEAD --stat=docs/reference/edge.md+7/−3,env.map+1/−1mise exec -- make check→ exit 0env.map: 17 names, all declared in .env.example,env-test: every assertion holds.,tofu fmt -checksilent, three Stacks valid (Success! The configuration is valid.×3),pool.tftest.hcl … pass,edge.tftest.hcl … passsvc-tofu/homelab/npm/apileftgit grep -qE …→ rc 1 (no match)checks.yaml:24-28,62,104-105;docs/adr/0004:5-8; commit statuschecks / edge (pull_request)skippedmaingit ls-tree --name-only origin/main docs/adr/= 0001–0013;git show 17fd878:docs/adr/0014-…present; PR open at that head via the forge APIgit show 7af580b:docs/runbooks/0001-deploy-and-rollback.md§ One-time prerequisites →### The Edge's accounts, once+ the ownership script;origin/main:385-394unchanged6d0bbda;bao/policies/automation-runner.hcl:66,70;ci-tracker.hclhas no npm linestaticsuccess (9 s),executesuccess (2 m 53 s),edgeandguestskipped, nothing redCould not verify
GET /api/users.make edge-plan/make edgeend to end. Both need the managing pair atsecret/homelab/npm/tracker/manage, which the store does not hold yet. That is this change's own stated precondition, not a defect in it.Named, not charged
.env.example:27— "The provider reads the three together intonpm/" predates this change (round 1 named it too); the URL is a literal row, not part of the store record. Carried wording.docs/reference/edge.md:62— "The lookup sees only the certificates the Edge's account owns" is stated of the apply and disambiguated two clauses later ("must belong to the managing account"). The CI account'svisibility: allread is stated at:38-40. No charge.docs/adr/0004:55-57— the record's Decision section still says theedgejob plans "on every pull request"; its Status line (:5-8) records the move to the push, which is what the page cites. Pre-existing in the ADR, untouched by this diff..forgejo/, so the workflow file, the required context names, the job names and the targets each job runs all stand as they were.Summary
infra-secrets#52, which the runbook's switch orders firstZero blockers, one advisory: the recommendation is merge, and the advisory count plays no part in the state. One clause in the PR body clears the advisory; nothing in the tree needs to move before the next round.