Skip to content

feat(config): reserve the per-entrypoint cache policy (fail closed) - #12

Merged
airyland merged 1 commit into
vrtfrom
feat/ctx-exports-cache-config
Nov 29, 2026
Merged

airyland merged 1 commit into
vrtfrom
feat/ctx-exports-cache-config

Conversation

@airyland

Copy link
Copy Markdown

First code slice for A3 (docs/ctx-exports-cache.md).

  • workerd.capnp: Worker.entrypointCaches (name + per-worker host cache ServiceDesignator). The schema compiles with capnp compile.
  • server/worker.rs: a non-empty list is rejected at link time with a service error until the loopback decorator exists, so a config cannot silently no-op.
  • No runtime behavior change; empty/unset keeps today's behavior.

The next change implements the ctxExports loopback decorator and adds the mock-cache-service tests (the gate is removed then). CI VRT build compiles the Rust binding addition.

Adds Worker.entrypointCaches (name + per-worker host cache service) per
docs/ctx-exports-cache.md, but rejects a non-empty list at link time: a
config must not silently no-op while the loopback cache decorator is not
implemented. The capnp schema compiles; the decorator and its tests land
in the next change.
@airyland
airyland merged commit c7e8d66 into vrt Nov 29, 2026
3 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