Skip to content

package_import and a vxAPI parity test (Track U, U4) - #60

Merged
coucou merged 1 commit into
mainfrom
u4-parity
Nov 19, 2026
Merged

coucou merged 1 commit into
mainfrom
u4-parity

Conversation

@coucou

@coucou coucou commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Track U, work package U4 (#59): every vxAPI RPC is reachable from vxmcp, or excluded with a recorded reason.

  • package_import (PackageService.Import): uploads a packed .vxp from the host vxmcp runs on into vxedged's package cache, for when the two share no filesystem. vxmcp reads the file and its digest before asking. The confirmation names the file, the digest and the size, and the ticket binds the digest, so a file changed after the question is asked about again. The upload goes in 1 MiB chunks, with the digest in the first one, and vxedged refuses bytes that don't hash to it.
  • Parity test (crates/vxmcp/tests/parity.rs, run by CI's cargo test --workspace): reads every RPC from the .proto files of the vxedge-api revision pinned in Cargo.lock (located through cargo metadata), and every <Name>ServiceClient::new(..).<method>( call in vxmcp's source. It fails on an RPC with neither a tool nor an exclusion, on an exclusion for an RPC that has a tool or no longer exists, and on a call to an RPC the protos don't declare.
  • crates/vxmcp/rpc-exclusions.txt, the one file of exclusions with their reasons:
    • gateway, zone and compute Up/Down: covered by stages on vehicle_up/experiment_up and by the down tools;
    • GatewayService.Apply: workspace_plan reads the plan without changing the host;
    • zone and compute Apply, Remove and PushImage: not built in vxedged, and deprecated in the proto.
  • README (tool table and a parity paragraph) and CHANGELOG under Unreleased.

Checked:

  • cargo fmt --check, clippy -D warnings and cargo test --workspace: 73 unit tests and 2 parity tests.
  • The parity test fails as it should with an exclusion removed (["ZoneService.Up"]).
  • Live, under the host lock, against a vxedge 0.34.2 release daemon on a scratch runtime dir:
    • declining runs nothing;
    • an accepted import of exp-001 0.2.1 packed by vxedge pkg pack succeeds, and package_list shows the same digest (sha256:fab4ab23…);
    • vxedged refuses a file that isn't a package (not a packed vxp/1 package);
    • a missing file is an invalid-params error before anyone is asked.

U4.2 (a tool per new U3 RPC) follows with each vxedge release that adds one.

package_import uploads a packed .vxp to vxedged's cache through PackageService.Import, behind
the confirmation, with the digest read before asking and bound to the ticket. tests/parity.rs
fails when a pinned vxAPI RPC has neither a tool nor an exclusion in rpc-exclusions.txt.
@coucou
coucou merged commit a003b1e into main Nov 19, 2026
2 checks passed
@coucou
coucou deleted the u4-parity branch November 19, 2026 21:00
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