Repository navigation
FormAT 0.32.0: the Browser pane's page is shown only in the FormAT window - #14
Merged
Merged
Conversation
… window The engine already made one key at each launch, gave it once to the first page, and asked for it on every write; calls without it follow the Outside agents choice. Reads were all open. Now the reads the window alone should make need the key too: GET /api/browser/frame answers 403 without it, and the Browser pane sends it with each frame. Every read route is classified in tests/test_window_key.py (public, addressed by a random id, or needing the key), and a new read that is in none of the lists fails the walk, as a new write route that answers without the key fails the write walk. The open lists are pinned.
Version sites, as in the last release: backend/app/__init__.py, frontend/src/version.ts, frontend/package.json, both version fields at the top of frontend/package-lock.json, src-tauri/Cargo.toml, the format package entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README badge, and the "Current build version" and "Last updated" lines of both HASHOUT logs. CHANGELOG.md has the 0.32.0 entry. Before this commit: tests/test_window_key.py 10 passed, tests/test_f4_versions.py and tests/test_requirements_lists.py 7 passed, typecheck exit 0. The whole gate is run on this commit in a local clone. Left as they are: the SECURITY.md supported-versions row (0.26.x).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormAT 0.32.0: the Browser pane's page is shown only in the FormAT window
Two commits on top of 0.31.0 (merged
main): the window key's last route, and the release.What changes for people
./format mcp) and the command line (./format cli) work as before: they follow the Outside agents choice in Settings (Ask, Allowed or Blocked), sealed in the system keychain, and cannot change it.What the window key covers now
FormAT has had the family's window key since 0.27.0: the engine makes one key at each launch, the packaged app gets it from the engine's own output and gives it to its page in one initialization script, a page run from source claims it once (a second claim is refused), a reloaded page tries the key it kept before asking again, every write needs it, and the events and terminal sockets need a one-time ticket that only the key can get. This release adds the reads: every read route is now either public (health, the command catalogue, the speech engine list, the sign-in return page), addressed by a random id that only the window or an allowed agent learns (attachments, chat files, artifacts, terminal snapshots, shared links), or refused without the key (the Browser pane's frame). A test walks every route and fails when a new one is in none of these lists.
How it was checked
format_engine.py, stand-in agent programs onPATH) with the built window in Chromium, from source and in the packaged mode (FORMAT_WINDOW_KEY_STDOUT=1, the key read from the engine's output and given to the page by an initialization script, as the shell does):image/jpeg.tests/test_window_key.py: 10 passed.Checks rehearsed
On a local clone of the release commit 11ca482.
npm ci --dry-run,npm audit,npm run typecheck,npm run buildpython -m compileall -q app format_engine.py; boot uvicorn and probe/api/health{"ok":true,"name":"FormAT","version":"0.32.0"}python -m pytest tests -q -p no:cacheproviderinbackendpytest frontend/tests/windowafternpm run buildbash -non the shell scripts; no em dash or emoji in tracked markdown./format agents sync --checktests/test_f4_versions.py,tests/test_requirements_lists.pyThe workflow has no macOS or Windows job. No script, requirements list or shell source file changed.
Please merge this with a merge commit, not a squash and not a rebase.
Held
Not run