backups: the Backups surface states the no-offsite-copy limit honestly (#310 ruling) #314

Closed
opened 2026-08-06 19:44:42 +00:00 by ben · 1 comment
Owner

Parent

Split from #310 (Ben's 2026-08-06 ready-for-human sweep ruling).

Problem

The offsite S3-compatible backup target does not exist yet (internal/backupengine/targets.go:56 refuses honestly, ADR 0104). But the Backups surface never SAYS so — a member or operator reading the Backups card/tab can reasonably believe the 3-2-1 story is complete when no off-premises copy exists.

What to build

Wherever the Backups surface would imply offsite coverage (the Backups card S7, the Backups tab), state the limit honestly: cross-device replication is live, no offsite copy exists yet. Copy follows the honest-limits voice the surfaces already use; no new screen, no dismissal ceremony. Retire the line automatically when an offsite target lands (#310).

Acceptance

  • Given a community with backups running, When the operator views the Backups surface, Then the no-offsite-copy limit is stated plainly where coverage is summarised.
  • Given the offsite target later activates, When the surface renders, Then the limit line is gone (derived from the engine's target set, not hard-coded copy).
  • Vitest pins both states.
## Parent Split from #310 (Ben's 2026-08-06 ready-for-human sweep ruling). ## Problem The offsite S3-compatible backup target does not exist yet (`internal/backupengine/targets.go:56` refuses honestly, ADR 0104). But the Backups surface never SAYS so — a member or operator reading the Backups card/tab can reasonably believe the 3-2-1 story is complete when no off-premises copy exists. ## What to build Wherever the Backups surface would imply offsite coverage (the Backups card S7, the Backups tab), state the limit honestly: cross-device replication is live, **no offsite copy exists yet**. Copy follows the honest-limits voice the surfaces already use; no new screen, no dismissal ceremony. Retire the line automatically when an offsite target lands (#310). ## Acceptance - Given a community with backups running, When the operator views the Backups surface, Then the no-offsite-copy limit is stated plainly where coverage is summarised. - Given the offsite target later activates, When the surface renders, Then the limit line is gone (derived from the engine's target set, not hard-coded copy). - Vitest pins both states.
Author
Owner

Done in 1d7861e (on origin/main).

The Backups surface now states the no-offsite-copy limit honestly where coverage is summarised, derived from the engine's target set so it retires automatically when offsite lands:

  • backup.Overview gained offsite_available (json), set from a new WithOffsiteAvailable option (default false).
  • backupengine.StoreResolver.OffsiteAvailable() reports the capability — false until the S3 store is wired (#310); Open still refuses offsite.
  • whole_composition.go derives the bool from the resolver and passes it to the orchestrator (the same site that would wire the S3 store flips it).
  • BackupsOverviewScreen.vue renders an honest-limits callout beside the coverage map (data-field="no-offsite-limit", statesNoOffsiteLimit helper): "Cross-device replication is live — no offsite copy exists yet." Gone when the seam reports offsite available — no copy hard-coded on.
  • OpenAPI spec + generated client updated (check:client in sync).

Acceptance:

  • ✓ Backups running → limit stated plainly where coverage is summarised (backupsOverview.test.ts, TestOverview_ReportsOffsiteAvailability).
  • ✓ Offsite later activates → limit line gone, derived from the engine's target set not hard-coded (vitest offsiteAvailable: true fixture + Go WithOffsiteAvailable(true)).
  • ✓ Vitest pins both states.

go test (backup / backupengine / controlapi / control-plane), vitest (964), vue-tsc, eslint, check:client all green.

Done in 1d7861e (on origin/main). The Backups surface now states the no-offsite-copy limit honestly where coverage is summarised, derived from the engine's target set so it retires automatically when offsite lands: - `backup.Overview` gained `offsite_available` (json), set from a new `WithOffsiteAvailable` option (default false). - `backupengine.StoreResolver.OffsiteAvailable()` reports the capability — false until the S3 store is wired (#310); `Open` still refuses offsite. - `whole_composition.go` derives the bool from the resolver and passes it to the orchestrator (the same site that would wire the S3 store flips it). - `BackupsOverviewScreen.vue` renders an honest-limits callout beside the coverage map (`data-field="no-offsite-limit"`, `statesNoOffsiteLimit` helper): "Cross-device replication is live — no offsite copy exists yet." Gone when the seam reports offsite available — no copy hard-coded on. - OpenAPI spec + generated client updated (`check:client` in sync). **Acceptance:** - ✓ Backups running → limit stated plainly where coverage is summarised (`backupsOverview.test.ts`, `TestOverview_ReportsOffsiteAvailability`). - ✓ Offsite later activates → limit line gone, derived from the engine's target set not hard-coded (vitest `offsiteAvailable: true` fixture + Go `WithOffsiteAvailable(true)`). - ✓ Vitest pins both states. `go test` (backup / backupengine / controlapi / control-plane), `vitest` (964), `vue-tsc`, `eslint`, `check:client` all green.
ben closed this issue 2026-08-06 20:04:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#314
No description provided.