hub (unreleased): a deleted box or household leaves no rows in the tables that had no delete; the delete journal stays (R-1376, D73)
gates / gates (push) Successful in 2m4s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-14 18:32:34 +01:00
1 parent 0ce752a370
commit 73d99d06c5
12 files changed
+440 -5

No files matched your search

@@ -0,0 +1,82 @@
== MUTATION: a deleted box keeps its update reports (the old behaviour)
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:92: os_reports: 2 row(s) left for the deleted box (want 0)
== MUTATION: a deleted box keeps its update settings
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:92: os_host_settings: 1 row(s) left for the deleted box (want 0)
== MUTATION: a deleted box keeps its kernel notices
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:92: os_kernel_notices: 1 row(s) left for the deleted box (want 0)
== MUTATION: the alarm marks are matched by LIKE on the box's id (a look-alike box loses its marks)
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:92: alarm marks: 0 row(s) left for the deleted box (want 10)
d73_gone_rows_test.go:107: another box (box-a1b) has 0 alarm mark(s) left, want its 5
d73_gone_rows_test.go:107: another box (x-box-a1) has 0 alarm mark(s) left, want its 5
== MUTATION: the alarm marks of a deleted box stay
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:92: alarm marks: 15 row(s) left for the deleted box (want 10)
== MUTATION: the box delete also removes the HOUSEHOLD's off-site key record
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_DeleteHostRemovesTheBoxesRows (0.05s)
d73_gone_rows_test.go:97: offsite_keys: 1 → 0 — a box delete must leave the HOUSEHOLD's rows (the household still exists)
6 mutations, 0 not a red-proof
== MUTATION: a deleted household keeps its off-site key record
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeRemovesTheHouseholdsRows_JournalStays (0.04s)
d73_gone_rows_test.go:137: the preview's residue does not count the three tables: &{Reports:0 AppTelemetry:0 AppLogTails:0 LogTailRequests:0 NotificationPrefs:0 SelfBindTokens:0 ApplianceRegistrations:0 AppLogIssueRefs:0 OffsiteKe
== MUTATION: a deleted household keeps its abandon requests
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeRemovesTheHouseholdsRows_JournalStays (0.04s)
d73_gone_rows_test.go:137: the preview's residue does not count the three tables: &{Reports:0 AppTelemetry:0 AppLogTails:0 LogTailRequests:0 NotificationPrefs:0 SelfBindTokens:0 ApplianceRegistrations:0 AppLogIssueRefs:0 OffsiteKe
== MUTATION: the three tables are purged and not counted in the preview
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeRemovesTheHouseholdsRows_JournalStays (0.04s)
d73_gone_rows_test.go:137: the preview's residue does not count the three tables: &{Reports:0 AppTelemetry:0 AppLogTails:0 LogTailRequests:0 NotificationPrefs:0 SelfBindTokens:0 ApplianceRegistrations:0 AppLogIssueRefs:0 OffsiteKe
3 mutations, 0 not a red-proof
== MUTATION: the operator's action log of a deleted household is never deleted
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeRemovesTheHouseholdsRows_JournalStays (0.04s)
d73_gone_rows_test.go:171: operator_actions a year after the deletion: 1, want 0
== MUTATION: the one-year prune also empties the delete journal
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeRemovesTheHouseholdsRows_JournalStays (0.05s)
d73_gone_rows_test.go:178: journal host_deletions after the one-year prune: 0 row(s), want 1
2 mutations, 0 not a red-proof
== MUTATION: the sweep removes a LIVE box's reports (no owner check)
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeOrphanRows_OnlyTheGone (0.05s)
d73_gone_rows_test.go:214: live / os_reports: 0 row(s), want 2
d73_gone_rows_test.go:214: ghost / os_reports: 0 row(s), want 2
d73_gone_rows_test.go:219: the sweep reported map[offsite_abandon_requests:1 offsite_keys:1 offsite_windows:1 os_host_settings:2 os_kernel_notices:2 os_reports:8] (total 15), want 11 rows: 8 box rows of mid and gone, 3 household r
== MUTATION: the sweep removes the off-site rows of a household in the middle of its delete
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeOrphanRows_OnlyTheGone (0.04s)
d73_gone_rows_test.go:214: mid / offsite_windows: 0 row(s), want 1
d73_gone_rows_test.go:219: the sweep reported map[offsite_abandon_requests:1 offsite_keys:1 offsite_windows:2 os_host_settings:2 os_kernel_notices:2 os_reports:4] (total 12), want 11 rows: 8 box rows of mid and gone, 3 household r
== MUTATION: the sweep removes the off-site rows of a household that still has a box
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeOrphanRows_OnlyTheGone (0.05s)
d73_gone_rows_test.go:214: ghost / offsite_keys: 0 row(s), want 1
d73_gone_rows_test.go:219: the sweep reported map[offsite_abandon_requests:1 offsite_keys:2 offsite_windows:1 os_host_settings:2 os_kernel_notices:2 os_reports:4] (total 12), want 11 rows: 8 box rows of mid and gone, 3 household r
== MUTATION: the sweep leaves the kernel notices of a gone box
RED on the mutant, GREEN on the real file
--- FAIL: TestD73_PurgeOrphanRows_OnlyTheGone (0.05s)
d73_gone_rows_test.go:214: mid / os_kernel_notices: 1 row(s), want 0
d73_gone_rows_test.go:214: gone / os_kernel_notices: 1 row(s), want 0
d73_gone_rows_test.go:219: the sweep reported map[offsite_abandon_requests:1 offsite_keys:1 offsite_windows:1 os_host_settings:2 os_reports:4] (total 9), want 11 rows: 8 box rows of mid and gone, 3 household rows of gone
4 mutations, 0 not a red-proof
== MUTATION: the daily prune does not call the sweep
RED on the mutant, GREEN on the real file
--- FAIL: TestR1383_MainWiresTheSilentFailureChecks (0.00s)
r1383_wiring_test.go:74: main.go: orphan sweep in the daily prune — found 0 time(s), want 1
1 mutations, 0 not a red-proof