Skip to content

Phase 4: align the notebook ADR, guide and prompt with the code - #457

Merged
neuromechanist merged 4 commits into
feature/issue-429-epic-browser-executionfrom
feature/issue-433-phase4-seams
Sep 23, 2026
Merged

neuromechanist merged 4 commits into
feature/issue-429-epic-browser-executionfrom
feature/issue-433-phase4-seams

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

A follow-up to phase 4's three pull requests (#454, #455, #456). A cross-piece review found no functional break between them, but found text that no test reads and that had drifted from the code it describes. This corrects it.

What changed

ADR 0010 and its measurements note. The export list now names results/run-NNN/ and the reader's own re-runs, and describes notebook.ipynb as a markdown cell and a code cell per run, as buildNotebook writes it. Prerequisite 3 for a hosted notebook was wrong in both directions. zarr.nemar.org already admits osc.earth and every *.osc.earth subdomain (confirmed live on 2026-09-23 against notebook.osc.earth, app.osc.earth and the apex; example.org gets no header), so nemar-cli needs no change for a site hosted there. But OSA's own wheel route is narrower: the edge's isAllowedOrigin and the API's _is_authorized_origin admit the community's embed origins and the demo hosts, not an ordinary osc.earth subdomain, so a hosted notebook still needs an allowlist change in this repository. #453's prerequisite list now says the same.

The adopter guide and NEMAR's execute_code. The guide's manifest fields gain local. Its limits said "one run's files together are at most 25 MB"; recordRun counts explicit saves only, so they now say explicit saves are at most 25 MB and 32 distinct files, and that a run's automatic files are bounded only by the per-file and per-community caps. execute_code now tells the model the caps osa.save_* enforces: 32 files, 10 MB each, 25 MB per run.

notebook-bench.js. A run fails, naming the worker, when the recorder could not watch a worker's network, since every byte and request count is then an undercount. This is the check chrome.js already applies.

Test plan

  • uv run pytest -m "not network" -k "nemar or config or adr or drift": 653 passed, 9 skipped. ruff check clean.
  • notebook-bench.js parses under bun build --no-bundle; it is a manual measurement script and not run in CI, so the new check was verified by reading it against NetworkRecorder.attachFailures in chrome.js.
  • Every claim was checked against the code by a Sonnet reviewer. It found the wheel-route overclaim above (my first draft said the wheel route admitted every osc.earth host) and an overstated comment in the bench, both fixed in a72197f. Its one suggestion not taken: a comment that recordRun does not deduplicate paths. On duplicates the host check over-counts, which only refuses more, and a comment in that bundled module would change the runtime bundle and the widget's integrity hash for no change in behavior.

Part of #433, epic #429.

zarr.nemar.org already admits osc.earth and every *.osc.earth origin (checked live 2026-09-23), so a notebook site hosted there needs no nemar-cli change. The export list now names results/ and the reader's own runs.
The guide's manifest fields gain local, and its limits say the 25 MB budget and the 32-file cap count explicit saves only, as recordRun does. execute_code tells the model the same caps osa.save_* enforces.
A worker the recorder could not attach to makes every byte and request count an undercount, so the run now fails naming it, as chrome.js does.
OSA's wheel route admits embed origins and the demo hosts, not every osc.earth subdomain, so a hosted notebook there still needs an OSA allowlist change. The bench comment now claims only the attach failures reported before polling ends.
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

Name Link
Preview URL https://feature-issue-433-phase4-sea-demo.osc.earth
Branch feature/issue-433-phase4-seams
Commit d368f0d

This preview will be updated automatically when you push new commits.

@neuromechanist
neuromechanist merged commit 28cbf82 into feature/issue-429-epic-browser-execution Sep 23, 2026
14 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-433-phase4-seams branch September 23, 2026 18:17
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