# Direct Intake tracking client Implemented this item on imported production trunk `bea3299`. - `web/src/native/client.ts` exports `readNative(txHash: string, signal?: AbortSignal): Promise` and the `NativeSnapshot` type. One call reads a fresh snapshot with a 15-second deadline. Caller aborts reject the read and cancel API requests. Viem RPCs already in flight can settle after cancellation. Unresolved reads carry retry metadata for the UI. - `web/tests/native-client.test.mjs` exercises the real TypeScript client with mocked RPC and API calls, and `web/tests/fixtures/native-client/scenario.mjs` encodes the request, transfer and completion logs for those tests. The client uses the existing Ethereum public client, Intake, IMD and action configuration. It checks the successful receipt against canonical block hash and head depth, then binds the direct request calldata to its `Requested` log and exact IMD transfer to the Intake's treasury at that block. It preserves the UTF-8 body exactly. Payment requires an Intake index match on both request ID and log index, along with the matching transaction, chain, action, version, asset, amount and a paid order. The job ID comes from the matched admission. The job and result must identify that job, and the job's `paidBy` must match the receipt payer. A paid snapshot reaches `verifying` only with a completed job, complete result and confirmed canonical `Completed` log. The completion block supplies the timestamp. Callback delivery can be false. The tracking path uses public reads and requires no private signing key. The production escrow recovery and report readers were outside this item's changes. [IMD.fun protocol](https://imd.fun/docs/llms.txt) ยท [Verified Ethereum Intake source](https://sourcify.dev/server/v2/contract/1/0xa43e6f75ee006411f79ac1c84120606c2330de82?fields=sources) ## Checks Commands ran from `web/` unless otherwise indicated. - `npm ci --cache ../test/scratch/npm-cache` exited 0 and installed the locked dependencies. npm reported one moderate and one high advisory. - `npm run typecheck` exited 0. The final build also ran the TypeScript check. - `node --test tests/native-client.test.mjs` passed 58 tests. Cases include multi-entry selection, missing admission, conflicting identities and caches, reorgs and confirmation depth, result-before-completion, no callback, refusal and failure states, outages, rate limits, aborts and the request deadline. - `TMPDIR="$PWD/../test/scratch/tmp" node --test tests/*.test.mjs` passed 105 tests. The initial directory-style invocation `node --test tests/` exited 1 with `MODULE_NOT_FOUND` for `web/tests` in the Node loader. Passing the explicit glob resolved it. - `npm run build -- --outDir ../test/scratch/native-build` exited 0. Vite reported an existing application bundle above its 500 kB warning threshold. The peer UI is absent from this checkout, so the build typechecked the client and the offline tests bundled and executed it directly. - Public, read-only job and result lookups for the referenced repair and development jobs confirmed the API's job/result identity field names. Ethereum log sampling produced no recent `Requested` entry in the latest 400 blocks sampled. Broader log requests returned a provider range limit. - The assigned files passed the path and trailing-whitespace check. The attempt to stage and commit the three source and test files stopped at `git add` with exit 128 because Git could not create `.git/index.lock` on the read-only filesystem. The files are present in the checkout. ## Remaining integration checks After the peer changes merge, exercise the native checkout, polling UI, refresh recovery and report renderer together. The renderer must verify the completion's result bytes, bind its job ID and verify the report artifacts before display. Test production-origin access to the public API and the RPC's historical `payTo()` read for recovery. The block-height treasury read uses end-of-block state, so a treasury change later in the same block would leave that payment unresolved. This checkout did not run a live paid transaction or deploy the site. The live payment-to-report workflow and production hosting remain unverified.