Repository navigation
feat(fe): View proof, the evidence behind the verified badge (#254) - #259
Conversation
) The engine keeps the proof on `run.verified` (#256) and the backend serves it on `GET /runs/{runId}/proof` (#257, live on the hosted API: it answered 404 no_proof for an older reply). The badge's popover gets "View proof", which opens a dialog in plain words first: - Signed inside the TEE: each step's signer checked against its attestation's signer. - Hardware checked: Intel TDX's status in words, NVIDIA's GPU evidence only where it exists (a streamed chat reply is gateway-level, Intel only), the nonce and when it was checked. - Check it yourself: copy the Intel quote or the whole proof, TEE Explorer, NEAR AI's verifier. Raw quotes and signatures are only copied, never laid out. A reply from before #256 says no proof was kept. The popover no longer says NVIDIA checked a gateway-level reply, which it didn't. Tests: typecheck, lint, vitest 269/269 (new: signer matching, the reply's entry, Intel's status in words). Checked in Chrome: the popover with View proof, the dialog's no-proof case on the hosted API. Not checked yet: a reply that carries a proof. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ancung, 11 Nov: on a phone, "The proof behind this reply" showed as "'he proof"; "Connect Telegram" lost the edge of its "C" too. A drawer's content sits in an inner element that clips (overflow-hidden), and its side padding was on the outer popup, so the clip edge was exactly where text began and a letter that leans left past its box was cut. The side padding now lives inside that element (`ResponsiveDialog`, "Add a block"). Tests: typecheck, lint, vitest 269/269. Checked in Chrome at 375 px: the Telegram drawer's title is whole. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ancung, 11 Nov: View proof, "How it's verified" and "Check it yourself" stacked as a button and two links read as clutter. One row now: View proof at the left, "How it's verified" at the right, no divider. "Check it yourself" is in the proof dialog already (the verifier and TEE Explorer), so the popover shows it only for a reply without a run id. Tests: typecheck, lint, vitest 269/269. Checked in Chrome: one row, nothing overlapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o feat/fe-view-proof # Conflicts: # apps/fe/CLAUDE.md # apps/fe/src/modules/runs/components/VerifiedBadge.tsx
|
Backend side checked against #257 and
One small typing note, not a blocker: the backend sends CI |
…them James on #259: the backend's `runProofs` sends `model: null` and `level: null` when a stored `run.verified` lacks them. Every real one carries both, but the type now says so, and the dialog leaves out the model line when there is none instead of calling `split` on null. Tests: typecheck, lint, vitest 269/269. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Re-checked |
|
Tested and merged, thanks @AncungAulia. Merged with 🤖 Generated with Claude Code |
|
Live on the hosted demo:
|
@Lexirieru The FE side of #254, on top of your #256 and James's #257. Merged with
maind9c1621(after #255, #257 and #258).View proof
The verified badge's popover has a "View proof" button. It opens a dialog (a drawer on phones) that reads
GET /runs/{runId}/proofwhen it opens. The dialog uses the last entry, which is the reply's. It has three sections, plain words first:checkedSteps, case-insensitive). The dialog notes that only hashes were signed.404 no_proof(replies from before #256) says no proof was kept. Types and helpers are inruns/data/proof.ts.Also
Tests (local, merged with main)
bun run lint,bun run typecheck: pass.bun run test: 269/269. New: signer matching, the reply's entry, and Intel's status in words.bun run build: pass.40599f…ad4acb, Intel TDX up to date).🤖 Generated with Claude Code