Commit Graph
18 Commits
Author SHA1 Message Date
chrnx 7bd11bff27 docs(plans): implementation plan for the observability contract
Eight tasks from the reviewed design, ordered so the correction lands before
anything consumes it — a logger built on uncorrelated events would grow its own
notion of request identity, which is the failure the design exists to prevent.

Two placement details worth having settled in writing. requestId is generated
in the adapters rather than in handle(), because both read and size-check the
body first, so a 413 never reaches handle() — generating there would leave
exactly the failures an operator most wants to correlate without an id. And
step timing takes N+1 timestamps for N steps, since one step's end is the next
one's start; the design measured that against the naive 2N.

Task 7 benchmarks the hot path and says outright that if the measurement
disagrees with D7, the design changes rather than the number being quietly
kept.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-16 14:08:11 -05:00
chrnx d324ecfcb4 docs(plans): settle the three open questions in the observability design
D6: a request span ends when the handler returns, and stream events carry its
requestId. Ending it at stream close would mix 2ms buffered requests with
hour-long SSE connections in one latency distribution; connection duration is
already readable from stream:open/close once they can be joined. Same boundary
#21 chose for its concurrency gate — the framework should not disagree with
itself about when a request is over.

D7: per-step timing is always on. Measured rather than argued: performance.now()
at step boundaries costs 25.2ns per step against a 10.19us request, or 0.25% —
below the 0.3% run-to-run CV of the project's own benchmark. A flag would buy
two code paths for something the harness cannot detect. The measurement also
settles Date.now(), which is both slower (28.6ns) and coarser.

D8: request logging is a Bus subscriber, wrapped to fall back to console. One
path, composable as #10 asks, and the wrapper closes the hole that emit()
swallows listener failures by design — the Bus keeps its guarantee without
buying it with silence.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-16 14:06:51 -05:00
chrnx 8c3844e577 docs(plans): design the observability contract for #10
The issue says green-tea ships no logging, metrics or tracing contract. The
mechanism is actually already there — Bus has 19 emission points across boot,
pipeline, streams, mesh and plugins, and plugins already subscribe to it. What
is missing is narrower and worse: no event carries request identity, so under
concurrency step events cannot be attributed; durationMs is declared in the
payload and written by nothing; there are no request-level events for step
events to hang from; and a failing step reports as name: 'pipeline'.

That reframes the work. A logger, a metrics exporter and an OpenTelemetry
bridge are not three features, they are three consumers of one corrected event
stream — which is a sharper reason for #10's 'one design, not six' than the
issue had, and it puts most of the work in bus.ts and pipeline.ts rather than
in new files.

Five decisions settled with their reasoning, including why the logger cannot be
an ordinary provider (it must outlive the graph to report the graph failing to
boot) and why route labels carry the pattern rather than the URL (a metrics
consumer labelling on raw paths takes down the backend, not the app).

Three questions left open for review rather than answered alone, the sharpest
being where a request span ends on a streaming route — the same boundary #21
hit, which should be answered once for both.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-16 13:27:36 -05:00
chrnx f97ac8098b docs(plans): record the #15 decision and split out shutdown extensibility
The plan asked Task 2.3 to decide between two answers; the decision and what
the runtimes actually allow now sit in it, so the next reader is not re-deriving
either. The Deno constraint in particular was found by measurement and is not
in any issue.

Adds Task 2.5 for the plugin/provider teardown idea, kept out of the #15 work
on purpose: it needs a new await-aware surface on PluginApi, because the
existing Bus is a synchronous observer by design and cannot be made to hold up
a shutdown without losing the guarantee that makes it safe.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-16 13:18:06 -05:00
chrnx 9c3bc9574b docs(plans): plan the trust release from the four evaluation reports
The reports in .specs/reports/ were written independently and converge on
observability as the gap that matters most. Two things they demand had no
issue filed at all: CI never runs the Deno/Bun/edge suites that package.json
defines, so the multi-runtime claim has no evidence behind it, and explain()
returns each node's needs without ever naming what produced them.

Sequenced so the cheap phases land first and produce the material the
observability design needs. API freeze stays out: README already declares it
under 'next', and freezing a surface that is still missing its observability
contract would freeze the wrong thing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-16 12:38:12 -05:00
chrnx bd3b2556bc docs: remove design whitespace
CI / build (pull_request) Successful in 56s
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:21:13 -05:00
chrnx d9276a4769 docs: expand website documentation audit plan
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:01:49 -05:00
chrnx 63a61aeb0b docs: plan router security beta implementation
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:34:03 -05:00
chrnx e343ae501f docs: design router security beta
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:28:11 -05:00
chrnx 0541464093 docs(readme): tell the truth about runtimes, transport, and where the docs live
The README claimed green-tea was Node-only with Deno/Bun/edge "on the
roadmap, not built" — all four have shipped. It also taught that a plain
return of an AsyncIterable streams by Accept, which the explicit-transport
change turned into a 500 TransportMismatchError: the one thing a README
must never do is document behavior that now throws.

docs/ had been frozen since the Starlight site replaced it; nothing but
the README referenced those two files, so they were a second copy to keep
in sync and had already drifted. Point at the site instead.

Also adds what shipped unmentioned (@Html/views/static, the four runtimes,
matcha) and fixes the CHANGELOG's YY.MM.PATCH, which contradicted the
README's correct explanation of why the month is not zero-padded.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 09:14:13 -05:00
chrnx 654c0563fc docs: honest README + quickstart, and a Starlight documentation site
CI / build (pull_request) Has been cancelled
Bring the README in line with what shipped and fill the gaps a technical
reader comparing frameworks needs: the busboy peer dep and dual build, a
Routing section with its limits, an explicit "bring your own auth" scope
note, why legacy decorators is a design choice (not laziness), and CalVer
beta versioning.

Add a full Astro Starlight docs site under website/ — getting started,
concepts, per-feature guides, and an API reference — migrated from the
tested quickstart so the examples stay accurate.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-07 12:02:17 -05:00
chrnx 0f11ad1e61 docs: input validation via Standard Schema
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-06 21:41:26 -05:00
chrnx 97284935aa docs: multipart/form-data uploads, bodyDuplicates, maxParts
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-06 20:19:29 -05:00
chrnx 258130bf30 docs: transport security (TLS/wss, trustProxy, CORS, security headers)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-06 19:20:34 -05:00
chrnx c39eb667ac feat(example): minimal GraphQL with query/mutation and an SSE subscription over rooms
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-06-28 13:37:37 -05:00
chrnx 9d8088d0a9 feat: 'did you mean' boot hint, flow compile-time type-test, and demos
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-06-28 02:36:37 -05:00
chrnx 9a5f54a4b3 docs: document per-route slicing execution and app.close() in quickstart
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-06-28 01:14:06 -05:00
chrnx 8b43a15609 docs: architecture mental map, quickstart guide, README links
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-06-27 21:30:33 -05:00