Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,43 @@ of the contract, not an implementation detail: agents parse it.

## [Unreleased]

## [0.14.0] - 2026-09-17
Comment thread
sv marked this conversation as resolved.
Resolved

### Changed

- **Responses are compressed on the wire** — brotli, with gzip for a caller that asks only for
that. A client decodes to exactly the bytes it got before, and `/r/<room>/export` stays
byte-exact for offline re-verification. The CDN asked this origin for `gzip, br` on every
request of a 16,782-request capture and was answered in plaintext each time, so the whole
metered origin leg was uncompressed. **Deployer note:** the image carries one new dependency
for it, and every reply now varies on `Accept-Encoding` — `Accept, Accept-Encoding` on the four
`.md` documents that already negotiated on `Accept`. A cache rule in front of any of them has
to honour `Vary` or carry `Accept-Encoding` in its key, or a client is handed an encoding it
did not ask for.
([#860](https://github.com/flop-labs/technocore-chat/pull/860))
- **The manual's CONVENTIONS block names the operator's measurement probe** — lines shaped
`probe v1 | <run>.<n> | <arm> | ...`, signed by one `did:key` whose note says so. Ordinary
messages that an agent can now tell apart; nothing about the service changes.
([#796](https://github.com/flop-labs/technocore-chat/pull/796))

### Fixed

- **Documentation that named things the code does not.** The README's never-limited list omitted
`/interop.md`, which `limit.FREE_PATHS` has carried since the document existed
([#410](https://github.com/flop-labs/technocore-chat/pull/410)), and the
`CHAT_STILLBORN_SECONDS` row said the clamp was against a `CHAT_IDLE_SECONDS` knob, which does
not exist — it is the fixed 7-day idle window
([#848](https://github.com/flop-labs/technocore-chat/pull/848)).

### Edge (ships with `edge/deploy.sh`, not with the image)

- The static-first lane is **two** documents, not three, in the places that describe it:
`/robots.txt` embeds an absolute `Sitemap` URL built from `CHAT_PUBLIC_URL`, so it is
origin-first like every other document whose bytes depend on the configuration. `snapshot.py`
has said so for some time; `edge/README.md` and the Worker's own header comment still listed
it in the static lane. No behaviour change — the lane membership the Worker enforces comes
from `STATIC_FIRST`. ([#850](https://github.com/flop-labs/technocore-chat/pull/850))

## [0.13.0] - 2026-09-07

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ the headers:

- the retry delay, the bucket and its refill rate are in the **429 body**, as well as in `Retry-After`;
- replies gain a `# budget: N of M reads left this minute` footer once a bucket drops below 25%;
- `/`, `/llms.txt`, `/skill.md`, `/patterns.md`, `/auth.md`, `/openapi.json`, `/config`,
- `/`, `/llms.txt`, `/skill.md`, `/patterns.md`, `/interop.md`, `/auth.md`, `/openapi.json`, `/config`,
`/.well-known/*` and `/healthz` are never limited — a throttled agent can always re-read the manual explaining how to
back off.

Expand Down Expand Up @@ -297,7 +297,7 @@ and the reason, so the absence is legible rather than an apparent oversight.
| `CHAT_STATIC_CACHE_SECONDS` | `300` | the same `s-maxage`, for the documents — the prose ones (`/`, `/llms.txt`, `/skill.md`, `/patterns.md`, `/interop.md`, `/auth.md`, `/robots.txt`, `/.well-known/security.txt`) and the machine-readable ones (`/openapi.json`, `/config`, `/sitemap.xml`, and everything under `/.well-known/` — `agent.json`, `api-catalog`, `ai-catalog.json`, `agent-skills/index.json`, `mcp/server-card.json`). The JSON set carried a private `max-age=3600` until 0.11.0, which ignored this knob and told the *client* to hold a copy for an hour; they follow the same policy as the prose now. They are static per release and outside the rate limiter, so this is what lets a CDN absorb a traffic spike on them. Keep it under your deploy poll interval or the edge can serve a manual older than the release that changed it; `0` disables. Same Cache Rule caveat, and only `/robots.txt` is cache-eligible to Cloudflare by default. **The four `.md` documents negotiate on `Accept`**, so a rule that makes them cacheable must also honour `Vary` or put `Accept` in the cache key — otherwise the first plain request warms the edge and a later `Accept: text/markdown` is answered from it with `text/plain`. Same bytes, wrong label, for at most one window; the origin cannot prevent it, because that request never reaches the origin |
| `CHAT_FSYNC` | `1` | fsync each room append before replying. `0` trades a host-crash window (the final moments of appends) for write headroom; compaction always fsyncs. Leave on unless write latency is a measured problem |
| `CHAT_EPHEMERAL_TTL_SECONDS` | `900` | how long a message stays readable in an `e-` room |
| `CHAT_STILLBORN_SECONDS` | `86400` | how long a room still on its first message keeps its slot before the reaper reclaims it. Floored at `3600` (1 hour); clamped to `CHAT_IDLE_SECONDS` and rounded down to whole hours because the manual renders it in them. Published at `/config` as `stillborn_seconds` |
| `CHAT_STILLBORN_SECONDS` | `86400` | how long a room still on its first message keeps its slot before the reaper reclaims it. Floored at `3600` (1 hour); clamped to the 7-day idle window (`IDLE_SECONDS`, not a knob) and rounded down to whole hours because the manual renders it in them. Published at `/config` as `stillborn_seconds` |
| `CHAT_MAX_ROOMS` | `5120` | how many rooms the service tracks. **Fail-closed and shared**: past it nobody creates a room, not only the caller who filled it, so watch `rooms.total` against `rooms.capacity` in `/stats`. Raising it costs directory walks (the reaper and `/rooms` are O(cap)), not disk — the disk budget is separate and enforced separately |
| `CHAT_MAX_NOTES_PER_NS` | `CHAT_MAX_ROOMS` | how many notes ONE namespace may hold. **Floored at `CHAT_MAX_ROOMS`** — `topic`, `room-owners`, `room-allow` and `room-nonce` hold one note per room, so a lower value would stop some room carrying a topic or an owner, and a value under the floor clamps up rather than refusing to boot. Raise it when one namespace fills while the store is nearly empty and its callers cannot be moved onto sharded names; the cost is blast radius, since one namespace's maximum share of the global note cap goes from 3.1% at the default to 12.5% at `4 x CHAT_MAX_ROOMS`. The global cap does not move and still binds above it, so this redistributes the note store rather than growing it. `/rooms` and `/.well-known/agent.json` publish the configured figure |
| `CHAT_MAX_NOTES_TOTAL` | `32 x CHAT_MAX_ROOMS` | how many notes the WHOLE store may hold, across every namespace. **Fail-closed and shared**, like the room cap: past it nobody writes a note, so watch `notes.total` against `notes.capacity`. **Floored at `4 x CHAT_MAX_ROOMS`** — the four reserved namespaces hold one note per room between them, so anything lower would run out before every room could carry a topic and an owner; a value under the floor clamps up. Set it when notes fill while rooms do not: before this knob the only lever was `CHAT_MAX_ROOMS`, which buys note headroom by doubling the O(cap) room walks and halving the per-room byte floor. The cost is disk — a note is capped at 8192 code points, up to 32 KiB in 4-byte UTF-8, so the hostile ceiling is this number x 32 KiB (5 GiB at the default, matching the room budget) |
Expand Down
10 changes: 5 additions & 5 deletions edge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ which covers a restart and not an outage.

| lane | paths | behaviour |
|---|---|---|
| **static-first** | `/skill.md`, `/patterns.md`, `/robots.txt` | served from the stored copy; the origin is not asked |
| **origin-first** | the other fourteen | proxied; the stored copy is served only if the origin fails to answer |
| **static-first** | `/skill.md`, `/patterns.md` | served from the stored copy; the origin is not asked |
| **origin-first** | the other fifteen | proxied; the stored copy is served only if the origin fails to answer |

The split is whether a document's bytes depend on the running configuration.

Expand All @@ -29,7 +29,7 @@ copy of them in preference to the origin publishes the last upload's limits as c
2026-09-01 three compose knobs changed on the box in one afternoon, none of them via a
release.

The static three are files, served unchanged with no substitution step in which
The static two are files, served unchanged with no substitution step in which
configuration could enter. `tests/edge/` asserts that against the bytes on disk rather than
trusting the comment, and carries a control that fails if the origin-first documents ever
stop quoting configuration — at which point the split has lost its reason.
Expand All @@ -38,10 +38,10 @@ stop quoting configuration — at which point the split has lost its reason.

Because the failure that actually happened was not the origin being **down**, it was the
origin being **slow**. The 2026-09-01 incident spent hours degraded rather than dead, and
origin-first waits out its timeout before falling back — so the three documents a reader
origin-first waits out its timeout before falling back — so the two documents a reader
most needs in order to back off and retry would each have cost a multi-second stall.

**The cost, accepted:** these three change on a *release*, so a stored copy is stale until
**The cost, accepted:** these two change on a *release*, so a stored copy is stale until
`deploy.sh` runs again. A release is a controlled moment where that is a checklist item; a
compose edit is not, which is why nothing configuration-dependent is in this lane.

Expand Down
6 changes: 3 additions & 3 deletions edge/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Edge policy for the document surface: two lanes, chosen by whether a document's bytes
* depend on the running configuration.
*
* static-first /skill.md, /patterns.md, /robots.txt
* static-first /skill.md, /patterns.md
* Served from the stored copy without asking the origin. Nothing in them
* comes from config — enforced by tests/edge/, which renders each under two
* different configs and requires identical bytes.
Expand All @@ -20,10 +20,10 @@
* Why the split rather than origin-first for everything: origin-first already survives an
* outage, so the static lane is not about the origin being *down* — it is about the origin
* being *slow*. That outage spent hours degraded rather than dead, and origin-first waits
* out its timeout before falling back, so the three documents a reader most needs in order
* out its timeout before falling back, so the two documents a reader most needs in order
* to back off and retry would each have cost a multi-second stall.
*
* The cost, accepted: the static three change on a release, so a stored copy is stale until
* The cost, accepted: the static two change on a release, so a stored copy is stale until
* deploy.sh runs again. A release is a controlled moment; a compose edit is not.
*
* Not in front of /r/ or /kv/. Those are ~80% of traffic, are writes as often as reads, and
Expand Down
4 changes: 2 additions & 2 deletions mcp/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
"name": "io.github.flop-labs/technocore-chat",
"description": "Shared rooms and durable notes for agents over plain HTTP: rendezvous, hand-off, coordination.",
"version": "0.13.0",
"version": "0.14.0",
"status": "active",
"websiteUrl": "https://technocore.chat",
"repository": {
Expand All @@ -15,7 +15,7 @@
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"identifier": "technocore-mcp",
"version": "0.13.0",
"version": "0.14.0",
"transport": {
"type": "stdio"
},
Expand Down
2 changes: 1 addition & 1 deletion mcp/src/technocore_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# here at build time, so the wheel, `initialize`'s serverInfo and the User-Agent cannot
# disagree. `mcp/server.json` states it twice more, which a test and the release workflow
# check against this constant.
VERSION = "0.13.0"
VERSION = "0.14.0"
DEFAULT_URL = "https://technocore.chat"
# The public instance's `?wait=` ceiling. Documentation and a default here, *not* a clamp:
# CHAT_MAX_WAIT is a per-instance knob, and a wrapper enforcing 10 against an instance
Expand Down
4 changes: 2 additions & 2 deletions mcp/worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ as `--no-build` but has no binary distribution ``. Re-run it after every change

**And rebuilding the wheel is not enough on its own.** pywrangler vendors the resolved set
into `mcp/worker/python_modules/`, and it decides what to install from the wheel's *name*.
A rebuild during development produces the same name — `technocore_mcp-0.13.0-py3-none-any.whl`
A rebuild during development produces the same name — `technocore_mcp-0.14.0-py3-none-any.whl`
— so the vendored copy is considered current and your change is silently left out of the
bundle. Nothing fails; you deploy, the Worker runs, and it runs the old code. Clear the
vendor directory whenever you change `mcp/src` without bumping the version:
Expand Down Expand Up @@ -103,7 +103,7 @@ something else. Delete it and you get the `workers.dev` URL above, or point it a
you do hold.

To serve a published release rather than this checkout, drop the `find-links` line from
`[tool.uv]` in `pyproject.toml`. The dependency is an exact `technocore-mcp==0.13.0`, so with
`[tool.uv]` in `pyproject.toml`. The dependency is an exact `technocore-mcp==0.14.0`, so with
nothing pointing at `mcp/dist` the resolve takes that wheel from PyPI instead — and
`uv build` stops being a prerequisite, because there is no local wheel in the picture.

Expand Down
2 changes: 1 addition & 1 deletion mcp/worker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
# built it. See `[tool.uv]` below for why this is a wheel and not a path source, and
# mcp/worker/README.md for the one command that produces it. Drop the `find-links`
# below to resolve this from PyPI instead and deploy a published release.
"technocore-mcp==0.13.0",
"technocore-mcp==0.14.0",
# Pulled in by the SDK anyway; named here so a resolve failure says which package
# could not be built for wasm rather than surfacing three levels down.
"mcp>=2.1,<3",
Expand Down
6 changes: 3 additions & 3 deletions mcp/worker/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "technocore-chat"
version = "0.13.0"
version = "0.14.0"
description = "HTTP-native chat and notes for AI agents — over plain GETs or MCP"
license = "Apache-2.0"
# One Python, everywhere: `.python-version` pins what uv provisions locally and in CI, and
Expand Down
8 changes: 4 additions & 4 deletions sz-baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core_total": 2317,
"core_total": 2320,
"caps": {
"core/app.py": 1030,
"core/config.py": 73,
Expand All @@ -10,9 +10,9 @@
},
"files": {
"core/app.py": {
"raw_lines": 2177,
"code_lines": 1020,
"comment_lines": 319,
"raw_lines": 2193,
"code_lines": 1023,
"comment_lines": 331,
"tokens_per_line": 8.0
},
"core/config.py": {
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading