Repository navigation
Phase 4: Verdict web app (routing slip & inspection stamp) - #4
Merged
Merged
Conversation
… into core runInvoice reports every audit event as it is appended (drives the live routing slip), can resume a NEEDS_INPUT run with the previous extraction and user input instead of a second model call, and returns refused facts, document totals and the raw extraction. extractPageTexts moves to core so the app and the eval share it. Refs: REP-04, UI-02 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pection stamp Next.js app: POST /api/run streams a run as server-sent events (upload limits, PDF magic check, per-IP rate limit, daily budget, nothing persisted); GET /api/budget. UI direction 'routing slip & inspection stamp': PDF with quote highlights, facts with BT codes and provenance, refused values struck through and stamped void, a ruled routing slip with real durations, the verdict pressed as a stamp with validator version, date and report hash, a needs-input form that resumes without another model call, XRechnung and audit downloads. Refs: UI-01, UI-02, UI-03, UI-04, UI-05, UI-07, CORE-04 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Real runs on synthetic corpus invoices (fictional names, derived from the Apache-2.0 KoSIT test suite), replayed with their original timing so the gallery works without budget or API key. Refs: UI-06 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dator rejections The extraction prompt asks for line breaks as the two characters \\n; the evidence check now treats them as whitespace, which removes false refusals of multi-line values. An unresolved KoSIT rejection that only means a fact is not printed (e.g. BR-DE-1, BR-DE-15, BR-62/63) becomes a precise NEEDS_INPUT question; a user-entered IBAN implies credit transfer. Refs: EXT-03, REP-04 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Truthful gallery copy; stamp date, configuration and report hash taken from the run; refused values shown under the stamp with field label, plain reason and the first word that departs from the page; printed total cancelled in place; routing slip as a ruled form that keeps the first pass after an answer, with real durations; cumulative cost and repair rounds; larger credits and readouts; mobile intake above the fold. Re-recorded seven-lines and missing-iban (now with an answer). Refs: UI-02, UI-03, UI-04, UI-06 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s server and browser pdf.js standard fonts are resolved lazily with a node_modules fallback (require.resolve returns a module id when bundled). RULE_FIELDS moves to a browser-safe subpath export @verdict/core/rule-fields. Refs: OPS-05 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DESIGN.md and .impeccable/design.json describe the routing-slip & stamp world from the built code. Validator rule rows read in English with the validator's wording as evidence; ink-3 and struck words pass AA contrast; reduced motion also stops pulses and smooth scrolling. Refs: UI-03 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #3 (phase 2 into main). Once #3 is merged, this diff shows only phase 4.
What
POST /api/runstreams a run as server-sent events (5 MB / 5 pages / PDF magic check, per-IP rate limit, daily budget, nothing stored),GET /api/budget.\nwere falsely refused; bundled-server path for pdf.js fonts.DESIGN.md+.impeccable/design.json,PRODUCT.md.Production build and
next startchecked with a real PDF.Requirements
UI-01–UI-07, CORE-04, REP-04
🤖 Generated with Claude Code