Files
DeskcommCRM/plan
Rafael Melgaço 80664d4c1a feat(G6-02): native dispatcher respects ai_dispatch_mode [gov-loop]
Audit: flag was absent in code (docs/plan only — vendaval chain didn't bring
it) → full implementation, not no-op. ai_dispatch_mode is a new key in
organizations.settings jsonb (Zod enum native|external, .catch('native')
fail-safe) — no schema migration. Native dispatcher skips 'external' orgs
BEFORE claim (pure continue: no claimEvent, no markEventProcessed, consumed_by
untouched) → event stays pending for Vendaval. skipped_external_dispatch is the
only non-consuming skip. Native unchanged (regression tested).
Verified-by: gov-verifier PASS 2026-07-18T21:19:20-0300
2026-07-18 21:19:21 -03:00
..