Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1f95de0
fix(mesh): gate route RPCs on method and pattern
chrnx-dev Nov 20, 2026
0735168
fix(bus): isolate async listeners that reject
chrnx-dev Nov 20, 2026
cf5b225
fix(bun): keep quiet SSE and ndjson streams open
chrnx-dev Nov 20, 2026
ebb56d5
fix(ws): refuse cross-site WebSocket upgrades
chrnx-dev Nov 20, 2026
a71bd7b
fix(mesh): mask internal error messages across the hop
chrnx-dev Nov 20, 2026
ba541ee
fix(stream): mask internal error messages in SSE and ndjson frames
chrnx-dev Nov 20, 2026
7daaa34
fix(proxy): take the right-most X-Forwarded-For hop under trustProxy
chrnx-dev Nov 20, 2026
8649629
fix(cors): refuse origins '*' with credentials at boot
chrnx-dev Nov 20, 2026
3cf3c7e
fix(static): never serve dotfiles
chrnx-dev Nov 20, 2026
a663b8d
fix(node): reap slow-header sockets and dead WebSocket peers
chrnx-dev Nov 20, 2026
8514b29
fix(mesh): run only the exported step's closure on a remote call
chrnx-dev Nov 20, 2026
1360863
feat(mesh): refuse ws:// teapots off loopback unless allowInsecure
chrnx-dev Nov 20, 2026
d9d7d49
feat(mesh): refuse mesh on the edge with a clear error
chrnx-dev Nov 20, 2026
cee0d1f
docs(example): mesh REST demo across two processes
chrnx-dev Nov 20, 2026
9187670
fix(views): render templates in one pass, own keys only
chrnx-dev Nov 20, 2026
08eeb2a
fix(body): treat a __proto__ field or file as an ordinary key
chrnx-dev Nov 20, 2026
0e4b51c
fix(params): resolve decorator keys as own properties
chrnx-dev Nov 20, 2026
843ba6b
fix(fetch): honour X-Forwarded-Proto under trustProxy
chrnx-dev Nov 20, 2026
88f967b
docs(routing): a decoded param can hold / and ..
chrnx-dev Nov 20, 2026
5d901e8
test: bind test servers to 127.0.0.1 so no socket can share their port
chrnx-dev Nov 20, 2026
fbbabe3
ci(stage): stage stable versions too
chrnx-dev Nov 20, 2026
c35b9a4
docs: only the year breaks after stable
chrnx-dev Nov 20, 2026
9d55a9f
docs(security): publish the support table
chrnx-dev Nov 20, 2026
a687aca
perf(params): resolve decorator keys without a closure per call
chrnx-dev Nov 20, 2026
31e287a
fix(bus): log a failing listener once through the app logger
chrnx-dev Nov 20, 2026
111eb0b
fix(adapters): warn when Deno, Bun or the edge ignore a Node-only limit
chrnx-dev Nov 20, 2026
e1b702b
fix(stream): one close reaction per stream, not one per event
chrnx-dev Nov 20, 2026
0850e16
fix(channel): cap each subscriber at 1024 values by default
chrnx-dev Nov 20, 2026
5bb848a
fix(dev-endpoints): SRI on /__graph__, no provider names in /__ready__
chrnx-dev Nov 20, 2026
8484025
docs: Kubernetes preStop drain, BREACH note, matcha release line
chrnx-dev Nov 20, 2026
934b9e7
ci(release): run the full CI gates on the tag, pin npm
chrnx-dev Nov 20, 2026
b737b7e
test: v8 coverage, reported in CI
chrnx-dev Nov 20, 2026
cf14e65
test: soak job for long-running stability
chrnx-dev Nov 20, 2026
0563fa5
docs(contributing): record the coverage baseline in the repository
chrnx-dev Nov 22, 2026
f1d8b87
bench(compare): SSE cases, plain and gzip
chrnx-dev Nov 22, 2026
5ddfa1e
docs(agents): Gitea is an archive of main, not a staging forge
chrnx-dev Nov 22, 2026
e1c1801
bench(compare): run the A/B servers on Deno and Bun
chrnx-dev Oct 27, 2026
563998d
bench(compare): static file case
chrnx-dev Nov 22, 2026
74771d5
perf(bun): lift the idle timeout from the stream branch, not every re…
chrnx-dev Nov 22, 2026
4fbfb73
ci: remove the Verdaccio staging workflow
chrnx-dev Nov 23, 2026
7bb24a7
chore(release): 26.11.0-rc.2
chrnx-dev Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
- run: npm run format:check
- run: npm run complexity:check
- run: npm run typecheck
- run: npm test
# The suite, with v8 coverage printed in the log (#79). Reported only: no threshold gates it yet.
- run: npm run coverage
- run: npm run build
# The committed reports in api/ are the frozen surface (CARD-22, D20). A PR that changes a
# public type fails here until it regenerates them with `npm run api`, so the change shows up
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest # npm >= 11.5.1 is required for OIDC trusted publishing
# Pinned (#78): a permanent publish must not run on whatever npm shipped this morning. >= 11.5.1
# is required for OIDC trusted publishing. Bump it on purpose, in its own commit.
- run: npm install -g npm@11.21.3
- run: npm ci
# The CI gates that `prepublishOnly` does not run (#78). A tag on a commit that never passed CI
# must not reach a registry, and `main` alone cannot promise that it did.
- run: npm run format:check
- run: npm run api:check
# Same scoped gate as ci.yml: only what we ship blocks a publish. With `reflect-metadata`
# as the sole runtime dependency, a blocking advisory here is rare and genuinely reaches
# users; a build-tooling one never does. The full audit still reports.
Expand All @@ -42,6 +48,10 @@ jobs:
# types, module analysis — and learning about them after npm has published leaves the tag
# half-shipped. Seconds, against a failure mode with no clean recovery.
- run: deno publish --dry-run
- uses: oven-sh/setup-bun@v2
- run: npm run test:deno
- run: npm run test:bun
- run: npm run test:edge
# A publish sets exactly one dist-tag, and it is the only npm write this workflow can make:
# Trusted Publishing's OIDC exchange lives inside `npm publish` and nowhere else, so the token
# it produces is rejected by `npm dist-tag` (E401, learned on v26.8.0-beta.1). So the one tag
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/soak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Soak
# Long-running stability (#80): scripts/soak.mts drives the built app with JSON load, SSE and
# WebSocket churn and a slow SSE subscriber for SOAK_SECONDS, then closes it under load. Fails on
# heap growth, an unhandled rejection or a close() that does not exit 0. Nightly and on demand:
# too slow for every push, and run before a release with workflow_dispatch.
on:
schedule:
- cron: '17 4 * * *'
workflow_dispatch:
inputs:
seconds:
description: Load duration in seconds
default: '300'

jobs:
soak:
if: ${{ github.server_url == 'https://github.com' }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '22'
- run: npm ci
- run: npm run build
- run: npm run soak
env:
SOAK_SECONDS: ${{ inputs.seconds || '300' }}
51 changes: 0 additions & 51 deletions .github/workflows/stage.yml

This file was deleted.

27 changes: 13 additions & 14 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@ Run the first four before proposing anything as finished. The runtime suites sta

## Two forges

Development lives on GitHub: `develop`, feature branches, pull requests, CI and new issues. A
private Gitea instance keeps only `main` and release tags, pushed there by hand, so a release can
be staged on the internal Verdaccio before it goes public. Issues opened on Gitea before
2026-11-17 stay there until they close; new ones go to GitHub.
Development and releases live on GitHub: `develop`, feature branches, pull requests, CI, new
issues, and the `v*` tags that publish. A private Gitea instance is an archive of `main` and its
tags, copied from GitHub after a release; nothing flows from Gitea to GitHub. Issues opened on
Gitea before 2026-11-17 stay there until they close; new ones go to GitHub.

```
feature/* → develop → main (GitHub, pull requests)
│
v* tag ──┼── GitHub: [release.yml] → npm + JSR
└── Gitea, pushed by hand when staging: [stage.yml] → Verdaccio
v* tag ──── GitHub: [release.yml] → npm + JSR
│
└── Gitea: archive copy of main and tags, after the release
```

- **`develop`** — active development, and the base of every pull request, outside contributions included.
- **`main`** — released code, advanced only by fast-forward from `develop`.
- **Gitea `main` and tags** — a staging copy. Nothing is developed there. A `v*` tag pushed there publishes to Verdaccio, never to a public registry.
- **Gitea `main` and tags** — an archive. Nothing is developed, staged or released from there.

Remotes: `origin` is GitHub, `gitea` is the Gitea instance.

Expand Down Expand Up @@ -99,18 +100,16 @@ Bumping `package.json` and `deno.json` ahead of the tag is fine and necessary
*next* publish will be called, and the docs repo's `verify:release` compares the tag against them.
A version number is a plan; a changelog heading is a receipt.

**Stage on Verdaccio first when a release warrants it.** Pushing a `v*` tag to GitHub publishes it
to npm and JSR, and JSR never gives a version number back. Pushing the same tag to Gitea first runs
the real publish path against Verdaccio, where a mistake costs only a re-tag:
**The tag is the publish, and JSR never gives a version number back.** Pushing a `v*` tag to
GitHub runs `release.yml`: the CI gates, `deno publish --dry-run`, then npm, then JSR last. There is
no staging registry any more (Verdaccio staging through Gitea ended 2026-11-22), so run
`npm run test:all` on the exact commit you tag before you push it:

```bash
git push gitea main v<version> # optional: Gitea → Verdaccio, reversible
git push origin v<version> # GitHub → npm + JSR, permanent on JSR
git push gitea main v<version> # afterwards: archive copy only
```

The split exists because a mistake caught on Verdaccio costs a re-tag, and the same mistake
caught on JSR costs the version number forever.

**After a beta release, move the channel tag by hand.** A publish sets exactly one dist-tag, and it
is the only npm write the release workflow can make — Trusted Publishing's OIDC exchange lives inside
`npm publish`, so the token it hands back is rejected by `npm dist-tag` (`E401`, learned the hard way
Expand Down
Loading
Loading