본문으로 건너뛰기
Workshop overview
Chapter 5 of 7
15 min

Trace batch reference rows and runtime events separately

Separate two execution contracts in event history and inspect the scope and current limits of the ontology graph.

Question for this chapter

Do the eight batch rows and the two Agent events mean the same thing?

Why this matters now

All rows land in om_event_history, so a row count can make them look like one execution. The batch reproduces reference values for eight zones; runtime events record one operator’s allowed and blocked requests. Audit interpretation depends on this distinction.

Try it

Refresh om_event_history. In a fresh practice space, one run of each preceding action leaves eight batch rows followed by two rows for OPR-WORKSHOP-01, for a total of ten.

ContractProducerRowsuser_idMeaning
Batch referencemap_control_execution8AGENTreproducible coordinates and events for eight zones
Runtime allowedlog_event → event pipeline1OPR-WORKSHOP-01execution evidence for the Busan display command
Runtime blockedlog_rejection → event pipeline1OPR-WORKSHOP-01rejection evidence for the patrol-history question
Korean Portal event-history table showing the TZ-008 UI_CONTROL batch event
The Portal capture is in Korean. Inspect the zone ID and action type on the reproducible batch event first.

Next, run ontology_materialization. After it completes, execute this query in Graph explorer.

MATCH coordinatePath = (z:mc_tactical_zone {zone_id: 'TZ-008'})
  -[:mc_has_spatial_coordinates]->(o:mc_graphic_overlay)
MATCH eventPath = (z)-[:mc_referenced_in_event]->(e:mc_event_history)
RETURN coordinatePath, eventPath
ORDER BY e.created_at DESC
LIMIT 20

Success looks like this

The graph connects the TZ-008 zone to its OV-008 overlay and a batch event. Returning coordinatePath and eventPath displays both nodes and relations.

With the eight batch rows, ontology materialization produces these counts.

OutputRows
mc_tactical_zone8
mc_graphic_overlay8
mc_event_history8
mc_has_spatial_coordinates8
mc_referenced_in_event8

After two runtime events are persisted and materialization runs again, the event entity reaches ten rows. The spatial relation stays at eight. Under the current transformation contract, the event-reference relation still connects only the eight batch rows.

Interpret the result

Each batch action_log places 안전구역객체ID at the top level, where ontology materialization can read it directly. An Agent runtime event nests the original request and result under result, so the current transformation does not materialize that nested zone ID as a relation.

Read the current evidence in three places.

  • Batch zone, coordinate, and event relations: Graph explorer
  • Runtime allowed and blocked requests: om_event_history, filtered by user_id
  • Runtime distribution: the dashboard in the final chapter

The runtime audit event is not missing; it remains in the dataset but is not yet linked as a graph relation. Production end-to-end graph tracing needs a transformation that extracts the nested zone ID.

Next decision

You have separated the two execution contracts and the current graph boundary. Next, check the safe control conditions in four questions before confirming both runtime intents in the final chapter.