Skip to content

Phase 3d: run the live recipe in the widget e2e page - #452

Merged
neuromechanist merged 2 commits into
feature/issue-429-epic-browser-executionfrom
feature/issue-432-phase3-seams
Sep 23, 2026
Merged

neuromechanist merged 2 commits into
feature/issue-429-epic-browser-executionfrom
feature/issue-432-phase3-seams

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Summary

A follow-up from phase 3's seams review, which checked every seam between #449, sccn/eegprep#416, nemarOrg/nemar-cli#1487, #450 and #451 from both sides and found them consistent, with one exception here.

widget_e2e.py --nemar's "recipe" script was a hand-written read (read_index, then level0_url, then open_array) that neither production's nemar_read_window nor nemar-cli's next release serves, while the script's docstring called it "the python_browser snippet". It was a second copy of the recipe, the thing nemar-cli's ADR 0070 exists to avoid, and the refresh procedure in src/assistants/nemar/runtime/README.md tells a maintainer to run it as proof.

It now fetches the python_browser recipe from mcp.nemar.org when the server starts, for the first two seconds of nm000103's first recording, and binds start_sample and end_sample from the recipe's sample_slice as scripts/run_python_browser_recipe.py does. A server that cannot answer stops the page from starting with the reason. When nemar-cli's next release makes the recipe lead with read_window, this page runs that with no edit here; the data lane already runs that recipe in CI.

Test plan

  • In Chrome against the live archive: "recipe" ran production's recipe (nemar-cli 0.10.5) verbatim and read (129, 500) int16 through open_array, binding only what that recipe binds; "prompt" returned (4, 500) in uV at 250 Hz with its figure. The console was clean.
  • ruff check and ruff format --check are clean.
  • Reviewed locally by a Sonnet agent; findings and what was done are in a comment below.

Part of #432 and epic #429.

widget_e2e.py --nemar ran a hand-written recipe that neither production
nor nemar-cli dev serves. It now fetches the python_browser recipe from
mcp.nemar.org at start-up. Verified in Chrome against nm000103.
The scripted model answers the first keyword it finds; the live recipe
was appended after prompt. Also finishes a README sentence.
@neuromechanist

Copy link
Copy Markdown
Member Author

Local review, and what was done with each finding

One Sonnet reviewer covered this and its two sibling follow-ups (nemarOrg/nemar-cli and nemarOrg/docs) together.

  • A README bullet ended on a bare possessive ("which is nemar-cli 0.10.5's"). It now names the recipe. f85fb71
  • The live recipe was appended to the scripts after "prompt", and the scripted model answers the first keyword it finds, so the lookup order had changed. "recipe" is back ahead of "prompt", with a comment saying why. f85fb71
  • Verified, no change: a server that is unreachable or answers in text stops the page from starting with the reason (discover_mcp_tools returns an empty list and never raises, and both answers are type-checked); asyncio.run runs before uvicorn starts its own loop; one live call to production returned the recipe the README describes.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

Name Link
Preview URL https://feature-issue-432-phase3-sea-demo.osc.earth
Branch feature/issue-432-phase3-seams
Commit d8f8541

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

@neuromechanist
neuromechanist merged commit af40f40 into feature/issue-429-epic-browser-execution Sep 23, 2026
14 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-432-phase3-seams branch September 23, 2026 05:25
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