Skip to content

UNVERIFIED DRAFT: integrate Rust Claude usage core with parity CI - #2

Draft
LLRHook wants to merge 3 commits into
codex/sprint-20261022from
codex/wave2-rust-usage-core-20261106
Draft

LLRHook wants to merge 3 commits into
codex/sprint-20261022from
codex/wave2-rust-usage-core-20261106

Conversation

@LLRHook

@LLRHook LLRHook commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

UNVERIFIED DRAFT — final exact-head native/runtime acceptance is pending. Published for the reviewed test-only hosted pipeline; no tested-port or release claim.

Dependency stack: depends on #1, with base codex/sprint-20261022 at a44f3bc. This preserves the existing polling/accounting/lifecycle fixes and keeps this Rust change separately reviewable.

Move Claude usage aggregation, costs, deduplication, rankings, heatmap, burn and sliding-window reduction into one required in-process Rust batch behind the normal collector used by dashboard and tray refreshes. Python retains telemetry parsing, local-time/DST interpretation, Codex accounting and desktop orchestration. Preserve signed arbitrary-size integers, summary-versus-window dedup, stable rankings, float reduction order and existing error behavior.

Add native build/staging, package-local architecture/ABI lookup, a frozen independent Python oracle and synthetic host/native integration tests. Correct UTF-8 Cargo artifact decoding on Windows, private-wire sums beyond Python's decimal conversion limit without changing the global limit, and isolated architecture lookup tests. Hosted CI builds and stages fresh Rust and runs native tests/Clippy, the full 72-case Python suite, real signed-large-sum parity, FFI/error checks and synthetic dashboard/tray collector subprocesses on Python 3.11/3.13 across Linux/macOS/Windows.

Independent source/CI review covers 3a49ce2. Current head e354b09 contains a mechanical Clippy correction to express the same stable descending tool-count sort with sort_by_key and Reverse; the driver checked this delta against the standard-library ordering contract. No lint suppression or CI gate removal was introduced.

Validation:

  • Independent Standards, Spec/source and CI safety/wiring recheck: PASS; zero current findings, all three prior P2s resolved.
  • Five lightweight compiler/native-mocked boundary tests pass with zero skips; independent signed-integer and response-ownership controls pass. No native loads or compiles were needed for those checks.
  • Earlier evidence: 43 baseline tests passed; an initial native build and 64 integration tests passed before subsequent final-source changes. Those passes do not validate the current native artifact.
  • Local final Cargo tests, Clippy, rebuild/staging and full 72-test execution: BLOCKED / NOTRUN at the required disk floor. The retained local library is stale and is not published as final.
  • Initial hosted execution passed the three Rust unit tests, then the newer Clippy rejected the comparator spelling. That lint is corrected in the current head. Hosted exact-head full native/host checks: PENDING. Windows interactive tray, startup, account/probe behavior and remaining architecture/toolchain acceptance are NOTRUN. No performance improvement is claimed.

All collector tests use explicit synthetic Claude/Codex/cache roots. The workflow is test-only, with read-only permissions and no deployment, registry/release publication, account, startup or real usage-data operations.

- Reduce Claude usage and sliding windows through one required Rust batch
- Preserve unbounded counters, cost order, deduplication, and local dates
- Build and load an architecture-specific library with explicit ABI errors
- Retain an independent Python oracle and synthetic host-native regressions
- Document native setup and add portable headless CI build and test gates
- Decode Cargo artifact paths as UTF-8 on every platform
- Preserve arbitrarily large signed window sums across the native wire
- Isolate architecture lookup tests from host sysconfig initialization
- Add real-native and synthetic-boundary regressions for the reviewed defects

TODO:

- Complete final native rebuild and the full 72-test hosted matrix
- Obtain independent source recheck before unverified draft publication
- Express stable descending tool ranking with a Reverse sort key
- Satisfy the hosted Clippy check without changing tie order or lint policy
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