Repository navigation
Claude auth billing - #354
Open
davidabram wants to merge 6 commits into
Open
Claude auth billing #354davidabram wants to merge 6 commits into
davidabram wants to merge 6 commits into
Conversation
davidabram
force-pushed
the
claude-auth-billing
branch
from
November 20, 2026 16:19
f88314e to
c66cc5a
Compare
Define the detector, persistence, hook integration, and context synchronization work needed to record Claude session authentication observations while preserving existing model-state behavior and deferring export changes. Plan: claude-auth-billing-observations Tasks: T01–T05 Co-authored-by: SCE <sce@crocoder.dev>
davidabram
force-pushed
the
claude-auth-billing
branch
from
November 20, 2026 16:23
c66cc5a to
0b8c1fa
Compare
Implement a pure, presence-only detector for documented Claude Code environment signals, with cloud-provider precedence, provider-conflict handling, custom gateway classification, stable enum mappings, and inferred/unknown confidence. Cover precedence, empty/falsy values, billing limitations, and all signal combinations with unit tests. Completes plan `claude-auth-billing-observations` task T01. Co-authored-by: SCE <sce@crocoder.dev>
Add migration 008 for Claude session auth state and let hook runtime accept the exact pre-008 migration ledger while setup and doctor remain strict. Reject other missing or unexpected migrations, and cover compatibility, constraints, setup, doctor, and invalid-ledger cases with tests. Plan: claude-auth-billing-observations Task: T02 Co-authored-by: SCE <sce@crocoder.dev>
Add typed RepositoryAgentTraceDb upsert/read helpers for Claude session auth state, with null-safe change-only updates and pre-008 migration compatibility. Parse persisted enum values strictly and cover replay, mutation, isolation, invalid data, and legacy-ledger behavior with tests. Plan: claude-auth-billing-observations, T03 Co-authored-by: SCE <sce@crocoder.dev>
Record inherited Claude authentication configuration for every valid SessionStart in the local agent-trace database while keeping model-state persistence independent and fail-open. Reuse canonical session IDs, classify only environment-variable presence, and log auth write failures without exposing credentials; add regression coverage and document the local-only hook contract. Plan: claude-auth-billing-observations (T04)
Complete the Claude session auth state plan by documenting migration-008 hook compatibility and local-only export boundaries, and align glossary and export-reader context with the implemented register. Mark T05 and its validation evidence complete so durable context records the detector classification, persistence behavior, and current limitations. Plan: claude-auth-billing-observations (T05)
This branch has not been deployed
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.