diff --git a/CHANGELOG.md b/CHANGELOG.md index a9fd150..6f1b23a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.32.0 · 2026-11-20 + +- The page shown in the Browser pane is now sent only to the FormAT window. Other programs on your computer that ask for it are refused, as they already were for every change. Nothing changes in how you use the pane. +- Agents you connect over MCP or the command line work as before: they follow your Outside agents choice in Settings (Ask, Allowed or Blocked). +- Not checked for this version: nothing was run on macOS or Windows, and no packaged engine was built. The desktop app was not built on the build machine. No real agent program was run. +- Engine: no new commands (still 114; 115 MCP tools with `run_command`). + ## 0.31.0 · 2026-11-20 - FormAT keeps its own chat-first look. Every name of the Form family's shared design vocabulary (the colour, size and layer names FormVis defines) now has a value in FormAT too, so a piece shared across the family finds what it looks for. Nothing you see changes: the window looks the same, pixel for pixel, in the dark and light themes. diff --git a/README.md b/README.md index fc5972b..590894e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@
-
+
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 65e1995..d312636 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -2,8 +2,8 @@
Living log of all comment content, explainers, rationale, TODOs and removed code for the engine. Source files stay comment-free; everything they would have said lives here, indexed. Read this first, then edit code surgically.
-Current build version: v0.31.0
-Last updated: 2026-11-20 · v0.31.0: no engine change (the window's token names and the README's status; see the window log's entry for 0.31.0); 2026-11-20 · v0.30.1: the macOS engine list installs keyring (backend/requirements_macos.txt), and tests/test_requirements_lists.py keeps it beside requirements.txt and the freeze scripts; 2026-11-20 · v0.30.0: on Windows the engine ends with its app (src-tauri/src/win_job.rs, a job object that takes the engine by its process id) and is built with no console window unless FORMAT_ENGINE_WINDOWED is 0 (setup/freeze_backend.bat, setup/freeze_backend), the shell waits at most 90 seconds for the engine's address (src-tauri/src/engine_start.rs), an ended engine not yet collected counts as gone where there is no /proc (app/core/startup.py :: finished), and the connect command names the four agent programs in order (setup/agents.py); 2026-11-19 · v0.29.0: the engine starts and stops cleanly beside its app (app/core/startup.py copied from FormTools with its names changed, the record in engine.lock and the replacing of a holder whose shell is gone in app/core/instance.py, the engine's own log, the started-alone branch and the watch on the shell in format_engine.py), and in the shell a failed start shows its dialog before the loading window is hidden, also when the main window cannot be built (src-tauri/src/main.rs); 2026-11-19 · v0.28.0: the family's finder for the agent programs (app/engine/agent_lookup.py, copied unchanged, its hash recorded in setup/agents.py), claudecode.status reporting Claude Code, Codex, Cursor and Antigravity, `./format agents install` covering Antigravity, a test run that finds only stand-in agent programs, and an entry script that starts without output streams; 2026-11-19 · v0.27.0: only the FormAT window changes things without asking (a key made at each launch in app/core/window_key.py, every call without it following the Outside agents choice, the choice sealed in app/core/seal.py and read as Ask when its seal is missing or does not match, one-time tickets for the events and terminal sockets, resources/list raising a refusal as an error), the shell's wait for the engine corrected (no limit on the start, 10 seconds for the key once the address is known), the bash tool's shell and terminal tabs no longer given the engine's secrets, `./format agents sync --check` and agents/manifest.json; 2026-11-15 · v0.26.3: the review's open list fixed (the engine's unpack folder removed at quit and swept at start, one engine per data folder in app/core/instance.py and one shell per user, a dialog when the engine cannot be spawned, Other devices no longer silencing the engine log while pairing codes and share tokens are blanked from every access line, chat.start and compaction clearing their running mark on every failure, `app.info` naming the keys file and the .env file, Download all named for the chat, demos listed from each folder's about.json and refreshed in place when untouched, the Orrery's Credits panel and FIGURES.md with its source in tools/demos/orrery, format.bat's missing commands, freeze_backend.bat's missing space); v0.26.2: no engine change (the desktop updater's endpoint in src-tauri/tauri.conf.json is nodemode-dev/formcompiler); v0.26.1: no engine change (the Orrery's attached CREDITS.md and its chat.json entry now carry each map's own credit line, source page and terms, as NOTICE.md does; CODE_OF_CONDUCT.md, CONTRIBUTING.md and SECURITY.md; formcompiler's address in current docs and skills is nodemode-dev/formcompiler, and the README clones formAT); v0.26.0: demo chats seeded as ordinary records from app/demos (`demo.list`, `demo.restore`, the `demo` column, three demos including the Orrery with NASA maps), the splash hand-off in the shell (src-tauri/src/reveal.rs, the `app_ready` command and its generated permission, the remote capability), and the review's fixes (the events socket that hung shutdown, Other devices through the local guard, chat delete cleaning up, /favicon.ico, the name FormAT where people see it, the engine-failure dialog, build_app's names, the Windows freeze line); v0.25.3 and v0.25.4: no engine change (the icon, the product name FormAT in tauri.conf.json, the README); 2026-10-31 · v0.25.2: .js, .mjs and .css keep their types on Windows (app/main.py) and the Linux packages pull in the media plugins (src-tauri/tauri.conf.json); 2026-10-30 · v0.25.1: no engine change (`format.bat desktop build` passes its arguments to `tauri build`, and the Windows LGPL FFmpeg build runs in its own MSYS2 script with MSVC's linker first); v0.24.3: the desktop freeze takes reportlab's modules only, and voice ships PyAV 18.1.0 built from source against an LGPL FFmpeg 8.0.3 (`setup/build_lgpl_av`, checked by `setup/check_lgpl_av.py`; the PyPI wheel links GPL x264 and x265, and `av` 19 had also dropped the `metadata_errors` argument faster-whisper 1.2.1 passes, so voice was broken on an unpinned install); v0.24.1: no engine change (checks only, releases by formcompiler, version string); v0.24.0: no engine change (the app icon only); v0.23.0: GET /api/uploads/{id} serves an attachment back to the window (ranges, immutable cache, sandboxing CSP); v0.22.0: message.citation sent as each citation streams; v0.21.0: archive, npm and command plugin sources, private marketplaces, .plugin uploads, skills Discover and Skill with Claude, the connector directory, connectors on the Claude Code route; v0.20.0: plugin.create and plugin.files, Create with Claude (output plugin and the add_plugin tool), /plugin:skill invocation; v0.19.0: plugin marketplaces (add, Check for updates, Sync automatically, remove), plugin.install from a marketplace, a plugin's connectors added on request; v0.18.0: signing in to a connector (OAuth with PKCE, registration or your own client, refresh, SSE transport) and connectors on or off per chat; v0.16.0: connector tool permissions (Always allow, Needs approval, Blocked) and request headers; v0.15.0: skill.read for the Customize file viewer; v0.14.0: Allow for this chat (conversations.allow_all, conversation.allowAll) on both routes; v0.13.0: skills invoked by name, Allow all answers what is waiting
+Current build version: v0.32.0
+Last updated: 2026-11-20 · v0.32.0: the built-in browser's frame is read only by the window (app/core/window_key.py :: PRIVATE_READS, needs_key), and every read route is classified in tests/test_window_key.py; 2026-11-20 · v0.31.0: no engine change (the window's token names and the README's status; see the window log's entry for 0.31.0); 2026-11-20 · v0.30.1: the macOS engine list installs keyring (backend/requirements_macos.txt), and tests/test_requirements_lists.py keeps it beside requirements.txt and the freeze scripts; 2026-11-20 · v0.30.0: on Windows the engine ends with its app (src-tauri/src/win_job.rs, a job object that takes the engine by its process id) and is built with no console window unless FORMAT_ENGINE_WINDOWED is 0 (setup/freeze_backend.bat, setup/freeze_backend), the shell waits at most 90 seconds for the engine's address (src-tauri/src/engine_start.rs), an ended engine not yet collected counts as gone where there is no /proc (app/core/startup.py :: finished), and the connect command names the four agent programs in order (setup/agents.py); 2026-11-19 · v0.29.0: the engine starts and stops cleanly beside its app (app/core/startup.py copied from FormTools with its names changed, the record in engine.lock and the replacing of a holder whose shell is gone in app/core/instance.py, the engine's own log, the started-alone branch and the watch on the shell in format_engine.py), and in the shell a failed start shows its dialog before the loading window is hidden, also when the main window cannot be built (src-tauri/src/main.rs); 2026-11-19 · v0.28.0: the family's finder for the agent programs (app/engine/agent_lookup.py, copied unchanged, its hash recorded in setup/agents.py), claudecode.status reporting Claude Code, Codex, Cursor and Antigravity, `./format agents install` covering Antigravity, a test run that finds only stand-in agent programs, and an entry script that starts without output streams; 2026-11-19 · v0.27.0: only the FormAT window changes things without asking (a key made at each launch in app/core/window_key.py, every call without it following the Outside agents choice, the choice sealed in app/core/seal.py and read as Ask when its seal is missing or does not match, one-time tickets for the events and terminal sockets, resources/list raising a refusal as an error), the shell's wait for the engine corrected (no limit on the start, 10 seconds for the key once the address is known), the bash tool's shell and terminal tabs no longer given the engine's secrets, `./format agents sync --check` and agents/manifest.json; 2026-11-15 · v0.26.3: the review's open list fixed (the engine's unpack folder removed at quit and swept at start, one engine per data folder in app/core/instance.py and one shell per user, a dialog when the engine cannot be spawned, Other devices no longer silencing the engine log while pairing codes and share tokens are blanked from every access line, chat.start and compaction clearing their running mark on every failure, `app.info` naming the keys file and the .env file, Download all named for the chat, demos listed from each folder's about.json and refreshed in place when untouched, the Orrery's Credits panel and FIGURES.md with its source in tools/demos/orrery, format.bat's missing commands, freeze_backend.bat's missing space); v0.26.2: no engine change (the desktop updater's endpoint in src-tauri/tauri.conf.json is nodemode-dev/formcompiler); v0.26.1: no engine change (the Orrery's attached CREDITS.md and its chat.json entry now carry each map's own credit line, source page and terms, as NOTICE.md does; CODE_OF_CONDUCT.md, CONTRIBUTING.md and SECURITY.md; formcompiler's address in current docs and skills is nodemode-dev/formcompiler, and the README clones formAT); v0.26.0: demo chats seeded as ordinary records from app/demos (`demo.list`, `demo.restore`, the `demo` column, three demos including the Orrery with NASA maps), the splash hand-off in the shell (src-tauri/src/reveal.rs, the `app_ready` command and its generated permission, the remote capability), and the review's fixes (the events socket that hung shutdown, Other devices through the local guard, chat delete cleaning up, /favicon.ico, the name FormAT where people see it, the engine-failure dialog, build_app's names, the Windows freeze line); v0.25.3 and v0.25.4: no engine change (the icon, the product name FormAT in tauri.conf.json, the README); 2026-10-31 · v0.25.2: .js, .mjs and .css keep their types on Windows (app/main.py) and the Linux packages pull in the media plugins (src-tauri/tauri.conf.json); 2026-10-30 · v0.25.1: no engine change (`format.bat desktop build` passes its arguments to `tauri build`, and the Windows LGPL FFmpeg build runs in its own MSYS2 script with MSVC's linker first); v0.24.3: the desktop freeze takes reportlab's modules only, and voice ships PyAV 18.1.0 built from source against an LGPL FFmpeg 8.0.3 (`setup/build_lgpl_av`, checked by `setup/check_lgpl_av.py`; the PyPI wheel links GPL x264 and x265, and `av` 19 had also dropped the `metadata_errors` argument faster-whisper 1.2.1 passes, so voice was broken on an unpinned install); v0.24.1: no engine change (checks only, releases by formcompiler, version string); v0.24.0: no engine change (the app icon only); v0.23.0: GET /api/uploads/{id} serves an attachment back to the window (ranges, immutable cache, sandboxing CSP); v0.22.0: message.citation sent as each citation streams; v0.21.0: archive, npm and command plugin sources, private marketplaces, .plugin uploads, skills Discover and Skill with Claude, the connector directory, connectors on the Claude Code route; v0.20.0: plugin.create and plugin.files, Create with Claude (output plugin and the add_plugin tool), /plugin:skill invocation; v0.19.0: plugin marketplaces (add, Check for updates, Sync automatically, remove), plugin.install from a marketplace, a plugin's connectors added on request; v0.18.0: signing in to a connector (OAuth with PKCE, registration or your own client, refresh, SSE transport) and connectors on or off per chat; v0.16.0: connector tool permissions (Always allow, Needs approval, Blocked) and request headers; v0.15.0: skill.read for the Customize file viewer; v0.14.0: Allow for this chat (conversations.allow_all, conversation.allowAll) on both routes; v0.13.0: skills invoked by name, Allow all answers what is waiting
---
@@ -1311,3 +1311,18 @@ Every install path, read on each system. `./format install` and `format_oc_insta
The test. `test_requirements_lists.py` reads both lists: every requirement of `requirements.txt` whose marker is not `sys_platform == "win32"` must be in `requirements_macos.txt` with the same extras and pin (markers aside: the macOS list needs none). It reads both freeze scripts for every name given to `--copy-metadata`, `--collect-submodules`, `--collect-data` and `--hidden-import` (the engine's own `app` aside), finds the distribution of each module from the installed metadata (docx is python-docx, multipart is python-multipart), and wants each in both lists; websockets and certifi come with uvicorn[standard] and httpx, and a fourth test proves from the installed metadata that they still do. Seen: with the test copied into a copy of origin/main, the first and third tests fail, naming keyring; on this branch all four pass.
What a person running the engine from source on macOS saw from 0.27.0 to 0.30.0: no error. `_load` imports keyring inside its try, so the import failed quietly, the seal was `unavailable`, the engine started, and the Outside agents choice stood as saved with no seal. Now keyring is there, the choice is sealed in the macOS keychain, and a saved Allowed that has no seal yet reads as Ask, with the window's sentence, until it is chosen again (read in `effective` and seen on Linux with a stand-in keychain in test_window_key.py; not run on a Mac).
+
+### app/core/window_key.py and tests/test_window_key.py · the built-in browser's frame is read only by the window
+- refers-to: app/core/window_key.py :: PRIVATE_READS, needs_key, WindowKeyGuard; app/engine/browser.py :: frame; frontend/src/ui/browser-pane.ts :: loadFrame; tests/test_window_key.py :: PUBLIC_READS, ID_READS, test_the_open_lists_are_exactly_the_named_routes, test_every_read_route_is_public_addressed_by_a_random_id_or_refused_without_the_window_key, test_the_window_reads_the_built_in_browser_frame_with_its_key
+- kind: decision
+- logged: v0.32.0 · 2026-11-20
+
+What the engine listens on. 127.0.0.1 on FORMAT_PORT (8490, or the next free port), with the HTTP routes, `/mcp`, and the two sockets `/api/events` and `/api/terminal/{id}`; and, only after the window turns Other devices on, 0.0.0.0 on FORMAT_LAN_PORT (8492) behind the pairing Gate, where a paired request counts as the window. The stdio bridge (`./format mcp`) is a separate process that calls the HTTP port with `x-format-agent`.
+
+The rule now. The guard asks for the key on every method other than GET, HEAD and OPTIONS, except the open list (`/mcp`, `/api/window/key`, and `/api/commands/`, whose keyless calls follow the Outside agents choice), and also on the reads in `PRIVATE_READS`. `needs_key` is the one place that decides. The only private read is `GET /api/browser/frame`: it answers the built-in browser's current screen with no id, so before this any local program could watch the page shown in the Browser pane; now it answers 403 "Only the FormAT window can do this" without the key. The Browser pane sends the key with each frame request (frontend log).
+
+Every read, classified. Public: `/api/health`, `/api/commands`, `/api/commands/{cid}` (the catalogue), `/api/voice` (which speech engines are installed), `/api/connectors/oauth/callback` (the person's browser comes back here from a sign-in page and cannot hold the key; it needs the random `state` of a sign-in the window started). Addressed by a random id: uploads (64-bit), chat files and Download all (the chat's 128-bit id), artifact pages, sources and exports (128-bit ids), native snapshots (48 random bits and a time), shared links (`/s/{token}`). These are opened by `
`, `