Trace a patent investigation from a claim and its sources to the next search, the reviewer’s response and the saved decision history.
Decision supported
Support a defined next-investigation decision while keeping source qualification, legal significance and professional handling duties separate. Examiner mode remains a simulation.
Architecture baseline 2026-10-26Local source snapshot + local changesApplicant-side patent reviewer and counsel · Qualified reviewer using an examiner simulation
On 31 October 2026, 350 engine/API tests, 78 interface tests, and the interface build passed. An actual local-server walkthrough completed both simulation modes, exported the record, restarted with identical state, and verified backup/restore. A dated stage revision keeps the historical fixture reproducible without weakening expired-deadline checks.
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
Admit a scoped record
An authorized reviewer imports a public or synthetic bundle. Rights, ownership, digests and scope limits are checked before the exact local matter record is saved.
Legal ↔ Technical +
Legal purpose
Source permission and provenance precede interpretation.
How it works
Strict offline adapters admit only documented JSON formats and attachments into an independent store.
adapters/bundle.py:71prepare_bundle
02Application & processing
implemented
Connect claims and sources
The Sources view shows passages and open review gaps for the selected claim and stage. Source qualification is recorded against the appropriate revision.
Legal ↔ Technical +
Legal purpose
Technical disclosure, legal date/route and materiality remain distinct findings.
How it works
Typed records link claim revisions, passages, date evidence and assessments; imported human labels are demoted.
application.py:12_record
implemented
Plan the next investigation
A versioned deterministic policy evaluates the current inputs and proposes next actions within its scope. Planning gaps stay visible while the reviewer chooses a manual investigation.
Legal ↔ Technical +
Legal purpose
A recommendation concerns the current decision scope rather than universal search sufficiency.
How it works
Pure policy evaluation uses retained state and mode-specific contexts without model or provider execution.
application.py:290command
implemented
Reconstruct the decision trail
Opening a saved conclusion loads its exact original inputs and checks the supported replay. The explanation can show that original basis alongside later responses.
Legal ↔ Technical +
Legal purpose
Later evidence must not be silently substituted for the record underlying a historical decision.
How it works
Immutable snapshot reads and deterministic explanation distinguish current freshness from historical proposal.
application.py:183explanation
03Review & decisions
implemented
Perform work and record results
A person performs the authorized investigation outside the app. The Activity view records the work and whether results were empty, partial or unavailable for the next assessment.
Legal ↔ Technical +
Legal purpose
A provider failure or limited empty result must not become a claim of exhaustive search.
An authorized reviewer accepts, declines or overrides a proposal and records the reason and scope. Professional handling tasks remain open until separately addressed.
Legal ↔ Technical +
Legal purpose
Search recommendation, legal finding and handling completion have different decision rights.
How it works
Acceptance checks freshness; capabilities distinguish general editing, source review and materiality handling.
application.py:290command
04Records & handoff
implemented
Keep a complete draft handoff
The export includes recommendations, responses, manual search results and separate handling history. Another reviewer can follow the decision and the limits of its sources.
Legal ↔ Technical +
Legal purpose
Preserve accountability without claiming a completed legal or agency decision.
How it works
The updated Markdown renderer consumes the mode-projected envelope; JSON bundles retain all authorized records and available attachments.
exports.py:25render_export
implemented
Verify and recover locally
Verification and backup check saved snapshots and event replay. Local recovery preserves the evidence without exporting session tokens.
Legal ↔ Technical +
Legal purpose
Continuity requires a reconstructable record, not only a current screen.
How it works
CLI verify/backup/restore use the independent SQLite record store and content digests; restore requires new identity configuration.
__main__.py:10main
Read the connections as a list
Admit a scoped record → Connect claims and sourcesPermitted records
Connect claims and sources → Plan the next investigationReviewed scope
Plan the next investigation → Perform work and record resultsManual proposal
Perform work and record results → Respond and handle dutiesReasoned response
Respond and handle duties → Reconstruct the decision trailSaved basis
Reconstruct the decision trail → Keep a complete draft handoffDraft record
Keep a complete draft handoff → Verify and recover locallyLocal recovery
Perform work and record results → Plan the next investigationReevaluate observed results
Connect claims and sources ⇢ Reconstruct the decision trailExact immutable input snapshot
Respond and handle duties ⇢ Keep a complete draft handoffIndependent response history
02 / Implementation traces
Follow an action into the code.
8 grouped traces. The model and retrieval entries show which integrations run, which use local rules, and which are only configured.
implemented
Session, matter selector, example library and import
Admit only a permitted local matter and rights-scoped public/synthetic source record.
+
Interface / command
ui/src/App.tsx:App
Call
GET /api/session; GET /api/matters; GET /api/examples; POST /api/demo, /api/examples/{id}, /api/imports
Service / backend
application.py:import_bundle
Rules & validation
Exact tenant/matter/engagement grants, source-retention rights, attachment digests, strict formats and size limits are checked; imported professional assertions remain unverified.
Model / provider
none
Prompt
none
Retrieval / sources
None; JSON import and local attachments only. Public URLs are citations and are not fetched.
Persistence
Independent workbench.sqlite3, matters, snapshots, records, attachments and local content store.
Review & permissions
Local bearer token plus exact capability grants and rights checks; no administrator or wildcard bypass.
Output
A mode-specific matter envelope and retained import report.
Overview, stage/claim corrections and reasoned plan
Choose an investigation for the present claim, issue and decision stage without silently editing its past basis.
+
Interface / command
ui/src/DecisionPage.tsx:DecisionPage
Call
POST /api/matters/{id}/commands: record, planning_input, evaluate; GET /api/matters/{id}
Service / backend
application.py:command
Rules & validation
Versioned typed records retain supersession; server time drives validity; planning input revises the context and the deterministic policy produces a draft next-action recommendation.
Model / provider
none
Prompt
none
Retrieval / sources
None; authored planning inputs and retained evidence.
Persistence
Claim/context/issue/action/recommendation records and immutable snapshots.
Review & permissions
edit/evaluate capabilities; source findings and professional decisions remain separately authorized.
Retain what a source says and who reviewed its relation to a specific claim and legal route.
+
Interface / command
ui/src/EvidenceReview.tsx:EvidenceReview
Call
POST /api/matters/{id}/commands: source_excerpt or record; GET /api/matters/{id}/documents/{doc}/content
Service / backend
application.py:_record
Rules & validation
New document and exact passage are appended together; UTF-8 limits, locator/schema checks, source rights and evidence references are validated. Authenticated review metadata is set by the server.
Model / provider
none
Prompt
none
Retrieval / sources
None; manual public/synthetic excerpts do not fetch remote URLs or imply full-text availability.
Persistence
Documents, passages, date evidence/determinations, assessments and content-addressed attachments.
Review & permissions
Source review capability; legal materiality disposition is separately controlled; current rights are rechecked.
Distinguish planned work from actual observation, partial execution and unsuccessful access.
+
Interface / command
ui/src/Activity.tsx:ActionResultForm
Call
POST /api/matters/{id}/commands: action_result or record(actions)
Service / backend
application.py:command
Rules & validation
A successful result requires positive execution evidence; empty success requires observed zero and no known pagination gap. Partial/truncated results cannot assert completed execution.
Model / provider
none
Prompt
none
Retrieval / sources
None; the person performs the investigation externally and records it here.
Persistence
Action and ActionEvent records, source references, effort and result metadata.
Review & permissions
edit capability and explicit reviewer confirmation; the app does not perform the action.
Output
An auditable manual-result record that can inform a new evaluation.
Keep scoped search decisions separate from unresolved professional duties.
+
Interface / command
ui/src/HandlingQueue.tsx:HandlingQueue
Call
POST /api/matters/{id}/commands: dispose or record(obligation_dispositions)
Service / backend
application.py:command
Rules & validation
Stale/expired acceptance is refused; disposition claims/issues must be within the saved recommendation. Handling completion or scope exclusion requires evidence, and official agency action cannot be marked performed.
Model / provider
none
Prompt
none
Retrieval / sources
None; recorded authority and evidence references remain visible for professional review.
Persistence
RecommendationDisposition, Obligation and ObligationDisposition records.
Review & permissions
dispose capability for recommendation response; review/legal-handling capabilities for duty disposition.
Output
Reasoned accept/decline/override and an independent open/completed handling record.
Inspect the original basis of a historical proposal without treating later responses as its original reasoning.
+
Interface / command
ui/src/DecisionTrace.tsx:DecisionTrace
Call
GET /api/matters/{id}/recommendations/{recommendation_id}/explanation?mode=...
Service / backend
application.py:explanation
Rules & validation
Reads the exact based-on snapshot, verifies current access to historical rights and reconstructs checks only for supported reproducible versions. Missing/unsupported basis shows a limitation.
Model / provider
none; this is deterministic reconstruction, not recovered model reasoning
Prompt
none
Retrieval / sources
None; retained original evidence and current mode-scoped response records.
Persistence
Immutable snapshot plus recommendation and response history.
Review & permissions
Current matter and historical-retention rights are required; later grants cannot reveal unauthorized prior history.
Output
Four-step trace with source basis, checks, outcomes, current freshness and separate responses.
Make a portable record of recommendations, actual work and accountable human responses.
+
Interface / command
ui/src/ExportPreview.tsx:ExportPreview
Call
POST /api/matters/{id}/exports: markdown or bundle with expected_state_version and idempotency_key
Service / backend
exports.py:render_export
Rules & validation
Exports consume the authorized mode projection. Source display limits affect presentation only; new response/result sections retain scope, reason, execution limits, actor, timestamp and provenance. Markdown escapes untrusted text.
Model / provider
none
Prompt
none
Retrieval / sources
None; available permitted attachment bytes are read from the local content store.
Persistence
DisplayEvent, idempotent command result and returned Markdown/JSON artifact.
Review & permissions
export capability plus current rights and mode restrictions. A draft export does not certify legal sufficiency.
Output
Downloadable draft, full preview/copy fallback and authorized bundle.
ui/src/ExportPreview.tsx:5ExportPreview
exports.py:25render_export
application.py:22export
exports.py:17record_provenance
implemented
CLI init, serve, verify, backup and restore
Retain a private, independent and recoverable evidence record.
+
Interface / command
__main__.py:main
Call
Local CLI commands; serve binds to 127.0.0.1; verify/backup/restore call Repository methods.
Service / backend
storage/repositories.py:Repository
Rules & validation
Append-only triggers, canonical digests and replay checks protect integrity; mutations use compare-and-swap state versions and idempotency. Recovery omits old session identity.
Model / provider
none
Prompt
none
Retrieval / sources
None; runtime is offline. Dependency installation is a separate setup operation.
Persistence
Private SQLite database, content-addressed files, snapshot/event history and backup directory.
Review & permissions
Local filesystem permissions, no-follow path checks and explicit authorized identity grants after restore.
Output
Integrity result or local recovery copy; no off-device backup service.
__main__.py:10main
storage/repositories.py:52Repository
security.py:40private_directory
storage/content_store.py:17ContentStore
Which parts of the app are mapped
All four primary views and their reachable modal/action groups, session/examples/import controls, export preview and all five CLI commands are inventoried in eleven surface groups and eight detailed traces. Engine-internal research formulas are intentionally excluded; no external execution integration exists.
11 mapped0 partial0 unmapped
Session and matter selectorimplemented
Token admission, mode and exact matter grants.
Example library and importimplemented
Original synthetic fixture, technical/draft examples and three strict offline import adapters.
Overview and plan controlsimplemented
Decision stage, claim issues/alternatives, planning inputs, evaluate and response.
Sources and source reviewimplemented
Exact passages, attachments, date correction, source qualification and manual excerpt.
Tasksimplemented
Independent duty review and materiality handling.
Activityimplemented
Proposed actions, manual result form and retained counts.
Historical recommendation selection, exact snapshot and separate current responses.
Export and previewimplemented
Markdown/JSON, display limits, download and copy fallback.
Workflow guide and theme controlsimplemented
Client-side guide selection, navigation and persistent appearance; no completion action.
CLI init/serve/verify/backup/restoreimplemented
Independent local runtime, integrity and recovery operations.
03 / Review and permissions
What needs to happen before the next step?
implemented
Exact scope and capabilities
Every matter access resolves one tenant/matter/engagement grant; read Applicant and read Examiner are distinct capabilities, with edit/evaluate/dispose/review/export separately checked.
Code references
application.py:128locate
implemented
Source rights and provenance
Current user, expiry, retention and attachment digests are checked before admission/use. Imported approval labels cannot claim authenticated human provenance.
Code references
adapters/bundle.py:71prepare_bundle
implemented
Mode projection
Applicant commercial context and responses do not cross into the examiner projection; mode-specific plans/actions/results are filtered and business fields are scrubbed. The updated renderer uses this same projection.
Code references
application.py:65project_state
implemented
Freshness and independent duties
Claim/source/stage changes and supported policy/profile validity determine staleness. Accepting an expired recommendation is refused and does not clear handling duties.
The API client accepts only local /api paths and the server binds to loopback. Import adapters do not execute remote jobs; manual-result recording is separate from actual searching.
Code references
ui/src/api.ts:9WorkbenchApi
implemented
Atomic, append-only state
Compare-and-swap versions, command idempotency, immutable database triggers, digests and replay preserve prior records rather than overwriting corrections.
Code references
storage/repositories.py:52Repository
implemented
Browser and error boundary
Trusted loopback hosts, origin/body limits, restrictive response headers and redacted errors protect the local source-bearing workflow.
Code references
api/app.py:24RequestBoundary
implemented
Draft handoff integrity
Exported responses retain their own scope, origin/provenance and correction references. An imported assertion or historical acceptance is not silently presented as current professional approval.
Code references
exports.py:17record_provenance
implemented
Legal-profile seam
A versioned U.S. AIA utility profile identifies the legal context consumed by the deterministic policy. Supported version checks do not automatically update law or establish that a reviewer applied it correctly.
Complete the Markdown review handoff with scoped response and manual-result history.
Markdown export now includes recommendation responses with exact scope and rationale, manual results with execution evidence and source references, and separate handling responses. Actor, timestamp, origin, provenance and correction links remain visible. All sections consume the existing authorized mode projection and are independent of source display limits.
The interface already records recommendations, accept/decline/override responses, manual investigations and handling responses, but Markdown export omitted the latter three. A reviewer receiving that artifact could not follow the work through its recorded decision and result.
Options considered
Complete draft exports with human responses and manual results.
57 passed, including three new export tests covering manual empty-result evidence/counts, scoped human response, separate handling history, provenance, Markdown escaping, zero source display limit, mode isolation and explicit empty history.
349 passed, one existing broad workflow expectation failed at tests/test_workflow.py:21 before any export call: after source qualification the test expects claim 2 to continue/redirect. No policy/engine change was made. Two dependency deprecation warnings were emitted.
The identical failure was reproduced with the preserved pre-change export renderer substituted in memory. This read-only baseline check confirms the workflow expectation was not introduced by the export improvement; the source and private runtime were not reverted or rewritten.
Scope of the tool
The workbench makes no model calls, external searches, official filings or agency actions. Investigations are proposed and performed manually.
Applicant recommendations and examiner simulations use separate contexts and projections; business costs are removed from the examiner view.
Imported approvals are assertions until a currently authorized reviewer makes a new finding. Retained source dates are not automatically legal effective dates.
Planning examples and estimates are authored synthetic inputs; regression tests are not production or legal-quality validation.
Unfinished work and gaps in the map
No live search, model, filing, agency action or external provider is implemented or implied.
New source changes do not update the already installed wheel or private preview until it is rebuilt/reinstalled; existing runtime/identity were preserved.
One existing broad workflow regression fails before export is called: after source qualification it expects a claim-2 continue/redirect outcome. The new export/source/security tests pass; this policy expectation was not changed to make the suite green.
Legal profile/version checks and source reviews are workflow safeguards, not validation of substantive legal correctness or search completeness.
An unknown full-source or historical basis remains unknown; exact excerpts do not prove the full document was retained.
No Git metadata is available for this standalone folder; source baseline and changed-file evidence are recorded locally.
The pre-existing installed local wheel/preview must be rebuilt or reinstalled to consume edited source; this task does not change its private runtime or identity.
The workbench still records manual investigations and professional review; it does not execute searches or infer source completeness.
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.