Repository navigation
auth otel config - #336
Merged
Merged
auth otel config#336
Conversation
Define the new auth.mode and telemetry.enabled sections in the generated Pkl schema and parse them into per-layer file configuration with provenance. Add schema-pointer validation coverage and document the accepted keys while leaving runtime policy resolution for the follow-up work. Plan: auth-telemetry-policy-config Task: T01 Co-authored-by: SCE <sce@crocoder.dev>
Resolve auth and telemetry settings across user and repository config layers so repository files cannot grant access or telemetry without user consent. Most-restrictive auth resolution, deterministic telemetry states and contradiction warnings, degraded-config shutdown, and projected runtime policy exposure now share one resolver; durable context documents the contract and decision. Plan: `auth-telemetry-policy-config` Task: `T02` Co-authored-by: SCE <sce@crocoder.dev>
Expose resolved auth mode and telemetry consent state in `config show` text and JSON, including provenance, disabled reasons, and the Claude settings compatibility note. Preserve `config validate`'s existing field shape while surfacing policy warnings, and document the reporting contract. Plan: auth-telemetry-policy-config (T03) Co-authored-by: SCE <sce@crocoder.dev>
Prevent managed telemetry startup from probing readiness or credentials when the effective policy disables telemetry, and report that state as a passing doctor result with stable text and JSON output. Add command, doctor, and Claude-hook regressions, and document the enforced policy boundary. Plan: auth-telemetry-policy-config T04 Co-authored-by: SCE <sce@crocoder.dev>
Prevent the hidden telemetry header helper from reading readiness or resolving repository credentials when the effective policy disables telemetry. Resolve the auth runtime config from the working directory, make readiness probing lazy, and cover disabled and invalid-config behavior in unit and multiprocess tests. Plan: auth-telemetry-policy-config (T05) Co-authored-by: SCE <sce@crocoder.dev>
Gate login and whoami on the resolved auth mode before credential storage, returning stable `auth.disabled_by_config` diagnostics. Make telemetry provisioning honor `telemetry.enabled` and report disabled status, while mandatory whoami rejects unauthenticated users and logout remains ungated. Plan: auth-telemetry-policy-config (T06) Co-authored-by: SCE <sce@crocoder.dev>
Reject sync before Agent Trace storage or credential access when auth is disabled, and map the rejection to the stable auth.disabled_by_config error. Gate post-commit auto-sync and doctor readiness on the same background-cloud policy while preserving optional and mandatory behavior. Share the deciding config-file mapping across auth commands and sync, and record a debug event when configured auto-sync is suppressed. Update the CLI context and T07 completion evidence for the policy boundary. Plan: auth-telemetry-policy-config (T07) Co-authored-by: SCE <sce@crocoder.dev>
Prevent `sce setup` from modifying user-level Claude settings when telemetry is not enabled by resolving the layered access policy for the setup repository. Preserve the existing enabled install behavior and document the fixed skip output and unchanged-settings contract. Plan: auth-telemetry-policy-config (T08) Co-authored-by: SCE <sce@crocoder.dev>
Load global and repository policy files alongside an explicitly selected config so explicit runs cannot bypass global or repository auth restrictions or telemetry opt-outs while retaining explicit ordinary-key overrides. Discover repository configuration at the enclosing Git root and use the shared root for repository identity and all policy consumers. Add coverage and update the access-policy contracts for nested repositories, worktrees, explicit precedence, and degraded discovered configuration. Plan: auth-telemetry-policy-config (T08) Co-authored-by: SCE <sce@crocoder.dev>
davidabram
force-pushed
the
auth-otel-config
branch
from
October 21, 2026 07:45
e11a132 to
323c74b
Compare
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.
No description provided.