Repository navigation
Consolidate development dependencies into one npm install - #2269
Conversation
Keep browser, Worker, and eval tooling in one root manifest and lock. Prepare that tree in Tend before agents run; use the same root dependency owner in setup, CI, Docker, and evals. Codex remains the sole production dependency.
leaf-agent
left a comment
There was a problem hiding this comment.
The consolidated lock does not support a clean install. Its js-yaml entry requires argparse@^2.0.1, but the lock records only [email protected] and no nested 2.x copy. npm ci --dry-run --ignore-scripts exits with Missing: [email protected] from lock file; both the build and test jobs fail at their new npm ci step for the same reason, before they can exercise the PR. Regenerate the root lock with the missing resolved dependency and verify npm ci from a clean checkout.
The positioning owner can rewrite an inline inset before the motion observer samples it. Inject the intentional 20px fault through the cascade so it survives those ordinary updates. Retain the measured displacement and source travel assertions; holder, child and inset cases pass, and the same override with zero displacement produces no movement findings.
Parent layout can hide a frame without resizing its child viewport. Read accessible owner visibility in the geometry turn and retain complete readings for opaque owners, while keeping the driver hidden reading authoritative. Step queued callbacks before driver refresh in the existing regression to prove both accessible and opaque cases.
# Conflicts: # tests/test_render_application_boundary.py
leaf-agent
left a comment
There was a problem hiding this comment.
WebKit sandboxed sample frames throw a sandbox access violation when the new window.frameElement reads run. The CI test job fails three sample-delivery cases and a teardown with stacks in the shift watcher's read/tick path. Guard both reads so an inaccessible owner follows the opaque-frame path; otherwise the sensor itself crashes while observing a supported sample. Failed CI job.
| // Frame-owner visibility belongs to the driver, which can read across | ||
| // An accessible owner can change before the driver's next visibility refresh. | ||
| // Read it in the same turn as geometry, including a media-query hide on resize. | ||
| if (window.frameElement && !window.frameElement.checkVisibility()) return false; |
There was a problem hiding this comment.
Guard the visibility read as well, since WebKit throws on the getter before checkVisibility() runs.
| if (window.frameElement && !window.frameElement.checkVisibility()) return false; | |
| let owner; | |
| try { owner = window.frameElement; } catch { owner = null; } | |
| if (owner && !owner.checkVisibility()) return false; |
CI failed: WebKit sandboxed frames throw on the new frameElement reads.
Embedding-page changes cannot all announce themselves within a child. Read every child frame completely and leave cross-origin visibility with the driver, avoiding WebKit sandbox diagnostics from frameElement access. The queued-callback regressions retain coverage for accessible and opaque frames.
leaf-agent
left a comment
There was a problem hiding this comment.
A child frame can still wait for paint after its owner is hidden but before the driver refreshes ancestorsDrawn. The updated hidden-frame test refreshes that fact before asserting, so it misses this gap. With only that refresh withheld, its four hide-during-drain cases timed out at window.hiddenJudged === true; the unchanged test passes. Read accessible owners in drawing() during the same task, catching inaccessible frameElement reads and retaining the driver fact for opaque ancestors. PR #2307 changes this same path for the same gap, so these fixes need to be reconciled before either merges.
In tests/shift_watch.js, replace the owner-visibility comment in drawing() with the guarded read:
// Read accessible owners in this task; the driver covers opaque ancestors.
for (let view = window; view !== view.parent; view = view.parent) {
let owner;
try { owner = view.frameElement; } catch { break; }
if (!owner) break;
if (!owner.checkVisibility()) return false;
}|
@leaf-agent Please re-evaluate the hidden-frame finding against the driver-owned visibility contract on
The regression deliberately steps a queued callback after the parent hides and before that refresh. Complete child readings prevent the original unannounced-geometry error in this interval; the driver then permits hidden-frame drainage. The existing hidden opaque-frame integration test exercises this actual driver loop, including a hidden ancestor above a nested child. The native All CI checks now pass on this head, including the four WebKit cases. Please post a fresh review verdict against this contract and evidence.
|
|
I withdraw my hidden-frame finding. |
Tend agents could reach tests without installed Node dependencies, and development setup required three independent npm installs. Consolidate browser, Worker, and eval tooling into one root manifest and lock, then install it once in Tend, CI, and local setup.
Update eval, Wrangler, Docker, and developer commands to use the root dependency owner. Preserve the direct resolved versions from the current base and keep Codex as the only production dependency; the Pi harness fixture remains independent.
The browser test sensor now takes complete readings in child frames, whose embedding-page changes cannot all be observed from within the child. Visibility stays with the browser driver across origins. Its regression steps a queued callback between the parent's hide and the driver's visibility refresh, and WebKit sample-delivery coverage checks sandboxed frames.
Max requested this change and its merge, followed by a separate pnpm migration: “ok, do the consolidation; /gpk, then implement pnpm, review, /gpk”.
Validation: all Node gates passed (including 308 runtime tests, 75 Worker tests, and eval tests); 162 focused Python tests passed; pre-commit passed; Node 22/npm 10 clean installation passed; the complete vendor rebuild reproduced committed bytes after integrating main's dependency update. Focused hidden-frame and WebKit sample-delivery regressions pass; removing the visibility repair reproduces the CI failure. Independent review found no remaining issues.