redeploy-services: the Grist team-site access seed 403s on a REDEPLOY of a founded community, so data-collections stands FAILED and monitoring paints it down #1574
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.
Reference
Matou/idss#1574
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
20260918T055605Z(run dir/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T055605Z) redded atredeploy-serviceson a harness navigation defect, now healed in14bb8f67. Underneath it the same leg's evidence carries a separate, substantive product fault that the heal does not touch: during the redeploy's deploy-time reconcile,data-collections(Grist) failed its health check on every one of its 36 warm-up attempts, across a full six minutes.The evidence
logs/droplet-journal.txt, 06:36:05 → 06:41:59, attempts 1/36 through 36/36, the identical error each time:This is not a warm-up tail. It is 36 consecutive refusals with no drift, and every other service on the same box probed healthy on attempt 1 —
archive06:36:04,document-archive/files/surveys06:42:03,whakapapa/newsletters06:42:04.systemctl --failedis empty (logs/droplet-units.txt:1); nothing on the box crashed.Where the 403 comes from
dataCollectionsEnsureOrgAccess—control-plane/cmd/control-plane/datacollectionshealth.go:251, reached as the check's last step at:232. The refused call is thePATCHat:256-257against/api/orgs/data-collections/access(dataCollectionsOrgAccessPath,:239-241), seedingoperator → ownersandeveryone@getgrist.com → editors(:252-255). The message text is minted at:532.:200-228). So the owner API key is valid, Grist is serving, and the door is reachable — the refusal is specific to the org-access WRITE.:269-274), so we have no picture of what the org's access list actually held at that moment. That is the first thing the fix should capture.What is different about a redeploy
The founding stood this service up fine: the
services-rowleg wroteartifacts/services-rows.jsonat 06:32 with{"service":"data-collections",…,"status":"done","address":"https://data-collections.roles-proof.idss.nz"}—foundingServiceRowsoff the founding's own S11 deploy rows (app/tests/e2e/journey.rented-services.spec.ts:366-380).Between that
donerow and the 06:36 refusal the only community change is theadd-member(06:33:0x) andgrant-operator(06:33:34,POST /v1/group/operators/_attr/memberforproof-operator) legs — and #1537's grant fan-out includes Grist's own port, which PATCHes the same endpoint with the same owner key:internal/datacollectionssvc/datacollectionssvc.go:222-249(setRole), path at:278. That is the prime suspect: a role reconcile that leaves the org access list in a shape the check's seeding delta can no longer be applied to.Note the reconciler is silent either way here —
setRolereturns a bare no-op when the key is unminted (:223-225) or whenhave == want(:231-233), and only logs on an actual PATCH (:245).grep "org access reconciled" logs/droplet-journal.txtreturns nothing, so we cannot tell from this drive whether Grist's port ran, short-circuited, or was skipped. That silence is itself worth closing.Also worth testing directly: the health check's own docstring at
:245-246asserts "It is idempotent: PATCHing the same delta is a no-op" — this drive is a counter-example on a community that has taken a grant.Consequence
runCheck(internal/provision/health.go:447-514) stands the row FAILED with the honest Detail and lets the deploy reach Active with a P4-S5x fault — that part is the designed behaviour, not the bug. The visible damage is:● data collections downon the panel. It is right there in the red leg's ownartifacts/journey.rented-services-pr-f12e2-journey-on-a-rented-gateway/error-context.mdpage snapshot, on the gateway device row.data-collectionsis inROLES_PROOF_SERVICES(app/tests/e2e/fixtures/rolesProof.ts:44-52), so the drive's lateroperator-data-collections/member-data-collectionsdoor legs walk a Grist whose team-site access was never seeded. With the navigation heal landed, the next drive will run straight into them.Suspected layer
The Grist org-access seam, across its two writers: the deploy-time health check (
control-plane/cmd/control-plane/datacollectionshealth.go:251) and the #1537 roles reconciler port (internal/datacollectionssvc/datacollectionssvc.go:222). Both drivePATCH /api/orgs/data-collections/accesson the same install-admin key with different deltas, and nothing reconciles the two. Reproducible offline against the existing faithful Grist double —control-plane/cmd/control-plane/datacollectionshealth_integration_test.goand the port's own contract tests — by replaying the order this drive took: founding seed → an operator grant through the reconciler → the seed again.drive
20260918T055605Zred atredeploy-services:the Services-tab catalogue shows no newsletters card expect(locator).toBeVisible() failed Locator: locator('[data-field="catalogue-card"][data-service="newsletters"]').first() Expected: visible Timeouevidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T055605Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=bens-mac-04 run=26445
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1574 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope