test: close House Plan panel acceptance gaps

Issue: #486
User-Visible: no
This commit is contained in:
Matysh
2026-09-08 00:55:40 +03:00
parent 8a97d4e30d
commit 597488f77e
45 changed files with 587 additions and 413 deletions
+11
View File
@@ -721,6 +721,17 @@ const MUTANT_DEFINITIONS = [
replace: ' if False: # mutant: unverifiable ownership is accepted',
}],
},
{
id: 'panel-readonly-empty-bypasses-write-capability',
guard: 'node demo/smoke_houseplan_panel.mjs',
because: 'an empty read-only panel must stay passive and lazy; bypassing the server write '
+ 'capability would expose Add space and load onboarding for a household viewer (#486 AC10)',
patches: [{
file: 'src/houseplan-card.ts',
find: ' if (this._serverCanWrite !== null) return this._serverCanWrite;',
replace: ' if (this._serverCanWrite !== null) return true; // mutant: read-only becomes writer',
}],
},
{
id: 'version-recovery-treats-unknown-as-mismatch',
guard: 'node --test --test-name-pattern="malformed values stay unknown" '