Skip to content

Remove test-owned runtime ontologies - #692

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

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

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

This removes test-owned copies of runtime behavior: an HTML-phrasing taxonomy, CSS/JavaScript parser and reflection checks, and inventories of API names, removed APIs, schemas, and counts. The retained tests exercise user-visible behavior at the document and browser boundaries; the margin-entry gallery also compares its rendered axes directly with the runtime-owned schema.

The production CSS changes only update comments whose old wording described the deleted reflection tests.

Validation: 164 direct and static tests passed, including the 156 document tests and eight affected browser behaviors. The focused margin-gallery test passed after review feedback, and pre-commit and diff checks passed.

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.

Two of the deletions take a check nothing replaces, and in both places the surrounding text still claims the check is there.

test_the_feature_gallery_displays_the_complete_margin_entry_inventory no longer holds the gallery to MARGIN_ENTRY_SCHEMA. The count of 21 was test-owned and the specimen names below it already pin that number, but the axis comparison read the runtime's own declaration — it was the only reader of MARGIN_ENTRY_SCHEMA outside margin-entries.js and widget-api.js's re-export. Without it a behavior, tone, or rank added to the schema ships with no specimen while the test that names itself the complete inventory stays green, and the inventory it keeps is the test-side name list, which is the shape CLAUDE.md's Keep the layer open asks tests not to hold. The restored comparison belongs after the cursor sweep rather than at the deletion site: the specimens are generated by lf-margin-entry-gallery, and expect(buttons).to_have_count(21) was what made the read wait for them, so the expect(specimen(...)) calls are the wait that replaces it. I can push that if you want it.

The rewritten comment in skills/leaf/assets/theme.css says browser tests exercise inline widgets and block children in place of the literal, and for the suggestion-slot list they don't: no page in the corpus stages an inline widget in lf-old or lf-new, and no test reads a slot's block or inline form. Two of the three things the deleted test held are still covered elsewhere — the marker half by test_a_terse_compare_keeps_its_side_by_side_grid, which reads the same marker through the copy of the list in packages/default/theme.css, and the :where() argument by accepting a block-form suggestion and finding the retired slot hidden. The platform half is the half left unchecked, so the comment should say that rather than name coverage. The equivalent sentence in the default package's comment is accurate, since that copy is the one the compare test reads.

Comment thread skills/leaf/assets/theme.css Resolved
Comment thread tests/test_render_margin.py Resolved
@max-sixty
max-sixty merged commit 7acc84b into main Sep 14, 2026
13 checks passed
@max-sixty
max-sixty deleted the codex/simplify-test-suite branch September 14, 2026 00:35
max-sixty added a commit that referenced this pull request Sep 14, 2026
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_
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