You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: an unregistered AFORGE_QUESTION_DEMO leaves internal/config red on a clean dev, so every pull request that touches it opens with a failure it did not cause #754
TestRegistryCoversEveryUserFacingEnvironmentPin fails on a clean checkout of dev @ 1e3383869, with no changes of any kind:
$ export GOFLAGS=-buildvcs=false
$ go test ./internal/config/ -run TestRegistryCoversEveryUserFacingEnvironmentPin -count=1
--- FAIL: TestRegistryCoversEveryUserFacingEnvironmentPin (0.03s)
settings_test.go:111: AFORGE_QUESTION_DEMO (…/internal/tui3/questiondemo.go) is neither a settings row nor operator plumbing — register it in settings.go
FAIL
FAIL github.com/Agent-Field/aforge-v2/internal/config 0.036s
It is not in .github/known-red.txt, so the ledger does not skip it and make test does not either. Every pull request that touches internal/config — or
any package whose suite the touched packages gate pulls that one in behind —
now opens with a red gate it did not cause, which is exactly the signal known-red.txt exists to protect.
Replication
Deterministic (no model). Two commands from a clean tree, under a second, no
key:
git switch dev && git pull
GOFLAGS=-buildvcs=false go test ./internal/config/ -run TestRegistryCoversEveryUserFacingEnvironmentPin -count=1
The failure quoted above is what a developer sees today.
Field (real models). None needed; this is a structural law over the tree.
Where
questionDemoEnv in internal/tui3/questiondemo.go declares AFORGE_QUESTION_DEMO, which raises a fixture question on the page. The law that
refuses it is TestRegistryCoversEveryUserFacingEnvironmentPin in internal/config/settings_test.go — search is neither a settings row nor operator plumbing. It walks the repository for AFORGE_* pins and demands each
one be either a settings row or on the operator-plumbing list, with AFORGE_TEST_ the only prefix exempt.
Whoever owns the questions page decides which of the two this is and says so in internal/config/settings.go: operator plumbing, if AFORGE_QUESTION_DEMO is a
developer's door onto a fixture and nothing a person would ever set; or a
settings row, if it is not. A third option, if the demo has done its job: delete
the pin and the fixtures with it.
Renaming it to AFORGE_TEST_QUESTION_DEMO would also satisfy the law, but only
say that if it really is test-only — the prefix is a claim, not an escape hatch.
Acceptance
e2e:GOFLAGS=-buildvcs=false go test ./internal/config/ -count=1 is green
on a clean dev, and make test-laws with it.
Unit: the same law still refuses an unregistered pin — add nothing to .github/known-red.txt; that ledger only shrinks.
Closed in the 2026-09-10 triage sweep — fixed by PR #805. AFORGE_QUESTION_DEMO is registered at internal/config/settings.go:1110. Verified at dev@95a0d0a9b: go test ./internal/config/ -run TestRegistryCoversEveryUserFacingEnvironmentPin -count=1 passes. (PR #800 still lists this in its Closes line; that is now redundant and harmless.)
Activity
santoshkumarradha commentedon Sep 10, 2026
Closed in the 2026-09-10 triage sweep — fixed by PR #805.
AFORGE_QUESTION_DEMOis registered atinternal/config/settings.go:1110. Verified at dev@95a0d0a9b:go test ./internal/config/ -run TestRegistryCoversEveryUserFacingEnvironmentPin -count=1passes. (PR #800 still lists this in its Closes line; that is now redundant and harmless.)Connect a service: a second place models come from (#800)
Plan first: a service's billing doors, tried in order (#861)