--- applyTo: "packages/lynx/engine-bridge/**" --- `packages/lynx/engine-bridge/lynx` is the `lynx` rlib crate and a member of the repository Cargo workspace; raw C ABI bindings live under `lynx::sys` rather than a separate bridge crate. Do not add CLI/example binaries under `packages/lynx/engine-bridge`. Prefer validating it through the root Rust workflow commands: `cargo fmt --check`, `cargo clippy --tests --all-features -- -D warnings`, and the CI test job's `cargo llvm-cov nextest --all-targets --all-features --profile ci --config-file .cargo/nextest.toml --lcov --output-path lcov.info --release`. Use `cargo test --locked -p lynx --all-targets --all-features` only as a focused local loop. Runtime-backed tests require a Lynx runtime and matching `lynx_core.js` locally and in CI. Package `build.rs` files should prepare default, SHA-256-verified artifacts for supported targets under `target/lynx-engine-bridge-sdk`, inject `LYNX_SDK_DIR` and `LYNX_CORE_JS_PATH`, and never keep a copied core script in a test fixture; avoid separate downloader scripts unless they are needed outside Cargo. Do not add a separate engine-bridge CI job while `lynx` remains in the root Cargo workspace; let the main Rust workflow run it with the rest of the workspace. The Linux workspace test job should install the `libepoxy0` system package before loading `libLynx_clay.so`. Missing runtime configuration should fail runtime integration tests instead of skipping them. Update default runtime URLs and their matching SHA-256 values in `tools/runtime_build.rs`, which is shared by the engine bridge, headless runner, and UI Judge Server packaging. Download object names may differ from the installed names; preserve `libLynx_clay.so` and `resources/lynx_core.js` as the Linux SDK destinations. When `LYNX_CORE_JS_PATH` is absent, resolve the core script from `$LYNX_SDK_DIR/resources/lynx_core.js`; reuse an existing explicitly configured SDK resource and download a missing one into that same SDK directory. Keep runtime environment overrides ahead of Cargo-injected build defaults. The desktop runtime resolves `lynx_core.js` from the current executable's platform-standard resource location. Runtime-backed test binaries must install the resolved SDK artifact there before creating a view; treat that target output as generated runtime state, never as a checked-in fixture. Follow a Let it crash style in engine-bridge Rust code. Prefer one documented runtime path over guessing alternate locations, and surface configuration or I/O errors with specific messages instead of silently falling back to defaults. Keep defensive `catch_unwind` only at FFI boundaries where Rust panics must not cross into C ABI frames. Keep Rust integration coverage for the `lynx` library crate under `packages/lynx/engine-bridge/lynx/tests/`. These tests should cover public API behavior, and runtime-backed cases should load the configured dylib/so rather than using mocks. Do not add screenshot or image-golden tests to the engine bridge workspace unless product requirements need visual regression coverage. Runtime-backed API smoke tests that do not drive the windowless task queue should disable JavaScript runtime creation through `HeadlessViewBuilder::enable_js_runtime(false)`. Keep JavaScript enabled by default for real page-loading hosts; do not replace task pumping or native teardown synchronization with sleeps. Keep the safe API surface tied to exercised workflows. `LoadedLibrary` is a capability-focused symbol table: eagerly load the exports required by implemented bridge capabilities, but do not mechanically import every service or subsystem declared by the SDK. Do not add view-client lifecycle wrappers, callback glue, or extra dylib symbols unless a committed integration path uses them or a task explicitly requires synchronizing the bridge with newer public C headers; keep raw callback and platform-handle wrappers unsafe. Keep public CAPI functions without a Rust consumer out of `LoadedLibrary`. Preserve their checked signatures as comments grouped by declaring header, and move them into the active manifest only when an implementation path actually calls them. Keep `LynxEnv` as the single process-wide environment value. It must remain `!Send + Sync` and be exposed through a shared `'static` reference. Keep `LynxGroup`, `HeadlessViewBuilder`, internal `LoadMeta`, `UpdateMeta`, and `TemplateData`, and `DevtoolTarget` as `Send + !Sync`; keep `GenericResourceFetcher` at least `Send`. Verify these auto-trait contracts with compile-time assertions whenever their fields change. Keep native-window and WebView/WebView2 CAPI functions out of the active loader and safe Rust API. Preserve their public-header declarations and source comments only in the disabled signature manifest unless a future task explicitly restores platform-window embedding. Copy each available function comment from its declaring public CAPI header verbatim into the active loader manifest as Rust `///` documentation. Do not invent documentation for CAPI declarations whose headers do not document the function; preserve source comments alongside any intentionally disabled signature. Treat the complete `public/capi/*.h` header tree as the runtime ABI source of truth; do not infer the SDK contract from `lynx_view_capi.h` or another individual header. C exports declared with C++ reference parameters such as `const float&` must be bound as pointers (for example, `*const f32`) and called with stable addresses; do not require private `lynx_rust_*` shim exports. When a newly documented symbol is absent from the repository's current default runtime artifact, resolve it optionally and make the calling API report that it is unavailable instead of preventing the entire runtime from loading. Preserve the windowless builder, renderer, resource, metadata, environment, and view capabilities exercised by `lynx-headless-rust-test-runner`. The downstream headless page-capture and DevTools paths remain supported integration workflows; do not remove them because an individual public header omits declarations owned by another header. Do not move screenshot capture or DebugRouter application logic into the engine bridge. Keep `README.md` and `docs/architecture.md` in sync with API or ownership changes. Do not add SDK packaging scripts unless the workspace also owns the build inputs and CI path that validate them.