This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.

Working on Exact itself

•
SwiftPM imports need more than Swift module paths. An App Intents typecheck with only -I and -F loses C and Objective-C module maps and headers. Preserve the shared dependency target's compiler import flags when compiling consumers and gathering their constants. A roster probe also needs its own executable beside the package's resource bundles: Bundle.main in Bun refers to Bun's bundle.
•
An Android regression test still runs the temporarily reverted code after the source is restored. A revert and restore close together can leave Gradle reporting compileDebugKotlin UP-TO-DATE and reusing the class from the reverted source. Run the restored test with --rerun-tasks; an ordinary second test run does not prove the restored source was compiled. (OAuth logout regression audit, 2026-11-14.)
•
A CDP adapter re-sends known children and Styles stays empty. DOM.setChildNodes replaces the frontend's node objects. Repeating it for children already introduced can leave the selected object different from the DOM model's current object of the same id; the matched-style result is then discarded. Introduce children once per document, and invalidate ids on DOM.documentUpdated. Source-linked styles also need property ranges inside their style range, or the frontend hides their declarations. Verified with stock Chrome 156.0.8078.74 in LLP 1155's stub gate (2026-10-30).
•
The Mac agent carrier is not exported by agent-launch.mjs. Use open from agent.mjs, or its underlying openStdio from agent-stdio.mjs; the session's op sends a wire request. agent-launch.mjs contains shared helpers and the browser's Cdp client, not launch/send exports. LLP 1155's implementation brief named the wrong module.
•
Bundling host/web-js/rt.js alone reports missing imports. Its ./navigation.js and other relative imports are supplied beside it by the web build, so bun build host/web-js/rt.js is not a valid host build. Use host/web-js/build.mjs to verify the target, or bun build host/web-js/rt.js --external '*' for a syntax-only check. (Events lane, 2026-10-11.)
•
A bisect that shares another worktree's Cargo target directory builds stale code. CARGO_TARGET_DIR pointed at one worktree while checking out older commits in another left generated enums (PropId, Stdlib) from the wrong commit, and the build failed for no reason in either tree until a full cargo clean (65 GiB). Give a bisect or a second worktree its own target directory. (2026-10-06.)
•
A platform feature looks missing, and you start building it. Cause: the feature already exists under a name you did not search for. Haptics (haptic(), -exact-press-haptic) were proposed as a new gap after they had landed. Fix: before calling something missing, search docs/contract-for-agents.md and docs/reference.md, and ask contract vocab <name>. (Signal Clone, 2026-10-04.)
•
build.mjs --test --ios never returns after the tests pass. Cause: xcodebuild test can sit for ten minutes or more after Test Suite 'Selected tests' passed and its Executed N tests line, with or without your change (seen on 2026-10-05 on an iPhone 17 Pro simulator, Xcode 27). Fix: run it in the background with its log in a file, wait for the Executed N tests … seconds line of the whole run, read the verdict from it, then kill the xcodebuild test PID whose -derivedDataPath is under your own checkout. build.mjs then reports BUILD INTERRUPTED, which is not a test failure.
•
A manual iOS XCTest relink crashes with no __TEXT,__exact_compat. A normal app build left an archive that reads its compatibility document from a Mach-O section; Xcode's test bundle supplies none. Before xcodebuild build-for-testing, rebuild the embedded test archive with the Cargo step in host/apple/build.mjs's test function, without EXACT_BAKED or a linked bake. Then relink and run the focused class. (QUEUE 638 review, 2026-10-23.)
•
A manual hosted XCTest rerun uses an older build. The hosted .xctestrun loads the test bundle copied into ExactTestHost.app/PlugIns, not the bundle an incremental Xcode build updates. Refresh it with hostedIn from host/apple/xctest.mjs and re-sign the host before rerunning, or use build.mjs --test --ios, which refreshes the copy.
•
build.mjs <app> --test can break tests that assume Caltrain data. The Swift suite links the named app's plan and sources; its owner and batch tests call defaultLocation. Use build.mjs --test for the full AppKit suite, then drive a fixture app separately with agent macos --app <app> --plan <plan>.
•
A web wasm --plan override cannot add an unlinked capability. The wasm artifact links capabilities from the app's baked app.contract. A separate plan that first uses geometry can boot with Unlinked("geometry") even when that plan works on the JS and native hosts. Bake the test Contract as the app's source when testing a new wasm capability.
•
Conformance fails on apps you didn't touch. Cause: host/web-js/conform.mjs compares against wasm dists under --wasm-root (default /tmp/e3-wasm, shared by every checkout), and without --build it uses whatever another checkout or an older commit left there. Fix: name the apps and pass --build with a --wasm-root of your own (conform.mjs <app> --build --strict --wasm-root /tmp/<yours>). With no apps named, an empty root compares nothing and passes.
•
Conformance stops at once with ERR_OSSL_X509_PUBLIC_KEY_DECODE_ERROR. Cause: /usr/bin/openssl, macOS's LibreSSL, comes first on PATH; it writes the run's EC key with explicit curve parameters, which Bun cannot read back (startNet in host/web-js/conformance/net.mjs), so every conform.mjs run fails, the async lane's conform and conform-browsers steps included. Fix: put Homebrew's OpenSSL 3 first (PATH=/opt/homebrew/bin:$PATH). (2026-10-30.)
•
An EXACT_WEB_DIST build compiles, then fails renaming its stage. The destination's parent directory does not exist. Create that parent before running host/web/build.mjs --wasm with an external dist path.
•
conform.mjs --help starts conformance. It has no help flag; an unknown flag does not stop the run. Read its usage comment instead. A run against a shared wasm root may spawn app builds, which can outlive an interrupted parent.
•
A synthetic conformance fixture crashes with ENOENT under the wasm root. Its // data: <app> line named an app without a web host (the focus fixture first named hello), so --build made no wasm dist for it. Name an app with a web host, and a Linux host when using --linux (caltrain for the focus fixture). (focus-bubble conformance, 2026-10-12.)
•
A web size or speed number is inflated. Cause: a development web build carries the agent adapter, install pages and the source map. Fix: measure the release: host/web-js/build.mjs <app> --plan <wasm bake>/app.plan --production, as scripts/deploy.mjs builds it. The current metrics.mjs app.js gate is a different measurement: it calls host/web/build.mjs <app>-web without --production, and prints its three app.js lines only with --long. Reproduce that invocation when investigating a gate violation; a release number cannot be substituted for it.
•
Host code must never set a scroll offset during a pan or fling. An absolute contentOffset write while isTracking/isDecelerating cuts the reader's motion: frame rate holds, the motion is wrong ("janky but not dropping frames"). Defer follows to the end of the drag or deceleration, and apply anchoring and estimate corrections as relative adjustments in the same layout pass (Signal Clone evening of 2026-10-02; 32805146, c03685dc).
•
A copied Core Animation tree renders blank. Calling CALayer(layer:) directly gives an empty layer: a measured copy had zero bounds and no fill or sublayers. For a capture, copy values into fresh layers and recursively copy children and masks. Keep the live hierarchy intact. (LLP 1083.000, Apple A2.)
•
An sRGB capture test changes the pixel it reads. AppKit's NSBitmapImageRep.colorAt returns calibrated RGB even when the bitmap is sRGB. Converting that NSColor to sRGB again turned measured bytes [128, 0, 127, 255] into about 58% red and 57% blue. Compare the bitmap's components or bytes in its declared color space. (Apple A2 capture test.)
•
A canvas capture still shows the previous order after ranks flush. Cached shadow layers are plain CALayers: changing their zPosition outside a disabled-actions transaction implicitly animates the depth. Flush ranks before capture and disable actions for that flush, including mirror writes. A same-batch texture upload then sees the new front sibling. (LLP 1083.000, Astra 6 regression.)
•
A view's accessibilityActionNames() read in-process is not what VoiceOver is offered. It answered [] for a NodeView while an assistive app read AXPress. Cause: that method is the legacy list; AppKit's server adds every accessibilityPerform… the class overrides and then drops each that isAccessibilitySelectorAllowed(_:) refuses. Fix: read NSAccessibilityEntryPointActionNames(element) (exported; AppKit's CopyActionNames handler calls it), as ContextMenuMacTests does, and offer an action conditionally through isAccessibilitySelectorAllowed. An NSButton is ignored and its cell is the element, so a native button's action goes on its cell (NativeButtonCellMac). While the session is locked, an AXUIElement read from any process stops at the application. (X84, 2026-10-12.)
•
An AppKit accessibility action answers the first accessibility error recorded while it runs. AXPress on an inline run, a button, a checkbox or a switch landed and answered kAXErrorAttributeUnsupported (-25205) to another process. Cause: AppKit's request handler ignores the action's Bool and returns the first error recorded until it returns. The press's update reads values back (accessibilitySubrole(), isAccessibilityRequired()) from a NodeView, which overrides the legacy accessibilityAttributeValue, so AppKit asks through the legacy API and records each attribute the view lacks. Fix: an accessibilityPerform… that runs the app does it after the request returns (DispatchQueue.main.async), as AppKit's NSMenuItem does its AXPress, and a test asserts nothing ran inside the call; for AppKit's own control, call super's action there. (X78 follow-up, 2026-10-14; buttons, 2026-10-16.)
•
A sub-agent's half-written crate breaks every build in the worktree. Cause: a crate listed in the root Cargo.toml's members is resolved by every cargo command, so one that does not parse or compile yet stops builds that never touch it (about ten minutes of the harness's build, LLP 1101.002 §0 P15). Fix: list it in exclude while it is written, which lets cargo build --manifest-path <it>/Cargo.toml build it alone, and move it to members once that passes.
•
"I opened it in a terminal" is not "it is running". open -na Ghostty.app --args -e … can return success while the window reports "The terminal failed to initialize". Before telling a person the app is up, confirm the process you launched is alive (the PID recorded at launch: launch the binary directly and keep $!, then kill -0 $pid), and kill that recorded PID before retrying — never a PID found by name or pattern (pgrep -f, pkill), which on a shared machine is another lane's process as often as yours (LLP 1101.002 §0 P16; rules/RULES.md, Fleet).
•
An external native app rebuilds on every unchanged direct Cargo invocation. Cargo treats a missing optional assets/deck input as perpetually dirty; watching its parent recursively would also watch app-local build outputs. Use the host builder (bun exact.mjs windows for a generated Windows game). It recomputes EXACT_ASSET_ROOTS before each Cargo invocation; the bake watches that inventory for first creation and existing roots for content changes. Do not set this variable to a fixed hand-maintained list for direct Cargo.
•
macOS helpers belong in a native resource tree, not assets/. Assets are baked update bytes with portable names and capture limits. To ship a helper and its package tree, keep them in server/ beside app.json and declare "host": { "macos": { "resources": [{ "from": "server", "to": "Resources/server" }] } }. bun exact.mjs mac --bundle copies the tree to Contents/Resources/server. Executable modes, spaces, @scope names and relative links within the tree survive; files above 64 MiB are allowed. Source and asset roots cannot be used as native resource roots. Links must resolve inside the declared tree. The tree is excluded from TypeScript capture and web assets. Its files, modes and link targets are binary inputs, so changes require a new binary. Snapshot-based delivery captures this tree, including ignored dependencies; use --dirty when those files differ from the committed source. Mach-O helpers and libraries are signed in the bundle, which changes their signature bytes; other files stay identical. exact release signs these files with the release identity before sealing the outer bundle. This field is macOS-only. (Issue #103, 2026-10-07.)
•
A background, border or radius makes a text field your own box. A text field is the platform's own by default. Any such row, including a shorthand, a class row or a row on just one conditional arm, makes it bare for its whole lifetime. Write appearance="none" explicitly when drawing the field yourself. With appearance="auto", those rows are refused; remove them to keep the platform's background, border and corners. background-clip and background-attachment alone keep the field native. (LLP 1104 r8 D2.)
•
A package's prebuilt library, built by Cargo on a Mac, fails the app's link. With MACOSX_DEPLOYMENT_TARGET set, the dylib Xcode 27's strip leaves from Cargo's release default (strip debug info) is one ld refuses ("mis-aligned LINKEDIT string pool"; the root Cargo.toml says the same of build scripts). Set strip = false in the library's [profile.release] (packages/fixtures/vault/library/Cargo.toml). (LLP 1154, 2026-10-31.)
•
A package's web.assets are missing from the web build. The bake captures a package, and its assets with it, only when app.ts imports it: import its driver even if the app uses nothing from it yet. (LLP 1154, 2026-10-31.)
Is this helpful
Last updated December 1, 2026
Exact Docs