provide() and run() must return an object holding every token the node
provides. A provider that returned its value bare (return client rather
than return { db: client }) booted without complaint: the token was
undefined, and the client's own properties were spread over every
request's context. That now fails, naming the node and the fix:
- providers fail the boot;
- steps fail the request;
- plugin nodes are held to the same rule for each token in provides.
A handler that returned a Fetch Response was JSON-encoded and went out
as 200 {}, with its status, headers and body lost. It now fails the
request with a TypeError that points to a plain value, @Transformer or
HttpError. Sending a Response as is can be added later without
breaking anything; taking it back would not be possible.
The check stays synchronous for a synchronous node, so a plain step
adds no microtask. Fixed health tests whose providers returned {}.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The CARD-22 gate audit found these runtime cells without tests:
- CARD-17 T1-T3 (booting, ok, degraded) existed only on Node. Add them
on Deno and Bun. T1 goes through app.fetch, because serveDeno and
serveBun boot before they bind. T2 and T3 go through a real listener
and assert the response body, not only the status.
- CARD-16 T6 (encodings ['gzip'] with a br-only client gives identity)
was missing on Deno and Bun.
- CARD-16 T8 on Deno and Bun lacked the handler-set content-encoding
case and the 204 case.
A negative run of T6 against compression: true fails with 'encoded as
br', so the check can tell the two cases apart.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>