provision: removing Document editing or Calendar & contacts never leaves the box — both fall through to the bare inventory detach (the GOTCHAS #207 class, left open for these two slugs) #1589
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.
Reference
Matou/idss#1589
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?
What is wrong
Removing Document editing (
docs-editing) or Calendar & contacts (calendar) from a device through provisioning's change mode (P4-S2 untick → P4-S3 Review impact → deploy) has no removal mirror. Both fall through to the bareConfig().DetachServiceat the foot of theremovedloop indeployServicesOnly(internal/provision/deploy.go), which only deletes a clan inventory row. Neither service was ever written as an inventory instance (#351), so the removal edits nothing the node evaluates.This is the GOTCHAS #207 defect class (#1348/#1349), left open for exactly these two slugs:
routablePortModuleexcludesfiles,docs-editingandcalendar"to their own coupled placement paths", but onlyfileshas such a path (detachCohostFiles/detachMemberFilesPlacement).docs-editing
attachDocsEditinglandsdocs-editing.nixinmachines/<node>/and re-runs the files render with the WOPI coupling on.ComposeGatewayCohost/composeMemberEntrystill import it, the front door keeps the Collabora route, the switch never stops coolwsd, andReadDeployedServices(internal/clan/deployedservices.go— file presence is the deployed-set signal) keeps reporting it. The picker re-ticks it next cycle, so the operator's removal silently undoes itself and the box never gets its memory back.calendar
attachCalendarships no module: it re-runs the files render withFilesConfig.Calendarset.What done looks like
docs-editingon a gateway co-host dropsdocs-editing.nix, re-renders files with the WOPI coupling off (when files stays on the node), rewrites the front door without the Collabora route from the reduced fleet-wide union (#1172), and recomposes the gateway entry module — one switch carries all of it, and coolwsd stops.composeMemberEntrywithout it, gateway front door rewritten without the mesh route), asdetachMemberPortdoes for the routable ports.calendarre-runs the files render withCalendar: falseon the node that holds files, on both placements.filestogether withdocs-editingand/orcalendarin ONE deploy still evaluates — the order of unwinding matters (the #790 eval-error class: never drop a module another still-present module references).ReadDeployedServiceslosesdocs-editingafter the removal (theTestDetachPort_RemovesModuleFromDeployedSetshape), and a deploy-level test proves each removal drives the real mirror, notDetachService(theTestDeploy_GatewayCohostPortRemovalDropsTheModuleshape).DetachServicefall-through can no longer be reached by a service that ships a render: a removed slug with a module file and no mirror FAILS the deploy loudly rather than greening a removal that never left the box.Notes
provision-brands.live.spec.ts) proves install → remove on the guest for the seven routable ports only, so nothing live has ever exercised these two removals.calendarbeing deployed needs confirming as part of this — it has no module file indeployedModuleFiles.removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this landsswarm-claim host=bens-mac-04 run=26650
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Implementing #1589, one design call needed a ruling: the ACs and the defect text ("the front door keeps the Collabora route" / "rewrites the front door without the Collabora route from the reduced fleet-wide union") assume docs-editing already earns a front-door route through the fleet-wide union (#1172). It does not today:
routableLiveService/fleetFrontDoorServicesemit files and the seven forward-auth ports, but nothing ever builds adocs-editingLiveService, sodocs-editing.<apex>is never routed — even though the files render pointswopi_urlat that host anddocsediting.godocuments that "the front door fronts it over the mesh (ADR 0074)". So browser WOPI editing has a latent reachability gap, and the removal AC has no route to drop.Ruling: add docs-editing to the front-door union — a co-host routes to
127.0.0.1:9980(loopback), a member device to<mesh>:9980, WOPI exempt paths on the public path (DocsEditingExemptPaths) — so attach routes it and removal drops it from the reduced union, symmetric with files and the ports. This completes the ADR 0074 posture the design already intends (Collabora binds mesh-only, the front door fronts it, forward_auth + WOPI-token exempt paths gate entry); it is not a new public surface beyond the documented design.Why two-way door: revertible in a later commit (drop the union branch), and provable by tests — attach routes docs-editing on the front door, removal rewrites it without the route. Not on the one-way-door list (no personal credentials, no posture widening beyond the documented ADR 0074 design, no member-facing trust accept, no data destruction, no spend). Proven by new
TestDeploy_DocsEditingGetsFrontDoorRoute(present on attach) +TestDeploy_GatewayCohostDocsEditingRemovalDropsTheModule/...MemberDevice...(absent after removal).removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590close-report for #1589 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590calendar-removered on the rented-services drive: a PLACED Calendar & contacts is forgotten by the change picker —deployedModuleFileshas nocalendarentry, somachineServicesnever derives it and P4-S2 opens with it unticked (the operator c… #1823calendar-removered on the rented-services drive: a PLACED Calendar & contacts is forgotten by the change picker —deployedModuleFileshas nocalendarentry, somachineServicesnever derives it and P4-S2 opens with it unticked (the operator c… #1823