Skip to content

Unify outcome-capture consent with gateway tenant-level opt-in (follow-up to #431 acceptance) #442

Done

Description

@dahai80

Context

#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

  1. 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.
  2. Surface the effective consent state in /audit-style diagnostics (one line: source + on/off).
  3. 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.

Refs fusion#17 privacy clause; gw#755; code#431.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions