backup: offsite target still refused at open — the only real coverage for a one-machine fleet (#310) #370
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.
Dependencies
No dependencies set.
Reference
Matou/idss#370
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?
Found by the #183 rehearsal ratchet's Stage-0 exploration (spec
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md);this is #310's slice surfaced as a rehearsal blocker — link them.
On a one-droplet community, backup honestly counts as nothing (DDR 0146:
backup-copy on the gateway is the principled refusal; a copy on a one-device
fleet is never coverage —
internal/backup/coverage.go:310) and the UI saysso. The only real coverage — an offsite target — is refused at open:
StoreResolver.Openerrors on any Offsite target(
internal/backupengine/targets.go:63) andOffsiteAvailable()is hardfalse. Until it lands, the rehearsal's backup leg asserts the honest floor
message and the export valve only.
Acceptance: given a one-machine community with an offsite target configured,
when a backup runs, then the copy lands offsite and the Backups card counts
it as coverage — proven by the rehearsal drive's backup leg upgrading from
floor-assertion to offsite-assertion.
Landed in
17b8c12onorigin/main.What was done:
StoreResolver.Openno longer refuses an offsite target andOffsiteAvailable()is no longer hard-false. Armed via the newStoreResolver.WithOffsite(OffsiteConfig{...})(endpoint / region / bucket / prefix / credentials), the resolver resolves anOffsitetarget to a newS3Store(internal/backupengine/targets_s3.go) — the S3-compatible offsite byte surface (ADR 0104), plain objects a cold read reads back with the keys + a JSON reader alone (ADR 0082 §2). Spoken over net/http with hand-signed AWS SigV4 and zero third-party SDK (stdlib crypto), path-style so any S3-compatible endpoint (AWS, MinIO, Garage, a partner community's site) works by URL. A half-configured target leaves the resolver unarmed (not coverage); an unarmed resolver still refuses honestly.Freereports ample room (object storage has no filesystem headroom).Acceptance: given a one-machine community with an offsite target configured, a backup now lands the copy offsite and
OffsiteAvailable()reads true, so the Backups overview's no-offsite-copy limit line (#314) retires automatically and the coverage map counts the offsite copy. Where the config comes from in production (config repo names the target, crown-jewel store holds the secret — ADR 0082) rides the family-close compose (#181); this slice makes the engine capable, unblocking the #183 rehearsal drive's backup leg to upgrade from floor-assertion to offsite-assertion.Evidence:
internal/backupengine/targets_s3_test.go—TestStoreResolver_Offsite(unarmed/half-configured refuse + read false; armed opens an*S3Store) andTestS3Store_RoundTrips(exact-byte round-trip through real SigV4 against an in-memory S3 that rejects unsigned requests).go build ./...,go vet,golangci-lint,go test(backup, backupengine) green.role(#1948) #1956