A coordinator leaked a mailbox password and then told its user an env was
empty. The value came from Chrome's saved-login vault in the browser
profile, which the run could read and printed in a snapshot; the env it
wanted was set all along, and the {{env.KEY}} it was told to write arrived
as literal text in a custom tool's arguments.
A password-named field's value, and that value inside its container's
accessible label, now become [hidden] in every browser tool result
(maskPasswordFieldValues), and a reply, an ask_user card, a suggested step,
a send_message and a task report are redacted through it plus redactSecrets
before they are stored. The profile keeps no saved logins: pruneProfileSecrets
removes the login and autofill stores at every Chrome start, and the managed
policy turns off the password manager, autofill and browser sign-in (site
cookies stay, so sessions stay signed in). SecretsNote says [KEY] means set
and hidden, never empty, and that a page credential is never repeated.
A custom tool's arguments are now filled too (fillEnvArgs on
build-custom-tool, with arg_envs = the computer's envs and the run's, the
run's winning): http and script tools get the value, a prompt tool the
[KEY] marker, and an unset key throws the same Settings > Environment
message as a config template. A filled value is redacted from the result.
The computer image is 1.4.5 (the agent changed), so AppData.ComputerImage
moves with it.
stdout and stderr are separate pipes read as they arrive, so a line from
one can land before a line the other already had. The test asked for
stdout first every time and lost that race on CI; it now checks one
stream's order and that stderr comes back beside stdout.
Settings > Host directories adds a folder on the machine Cobble runs on
(super admin), linked to computers or workspaces with read-write or read
only access. A computer link shows at hosts/<name> in every bot's own
folder, a workspace link at <name> in the workspace's shared folder on
every computer the workspace is on, both inside computerRunDirs' roots.
A link is all it takes: applyHostDirectoryGrant gives every bot that sees
the folder an ACL entry of its own (never chown, chgrp or chmod), from a
throwaway container of the computer's image. It runs on link, unlink, a
source change, a bot joining, every sync-computers tick, and from Give
access when it failed. Checks record what each account can do per
computer; the permission command only appears when a check still says a
bot can't write.
Mounts exist only at container creation, so reconcileComputerHostDirectories
reprovisions a computer whose metadata.host_mounts differ, skipping a busy
one. Docker's Mounts array with CreateMountpoint: false means a missing
source fails the setup instead of becoming a root-owned folder, and mount
points under the run accounts are made by a throwaway root container when
the app runs on the host as a plain user.
The agent prunes every mount point from /proc/self/mountinfo in its
shareFolder walk and measures the workspace with du -x, so a mounted host
folder is never chowned or counted against the quota. Computer image is
1.4.4 and the workspace layout is cobble-computer-host-mounts.
Work through the harness audit (.tmp/harness-audit-17-11-2026) in four
phases, with typecheck and the full test suite green after each.
High: bound the closing-tool loop and tell a mixed turn from a failed card
(H1); fire the over-quota warning that never could (H2); keep a crew-request
child task out of the user's browsers and propagate the run kind (H7); stop
a redacted image reading being served from the unredacted cache (H3); refuse
a member secret that repoints a wider-scope env and a templated MCP URL host
(H6); validate provider image URLs (https, internal-host refusal, redirect
re-check, byte cap, HarnessError wrapping) (H4); pin browser URLs to their
validated IPs, fail closed on the docker lookup, and cover IPv6 and every
IPAM config while keeping the LAN allowance (H5).
Medium: growth-only write quota (M7); empty /models no longer wipes the
catalog (M1); re-check a repaired answer before sending it (M3); stop
re-trimming a head+tail result to a stub (M4); place embeddings by index
(M5); header-only provider timeout with classified body aborts (M2); redact
key-shaped tokens from provider errors (M8); cap MCP pagination and HTTP
bodies, refuse redirects (M11); key the stdio pool per env and kill the
process tree (M12); close read-only classifier gaps (M13); snapshot every
repo a destructive command touches, ignored files for clean -x, and surface
a failed snapshot (M6); one shared video deadline and a download cap (M9);
check image dimensions before decode and honour abort (M10).
Low: explicit tool ok flag (L1); Retry-After floor (L2); forever-rest
sentinel in failure rows (L3); coordinator ignores workspace harness rows
(L4); task empty-report guard, plan-step open-work count, defensive turn
copy, exact truncation count (L5); encoding-aware secret redaction (L6);
quoted restore paths, unique snapshot names, prune by patch, room===0 guard
(L7); SHA-256 media keys, empty-transcript error, finite vectors (L8); gate
the image_edit hand-over on fallback and label failures per candidate (L9);
disambiguate long MCP tool names, redact setup logs, own-mode usage scope
(L10); doc corrections (L11).
Also close the latent reviewer findings reached along the way: an
already-aborted computer command (R2, bumps the computer image to 1.4.3),
the reference-blob URL path (R7), the never-throw usage guard (R11), core
chat fields spread first (R12), hardened tar import (R13), and a prompt
custom tool filling a secret value into the model's input - secret envs now
fill as their [KEY] marker there (R1).
Align the user-bubble clamp test with the bubble's 24rem height.
A bot's bash command was capped four times over, silently: 270 seconds in
`ComputerCommandMaxSeconds`, ten minutes by the harness's per-tool
deadline, two hours per task attempt, and an hour inside the agent. Long
scripts (a build, an install, a sweep) were cut with no way to ask for
more.
`computer_bash` now has no limit unless the bot names `timeout`, and then
that is what it asks for (`commandTimeoutSeconds`; `ComputerCommandMaxSeconds`
0 means no cap). A tool can name its own deadline now
(`HarnessTool.timeout_ms`, `null` for none) and `run-tool-call.ts` leaves
such a call to the run's signal. A task run has no attempt deadline
either (a reply keeps its two hours): Stop, a lost lock and the process
ending are what end it, and Stop still kills the command's whole process
group.
The agent has no ceiling left to hit. Measuring it turned up a last one:
Bun's `fetch` drops a connection that stays silent for about six minutes
(`TimeoutError` at 360s, whatever the `AbortSignal` says), so a long
command lost its output on the way home. The agent now opens the answer
and writes a space every `CommandHeartbeatMs` while the command runs, then
the JSON, which `JSON.parse` still reads.
Five honest "I did nothing" reports in a row left nothing to notice them
by, so the app now has an opinion of its own:
- A reply's wrap up offers start_task beside write_file and import_file,
so work it can't finish in 20 steps is handed on with a brief instead of
being promised for later.
- A run that used every step it had blocks the task it was handed
(trackerTaskEnding), rather than leaving it open under a "run finished"
note.
- A full workspace names the folder holding the space and whether the run
can clear it (computerWorkspaceSpace), the agent reports the folder
sizes with its usage, a failed measurement no longer reads as 0, and a
daily cron logs a computer past 80% of its quota.
- A message's details count its run's calls by tool (MessageToolsRollup),
so 242 calls read as one line rather than 242 rows.
Recreating a profile's caches at every start also took Storage/ext,
which holds what an extension keeps rather than what Chrome rebuilds:
Cookie-Editor and every other extension lost their settings on each
container restart. Only caches go now, and the two GPU cache folders
that were missing are cleared with the rest.
A host updated for a year still held every older tag of the app's image
and every computer image the app had pulled, since the installer removed
only the tag the previous container ran. It removes them all now, and
docker refuses the ones a container uses.
Computers move to the image that reports its workspace: the layout name
changed, so migrateComputerLayout recreates each one, keeping its
workspace and browser profile.
One install's production archive was 2 GB: 2457 MB of computer
workspaces (983 MB of npm, pip and bun caches, plus 697 MB of
node_modules and 446 MB of pip installs), 993 MB of Chrome profile
caches, 148 MB of database snapshots and 15 MB of bun-sqlite scratch
space, against 178 MB of bot files. Runs had HOME on the mounted
workspace and no cache variables, so every side cache was persisted
forever, and the archiver tarred the whole volume with one exclusion.
- Runs keep their caches inside the container: computerCacheEnv points
XDG_CACHE_HOME, npm_config_cache, PIP_CACHE_DIR,
BUN_INSTALL_CACHE_DIR and PYTHONPYCACHEPREFIX at the account's own
home, never the run's folder.
- prune-computer-caches (daily) clears what earlier runs left in bot
folders, user folders, workspaces and Chrome profiles, skipping a
computer with a task queued or running. The agent clears a profile's
regenerable cache at each start and caps its HTTP cache.
- listArchiveExclusions is the one definition of what a data archive
leaves out, as exact member paths (--no-wildcards --exclude-from):
computers, Chrome profile caches, db/.backups and .bun-sqlite. A
restore keeps the running install's db/.backups, since no archive
carries them, and still leaves computer folders live.
- A computer's workspace has a quota (computer_workspace_quota_mb,
Settings > General, default AppData.ComputerWorkspaceQuotaMb): the
agent measures it, the app refuses a write past it and warns after
computer_bash and browser calls.
- An upload's bytes go with the messages that carried them, and
prune-orphan-media takes what is left after
AppData.MediaOrphanKeepDays; moved-aside old computer homes are
pruned after AppData.ComputerOldHomeKeepDays.
- install.sh removes the image the previous container ran and dangling
layers, so updates stop accumulating gigabytes on the host.
A worker now works in /home/cb-<bot>/workspace/users/<user> (cwd, HOME
and ~), with its bot-wide folder at /home/cb-<bot>/workspace and, in a
workspace, the shared folder at /home/cb-<bot>/workspace/workspaces/<id>.
Only /home/cb-<bot>/workspace is kept: the agent makes it a link to the
bot's folder on the mounted workspace (bots/<bot>), and workspaces/<id>
in it a link to the workspace's shared folder, checking both on every
request and putting back one that's gone. Nothing on disk moves, so
existing work opens at the new paths.
Paths are checked on their real place (computerWorkspacePath), so the
real spelling still works, and shown to a worker its own way
(computerRunPath). Computer folder refs take either spelling. The
coordinator keeps working in the computer's workspace.
Computer image 1.3.0; the layout bump recreates every computer once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
nft opens a netlink socket even for --version, which the emulated arm64 build has none of, so the v0.14.0 computer image failed to build. 1.2.0 was never published, so the fixed build keeps that tag.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A computer's browser settings get a Lightweight browser switch (off by
default). With it on, Chrome runs with --disable-gpu (the GPU process
loads no Mesa or LLVM, so WebGL is off), forced reduced motion, no
smooth scrolling, no component updates and none of its background
features (optimization guide downloads, media router, translate,
autofill lookups), and Xvnc caps the screen view at 20 updates a second.
On a 1-CPU computer this took idle CPU from about 18% to 7% and memory
from 482 to 401 MiB. Sites see no WebGL, which fingerprinting scores as
less ordinary, so it stays a per-computer choice.
Chrome reads only one --disable-features/--enable-features, so the
agent's list and the user's extra flags are merged (mergeFeatureFlags).
Computers' health checks also run every second during the start period
(Docker 25+), so a ready computer is marked healthy sooner.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every worker bot now works on a computer as its own Linux account
(cb-<bot id>, no sudo), owning its folder; a workspace's folder belongs
to a group its bots share. Only the coordinator works as gem, with sudo.
gem, and so Chrome, can't open worker folders: downloads, uploads and
files saved by name are copied by the worker's own account, and workers
open no file: URLs.
The computer's own services (agent, DevTools, Playwright MCP, VNC, ttyd)
are kept from worker accounts by an nftables rule, so containers get
NET_ADMIN; without the rule the agent refuses worker commands. The X
display needs gem's cookie. File reads for a worker are checked on the
open descriptor, and writes are made as the worker.
Workers ask the coordinator to install system packages with
request_install: a coordinator task in the super admin's conversation
weighs it and answers, and the answer wakes the worker. Stop ends a
worker's leftover processes on its computers.
Computer image 1.2.0; the layout bump recreates every computer once.
The computer's screen has no GPU and no window manager, so the tab in
front is always on show and Chrome draws its animations in software at
full rate whether or not anyone watches: one animated site kept a
production computer at 200% CPU.
- The agent parks the browser after COBBLE_BROWSER_PARK_AFTER_SECONDS
(default 180, 0 turns it off) without a /mcp call or a screen view: a
blank tab goes in front of every site on show, as a person switching
tabs would, so pages keep their connections and see nothing unusual.
The next /mcp call or screen view brings them back before it goes
through. Done over the agent's own small CDP client (the image's Node
has no WebSocket).
- Chrome composites pages in software (--disable-gpu-compositing):
about half the CPU while a bot works, WebGL unchanged.
- The managed policy sets TabDiscardingExceptions so a parked tab is
never discarded and reloaded.
- The screen's websocket bridge now closes when a viewer goes away
without a close frame; it used to stay half open for good.
- Computer image bumped to 1.1.0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Computers now run our own image (computer/, Debian 13): real Google Chrome
on amd64 (Debian's Chromium on arm64), headful on Xvnc with no automation
flags, so sites like Google treat it as a normal browser. One small Node
agent supervises the screen, the session bus, Chrome, Playwright MCP and
ttyd, and serves a single token-guarded port.
- Browser view: the computer's screen over noVNC, so Chrome shows whole
(tabs, address bar, menu, extensions, prompts); Ctrl/Cmd+V pastes the
viewer's clipboard (HTTPS or localhost). Cookie-Editor is installed by
default.
- Shell view (ttyd), for crew managers only.
- The /computers/<id>/ proxy passes only the view paths, never the agent's
API or MCP.
- Per-computer browser settings (super admin): timezone, languages, screen,
scale (125% by default, larger text in bots' screenshots), sandbox and
extra Chrome / Playwright MCP flags, with unsafe flags refused.
- Rebuild computer: pulls the image again and recreates the container;
files and logins stay.
- Bots' computer tools are the app's own (bash, read/write/edit file) plus
Playwright MCP; downloads move into the run's folder, MCP's snapshot and
console files point at the tools that read them.
- Release workflow builds and pushes ghcr.io/moduletrace/cobble-computer
for amd64 and arm64 once per tag.
Existing computers are recreated on the new image at boot (files and
browser profiles stay); run db:schema for the new browser_settings column
(the installer does this).
Co-Authored-By: Claude Opus 5.5 <[email protected]>