Skip to content

Add credential-safe capacity exporter for adaptive routing - #144

Open
lightcloud00 wants to merge 1 commit into
Lampese:mainfrom
lightcloud00:codex/adaptive-capacity-export-20260831
Open

Add credential-safe capacity exporter for adaptive routing#144
lightcloud00 wants to merge 1 commit into
Lampese:mainfrom
lightcloud00:codex/adaptive-capacity-export-20260831

Conversation

@lightcloud00

Copy link
Copy Markdown

Summary

  • export a sanitized capacity snapshot from inside the Codex Switcher trust boundary
  • expose domain-separated hashed aliases, plan class, allowance percentage, reset/expiry timestamps, running state, and safe availability reasons only
  • fail closed when usage refresh or fresh host admission is unavailable
  • provide a standalone exporter binary for the read-only Phase 1 MCP

Security

The output contract excludes email addresses, account IDs, credentials, tokens, keys, and raw provider bodies. A Rust regression test verifies identity and token redaction.

Verification

  • cargo test --manifest-path src-tauri/Cargo.toml capacity_export --lib
  • cargo build --manifest-path src-tauri/Cargo.toml --bin codex-switcher-capacity-export
  • live Phase 1 MCP refresh/list returned sanitized hashed aliases only

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant