Parhelion Agent: SOTA document reclassification for simulations

Rafit Jamil
Soft atmospheric 22-degree ice halo, diffused sun pillar, and twin glowing mock suns in grainy Prussian-twilight mist.

Real workflows in law, healthcare, finance, and enterprise operations rarely run on clean database rows. They run on case folders—fillable forms, Word letters, email threads, portal receipts, and scanned paperwork collected over months or years. When teams build simulated worlds to evaluate or train long-horizon agents on this work, they almost never have permission to place raw customer files inside a model loop.

Standard privacy shortcuts break down quickly as models get sharper. Painting black [REDACTED] bars over names and dates hides the exact cross-document clues an agent needs to do the job, while generating fresh documents from templates produces files that look unnaturally tidy. Frontier models inspect every page: when dates fall out of sequence, weekdays disagree with the calendar, placeholder emails like example.invalid appear, or crisp computer text sits on top of a grainy scan, an agent can tell right away that it is inside a test—inviting evaluation awareness and shortcutting during reinforcement learning.

In atmospheric optics, a parhelion is a bright mock sun refracted beside the real sun through ice mist, matching its brilliance closely enough to pass at a glance. We built Parhelion Agent to do the same for sensitive case files: transforming real multi-document folders into self-consistent synthetic twins that hold up under close visual and contextual scrutiny.

Why Redaction Breaks

Reclassifying an existing case folder is harder than redacting single documents or inventing a synthetic case from a blank page. Across a real file, one client’s names, birth dates, employers, schools, addresses, and reference numbers echo across dozens of linked documents. Updating a surname on page one while leaving the old name in a page-ten header, a barcode, an attachment filename, or a forwarded email thread immediately exposes the edit.

Even when every fact agrees across the folder, editing real files introduces a physical side-by-side tell. An untouched form or scan has consistent typography, spacing, and page wear from top to bottom. When an automated script erases just the identifying fields—or rebuilds a structured form from scratch as a flat PDF—unchanged sections and edited fields no longer match. Anyone comparing two versions, or any frontier model reading the page closely, can spot where the document was touched.

How Parhelion Works

Rather than rewriting files in isolation, Parhelion Agent starts by building one folder-wide replacement plan. Every person, employer, institution, address, email domain, and reference number maps to a realistic replacement persona—using natural domains and consistent household details rather than placeholder strings—and every date on the timeline shifts by the same offset so intervals, deadlines, and calendar weekdays stay aligned across every document.

Worker agents then edit each document in its native medium instead of flattening the folder into uniform PDFs. Interactive forms retain their structured field trees; Word correspondence keeps its original styling and natural line wrapping; portal captures match surrounding rendering weight; and hybrid letters regenerate matching barcode artwork alongside updated identifiers. Before release, automated checks scan text layers, metadata, and rendered pages for residual source details alongside an internal blind review that flags visual seams for cleanup.

Results

We sent all 154 files of a real multi-document case folder unfiltered through Harbor to Parhelion Agent and three coding-agent harnesses—Antigravity (Gemini 4 Carbon), Codex (GPT-6.2 Astra), and Claude Code (Opus 4.8)—spanning interactive forms, Word correspondence, hybrid PDFs, portal captures, and multi-page scans. A high-reasoning blind LLM judge inspected each source document and its reclassified twin side by side in randomized order, scoring a run as a pass only when it was unsure which file was authentic or chose the synthetic twin as real.

On the matched common denominator of K = 68 documents where every system produced a valid, changed output, Parhelion Agent passed the blind judge on 36.8% (25/68) of files overall—led by 76.2% on interactive forms, 41.7% on Word documents, and 100.0% on portal captures—compared with 27.9% (19/68) for Antigravity, 7.4% (5/68) for Codex, and 5.9% (4/68) for Claude Code. Parhelion Agent and Codex produced valid reclassified outputs on all 154 / 154 files (22.1% vs. 3.2% pass rate across the full corpus), whereas Claude Code completed 113 / 154 and Antigravity completed 83 / 154 before refusals and single-pass timeouts.

Blind Judge Pass Rate

Pass rate (%)

Document category

Parhelion AgentAntigravity (Gemini 4 Carbon)Codex (GPT-6.2 Astra)Claude Code (Opus 4.8)
Blind Judge Pass Rate: Pass rate (%)
Document categoryParhelion AgentAntigravity (Gemini 4 Carbon)Codex (GPT-6.2 Astra)Claude Code (Opus 4.8)
Overall36.76%27.94%7.35%5.88%
Forms76.19%57.14%4.76%9.52%
Word Docs41.67%33.33%33.33%8.33%
Hybrid PDFs10%10%0%5%
Portal Captures100%0%0%0%
Scans & Records7.14%7.14%0%0%
Figure 1. Share of reclassified documents that passed a high-reasoning blind LLM judge alongside the original source document on the matched four-system intersection (K = 68, from 154 unfiltered case files).

Reclassified records

Select any of the five case records below to compare the original document alongside each system’s reclassified output.

Original
Rendering PDF…
Parhelion Agent
Rendering PDF…
Antigravity (Carbon)
Rendering PDF…
Codex (GPT-6.2 Astra)
Rendering PDF…
Claude Code (Opus 4.8)
Rendering PDF…
Figure 2. Original source files alongside reclassified outputs from each system.

Aggregating blind-judge feedback across document formats highlights the recurring failure modes that expose general-purpose coding agents—from synthetic vector signatures and cross-page calendar mismatches to rebuilt form tables, patch seams, and flattened UI captures. Select an issue below to compare each zoomed region side by side.

Parhelion Agent
Parhelion Agent — Handwritten Signatures
Claude Code (Opus 4.8)
Claude Code (Opus 4.8) — Handwritten Signatures

Coding agents synthesize signatures with procedural vector loops that collide directly with printed names below the line. Parhelion generates natural cursive ink matched to the replacement signer and seats it cleanly in the signature space.

Figure 3. Zoomed side-by-side and cross-page document crops comparing Parhelion Agent against baseline coding agents across key failure modes.

Conclusion

Across interactive forms, Word correspondence, and portal captures, folder-wide planning and native-format editing already produce synthetic twins that a high-reasoning blind judge cannot reliably separate from real source files. Multi-page paper scans remain the hardest frontier, where subtle character-width and toner-grain differences still give a close reader a trail to follow.

Paired with ORBIT’s trajectory fidelity measures, document reclassification closes a practical gap in building simulated worlds: turning real historical case folders into realistic evaluation and training environments without teaching capable agents to spot—and exploit—the seams of a synthetic test.

Building long-horizon agents?Let's chat.

Book a demo