Skip to content

test: launch admission matrix; one pure decision for every launch path - #2366

Merged
Th0rgal merged 2 commits into
masterfrom
claude/launch-admission-matrix-6a004f
Nov 30, 2026
Merged

Th0rgal merged 2 commits into
masterfrom
claude/launch-admission-matrix-6a004f

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Nov 30, 2026

Copy link
Copy Markdown
Owner

One pure launch admission decision that every launch path calls, plus a table-driven matrix that checks every combination against it. The matrix would have caught #2355 and guards #2359.

What changed

  • lean/Orb/LaunchAdmission.lean (new, pure, shared by Core and orb-locald): harnessRoute (placement × harness × router → router / own_login / refusal), vpnBlocksOwnLogin, chooseAccount (generic over the monad: IO in production, Id in the matrix), antigravityHostRoute, antigravityNodeCandidates, vpnExitRefusal.
  • lean/OrbCore/OrbCore/LaunchAdmission.lean (new): admitRequest, the router's per-request cyber gate that /v1 now runs (same 403 codes and messages), and admitLaunch, which runs the launch decision and then the first request's.
  • Callers rewired, no inline copies left:
    • Control.resolveLocalCoreHarnessSetup: no-router check and unbound Antigravity choice.
    • Control.handleProxyRequest: the cyber 403s.
    • RemoteDispatch: anyVpnConfiguredFor? is replaced by launchAccounts + vpnBlocksOwnLogin?. chooseAntigravityAccount?, the admin-node candidate filter and the Grok node gate also go through the pure functions.
    • RemoteFleetAndRelay.remoteRequiresProxyHarnesses.
    • OrbLocald.Rpc.coreAccountsSetup.
  • Matrix: shared/orb-spec/fixtures/launch-admission.json has 19 first-match rules plus named regression cells. LaunchAdmissionTests expands harness (6) × placement (core/remote/client) × router × VPN state (none, configured, exit in use, other provider only) × marks (none, CVP/Daybreak, reserved) × request (ordinary, Mythos/Daybreak) into 624 cells. It decides each cell with admitLaunch and fails on any mismatch, any cell no rule covers, or any rule that decides no cell.
  • Spec: docs/spec-cards/launch-admission.md.
  • Tests replaced where they duplicated the matrix: the anyVpnConfiguredFor? checks in HarnessProxyTests now only check how stored routes are read, including a route left on an unlisted account. The no-router VPN replay in ProviderContractTests is down to one end-to-end case.

Refusal codes are unchanged: local_harness_vpn_requires_router, grok_vpn_requires_proxy_base_url, REMOTE_AUTH_REQUIRED, antigravity_vpn_requires_account_binding, antigravity_vpn_unavailable:<reason>, no_cyber_access_account, only_reserved_accounts. The internal code core_accounts_harness_unavailable is new; orb-locald still shows the same sentence.

Behaviour notes (principle trade-offs)

  • launchAccounts reads every listed account's route. A route store error now refuses a no-router launch even when it is on another provider's account. Before, only the harness's own category was read. This fails closed.
  • Not covered by the matrix, and left to the per-path tests: quota exhaustion, bound Antigravity missions, the native Antigravity path, and VPN pool or relay failures.

Tests

  • orb-core-test on uruk: launch admission matrix: 624 cells, 19 rules OK. The full run's result is in the comment below.
  • No mobile or desktop UI change.

@Th0rgal

Th0rgal commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Local verification on uruk at e07cbae: orb-core-test EXIT=0 (launch admission matrix: 624 cells, 19 rules OK), orb-locald-test EXIT=0 (lake build; turbo-lean compiled OrbLocald but did not link the test exe).

@Th0rgal
Th0rgal merged commit 652e24c into master Nov 30, 2026
33 checks passed
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