A Node Buffer is a Uint8Array at runtime, but its declared backing store is
ArrayBufferLike, which admits SharedArrayBuffer — and BodyInit takes only
ArrayBuffer-backed views. Deno's lib rejected it outright at web.ts:112. This
is the app.fetch path, so the hole was on Deno, Bun and edge alike; it went
unnoticed because every implementation is forgiving about it at runtime.
Re-views rather than copies: this is the buffered-response path, and a copy
per response would cost real throughput on the runtimes that have no other
adapter. byteOffset and byteLength are load-bearing there — Buffer.from hands
back a window into a shared 8 KB pool, and dropping them returns the whole
pool. A direct test covers that; the static-serving one covers the integration.
The type is derived from Response's own constructor because BodyInit is not a
global under lib es2020 plus @types/node, though Response itself is.
Refs: Green-Tea/core#19
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
AGENTS.md states the rule and ci.yml implements it: npm audit --omit=dev
blocks, everything else reports. stage.yml and release.yml ran a bare
npm audit, so a dev-only advisory could hold a publish.
That drift stopped work twice. The nanoid advisory reached the tree through
tsup -> postcss -> nanoid, a build-tooling path that ships to nobody, and
fixing it was a precondition for a release it could not affect.
The full audit still runs with continue-on-error, so nothing goes unseen.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
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>
Clears Dependabot alert 26. The advisory is real but our exposure is not:
nanoid arrives through postcss, under tsup at the root and under astro in
website/, so it never ships. Production dependencies of the package are
reflect-metadata and nothing else, and `npm audit --omit=dev` was already
green. Reaching the bug needs control of the size argument passed to nanoid,
which postcss calls with a fixed length.
Fixing it anyway because the alert costs more to keep explaining than to
close, and an open badge trains us to skim Dependabot. The next advisory
should be the only one sitting there.
Dependabot files it under website/ as runtime scope because website/package.json
lists astro under dependencies and has no devDependencies at all. Moving them
would stop that mislabelling, but that is a separate change.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The test landed one line below the closing brace of describe('graceful
shutdown'), so it ran at the top level instead of under the block it
belongs to. Placement only; the assertions are untouched.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
author had no email and bugs had no address, so the only contact npm could show for a
published package was a GitHub issues URL. bugs.email is a field npm actually reads and
npm bugs surfaces, which makes it the right home for the catch-all.
No security address here on purpose: npm has no field for one, an invented key is read by
nothing, and the standard location is /.well-known/security.txt on the domain root, which
this repo does not serve.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
3/10 days was a placeholder borrowed from policies written for teams with someone on
rotation. This project is one person, so 5/15 with an escalation address, and an explicit
release from embargo if that also goes unanswered. A reporter facing silence should not
have to guess whether they are allowed to publish.
Adds the 90-day window, which was the real omission: the reporter's question is when they
may disclose, and leaving it unstated invites them to assume CERT/CC's 45.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
CONTRIBUTING said unsigned commits are rejected and nothing enforced it, so the DCO was
caught by hand at review time. That is a full round-trip for a trailer, on top of however
long the fork's first run waits for approval.
Own job, so it reports separately from the code gates and costs nothing on push. Presence
only: whether a trailer that doesn't match the author is acceptable is a reviewer's call,
whether one exists at all is not.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
CONTRIBUTING went from clone straight to 'make the change' and never said npm install.
That mattered more than it looks: prepare wires core.hooksPath to .githooks, and the
pre-commit hook runs lint and complexity:check. An external contributor without it gets
told by CI what the hook would have told them before the commit existed.
The runtime commands were only in AGENTS.md and the README, so an assistant reading the
repo was better briefed than the person sending the pull request.
Checklist and the CI list now match ci.yml, which had grown complexity:check and build
without either following.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Both were absent. The code of conduct is Contributor Covenant 2.1 verbatim, with
enforcement pointed at compliance@, which sits outside the project team so a report
about a maintainer has somewhere to go that isn't that maintainer.
The security policy exists so an exploitable finding has a route that isn't a public
issue. States the scope, the response times we can actually hold to, and that there is
no bounty, rather than leaving someone to find that out after the work.
Issue chooser now surfaces both, plus support@ for questions that are about the
reporter's own app rather than a bug here.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
complexity:check was missing from the list of commands CI runs, so the first
external contributor to trip it hit a failure with no way to have seen it
coming, on a rule the docs never stated.
Says what the number measures and why nesting is what it punishes, so the fix
reads as extracting a helper rather than raising the threshold.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Bun writes it on install but nothing reads it: test:bun runs against the
node_modules npm installed, already pinned by package-lock.json. deno.lock
stays tracked because the Deno tests resolve npm:/jsr: specifiers against
registries, where a lockfile is the only thing making them reproducible.
It reached a pull request once already, at 1278 lines.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The rebase existed to keep `main`'s history out of `develop` back when the two
had drifted ten commits apart. Fast-forward-only promotions closed that gap
hours after this file was written, and with `develop` and `main` on the same
commit a merge drags nothing in — so rebasing now only rewrites a
contributor's SHAs and drops `contrib` out of `main`'s ancestry, which is what
forces the force-push at reset time.
Proven on the first contribution through the route: the author's commits are
in `develop` under their original hashes, `main` is still an ancestor, and the
reset ahead is a plain fast-forward.
Hotfixes remain the exception, since they reach `main` without passing through
`develop`, so the rebase guidance stays for that case.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
It sat inside an HTML comment, so it vanished the moment the description
rendered. The second external pull request filled in the checklist and still
targeted `main` — the template was read, the one line that mattered was not.
Now it is a visible blockquote the author is asked to delete, and a checklist
item, so choosing the base is an explicit tick rather than something to skim
past on the way to the boxes.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Nothing recorded how this repository is actually run, so every rule lived in
one head and had to be rediscovered. AGENTS.md now carries the two-forge
topology, why promotions are fast-forward-only, how to tell a genuinely ahead
branch from pre-rebase duplication, and the runtime and dependency constraints
that reviews keep enforcing by hand. CLAUDE.md points at it rather than
repeating it, so the two cannot drift.
The AI section in CONTRIBUTING is neither a prohibition nor a disclosure rule.
Assistants are welcome and there is nothing to declare. What it asks is that
you read the diff before sending it, because a person reads every line that
lands here and a diff its own author skipped turns their review into
proofreading. The four failure modes listed are the ones this codebase
actually sees — added dependencies, Node-only assumptions, deleted reasoning,
missing tests — and three of the four were live in a real pull request the day
this was written.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
CONTRIBUTING described GitFlow as though there were one forge. There are two,
and nothing said so: an outside contributor reading it had no way to learn
that GitHub is a mirror of `main` and that pull requests belong on `contrib`.
The first external PR duly went to `main`, which was our omission rather than
theirs.
The templates carry the parts that keep being repeated by hand — sign-off,
the local check commands, and the two failures that a graph framework invites:
an implementation growing an option that its public interface never declares,
and behavior that works on Node while silently doing nothing on Deno and Bun.
Blank issues stay enabled. Scope and placement discussions are most of what
gets filed here and they don't fit a bug form.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
`npm audit` sat fifth of fifteen steps, so any advisory anywhere in the tree
skipped lint, typecheck, tests and build. A high in a vitest transitive was
enough to hide whether the code itself was correct — and for external
contributors, whose runs need approval before they see anything at all, that
turned a red X into no information.
Severity is the wrong axis: a critical in the test runner reaches nobody,
while a high in `reflect-metadata` reaches everyone. Scope is the right one.
Production dependencies block; build tooling reports and moves on.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
External contributions land on `contrib`, and a PR targeting a branch absent
from the trigger list gets no checks at all — leaving contributors without the
feedback that would have caught the failure themselves.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Both audit trees were failing, for unrelated reasons and with different fixes.
**Root — undici, high.** miniflare 4.20260730.0 (the newest stable) pulls
undici 7.28.0, and the advisory range is 7.0.0–7.28.0. `npm audit fix --force`
wants miniflare 5.20260801.1-alpha: a breaking major, and an alpha, to patch a
devDependency that never ships. undici 7.29.0 is outside the range, so pin it
through `overrides` instead — same approach already used for find-my-way and
hyperid.
**website — js-yaml, high.** Reached through Starlight. 4.3.1 carries the fix
and the bump is not breaking, so a plain `npm audit fix` covers it.
Verified: root and website audits both report 0 vulnerabilities; 357 tests
pass; `test:edge` still passes, which is the one that actually exercises
miniflare against the pinned undici; `docs:build` produces its 23 pages.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
CHANGELOG.md ships inside the npm package, and its link references pointed at
the internal Gitea host — unreachable for anyone reading the changelog on
npmjs. Point them at the GitHub mirror, and compare Unreleased against `main`,
since `develop` is not mirrored.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GoatCounter via Starlight's `head` option, same site code as the marketing
site so /docs traffic lands in one dashboard and referrer paths stay
comparable. No cookies, no personal data, no consent banner, nothing to host.
Answers the one question we cannot answer today: do the articles convert into
documentation reads?
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The README opened with identity and an install block; the pain that motivates
the graph only appeared after a scroll. Move it up: `req.user` first, then the
idea, then how to install it.
Three fixes while in here:
- The install line now pins `@beta`. `latest` and `beta` both point at the
newest beta until a stable ships, and the versioning note said the opposite.
- Document `RequestLimits`. Body caps, multipart parts and the request /
headers / keep-alive timeouts were already applied with defaults tighter
than Node's, and nothing in the README said so.
- Honest scope now admits there is no observability layer — no logger, no
metrics, no tracing hooks — and points at the issue tracking it as one
design. It is the gap a team hits in week one of a real evaluation.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Merge the current public main history while preserving develop's mutable Verdaccio staging policy for the npm provenance hotfix.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Replace an existing prerelease before publishing the refreshed candidate. Verdaccio remains mutable for validation while npmjs release versions stay immutable.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Stage only release branches and preserve immutable versions. Repeated identical candidates now exit successfully, while content changes under an existing version require a prerelease bump.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Link the package to its public source, issue tracker, and documentation so npm Trusted Publishing can validate provenance and consumers receive canonical project links.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>