Skip to content

Connect page diagnostics to source revisions and observed content - #4198

Merged
max-sixty merged 6 commits into
mainfrom
codex/page-diagnostics
Oct 26, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/page-diagnostics

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Page diagnostics now connects its observations to the content and source revision they describe. The existing CLI and Leaf menu remain advisory: they report measurements without scores or authoring gates.

  • Extend leaf page inspect with JavaScript inventory and revision comparisons: changed captured paths, bytes, digests, and CSS/JS deltas. Counts describe source files, not executed code or network transfer.
  • Capture rendering identity with each browser observation. “Show on page” reveals the captured element through structured locations and refuses stale targets; report copying offers an in-dialog fallback when clipboard access fails. The retained observation shape advances the page protocol to 27.
  • Use Leaf's default styling in the plan example and keep its short caveats visible. Extend the mixed-content authoring evaluation to cover that distinction.
  • Keep preview updates simple: authored content and browser changes refresh automatically; Python, schema, or dependency changes request an explicit restart. Restarting a user preview keeps its URL and feedback history.
  • Ignore inaccessible foreign input objects before inspecting their fields, fixing the reproduced Firefox scrolling failure during sample startup.

Validation: browser build and pnpm run check; 19 focused model tests, 4 developer tests, and 4 diagnostics browser tests; native Firefox reproduction and fixed trials; pre-commit checks; independent review, including Opus on the diagnostics changes. The mixed-content evaluation passed on both baseline and candidate in one run each; this characterizes the example rather than establishing a general behavior improvement. Public catalog previews were regenerated.

This was written by Codex on behalf of max-sixty

Capture rendering identity with browser observations, navigate to retained elements, report JavaScript sources and compare revisions. Keep clipboard failure feedback inside the diagnostics dialog. Bump the page protocol for the retained view shape.

Reload preview workers across runtime and dependency edits while preserving their lease and ownership. Fixture acknowledgements use the selected runtime, so authored comparisons work across protocols.
leaf-agent
leaf-agent previously approved these changes Oct 26, 2026
@max-sixty
max-sixty merged commit de61b56 into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/page-diagnostics branch October 26, 2026 05:44
leaf-agent added a commit that referenced this pull request Oct 26, 2026
The export audit reported five module-local helpers and one real reader
it could not follow. Keep the helpers private, and teach the audit to
follow a dynamic import's fulfilled namespace through `catch` and
`finally`. This preserves `resolvePlace`, which Page diagnostics uses to
reveal a captured location, instead of removing a working navigation
path.

The timeline helpers came from #3973; #4198 added the diagnostics reader
through `import(...).catch(...)`. Their intended behavior stays intact.
Rebuilding changes only two source hashes in the kernel manifest;
compiled runtime and package bundles are byte-identical.

Verified locally: the original six-export failure reproduces on main and
passes after this change; a focused checker regression fails before the
fix and passes afterward, including an unread-export control. All 668
runtime tests, the diagnostics captured-location browser test, and the
browser build/type checks pass.

Closes #4250 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The focus-ring sweep still sampled a disclosure in the plan after #4198
deliberately replaced its short caveats with visible paragraphs. It now
samples the PR walkthrough's path disclosure and credits the visual
overlay that draws native content focus. The corpus Tab walk still
includes the plan; no page behavior changes.

The isolated disclosure specimen reproduced the 120-second
missing-locator timeout before this change and passes afterward,
including focus and ring geometry assertions. Python compilation and
diff checks pass. The full sweep passes the replacement specimen, then
stops at the unrelated `#pr-flow-tab` paint-rule expectation, also
reproduced on main before this change and tracked separately in #4412.
All gating PR CI checks passed on the pushed head.

<details><summary>Focused verification</summary>

A temporary pytest fixture restricted `RING_CASES`, `RING_EXAMPLES` and
`RING_EXAMPLE_FILES` to the native disclosure specimen, and replaced the
independent corpus Tab walk with an empty result. The existing test
still performs its focus, painted-rule and ring-geometry assertions.
Before the change it waits for the absent plan summary and times out;
afterward the walkthrough summary passes in 9.51 seconds. The
unrestricted test was also run before and after and stops at
`#pr-flow-tab`: its expected rule contains `.lf-rendered:has(>
:is(lf-tab, lf-part)`, while the browser's rule contains a newline after
`:has(`.

</details>

Closes #4241 — automated triage

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 18, 2026
…ey read (#6374)

Ten tests under `dev/tests` failed on main because five main commits
changed what they read, and nothing in CI runs `dev/tests`. Each test
still protects behavior that holds, so the fix is in the tests' fixtures
and expectations; no developer tool changes.

- #5964 put a `leaf` command's refusal in its stdout JSON. The desktop
Codex `server start` cases and the unavailable-delivery `start`/`run`
handoffs in `test_interact_preview.py` now read it there.
- #4198 made the preview follow more files in its checkout. The
assets-pin test's fake checkout now creates every file `worker_inputs`
names, so the preview no longer subscribes the whole checkout
recursively.
- #6237 re-indented `docs/index.html`, and the composed-image case in
`test_product_page.py` matched on the old indentation. It now matches on
`alt` alone.
- #5228 changed the journey's page-text read, and #6090 shortened the
release marker to seven characters. `test_website_server.py`'s fake page
and its expected marker follow both.

To weigh: these breaks went unseen for up to three weeks because
`dev/AGENTS.md` keeps `dev/tests` out of every CI selection. This PR
leaves that rule unchanged.

Dispatched by max-sixty from the session that landed #6014. Tests: the
three changed modules, 91 passed on macOS.

> _This was written by Claude Code 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