rdmsm4x-changelog-20260903-2130-m2-quota-telemetry
rdmsm4x-changelog-20260903-2130-m2-quota-telemetry
One-line summary: Implemented Milestone 2 in TyrellCore: zero-dependency binary protobuf telemetry parsing for Antigravity Ultra thinking/cache tokens and multi-account ChatGPT Pro quota pooling with automatic spoke failover.
Scope
- Machine:
rdmsm4x - Workspace:
/Users/richh/dev/apps/Tyrell - Target:
TyrellCore
Files Modified / Created
Sources/TyrellCore/Telemetry/ProtobufVarintReader.swift(Created): Zero-dependency Protocol Buffers wire format decoder reading 64-bit varints, fixed64, fixed32, length-delimited,gen_metadatausage (input = system + new, prompt cache read, output, thinking tokens, responseId, timestamp), andtrajectory_metadata_blob(workspace URI, created timestamp).Sources/TyrellCore/Telemetry/AntigravityTelemetryEngine.swift(Modified): Binary protobuf SQLite parser, responseID deduplication,attributeSessionTelemetryDetailed, and Google AI Ultra attribution for[email protected]with 4-bucket rolling quota matrix.Sources/TyrellCore/Telemetry/OpenAITelemetryAdapter.swift(Modified): Multi-account dictionary (accountSnapshots: [String: OpenAIQuotaSnapshot]), parsingopenai_vendor_primary_*sub-buckets,accounts, anddelegation_targets, isolatingcffb2bdc([email protected]) fromee3f0a08([email protected]).Sources/TyrellCore/Telemetry/MultiAccountQuotaPool.swift(Modified): Dual ChatGPT Pro tracking, automatic failover state machine (isFailoverActive,failoverAccountID), active vs standby annotation, and delegation hosts list.Tests/TyrellCoreTests/MultiAccountQuotaPoolTests.swift(Created): 6 comprehensive unit tests covering non-overwriting account tracking, automatic failover, 429 cooldown and recovery, full pool exhaustion, and payload parsing.Tests/TyrellCoreTests/AntigravityTelemetryEngineTests.swift(Created): 6 comprehensive unit tests covering wire reader, gen_metadata decoding, trajectory metadata decoding, SQLite deduplication, Google AI Ultra attribution, and live conversation database parsing.
Verification Evidence
swift build --target TyrellCore: Exit code 0, 0 errors, 0 warnings.swift test --filter MultiAccountQuotaPoolTests: Exit code 0, 6/6 tests passed.swift test --filter AntigravityTelemetryEngineTests: Exit code 0, 6/6 tests passed.swift test --filter TelemetryAndMeshTests: Exit code 0, 10/10 tests passed.
Rollback
- Revert the files via
git checkout -- Sources/TyrellCore/Telemetry/ Tests/TyrellCoreTests/or remove created files.