Today a mesh scope export is one of two things: an app-scope provider (one RPC at boot, memoised for the process) or a request-scope step (one RPC per request). There is no way to say "compute this on the teapot every time it is needed, but require it to exist before the app serves traffic."
Why that shape is missing
The gap became visible while working out what a teapot can actually export. A database provider cannot cross the mesh at all — the wire is JSON, so a handle with methods arrives as {}. What can cross is the result of using that handle: the teapot holds the pool, computes, and returns data.
That is not a provider, because a provider's value is memoised and this must run per use. And it is not quite a step, because a step's failure mode is "the request fails" while this one should also fail the boot if the teapot does not export it — the app has declared it needs something that must exist.
The distinction, stated plainly
It is not a new transport mechanism. Runtime-wise an executable provider and a step are identical: computed on the teapot, per call, uncached, failing the request. What separates them is strictness at boot:
validated at boot
cached
where failure lands
provider
yes
yes
boot if absent, request if it disappears
executable provider
yes
no
request
step
yes
no
request
Worth naming that way in whatever ships, because someone will look for a technical difference between the last two and not find one.
Open questions
Does this earn a decorator option (@Provider({ executable: true })) or a distinct decorator? The manifest already carries a scope per token, so the teapot declares it and the teacup obeys — a teacup must not decide how to treat something the teapot defined.
The manifest's ScopeEntry.scope is currently 'app' | 'request'. A third value is an additive field change, so by the rule beside MESH_PROTOCOL_VERSION it does not move the version — an old teacup would not recognise it, which needs a decision of its own.
Related
Depends on nothing, but overlaps the degrade work and the transport guard.
Today a mesh scope export is one of two things: an app-scope **provider** (one RPC at boot, memoised for the process) or a request-scope **step** (one RPC per request). There is no way to say *"compute this on the teapot every time it is needed, but require it to exist before the app serves traffic."*
## Why that shape is missing
The gap became visible while working out what a teapot can actually export. A database provider cannot cross the mesh at all — the wire is JSON, so a handle with methods arrives as `{}`. What *can* cross is the **result** of using that handle: the teapot holds the pool, computes, and returns data.
That is not a provider, because a provider's value is memoised and this must run per use. And it is not quite a step, because a step's failure mode is "the request fails" while this one should also fail the **boot** if the teapot does not export it — the app has declared it needs something that must exist.
## The distinction, stated plainly
It is not a new transport mechanism. Runtime-wise an executable provider and a step are identical: computed on the teapot, per call, uncached, failing the request. What separates them is **strictness at boot**:
| | validated at boot | cached | where failure lands |
| --- | --- | --- | --- |
| `provider` | yes | yes | boot if absent, request if it disappears |
| `executable provider` | yes | **no** | request |
| `step` | yes | no | request |
Worth naming that way in whatever ships, because someone will look for a technical difference between the last two and not find one.
## Open questions
- Does this earn a decorator option (`@Provider({ executable: true })`) or a distinct decorator? The manifest already carries a scope per token, so the *teapot* declares it and the teacup obeys — a teacup must not decide how to treat something the teapot defined.
- The manifest's `ScopeEntry.scope` is currently `'app' | 'request'`. A third value is an additive field change, so by the rule beside `MESH_PROTOCOL_VERSION` it does not move the version — an old teacup would not recognise it, which needs a decision of its own.
## Related
Depends on nothing, but overlaps the degrade work and the transport guard.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Today a mesh scope export is one of two things: an app-scope provider (one RPC at boot, memoised for the process) or a request-scope step (one RPC per request). There is no way to say "compute this on the teapot every time it is needed, but require it to exist before the app serves traffic."
Why that shape is missing
The gap became visible while working out what a teapot can actually export. A database provider cannot cross the mesh at all — the wire is JSON, so a handle with methods arrives as
{}. What can cross is the result of using that handle: the teapot holds the pool, computes, and returns data.That is not a provider, because a provider's value is memoised and this must run per use. And it is not quite a step, because a step's failure mode is "the request fails" while this one should also fail the boot if the teapot does not export it — the app has declared it needs something that must exist.
The distinction, stated plainly
It is not a new transport mechanism. Runtime-wise an executable provider and a step are identical: computed on the teapot, per call, uncached, failing the request. What separates them is strictness at boot:
providerexecutable providerstepWorth naming that way in whatever ships, because someone will look for a technical difference between the last two and not find one.
Open questions
@Provider({ executable: true })) or a distinct decorator? The manifest already carries a scope per token, so the teapot declares it and the teacup obeys — a teacup must not decide how to treat something the teapot defined.ScopeEntry.scopeis currently'app' | 'request'. A third value is an additive field change, so by the rule besideMESH_PROTOCOL_VERSIONit does not move the version — an old teacup would not recognise it, which needs a decision of its own.Related
Depends on nothing, but overlaps the degrade work and the transport guard.
Moved to GitHub: https://github.com/Expressive-Tea/green-tea/issues/55. Development now happens there.