Skip to content

3ngram 1.14.2

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:39
a6a5235

3ngram v1.14.2

A maintenance release:

  • Account erasure now scopes every write to the target account explicitly, not only through row-level security.
  • The MCP TypeScript SDK moves to 2.4.
  • @hono/node-server moves to 1.19.19, which backports the serveStatic advisory fix to the 1.x line.

The REST API, MCP surface, schema and Stop hook are unchanged.

Changes

Security

  • Explicit tenant predicates in account erasure (#497, closes #494).
    • What changed. eraseAccountData had 13 statements with no tenant predicate that relied on row-level security alone. Each now also filters on the target user_id. The tables covered are memories, facts, commitments, the consolidation and fact proposals, agent sessions, profile attributes, web sessions, API keys, OAuth tokens and codes, and the reset and verification tokens.
    • Self-serve path. It runs as the NOBYPASSRLS runtime role and erases exactly the same rows as before.
    • Why it matters. Before this change, a caller on a connection that bypasses RLS (a table owner, a migration or an operator script) would have erased every tenant. Now it erases only the target account.
    • Test. A new integration test runs the erasure on an RLS-bypassing connection and proves that another account is untouched.
  • @hono/node-server 1.19.19 (#488). The workspace override floor moves to <1.19.19. 1.19.19 backports the fix for GHSA-rmxm-3fg6-px4f (serveStatic decodes the request path twice) to the 1.x line. 3ngram never calls serveStatic.
    • Dependabot. The GitHub advisory database still lists the fix as 2.1.3, so Dependabot and pnpm audit keep reporting it until that record is corrected.
    • Self-hosting. Self-hosters who install @3ngram/server from npm need the same override in their own workspace, because pnpm overrides do not travel with published packages.

Dependencies

  • MCP TypeScript SDK 2.4 (#490). @modelcontextprotocol/server and @modelcontextprotocol/client move to 2.4.0, and @modelcontextprotocol/node to 2.1.2. Adapter 2.1.2 requires server 2.4. This supersedes #483.
    • Upgrade notes. None of the SDK's upgrade notes apply to 3ngram's tools: there is no x-mcp-header on a number parameter, no .meta({ id }) output schema, and no $id or $ref in tool schemas.
    • Surface. The generated MCP reference is unchanged.
    • @hono/node-server. The adapter now also accepts 2.x, but the lockfile stays on 1.19.19.
  • hono 4.13.19 (#495). The hono override floor stays at <4.13.18.
  • jose 6.2.17 in @3ngram/core (#485), and zod 4.6.7 in @3ngram/server, @3ngram/config, @3ngram/schema and @3ngram/sdk (#489). Both finish bumps that v1.14.1 started in other packages.
  • @types/pg 8.23.1 (#496).

CI and tooling

  • Biome 2.6.8 (#493).
    • Scope. Markdown, YAML and SVG stay out of Biome's scope, matching the platform.
    • Config. The linter config moves from the deprecated recommended field to preset.
    • Formatting. The 2.6 formatter was applied to tests.
  • actions/setup-node 7.1.0 (#492) and actions/attest 4.2.2 (#491), pinned by digest.

Compatibility

  • No REST, MCP or schema changes, no new environment variables, and no public API changes.
  • Package versions:
    • 1.14.2 together: @3ngram/server, @3ngram/worker, @3ngram/sdk and the 3ngram CLI.
    • Patch bumps: core 0.19.1, db 0.18.1, config 0.8.2 and schema 0.16.1.
    • Unchanged: llm 0.5.0.
  • The 3ngram-hook binary is unchanged and stays at 3ngram-hook-v1.1.1.

Operations

  • No migrations. The schema head stays at 0047_tough_lockheed. provision-roles.sql is unchanged since v1.12.0, so it does not need a rerun.
  • Workers. Worker images must be adopted separately from the server package. Verify the image, and a completed execution, for every scheduled worker.
  • Self-hosting. Self-hosters keeping their own @hono/node-server override should raise it to <1.19.19: ^1.19.19.

Immutable container reference

ghcr.io/b3dmar/3ngram@sha256:26914f550ce6103a3e860d9c849000e8ceebe7c07a3343a7ed9be4951cd6fd70