surveys-healthy red for the full 360s warm-up: LimeSurvey ships its RemoteControl JSON-RPC interface OFF, and OFF answers an empty HTTP 200 — the port's own health gate can never open a session #1321
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1321
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?
The failure
Drive
20260908T112826Z(drive 8, #1277, ona948f6ed): 21 legs green —deploy-surveysswitched clean at last, #1318's eval repair and #1319's unit repair both holding — and red atsurveys-healthy, the very next leg.Nothing looked broken.
logs/guest-failed-units.logreports "0 loaded units listed";logs/guest-caddy.loglogs no error for the surveys host; the control plane re-probed 36 times plus the re-probe loop with one unchanging fault (logs/guest-control-plane.log:129-200):The very first RPC call of the gate — every later call is unreachable behind it.
Evidence
The surveys port's health gate (ADR 0062 part 3) drives LimeSurvey's whole capture-and-keep loop over the RemoteControl 2 JSON-RPC API at
/index.php/admin/remotecontrol—control-plane/cmd/control-plane/surveyshealth.go:65(the path) and:161(get_session_key). That is the mechanismSTATUS.md:186records as the landed #1150 design.LimeSurvey ships that interface off:
application/config/config-defaults.php:642sets$config['RPCInterface'] = 'off', andinternal/clan/surveys.gonever set it (verified against the pinned package source,limesurvey-6.15.14+250924).Off is not a refusal, which is exactly why it was invisible.
application/controllers/admin/RemoteControl.php:39-69, on a POST, dispatches only when the type is'xml'or'json'; every other value falls straight through toYii::app()->session->destroy(); exit;and echoes nothing. So an off interface is an HTTP 200 with a zero-byte body — not the 403/404 the check would have surfaced asHTTP 403.surveysRPCgates on the status code before decoding (surveyshealth.go:315-325), so the honest-looking 200 carried the fault all the way tojson.Unmarshal— andjson.Unmarshalon zero bytes is preciselyunexpected end of JSON input.The request shape was never at fault:
LSjsonRPCServer::handlewants a POST withContent-Type: application/jsonand{method, params, id}, which is exactly whatsurveysRPCsends (surveyshealth.go:301-309).The suspected layer
The declarative render,
internal/clan/surveys.go— the third contract layer of a catalogue port, under the two already learned:nix evalnor a green switch can see it.The repair
RPCInterface = "json"nested atconfig.config:LSYii_Application::setConfigs(application/core/LSYii_Application.php:166-179) merges$userConfigs['config']over the defaults, so a top-level key is silently ignored — #1318's lesson, one layer up. The JSON dialect only, with the API-publishing key left unset so the GET listing of every admin method stays off, and every method still demands the same admin credential the already-served admin UI takes.Recorded as GOTCHAS #194.
Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)
Mechanical repair, not a design decision. #1150 already ruled RemoteControl 2 as the surveys port's mechanism —
STATUS.md:186records part (3) of the landed port as "LimeSurvey's whole capture-and-keep loop over RemoteControl 2 + the public form", andsurveyshealth.gois built entirely on it. The render simply omitted the switch that makes the already-landed design true. This makes the code do what it already meant; it does not decide anything new. It is the same class as my two prior heals in this series (#1319 render-vs-nixpkgs drift, #1320 readiness gate), one layer further up.Not a security-posture change in substance. The bounded delta: RC2 rides the same host and the same
/index.php/admin/…prefix as LimeSurvey's already-served admin UI, and takes the same admin credential (get_session_keydemands user+password; every other method demands a session key). No new credential class, no new trust boundary, nothing a community sees changes. The API-publishing key is left unset so the GET introspection listing of every admin method stays off. On the public path the whole surveys route already sits behind the front door'sforward_authgate (internal/clan/frontdoor.go:454-485) with no exempt paths declared for surveys; on this drive's private path every service route is ungated by design (ADR 0150,renderPrivateRoute).Two-way door — revertible how: deleting the single rendered line
{ RPCInterface = "json"; }inrenderLimeSurveyDaemon(internal/clan/surveys.go) restores the previous bytes exactly. The module is re-rendered from the live set and re-deployed on every drive, so a later commit reverts it with no migration and no residue.Proven by which test:
TestRenderSurveys_RemoteControlJSONInterfaceIsEnabled(internal/clan/surveys_test.go), written red-first — it pins both the switch AND its nesting underconfig.config(a top-level key would be silently ignored), and requires the XML dialect and the API-publishing key to stay off. Beyond the seam test, the existing real-nixpkgs eval smokeTestSurveysCohost_EvalSmokepasses, and I decoded the built artifact: the evaluated gateway'sconfig.phpderivation carries"config":{"RPCInterface":"json"}— the value is really reaching the deployed file, not just the render's string. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.drive
20260908T112826Zred atsurveys-healthy(sig 9ea63fb93ac3) — self-fixed on the fast lane, commit62f097938765d38e9e20612ad00a9703bf801442; checks: targeted (red-first):go test ./internal/clan/ -run TestRenderSurveys_RemoteControlJSONInterfaceIsEnabled -v→ FAIL before the fix (surveys_test.go:191: LimeSurvey's RemoteControl JSON-RPC interface must be enabled — the port's own health gate speaks it, and LimeSurvey ships it off (answering an empty 200)), PASS after. package:go test ./internal/clan/→ ok (17.999s), all 11TestRenderSurveys_*PASS. trees:go test ./internal/... ./control-plane/...→ no failures. real-nixpkgs eval smoke:IDSS_EVAL_SMOKE=1 go test ./internal/clan/ -run TestSurveysCohost_EvalSmoke -v→ PASS (26.98s) — positive half evaluated the co-hosted gateway to/nix/store/ik6mywa8pbhqxi5kz1annh5sjlk3n5sr-nixos-system-gateway-26.11.20260612.173d0ad.drv, teeth half still fails on the phantomuploadsDiras it should. built-artifact check on that drv: decoded itsconfig.phpderivation (g8r8paiis1rhn2aqixvz5lc8wz41rwmw-config.php.drv) →config.configcarriesRPCInterface = "json", and the API-publishing key is absent. root-cause verified against the pinned package source (realized/nix/store/rs1f1f5smj81i1x4vv2578aqijwd0r4q-source, limesurvey-6.15.14+250924):config-defaults.php:642='off';RemoteControl.php:39-69echoes nothing unless xml/json;LSjsonRPCServer.phpaccepts exactly the request shapesurveysRPCsends.go build ./...→ clean;gofmt -l internal/clan/→ clean;go vet ./internal/clan/→ clean. Commit shape: 3 files, 18 changed non-test lines (internal/clan/surveys.go10/0,docs/GOTCHAS.md8/0), one commit, not pushed; rails self-check →internal/clan/surveys_test.gois additions only (30/0), zero removed lines anywhere in the diff, no removed or edited assertion/expectation, no removed test or leg declaration, no added skip.. evidence:/home/swarm/swarm/Matou/idss/test-results/private-path/20260908T112826Zon matou-workstation.close-report for #1321 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope