Files
felhom.eu/documentation/audits/build-release-4-2026-11-15/A/redproof-ctrl-window.txt
T
admin bb226f2355
gates / gates (push) Successful in 2m16s
docs: §8.2f as built — the off-site copies of a removed app end after 30 days (D72, D84); the controller's red-proofs
- 07 §8.2f: [FACT — built, not released]; D84 ruled (decision 309); the five
  parts as built, the allowance, the audit, the mail; every edge case with the
  test that pins it; what differs from the design; the limit (the hub cannot
  read a snapshot's tags); every household text as built, Hungarian and
  English, with the mail; what a box must show before a release. A household
  with no notification address gets the page only.
- 08 §6.5 and §8.1: the receipt offsite_end_scheduled and the two operator
  records.
- 05: the app record's table in the delete rules; the window API's new fields.
- The controller's red-proof outputs (56 mutations).
- hub tests: the English fixture sentence uses the box's quote marks.

Nothing is released and no box has run it.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-11-15 14:13:30 +01:00

123 lines
9.1 KiB
Plaintext

### internal/backup/offbox_ended.go
== MUTATION: a snapshot that ALSO carries a living app's tag is a candidate
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_NoRecordNoDeletion (0.00s)
offbox_ended_test.go:156: opened=1 claims=[{App:_shares RemovedAt: EndsAt: SnapshotIDs:[s1-full]} {App:immich RemovedAt: EndsAt: SnapshotIDs:[i1-full i2-full vi-full]} {App:kimai RemovedAt: EndsAt: SnapshotIDs:[k1-full]} {App:viku
offbox_ended_test.go:156: opened=1 claims=[{App:_shares RemovedAt: EndsAt: SnapshotIDs:[s1-full]} {App:immich RemovedAt: EndsAt: SnapshotIDs:[i1-full i2-full vi-full]} {App:kimai RemovedAt: EndsAt: SnapshotIDs:[k1-full]} {App:viku
offbox_ended_test.go:156: opened=1 claims=[{App:_shares RemovedAt: EndsAt: SnapshotIDs:[s1-full]} {App:immich RemovedAt: EndsAt: SnapshotIDs:[i1-full i2-full vi-full]} {App:kimai RemovedAt: EndsAt: SnapshotIDs:[k1-full]} {App:viku
== MUTATION: a snapshot made after the removal is a candidate
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_NotDueYet_AndASnapshotYoungerThanTheRemoval (0.00s)
offbox_ended_test.go:412: removed [k1-full k2-full], want k1 only — k2 was made after the removal
== MUTATION: an INSTALLED app's record is due
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_SharesAndInfraAreNeverEligible (0.00s)
offbox_ended_test.go:254: due = map[traefik:{traefik 2026-10-06T14:57:25+02:00 2026-11-05T13:57:25+01:00} vikunja:{vikunja 2026-10-06T14:57:25+02:00 2026-11-05T13:57:25+01:00}], want vikunja only
--- FAIL: TestD72_AnAppInstalledAgainIsNeverDue (0.00s)
offbox_ended_test.go:379: claims=[{App:vikunja RemovedAt:2026-10-15T12:57:25Z EndsAt:2026-11-14T12:57:25Z SnapshotIDs:[v1-full v2-full v3-full]}] removed=[v1-full v2-full v3-full] — an installed app's history must not be touched
== MUTATION: a record is due before its day (29 days)
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_NotDueYet_AndASnapshotYoungerThanTheRemoval (0.00s)
offbox_ended_test.go:404: 29 days: claims=[{App:vikunja RemovedAt:2026-10-17T12:57:30Z EndsAt:2026-11-16T12:57:30Z SnapshotIDs:[v1-full v2-full v3-full]}] removed=[v1-full v2-full v3-full]
== MUTATION: a box that cannot tell what it runs treats every app as removed
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_WithoutTheLivingCheckNothingIsDue (0.00s)
offbox_ended_test.go:390: claims=[{App:vikunja RemovedAt:2026-10-15T12:57:35Z EndsAt:2026-11-14T12:57:35Z SnapshotIDs:[v1-full v2-full v3-full]}] removed=[v1-full v2-full v3-full]
== MUTATION: the box removes an id the hub agreed to but the box never named
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_NoRecordNoDeletion (0.00s)
offbox_ended_test.go:159: with NO end record the window removed [i1-full i2-full k1-full s1-full v1-full v2-full v3-full vi-full]
offbox_ended_test.go:159: with NO end record the window removed [i1-full i2-full k1-full s1-full v1-full v2-full v3-full vi-full]
offbox_ended_test.go:159: with NO end record the window removed [i1-full i2-full k1-full s1-full v1-full v2-full v3-full vi-full]
== MUTATION: an id the policy already removes is named again for ended apps
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_OneGuard_AndTheAllowanceIsBesideTheCap (0.00s)
offbox_ended_test.go:363: removed_for_ended_apps = [v1-full v2-full v3-full], want v2,v3 (v1 went under the cap)
== MUTATION: the record closes while a copy of the app is left
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TheEndedAppsOwnSnapshotsGoAndNothingElse (0.00s)
offbox_ended_test.go:208: the record was closed although a snapshot with vikunja's tag is still in the store
--- FAIL: TestD84_TheBoxRemovesOnlyWhatTheHubAgreedTo (0.00s)
offbox_ended_test.go:298: the record is gone although copies of the app are left — the next window could not finish the job
== MUTATION: a record with no copy at all is never closed
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_ARecordWithNoCopiesIsClosedQuietly (0.00s)
offbox_ended_test.go:429: want the record closed with no history line; pending=true history=[]
== MUTATION: every due record is closed before the window (nothing is claimed)
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TheEndedAppsOwnSnapshotsGoAndNothingElse (0.00s)
offbox_ended_test.go:179: the claim sent to the hub = [], want vikunja with v1,v2,v3 only (not the snapshot shared with immich)
--- FAIL: TestD72_ASharedSnapshotGoesWhenBothHaveEnded (0.00s)
offbox_ended_test.go:222: removed [], want both apps' snapshots and the shared one
== MUTATION: a press writes a record on a box without the hub's tier
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TierOffAtTheDate_TheRecordWaits (0.00s)
offbox_ended_test.go:462: a press on a box without the hub's tier: created=true err=<nil>, want ErrOffsiteEndNotOffered and no record
== MUTATION: a press writes a record for an INSTALLED app
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_SharesAndInfraAreNeverEligible (0.00s)
offbox_ended_test.go:265: "traefik" got an end record
offbox_ended_test.go:269: 1 record(s) written
--- FAIL: TestD84_OnePressOneMail (0.00s)
== MUTATION: a second press mails again
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_OnePressOneMail (0.00s)
offbox_ended_test.go:481: second press: created=true rec={App:vikunja RemovedAt:2026-11-15T12:58:17Z EndsAt:2026-12-15T12:58:17Z} err=<nil> — want the first record, unchanged
== MUTATION: a press mails nobody
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_OnePressOneMail (0.00s)
offbox_ended_test.go:484: two presses gave 0 mail(s): [] — want ONE, for the record
14 mutations, 0 not a red-proof
### internal/backup/offbox.go
== MUTATION: the report does not carry the pending records
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TheReportCarriesThePendingRecords (0.00s)
offbox_ended_test.go:526: report = &{Enabled:true EscrowState:escrowed State: EndedApps:[] AbandonPurgeRequested:false LastRun: LastStatus: LastSuccess: SnapshotCount:0 RepoSizeBytes:0 QuotaGB:0 StatsKnown:false LastIntegrityCheck
1 mutations, 0 not a red-proof
### internal/backup/offbox_window.go
== MUTATION: the agreed ended ids are not removed
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TheEndedAppsOwnSnapshotsGoAndNothingElse (0.00s)
offbox_ended_test.go:185: removed [], want exactly vikunja's own three
--- FAIL: TestD72_ASharedSnapshotGoesWhenBothHaveEnded (0.00s)
offbox_ended_test.go:222: removed [], want both apps' snapshots and the shared one
== MUTATION: the claims are not sent to the hub
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_TheEndedAppsOwnSnapshotsGoAndNothingElse (0.00s)
offbox_ended_test.go:179: the claim sent to the hub = [], want vikunja with v1,v2,v3 only (not the snapshot shared with immich)
== MUTATION: the result names ended ids that are still in the store
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_TheResultNamesOnlyIdsThatAreReallyGone (0.00s)
offbox_ended_test.go:565: result = {ID:7 CountBefore:8 CountAfter:8 Removed:0 Outcome:error Reason:Fatal: unable to remove RemovedForEndedApps:[k1-full]} — a failed forget removed nothing, so nothing may be named as removed for en
== MUTATION: a carried-out end never becomes history
RED on the mutant, GREEN on the real file
--- FAIL: TestD72_ASharedSnapshotGoesWhenBothHaveEnded (0.00s)
offbox_ended_test.go:228: 2 record(s) still pending after every copy went
== MUTATION: the ended apps' ids are judged under the cap (D84 says beside it)
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_OneGuard_AndTheAllowanceIsBesideTheCap (0.00s)
offbox_ended_test.go:350: removed 0 ([]), want the policy's 5 and vikunja's 3
5 mutations, 0 not a red-proof
### internal/offsiteapply/seams.go
== MUTATION: an agreement is read from an answer that grants NO window
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_WindowClient_SendsTheClaimsAndReadsTheAgreement (0.00s)
d84_window_client_test.go:59: not granted: {Granted:false ID:0 NewestAllowed:0001-01-01 00:00:00 +0000 UTC MaxRemove:0 Reason:not due EndedAllowed:[aa bb] EndedRefused:[]} <nil> — an agreement without a window must not reach the b
== MUTATION: the request does not carry the claims
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_WindowClient_SendsTheClaimsAndReadsTheAgreement (0.00s)
d84_window_client_test.go:41: the hub did not receive the claim: null (unexpected end of JSON input)
== MUTATION: the agreement is not read from a granted window
RED on the mutant, GREEN on the real file
--- FAIL: TestD84_WindowClient_SendsTheClaimsAndReadsTheAgreement (0.00s)
d84_window_client_test.go:44: window = {Granted:true ID:9 NewestAllowed:2026-12-20 03:00:00 +0000 UTC MaxRemove:10 Reason: EndedAllowed:[] EndedRefused:[{App:immich Reason:the box's newest report lists the app as installed}]}, wan
3 mutations, 0 not a red-proof