MARK GARASLEGAL AI & SOFTWARE

Legal ↔ Technical / Architecture map

Aperture Bridge

Follow an invention disclosure from the first source checks through technology-transfer review, prior-art research and a saved package for counsel.

Workflow SVG ↓Project case study ↗

Current workflow review / 31 October 2026

On 31 October 2026, 126 backend and 19 interface tests passed, alongside the production build. A synthetic disclosure reached a checksummed counsel handoff; a second send, unauthorized preflight, and stale-source paths were refused. The review card now shows retained source passages beside reference lookups.

Read the updated case study ↗Current verification record ↓
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

Disclosure and permissions

The app checks access to the matter and saves the disclosure version. Later work stays linked to that source.

Legal ↔ Technical
Legal purpose

Preserve the disclosed facts, authorship context and permitted matter access.

How it works

Role-aware React pages call guarded document APIs; revisions and classification are persisted.

  • backend/app/api/documents.py:53upload_document

02Application & processing

implemented

Check source anchoring

The institution supplies separate verification files. The app checks their integrity and confirms that they refer to the exact source before the TTO authorizes the disclosure workflow.

Legal ↔ Technical
Legal purpose

A source-support check is distinct from legal sufficiency and external disclosure permission.

How it works

Challenge, canonical digests, trusted public keys and source-revision bindings authenticate uploaded artifacts.

  • backend/app/api/matter_verification.py:54upload_verification_record
config dependent

Prepare disclosure review

The authorized run prepares the source and organizes questions about its support. Researchers and TTO staff can correct facts in the Disclosure Readiness Packet.

Legal ↔ Technical
Legal purpose

Separate disclosure completeness and support questions from the prior-art inquiry.

How it works

A dedicated readiness pipeline excludes prior-art retrieval and produces versioned DRP material.

  • backend/app/services/disclosure_readiness_pipeline.py:20run_disclosure_readiness_analysis
config dependent

Investigate prior art

A TTO-authorized search uses configured providers to retrieve references and their origins. The pipeline organizes claim-related evidence for review; retrieval itself does not answer the legal question.

Legal ↔ Technical
Legal purpose

Reference relevance, dates and legal use need review at the claimed subject matter level.

How it works

Egress-controlled provider assembly, retrieval, deduplication, ranking and structured analysis retain search coverage and gaps.

  • backend/app/services/prior_art_search_service.py:379assemble_search_providers

03Review & decisions

implemented

Review claims and evidence

The TTO reviews draft claim concepts and audit findings. Its recorded decisions and the current artifact links determine what can enter the counsel package.

Legal ↔ Technical
Legal purpose

Human reviewers choose claim strategy and resolve consequential issues before handoff.

How it works

Claim concepts, compiled architecture and audit revisions remain separate versioned artifacts with explicit decisions.

  • backend/app/api/claim_audit.py:370record_claim_audit_decision
implemented

Curate and check handoff

After the TTO selects the contents, preflight checks the sources and required responses. Any blocking reason appears before the reviewer confirms the recipient.

Legal ↔ Technical
Legal purpose

Only selected material should cross the TTO-to-counsel boundary.

How it works

A read-only preflight calls the existing shared send-readiness evaluator; final send checks again under a matter lock.

  • backend/app/api/patent_packages.py:2016get_package_send_readiness

04Records & handoff

implemented

Lock the counsel record

An authorized TTO handoff locks a checksummed version of the selected package. Counsel can review that exact record and return a response with reasons.

Legal ↔ Technical
Legal purpose

The record identifies what counsel received; counsel retains the legal decision.

How it works

Snapshot checksums, package versions, counsel decisions and successor work items preserve the response cycle.

  • backend/app/api/patent_packages.py:2087send_to_counsel
implemented

Track follow-up work

Counsel’s response and follow-up work are saved separately. The TTO can prepare a revision while the sent package remains unchanged.

Legal ↔ Technical
Legal purpose

Maintain a traceable instruction, response and revision history.

How it works

Counsel work-item lineage, deliverable checksums and role-scoped timeline views record subsequent work.

  • backend/app/api/counsel_deliverables.py:46submit_deliverable
Read the connections as a list
  • Disclosure and permissions → Check source anchoringRetained source
  • Check source anchoring → Prepare disclosure reviewVerified artifact record
  • Prepare disclosure review → Investigate prior artAuthorized search decision
  • Investigate prior art → Review claims and evidenceReview evidence
  • Review claims and evidence → Curate and check handoffSelected content
  • Curate and check handoff → Lock the counsel recordConfirmed handoff
  • Lock the counsel record → Track follow-up workCounsel response
  • Disclosure and permissions ⇢ Investigate prior artExact source revision and classification
  • Investigate prior art ⇢ Curate and check handoffReferences, coverage and currentness
  • Track follow-up work → Review claims and evidenceReopen or revise

02 / Implementation traces

Follow an action into the code.

10 grouped traces. The model and retrieval entries show which integrations run, which use local rules, and which are only configured.

implemented

Identity, matter list, dashboard and intake

Assign work to the correct researcher, TTO and counsel, preserving classification and source revisions.

Interface / command
frontend-react/src/pages/SourceMaterialsPage.tsx:SourceMaterialsPage
Call
POST /api/auth/login; GET/POST /api/projects; POST /api/projects/{id}/documents; GET /api/matters/{id}/dashboard
Service / backend
backend/app/api/documents.py:upload_document
Rules & validation
Upload size/type checks and extraction precede revision storage; matter stage changes require an authorized mover.
Model / provider
none for upload; analysis is a separate operation
Prompt
none for upload
Retrieval / sources
none for upload
Persistence
projects, documents, document_revisions, users, tokens and matter workflow state
Review & permissions
Permission dependencies and require_matter_access; TTO/researcher role-specific screens.
Output
Retained source document, classification and role-appropriate matter queue.
  • frontend-react/src/pages/SourceMaterialsPage.tsx:13SourceMaterialsPage
  • backend/app/api/documents.py:53upload_document
  • backend/app/core/auth.py:330require_matter_access
  • frontend-react/src/App.tsx:110RoleHome
  • backend/app/api/matters.py:57router
implemented

Source verification and Disclosure Wand access

Show whether uploaded source-anchoring proof matches current disclosure revisions without conflating it with search permission.

Interface / command
frontend-react/src/pages/VerificationPage.tsx:VerificationPage
Call
POST /api/matters/{id}/verification-challenge; POST /verification-records; GET /verification-records/latest; POST /disclosure-wand-access/unlock (under the same matter prefix)
Service / backend
backend/app/api/matter_verification.py:upload_verification_record
Rules & validation
Validate canonical artifacts, digests, signed challenge, trusted keys and one-to-one revision binding; stale or unverifiable proof cannot support Wand unlock.
Model / provider
none
Prompt
none
Retrieval / sources
No provider; the separate kit is an offline artifact producer.
Persistence
Verification challenge, verification record, retained proof bundle, Wand authorization and search-decision history.
Review & permissions
TTO writes; permitted researcher/TTO reads; source quality and egress authorization remain separate.
Output
Readable verification status, proof export and explicit recorded authorization.
  • frontend-react/src/pages/VerificationPage.tsx:134VerificationPage
  • backend/app/api/matter_verification.py:54upload_verification_record
  • backend/app/services/verification_source_binding.py:13compute_source_binding
config dependent

Disclosure readiness, questions and researcher submission

Structure disclosure facts and support issues for researcher correction and TTO intake.

Interface / command
frontend-react/src/pages/DisclosureWandPage.tsx:DisclosureWandPage
Call
POST /api/projects/{id}/disclosure-readiness-runs; POST /api/matters/{id}/disclosure-readiness; POST /send-to-tto; DRP section/review/note APIs and inquiry lifecycle.
Service / backend
backend/app/services/disclosure_readiness_pipeline.py:run_disclosure_readiness_analysis
Rules & validation
Readiness-only orchestration excludes prior-art search and §§102/103; source support, questions, section edits and review statuses retain their provenance.
Model / provider
RUNTIME-CONFIGURED settings.CLAUDE_MODEL; default claude-sonnet-4-6 via anthropic_provider.claude_structured
Prompt
backend/app/prompts/document_normalization_prompts.py; disclosure_readiness_prompts.py; researcher_questionnaire_prompts.py
Retrieval / sources
No prior-art retrieval on the researcher readiness pipeline.
Persistence
Analysis report, DisclosureReadinessPacket, inquiries and section review/audit state.
Review & permissions
Wand access authorization, permission and matter checks; human submission/review rather than AI stage advancement.
Output
Draft disclosure packet, questions, section notes and a TTO submission record.
  • frontend-react/src/pages/DisclosureWandPage.tsx:30DisclosureWandPage
  • backend/app/services/disclosure_readiness_pipeline.py:20run_disclosure_readiness_analysis
  • backend/app/api/disclosure_packets.py:135generate_drp
  • backend/app/services/document_normalization_service.py:8normalize_document
config dependent

Prior-art search, reference review and search timeline

Investigate claim-related sources and record the limits of the search before interpreting novelty or combinations.

Interface / command
frontend-react/src/pages/PriorArtPage.tsx:PriorArtPage
Call
POST /api/projects/{id}/analyses; POST /api/matters/{id}/prior-art/run-searches; analysis progress/read APIs.
Service / backend
backend/app/services/analysis_pipeline.py:run_single_document_analysis
Rules & validation
Provider assembly applies egress decisions and feature gates; references are deduplicated/enriched and ranked with query provenance, coverage and fail-soft provider status.
Model / provider
settings.CLAUDE_MODEL default claude-sonnet-4-6; settings.EMBEDDING_MODEL default voyage-3; optional local/Vertex embedding configuration.
Prompt
backend/app/prompts/prior_art_query_prompts.py; search_focus_prompts.py; comparison_prompts.py
Retrieval / sources
USPTO adapter; flag/credential-dependent Lens, EPO, OpenAlex/PubMed and cost-guarded BigQuery patents. WIPO remains a stub.
Persistence
AnalysisReport, prior-art search runs/results, reference evidence, embeddings and provider cache.
Review & permissions
TTO RUN_ANALYSIS and matter scope; persisted classification controls permitted egress.
Output
Ranked candidate references, search coverage and draft comparison evidence.
  • frontend-react/src/pages/PriorArtPage.tsx:50PriorArtPage
  • backend/app/services/analysis_pipeline.py:6run_single_document_analysis
  • backend/app/services/prior_art_search_service.py:379assemble_search_providers
  • backend/app/core/config.py:43CLAUDE_MODEL
config dependent

Statutory findings and source-linked drafting

Help counsel inspect separate eligibility, disclosure, novelty and obviousness questions without presenting a ranking as the legal answer.

Interface / command
frontend-react/src/pages/StatutoryPage.tsx:StatutoryPage
Call
GET /api/analyses/{id}; POST /api/analyses/{id}/provisional-draft and the corresponding draft read endpoint.
Service / backend
backend/app/services/statutory_analysis_service.py:run_section_101
Rules & validation
Structured statutory sections retain claim/concept distinctions; draft paragraphs and limitations are bound to evidence units before authorized persistence.
Model / provider
RUNTIME-CONFIGURED settings.CLAUDE_MODEL; default claude-sonnet-4-6
Prompt
backend/app/prompts/statutory_analysis_prompts.py and provisional_drafting_prompts.py:PROVISIONAL_DRAFT_SYSTEM
Retrieval / sources
Uses retained analysis/source evidence; prior-art retrieval belongs to the separately authorized analysis pipeline.
Persistence
Statutory sections in AnalysisReport and versioned provisional draft artifacts.
Review & permissions
TTO-authorized analysis; counsel reviews legal meaning and any filing use. Experimental modules remain flag-gated.
Output
Draft statutory issues and evidence-linked provisional text, expressly not a filing.
  • frontend-react/src/pages/StatutoryPage.tsx:608StatutoryPage
  • backend/app/services/statutory_analysis_service.py:9run_section_101
  • backend/app/services/provisional_drafting_service.py:217draft_provisional
  • backend/app/api/provisional_drafting.py:215generate_provisional_draft
config dependent

Claim concepts and claim audit

Preserve claim-strategy alternatives, source support and reviewer decisions as distinct artifacts.

Interface / command
frontend-react/src/pages/ClaimAuditPage.tsx:ClaimAuditPage
Call
POST /api/matters/{id}/claim-concepts; POST /claim-audit/compile; POST /claim-audit/revisions/{revision}/decisions; selection/finalization and export APIs.
Service / backend
backend/app/api/claim_audit.py:compile_matter_claims
Rules & validation
Compile current selected strategy into a versioned architecture, audit supported findings, retain explicit reviewer decisions and refuse stale or unready package inputs.
Model / provider
Claim-concept generation uses settings.CLAUDE_MODEL; compiled architecture/review summary logic is deterministic.
Prompt
backend/app/prompts/claim_concept_prompts.py:CLAIM_CONCEPT_SYSTEM
Retrieval / sources
Retained disclosure, analysis evidence and optional permitted feedback/patent example context.
Persistence
ClaimConceptSet, ClaimArchitectureSnapshot, ClaimAuditRevision and review decisions.
Review & permissions
TTO selection and reasoned human audit decisions; the app does not amend filed claims.
Output
Draft concepts, compiled architecture, current issue review and a selected strategy record.
  • frontend-react/src/pages/ClaimAuditPage.tsx:132ClaimAuditPage
  • backend/app/api/claim_audit.py:92compile_matter_claims
  • backend/app/api/claim_concepts.py:402finalize_selection
  • backend/app/services/claim_audit_workbench_service.py:53review_summary
implemented

Package curation, handoff, counsel review and returned work

Send only selected content and preserve the exact counsel record through review and successor revisions.

Interface / command
frontend-react/src/pages/HandoffPage.tsx:PackageHandoffCard
Call
POST /api/matters/{id}/packages; GET /api/packages/{id}/send-readiness; POST /send-to-counsel; POST /new-version; counsel decision/work-item/deliverable APIs.
Service / backend
backend/app/api/patent_packages.py:get_package_send_readiness
Rules & validation
Shared source/currentness and required-response checks run before send; final send reacquires the matter lock, checks again, seals a checksum and records a snapshot. Counsel decisions select successor lineage.
Model / provider
none for preflight, curation, checksums or send
Prompt
none for preflight and handoff
Retrieval / sources
No email or official filing provider is invoked by send-to-counsel.
Persistence
PatentAnalysisPackage, package versions/reviews, counsel work items, counsel deliverables and instructions.
Review & permissions
SEND_TO_COUNSEL plus matter access; counsel can read the locked selected package; final legal judgment remains with counsel.
Output
A locked counsel package, version history, structured decision and traceable successor work.
  • frontend-react/src/pages/HandoffPage.tsx:38PackageHandoffCard
  • backend/app/api/patent_packages.py:2016get_package_send_readiness
  • backend/app/api/patent_packages.py:2087send_to_counsel
  • backend/app/services/patent_analysis_package_builder.py:213seal_package_checksum
  • frontend-react/src/pages/CounselPackagePage.tsx:470CounselPackagePage
flag gated

Federal grants, disposition, grant drafts and capital planning

Keep funding evidence, ownership/disposition workflow and draft funding material visible alongside the invention matter.

Interface / command
frontend-react/src/pages/GrantsPage.tsx:GrantsPage
Call
Grant CRUD/discovery; /api/matters/{id}/grant-links, /funding-determination, /disposition, /grant-draft and /capital-plan families.
Service / backend
backend/app/api/grants.py:confirm_link
Rules & validation
Flags gate grant features; explicit link confirmation and disposition records remain separate from candidate discovery. Capital planning uses declared benchmark assumptions.
Model / provider
Grant drafts may use settings.CLAUDE_MODEL; confirmation/disposition and capital calculations are deterministic.
Prompt
backend/app/prompts/grant_draft_prompts.py:GRANT_DRAFT_SYSTEM and build_section_user_prompt
Retrieval / sources
Configured grant-discovery adapters; program catalog and retained source matter. Live provider behavior was not exercised.
Persistence
GrantRecord, MatterGrantLink, GrantApplicationDraft and GrantCapitalPlan.
Review & permissions
Role/permission and matter scope; human confirmation, source review and disposition are required.
Output
Funding links, disposition status, draft grant sections and an assumption-based capital plan.
  • frontend-react/src/pages/GrantsPage.tsx:70GrantsPage
  • backend/app/api/grants.py:186confirm_link
  • backend/app/api/grant_drafts.py:34router
  • backend/app/api/grant_capital.py:54create_capital_plan
flag gated

Portfolio analytics and adoption playbooks

Inspect workflow throughput and review client-specific adoption controls without turning metrics into legal quality claims.

Interface / command
frontend-react/src/pages/AdoptionPlaybookPage.tsx:AdoptionPlaybookPage
Call
GET /api/analytics/portfolio; adoption-playbook config/compile/rule/confirmation/checkpoint/diff/audit APIs.
Service / backend
backend/app/api/adoption_playbooks.py:compile_playbook
Rules & validation
Versioned playbooks distinguish extraction, confirmation, checkpoint decisions, findings and withdrawal; portfolio analytics aggregate recorded workflow state.
Model / provider
Analytics: none; optional playbook rule extraction is configuration-dependent.
Prompt
Optional rule-extraction prompt seam is not exhaustively traced in this grouped audit.
Retrieval / sources
Retained workflow records and configured client playbook inputs; no external provider was exercised.
Persistence
Playbook configs/versions, findings, confirmations, checkpoint decisions and aggregate query results.
Review & permissions
Institution/role scoping and explicit human confirmation/approve/reject/withdraw decisions.
Output
A versioned implementation playbook, audit/diff and portfolio summary.
  • frontend-react/src/pages/AdoptionPlaybookPage.tsx:1044AdoptionPlaybookPage
  • backend/app/api/adoption_playbooks.py:195compile_playbook
  • backend/app/api/portfolio_analytics.py:31get_portfolio_analytics
implemented

Users, invitations, audit and status timeline

Make accountable actors, matter membership and changes visible without exposing raw source text in operational logs.

Interface / command
frontend-react/src/pages/AdminUsersPage.tsx:AdminUsersPage
Call
/api/auth/config, /login, /logout, /me, /accept-invite; admin users/invitations/audit; /api/matters/{id}/status-timeline; security-audit verify.
Service / backend
backend/app/core/auth.py:get_current_user
Rules & validation
Server sessions, expiry, revocation, permission checks and participant/institution checks govern access; a hash-linked security audit can be verified.
Model / provider
none
Prompt
none
Retrieval / sources
Invitation acceptance is a local link flow; enterprise SSO is not implemented.
Persistence
Users, tokens, invitations, participants, auth audit events, security_audit_log and matter timeline projections.
Review & permissions
REQUIRE_AUTH is configuration-dependent and OFF by default; demo roles never substitute for production identity.
Output
Account administration, activity history and integrity-check results.
  • frontend-react/src/pages/AdminUsersPage.tsx:2AdminUsersPage
  • backend/app/core/auth.py:5get_current_user
  • backend/app/services/security_audit_chain.py:5verify_chain
  • backend/app/api/matter_timeline.py:21router
Which parts of the app are mapped

All 29 explicit React route entries, including the not-found fallback, are inventoried and grouped into ten implementation traces. Five ancillary grant/adoption routes are partial at integration/prompt depth. Conditional providers and embedded provisional/counsel surfaces are identified; standalone research, the separate kit CLI and every backend-only experimental operation are outside this frontend-focused map.

24 mapped5 partial0 unmapped
  • /loginimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /accept-inviteimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /forbiddenimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /implemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterIdimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/materialsimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/readinessimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/wandimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/questionsimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/verificationimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/statusimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/prior-artimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/search-timelineimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/statutoryimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/claim-auditimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/claim-conceptsimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/packageimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/counsel-instructionsimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/handoffimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /matters/:matterId/grantsunknown

    Partial: top-level API/storage/human gate verified; optional provider/prompt branches not exhaustively audited.

  • /matters/:matterId/grants-dispositionunknown

    Partial: top-level API/storage/human gate verified; optional provider/prompt branches not exhaustively audited.

  • /matters/:matterId/grant-draftunknown

    Partial: top-level API/storage/human gate verified; optional provider/prompt branches not exhaustively audited.

  • /matters/:matterId/capital-planunknown

    Partial: top-level API/storage/human gate verified; optional provider/prompt branches not exhaustively audited.

  • /matters/:matterId/auditimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /settings/outside-counsel-templateimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /admin/usersimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /portfolioimplemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

  • /adoption-playbooksunknown

    Partial: top-level API/storage/human gate verified; optional provider/prompt branches not exhaustively audited.

  • *implemented

    Accounted for in the grouped traces and role-aware router; conditional execution remains explicitly labeled.

03 / Review and permissions

What needs to happen before the next step?

config dependent

Matter and role boundaries

Server-side permissions and matter access supplement the route-level React gates. Production identity requires REQUIRE_AUTH; the default local demo role is not production authentication.

Code references
  • backend/app/core/auth.py:330require_matter_access
config dependent

Confidentiality and egress

Persisted matter classification and per-seam policy determine refusal, local processing or external access. Provider flags and credentials are separate requirements; a retrieved source is not a legal conclusion.

Code references
  • backend/app/services/egress_controller.py:13resolve_egress
implemented

Source identity and proof

Exact document revisions and canonical signed artifact digests bind verification proof to the matter. Only trusted public keys are consumed by the app.

Code references
  • backend/app/api/matter_verification.py:54upload_verification_record
implemented

Handoff preflight and final gate

The new read-only preflight explains current workflow readiness; send-time checks run again under the existing matter lock and preserve source/currentness and required-response constraints.

Code references
  • backend/app/api/patent_packages.py:2016get_package_send_readiness
implemented

Immutable selected record

A counsel send seals the selected package checksum and creates a version snapshot. Subsequent changes use successor drafts and linked work items.

Code references
  • backend/app/services/patent_analysis_package_builder.py:213seal_package_checksum
implemented

Traceable activity

The security audit chain serializes appends and verifies linkage. Operational audit is distinct from proof that a legal finding is correct.

Code references
  • backend/app/services/security_audit_chain.py:5verify_chain
fail soft

Provider failure visibility

Provider search contracts fail softly so one failed integration need not abort every source. Coverage and missing-source limitations must remain visible to the reviewer.

Code references
  • backend/app/services/prior_art_search_service.py:379assemble_search_providers
config dependent

Legal-authority seam

Statutory prompt modules structure U.S. patent questions and select claim/concept variants. The mapped pipeline is not a live legal-authority updating service; counsel must check current law, dates and governing authority.

Code references
  • backend/app/services/statutory_analysis_service.py:9run_section_101

04 / Completion work

What changed in this snapshot.

Implemented change

A permission-scoped handoff preflight with a visible blocking reason and refresh.

Added GET /api/packages/{package_id}/send-readiness with SEND_TO_COUNSEL permission and matter access. The handoff page checks this endpoint, shows its reason, supports refresh and keeps send unavailable on a failed or blocked preflight. The send mutation still revalidates under the matter workflow lock and a failed send refreshes readiness.

The existing authoritative send gate already checks current sources and required counsel responses, but the handoff screen previously exposed those failures only after an attempted send. Surfacing the same gate completes the review-to-handoff path without adding speculative scoring or external delivery.

Options considered
  • Show package send-readiness before an attempted handoff.
  • Add a new counsel notification delivery provider.
  • Expand experimental patent-analysis scoring.
Files changed
  • backend/app/api/patent_packages.py
  • frontend-react/src/pages/HandoffPage.tsx
  • frontend-react/src/test/HandoffPreflight.test.tsx
  • tests/test_workflow_api_e2e.py

Validation

passed[task workspace]/work/architecture-audit/aperture-test-runtime/bin/python -m pytest tests/test_workflow_api_e2e.py tests/test_package_revision.py tests/test_matter_access.py -q

55 passed. Includes preflight readiness, non-mutation, researcher refusal, missing package, locked snapshot and existing revision/matter-isolation checks. Runtime was isolated in the task because this checkout lacks its documented .venv. No live provider/model calls.

passedPATH='[local path]'"$PATH" npm run test -- src/test/HandoffPreflight.test.tsx src/test/PackageRecuration.test.tsx src/test/CounselWorkItemsPanel.test.tsx src/test/CounselPackageDecision.test.tsx

16 tests across four files passed, including two new tests for blocked/failing preflight and refresh recovery.

passedPATH='[local path]'"$PATH" npm run build

TypeScript no-emit checking and Vite production build passed. The existing locked frontend dependencies were installed; no manifest or lockfile changes.

passedgit diff --check

No whitespace errors. The original dirty working tree was preserved and no commit/push/deployment was performed. Full repository Python suite was not run; checks target the handoff/revision/matter-access change.

Scope of the tool

  • Disclosure readiness, reference relevance and generated statutory findings are separate forms of decision support; none is a patentability or allowance opinion.
  • The standalone source-anchoring kit exchanges signed artifacts with the app; it is not imported or executed by the app.
  • Provider availability depends on credentials, enabled flags and egress policy. This audit made no external AI or prior-art requests.
  • This is an implemented local prototype with synthetic regression evidence, not a validated university deployment.

Unfinished work and gaps in the map

  • No external-provider, model-quality or production deployment validation was performed.
  • No live updating of governing legal authority is established by the mapped statutory prompt pipeline. Counsel must verify authority/currentness and distinguish bibliographic dates from a legally effective date.
  • WIPO is a stub; credentials alone do not make an optional provider active. Enterprise SSO and production multi-tenancy are not inferred from demo mode.
  • Grant discovery and playbook extraction have verified entry points but optional provider/prompt internals are only partially mapped in this portfolio audit.
  • Experimental patent-analysis branches are intentionally summarized without proprietary algorithms; neither research scores nor synthetic tests establish patentability.
  • The separate Source-Anchoring Verification Kit is mapped at its artifact boundary, not audited as an embedded app feature.
  • Existing dirty changes were preserved; maps describe the working tree after the bounded handoff improvement, not a clean release.
  • Preflight is a point-in-time workflow check; a later source change can still block the final send.
  • No email, document-management or official filing operation was added. The existing send operation records and locks the counsel snapshot.

Source references

USPTO MPEP §2161 — specification requirements ↗ living officialAccessed 26 October 2026. Context for separating disclosure support questions; no automated legal sufficiency claim.

USPTO MPEP §2141 — obviousness examination guidelines ↗ living officialAccessed 26 October 2026. Context for preserving human review of prior-art and combination reasoning; app architecture is established by code.

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.