Skip to main content

Module flows

Module flows 

Source
Expand description

Flow Compiler (EPIC-050, docs/FLOW_COMPILER.md).

Compiles machine-readable Sequence and Data Flow views from entrypoints, plus one Architecture view per repository.

Traversal: BFS through RESOLVED call edges, capped in depth and breadth, recording store/topic/external access; then abstracted to component-level steps (collapse consecutive same-actor hops).

Structs§

FlowEntrypoint

Functions§

collect_entrypoints
Collect entrypoints: routes (handlers), declared intent flows, symbols marked as entrypoints (main-guard / bin / module-entry).
compile_flows
find_symbol_by_name
flow_participant_groups
Flow-participation groups for semantic clustering: for every flow entrypoint (routes, entrypoint-attributed symbols, public exports, queue/callback/event surfaces), the set of symbols reachable via evidence-grade call chains (the same walk the flow compiler uses). Returns (entry symbol, reachable set) pairs so callers can exclude verification-seeded flows. Regions whose symbols share a flow cohere (+3). Deterministic: collect_entrypoints iterates sorted collections and walk_calls is deterministic, so the returned groups are stable for identical graphs.
invocation_surfaces
Seed invocation surfaces from the Wave 9 semantic-fact layer (deterministic — sorted by (kind, symbol, trigger)):