Repository navigation
feat: unify outcome-capture consent with gateway tenant-level opt-in - #446
Merged
Merged
Conversation
Consent resolution order: gateway tenant policy (gw#755 provisioned
<configDir>/tenant-policy.json, {"outcome_capture":"on"|"off"})
> machine env FUSION_CODE_OUTCOME_CAPTURE (strict "1") > default OFF.
- Tenant-explicit ON/OFF both win over machine env (central opt-in contract)
- Fail-closed: missing file falls to env; malformed/unknown value = OFF
(resolution failure never falls through to env) — table-driven tests
- Diagnostics: fusion-code outcome status — one-line effective consent
state (on/off + source: tenant|env|default-off)
- Docs updated; gates: tsc 0, lint clean, 1315 unit + 543 integration,
build OK, CLI smoke green
Co-Authored-By: Claude Code <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #442 (fusion-code side of the consent unification; gw#755 provisioning is the gateway counterpart).
Consent resolution order
<configDir>/tenant-policy.jsonwith{"outcome_capture":"on"|"off"}) — tenant-explicit ON/OFF both win over the machine env.FUSION_CODE_OUTCOME_CAPTURE=1(strict "1") — local-first v1 surface.Fail-closed: missing policy file falls through to env; malformed JSON or unknown value = OFF (resolution failure never falls through to env).
Diagnostics
fusion-code outcome status— one line:outcome capture: on|off (source: tenant|env|default-off).Verification
🤖 Generated with Claude Code