367 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
23 lines
1.2 KiB
Python
23 lines
1.2 KiB
Python
"""Narrow authority check for a sequential owned-account switch."""
|
|
|
|
|
|
def validate_gm_second(*, enabled, owned_gm_only, ctor_witness,
|
|
map_registration, dungeon_route, stage_flight_fixture,
|
|
second_guid, second_account, second_rank):
|
|
"""Permit only explicitly selected, pre-existing rank-0 actor 4526."""
|
|
if not enabled:
|
|
return False
|
|
if (not owned_gm_only or ctor_witness or map_registration or dungeon_route
|
|
or stage_flight_fixture or (second_guid, second_account, second_rank) != (4526, 514, 0)):
|
|
raise ValueError('GM sequential switch requires the explicit owned rank0 4526/account514 fixture and no special staging')
|
|
return True
|
|
|
|
|
|
def validate_gm_bound_context(first, second):
|
|
"""Validate the passed manager context before any frontend input."""
|
|
if first.get('guid') != 4509 or second is None:
|
|
return
|
|
if ((first.get('account'), first.get('original_rank'), first.get('runtime_rank')) != (511, 4, 4)
|
|
or (second.get('guid'), second.get('account'), second.get('original_rank'), second.get('runtime_rank')) != (4526, 514, 0, 0)):
|
|
raise ValueError('GM sequential context lacks the reviewed separate owned rank0 fixture')
|