Repository navigation
Keep diff fixtures inside authored revisions - #696
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
tests/CLAUDE.md is now stale on the exact pattern this PR removes. Under A wait
consumes a fact the system states it reads:
render_checks.pyrefuses a probe that returns a Promise. The diff renders in
test_render_anchors.pyhold a frame poll against an explicit rejecting timer;
a shipped probe's ordinary browser lifecycle is always a synchronous fact
observed from outside the page.
After this change the file holds no such poll — no setTimeout(… reject …) remains,
and the one surviving requestAnimationFrame is the two-frame settle in
test_pressing_the_current_element_mark_keeps_its_contour. So that sentence names the
sanctioned exception to the wait_for_probe rule by file, and the next session writing
a diff test will find the exception endorsed and rebuild the arrangement this PR just
deleted. Root CLAUDE.md, Working on the repository, asks that the implementation,
tests, and the owning reference stay aligned, and tests/CLAUDE.md is that reference
for the suite.
Dropping the clause leaves the rule intact:
`render_checks.py` refuses a probe that returns a Promise. A shipped probe's
ordinary browser lifecycle is always a synchronous fact observed from outside
the page.
The file is outside the diff, so this can't be an inline suggestion — say the word and
I'll push it. If you'd rather the paragraph keep an illustration, the positive one this
PR earns is that an authored widget needs no in-page wait at all, because
open_page's presentation stamps already state that its renderer committed.
Nothing else in the rewrite: I reproduced the four has no captured widget descriptor
failures on the merge base and all nine a_diff_ cases pass on this head.
Four nightly diff tests appended new
lf-diffelements after page presentation, outside the immutable authored-widget descriptor capture. This authors the same inert-markup, malformed-hunk, rename, and final-empty-line specimens before serving the page, removing the dynamic DOM setup and frame polling.The stale construction had been latent since #666 and surfaced in the nightly run after #692. Runtime behavior and the patch-activation work in #689 are unchanged.
The test guidance now describes the authored-lifecycle boundary directly instead of retaining the removed frame-poll exception.
Validated with the repository pre-commit hooks and all nine
a_diff_nightly cases.