Master Axiom cmux Cloud PR
Cloud diagnostics rejected valid placement failures and RC-client batches, then permanently dropped them on 400. Cloud reads could overlap or outlive their callers, auth refresh could exceed its original deadline, and guest installation failures could lose their rollback outcome. This master PR consolidates the scoped Cloud fixes after reconciling the current main branch.
Fixes #13138. Fixes #12625. Fixes #12626. Follow-up hardening for the already-merged #12624. Coverage and unresolved evidence: #13140.
Changes
- Accept placement failures and RC metadata through sanitized ingestion, durable storage, and export while preserving trace, operation, span, and client-channel data.
- Share auth refreshes with independent cancellation, session fencing, and one absolute deadline.
- Coalesce list, stats, and usage reads with separate caller deadlines and a fixed transport cap; retain
Retry-After, bound cooldown memory, invalidate only affected scopes and paths, enforce access gates, and cancel or replace panel work correctly. - Show a retryable offline state even when reachability changes during the first list request.
- Validate staged guest CLI installation before publication; distinguish exit, missing-status, timeout, and cleanup outcomes while retaining unconfirmed provider allocations.
- Keep the focused Cloud acceptance suites explicit in CI, with a nonzero execution guard for each selected suite.
Scale and regression evidence
The deterministic read-coordination fixture covers 1, 10, 100, and 1,000 machines with four owners and asserts one transport request per machine, independent caller deadlines, cancellation/teardown, offline rejection, bounded cooldowns, and stale-response replacement. This is normalized request/concurrency evidence for the changed path. The historical Axiom before/after numbers cannot be recomputed in this session because Query Read is denied for the supplied token; no live recurrence or latency claim is made.
Main reconciliation
The branch is clean, origin/main at 3337293da049b7be37bc67489710986c389f54e4 is an ancestor of the current head 6c95ef332e497f681f45d1e530d77c31d5f7e8de, and the latest pull was a conflict-free merge. No merge, deployment, production mutation, or billing change has been performed.
Evidence
- Hosted validation immediately before the final reachability replay commit had green compile admission, Swift package tests, release build, web, guest-install, auth, and focused checks; the exact c3ec4d7140 SHA was then compiled successfully by fleet. The app-host shards remain blocked by unrelated UI/WebKit/design-mode baseline failures after the permitted rerun; the Cloud identity/read tests pass on the rerun. The current c3ec4d7140 PR CI macOS status is still pending.
- Local validation completed for the focused web suites,
bun run typecheck, Swift file budgets, PBX/project and test wiring, package grouping, package-resolved policy, andgit diff --check. No local Swift/Xcode build was run. - Fleet job
8222beb98abbb1bccb62bdf2verified the previous pre-main-sync head and is superseded by the current main merge; a new exact-head tagged build is required after the fresh checks stabilize.
Limits
Axiom Query Read remains denied with HTTP 403 for the supplied token. The source and ticket mapping is complete, but no live 24-hour, 7-day, or retention-window APL audit, production recurrence count, or runtime dogfood claim is made. Historical provider and daemon reports remain needs-repro in #13140. The coverage ledger is /Users/austinwang/.local/state/cmux-axiom-cloud-audit/coverage.md.
Review trigger
Full closeout review requested for the consolidated Cloud diagnostics, auth, read-coordination, guest-install, and cleanup changes. The current head is reviewed against origin/main; automatic review threads are replied to and resolved. The PR stays unmerged until hosted checks and the tagged fleet build are green.
Checklist
- Focused Cloud telemetry, read ownership, auth transition, guest install, cleanup, and route-response coverage added.
- Local web suites, typecheck, localization parity, PBX/test wiring, Swift budgets, package policy, and workspace grouping verified where supported.
- Current
origin/mainreconciled conflict-free at3337293da0; the Cloud read, reachability, guest-install, and current main changes were preserved. - Review findings have source-backed replies; intentional architecture/package/docstring findings are documented in the PR follow-up comment.
- Demo video: not applicable to this backend/telemetry and test-contract consolidation; the tagged fleet artifact is built and awaits controller publish recovery.
- Live Axiom recurrence audit: blocked until Query Read permission is granted (HTTP 403); no production log claim is made.