A fresh synthetic replay reached a checksum-verified internal packet after issue dispositions and content-bound approval were simulated. Seven material issues remained traceable through the recorded process. The combined application suite exercises state transitions, content changes, ownership and packet integrity.
The map below describes its original snapshot. The note above covers later fixes and checks; older results below still belong to the earlier version.
01 / Workflow
How the work moves through the system.
Read from left to right. Open a step to see why it matters, how it works, and where to find the code.
Process or decisionEvidence or data exchange
01Documents & context
implemented
Save the draft
An authorized owner saves the draft with matter, court and jurisdiction details. Its text and hashes remain fixed so the review refers to that version.
Legal ↔ Technical +
Legal purpose
Preserve what the lawyer actually reviewed.
How it works
Owner-scoped draft API, original/normalized hashes and D1 persistence; local memory is explicitly labeled.
app/prefiling/page.tsx:168createDraft
app/api/v1/prefiling/drafts/route.ts:28POST
lib/prefiling/store.ts:153PrefilingDraftRecord
implemented
Resolve local evidence
The resolver uses a local synthetic collection of authorities, records and court rules. It retains each source’s identity, version and applicability information for review.
Legal ↔ Technical +
Legal purpose
Show where support came from and where coverage is unknown.
How it works
Local fixture lookup, source hashes and a material court-rule-coverage issue for an uncovered court.
lib/prefiling/tools.ts:421createPrefilingRegistry
lib/prefiling/fixtures.ts:32FIXTURE_AUTHORITIES
lib/prefiling/fixtures.ts:140FIXTURE_COURT_RULES
02Application & processing
implemented
Find review units
Deterministic tools split the draft into passages and identify supported citation, quotation, proposition, fact and record-reference patterns for checking.
Legal ↔ Technical +
Legal purpose
Turn specific draft text into reviewable issues without claiming exhaustive extraction.
How it works
Versioned workflow steps call ingest_draft and extract_review_units through an allowlisted registry.
Checks cover citations, quotations, pinpoints, jurisdiction and record support. A hashed packet brings the findings and limitations beside the relevant draft passages and sources.
Legal ↔ Technical +
Legal purpose
Keep issue flags distinct from the lawyer’s legal conclusions.
How it works
Deterministic comparisons and heuristic overlap signals feed an immutable packet with counts and lineage.
lib/prefiling/tools.ts:421createPrefilingRegistry
lib/prefiling/workflow.ts:211getAssembleOutput
app/prefiling/page.tsx:311sourceExcerpt
03Review & decisions
implemented
Decide each material issue
The lawyer records a decision and reason for each material finding. Unresolved, escalated or blocked issues, and corrections only promised, cannot silently pass the sealing check.
Legal ↔ Technical +
Legal purpose
A proposed fix requires a revised draft and a new review; accepting risk requires a recorded rationale.
How it works
Issue-keyed sequenced dispositions and computeSealBlockReasons feed the content-bound approval preview.
After material issues are resolved, the lawyer approves the displayed content digest. The engine rechecks the evidence and seals only if the approval and review state are still current.
Legal ↔ Technical +
Legal purpose
Record a decision about exact content rather than a blanket approval.
How it works
Workflow/tool version hashes, fenced execution and a guarded integrity transition bind the package to its evidence and human approval.
The completed packet is stored in an immutable envelope. Its human owner can download the exact bytes after current-seal, checksum and snapshot checks pass.
Legal ↔ Technical +
Legal purpose
Retain the review record inside the authorized matter workspace.
How it works
Export bytes live in reserved owner-scoped checkpoint storage; the new read-only route returns JSON with private no-store headers.
Draft id is in the workflow definition; tool definitions and inputs are hash-bound, allowlisted, validated and executed in dependency order with bounded retries/leases.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
workflow_runs, workflow_steps, workflow_attempts, checkpoints and audit events
Review & permissions
Owner-scoped run lookup; consequential seal step requires human content-bound approval.
Output
Per-step status, evidence and explicit failure/recovery state.
Regex-style extraction, fixture citation identity, quote/pinpoint/jurisdiction comparisons and record word-overlap heuristics produce issue flags; uncovered court rules generate an issue.
Model / provider
none
Prompt
none
Retrieval / sources
Deterministic local synthetic corpus only; resolve_authorities is the integration seam.
Persistence
Run evidence, attempt outputs and hashed assembled packet
Review & permissions
Lawyer reviews the original span and the cited source; no automated good-law conclusion.
Output
Issue matrix, source excerpts, court-rule applicability, limitations and coverage counts.
app/prefiling/page.tsx:311sourceExcerpt
lib/prefiling/workflow.ts:434buildRunView
lib/prefiling/tools.ts:176extractReviewUnits
lib/prefiling/tools.ts:354overlapRatio
lib/prefiling/fixtures.ts:32FIXTURE_AUTHORITIES
implemented
Finding decision form and decision history
Record a separate professional decision for each material issue.
Only a human principal may disposition. Decisions are keyed to issue id and ordered by committed sequence; accepted findings require a rationale. A corrected flag still blocks this unchanged draft.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
prefiling_dispositions plus committed run evidence
Review & permissions
Authenticated human owner; every material issue needs its own resolving decision.
Output
Reviewer, rationale, chronology and updated seal blockers.
Approves the digest shown in the preview, checks material issue resolution, binds evidence/tool/source state and commits seal or invalidation under one guarded boundary. Terminal runs reject user revocation.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
workflow_approvals, prefiling_packages and reserved integrity checkpoints
Review & permissions
Human owner must supply expectedBoundHash; service/worker identities cannot approve.
Output
Content-bound seal, approval history and stale-package state.
Export commits envelope bytes and checksum/index together. Download checks human owner, completed run, current seal/grant, exact hash/length, envelope identities and unchanged snapshot before returning the original JSON.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Reserved prefiling-export checkpoint and evidence_artifacts checksum index; existing D1 tables
Review & permissions
Current sealed package and granted human approval required; wrong owners receive no state details.
Output
Internal JSON envelope with packet, decisions, source commitments, workflow/tool identities, approval, seal and limitations.
Translates actual engine outcomes, refuses silent production-memory fallback, exposes explicitly allowed local memory and retains unknown-outcome/recovery states.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Run lifecycle, attempts and redacted audit events
Review & permissions
Owner authorization and engine state-transition rules; settled runs cannot be cancelled.
Output
Honest status, guarded retry and persistence warnings.
The /prefiling console and all eight grouped product route families, including the new download endpoint. The shared /agent and career dashboard are mapped in the Career Command Center companion.
GET /api/v1/prefiling/runs/[id]/downloadimplemented
Human-owner current-envelope retrieval.
03 / Review and permissions
What needs to happen before the next step?
implemented
Owner and human decision rights
Routes trust the platform-injected identity convention; stores independently filter owners. Human principals alone may approve, disposition or use the new download route.
Memory and D1 implementations use the same integrity snapshot contract so dispositions, revocation, seals, exports and completion cannot commit over stale approval-bound state.
The corpus is synthetic, currentness is not automatically refreshed, unknown court coverage creates a material issue, and exported limitations retain the absence of good-law checking, AI detection and filing capability.
Code references
lib/prefiling/fixtures.ts:140FIXTURE_COURT_RULES
lib/prefiling/tools.ts:63PACKET_LIMITATIONS
implemented
Persistence and no silent success
Production storage failure returns an error; export retrieval verifies saved bytes. Download repeats byte/currentness checks and sets private no-store headers.
The prefiling registry operates on local fixtures. A test counts zero fetch calls through ingest, seal, export and retrieval; this does not create a licensed legal research service.
Code references
lib/prefiling/tools.ts:45PREFILING_TOOL_NAMES
tests/domain/prefiling-export-envelope.test.ts:146the COMPLETE export flow reaches the network exactly zero times
04 / Completion work
What changed in this snapshot.
Implemented change
Authenticated, byte-verified owner download of the sealed internal review envelope.
Added a human-owner GET download route and console link. Retrieval verifies completed run state, the current sealed package and granted approval, exact checksum/length, envelope seal/approval identity, and an unchanged integrity snapshot across the read. It returns the original bytes with private no-store headers and never invokes a filing or delivery tool.
The prior workflow persisted and verified export bytes but only displayed a save receipt; the reviewer could not retrieve the retained package from the console.
Options considered
Connect a licensed citator and live standing-order sources.
Add a Word add-in with span annotations.
Complete owner retrieval of the already persisted internal package.
7 domain and 4 route tests cover exact bytes, owner isolation before integrity reads, stale/revoked/missing/corrupt state, a state change during retrieval, unfinished review, authentication, service refusal and unavailable production storage.
passednpm run test:unit
347 tests passed across the shared career/orchestrator/prefiling repository; baseline was 332 tests.
Vinext production build completed; route static-analysis classification warnings are framework notices.
passedgit diff --check
No whitespace errors; pre-existing dirty files remain intact.
failednode --test tests/rendered-html.test.mjs
Both rendered checks stopped before assertions because the existing local dev-preview startup did not complete within the harness window. Retried with local-port permission and CLOUDFLARE_CF_FETCH_ENABLED=false; no assertions or deadlines were weakened.
Scope of the tool
The shipped authorities, record pages and court rules are synthetic fixtures, not a current court-rules feed.
Extraction, citation checks and word-overlap support signals are deterministic heuristics; they are not exhaustive legal review.
No good-law/citator determination, AI-authorship detection, signature, certification, court filing or third-party delivery is implemented.
The signing lawyer decides what is accurate and appropriate; a sealed software record is not a filing certification.
Unfinished work and gaps in the map
No licensed citator, live court/judge standing-order source or general legal-entailment model is connected.
Extraction and support signals can miss issues or flag benign text; the signing lawyer must independently review the draft.
The platform must inject and protect identity headers; the repository does not implement its own identity provider.
D1 behavior has local SQL/contract tests; no production deployment or privileged matter trial was run.
The console has no React component-test infrastructure. New route/domain tests are automated; graphical app usability was not measured.
Owner identity relies on the hosting gateway enforcing its injected authentication header; upstream gateway enforcement was outside the bounded download review.
Real authority and court-rule integration still requires licensing, provenance and currentness controls.
The owner downloads an internal record; separate authorized human action is still needed for any external use.
A download is a snapshot at retrieval time; later changes cannot retroactively update a saved file.
Source references
U.S. Courts: Federal Rules of Civil Procedure ↗livingOfficial rules index verified 26 October 2026. Background for lawyer responsibility; this map does not state that synthetic court-rule fixtures are current law or that the app satisfies Rule 11.
Implementation snapshot
These maps explain the software, its sources, and who reviews the results. Local and synthetic tests do not establish legal accuracy or readiness for production. The technical traces identify configured integrations and unfinished paths.