Exarch’s modules form a DAG
Exarch’s top-level modules form a directed acyclic graph: a crate:: reference from a module to one that already reaches it, outside tests and comments, is a build break.
The layers, leaves first: a module sits one above its deepest dependency, so modules on one line are unordered (see exarch-architecture and exarch):
app,card,clock,latch,library,site,skillproviderconfig,policy,recordbus,net_policy,prompt,walletscheduleenquiryshell_evalagentport,signalsboot,host,tuiheadlesscli,lib
Each boundary says what the lower layer is spared:
providerknows norecord: a provider speaks the wire and nothing of the session’s durable log.recordknows nobus: it publishes through itsPublishtrait, never to a concrete bus.busknows noagent: it ownsAgentMailbox/AgentAddressand uses ral scopes for life/exchange cancellation.scheduleandshell_evalreach that mailbox without depending on its agent owner.agentknows noportorhost:agentandbussit belowport, which sits belowhost,tuiandheadless. The host launches and joins roots; the port addresses them without retaining their launch.- Frontends reach agents through
port:tuinames neitheragent,busnorhost;headlessnames neitheragentnorbus(it may observe its host’s feed). Outside the crate, onlyhostandportreach agents (a-frontend-holds-a-port). shell_evalknows noagent: the desk is reached throughral_core::carrier::Host.promptandenquiryknow noagent: both are read by the agent, never the converse.
Pinned by exarch/tests/layering.rs::{exarch_modules_form_a_dag, frontends_reach_agents_through_the_port}. The graph is every production
crate:: reference between top-level modules, main.rs counting as lib; the
first test rejects a cycle and each ordered pair of LAYERED
(provider < record, record < bus, bus < agent, agent < port,
port < host, port < tui and the rest), and the layers above are the graph as
it stands, not an order the test fixes beyond those pairs.
control_commits_belong_to_record_and_bus keeps control commits in record/
and bus/.