invite-member: assertMemberIsNotAdmin ignores HTTP status, reds a correct 403 denial #765
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#765
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?
Verdict: harness defect, not product. The drive went 24 green / 1 skip / 1 red.
pairis green (135 ms), so this is not the known own-VPS carrier frontier — that frontier only accounts for thebackup-honest-floorskip, whose reason line says so explicitly ("carrier landed (own-VPS, ADR 0152 · #383/#384); reachable once its Stage-3 assertions plan lands").The failure
artifacts/legs.json:The error message quotes the proof that the product behaved correctly. HTTP 403 is the denial. The assertion interpolates the status into its own failure text but never gates on it.
The defect
app/tests/e2e/fixtures/provision.ts:858-881—assertMemberIsNotAdmin:Only two denial signals are accepted: redirect-away, or a
#body-status/.errorDOM node. Nextcloud 32 refuses a signed-in non-admin with a bare 403 at the same URL, rendered from a guest error template that carries neither.The docstring states the wrong premise outright (
provision.ts:850-851):The asymmetry is the tell. The positive twin
assertOperatorIsAdmindoes gate on status (provision.ts:814-822):The inverse assertion never got the same gate.
Live-droplet corroboration (209.38.91.9 — ssh accepted, read-only)
Role separation on the box is genuinely correct:
e2e-memberis ine2e-crewonly, never inadmin. Nothing is broken underneath it:And the status codes are three-valued and distinguishable — anonymous is 401, not 403:
The member's session was really authenticated before the check ran —
logs/droplet-journal.txt:1977:and
oidcSignInAsMemberhad already asserted the#headerFiles landing immediately before (journey.droplet.spec.ts:743-745). So the 403 is not "not signed in" — it is authenticated-and-refused, exactly what DDR 0173 story 11 asks for.One gap I could not close: I could not re-render the 403 body to observe the missing DOM markers first-hand.
e2e-memberis OIDC-provisioned and has no local password, so basic auth returns401 {"message":""}for member and operator alike. The marker absence is inferred from the assertion's owndenied === false, not independently re-observed. It does not change the diagnosis — the status alone is decisive.Suspected layer
Harness (e2e fixture). No product change is warranted. An agent that "fixes" Nextcloud here would be breaking correct authorization.
What plugging it needs
A healer already diagnosed this during the run, and its fix is lost —
logs/healer-claude.out:That commit is not in the repo —
git rev-parse 2f7f3094…→fatal: bad object;git worktree listshows onlymain;provision.ts's newest commit is stillbb9c7005 (#658). The healer's worktree was reclaimed before the work landed. Re-implement it; do not go hunting for the commit.The fix:
readMemberAdminDenial({ status, landedUrl, markerCount })returning denied / undenied / inconclusive, so the ruling is unit-testable without a browser.#body-status/.errormarker.provision.ts:814-816).provision.ts:850-851.app/tests/e2e/fixtures/provision.test.ts.Worth a separate follow-up: a healer reporting
"action":"healed"with a commit SHA that no ref anywhere carries is its own hazard — a candidatedocs/GOTCHAS.mdentry, since it silently converts a diagnosed red into a repeating one.Absent evidence
artifacts/journey.jsonis{"rows": null, "fault": null}— founding rows were never captured this run. The drive reddened after founding, so there is no row-level evidence either way.logs/guest-*.logall readno SSH hostfwd in /home/dev/.config/systemd/user/idss-guest.service — the guest was never created, so there is nothing to ask, andlogs/qemu.logshows no qemu process. Expected — this is the droplet target, not the qemu guest; those probes are inapplicable, not failing.logs/state-logs.log:ERROR: no state logs directory at .../state/logs.logs/helper.logis entirely headless-Electron GLX/ANGLE/D-Bus noise with no bearing on the red;logs/cert-reseed.txtreadsreseed: OK.drive
20260825T014431Zred atinvite-member:member landed cleanly on /settings/admin (HTTP 403, url "https://files.rehearsal-b.idss.nz/settings/admin") with no redirect and no access-denied marker — a plain member must never reach the admin sevidence:
test-results/…/20260825T014431Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=elitebook-distributed-server-03 run=9977
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #765 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope