refactor(agent): simplify moa_loop — dataclass accounting, extracted create() helpers, relay dispatch table, compacted docstrings
- _RefAccounting is a slotted dataclass (trace redaction uses dataclasses.replace) - create(): preset resolution, fan-out cadence key, reference joining and usage/cost summing extracted into named helpers; guidance header shared - reference pricing and pending-accounting folds unified (one lock path) - build_moa_facade display-event relay routed via _RELAY_EVENTS table - dict/object tool-call field access collapsed into _field; dead branches removed - comments/docstrings compacted to their invariants and WHY content
This commit is contained in:
+487
-1178
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user