{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Passive APE Region Flow Shadow event v1","type":"object","required":["schema","run_id","event_seq","event_kind","timestamp","execution_confirmed"],"properties":{"schema":{"const":1},"run_id":{"type":"string","minLength":1},"event_seq":{"type":"integer","minimum":1},"event_kind":{"enum":["SELECTION","INPUT_REQUESTED","INPUT_GENERATED","INPUT_COMPLETED","TRANSITION","RESTART","RESET","TRACE_BOUNDARY","DATA_GAP","TOPOLOGY"]},"timestamp":{"type":["integer","null"],"description":"Wall clock ms; archive unknown stays null."},"monotonic_ns":{"type":["integer","null"]},"execution_confirmed":{"type":"boolean"},"source_state":{"type":["string","null"]},"target_state":{"type":["string","null"]},"source_activity":{"type":["string","null"]},"target_activity":{"type":["string","null"]},"transition_identity":{"type":["string","null"],"description":"Execution occurrence identity, not just an aggregate graph edge."},"native_transition_identity":{"type":["string","null"]},"model_action_identity":{"type":["string","null"]},"action_type":{"type":["string","null"]},"input_id":{"type":["string","null"]},"audit_input_id":{"type":["string","null"]},"is_back":{"type":["boolean","null"]},"is_restart":{"type":["boolean","null"]},"is_new_state":{"type":["boolean","null"]},"is_new_transition":{"type":["boolean","null"]},"native_new_state":{"type":["boolean","null"]},"native_new_model_action":{"type":["boolean","null"]},"model_progress":{"type":["object","null"]},"dropped_before":{"type":"integer","minimum":0}},"allOf":[{"if":{"properties":{"event_kind":{"const":"TRANSITION"},"execution_confirmed":{"const":true}},"required":["event_kind","execution_confirmed"]},"then":{"required":["source_state","target_state","transition_identity","model_action_identity","action_type","is_back","is_restart","is_new_state","is_new_transition"],"properties":{"source_state":{"type":"string","minLength":1},"target_state":{"type":"string","minLength":1},"transition_identity":{"type":"string","minLength":1},"model_action_identity":{"type":"string","minLength":1}}}}],"additionalProperties":true}
