Requirement EPIC
- Epic
- MVP1 · E4 · Human review of low-confidence fields
- Goal
- a person checks only what the system is unsure about, quickly, with evidence beside each field.
- Stories in this module
- 6
REVIEW-V1-E4-01 Review queue
Size MHuman Review
- AC1
/documents/{id}/review lists flagged fields first, ordered by lowest confidence, each with its reason, current value and source quote. - AC2A counter shows "N of M resolved". Unflagged fields are available under "Show all fields".
REVIEW-V1-E4-02 Accept, edit or mark not present
Size MHuman Review
- AC1Per field, I can accept, edit (with input checks: dates, numbers, currency code) or mark "Not on document".
- AC2Every change stores the original value, the new value, who changed it and when, and audits
review.field_updated. - AC3On desktop: Enter accepts, E edits, ↓ moves to the next field. On mobile: large tap targets.
- AC4Fields can still be corrected after the review is completed, including after payment; each change is recorded the same way, and the latest values are the final document (Nikhil's decision on #45).
REVIEW-V1-E4-03 Complete review
Size SHuman Review; composed by the DocFlow app
- AC1"Complete review" stays disabled until every flagged field is resolved.
- AC2On completion, the rule checks run again on the corrected data. If any still fail, I see which ones and can either fix them or confirm "Values are correct as on the document".
- AC3The document status becomes
reviewed, and I'm taken to results (E5).
REVIEW-V1-E4-04 Corrections feed the eval set
Size SHuman Review
- AC1Each human correction is saved as a candidate eval case (document reference, field, model value, human value) in
eval_candidates. - AC2Approved corrections stay in Review's database; they are never exported to files or to the repository (Nikhil's decision on #41: the repository is public and one user's data must never be seen by another). Reports built from them show aggregates only, never values. Evals that test new prompts use only the synthetic and licensed datasets in
evals/.
REVIEW-V1-E4-05 Eval candidates and accuracy for the admin as UI components (`ui-review`)
Size SHuman Review (`packages/ui-review`); parent story `REVIEW-V1-E4-04`Pending
**Status: built (#166), 23 Nov 2026,** in ui-review 0.2.0, against a stand-in client until the service is built; every state is live on the module's UI Components section. Added 22 Nov 2026 (Nikhil), when CORE-V1-E0-19 AC5 marked these components "Designed, not built yet".
As the owner, I want the admin's eval-candidate and accuracy screens built as Review's UI components, so I can approve real model mistakes as eval cases and see how accurate the fields are, inside the app.
- AC1
EvalCandidatesTable (corrections with both values, Approve and Reject) and AccuracyReport (per field, how often people corrected it and how well flagging caught it, as numbers only) are built as designed in docs/services/review/v1/UI-COMPONENTS.md. Neither exports or copies user data (Nikhil's privacy rule; decision on #41). - AC2Each component is built in
packages/ui-review on @01scale/ui-core, calls only its own service's API through the package's client, and has every state its design lists (loading, empty, failed and each data state). - AC3Each component is shown live, in each of its states, on its module's UI Components section, replacing "Designed, not built yet" (CORE-V1-E0-19 AC5).
- AC4Keyboard reachable, visible focus, labelled controls, WCAG AA contrast, usable at 320 pixels wide, in light and dark mode.
REVIEW-V1-E4-06 Hold a review task's fields for the app that started it
Size SHuman ReviewPending
**Status: designed (#178), 23 Nov 2026 (Nikhil's decision; docs/services/shared/v1/DECISIONS.md).**
As an app (DocFlow), I want the person to review only the flagged fields until my own condition is met, so the values read with high confidence cannot be read around my paywall.
- AC1
POST /api/review/v1/tasks accepts hold: true only with a delegated token; the acting app in act becomes held_by. Otherwise 422 hold_requires_app. - AC2While a task is held,
GET /tasks/{taskId} with the owner's own token or API key returns only the flagged fields, even with all=true, with held: true and fields_hidden; the holder gets every field. The owner may decide only flagged fields: an unflagged one answers 404 field_not_found. - AC3
POST /tasks/{taskId}/release lets only the holder release the task (403 not_holder, 409 not_held); safe to repeat; records review.task_released. After release, the owner sees and corrects every field (Nikhil's decision on #45 still holds). - AC4Review never learns why a task is held. Review's UI components work unchanged:
ReviewQueue shows what the API returns, and an app may also hide its "Show all fields" toggle with allowShowAll.
All Human Review V1 epics and stories on GitHub →