Add Ranjan2113/doctask-ranjan-jamnis-review-eval — a human review-cost evaluation harness for AI-proposed edits - #46
Open
Ranjan2113 wants to merge 2 commits into
Conversation
Human review-cost evaluation: measures how people review AI-proposed document edits across four presentation conditions (batch vs sequential, crossed with section-diff vs whole-document-diff). Corpus generated from the live SuperDocs API via POST /v1/chat/async with approval_mode "ask_every_time", job polling, and HITL pending_changes capture. 9 operations against a 15 cap stated in advance, $0 free tier. N = 1 pilot. The reviewer used a single verdict throughout, so accuracy and Fleiss' kappa are suppressed in the report rather than printed, with the reason stated: neither is a measurement at this sample. What the work delivers is a validated harness a real panel could run at zero additional SuperDocs cost, plus documented findings about the API. 176 tests (152 Python, 24 frontend), none requiring an API key or network. No secrets committed; SuperDocs job UUIDs replaced with placeholders.
Ranjan2113
added a commit
to Ranjan2113/doctask-ranjan-jamnis-review-eval
that referenced
this pull request
Aug 16, 2026
Measures how the presentation of AI-proposed edits changes human review: decision time, inter-reviewer agreement and error rate against a pre-registered answer key, across batch vs sequential presentation crossed with section-diff vs whole-document-diff. Mirrors the content submitted as superdocsapp/superdocs-builds#46, at the same use-cases/Ranjan2113/ path. N=1 pilot: the report suppresses accuracy and Fleiss' kappa rather than printing numbers a single rater cannot support. Two instrumentation failures (intent-derived labels, render-time batch timer) are documented in PROGRESS.md and PROTOCOL.md. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The suite grew after the figure was written. Verified by running it: 152 passed (Python), 24 passed (frontend). REPORT.md regenerated from RECOMMENDATION.md via analyze.py; raw_timings.csv came out byte-identical. Co-Authored-By: Claude Opus 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.
Ranjan Jamnis
A measurement harness that tests how the presentation of AI-proposed document edits changes human review — decision time, inter-reviewer agreement, and error rate against a pre-registered answer key — across four conditions: batch vs sequential presentation, crossed with section-diff vs whole-document-diff.
Folder:
use-cases/Ranjan2113/doctask-ranjan-jamnis-review-eval/What's in it
A corpus builder that freezes a reproducible set of proposed edits from the SuperDocs API, a FastAPI backend that serves batches and records timestamped decision events, a React reviewer UI implementing all four conditions off one shared timer hook, and an analysis script computing Fleiss' κ, decision-time distributions and accuracy against ground truth.
176 tests (152 Python, 24 frontend). None require an API key or network access — the SuperDocs client is mocked, so the whole suite runs offline.
SuperDocs features used
POST /v1/chat/asyncwithapproval_mode: "ask_every_time"GET /v1/jobs/{job_id}polling through the job lifecyclemetadata.pending_changescapture, used to freeze the corpus without ever applying an editBudget: 9 operations against a 15-operation cap declared before any call. $0 — free tier. Every call prints its running total, and the client raises before dispatch rather than after overspending.
On the results — read this before the numbers
This is an N=1 pilot and it does not rank the four conditions. The sole reviewer returned a single verdict throughout, so accuracy and Fleiss' κ are suppressed in the report rather than printed — at this sample neither is a measurement, and the report says so above the numbers, not in a footnote. No panel was recruited; that is the stated next step, and the harness runs a real panel at zero additional SuperDocs cost.
Two instrumentation failures, documented rather than buried
old_html/new_html.Both would have yielded quotable, wrong numbers. They're written up in
PROGRESS.md,GROUND_TRUTH_SAFETY.mdand as dated amendments to the pre-registeredPROTOCOL.md.Findings about the API worth keeping
Explanations become generic when edits are batched; changes arrive chunk-level rather than intent-level, so one instruction can fan out into several; no-op edits get proposed and need filtering; section references by title succeed where "Clause N" returns nothing; and the model declined to delete a protective clause when asked to.
Built for the SuperDocs task. No secrets in the tree —
.envis gitignored, and job UUIDs in the published study data are redacted to stable placeholders.