Skip to content

Release 0.300

v0.300.139: a DWG keeps each block’s attribute tags together

  • Fix: the DWG/DXF indexer stored each block attribute as its own text row and dropped the tag name, so a line-number block’s LINENO and CIRCUIT became two unrelated labels and the line-to-circuit link was lost. The registry workbook now has a Blocks tab: one row per block that carries attributes, one column per tag, with its layer, handle and X/Y. The text digest lists the same blocks as one line each (LineNumber: LINENO=…, CIRCUIT=…), so search finds the pair. Texts is unchanged. Needs the new mantle-media image. An indexed drawing keeps its old table on a re-index (the import never replaces a table it made), so to get the Blocks tab, delete the drawing’s auto-imported table, then index the file again. The digest gains the block lines on any re-index.

v0.300.120: the Files tree rail opens in milliseconds on a large brain

  • Fix: the Files tree rail (and the folder_list tool’s whole tree) counted each folder’s subfolders and files with two queries per folder, so an owner with about 2,000 folders waited many seconds. Every folder is now counted in one grouped query, for the rail and for one folder’s list alike, whatever the number of folders. The answers do not change: the same folders, counts and order, and nothing a reader cannot read is counted.

v0.300.118: folders above what a login reads show as structure

  • A login that reads an item now sees its folder and every folder above it in the trees (notes, pages, files and the other kinds), in the crumbs and in the Files folder list, by name only: no look, no description, no other item in it, and no write of any kind on it without the right on the folder (every write still answers 404). Migration 0311 adds one read function (mantle_folder_trail) for a login’s own session; an API key, a linked brain, a public link and an assistant see the folders they read, as before. The Files folder list now carries each folder’s caps (mayEdit, mayManage).
  • Fix: a content edit of a file a login may change, in a folder it cannot read, answered 400 “parent folder not found”. It saves now; a new file in such a folder is still refused.

v0.300.83: the tools’ item pre-checks go (A5 step 6b, part 1)

  • Deploy note: roll this release only on a box whose actor check and edit check are both on (scripts/arch-scoreboard-box.sh <alias>). Its migrate raises a box below on with no recorded lowering to on.
  • The checks’ floor (migration 0301): lowering a check needs a reason (select mantle_set_edit_check('warn', 50, 'why');); without one the setter refuses and changes nothing. A lowering is logged (the Postgres log, mantle_check_lowered(), a [db] SECURITY: line in every process, the integrity row check_floor). After a restore the stack’s migrate sets both checks on. docs/update-prod.md, “The checks’ floor”.
  • 72 of the 101 tool item pre-checks go: the database refuses the same writes itself with both checks on (docs/actors.md, “Pre-check deletion”). A tool refused for an item it reads and may not change now says “You cannot change this item in your workspaces.” (the id and the hint go). A call that needs approval and names an item the asking scope may not change queues now, and its approval fails where it was asked, writing nothing. 29 tool entries and the 27 HTTP ones stay, each named with its reason.

v0.300.81: A7, the switch-over code goes

  • Deploy note: a brain that is not on workspaces does not start: the web process logs the reason (“clients present”, or a failed switch) and exits. Every box of the fleet is on workspaces since W9. A box that is not is switched by hand (docs/workspaces.md, “Operator notes”), then started again.
  • Deploy note: MANTLE_ADMIN_READS=system (the W6a and W7a rollback switch) is gone; a value left in .env is not read. Remove it.
  • Migration 0295 drops mantle_workspace_kind; the rules that called it keep their answers (the old kind list written in). The three nodes level CHECKs are made again NOT VALID, with no scan of nodes under its lock.
  • A fresh install whose first owner’s workspaces switch fails is not served: the signup answers 503 (reason: 'not-switched', the account is made) and the web process stops, so its restart switches the brain again at boot (and refuses to serve while that fails). The terminal wizard stops with the reason.
  • A pending call queued under the rollback switch runs, when approved, in the scope it was asked in, never on the system pool.
  • Fix: an API key limited to some areas (no Search) listed pages, notes and tables with a 500 on a brain on workspaces: the email attachment rule read email_accounts in the key’s scope. Migration 0296 reads the mail account branches through a definer (mantle_mail_branch_holds); the Files key guard’s folder check uses it too. In a scope it answers only for a path at or under an item the scope reads (NULL, refused, for any other).
  • Fix: over MCP an API key or a linked brain could change the content of an item others read when the workspace holding it was not one of the key’s login’s workspaces (the check read only the key’s own workspaces). Migration 0297 answers “do others read this item” through a definer (mantle_item_others_read); such a change is refused again. In a scope it answers only for an item the scope reads (NULL, refused, for any other).
  • The 410 stubs are gone (132 retired route files and the PUT of /api/app-nav): their paths answer a signed-in caller 404 (PUT /api/app-nav 405), and no credential the gate’s 401 as before. GET /api/apps/:id with an id that is not a uuid is a 404, where it was a 500. Count a box’s stub hits first: scripts/arch-scoreboard-box.sh.

v0.300.77: provider errors say what to fix, and only for a provider (A10 lows)

  • A member, the model and an MCP client hear a provider’s sentence only on evidence of a provider failure; our own errors in work that called a provider no longer read as the provider’s (a TypeError was “The brain cannot reach the provider.”). A status that is no model provider’s says A service the brain called answered with an error. (HTTP n); a body that did not parse, An answer could not be read: it is not valid JSON.
  • A request the provider refused says why, never the body: too long, refused under a content policy, or invalid arguments (only when the body points at an argument and not at the request’s own shape, in dot or bracket notation (tools.0, tools[0].function.parameters, messages.[1], function_declarations[0]); any other 400 or 422 says The model provider refused the request., and so does a member’s thread for a failed team turn); a 2xx with no usable result says so without “HTTP 200”. Every changed answer: packages/std/src/provider-answers.changes.json; docs/provider-http.md.
  • AssemblyAI’s transcript error (video_ingest), the decision endpoint’s error and a Hugging Face 2xx that is no image no longer pass the provider’s words to a member or the model.
  • Catch helpers publicErrorText / errorDetail in @mantle/std; a tool that catches a provider failure and replies its errorMessage now hands on the sentence on every masked surface. The owner’s trace keeps the detail (error_detail, a masked owner turn’s too), never a refused key’s body: a 401 or 403 names provider and status only, a copied adapter message included, and any other detail has its key looking literals masked (the providers’ prefixes including ElevenLabs sk_ and GitHub gh?_, Bearer and Deepgram’s Token, a value named authorization, a bare key of 32 or more hex or mixed letters and digits, and the URL-encoded Bearer%20...).
  • A model provider key’s credential change (POST /api/keys, PATCH /api/keys/:id, POST /api/keys/:id/rotate) asks the open provider alerts to probe now, so a fixed key clears its alert and resumes the extract queue without waiting. Narrower than the Admin Try again: nothing is sent when no shown or paused alert is open (a blip is not counted, so a key save never re-drives a dead-letter backlog), and a key that is no model provider’s (a Telegram token, a connector’s secret) sends nothing. No model call here; bounded by the agent’s circuit.

v0.300.74: approvals, second lows round

  • Deploy note: a call queued before the first approvals lows round (v0.300.65) carries no MCP connection on its stamp, so its approval runs without it, as before that round (no Write switch, no keys rule, no connection ids in the app data log). Nothing to migrate: approve or reject what waits, or let it expire.
  • An approved call asked on a peer’s connection that named no login names none either, so it opens no link as the asker its row got from its session.
  • A stamped call asked on an MCP connection by a way in the server does not know is refused at approval instead of run without its connection.
  • An approved call that runs on the approval’s surface (an elevated call) keeps its asking connection’s rule of spending nothing on the owner’s provider keys.
  • The app data log of an approved call names its key, peer or OAuth client; an approved app_data_write says the approval ran with Write off.

v0.300.70: boot smoke; every package is an ES module

  • A10 lows (HTTP answers). An [id] that is not a uuid on the event, journal, contact, heartbeat, table and formula routes (and their /api/v1 aliases) is a 404 { "error": "not found" } from the route loader’s params schema (routeParams), where it was the opaque 500. A heartbeat’s earliestAt must be an ISO date-time (Z or an offset); a Files move, copy or new file into a path that is no folder path, and an agent or AI worker naming a key id or TTS worker that is not there, are the caller’s 400; a losing OpenAPI connector create is a 409. The 429 of the OAuth server, the remote MCP and the API key gate keeps error: "rate_limited" (the text moves to message). A ceiling under 1 MB is said in KB in the 413. Every change is named in docs/request-plumbing.md (“The lows of part 2 and #8”).

  • pnpm boot:smoke starts every server process the way the image does (each compose service’s own command, web through the image CMD, plus the stdio MCP server) up to the point where its imports link, then exits; no database, no network, measured 22 to 27 s on a Mac (expect 40 to 60 s on CI). It runs in pnpm verify, build-check and the release guard before images are built. v0.300.64 crash-looped every server process at start on an import error with every other gate green; on that tree the smoke fails 7 of 13 services with the same error. It loads entries, every web route and the entries’ own lazy imports, not the await import() sites a request or job reaches later (parsers, native modules); the "type": "module" test below is the guard for workspace packages. Entries honour the internal MANTLE_BOOT_SMOKE=import-only switch, that exact value only, so a stray =1 on a box is ignored.

  • @mantle/content-core and @mantle/share-ui declare "type": "module" (published as @crossworks/content-core and @crossworks/share-ui): tsx now loads them as ES modules, like every other package. No source change; the share runtime bundle differs only in esbuild’s interop flag on the React imports, which changes nothing at run time (React is not marked __esModule). A test now requires the field in every packages/* and server/* package.

  • scripts/roll.sh: a web that never becomes healthy ends the roll with a loud banner and the last 20 lines of the mantle_web log, every line, with secret values masked (URL credentials, Authorization and Cookie values, bearer tokens, the value after a key, token, secret or password name). Still no automatic rollback.

v0.300.66: kind and role list lints read the code (A10 lows)

  • Re-mark search on a linked Mantle brain, maybe. A10 #12 put the Mantle MCP search tool’s type enum in registry order (the same 17 values). A brain that has another Mantle brain as a connector read the new order as a schema change on its next Sync and voided a read-only mark on that brain’s search. From this version a Sync compares an enum as a set, so a brain running it keeps its mark; a brain on an older version that already synced against a newer one needs search marked read-only again.
  • The kind list and role list lints read the syntax tree: a union, an object keyed by kinds, a comparison chain on any subject, a switch’s shared cases and a SQL in list count now, each reported where it is written, and the rules find the registry wherever ESLint runs from (a missing one is an error, not a pass). The rate limit lint reads every server/web file, not only route files.
  • kindsWhere lists are frozen. No behaviour change otherwise: the refold report’s per-kind counters list their kinds in registry order.

v0.300.64: Anthropic workspace id on a key; direct models show their context window

  • An Anthropic API key can carry an optional Anthropic workspace id (migration 0292, api_keys.anthropic_workspace_id). When set, every Anthropic call made with that key sends anthropic-workspace-id: chat, streaming, vision, the model lists. One place builds the headers (anthropicHeaders, docs/provider-http.md). Without it nothing changes. The id is ASCII letters, digits, _ and - (app check and table check alike; anything else is a 400).
  • Key lookups (getApiKeyById, getApiKey, resolveProviderKey) return a credential, ProviderCredential { apiKey, anthropicWorkspaceId? }, not the bare plaintext; chat and vision options extend it and every discoverModels takes it. Two rows holding the same key value with different workspace ids each send their own.
  • Anthropic’s 400 for a key not scoped to a workspace is classified workspace and reads “This Anthropic key is not tied to a workspace. Add or check the workspace id on the key, or use a key made inside an Anthropic workspace.”
  • GET /api/keys lists anthropicWorkspaceId per key and features.anthropicWorkspaceId: true; POST /api/keys takes an optional anthropicWorkspaceId; PATCH /api/keys/:id sets or clears it. Additive.
  • A direct provider’s model list (/api/models?provider=) fills each model’s contextTokens: Anthropic’s own max_input_tokens, else the OpenRouter catalog’s window for the model’s OpenRouter id (vendor prefix plus id normalization, no table of models). The dashboard’s context bars use the same helper (contextWindowFor) over the same cached model list, so the agent form and the dashboard show one number.

v0.300.55: direct providers list their models in the picker

  • A model provider’s key is looked up through one helper (resolveProviderKey in @mantle/api-keys): the pinned key, else the key labelled default, else the oldest key of that service. A key added on /settings/keys under its own label now lists its models in the agent form, and chat backup routes, embedding routes, the decider and the speech fallback find it.
  • A pinned key that is deleted or no longer opens now falls back to the oldest key of that service, not only to the key labelled default.
  • Onboarding, the manifest seeder, the model combos and the embedding backup suggestion pin the same key an unpinned lookup would use.

v0.300.48: provider HTTP deadlines, retries and errors (A10 #10)

  • One timeout table (PROVIDER_TIMEOUTS, NET_TIMEOUTS in @mantle/std), one retry helper, one Retry-After reader, one provider error and one local model probe; the behaviour changes are listed in docs/provider-http.md.
  • Contract break (minor), @crossworks/voice-client: the adapters/retry subpath is gone (withChatRetry, ChatHttpError, classifyChatError, parseRetryAfterMs, isEmptyJsonBodyError, DEFAULT_MAX_RETRIES), and adapters/registry no longer exports getChatAdapter (it is registeredChatAdapter now, without the retry wrapper). The retry moved onto @mantle/std, which this zero-dependency package cannot import, so no shim is kept. Jackdaw imports none of them; a server-side caller takes getChatAdapter from @mantle/voice and the retry names from its adapters/retry (or @mantle/std). The contractVersion of /api/version does not move: it versions the HTTP wire, not a package’s exports; the package version carries this break.

v0.300.23: Team is a normal workspace; only Admin users tick Moderator

  • Owner decision 2026-10-13 (reverses plan Q1): the only built-in workspace with rules of its own is Admin. Migration 0286 clears the Team workspace’s built-in mark on every brain (its name, items, homes, grants, users and Moderator ticks stay; it keeps the icon it showed). Team now renames, archives (refused while an item has its home there) and takes a look like any workspace; only “Admin” stays a reserved name.
  • A new login (an invite, Add login) joins no Team: a member login gets its private workspace when it needs one, an admin login joins Admin as a Moderator. A new brain has no Team workspace.
  • Only an Admin user (the users area) ticks or clears Moderator, and adds a user with the tick: anyone else gets 403 admin_only (one check, mayPromote). The maker of a workspace is still its Moderator. Jackdaw shows the tick off, with the reason, to everyone else.
  • Nothing looks Team up any more: a member’s chat with no assistant named, and the key-made notice, go to the assistant of the login’s oldest workspace beyond Admin that has one; the old member home route answers the login’s oldest shared workspace; an app run with no holder beyond Admin reads nothing; a connector call with no login needs a workspace beyond Admin to hold it; the author warnings ask the app’s own holders.
  • Removing a Moderator from a workspace is Admin only too, through the same check (owner answer Q2): no remove-and-re-add bypass of the tick. A plain user is removed by a Moderator as before, and anyone may still leave. Jackdaw dims another Moderator’s Remove for a Moderator who is not an Admin user.
  • “Shared” has one meaning: a workspace that is neither Admin, nor private, nor a Former user one (mantle_ws_any_shared), and a holder is any live workspace beyond Admin, a private one included (mantle_ws_any_holder), both on one class of a workspace (mantle_ws_class). The app list’s MCP reach asks the holder rule: right for an Admin user again, also for an app held by a workspace they are not in or by a member’s private one.
  • pnpm -C server/web ws:team-check (read only, numbers only) and ws:clear-member-ticks --workspace <id|former-team> [--apply] for the roll: count first, then an Admin user clears the member ticks.
  • Roll notes and what to tell users: update-prod.md, “Team is a normal workspace”.

v0.300.14: a reserved connection that dies no longer crashes the process

  • A reserved Postgres connection that the server ended (killed, a restart, a dropped network) was handed back to the pool, and the next statement on it threw “Cannot read properties of null (reading ‘write’)” from postgres.js outside every promise: an uncaught exception, in a server a crash (it failed the v0.300.13 release guard). Every reserve in packages/db now goes through one lease (packages/db/src/reserved.ts): a connection that died is never handed back and takes no more statements, and one ended on purpose (the actor’s failed RESET) is never handed back either. Callers: the actor’s write outside a transaction, the turn-scoped query, the concurrent index build.
  • postgres.js 3.4.9 is patched (patches/postgres@3.4.9.patch): a reservation the connection’s close ended is not handed back, takes no statement, and its queued statements are rejected on close; a transaction (begin, so drizzle’s db.transaction) whose connection closed sends nothing more. Before, a transaction killed mid-statement wrote its ROLLBACK to the null socket (the same crash, and that pool slot then timed out on every connect), and a write or a turn-scoped query whose connection died while a statement waited behind a described one never settled (closeDb, or the request, waited forever).
  • The same patch clears a closed connection’s leftovers: the statement that died and its FATAL (the reconnect’s first statement on that slot failed with a stale “terminating connection due to administrator command”, which a Postgres restart, as v0.300.14’s does, puts on every pooled connection that was busy), and a write buffered when the socket closed (every later reconnect of that slot timed out until the process restarted).

v0.300.13: Postgres max_connections 450

  • The canonical compose raises Postgres max_connections from 200 to 450. The worst case of the code (every pool of every process at its max) is 339 on the full shape, 299 with MANTLE_RUNS off and 175 on a core; the write role of A2b2 adds 20. The roll recreates mantle_pg once (a few seconds of errors, no data change). See docs/update-prod.md and docs/deploy.md §0a. docker-compose.dev.yml gets the same value: the dev Postgres takes it when the dev stack is recreated (pnpm infra:up).
  • packages/db/src/connection-ceiling.test.ts sums every pool per box shape from the code and the compose files and fails above 90% of max_connections, or when a pool call appears that it does not count.

v0.300.0: workspaces W8 (levels, client logins and frozen tables out)

  • A helper agent (a specialist such as the replay agent) asked for by a login that is not an Admin user now refuses, on a brain on workspaces: it fails closed with AgentWorkspaceError instead of reading at the agent’s old level. A responder or assistant in no workspace refuses a call that names no login (a heartbeat, a run); specialists and workers keep doing system work. See docs/workspaces.md, “Assistants and chats”.
  • The retired client-responder agent is disabled by migration 0273 (kept, not deleted). The boot reconcile gives the persona’s tool groups only to the Admin workspace’s assistants on a brain on workspaces.