DA-S2 refusal's 'Go to <community>' door loops back into the refusal — production passes no RefusalBrand, so the portal door is / on admin.<apex> #1345
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1345
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?
Symptom
A signed-in plain member refused at the control panel (DA-S2, DDR 0172) clicks the refusal's community door and lands on the same refusal again.
Cause
Production wires the refusal page with no
RefusalBrand(control-plane/cmd/control-plane/main.go~1428), so the portal door renders as/(internal/controlapi/refusal.go~156-159). Onadmin.<apex>that path is behind the sameforward_authgate → refused again. Nothing on the public path composeshostnames.Portal(apex)today (zero callers).Found by the Portal map's apex-cutover research (#1338,
docs/research/2026-09-08-portal-apex-cutover.mdonresearch/portal-apex-cutover).Fix shape
Wire
RefusalBrand{PortalURL: hostnames.Portal(apex), …}in the composition root whenever the apex is known, so the door is the absolutehttps://<apex>— the community's Portal (map #1336), which today is the ungated apex root.Proof
The refusal-page test asserts the absolute apex door when an apex is configured; the dashboard-auth drive leg (DA-S2) follows the door and lands off
admin.<apex>.Agent Brief
Category: bug
Summary: The DA-S2 refusal page's community door renders as the relative path
/in production (noRefusalBrandcomposed), so a refused member onadmin.<apex>loops straight back into the same gated refusal.Verification (confirmed against the tree): The refusal renderer defaults its portal door to
/wheneverRefusalBrand.PortalURLis empty (portalURL == "" → "/"). Production's control-plane composition root wires the refusal surface with noRefusalBrandat all (noWithRefusal/RefusalBrandcall exists in the composition root), so the empty-string default is always taken.hostnames.Portal(apex)exists but has zero non-test callers — nothing on the public path composes the community's Portal address today. The claim reproduces from reading alone: onadmin.<apex>the/door is behind the sameforward_authgate that produced the refusal, so it re-refuses.Current behavior:
A signed-in plain member refused at the control panel (DA-S2, DDR 0172) clicks the refusal page's "Go to " door and lands on the same refusal again, because the door is the relative
/on the gatedadmin.<apex>host.Desired behavior:
When the composition root knows the community apex, the refusal page's community door is the absolute Portal URL
https://<apex>(the community's Portal, map #1336 — today the ungated apex root), so following it leaves the gatedadmin.<apex>host and reaches an ungated surface. When no apex is known (resting), the existing default is unchanged.Key interfaces:
RefusalBrand-shaped value with aPortalURLfield) — must be populated in the control-plane composition root when the apex is configured, withPortalURLset to the community's Portal address derived viahostnames.Portal(apex).hostnames.Portal(apex string) string— the existing (currently uncalled on the public path) derivation of the Portal address; this is its first production caller.PortalURLfallback to/stays as the resting default — do not remove it.Acceptance criteria:
https://<apex>(absolute), not/./fallback when it is not.hostnames.Portal(apex)gains a production caller (the composition root).go build ./...,go vet, and the relevantgo testpackages are green.Out of scope:
admin.<apex>or the apex route.swarm-claim host=matou-dev-server-01 run=20418
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1345 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope