You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unify outcome-capture consent with gateway tenant-level opt-in (follow-up to #431 acceptance) #442
#431 shipped outcome capture gated by machine-level env FUSION_CODE_OUTCOME_CAPTURE=1. Acceptance noted P3 deviation: issue text specified consent inheriting the gateway tenant-level opt-in switch (gw#755 config). Machine-level env is fine for local-first v1 but does not satisfy ai-* multi-tenant deployments (tenant contract requires explicit, centrally-managed opt-in).
Scope
Consent resolution order: gateway tenant config (gw#755 flag, via admin/config surface) > machine env > default OFF. A tenant-explicit OFF must win over machine env.
Surface the effective consent state in /audit-style diagnostics (one line: source + on/off).
Keep zero-capture guarantee: any resolution failure = OFF (fail-closed), tested.
Acceptance
Table-driven tests: tenant on + env off = on; tenant off + env on = off; no config + env off = off; malformed config = off.
Documented in docs/outcome-capture.md consent section.
Activity
feat: unify outcome-capture consent with gateway tenant opt-in (#442) (…