docs: .env.example carries the NPM endpoint, the one literal it can name #41

Closed
pit wants to merge 2 commits from docs/env-example-npm-url into main
Owner

Summary

.env.example is the declaration make env-check reads env.map against. Its
header 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.map carries NGINXPROXYMANAGER_URL as a literal row rather than as a store
path, and a literal row names the variable without carrying a value. No root fills
that literal, so make env reports it as not held and writes no line for it: the
Operator sets it in .env after the fetch. The value is the LAN address the API
answers on, http://10.12.0.113:81 — CI reaches the same instance as
https://npm.thepit.space through a repository variable, so the two are not
interchangeable and a reader who only sees the blank template has no way to know
which one the operator's .env carries.

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 over
    scripts/env.sh still matches 137870c6…. The check compares names, so a value on
    a literal line does not weaken it.
  • make check — exit 0 at bdc9539: three Success! The configuration is valid.,
    pool.tftest.hcl pass and edge.tftest.hcl pass.
  • GET http://10.12.0.113:81/api/ → 200,
    {"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}; the
    pair at secret/homelab/npm/api authenticates against it (POST /api/tokens →
    200).

Merge Danger

None. Two comments and one value in a template; make env still overwrites .env
whole and the file is still never the source of a secret.

## Summary `.env.example` is the declaration `make env-check` reads `env.map` against. Its header 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.map` carries `NGINXPROXYMANAGER_URL` as a `literal` row rather than as a store path, and a literal row names the variable without carrying a value. No root fills that literal, so `make env` reports it as not held and writes no line for it: the Operator sets it in `.env` after the fetch. The value is the LAN address the API answers on, `http://10.12.0.113:81` — CI reaches the same instance as `https://npm.thepit.space` through a repository variable, so the two are not interchangeable and a reader who only sees the blank template has no way to know which one the operator's `.env` carries. 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 over `scripts/env.sh` still matches `137870c6…`. The check compares names, so a value on a literal line does not weaken it. - `make check` — exit 0 at `bdc9539`: three `Success! The configuration is valid.`, `pool.tftest.hcl` pass and `edge.tftest.hcl` pass. - `GET http://10.12.0.113:81/api/` → `200`, `{"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}`; the pair at `secret/homelab/npm/api` authenticates against it (`POST /api/tokens` → `200`). ## Merge Danger None. Two comments and one value in a template; `make env` still overwrites `.env` whole and the file is still never the source of a secret.
docs: .env.example carries the NPM endpoint, the one literal it can name
All checks were successful
checks / static (pull_request) Successful in 11s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m35s
dab0fd30e7
bot-minos left a comment

olympus/infra-tracker #41 · head dab0fd3 · round 1/5 · axes: standards + spec · one file, +5/−2

Recommendation: fix

Standards

BLOCKER — .env.example:4 still says "Nothing here is a value", and :29 now holds one.

The header is the file's own contract, and the change leaves it standing:

:3-5 — “…Nothing here is a value: this file is the declaration make env-check compares env.map against, in both directions…”

The change's own comment says the opposite, twenty lines below it:

:25-27 — “The endpoint is the one line here that holds a value…”
:29 — NGINXPROXYMANAGER_URL=http://10.12.0.113:81

So the file now asserts both, and the untouched header is the side a reader meets first. AGENTS.md §Environment and docs/adr/0005-the-environment-comes-from-the-store.md:111-115 both rest on this file being the name set make env-check compares. The value is fine; the sentence that denies it is not. Smallest clearing change: rewrite that one clause at :4 to 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-28 names the value but not how it reaches .env.

make env never writes this line: scripts/env.sh:348-359 fills a literal name only from prod.age, NGINXPROXYMANAGER_URL is not in that file, so the fetch prints not held: NGINXPROXYMANAGER_URL and writes no line for it — which docs/adr/0005-the-environment-comes-from-the-store.md:111-113 states 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 .env from this list”, and make env rewrites it whole. A reader who follows the file still ends with an empty URL and make edge refusing at Makefile: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 env fills NGINXPROXYMANAGER_URL from env.map's literal row 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 hands make env today…”.

A literal row names the variable and carries no value (env.map:69 is bare); scripts/env.sh:357-359 reports the name not held and writes nothing; and env.map:61-62 is 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

claim how result
the endpoint is live and is the NPM API GET http://10.12.0.113:81/api/ → 200, {"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}} confirmed
CI reaches the same instance /api/ body sha256 identical at http://10.12.0.113:81 and https://npm.thepit.space (ebfb496b…); .forgejo/workflows/checks.yaml:103 reads vars.NGINXPROXYMANAGER_URL confirmed (mechanism; the variable's own value is not readable)
make env-check still passes ./scripts/env.sh check → rc 0 — “env.map: 16 names, all declared in .env.example”; pin matches 137870c6d446… confirmed
make env-test ./scripts/tests/run.sh → rc 0, every assertion holds confirmed
make check exit 0, edge.tftest.hcl included mise exec -- make check → rc 0; pool.tftest.hcl… pass, edge.tftest.hcl… pass confirmed
“no other line changes” git diff origin/main...head --stat → .env.example │ 5 +, 2 −, one file confirmed
“the one line here that holds a value” grep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.example → one hit, :29 confirmed

Could not verify

  • The value behind vars.NGINXPROXYMANAGER_URL, i.e. that CI's copy is https://npm.thepit.space. The workflow reads the variable (:103); its value is not in the tree and needs repository-admin rights.
  • A real make env run — it needs an Operator/Admin actor's key and writes .env. scripts/env.sh:335-359 and ADR-0005:111-113 were 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 env fills it” sentence, refuted by scripts/env.sh:348-359 and env.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.

<!-- minos review-loop: repo=olympus/infra-tracker pr=41 head=dab0fd30e769b78c89517cb087cadc2070e1b3ec round=1/5 axes=standards,spec --> **olympus/infra-tracker #41** · head `dab0fd3` · round **1/5** · axes: standards + spec · one file, +5/−2 Recommendation: fix ## Standards **BLOCKER — `.env.example:4` still says "Nothing here is a value", and `:29` now holds one.** The header is the file's own contract, and the change leaves it standing: > `:3-5` — “…Nothing here is a value: this file is the declaration `make env-check` compares `env.map` against, in both directions…” The change's own comment says the opposite, twenty lines below it: > `:25-27` — “The endpoint is the one line here that holds a value…” > `:29` — `NGINXPROXYMANAGER_URL=http://10.12.0.113:81` So the file now asserts both, and the untouched header is the side a reader meets first. `AGENTS.md §Environment` and `docs/adr/0005-the-environment-comes-from-the-store.md:111-115` both rest on this file being the *name set* `make env-check` compares. The value is fine; the sentence that denies it is not. Smallest clearing change: rewrite that one clause at `:4` to 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-28` names the value but not how it reaches `.env`.** `make env` never writes this line: `scripts/env.sh:348-359` fills a `literal` name only from `prod.age`, `NGINXPROXYMANAGER_URL` is not in that file, so the fetch prints `not held: NGINXPROXYMANAGER_URL` and writes no line for it — which `docs/adr/0005-the-environment-comes-from-the-store.md:111-113` states 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 `.env` from this list”, and `make env` rewrites it whole. A reader who follows the file still ends with an empty URL and `make edge` refusing at `Makefile: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 env` fills `NGINXPROXYMANAGER_URL` from `env.map`'s `literal` row 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 hands `make env` today…”. A `literal` row names the variable and carries no value (`env.map:69` is bare); `scripts/env.sh:357-359` reports the name not held and writes nothing; and `env.map:61-62` is 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 | claim | how | result | | --- | --- | --- | | the endpoint is live and is the NPM API | `GET http://10.12.0.113:81/api/` → 200, `{"status":"OK","setup":true,"version":{"major":2,"minor":14,"revision":0}}` | confirmed | | CI reaches the same instance | `/api/` body sha256 identical at `http://10.12.0.113:81` and `https://npm.thepit.space` (`ebfb496b…`); `.forgejo/workflows/checks.yaml:103` reads `vars.NGINXPROXYMANAGER_URL` | confirmed (mechanism; the variable's own value is not readable) | | `make env-check` still passes | `./scripts/env.sh check` → rc 0 — “env.map: 16 names, all declared in .env.example”; pin matches `137870c6d446…` | confirmed | | `make env-test` | `./scripts/tests/run.sh` → rc 0, every assertion holds | confirmed | | `make check` exit 0, `edge.tftest.hcl` included | `mise exec -- make check` → rc 0; `pool.tftest.hcl… pass`, `edge.tftest.hcl… pass` | confirmed | | “no other line changes” | `git diff origin/main...head --stat` → `.env.example │ 5 +, 2 −`, one file | confirmed | | “the one line here that holds a value” | `grep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.example` → one hit, `:29` | confirmed | ## Could not verify - The value behind `vars.NGINXPROXYMANAGER_URL`, i.e. that CI's copy is `https://npm.thepit.space`. The workflow reads the variable (`:103`); its value is not in the tree and needs repository-admin rights. - A real `make env` run — it needs an Operator/Admin actor's key and writes `.env`. `scripts/env.sh:335-359` and `ADR-0005:111-113` were 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 env` fills it” sentence, refuted by `scripts/env.sh:348-359` and `env.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.
docs: the header admits the endpoint, and the comment says who sets it
All checks were successful
checks / static (pull_request) Successful in 9s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m37s
f507c4c3a0
The first paragraph said nothing in this file holds a value; the NPM line
now holds one, so the declaration denied itself in the sentence a reader
meets first. Say it is the single exception.

The NPM comment gave the value but not the route it takes into `.env`:
`make env` fills a literal only from the age class, so this one is reported
as not held and no line is written for it. Name the Operator as the one who
sets it after the fetch, which is what ADR-0005 says and what the file's own
"do not hand-write from this list" rule leaves room for.
pit closed this pull request 2026-10-28 22:33:28 +00:00
Member

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 pit at 22:33:28Z, sixteen seconds after the first push. It is closed unmerged, main is still 414856a and does not carry the endpoint. This comment is the record of the round; it does not ask for a re-review.

finding grade what changed commit
.env.example:4 header denies the value the file now holds BLOCKER First paragraph now reads "Nothing here is a value but the NPM endpoint named below"; the rest of it is the same words, re-wrapped under the new clause. f507c4c
.env.example:25-28 names the value but not its route into .env advisory The NPM comment gains three lines: no root fills that literal, make env reports it as not held and writes no line for it, and the Operator sets it in .env after the fetch — the reading ADR-0005:111-113 already gives. f507c4c
the body's "make env fills it from the literal row" advisory Body rewritten to what scripts/env.sh:357-359 does: the literal row names the variable, no root fills it, nothing is written for it. The Evidence bullet's "the value the store hands make env" becomes the address the API answers on. Body edit, no commit against it. —
my own "the one line the fetch leaves out" self-review False as written: TEST_RUNNER_IMAGE and TEST_TARGET_IMAGE are literals no root fills too. The tail is dropped; the clause before it already said the fetch writes no line for this name. bdc9539

Verification

The pushed tree, archived and run inside the copy (git archive bdc9539 | tar -x -C <fresh>; f6b2ce1 is an empty commit over it, git diff --stat bdc9539 f6b2ce1 prints nothing):

$ mise exec -- make check
rc=0
env.map: 16 names, all declared in .env.example
Success! The configuration is valid.            (vikunja/guest)
Success! The configuration is valid.            (npm)
Success! The configuration is valid.            (test/guest)
pool.tftest.hcl... pass
  run "the_test_guest_is_created_in_the_pre_pool"... pass
Success! 1 passed, 0 failed.
edge.tftest.hcl... pass
  run "no_certificate_fails_the_plan"... pass
Success! 1 passed, 0 failed.

grep -c Success over that log answers 5, and the name tally is still the 16 the check reports.

The diff against 414856a is one file, +11 −6 (histogram, as the page renders it), and grep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.example still finds exactly one hit — the NPM endpoint, now at :31. No NAME= line moved or changed, so the check's name comparison is untouched. A vocabulary pass over the added lines against every _Avoid_: list in GLOSSARY.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-human

  • Run 28 at f507c4c (the first fix commit) finished green: static success, execute success, guest and edge skipped as they are on a pull request. Four status contexts on that sha.
  • No run fired for bdc9539 or f6b2ce1. Both carry 0 status contexts. The push landed on a PR pit had just closed, so the pull_request/synchronize event 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 the make check above, not a CI run.
  • Two things I am not claiming: the POST /api/tokens line 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 no claude, codex or agent CLI is on PATH here.

What a human needs to decide: re-open the PR — the synchronize event will then run static and execute at this tree — or drop the branch. Left as review/needs-human rather than review/needs-review, so the loop does not arm a review of a closed pull request.

<!-- fix-meta repo=olympus/infra-tracker pr=41 head=f6b2ce1ca5743c0694bf2249c18d7498d6e5f3d5 round=1/5 disposition=fixed --> 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 `pit` at `22:33:28Z`, sixteen seconds after the first push.** It is closed unmerged, `main` is still `414856a` and does not carry the endpoint. This comment is the record of the round; it does not ask for a re-review. | finding | grade | what changed | commit | | --- | --- | --- | --- | | `.env.example:4` header denies the value the file now holds | BLOCKER | First paragraph now reads "Nothing here is a value but the NPM endpoint named below"; the rest of it is the same words, re-wrapped under the new clause. | `f507c4c` | | `.env.example:25-28` names the value but not its route into `.env` | advisory | The NPM comment gains three lines: no root fills that literal, `make env` reports it as not held and writes no line for it, and the Operator sets it in `.env` after the fetch — the reading `ADR-0005:111-113` already gives. | `f507c4c` | | the body's "`make env` fills it from the `literal` row" | advisory | Body rewritten to what `scripts/env.sh:357-359` does: the literal row names the variable, no root fills it, nothing is written for it. The Evidence bullet's "the value the store hands `make env`" becomes the address the API answers on. **Body edit, no commit against it.** | — | | my own "the one line the fetch leaves out" | self-review | False as written: `TEST_RUNNER_IMAGE` and `TEST_TARGET_IMAGE` are literals no root fills too. The tail is dropped; the clause before it already said the fetch writes no line for this name. | `bdc9539` | ## Verification The pushed tree, archived and run inside the copy (`git archive bdc9539 | tar -x -C <fresh>`; `f6b2ce1` is an empty commit over it, `git diff --stat bdc9539 f6b2ce1` prints nothing): ```text $ mise exec -- make check rc=0 env.map: 16 names, all declared in .env.example Success! The configuration is valid. (vikunja/guest) Success! The configuration is valid. (npm) Success! The configuration is valid. (test/guest) pool.tftest.hcl... pass run "the_test_guest_is_created_in_the_pre_pool"... pass Success! 1 passed, 0 failed. edge.tftest.hcl... pass run "no_certificate_fails_the_plan"... pass Success! 1 passed, 0 failed. ``` `grep -c Success` over that log answers **5**, and the name tally is still the 16 the check reports. The diff against `414856a` is one file, `+11 −6` (histogram, as the page renders it), and `grep -E '^[A-Za-z_][A-Za-z0-9_]*=.+' .env.example` still finds exactly **one** hit — the NPM endpoint, now at `:31`. No `NAME=` line moved or changed, so the check's name comparison is untouched. A vocabulary pass over the added lines against every `_Avoid_:` list in `GLOSSARY.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-human` - Run **28** at `f507c4c` (the first fix commit) finished green: `static` success, `execute` success, `guest` and `edge` skipped as they are on a pull request. Four status contexts on that sha. - **No run fired for `bdc9539` or `f6b2ce1`.** Both carry **0** status contexts. The push landed on a PR `pit` had just closed, so the `pull_request/synchronize` event 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 the `make check` above, not a CI run. - Two things I am not claiming: the `POST /api/tokens` line 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 no `claude`, `codex` or `agent` CLI is on `PATH` here. What a human needs to decide: re-open the PR — the `synchronize` event will then run `static` and `execute` at this tree — or drop the branch. Left as `review/needs-human` rather than `review/needs-review`, so the loop does not arm a review of a closed pull request.
Some checks are pending
checks / static (pull_request) Successful in 9s
Required
Details
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m37s
Required
Details
plan / guest-plan-check (pull_request_target)
Required
plan / edge-plan-check (pull_request_target)
Required

Pull request closed

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-tracker!41
No description provided.