Skip to content

Keep diff fixtures inside authored revisions - #696

Merged
max-sixty merged 2 commits into
mainfrom
codex/simplify-test-suite
Sep 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/simplify-test-suite

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

Four nightly diff tests appended new lf-diff elements 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.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py refuses a probe that returns a Promise. The diff renders in
test_render_anchors.py hold 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.

@max-sixty
max-sixty merged commit 7cfe6b8 into main Sep 14, 2026
7 checks passed
@max-sixty
max-sixty deleted the codex/simplify-test-suite branch September 14, 2026 02:42
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