Skip to content

Remove VirtualNetwork from (most of) card API#5349

Draft
backspace wants to merge 1 commit into
mainfrom
cs-11450-remove-vn-threading-card-api-store
Draft

Remove VirtualNetwork from (most of) card API#5349
backspace wants to merge 1 commit into
mainfrom
cs-11450-remove-vn-threading-card-api-store

Conversation

@backspace

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files  ±0      1 suites  ±0   2h 7m 10s ⏱️ + 5m 15s
3 272 tests ±0  3 257 ✅ +2  15 💤 ±0  0 ❌ ±0 
3 291 runs  ±0  3 276 ✅ +4  15 💤 ±0  0 ❌  - 2 

Results for commit 674b39c. ± Comparison against earlier commit 6516d9e.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   9m 15s ⏱️ + 1m 22s
1 663 tests ±0  1 663 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 742 runs  ±0  1 742 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 674b39c. ± Comparison against earlier commit 6516d9e.

…and serialize paths

Identifiers are canonical RRI inside the runtime, so the form-bridging that
was threaded through these interior paths is no longer needed:

- resolveRef resolves relative references with pure RRI path math (new
  resolveRRIReference in url.ts); no VirtualNetwork.
- isLocalId is a pure syntactic test (not a URL, not an @-prefix).
- SerializeOpts no longer carries a VirtualNetwork; the serialize path
  (card-serialization.ts, serializers/code-ref.ts) preserves prefix-form refs
  and resolves URL-form refs with plain URL math.

The host Store's asURL keeps resolving keys to normalized URL form (via the
VN) so it stays consistent with gc-card-store, which keys instances by their
URL-form data.id. Collapsing the store's canonical key to an opaque RRI token
is deferred to CS-11730 — it needs gc-card-store keyed the same way and must
preserve the URL normalization toURL provides.

VirtualNetwork stays where it resolves an RRI to a real URL at the network
boundary (document loading), at render-time pill resolution, and for the
Store's URL-form keying.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@backspace backspace force-pushed the cs-11450-remove-vn-threading-card-api-store branch from 6516d9e to 674b39c Compare June 26, 2026 21:24
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