docs: .env.example carries the NPM endpoint, the one literal it can name #41
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!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/env-example-npm-url"
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
.env.exampleis the declarationmake env-checkreadsenv.mapagainst. Itsheader called the file a pure name set while it held one value; this change makes the
file say what it does, and the exception is the Edge's NPM endpoint.
env.mapcarriesNGINXPROXYMANAGER_URLas aliteralrow rather than as a storepath, and a literal row names the variable without carrying a value. No root fills
that literal, so
make envreports it as not held and writes no line for it: theOperator sets it in
.envafter the fetch. The value is the LAN address the APIanswers on,
http://10.12.0.113:81— CI reaches the same instance ashttps://npm.thepit.spacethrough a repository variable, so the two are notinterchangeable and a reader who only sees the blank template has no way to know
which one the operator's
.envcarries.So this commits the endpoint with the reason beside it, and the header names it as
the single exception rather than denying it.
Evidence
make env-check—env.map: 16 names, all declared in .env.example; the pin overscripts/env.shstill matches137870c6…. The check compares names, so a value ona literal line does not weaken it.
make check— exit 0 atbdc9539: threeSuccess! The configuration is valid.,pool.tftest.hclpass andedge.tftest.hclpass.GET http://10.12.0.113:81/api/→200,{"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}; thepair at
secret/homelab/npm/apiauthenticates against it (POST /api/tokens→200).Merge Danger
None. Two comments and one value in a template;
make envstill overwrites.envwhole and the file is still never the source of a secret.
olympus/infra-tracker #41 · head
dab0fd3· round 1/5 · axes: standards + spec · one file, +5/−2Recommendation: fix
Standards
BLOCKER —
.env.example:4still says "Nothing here is a value", and:29now holds one.The header is the file's own contract, and the change leaves it standing:
The change's own comment says the opposite, twenty lines below it:
So the file now asserts both, and the untouched header is the side a reader meets first.
AGENTS.md §Environmentanddocs/adr/0005-the-environment-comes-from-the-store.md:111-115both rest on this file being the name setmake env-checkcompares. The value is fine; the sentence that denies it is not. Smallest clearing change: rewrite that one clause at:4to admit the endpoint as the single exception (e.g. “Nothing here is a value but the endpoint the NPM comment names”).ADVISORY —
.env.example:25-28names the value but not how it reaches.env.make envnever writes this line:scripts/env.sh:348-359fills aliteralname only fromprod.age,NGINXPROXYMANAGER_URLis not in that file, so the fetch printsnot held: NGINXPROXYMANAGER_URLand writes no line for it — whichdocs/adr/0005-the-environment-comes-from-the-store.md:111-113states in words (“reported as not held … configuration an Operator writes by hand”). Meanwhile the file's own instructions forbid the only route that works::8-10“Do not hand-write.envfrom this list”, andmake envrewrites it whole. A reader who follows the file still ends with an empty URL andmake edgerefusing atMakefile:159-164. One clause marking the line as the Operator's to set after a fetch closes it.Spec
Spec source: the PR body — no issue reference in the body or in the commit message; the repo's tickets live in Vikunja (project 3,
docs/agents/issue-tracker.md).ADVISORY — the body's mechanism sentence is not what the repo does.
Body: “
make envfillsNGINXPROXYMANAGER_URLfromenv.map'sliteralrow rather than from a store path, and the value is the LAN address the API answers on”; and under Evidence, “The endpoint is the value the store handsmake envtoday…”.A
literalrow names the variable and carries no value (env.map:69is bare);scripts/env.sh:357-359reports the name not held and writes nothing; andenv.map:61-62is explicit that “an endpoint is refused by the store as configuration”. The comment added to the file is the accurate version — the body should adopt it rather than the other way round.Verified
GET http://10.12.0.113:81/api/→ 200,{"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}/api/body sha256 identical athttp://10.12.0.113:81andhttps://npm.thepit.space(ebfb496b…);.forgejo/workflows/checks.yaml:103readsvars.NGINXPROXYMANAGER_URLmake env-checkstill passes./scripts/env.sh check→ rc 0 — “env.map: 16 names, all declared in .env.example”; pin matches137870c6d446…make env-test./scripts/tests/run.sh→ rc 0, every assertion holdsmake checkexit 0,edge.tftest.hclincludedmise exec -- make check→ rc 0;pool.tftest.hcl… pass,edge.tftest.hcl… passgit diff origin/main...head --stat→.env.example │ 5 +, 2 −, one filegrep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.example→ one hit,:29Could not verify
vars.NGINXPROXYMANAGER_URL, i.e. that CI's copy ishttps://npm.thepit.space. The workflow reads the variable (:103); its value is not in the tree and needs repository-admin rights.make envrun — it needs an Operator/Admin actor's key and writes.env.scripts/env.sh:335-359andADR-0005:111-113were read instead, and both agree.Summary
Standards: 2 findings — worst: the blocker at
.env.example:4, where the header still denies the value the same file now holds.Spec: 1 finding — the body's “
make envfills it” sentence, refuted byscripts/env.sh:348-359andenv.map:61-62.Nothing is wrong with the value itself: it answers 200, it is the same NPM instance the published name serves, and both floor targets are green. The block is the one clause a reader meets before the exception, and it is a one-line fix.
Round 1/5 — one blocker and two advisories, all three fixed and pushed onto this branch. Nothing was left alone, and I disagreed with nothing.
The PR was closed by
pitat22:33:28Z, sixteen seconds after the first push. It is closed unmerged,mainis still414856aand does not carry the endpoint. This comment is the record of the round; it does not ask for a re-review..env.example:4header denies the value the file now holdsf507c4c.env.example:25-28names the value but not its route into.envmake envreports it as not held and writes no line for it, and the Operator sets it in.envafter the fetch — the readingADR-0005:111-113already gives.f507c4cmake envfills it from theliteralrow"scripts/env.sh:357-359does: the literal row names the variable, no root fills it, nothing is written for it. The Evidence bullet's "the value the store handsmake env" becomes the address the API answers on. Body edit, no commit against it.TEST_RUNNER_IMAGEandTEST_TARGET_IMAGEare literals no root fills too. The tail is dropped; the clause before it already said the fetch writes no line for this name.bdc9539Verification
The pushed tree, archived and run inside the copy (
git archive bdc9539 | tar -x -C <fresh>;f6b2ce1is an empty commit over it,git diff --stat bdc9539 f6b2ce1prints nothing):grep -c Successover that log answers 5, and the name tally is still the 16 the check reports.The diff against
414856ais one file,+11 −6(histogram, as the page renders it), andgrep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.examplestill finds exactly one hit — the NPM endpoint, now at:31. NoNAME=line moved or changed, so the check's name comparison is untouched. A vocabulary pass over the added lines against every_Avoid_:list inGLOSSARY.md(74 words) returns 0 collisions.From this container:
GET http://10.12.0.113:81/api/→200,{"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}.CI, and why this is
needs-humanf507c4c(the first fix commit) finished green:staticsuccess,executesuccess,guestandedgeskipped as they are on a pull request. Four status contexts on that sha.bdc9539orf6b2ce1. Both carry 0 status contexts. The push landed on a PRpithad just closed, so thepull_request/synchronizeevent never produced a run — and an empty commit pushed for exactly that reason produced none either. The green run therefore attests the tree minus one comment line, not the final tree; the final tree's verdict from here is themake checkabove, not a CI run.POST /api/tokensline in Evidence is the author's and I did not re-run it — no store credential here; and the self-review passes were mine, in sequence, because noclaude,codexoragentCLI is onPATHhere.What a human needs to decide: re-open the PR — the
synchronizeevent will then runstaticandexecuteat this tree — or drop the branch. Left asreview/needs-humanrather thanreview/needs-review, so the loop does not arm a review of a closed pull request.Pull request closed