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:
Teknium
2026-09-02 10:41:42 -07:00
parent a3d33fe22f
commit 4e65d089c0
+487 -1178
View File
File diff suppressed because it is too large Load Diff