**status-view — implemented and checked locally at base commit `28ff85f`.** All five assigned view defects are repaired, and all 72 new offline tests pass. TypeScript and the production build pass. The full suite is **not green**: 13 failures remain in files outside this item's permitted paths, detailed below. This does **not** certify the entire live payment-to-report workflow; no live payment was made. I inspected this checkout's existing `web/` implementation before editing: the native reader and tracker, report reader/view, hash router, checkout tests and translation checks. The change reuses `trackNative`, `readNative` and `fetchNativeReport`; the tracker, confirmation requirements and report verification inputs are unchanged. The address's job ID is display/recovery information, never evidence of payment. A current `paid: false` snapshot removes the paid badge. Report publication still requires the existing paid completion, verified download and matching reconfirmation. | Defect and location at base commit | What happened before | What happens now (current file and line) | | --- | --- | --- | | Missing job ID rejected: `web/src/native/view.tsx:163`; ID rendering at `:182` | A matching transaction with no snapshot job ID hid confirmed payment, payer and reason on a job URL, including completion-confirmation waits and job API outages. | `web/src/native/view.tsx:215` accepts an absent job ID but still rejects a different one; `:216` and `:237` display the URL's job ID when needed. Current payment, payer and reason remain visible; no admission is invented and no report is fetched without the reader's job ID. | | Admission added browser history: `web/src/native/view.tsx:149` | Setting `location.hash` added a job entry, leaving the tx entry to redirect Forward again after Back. | `web/src/native/view.tsx:150` uses `location.replace` for a same-document fragment navigation, replacing the tx entry while preserving the router's hashchange notification. | | Raw reason codes: `web/src/native/view.tsx:187` | Customers saw only codes such as `read-unavailable` and `intake-entry-mismatch`. | `web/src/native/view.tsx:161` maps all 42 current reason codes and the 3 incoming codes to plain English through `t()`, with a general fallback. `:242` keeps the code in small print. `:219`, `:230` and `:239` show disagreements explicitly and suppress ordinary-wait copy. | | Report issues bypassed translation: `web/src/native/view.tsx:191` | Report issues were rendered directly. | `web/src/native/view.tsx:246` passes every issue through `t(issue)`, including when no report can be displayed. | | Empty rejected snapshot mounted ReportView: `web/src/native/view.tsx:193` | A hash-matching snapshot rejected for another job could have no verified content yet display “Verified: the report's bytes match…” from ReportView. | `web/src/native/view.tsx:228`, `:245` and `:248` require nonblank verified text or a nonempty verified prediction list before showing the partial-report note or mounting ReportView. Verified partial text/predictions still render; issues remain visible without a report. | Files changed or created for delivery: - `web/src/native/view.tsx` — the five view repairs; all existing exports and exported types retained. - `web/tests/native-view.test.mjs` — 72 offline regression cases using real `trackNative`, `NativeStatus` and `ReportView`, with `read`, `fetchReport`, persistence and scheduling injected. - `web/tests/fixtures/native-view/scenarios.mjs` — explicitly synthetic snapshots, predictions and expected reason sentences, never sent to any RPC/API/wallet. - `web/tests/fixtures/native-view/i18n.ts` — records only the native view's translation calls while preserving the real catalogue/hook, plus a test translation override. - `artifacts/goal/batches/native-repair/items/status-view/result.md` — this result, left untracked for the output uploader. No package, lockfile, configuration, contract, payment, signing-key or translation-catalogue file was changed. No new dependency or submodule was added. No new backend operation or private-signing requirement is introduced by this UI repair. Scratch tools, logs, caches and build output are not delivery files. Commands and results follow. Test counts are **total / passed / failed / TODO**; all recorded runs had zero cancellations and skips. Commands run from `web/` unless marked repository root. | Check | Exact command | Exit | Test counts | Result | | --- | --- | --- | --- | --- | | Setup (repository root) | `mkdir -p test/scratch/status-view/tmp test/scratch/status-view/npm-cache` | 0 | N/A | Scratch folders only. | | Install | `npm ci --cache ../test/scratch/status-view/npm-cache` | 0 | N/A | 80 packages added, 81 audited; npm reported 1 moderate and 1 high dependency vulnerability. No dependency/lockfile edits. | | Baseline, before any changes | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test tests/*.test.mjs > ../test/scratch/status-view/baseline-tests.log 2>&1` | 0 | 216 / 214 / 0 / 2 | Matches the supplied baseline; two existing native-client TODOs below. | | First regression launch (fixture setup error) | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test tests/native-view.test.mjs > ../test/scratch/status-view/native-view-before.log 2>&1` | 1 | 1 / 0 / 1 / 0 | Import failed at tests/native-view.test.mjs:38: document.addEventListener was missing from the test stub. Added no-op event methods at line 34; this was test scaffolding, not a product failure. | | Regressions against the original view, after fixture repair | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test tests/native-view.test.mjs > ../test/scratch/status-view/native-view-before.log 2>&1` | 1 | 72 / 7 / 65 / 0 | All five assigned defects reproduced; see regression groups below. This rerun replaced the first launch's scratch log. | | Regressions after the fix | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test tests/native-view.test.mjs > ../test/scratch/status-view/native-view-after.log 2>&1` | 0 | 72 / 72 / 0 / 0 | All new offline tests pass; unexpected fetches are forbidden. | | Typecheck | `TMPDIR="$PWD/../test/scratch/status-view/tmp" npx tsc --noEmit` | 0 | N/A | No TypeScript errors. | | Existing translation script | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node scripts/i18n-check.mjs` | 0 | N/A | 605 strings checked in 9 languages. This script scans top-level src files only; its pass does not cover new nested native strings. | | Full suite after the fix | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test tests/*.test.mjs > ../test/scratch/status-view/all-tests-after.log 2>&1` | 1 | 288 / 273 / 13 / 2 | 13 failures explained below: 1 obsolete assertion, 10 translation coverage failures, 2 test-language cascades. | | Production build | `TMPDIR="$PWD/../test/scratch/status-view/tmp" npm run build -- --outDir ../test/scratch/status-view/dist > ../test/scratch/status-view/build.log 2>&1` | 0 | N/A | Typecheck and Vite build pass; 1,367 modules transformed. Existing >500 kB chunk warning; output is disposable scratch data. | | Isolate the two suspected language cascades | `TMPDIR="$PWD/../test/scratch/status-view/tmp" node --test --test-name-pattern='standalone UUID\|the view reads a job body' tests/native-ui.test.mjs > ../test/scratch/status-view/native-ui-language-isolation.log 2>&1` | 0 | 3 / 3 / 0 / 0 | The pattern also selects the route parser test. Both previously failing rendering cases pass with their normal English initial state. | The original-view failures are grouped at `web/tests/native-view.test.mjs:65` (four missing-ID reasons), `:82` (address ID with unpaid snapshot), `:124`, `:147`, `:157` (recovery/reconfirmation/current-payment transitions), `:188` (history), `:214` (45 reason cases), `:236` (unknown codes and escaping), `:248` (disagreements), `:259` (terminal explanations), `:272` (issue translation) and `:293` (seven empty/unverified report cases). These account for all 65 intentional failures before the fix and all pass afterward. The history test executes the actual `NativeResearchSession` effect extracted from the source, with the real tracker and a modeled same-document history/event interface. It checks replacement, route parsing after hashchange, repeat admissions and Back. SSR checks use the real report renderer, including probabilities, research, citations, partial reports and existing verification flags. The tests do not assert that fixture flags prove real blockchain payment or artifact authenticity. The full-suite failures and defects outside the permitted files are: - **Obsolete assertion:** `web/tests/native-ui.test.mjs:137`, failing at `:140`, explicitly expects a `paid: true` snapshot with no job ID to hide “Payment confirmed by IMD”. That is defect (1). The corrected expectation is asserted in the new allowed test at `web/tests/native-view.test.mjs:69`, alongside assertions that readiness stays false and no report loads. **The original assertion was not edited because its path is explicitly forbidden for this item.** Its owning item should keep the no-ready assertion and replace the no-paid assertion with a paid-badge assertion. - **Nine translation checks:** `web/tests/native-i18n.test.mjs:157`, failing at `:160`, for `fr`, `es`, `ru`, `ja`, `zh`, `pt`, `it`, `th`, `pcm`. Each reports the 47 new English keys at `web/src/native/view.tsx:163` through `:208` and `:230`. The brief assigns their translations to a later wave and forbids editing `web/src/i18n-ui/`. - **One more translation check:** `web/tests/native-ui.test.mjs:259`, failing at `:270`, first missing key “This transaction has not been mined yet.” for French. - **Two resulting test-language leaks:** that translation test leaves the global language at `pcm` because the reset at `web/tests/native-ui.test.mjs:271` is after the failing assertion. This causes the later tests at `:275`/assertion `:280` (English recovery text expected) and `:325`/assertion `:343` (“Report ready” expected, “Report don ready” rendered) to fail. Both pass in the recorded isolated run; a cleanup hook/finally is needed in their owning test file. - **Existing TODO, job ID lost on result 404:** `web/src/native/client.ts:227` waits for both job and result before assigning the admitted ID at `:232`. Recorded by `web/tests/native-merged.test.mjs:235`, assertion `:243`. The view can preserve current confirmed payment and display the job ID already in the address, but cannot persist an admission the reader does not provide. - **Existing TODO, confirmed refusal after admission:** `web/src/native/client.ts:212` rejects a job admission even when completion confirms refusal, producing `admission-refusal-disagreement`/pending instead of refused. Recorded by `web/tests/native-merged.test.mjs:246`, assertion `:254`. - **Translation script coverage gap:** `web/scripts/i18n-check.mjs:23` scans top-level source files, so its successful 605-key check does not contradict the nested native catalogue failures. - Installation reports two dependency vulnerabilities and the build reports a large bundle warning; no package/build changes were authorized or made. Every new production English sentence is quoted below, with its reason code and source line. The 45 reason sentences, unknown-code fallback and extra status label are all passed through the existing `t()` calls; actual non-English translations remain pending. Report issue text is pre-existing reader output and is now translated through `t(issue)`. | Reader reason / label | New customer text | web/src/native/view.tsx line | | --- | --- | --- | | `awaiting-receipt` | "This transaction has not been mined yet." | 163 | | `awaiting-index` | "IMD has not indexed this transaction or job yet." | 164 | | `rate-limited` | "IMD is limiting status checks, so this page will try again shortly." | 165 | | `api-unavailable` | "IMD's status service is unavailable, so confirmation cannot be refreshed yet." | 166 | | `invalid-api-response` | "IMD returned an unreadable status response, so confirmation cannot be refreshed yet." | 167 | | `receipt-mismatch` | "The transaction receipt does not match this transaction, so it cannot confirm the order." | 168 | | `block-mismatch` | "The transaction's block does not match Ethereum's current records, so confirmation must be checked again." | 169 | | `awaiting-confirmations` | "The transaction needs more Ethereum confirmations before this page can use it." | 170 | | `unknown-receipt-status` | "The transaction receipt has an unrecognized outcome, so it cannot confirm the order." | 171 | | `request-transaction-mismatch` | "The transaction details do not match the expected IMD Intake request." | 172 | | `invalid-request-calldata` | "This page could not read the order details in the transaction." | 173 | | `unexpected-intake-function` | "This transaction did not call IMD Intake's order request function." | 174 | | `request-calldata-mismatch` | "The order details in this transaction do not match the required IMD request." | 175 | | `requested-log-mismatch` | "IMD Intake's recorded request does not match the transaction details." | 176 | | `payment-transfer-mismatch` | "The recorded token transfer does not match this order's IMD payment." | 177 | | `intake-entry-mismatch` | "IMD's order record does not match the confirmed transaction details." | 178 | | `invalid-completion-transaction` | "IMD has not supplied a valid transaction for the report's completion." | 179 | | `completion-log-mismatch` | "IMD's completion record does not match the completion recorded on Ethereum." | 180 | | `invalid-completion-result` | "The confirmed completion is missing valid report details." | 181 | | `chain-mismatch` | "The connection returned a different network, so Ethereum confirmation is unavailable." | 182 | | `request-reverted` | "The order transaction failed on Ethereum, so it did not create an IMD order." | 183 | | `order-action-mismatch` | "IMD's payment record is for a different kind of request." | 184 | | `unknown-intake-state` | "IMD returned an unrecognized order status, so confirmation remains unresolved." | 185 | | `intake-completion-disagreement` | "IMD's order and completion records disagree, so completion cannot be confirmed." | 186 | | `admission-action-mismatch` | "IMD's job admission record is for a different kind of request." | 187 | | `admission-refusal-disagreement` | "IMD's admission and refusal records disagree, so the order's outcome cannot be confirmed." | 188 | | `request-refused` | "IMD refused this research request." | 189 | | `request-failed` | "IMD could not complete this research request." | 190 | | `request-blocked` | "IMD reports that this research request is blocked." | 191 | | `awaiting-admission` | "IMD has not confirmed a research job for this request yet." | 192 | | `awaiting-paid-order` | "IMD has not confirmed this order as paid yet." | 193 | | `job-identity-mismatch` | "IMD's job records do not match this order and payer." | 194 | | `job-result-disagreement` | "IMD's job and result records disagree, so the report cannot be confirmed." | 195 | | `job-completion-disagreement` | "IMD's job and completion records disagree, so completion cannot be confirmed." | 196 | | `job-failed` | "The Swarm research job failed." | 197 | | `job-cancelled` | "The Swarm research job was cancelled." | 198 | | `job-refused` | "The Swarm research job was refused." | 199 | | `job-blocked` | "The Swarm research job is blocked." | 200 | | `awaiting-confirmed-result` | "IMD has not confirmed the completed report yet." | 201 | | `unresolved-job-state` | "IMD's job status cannot yet be reconciled with its completion record." | 202 | | `invalid-transaction-hash` | "This transaction hash is invalid, so this page cannot find the order." | 203 | | `read-timeout` | "The confirmation check took too long, so this page will try again." | 204 | | `read-unavailable` | "Confirmation is temporarily unavailable, so this page will try again." | 205 | | `unsupported-transaction` | "This transaction did not call IMD's Intake directly from the paying wallet, so this page cannot follow it." | 206 | | `not-an-intake-request` | "This transaction is not an IMDPicks order." | 207 | | Unknown code | "IMD confirmation is unresolved; keep this link and try again." | 208 | | Disagreement status label | "IMD records disagree" | 230 | What stays unproven: a real customer wallet payment through Intake, production admission/index availability, actual completion confirmation, live report retrieval, live artifact verification, cross-browser history behavior, deployment/hosting/CORS availability, research quality and agent participation count. No live payment, deployment, external job mutation or message to other agents was performed. This bounded item does not determine or change authorization/signing requirements for unrelated backend operations. The existing API/RPC/report services and hosting must remain available; no new hosting or authorization requirement is added. Changes by other concurrent items were not present in this checkout and still need a merged integration check. The full production objective must not be marked complete from these offline results. The read-only inspection commands below all exited **0** (test counts N/A). Repeated identical inspections are listed once. They ran from the repository root. Patches were applied only to the delivery paths above and disposable `test/scratch/` helpers; all patch applications succeeded. ```sh git status --short git log -1 --format='%h %s' rg --files web/src web/tests web/scripts -g '!i18n-ui/**' -g '!node_modules/**' sed -n '1,280p' web/src/native/view.tsx cat web/package.json sed -n '1,360p' web/src/native/client.ts sed -n '1,360p' web/tests/native-ui.test.mjs sed -n '1,300p' web/tests/native-checkout.test.mjs rg -n 'ReportView|hashchange|replaceState|fetchNativeReport|reason:|reason =' web/src/pages.tsx web/src/main.tsx web/src/native web/src/swarm.ts web/tests/native-*.test.mjs cat web/tsconfig.json web/scripts/i18n-check.mjs sed -n '55,235p' web/tests/native-ui.test.mjs sed -n '235,420p' web/tests/native-ui.test.mjs sed -n '305,395p' web/src/pages.tsx sed -n '1,65p' web/src/main.tsx sed -n '755,910p' web/src/swarm.ts sed -n '305,340p' web/src/pages.tsx sed -n '330,400p' web/tests/native-ui.test.mjs sed -n '1,85p' web/src/i18n.ts rg -n 'export (type|interface) (Fetched|Report)|type Fetched|function verifyNote|games\??:' web/src/swarm.ts web/src/predict.ts web/src/engine/report.ts web/src/pages.tsx sed -n '1,100p' web/tests/native-i18n.test.mjs sed -n '100,270p' web/tests/native-i18n.test.mjs sed -n '310,330p' web/tests/native-ui.test.mjs sed -n '1,60p' web/src/swarm.ts rg -n 'verifyNote|Verified:|hashOk' web/src/pages.tsx web/src/insight.ts tail -n 12 test/scratch/status-view/baseline-tests.log rg -n 'tests |pass |fail |todo |ℹ|^✖|^✔|^not ok|^# (tests|pass|fail|todo)' test/scratch/status-view/baseline-tests.log rg -n 'tests |pass |fail |todo |ℹ|^✖|^✔|^not ok|^# (tests|pass|fail|todo)' test/scratch/status-view/native-view-before.log cat test/scratch/status-view/native-view-before.log rg -n '^ℹ|^✖|^test at' test/scratch/status-view/native-view-before.log rg -n '^ℹ|^✖|^test at' test/scratch/status-view/native-view-after.log git diff --check git diff --stat nl -ba web/src/native/view.tsx | sed -n '137,265p' rg -n '^ℹ|^✖|^test at|^ [+-] ' test/scratch/status-view/all-tests-after.log cat test/scratch/status-view/build.log sed -n '225,265p' test/scratch/status-view/baseline-tests.log git diff -- web/src/native/view.tsx sed -n '2250,2345p' test/scratch/status-view/all-tests-after.log nl -ba web/tests/native-ui.test.mjs | sed -n '133,145p;259,285p;325,355p' nl -ba web/tests/native-i18n.test.mjs | sed -n '150,168p' nl -ba web/src/native/client.ts | sed -n '202,239p' cat test/scratch/status-view/native-ui-language-isolation.log ``` Output generation: `node test/scratch/status-view/write-result.mjs` (repository root), exit 0, tests N/A. Final review: `node test/scratch/status-view/check-deliverable.mjs` (repository root), exit 0, tests N/A; it checks allowed changed paths, unchanged exported signatures/tracker/report-input logic, all 47 quoted new strings, output size and untracked status, and whitespace. Scratch review scripts are not submitted.