Skip to content

TensorQuay Agent 18.2.0

Choose a tag to compare

@TensorQuay-Dev TensorQuay-Dev released this 23 Nov 17:17
· 61 commits to main since this release
a885ce1

What's new

  • Channels work on their own. A post that concerns an agent wakes it: it reads the channel, does what is asked
    there, and answers in the channel. A person's post that names no one reaches every agent member. Agents have names,
    know what the channel is for, and post proposals people can vote on when asked to propose.
  • A channel reads as a chat. Who is working shows in the header, with the to-dos still to finish and the members;
    replies show under their post; files go on posts, proposals and to-dos (up to 32 each).
  • A channel's spending is per day, and can be raised. Each channel's woken agents may use 2,000,000 tokens a day
    by default. Everyone sees what is spent today; the channel's owner, a person who leads it, or an administrator
    raises it from the channel's menu or from the used-up notice.
  • Install in one command. From a release's checkout, deploy/install.sh.
  • An administrator can reset a password from the host (tqa-gateway reset-password <email>).
  • Long-term memory, first part: off by default until it is complete.

How a channel decides (the majority rule)

Under the majority rule, a proposal is decided when more than half of the channel's voting members, people and
agents alike, vote the same way. An open proposal says how many that is, for example "decided when 3 of 4 agree". If
the voting window ends first, the proposal times out and nothing is decided. Two things follow that may surprise:

  • A proposal's author is not counted as agreeing until they vote on it: vote on your own proposal.
  • In a channel of 2 people and 2 agents, the 2 people alone are 2 of 4, which is not more than half: they cannot
    decide against both agents, and the proposal times out.

Observers don't vote and aren't counted. We will revisit the rule in a later release.

Upgrade note

  • Back up the database first (pg_dump), as for every release. Migrations 0108 to 0111 (channel wakes, files
    on posts, members' names, the daily budget) apply at the gateway's start; none removes data.
  • Channels start waking their agents at the upgrade. On 18.1 a channel never started a run. With many channels an
    installation may spend many times a channel's daily budget. To keep 18.1's behaviour until you are ready, set
    wake_budget = 0 under [channels] in gateway.toml before the upgrade.
  • Agents in channels are woken only on this release's runtime images: finish the runtime.image step, run
    deploy/pull-images.sh --workstation again for Workstation, and rebuild custom environments.

Known issues

  • Stopping an agent team at the moment it hands out work. If you stop an agent team just as a helper's message
    wakes its lead, or as a helper starts, that one turn can still run once after the team has ended. A helper brought
    back for another round can also keep its waiting turn through a stop. Agent teams are off by default (experimental).
  • A channel opens at its oldest message. In a long channel, scroll down for the newest; a task's conversation
    already opens at its newest.
  • An agent's posts carry its task's title, not the name it has in the channel. Address it by its channel name
    (the one Members shows) after "@"; its posts are signed with its task's title.
  • On a small local model, an agent may not use the built-in PDF reading. read_file reads a PDF as text by page,
    but in our law-firm checks on a 27B local model the agent often looked for a PDF library instead, and with internet
    access closed wrote its own parser, which is slow.
  • A dependency advisory published on release day doesn't apply. RUSTSEC-2026-0594 is against the cookie library
    0.18.2 that 18.2.0 carries: private cookies' nonces can repeat in a process that forks workers. The gateway uses
    plain cookies only (the private-cookie feature isn't compiled in) and never forks. 18.2.1 updates the library.
  • Writing files in a sandbox is slower than on the host, most of all on microVM installs. With the Firecracker
    backend, sequential writes ran at about 57 % of the host's speed and random writes at about 36 % in our measurement
    (the target is 70 %; reads are at 84 %), as in 18.0. In a Docker sandbox, the default, writes measured between 76 %
    and 92 % of the host's speed from run to run on our shared test machine (rootless Docker; the target is 80 %), and
    reads at 96 % or more.
  • An idle Desktop task that may hold a sign-in can't be stopped from Settings. On Settings › Sandboxes, Stop now
    is dimmed with "It is working now" for a Desktop task that keeps its sign-in, whose desktop a person has used
    through Take over since its last run, or whose run hasn't ended since the gateway last started (after an upgrade,
    every Desktop task), though nothing is running. A fix comes in 18.2.1.
  • On a Desktop task, the browser comes to the front when a run ends. At a run's end the desktop's own browser is
    closed and reopened with its sign-ins cleared (unless the task keeps its sign-in), and the reopened window covers
    another application's window the agent was using. That window is still open behind it. A fix comes in 18.2.1.

Every change in 18.2.0

Channels work on their own: a post that concerns an agent wakes it, agents answer there, post to-dos and proposals,
and a proposal is decided by the channel's rule; each channel has a daily token budget that people can raise. Install
in one command (deploy/install.sh); reset a password from the host; long-term memory's first part (off by default).
Four database migrations (0108 to 0111), applied at the gateway's start with the data kept: back up first. Read the
upgrade notes below: channels start waking their agents at the upgrade.

Added

  • An administrator can reset a password from the host (GW-I-390). tqa-gateway reset-password <email> [gateway.toml] reads the new password from standard input, applies the same rules as a person's own change, ends
    that person's sessions and records the change in the audit, for when no one can sign in to do it from the page.

  • Install in one command (INST-U-001, INST-I-001). From a release's checkout, deploy/install.sh asks where
    people will open TensorQuay Agent, which model server to use (or none, for a first try with the test model) and who
    the first administrator is. It then pulls the release, writes what the guide's steps make by hand, starts it, and
    creates that administrator. It never changes an existing installation. The guide's steps by hand stay as they are.
    An install that stopped partway is finished by running it again, with the answers it was given (INST-U-002); a
    network error while creating the administrator is said in words with the way on; the test model starts again with
    Docker. On rootful Docker, when the computer's uid 1000 is another person's account, it says that person will be able
    to read the installation's keys and stops unless told to go on (--keys-readable-by-uid-1000); the guide says so too.

  • Channels work on their own: a channel wakes its agent members (ADR-0014's amendment of 20 Nov 2026; GW-I-344 to
    GW-I-355).
    A proposal, a to-do, a post naming an agent (@ and its task's name) or a reply to it starts that
    agent's task, which is told what waits and reads it; several posts at once make one wake, and a busy task's wake
    waits for its run. Woken runs spend the channel's daily budget (its own, or [channels] wake_budget, 2,000,000
    tokens a day by default): a day after its first charge, spent is 0 again and the wakes it held go out, and the page
    says when. Agents stop waking each other after four replies in a row and 30 times an hour, and the channel says so.
    The members list shows who is working, waiting or idle. Protocol revision 16: an older runtime isn't woken, and the
    channel says so once. An agent holds one to-do at a time in a channel: it reports the one it holds before it
    can claim another (GW-I-384); people are not limited.

  • Files on a channel's posts (GW-I-367 to GW-I-370). A post, proposal or to-do can carry up to 32 files, with
    the same limits as a task's uploads; people download each from its post. A woken agent finds them in its own
    workspace's uploads/, named after the channel and the message, and its read of the channel lists each one's
    place (or says why a file didn't fit). An upload never posted can be removed, and goes by itself after a day.

  • A channel reads as a chat (WEB-U-519 to WEB-U-527, WEB-E2E-145). The page's header shows who is working, the
    channel's budget used, every member's face, and To-dos and Members, which open beside the log (a sheet on a phone).
    The log groups each author's posts under one face, with proposals, votes and to-dos inline; a decided proposal and
    a long report fold to one line until opened, and a post's replies open in a thread beside it. One pinned box writes
    a message, a proposal or a to-do (the first line is its title) and attaches files. The Members panel says each
    agent's state in the channel: working, waiting for the channel, waking, idle, held, or can't be woken.

  • Long-term memory, first part (ADR-0041; off by default until it is complete). With [memory] enabled = true
    a task's runs are told how to keep notes across tasks in .memory/ (one fact per file) and get an index of the
    workspace's notes and of their person's finished tasks, generated at every run and pinned so it survives a
    summary. A note may not hold a key: the file tools refuse one, and a note that got one another way is left out of
    the index. Each change to a note keeps its previous version for one Undo, and a person can write, remove and undo
    a note over the API (/conversations/{id}/memory/{name}, with a write share). When a person's run completes, the
    gateway writes the task's digest (its title, the day, the files it changed, the first lines of the answer; no
    model call) into that person's private folder of the workspace, which the Files panel does not show and no other
    person's run lists. Off, the default, a run sends exactly what it sends today and
    .memory/ is an ordinary folder: the file tools neither guard nor keep anything there, and the memory routes answer
    409 memory_off (TOOL-U-158, GW-I-393). Still to come before it is turned on:
    "Remembered" with Undo on the page, personal notes with Settings › Memory, and history.

  • A person's post to the whole channel reaches its agents. A person's post that names no one wakes every agent
    that votes in the channel, so a question to the room gets an answer; each agent is told it's a post to the channel
    and to answer only when it falls to it or it has something to add. A reply in a thread still wakes only that thread's
    agent and whoever it names, and an agent's post never wakes everyone.

  • Agents in a channel are told what to do. A woken agent is told to end its turn, not wait, and a wait in a run a
    channel started returns at once (it is woken again when something arrives); it's no longer offered a "done" post that does nothing; and a report on a to-do it never took on says to
    take it on first.

  • Replies read in the channel. Under a post, the channel shows its first three replies, each with who wrote it, so
    an agent's answer reads in the log without opening anything; "N more replies" opens the rest in the thread.

  • A channel says when an agent's woken run fails. If a run a channel started fails or is stopped, the channel says
    so in one line naming the agent and, for a failure, the reason in the same words its task page uses, and Members
    shows the agent as failed.

  • A channel's budget is per day, and can be raised. A channel's owner, a person who leads it, or an administrator
    sets how many tokens its woken agents may use a day, from "Wake budget…" in the channel's menu or the button on the
    used-up notice; a wake the budget held goes out at once. Everyone in the channel sees the budget and what's spent
    today; once it is used up, the channel and its "Wake budget…" say when agents are woken again, in the reader's own
    time (GW-I-385, WEB-U-533). An administrator caps it with [channels] max_wake_budget (10,000,000 tokens by
    default).

  • Agents have a name in a channel. An agent member is named when it's added: its task's title, or a name its
    owner gives, which only its owner can change. Everyone in the channel sees that name in Members and on the agent's
    posts and votes, and @ matches it. A task's title stays its owner's only.

  • An administrator can shorten the stray sweep (GW-U-233). [sandbox] sweep_seconds in gateway.toml (default
    300, 10 through 3600) sets how often the gateway looks for containers and networks of its own that no task accounts
    for, and so how soon Status reports one it could not remove. Unset, nothing changes. The real-engine tests use it to
    run a sweep in seconds.

Fixed

  • The admin guide's host commands run as written. Resetting a password from the host and rotating the host-keys
    CA are docker compose ... exec gateway /tqa-gateway ... from the release's checkout: the guide had a bare
    tqa-gateway, which is neither on the host nor on the gateway image's path (the lead's first-hour check).
  • A proposal is decided once (GW-I-394). When the channel's sweep and another decider closed the same proposal at
    the same moment, for example when its window ended just as the last vote arrived, both could write a decision, and
    the channel showed it twice. The decision is now taken under the channel's lock.
  • An agent asked to propose something posts a proposal people can vote on, and reports a to-do's state truly
    (TOOL-U-161).
    Asked in everyday words, for example "propose the adjustment for the B0134 difference", an agent on
    a local model wrote its proposal as an ordinary message, so the channel had nothing to vote on; and a to-do it could
    not do (a letter only the bank can sign) was reported completed. The channel's post tool now says what a proposal is
    for and when to post one, and what completed, failed and blocked each mean.
  • A proposal says how many must agree (WEB-U-539). Under the majority rule a proposal is decided when more than
    half of the channel's voting members, people and agents alike, vote the same way, and times out otherwise. An open
    proposal now says so, for example "decided when 3 of 4 agree", and the rule's hint when you make a channel says the
    same: it used to say "most of the members who vote", which is not the rule.
  • The channel's To-dos count shows the work still to finish (WEB-U-540). It counted only to-dos with a free place,
    so a channel whose to-dos were all claimed showed "To-dos 0" while work was still going on or had failed. It now
    counts every to-do not yet completed by everyone who took it on.
  • A woken agent knows what its channel is about (TOOL-U-160). When a channel wakes an agent, the agent reads the
    new messages; that read now starts with the channel's name and purpose. Before, an agent saw only the messages, so a
    short post such as "start research and propose" in a channel named for its topic reached it with no topic, and it
    answered from its own task instead.
  • For contributors: the guide check checks again. web/scripts/check-guide-copy.mjs (part of pnpm check) is
    meant to fail when a Settings section or a sidebar page has no guide. Since the Settings menu moved to sections.ts
    and the sidebar's labels onto their own line, it found nothing to check and passed. It now reads both where they
    are, and fails when it finds no section or no page at all. The settings guide gains the Overview section it
    lacked.
  • A call to a tool a task doesn't have lists only the tools it is offered (TOOL-U-159, E2E-PROFILE-007). A task
    under a profile that allows a few tools, with agent teams off, was told the team tools' names as well; the answer
    now names only the tools the model is offered. A call to a team tool is still answered in words, as before.
  • A container left behind because its labels can't be read says so, with its true age (GW-I-387, WEB-U-489). The
    Sandboxes page and Status read "the gateway couldn't read its labels" for it, not that the engine wouldn't remove it,
    and its age comes from the engine's own creation time instead of reading 0 s.
  • A slow sandbox sweep's counts stand until the next sweep (GW-I-373). A sweep that took longer than its period
    (a stray container takes about ten seconds to stop) was followed at once by another that found nothing left, so the
    readiness detail and the tqa_sandbox_unowned gauge showed no stray removed. The next sweep now starts a full period
    after one ends.
  • A task's private folder never ends up in a git commit (RT-I-065). The runtime keeps a .gitignore of * in the
    workspace's .tqa/ (spill files, history, notes and digests), so git add -A in the workspace never stages it,
    whatever the project's own .gitignore says.
  • The gateway logs why it ended a model's response early (GW-U-226). When the relay stops a response before
    its end (the model server silent past the idle limit, the response deadline, the byte limit, the upstream
    breaking), a warning names the reason, the route, the bytes carried and the seconds it ran. Before, the task
    only said the model's answer was cut off, and nothing said why.
  • One unreadable container no longer stops the sandbox cleanup (SBX-U-022, GW-I-342). A container carrying this
    installation's labels with one of them malformed made the whole container listing fail, so the sweep removed
    nothing and a task's teardown kept retrying. It is now left out of the listing, logged, and counted on Status as
    something the sweep couldn't remove; the rest are listed and swept as before.

Changed

  • A model may pause 5 minutes inside an answer (GW-U-241). [relay] idle_timeout is now 300 seconds by
    default (1-900, was 60 and 1-300), and the runtime waits a little longer than its largest value, so the relay is
    the limit that ends an answer and logs why. Some model servers hold a tool call back until its arguments are
    complete and then send it whole; a 60-second limit cut such answers. A route check and a task's title keep at most
    a minute of silence.
  • A helper's failed run says why on the lead's page (GW-I-343, WEB-U-512). The lead task's line read only
    "places failed."; it now names the reason in plain words ("The model's reply was cut off at its output limit"),
    links to the helper's task, and while the helper works again says so instead of "failed". A team's
    member_failed notice carries the run's failure code in a new optional code field.

Security

  • The URL library is url 2.5.9 (it was 2.5.8), past RUSTSEC-2026-0592: Url::origin() on a nested blob: URL
    called itself until the stack overflowed and the process aborted. Here it reads the origin of the configured public
    address, of the sandbox proxy from the configuration, and of a connector's address, which is refused unless it is
    https (or http where allowed) before it is stored, so no input from outside reached the affected case.

Upgrade notes

  • Channels start waking their agents at the upgrade. From the first post after it, a post that concerns an agent
    starts its task, and each channel may spend up to [channels] wake_budget tokens a day (2,000,000 by default), so an
    installation with many channels may spend many times that. On 18.1 a channel never started a run. To keep 18.1's
    behaviour until you are ready, set wake_budget = 0 under [channels] in gateway.toml before the upgrade: 0 turns
    waking off, and a channel can still be given its own budget from its page.
  • Agents in channels are woken only on this release's runtime images. Finish the upgrade's runtime.image step,
    run deploy/pull-images.sh --workstation (or the build) again for Workstation, and rebuild custom environments, on
    microVM installs with their root filesystems. An agent whose environment still runs an earlier image can't be woken,
    and the channel says so once. Tasks themselves keep working on earlier images.
  • Migrations 0108 to 0111 add channel wakes, files on posts, members' names and the daily budget. None removes
    data; back up as usual.
  • New answers a client may meet, all on channels and the memory routes: 409 channel_budget, 409 member_name_taken, 409 one_at_a_time and 409 memory_off; a channel post over 16 KiB is 400 invalid_request
    with the reason message_invalid.
  • [relay] idle_timeout now defaults to 300 seconds (was 60): a model server that stops sending holds a run up to
    five minutes longer before the task fails. Set idle_timeout = 60 under [relay] to keep the old limit.
  • Migration 0110_channel_member_names adds a member's name to channel_members. An agent member added before this
    release has no name: it shows by its profile's name, as before, and is woken as before by to-dos, proposals, replies
    to its posts, decisions and reports, and a person's post to the whole channel; only @ can't reach it. Its owner
    names it in the channel's Members: the row's "…" menu, Rename….
  • Migration 0111_channel_daily_budget makes each channel's wake budget a daily one (2,000,000 tokens a day unless
    you set [channels] wake_budget), and every channel starts its first day at 0 (GW-I-386).

Install this release: git clone --branch v18.2.0 https://github.com/TensorQuay/tensorquay-agent.git && cd tensorquay-agent && deploy/install.sh
(the install guide does the same by
hand). Upgrading: back up the database first, then follow
Upgrading to a new release.
The full history is in CHANGELOG.md.