Skip to content

Read runtime modules and the interaction log through the product in the remaining tests, and locate margin controls by kind - #1295

Merged
max-sixty merged 2 commits into
mainfrom
agent-a50ad712e4efd9159
Sep 27, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-a50ad712e4efd9159

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#1276, #1285 and #1289 moved the suite onto the product's own readings; #1288's
parallel thread work re-introduced two of the copies they had removed, and
test_render_controls.py, test_render_threads.py and
test_render_application_boundary.py still carried a few more.

Runtime modules. Two sites in test_render_threads.py still resolved
/runtime/… from the page's <script data-lf-entry> inline, instead of the
harness's window.__lfRuntimeImport. Both now go through it, the way #1276
moved every other page-side import.

Interaction log. Four sites in test_render_application_boundary.py
still split interactions.jsonl with read_text().splitlines(), which also
splits on a U+2028 inside a recorded value. They now read it through
interaction_log.lines, the product's own reader, already used the same way
for events.jsonl via event_log.read_events.

Margin controls by kind. render_harness.py had margin_control,
draft_control and suggestion_control for one exact id, but four sites in
test_render_controls.py and one in test_render_threads.py still spelled
[data-lf-margin-entry-owner^="suggestion:"] or ^="draft:" inline, to find
any instance of a kind rather than a particular one. any_owner_entry,
any_draft_control and any_suggestion_control cover that case, and every
site now uses them. A sixth site read a suggestion's id back out of its
margin entry by slicing the "suggestion:" prefix off the owner attribute in
browser JS; it now asks marginEntrySource, the runtime's own link from a
margin control to the widget that registered it, for the widget's element
directly. The tests-readings TODO item is done.

Checked by running each touched test and the whole
test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus,
which exercises the any_owner_entry table entry, the draft locator, and the
marginEntrySource lookup together, plus npm run test:runtime.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

…he remaining tests, and locate margin controls by kind

#1276, #1285 and #1289 moved the suite onto the product's own readings; #1288's
parallel thread work re-introduced two of the copies they had removed, and
`test_render_controls.py`, `test_render_threads.py` and
`test_render_application_boundary.py` still carried a few more.

**Runtime modules.** Two sites in `test_render_threads.py` still resolved
`/runtime/…` from the page's `<script data-lf-entry>` inline, instead of the
harness's `window.__lfRuntimeImport`. Both now go through it, the way #1276
moved every other page-side import.

**Interaction log.** Four sites in `test_render_application_boundary.py`
still split `interactions.jsonl` with `read_text().splitlines()`, which also
splits on a U+2028 inside a recorded value. They now read it through
`interaction_log.lines`, the product's own reader, already used the same way
for `events.jsonl` via `event_log.read_events`.

**Margin controls by kind.** `render_harness.py` had `margin_control`,
`draft_control` and `suggestion_control` for one exact id, but four sites in
`test_render_controls.py` and one in `test_render_threads.py` still spelled
`[data-lf-margin-entry-owner^="suggestion:"]` or `^="draft:"` inline, to find
any instance of a kind rather than a particular one. `any_owner_entry`,
`any_draft_control` and `any_suggestion_control` cover that case, and every
site now uses them. A sixth site read a suggestion's id back out of its
margin entry by slicing the `"suggestion:"` prefix off the owner attribute in
browser JS; it now asks `marginEntrySource`, the runtime's own link from a
margin control to the widget that registered it, for the widget's element
directly. The `tests-readings` TODO item is done.

Checked by running each touched test and the whole
`test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`,
which exercises the `any_owner_entry` table entry, the draft locator, and the
`marginEntrySource` lookup together, plus `npm run test:runtime`.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
leaf-agent
leaf-agent previously approved these changes Sep 27, 2026
@max-sixty
max-sixty merged commit 387dfed into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-a50ad712e4efd9159 branch September 27, 2026 10:37
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.

2 participants