surveys-healthy (found while verifying): the render's config.config definition outranks nixpkgs' mkDefault and WIPES nixpkgs' entire LimeSurvey config subtree — uploaddir, tempdir, force_ssl all fall back to the read-only Nix store #1322
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1322
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Not the red — a distinct, pre-existing, currently-shipping defect found by decoding the built artifact
While verifying the
RPCInterfacefix against real nixpkgs I decoded the evaluated gateway'sconfig.phpderivation and found nixpkgs' entireservices.limesurvey.config.configdefault subtree missing. This is not caused by my fix and not fixed by it — I measured it atHEAD(a948f6ed) with my change stashed.Measured evidence
config.configa948f6ed, my change stashed7q7r4dmycb3j1qijffaxbc53pk0xkd3n-nixos-system-gateway-…{}3aa60340ik6mywa8pbhqxi5kz1annh5sjlk3n5sr-nixos-system-gateway-…{"RPCInterface":"json"}In both cases nixpkgs'
tempdir,uploaddir,userquestionthemerootdir,force_sslandconfig.defaultlangare absent from the deployedconfig.php. Reproduce:IDSS_EVAL_SMOKE=1 go test ./internal/clan/ -run TestSurveysCohost_EvalSmoke -v, thennix derivation showtheconfig.php.drvin the toplevel closure and read the JSON out of itstextenv var.Cause — a NixOS merge-priority inversion
nixpkgs sets its LimeSurvey defaults as
services.limesurvey.config = mapAttrs (name: mkDefault) { runtimePath = …; components = {…}; config = {…}; }(nixos/modules/services/web-apps/limesurvey.nix:359). So theconfigattribute's whole value carriesmkDefault— priority 1000.The render defines
config.config = lib.mkMerge [ … ](internal/clan/surveys.go:310) at normal priority 100. In theattrsOf configTypemerge,filterOverrideskeeps only the highest-priority definitions per attribute — so for theconfigattribute the render's definition wins outright and nixpkgs' entire subtree is discarded rather than merged.Critically this fires even with no brand kit applied: both brand entries are
lib.optionalAttrsguards that collapse to{}, butmkMerge [{} {}]is still a definition at priority 100, so it still wipes. That is exactly the{}measured at HEAD. Introduced by #1318 (d2830225), which correctly moved the brand keys underconfig.configbut did not match nixpkgs' priority.Impact
With the subtree gone, LimeSurvey falls back to
application/config/config-defaults.php, where$config['rootdir'] = getcwd()(line 43) and:uploaddir = rootdir/upload(line 738) andtempdir = rootdir/tmp(line 736) — under php-fpm these resolve inside the read-only Nix store instead of/var/lib/limesurvey/{upload,tmp}.DefaultSurveysStorePath's own doc comment (internal/clan/surveys.go:55-63) asserts "nixpkgs derives uploaddir =${stateDir}/uploadbeneath it" — the wipe makes that statement false, so backup coverage reads a path LimeSurvey is not using.userthemerootdir = uploaddir/themes/survey(config-defaults.php:746) is exactly where thesurveys-brandoneshot landsidss_brand— sodefaulttheme = "idss_brand"points at a theme LimeSurvey looks for under the store path and cannot find (#1265 / DDR 0225).force_sslfalls back to'off'(line 539) although nixpkgs sets it'on'for an SSL vhost.This did not red this drive: the
surveys-brandoneshot writes a hardcoded path (sodeploy-surveysstayed green), and the health gate never got pastget_session_keyto exercise uploads. It is latent, not benign.Proposed fix (mechanical)
Define the render's
config.configat the same priority as nixpkgs' soattrsOfunions them per key rather than replacing — i.e. wrap the render's attrs inlib.mkDefault(priority 1000, matchinglimesurvey.nix:359) instead of leaving them at 100. Then pin it with an eval-smoke assertion that decodes the builtconfig.phpand requires nixpkgs'uploaddirandtempdirto survive alongside the port's own keys — astrings.Containsseam test cannot see this fault at all, since the render's emitted text is identical either way. That is the #191 lesson applied to merge priority rather than option existence.I did not fold this into the heal: it is a second, independent decision touching the ADR 0080 dataset home, and it deserves its own commit and its own eval assertion rather than riding a health-gate fix.
drive
20260908T112826Zred atsurveys-healthy:surveys service is not healthy after 360s of warm-up re-probe (#556): Surveys is not serving — LimeSurvey could not capture and keep a response through its public form — this service is not doingevidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260908T112826Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=20040
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1322 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
envelope
close-report for #1322 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
path— two normal-priority definitions, eval preflight excludes the gateway, nothing deployed #1329userthemerootdiris derived from the DEFAULTuploaddirbefore config.php is merged, and a theme it cannot see is sile… #1330