A pull-request-triggered agent that reads the diff and flags architectural drift — a component that bypasses an existing data layer, a rebuilt feature that quietly drops working UI, a file orphaned by a refactor — before the PR merges.
component_drift: a PR reintroduces direct Prisma calls instead of the existing actions layer.orphans: a hand-rolled checkbox left with zero imports after a PR inlined its own version.Auditor's drift findings running alongside Ledger's daily pipeline-gap checks.
Why it matters
•Caught component_drift (a PR reintroducing direct Prisma calls instead of the existing actions layer) and ia_drift (a rebuilt data layer that silently dropped the FilterBar UI) in the same week.
•Flags orphaned files too — a hand-rolled checkbox left with zero imports once a PR inlined its own version instead of reusing the shared one.
•The second agent extracted through Moirai, and the harder test of the protocol: PR-triggered rather than scheduled, writes to an inbox sink rather than filing issues.