Skip to content

feat: agents, scripting and plugins, and the render farm (0.14.0) - #8

Merged
nodemode-ai merged 160 commits into
mainfrom
feat/agents-farm-0.14.0
Dec 5, 2026
Merged

nodemode-ai merged 160 commits into
mainfrom
feat/agents-farm-0.14.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat: agents, scripting and plugins, and the render farm (0.14.0)

Summary

  • Agents (0.13.0). FormShot runs without its window (./formshot serve --headless; ./formshot mcp starts one when nothing answers and stops it when the client ends). In a headless service, agents may use files only in allowed folders, and renders without a target go to ~/.formshot/agent-output. MCP clients get the standard profile by default (25 curated formshot_* tools that return pictures, plus read-only commands), or full or restricted.
  • Scripting and plugins. A loopback scripting channel with a per-start token in a 0600 discovery file; a standard-library Python client, ./formshot script and three examples. Plugins run as their own processes: a manifest, consent (deny or once), crash isolation, the Plugins window and five example plugins. A console panel shows typed commands and the traffic of agents, scripts and plugins.
  • Links and hand-offs. Live link commands (link.*) and a FormShot Link add-on for Blender 4.2 and later. Keep in sync re-imports a hand-off from FormSculpt, FormCAD or FormSurface when its file changes. The engine carries an agent guide (help.guide, 12 pages, 94 checked examples). The command line renders a project's setups by name, and selftest checks every device.
  • The new icon. The owner's lens-and-aperture icon in the app bundle, the top bar, the splash and About.
  • Render farm (0.14.0). formshot-engine worker renders jobs for dispatchers on other machines, through the same code as formshot-engine render.
    • Connections are bound to a shared farm token: an X25519 and HKDF-SHA256 handshake confirmed with HMAC, then ChaCha20-Poly1305 records.
    • A project travels as a deterministic bundle with every outside file it references.
    • The dispatcher shares batches of shots, configurations or frames between workers, and requeues a dropped job.
    • There are seven farm.* engine commands, formshot-engine farm token|workers|submit, the Render Farm window and Render on farm in Final Render.
    • The worker listens on 127.0.0.1 unless --bind names another address: the one socket in FormShot that may take a network address.
  • Security fixes found during the turn.
    • A headless service handed its window key to the first local program that asked; it now gives none.
    • Agents may read only the farm token's status; they cannot create, import or export it.
    • A worker takes at most 32 connections at once.
    • The cipher and HMAC crates clear their keys on drop.
  • Other fixes from the QA passes.
    • Turning on a plugin with code asked twice at once; it now asks once, in the Plugins window.
    • Headless agents' preset ids were refused as paths.
    • Scripts could not see the user's installed packages.
    • The farm form could send a previous project's settings.
    • .formshot and farm pictures had the wrong file modes.

Commits

Oldest first, release commits at the end of each phase. The short hashes change when formpr signs the commits.

  • feat(commands): reserve the guide and live link groups (2df71489)
  • feat(service): reserve the scripting channel and the plugin host (16e92adf)
  • feat(setup): reserve the script command and the agents sync parts (a0498cbd)
  • feat(ui): reserve the console and plugins modules (5b0fe6ec)
  • feat(service): headless consent and the folders agents may use (bf1c5ea2)
  • feat(setup): serve --headless and a bridge that starts it (43e308a5)
  • docs: the headless service, its consent and agent folders (b4642ad7)
  • feat(service): open the local scripting channel with discovery (aaa844dc)
  • docs(service): describe the scripting channel and log what ran (eb17e682)
  • feat(mcp): curated agent tools and the full, standard, restricted profiles (92e546b7)
  • docs: MCP profiles and the curated agent tools (7761fc30)
  • feat(python): add the client of the scripting channel (f0327beb)
  • feat(setup): run Python scripts with ./formshot script (3ca06e8a)
  • feat(agents): generate the Python command reference (62063b3c)
  • docs(python): add the example scripts and the Python guide (cbb895b3)
  • feat(plugins): host plugin folders as processes with consent (9676f624)
  • docs(plugins): describe the plugin format, API and lifecycle (032354a3)
  • feat(plugins): add the plugin template (97e6061f)
  • feat(plugins): add the anodised metals material pack (92b15d91)
  • feat(plugins): add the colourways and render every camera plugins (e66ea543)
  • feat(plugins): add the auto materials and mood grades plugins (7e25fe5a)
  • docs(plugins): add the plugins index and its log (9eb15131)
  • fix(mcp): run every tool through the headless folder rule and consent (9fc67bf5)
  • docs: separate the merged sections of the service and setup logs (b1973ca1)
  • feat(engine): add help.guide with the agent guide pages (50b8e3cb)
  • feat(agents): sync and check the guide pages in the rendering skill (068916a4)
  • docs(logs): log the agent guide and its sync (8306618e)
  • docs: start each log section after a blank line (5520ae23)
  • feat(service): keep hand-offs in sync with their source files (b68b5087)
  • feat(ui): a Keep in sync switch and its state in the hand-off list (6c969629)
  • docs(logs): log Keep in sync for hand-offs (71b8591e)
  • feat(blender): add the FormShot Link add-on for Blender (72297a3e)
  • docs(blender): describe the add-on, its licence and what ran (5715d7ff)
  • feat(ui): add the console under the viewport (3dc6036f)
  • feat(ui): add the Agents and Scripting preferences page (45b145bb)
  • docs(ui): log the console and the Agents and Scripting page (c30e9028)
  • feat(brand): the owner's FormShot icon for the desktop app (fcf4be45)
  • feat(brand): show the new icon in the window and the splash (54f7e4ab)
  • feat(commands): live link hello, sync, camera, status and forget (bc6d631b)
  • docs: the live link protocol for any client (5f3eb206)
  • feat(ui): plugins window, plugin commands and data-declared panels (c34bf842)
  • docs(ui): log the plugins window in the frontend HASHOUT_LOG (85219346)
  • docs(ui): correct the step count of the plugins window run (df9020f0)
  • fix(plugins): one-plugin answers and every client's events (df7bf158)
  • fix(service): keep the engine's error code on EngineError (b4d9f941)
  • feat(setup): serve --headless on Windows and in the help (50ff6124)
  • feat(cli): render setups by name, selftest and the guide command (b60b6fb9)
  • fix(cli): print guide examples once and name the next page (cbb9aef4)
  • docs(cli): describe the command line and log the render setups (acdae367)
  • docs: start the merged P18 log sections after a blank line (d2c30110)
  • chore(agents): sync the tool reference with help.guide and link (b23cca12)
  • fix(agents): read preset ids as ids, not paths, for headless agents (489fd448)
  • fix(scripting): stamp the discovery file in local time (17f3f362)
  • fix(python): let scripts use the packages installed for their Python (a36a60b0)
  • fix(python): read the flat node list in the dress-by-name example (84b32649)
  • docs(readme): add the agents layer to features, the table and the agents section (75814b72)
  • docs(architecture): describe the agents layer and where it sits (21fb12a1)
  • docs(import): add Keep in sync to the hand-offs and link Python from scripting (4589508f)
  • docs(wiki): add Agents and Scripting and link it from Home, the sidebar and Import (aefd1560)
  • docs(agents): note the new modules and how agents connect in CLAUDE.md and AGENTS.md (3db6b55d)
  • docs(skills): bring the harness skill to the agents layer (9c2b1628)
  • docs(skills): tell rendering agents about profiles, the guide and headless limits (dca22d7c)
  • feat(i18n): translate the console and plugins into Spanish (a88f8fcd)
  • feat(i18n): translate the console and plugins into Mexican Spanish (08d43364)
  • feat(i18n): translate the console and plugins into Brazilian Portuguese (60d2ed09)
  • feat(i18n): translate the console and plugins into French (bb228e18)
  • feat(i18n): translate the console and plugins into Canadian French (5a74b57d)
  • feat(i18n): translate the console and plugins into German (94558cbc)
  • feat(i18n): translate the console and plugins into Italian (7313e7d9)
  • feat(i18n): translate the console and plugins into Dutch (9c7745c1)
  • feat(i18n): translate the console and plugins into Danish (72a94a85)
  • feat(i18n): translate the console and plugins into Finnish (324214e8)
  • feat(i18n): translate the console and plugins into Norwegian Bokmal (0abc1fa2)
  • feat(i18n): translate the console and plugins into Swedish (34b7221d)
  • fix(i18n): use plain plural forms of plugin in the Danish plugins table (0ff47bfb)
  • feat(i18n): translate the console and plugins into Russian (a80a650c)
  • feat(i18n): translate the console and plugins into Polish (511cc6d0)
  • feat(i18n): translate the console and plugins into Czech (da428018)
  • feat(i18n): translate the console and plugins into Hungarian (52e9df64)
  • feat(i18n): translate the console and plugins into Ukrainian (b1a7b2e0)
  • feat(i18n): translate the console and plugins into Turkish (d3459683)
  • feat(i18n): translate the console and plugins into Indonesian (6d4e1ce4)
  • feat(i18n): translate the console and plugins into Thai (5375183b)
  • feat(i18n): translate the console and plugins into Vietnamese (e6ea57fd)
  • feat(i18n): translate the console and plugins into Simplified Chinese (05b455f4)
  • feat(i18n): translate the console and plugins into Traditional Chinese (3356bd7c)
  • feat(i18n): translate the console and plugins into Japanese (aaa6e189)
  • feat(i18n): translate the console and plugins into Korean (5b54a8e7)
  • docs: log the lead's P18 fixes and the real-stack smoke run (97c5bd4f)
  • fix(agents): give no window key in a headless service (91b84648)
  • fix(plugins): ask for a plugin's code in one prompt only (8d2a944a)
  • fix(agents): fill default targets inside formshot_run and formshot_batch (436e8cc0)
  • fix(plugins): make the agent output folder private in render-cameras (17992b40)
  • docs: say who the headless rules cover and what link connected means (ccb17134)
  • docs(changelog): describe 0.13.0 (f00128fc)
  • chore(release): 0.13.0 (754d1795)
  • feat(farm): reserve the fsh-farm crate, the farm commands and the CLI routes (4e435141)
  • feat(ui): reserve the farm module (e6135a66)
  • feat(farm): seal farm connections and keep the farm token (823e9057)
  • refactor(farm): move the stall timeout's note into the log (08c8568d)
  • docs(notice): list the farm's crypto crates and log the wire (9fab4eca)
  • feat(farm): pack projects into bundles and unpack them into a cache (1fac0867)
  • docs(farm): describe bundles and log the bundle work (d92c2a76)
  • feat(farm): serve dispatchers from the farm worker (1b09a6f9)
  • feat(cli): formshot-engine worker over render's own setups (2a0a0d5c)
  • docs(logs): log the farm worker and what ran on stand-ins (6769cc1f)
  • feat(ui): add the Render Farm window and the Render on farm section (adb3ed36)
  • docs(ui): log the render farm window and what ran (56fff3c5)
  • fix(farm): clear keys inside the cipher and HMAC crates (f5c345f8)
  • fix(farm): take at most 32 connections at once on a worker (474d0819)
  • docs(cli): list the worker's options in the usage (ebcf5077)
  • docs: log the lead's P19 fixes and separate the merged sections (beb7fc44)
  • feat(farm): dispatch batches to workers with requeue and backoff (0aedc3fb)
  • feat(farm): add the farm engine commands (559ff3d0)
  • feat(cli): add formshot-engine farm token, workers and submit (2bf5ab8c)
  • docs: start the dispatcher's log section after a blank line (6cec96c5)
  • feat(i18n): translate the render farm into Spanish (7affed3c)
  • feat(i18n): translate the render farm into Mexican Spanish (f37824d1)
  • feat(i18n): translate the render farm into Brazilian Portuguese (bf48a92d)
  • feat(i18n): translate the render farm into French (1705eff8)
  • feat(i18n): translate the render farm into Canadian French (ac34ef57)
  • feat(i18n): translate the render farm into German (621b2e61)
  • feat(i18n): translate the render farm into Italian (b2fc2b86)
  • feat(i18n): translate the render farm into Dutch (4ff33cf0)
  • feat(i18n): translate the render farm into Danish (37a83ee6)
  • feat(i18n): translate the render farm into Finnish (18500db0)
  • feat(i18n): translate the render farm into Norwegian Bokmal (27a22894)
  • feat(i18n): translate the render farm into Swedish (3da9a060)
  • feat(i18n): translate the render farm into Russian (d4f03028)
  • feat(i18n): translate the render farm into Polish (2f6bcb94)
  • feat(i18n): translate the render farm into Czech (3a22f8d8)
  • feat(i18n): translate the render farm into Hungarian (770722d3)
  • feat(i18n): translate the render farm into Ukrainian (bcc5eb2d)
  • feat(i18n): translate the render farm into Turkish (21c477d5)
  • feat(i18n): translate the render farm into Indonesian (8c220d8a)
  • feat(i18n): translate the render farm into Thai (4d75da9d)
  • feat(i18n): translate the render farm into Vietnamese (3c0891f1)
  • feat(i18n): translate the render farm into Simplified Chinese (fdd0584f)
  • feat(i18n): translate the render farm into Traditional Chinese (102d04f6)
  • feat(i18n): translate the render farm into Japanese (39eb5043)
  • feat(i18n): translate the render farm into Korean (77890d64)
  • docs(farm): write the render farm page (119523be)
  • docs(cli): describe the worker and farm subcommands (e3ccd491)
  • docs(architecture): add the farm crate, group and data flow (5af83fd8)
  • docs(security): name the farm worker as the one socket off loopback (109c505f)
  • docs(readme): put the render farm in the box (568507f6)
  • docs(wiki): add the Render Farm page (ea5fcb82)
  • docs(agents): note the farm crate, group and window module (234699e5)
  • docs(farm): record the run of the real parts together (0d036d69)
  • docs(skills): add the render farm to the harness (2602349f)
  • docs(agents): add the farm to the rendering skill and sync the kit (28afa55f)
  • fix(agents): let agents read only the farm token's status (3c3407c7)
  • docs(farm): say that agents cannot create, import or export the token (722506cb)
  • fix(ui): send the open document's settings to the farm (d345ab3c)
  • fix(farm): make a new .formshot private and farm pictures readable (9cc69007)
  • fix(farm): log the connections a crowded worker turns away (af1c8221)
  • docs(farm): list the QA's limits and log the fixes and the QA run (6041c286)
  • docs(changelog): describe 0.14.0 (821cbaae)
  • fix(setup): write notices without an em dash (9a2a74b6)
  • chore(release): 0.14.0 (b7cc4a56)

Version

v0.14.0, release commit last; chore(release): 0.13.0 closes the agents phase in the middle of the series.

Version sites bumped in each release:

  • VERSION;
  • frontend package.json and package-lock.json, and version.ts;
  • tauri.conf.json, src-tauri Cargo.toml and Cargo.lock;
  • backend __init__.py;
  • every native crate manifest (19 at 0.14.0; fsh-farm is new) and native/Cargo.lock;
  • fsh-py pyproject.toml and the formshot-engine usage line;
  • the README, CONTRIBUTING, NOTICE, SECURITY and ARCHITECTURE version lines;
  • the harness skill and the HASHOUT log headers.

The catalogue has 280 entries (113 document, 38 engine, 114 group commands, 15 aliases); formshot-engine catalogue prints 276. New crates, native only in fsh-farm: chacha20poly1305, x25519-dalek, hkdf, hmac, sha2, getrandom and zeroize, with the crates they pull in (MIT, Apache-2.0 or BSD-3-Clause), listed in NOTICE.md. THIRD-PARTY-NOTICES.txt is regenerated.

Checks

  • The P18 exit, run by the lead and again by an independent QA pass. With no window open, an MCP client on ./formshot mcp started a headless service and, with MCP tools only:

    • opened a model;
    • dressed its parts with library materials;
    • applied a studio and a camera view;
    • rendered a picture to a file and looked at it.

    This passed under the standard and the restricted profiles. The service stopped when the client's input ended.

  • The P19 exit, by an independent QA pass. Two workers, each in its own network namespace standing in for a machine, shared batches of every shot, every configuration and a frame range. One project had an outside texture and an HDRI. All 20 pictures were byte-identical to local renders of the same jobs. A worker killed mid-job had its job finished by the other worker, byte-identically.

  • Security.

    • Every listening socket of the service, the channel and the plugin hosts is on 127.0.0.1.
    • The discovery file is 0600 in a 0700 folder and is removed on stop.
    • A wrong token is refused.
    • Headless folder refusals hold for every tool that takes a path, including links and ...
    • Plugin manifests and ZIPs that climb out of their folder are refused.
    • 33 wire tamper cases close the connection.
    • The farm token is in no log, process environment, command line, page or browser storage.
    • A worker without --bind is unreachable from another namespace.
  • Agents and scripting.

    • The scripting channel's operations, with batches as one undo step.
    • The three Python examples.
    • All five example plugins, with crash isolation.
    • The Blender add-on in bpy 4.2 and 4.5 against the real channel, with the received scene rendered upright.
  • The window. The console, the Plugins window, the Agents and Scripting page, Keep in sync and the Render Farm window ran in headless Chrome with the CPU throttled 4 times and a slow network, with no layout shift of their own.

  • Regressions. A plain render is byte-identical to 0.12.0. glb, obj and usdz round trips keep their parts and triangles.

  • Gates. These all pass:

    • cargo clippy --locked (workspace, and fsh-wasm for wasm32) with -D warnings;
    • cargo metadata --locked in src-tauri;
    • tsc --noEmit and vite build;
    • ./formshot i18n check and the module parity check (every new string in 25 languages);
    • ./formshot agents check;
    • the harness skill validator;
    • CI's em dash and emoji scan of tracked text.

Not run:

  • Separate physical machines for the farm, and a GPU worker.
  • The Form apps themselves writing hand-offs (stand-in writers only).
  • Blender's window (bpy module only).
  • The desktop app: its file panels, full screen, menu accelerators and native drops.
  • Windows and macOS.
  • Native-speaker review of the new translations.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

The command groups guide (the paged agent guide embedded in the engine) and link (live links from modelling tools) are reserved as empty modules chained into the catalogue, so the agents phase's builders own their files by path. cargo check -p fsh-commands passes.
The packages app.scripting (the loopback scripting channel for scripts, plugins and live links) and app.plugins (the plugin host) each give an empty router and a lifespan, included in the service, so their builders own them by path. import app.main passes.
./formshot script (setup/script and setup/script.py, also in formshot.bat) is reserved for the Python client, python/formshot is its package, and ./formshot agents sync and check now call two parts of their own, agents_guide (the guide's pages in the rendering skill) and agents_python (the Python client's command reference), which change nothing yet. ./formshot agents check stays clean.
Empty entry modules for the script console and the plugins window join the fixed module list, so their builders own them by path. tsc --noEmit passes.
A materials-only plugin: plugin.json and twelve dyed anodised aluminium presets in the library's format 1 (champagne, graphite, space grey, clear satin, midnight, cobalt, teal, lime, tangerine, ruby, copper, violet), with our own authored values: metallic base in ACEScg, edge tint lifted toward white, a thin clear coat for the sealed oxide. Copied into a user library folder the engine read all twelve with no warnings, applied one, and rendered all twelve thumbnails.
Colourways cycles the selected parts through five colour sets of library materials, each change one batch and one undo step. Render every camera writes one picture per saved camera into a folder or the agent output folder and restores the active camera. Both were run against the engine's dispatch: three parts through five sets, two cameras to two 320 by 180 PNGs.
Auto materials saves a template of globs in English, German, French, Spanish and Japanese over part names, material names and a metadata key, applies or previews it and removes it again, so one undo step and no template left. Mood grades applies seven image grades and a reset through one image.set each, with a strength slider. Both ran against the engine's dispatch: four renamed parts dressed as stainless steel, copper, glass and concrete; warm and cool grades moved the red to blue ratio the right way and reset restored the neutral picture.
plugins/README.md lists the six folders and how to install or copy one. plugins/HASHOUT_LOG.md holds the rationale for each plugin's values and choices, the assumptions about the client API, and what ran and what did not.
setup/script.py runs a file, a line of code or standard input with python/ and the script's folder on the path, in the folder the command was typed in, after checking that a FormShot service answers on the scripting channel. With none it exits 1 and says why; --service starts ./formshot serve --headless detached and waits up to 90 s for it to answer.

Ran with the stand-in server: scripts, -c and stdin, no service, a stale discovery file, and --service with a stand-in launcher in a scratch copy of the tree.
./formshot agents sync now writes python/formshot/commands.md, every engine command with its Python call and its arguments (types, ranges, defaults, required), and agents check reports when it has drifted. The committed file comes from the base13 engine (263 commands); it changes once the guide and link groups land.

Ran agents_python sync and check, and agents.sync in check mode, with the base13 engine: both exit 0.
python/examples holds render_every_camera.py, dress_by_part_name.py (library presets from part names, one undo step) and batch_export.py (models to several formats, with preview pictures). docs/PYTHON.md describes running scripts, connecting, commands, errors, batches, events, the guide and the live-link helpers. The setup log records the client and what ran.

Ran all three examples through setup/script.py against the stand-in server and the base13 engine: two cameras rendered, three presets applied and reverted by one undo, two models exported to four formats.
A service started with FORMSHOT_HEADLESS=1 serves no window files and
says headless: true in /api/health. With no window to ask, consent
follows the new setting agents.headless (allow by default, or refuse,
which keeps reads only). In a headless service every file an outside
command reads or writes must lie in the projects folder, the agent
output folder (<home>/.formshot/agent-output, 0700), the temporary
folder, the material library or FORMSHOT_AGENT_PATHS, and renders and
exports sent without a target land in the agent output folder.
consent.outside is the one gate for outside engine commands and
/api/agent uses it; a window-attached service keeps its rules. The
settings agents.headless, agents.mcp_profile and scripting.enabled are
validated in settings.json.

Ran against the base13 release engine on port 8341: refusals for files
outside, relative paths, escaping links and OpenColorIO configs, the
default targets for render.still, export.model and render.queue_add,
the refuse setting, and window mode unchanged including a prompt
released with once.
./formshot serve --headless runs the service without the window and
without a frontend build. ./formshot mcp (mcp/server.py, and
setup/mcp_stdio.py through the same code) starts a headless service on
its port when none answers, and stops that service again when its
input ends or it gets SIGTERM, so it never holds the window's port.
FORMSHOT_MCP_PROFILE travels as the x-formshot-mcp-profile header.

Ran: an MCP session over the bridge's stdio with no service running
opened a GLB, applied a library material and a studio preset, set the
camera and rendered a picture to the agent output folder; the service
was gone after the bridge ended, also after SIGTERM; the profile header
arrived at a stand-in server.
docs/HEADLESS.md describes how a headless service starts, the MCP
profile header, consent without a window, the folders agents may use,
the default output targets, the settings and what has run.
The plugin host of contract E. backend/app/plugins/ reads and checks
plugin.json (every path stays inside the plugin folder, links included),
lists the user's plugins and the shipped examples, installs from a ZIP, the
template or an example, and runs each enabled plugin with code as its own
python3 -I process speaking JSON lines, with the scripting channel's port
and token from the discovery file when it exists. Enabling code asks the
person through the existing consent routes and remembers the yes for that
code's hash; a materials-only plugin adds its presets to the library as
user presets with no prompt. Logs keep 500 lines, crashes stay in their
process, and bus events reach the plugins that asked for them.

python/formshot/plugin.py is the author API (commands, events, panels,
toast, log, set_panel, a client) and plugin_host.py runs one plugin.

Ran against the service on 127.0.0.1:8346 with scratch plugins and a
stand-in channel: lifecycle, consent deny and once, commands, panels,
events, crash and restart, ZIP refusals and path refusals.
docs/PLUGINS.md gives the folder layout, the manifest and its path rule,
the states and what enable, disable, restart, install and remove do, the
JSON-lines protocol, the Python API with an example, and the service
routes with their bus events. The backend log records why plugins run as
threads-driven processes, how consent for code reuses the window's prompt,
how material packs become user presets, the install checks, the Python
host, and what ran against the service on 127.0.0.1:8346.
A plugin folder to copy: plugin.json with one command, one panel (text, toggle, choice, label and button fields) and one selection event, and plugin.py of 35 lines using p.client, p.toast, p.log and p.set_panel. The manifest was checked against contract E and the handlers were run against the engine's dispatch on the sample template.
docs/MCP.md describes the three profiles and how one is chosen, each
formshot_* tool with the engine commands behind it and its hints, the agent
output folder, consent per call and the agent.traffic event. Checked
against the running service's tool lists.
python/formshot/client.py speaks the local scripting channel with the standard library only: it finds the service through explicit arguments, the plugin environment variables or the discovery file, says hello, and routes replies by id from a reader thread so several threads share one connection and a quick query is not held behind a long render. Every catalogue command is an attribute made at run time (fs.material.assign(...)), batches run as one undo step, events reach callbacks on their own thread, and fs.link gives the live-link helpers. Errors keep the engine's code, and a batch failure its index. The package exports the client from python/formshot/__init__.py.

Ran against a stand-in server in scratch that speaks the channel and forwards to formshot-engine dispatch (the real channel is built in parallel): hello, catalogue, out-of-order answers, batch and its rollback, timeouts, a wrong token, a 30 MiB line, events from a second client, on Python 3.11 and 3.13.
The service now listens on 127.0.0.1 on a free port for newline-delimited JSON requests from scripts, plugins and live links (contract A of the agents phase), and writes <home>/.formshot/scripting.json (folder 0700, file 0600) with the protocol, port, a 32-byte hex token, pid, version, headless flag and start time; it removes the file at shutdown only if it is still its own. FORMSHOT_SCRIPTING=0 or scripting.enabled false turns the channel off. Ops: hello, catalogue, command, batch (one history group, abandoned on the first failure, the error carrying the index), guide (help.guide), events (selection, saved, opened, imported, render_finished, document_changed, from an observer on the engine bridge with a poller for queue, import and preview jobs), and link.hello, link.sync, link.camera, link.status forwarded to the engine. A wrong or missing token gets one error and the connection closes; requests on one connection are answered out of order; lines over 64 MiB are skipped with too_large. Changing requests publish agent.traffic and the window's change events; blocked consent refuses the channel. GET /api/scripting (window key) describes it.

Ran against the service on 127.0.0.1:8342 with the base13 engine: a scratch client passed 43 of 43 checks (tokens, ops, batch undo in one step, a failing batch undone with index 1, every event kind including polled queue, import and preview jobs, traffic sources script, plugin and link, blocked consent, a 65 MiB line skipped and a 64 MiB line read). Link and guide forwarding were checked by pointing the ops at existing commands in a scratch launcher, since this engine has neither group yet.
docs/SCRIPTING.md describes the channel for any client: the discovery file, the wire, every op, the events and their data, the error codes, consent and the traffic events, the in-service helpers for the plugin host, and a heading pointing at docs/PYTHON.md for the Python client. backend/HASHOUT_LOG.md gains app/scripting in its map and a Scripting channel section with the design decisions, the two changes asked of app/engine.py, and the verification: 43 of 43 scratch client checks against the service on 127.0.0.1:8342, the off switches, FORMSHOT_HOME, file ownership at shutdown, window-made events and the forwarding of guide and link ops.
…files

The /mcp endpoint now serves profiles chosen by the x-formshot-mcp-profile
header or ?profile= (an agent tab keeps full; other agents get the
agents.mcp_profile setting or standard; an unknown name is a -32602 error).
New package backend/app/mcptools holds 25 curated formshot_* tools with
closed schemas and annotations: guide, scene, nodes, materials,
command_help, run, batch (one undo step, undone on the first failure),
undo, redo, select, frame, look (a quick render returned as an image),
library_search and library_apply (with an optional tint), studio_list and
studio_apply (by id or name), camera_set (saved camera, named view, lens,
framing as one step), open, import, save, save_as, render (queued, waited
for, files and a downscaled image), export, queue and stop. Restricted
drops caller-chosen paths, confines open and checks every batch command.
Each tools/call publishes agent.traffic on the bus.

Ran against the service on 127.0.0.1:8343 with the base13 engine and no
window: a scratch MCP client opened a glTF model, applied two library
materials, a studio preset and a camera view, looked, rendered a 480 px
picture into the agent output folder and read it back, using MCP only;
profile counts 88, 288 and 77 tools; restricted refusals, consent with and
without a window, and the traffic events were checked.
setup/agents_guide.py, called by ./formshot agents sync and check, copies
the engine's guide pages to the rendering skill's references/guide/ and
removes pages that are gone. Check reports pages that differ, pages
missing from help.guide's page list, and every example that does not
name a catalogue command or whose arguments its input schema does not
allow (types, required and unknown fields, enums, ranges, lengths,
patterns, anyOf and oneOf), with the page and line.

The rendering skill's SKILL.md gains one line pointing at help.guide and
references/guide/; the .agents mirror carries the same line and pages,
as agents sync would copy them.

Ran with the catalogue of the engine built from this tree: check before
sync reported the 12 pages as drift, sync wrote them (94 examples, 0
problems), check after was clean; with the 0.12.0 catalogue check named
the missing help.guide; seven broken examples were each named.
Open a Hand-off gains a Keep in sync box for what it opens, and every
row of its list a switch with the link's state beside it (Off,
Watching, Change seen, Being written, Updating, Paused while rendering,
importing or during an edit, Source removed, Not in this document, App
blocked, Could not be read, Updated with the time). Files opened by path
that are kept in sync, such as FormCAD's GLB and 3MF exports, are listed
too. States arrive as handoff.sync events and are patched into the row
in place; an update, an error and a removed source also toast. The list
has a fixed height and the sources and empty note keep their space, so
the dialog no longer moves when the list loads. Maps without a mesh
show the switch disabled. 19 new strings in the handoff namespace.

Ran tsc and vite build; in headless Chrome with the CPU throttled 4
times against the service on port 8350, every step through opening,
changes, half-written and removed sources, a held edit, a render and the
switch off and on showed the expected states with zero layout shift
from the dialog.
The native log gains the agent guide section (why the pages live in the
engine, how examples are found in the markdown, the practice bottle the
examples run on, what ran) with the two new paths in its map and a
contents line. The setup log gains the agent guide sync section (what
sync copies, what check validates, what ran and what did not) and the
script in its map.
The MCP router asked consent with permit() alone, so a headless service applied its allowed folders and default output targets to the scripting route but not to MCP. Catalogue tools now go through consent.outside (blocked, the headless path rule and default targets, then consent), and the curated tools check their path arguments with paths.refusal before asking. The curated tools' agent output folder is paths.output_dir, so both use one folder. import app.main passes.
Four sections appended by builders at the same time ran into the previous section without a blank line after the merge; each now starts after one.
help.guide is a read-only command of the guide group. Without a page it
lists the twelve pages (id, title, summary, example count) and the page
to start with; with a page it answers that page's markdown, its examples
as {name, args} commands taken from the page's fenced json blocks, and
the next page. Unknown pages and fields are refused with
invalid_arguments.

The pages are markdown files under ext/guide/ embedded with include_str:
an index, the rules for agents, a practice bottle every example runs on,
and workflow pages for opening and framing, dressing parts from the
library, studio and lights, camera and lens, render and output, shots
and the configurator, export, live links and scripting, and plugins.

Ran: cargo build -p fsh-cli; every one of the 94 examples dispatched in
order against that engine on the practice bottle (0 failed, queued
renders, the spin export and imports waited to completion); unknown
page, unknown field and a non-string page refused; cargo clippy -p
fsh-commands --all-targets -D warnings clean.
Backend and frontend HASHOUT logs gain the hand-off sync entries: how a
link is found and stored, when a change is applied or held, how the
nodes are found without a metadata read, the routes, the switch and
its states in Open a Hand-off, and what ran against the service and in
headless Chrome, with what did not run.
Nine sections of the native log, run together by the 0.12.0 merges, and the new guide section of the setup log each now start after a blank line, as the rest of the logs do.
Adds farm/ru.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Plural forms are avoided with the colon pattern (Ядер: {n}).
Adds farm/zh-CN.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names.
Adds farm/zh-TW.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Wording follows Taiwan usage (算繪, 權杖, 影格, 位址).
Adds farm/ja.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch, job and token are katakana loanwords as in other Japanese tables.
Adds farm/ko.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch and token are Hangul loanwords as in other Korean tables.
FormShot 0.13.0 closes the Agents phase: a headless service with its own consent and folder rules, MCP profiles with curated formshot_* tools, the agent guide inside the engine (help.guide, formshot-engine guide), a local scripting channel with a standard-library Python client, plugins run as processes with a template and five examples, live links (link.hello, link.sync, link.camera, link.status, link.forget) with a Blender add-on, Keep in sync for hand-offs, a console and Plugins window, render setups by name and a self-test in formshot-engine, translations, docs, and an independent QA pass with its fixes. CHANGELOG.md already carries its section.

Version sites moved from 0.12.0 to 0.13.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the eighteen native crate manifests and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README (badge, status with the agents layer, Features, Today heading), CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill (pack version, all crates), the example export in docs/PREFERENCES.md and the HASHOUT log headers with the src-tauri map line. The README Download line now says the render farm (0.14.0) and the release pipeline (P20) come next. The Blender add-on, the plugin manifests and the docs already carried their own correct numbers. Command counts checked against the engine build: 273 entries (113 document, 38 engine, 107 group commands, 15 aliases), formshot-engine catalogue prints 269. The version line of the tool reference, python/formshot/commands.md and the mirror came from ./formshot agents sync with a 0.13.0 engine. Remaining 0.12.0 mentions are history (CHANGELOG, HASHOUT logged lines, module notes, exit-check paragraphs, the example output of an engine without a guide).

Run: cargo build --locked --release -p fsh-cli, cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.13.0, catalogue prints 269 and lists help.guide, the five link commands, export.model and material.import_maps), ./formshot agents sync and check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, tsc, the app.main import with the backend venv, the harness skill validator (0 FAIL), and the em dash and emoji scan of the change.
… routes

The render farm's interfaces for its builders: the fsh-farm crate with
its error type, the complete message set (msg.rs), and the public
signatures of the wire, token, bundle, worker and dispatch modules, whose
bodies answer FarmError::Unsupported. The crate has no engine: the worker
renders through a JobRunner that fsh-cli will implement. Its crypto
dependencies (chacha20poly1305, x25519-dalek, hkdf, hmac, sha2, getrandom,
zeroize) are declared and locked. fsh-commands takes fsh-farm natively
only and chains an empty farm group; formshot-engine routes worker and
farm to stub modules.

Ran: cargo clippy on the workspace and on fsh-wasm for wasm32, both with
-D warnings, clean; the frontend type check.
Adds farm/tr.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Token is translated as jeton, batch as toplu iş, worker as çalışan.
Adds farm/id.json with 104 strings. PNG, JPEG, OpenEXR, FormShot, formshot-engine and its command line stay in English as program, format and command names. Worker, batch, core, slot and Render Farm are kept as loanwords, as in the other id tables.
FARM.md was only the Bundles section. It now opens with what the farm is and a
quick start, then covers the workers and the bind rule, the wire with its byte
layout (hello, key derivation, confirmations, records and messages), the
conversation, bundles, the engine commands and the command line, the window,
security, limits and what has run. Each statement was checked against the code
of fsh-farm, the farm commands and fsh-cli, and the dispatch builder's text was
merged in and corrected where the code differed (the protocol check is made by
both ends, the token reply carries action and exported).
The subcommand table gains worker and the farm token, workers and submit
forms, and a new section says what each option does, what each exits with and
how a batch behaves when a worker does not answer. FORMSHOT_HOME and
FORMSHOT_FARM_CACHE_MB join the environment table. Checked against worker_cli.rs,
farm_cli.rs and farm_cli/submit.rs.
The crate table gains fsh-farm (native only, no engine) and notes that fsh-cli
implements its JobRunner and the worker and farm subcommands; the command
groups table gains ext/farm.rs; a new section draws the data flow from the
window or farm submit through the dispatcher and the sealed wire to the worker,
which renders through setups::render. The port table lists 7740. The command
count follows the release catalogue: 280 entries, 276 printed.
The worker may take a network address only through its --bind flag, so the
list of what counts now says what a report about it covers: listening off
loopback without the flag, accepting a dispatcher without the token, writing
outside its cache and spool, unpacking outside the cache, and any appearance of
the token. Holding the token and sending a worker projects is by design.
Features gains a render farm entry that says plainly where it has run (loopback
addresses, not two separate machines), the Today cell lists the farm, the
Planned cell keeps only the release pipeline (P20), the download note drops the
farm from what comes next, the port table lists 7740, the docs line links
FARM.md, and the command count is 280 with the farm commands named.
A page for the farm: setting up the token and workers, sending a batch from the
command line and the window, what happens on the wire and in the cache,
security, and the limits and what has not run. Home and the sidebar link to it.
CLAUDE.md lists the ext/farm.rs group beside the others, adds a note on
fsh-farm (no engine, native only, the token never on a command line or in a
log, the worker as the one socket that may take a network address) and on the
window module. AGENTS.md points to FARM.md and says an agent can send a batch
with farm.submit without ever seeing the token.
A release engine built from the merged tree ran the real wire, token, bundle,
worker and dispatcher on two loopback addresses: 10 of 10 jobs (shots,
configurations and a frame range as JPEG) came back, shared between both
workers, each byte-identical to the local render of the same project, with the
token in no log. Two separate machines and network namespaces stay not run.
A new sub-skill, render-farm, carries the procedure and the gates for the
crate, the commands, the worker and farm subcommands and the window. The
router gains the farm in its description, state paragraph, layout, subsystem
map (fsh-farm, the farm group, worker_cli.rs, farm_cli.rs, ui/farm), dependency
graph, the bind law and a routing row; the catalogue count is 280 entries with
276 printed. agent-substrate says how farm commands reach agents, and the
evals gain one scenario and four trigger lines. The validator reports 0 FAIL.
The rendering skill gains a workflow for the farm: farm.submit sends a batch,
farm.status follows it, and the agent never sees the token and leaves its
creation, import, export and the worker list to the person. ./formshot agents
sync rewrote the tool reference, its mirror, the manifest and
python/formshot/commands.md for 276 commands, and agents check reports the kit
clean.
farm.token never answers the token, but export writes it to a file an
agent could then read from an allowed folder, and create or import would
replace a farm's token. Outside agents, through MCP, formshot_run,
formshot_batch, /api/agent and the agent tab, are now refused every action
but status. The window and the scripting channel are the person and are
not limited.
The farm form read the Final Render store, which refreshes only while
Final Render is open, so after another project was opened it showed and
would have sent the earlier project's size, samples and folder. Opening
Render Farm, document changes while it is open, and Send now reload the
store. Found by the P19 QA.
The token store made <home>/.formshot 0755 when it did not exist; it is now made 0700. Pictures that came back kept the spool's 0600; they are now 0644 like a local render's. Found by the P19 test plan writer.
A worker at 32 open connections closed further ones without a word; it now logs the address at most every 10 s. The connect line no longer reads 'dispatcher dispatcher'. Found by the P19 QA.
The ICU4X licence file separates its Unicode-3.0 text from its note with a line holding only U+2014, which made CI's tracked-text scan fail on the regenerated THIRD-PARTY-NOTICES.txt. The generator writes it as a hyphen; nothing else in the file changed.
FormShot 0.14.0 closes the Farm phase: the crate fsh-farm (the farm token, sealed wire records, bundles of a project and its files, the worker and the dispatcher; native only, no engine), the farm.* commands, formshot-engine worker and farm, batches of shots, configurations or frames over several machines, the Render Farm window, translations, docs, and an independent QA pass with its fixes. CHANGELOG.md already carries its section.

Version sites moved from 0.13.0 to 0.14.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the nineteen native crate manifests (fsh-farm is new) and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README (badge, status, Features, Today heading), CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill (pack version, all crates), the example export in docs/PREFERENCES.md, the example replies in docs/SCRIPTING.md and the HASHOUT log headers with the src-tauri map line. The README Download line now says the render farm landed in 0.14.0 and the release pipeline (P20) comes next. The Blender add-on (0.13.0, the version it shipped with), the plugin manifests and the HASHOUT logs of the add-on and the plugins keep their own numbers. Command counts checked against the engine build: 280 entries (113 document, 38 engine, 114 group commands, 15 aliases), formshot-engine catalogue prints 276; README, ARCHITECTURE and the harness skill already said so. The version line of the tool reference, python/formshot/commands.md and the mirror came from ./formshot agents sync with a 0.14.0 engine. Remaining 0.13.0 mentions are history (CHANGELOG, HASHOUT logged lines, module notes, since-0.13.0 docs, the add-on and plugin versions, third-party crate versions).

Run: cargo build --locked --release -p fsh-cli, cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.14.0, catalogue prints 276 commands and 15 aliases), a two-worker farm smoke on 127.0.0.2 and 127.0.0.3 (farm submit --all-shots, four pictures, both workers used, byte-equal with formshot-engine render --all-shots), ./formshot agents sync and check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, tsc, the app.main import with the backend venv, the harness skill validator (0 FAIL), and the em dash and emoji scan of the change.
@nodemode-ai
nodemode-ai merged commit 1a5be79 into main Dec 5, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the feat/agents-farm-0.14.0 branch December 5, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant