Trace role research and application drafting, including what stays in the browser, what separate services handle and which external actions are not connected.
Decision supported
Help a law student prepare legal-technology applications while keeping unverified openings, credentials and project claims visibly unresolved.
Architecture baseline 2026-10-26Base b4a5713b + local changesLaw students and legal-technology candidates · Career and recruiting workflow reviewers
The local workflow now retains manual leads and append-only material versions with posting text, reviewed evidence references, and input/output file fingerprints. A fresh synthetic replay created a separate DOCX draft and reloaded its version record. All 355 unit and integration tests, lint, type checking and the production build passed. Browser review confirmed that a manual lead survives reload with verification still unresolved.
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
Collect role leads
Added roles and seed opportunities keep their source status and unresolved eligibility questions. A lead is not treated as a verified opening.
Legal ↔ Technical +
Legal purpose
Avoid unsupported job, timing and location assumptions.
How it works
Seed data and browser-state intake feed role views; a separate owner-scoped D1 opportunity API exists but is not called by dashboard intake.
app/command-center.tsx:324ImportDialog
app/command-center.tsx:350CommandCenter
app/api/v1/opportunities/route.ts:24POST
02Application & processing
implemented
Build a source brief
The server searches public pages and parses supported JobPosting data. The brief distinguishes extracted facts, inferences and missing evidence.
Legal ↔ Technical +
Legal purpose
Connect role claims to a retrievable source.
How it works
POST research-brief invokes bounded public search/page fetching and deterministic structured-data parsing; no LLM is used.
app/command-center.tsx:409fetchResearchBrief
lib/sources/research.ts:88researchOpportunity
lib/research-brief.ts:210assembleResearchBrief
implemented
Map requirements to projects
The pasted posting is checked for recognized criteria and catalog keywords. Unknown mandatory text and unsupported qualifications remain visible before drafting.
Legal ↔ Technical +
Legal purpose
Do not manufacture a credential or experience claim to match a posting.
The candidate checks the exact posting and missing facts against graduation, licensing, location and schedule constraints before deciding whether the role fits.
Legal ↔ Technical +
Legal purpose
Personal eligibility remains a decision requiring source and background review.
How it works
Brief confidence/source fields and deterministic classification support review; browser classification overrides remain local.
app/command-center.tsx:291DetailDrawer
lib/classification.ts:31classifyOpportunity
lib/research-brief.ts:210assembleResearchBrief
implemented
Review the draft wording
The workbench selects four existing project bullets. The candidate checks each statement against their actual work and supplied résumé before exporting a draft.
Legal ↔ Technical +
Legal purpose
The candidate owns the accuracy of application representations.
How it works
Manually maintained project wording is ranked by matched requirements; warnings distinguish keyword coverage from independent claim verification.
lib/resume-tailoring.ts:41resumeProjectEvidence
lib/resume-tailoring.ts:179analyzeResumeForRole
app/command-center.tsx:185MaterialsView
implemented
Inspect a bounded run
In the separate agent console, permitted local tools search, extract and compose under approval. The run records its result without sending an application.
Legal ↔ Technical +
Legal purpose
Separate a governed workflow demonstration from a live autonomous job agent.
How it works
Version-bound deterministic demo tools run over memory/D1 stores with content-bound approval, leases, evidence and audit records.
app/agent/page.tsx:45AgentConsole
lib/orchestrator/demo.ts:16buildDemoWorkflow
lib/orchestrator/engine.ts:484createEngine
04Records & handoff
implemented
Download a résumé copy
With a compatible DOCX master, the browser replaces the four designated project paragraphs and downloads a separate draft. The original file stays unchanged.
Legal ↔ Technical +
Legal purpose
Preserve source material and require visual/factual review before submission.
How it works
Client-side ZIP/XML replacement creates a new Blob; no upload, PDF rendering or submission occurs.
Researched or pasted posting text joins the local signal collection. The frontier view ranks possible project extensions so the candidate can choose an experiment and a test for it.
Legal ↔ Technical +
Legal purpose
Treat market demand signals as directional hypotheses.
How it works
Deterministic category scoring and source-document ids feed recommendations cached in localStorage.
lib/project-frontier.ts:166analyzeProjectFrontier
lib/project-frontier.ts:231upsertSignalDocuments
app/command-center.tsx:234ProjectFrontierView
Read the connections as a list
Collect role leads → Build a source briefResearch the lead
Build a source brief ⇢ Check fit and eligibilitySource-backed brief
Check fit and eligibility → Map requirements to projectsUse the reviewed posting
Map requirements to projects → Review the draft wordingRequirements and gaps
Review the draft wording → Download a résumé copySelect a compatible master
Build a source brief ⇢ Choose the next buildPosting signals
Collect role leads ⇢ Inspect a bounded runSeparate local-corpus demonstration
Inspect a bounded run ⇢ Review the draft wordingIllustrates approval/evidence controls
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
Today and Opportunities; role detail, search/filter and manual intake
Keep unverified opportunity leads distinct from a decision to apply.
Local React handlers; optional POST /api/v1/research-brief
Service / backend
Client-only role state initialized from data/seed-opportunities.ts
Rules & validation
Views filter and display seed records; intake requires an HTTPS URL without embedded credentials and adds an unverified local record; manual classification overrides change local state.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
React state; exact-link cache in localStorage
Review & permissions
Candidate reviews source status and eligibility; no application action exists.
Output
Research leads, fit explanations and a role drawer.
app/command-center.tsx:88TodayView
app/command-center.tsx:140OpportunitiesView
app/command-center.tsx:291DetailDrawer
app/command-center.tsx:324ImportDialog
stub
Remote, Gainesville, Network, Pipeline, Watchlist and Analytics views
Track work still needed without treating placeholder counts as verified outcomes.
Local handlers; networking research invokes the brief endpoint
Service / backend
Client-only display and local state
Rules & validation
Remote/Gainesville show no verified roles; pipeline stages are a display seeded from a few roles; watchlist edits are session-local and analytics mix displayed records with fixed summary values.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Seed arrays and React state; no durable pipeline/watchlist integration
Review & permissions
Candidate must verify eligibility and decide next action; no contact/send integration.
Output
Planning views and explicit empty/verification states.
app/command-center.tsx:172RemoteView
app/command-center.tsx:176GainesvilleView
app/command-center.tsx:167NetworkView
app/command-center.tsx:180PipelineView
app/command-center.tsx:272WatchlistView
app/command-center.tsx:279AnalyticsView
implemented
Resolve exact link, bulk resolution and Build research brief
Find a supported exact role URL and retain source status rather than promote a search result automatically.
Two public queries, deduplicated/ranked candidates, bounded page reads and JobPosting parsing compare company/title; only a confirmed exact match attaches a URL.
Model / provider
none
Prompt
none
Retrieval / sources
DuckDuckGo public HTML search and up to five ranked public posting pages; runtime network availability required.
Persistence
Returned brief in browser state; exact link and learned signals in localStorage
Review & permissions
Candidate must inspect sources; link confirmation does not reclassify remote eligibility.
Output
Source-linked facts, confidence labels, unknowns and optional exact-job URL.
app/command-center.tsx:409fetchResearchBrief
app/command-center.tsx:416attachExactLink
lib/sources/research.ts:88researchOpportunity
lib/research-brief.ts:210assembleResearchBrief
implemented
Materials: Analyze & draft four bullets; requirement map
Surface unsupported role criteria before drafting project language.
+
Interface / command
app/command-center.tsx:MaterialsView
Call
Direct analyzeResumeForRole(target, jobDescription)
Recognized phrases use token boundaries and strongest required/preferred priority; unsupported credentials/tools and unrecognized mandatory sentences are withheld as gaps; empty coverage is unassessed.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Manually maintained resumeProjectEvidence plus current browser input/output
Review & permissions
Human confirms project/credential facts; catalog matching is not independent verification.
Output
Source-text criteria, gaps, a disclosed heuristic and four catalogued bullet drafts.
Unzips DOCX in the browser, locates the expected Founder role and four numbered paragraphs, replaces text while retaining document structure and creates a new ZIP/Blob.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Browser File/ArrayBuffer/Blob only; no upload or persistent document service
Review & permissions
Candidate chooses the file, checks accuracy and renders the result before external use.
Output
New DOCX draft; no PDF/render pass or application submission.
Configured enabled sources run independently with timeout/error classification; normalized company/title/location fingerprints deduplicate postings. The route returns counts and a digest scaffold, not saved dashboard records.
Model / provider
none
Prompt
none
Retrieval / sources
Greenhouse boards-api, Lever postings API and Ashby posting-api; configured board tokens select organizations.
Persistence
Transient discovery results; configuration from JOB_SOURCE_CONFIG_JSON
Review & permissions
Platform identity or configured cron bearer; read-only source adapters.
Output
Per-source status, discovered count and digest placeholder groups.
app/api/v1/discovery-runs/route.ts:13POST
lib/sources/discovery.ts:42runDiscovery
lib/sources/adapters.ts:16GreenhouseAdapter
lib/sources/adapters.ts:46LeverAdapter
lib/sources/adapters.ts:76AshbyAdapter
implemented
/agent console; run collection/detail/actions APIs
Inspect evidence, approvals, recovery and audit state on a bounded local workflow.
+
Interface / command
app/agent/page.tsx:AgentConsole
Call
GET/POST /api/v1/workflow-runs; GET /api/v1/workflow-runs/[id]; POST …/[id]/actions
Allowlisted local corpus search/extraction, evidence-linked summary composition behind a content-bound human approval and result recording; leases/fencing/recovery/audit govern steps.
Model / provider
none
Prompt
none
Retrieval / sources
Local deterministic demo corpus; no public search/model in this workflow.
Persistence
MemoryRunStore in explicitly allowed local development or D1RunStore durable tables
Review & permissions
Owner lookup, explicit principal rules and exact expected approval hash; production refuses missing persistence.
Output
Local demonstration summary, evidence, checkpoints, approvals and audit.
Evidence checks validate referenced ids/status/confirmation and approval helpers enforce declared capability records, but the materials view uses its catalog path and no general document provider or outbound sender is implemented.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Declared schemas/interfaces; not a connected generation/submission service
Review & permissions
Future integration must enforce human approval and independently reviewed claim support.
Output
Contracts and domain helpers; no sent application or generated PDF.
lib/documents.ts:24DocumentProvider
lib/evidence.ts:9validateGeneratedClaims
lib/approval.ts:36requireApproval
Which parts of the app are mapped
Twelve groups cover all ten dashboard navigation views, detail/import actions, the three non-prefiling career APIs, the /agent console with its run APIs, and unconnected document/action contracts. Eight groups have complete implementation traces; four contain display-only or unconnected product portions. Pre-Filing routes are accounted for in their own companion.
8 mapped4 partial0 unmapped
Today / Opportunitiesimplemented
Local role display, search/filter, research and source indicators.
Remote / Gainesvillestub
Explicit empty verification states and configured-source placeholders.
Network / Pipelinestub
Research shortcuts and display stages; no contact sending or durable pipeline transitions.
Watchlist / Analyticsstub
Session-local edits and display metrics; no durable analytics pipeline.
Role drawer / manual intakeimplemented
Local details, overrides, research and unverified intake.
Materialsimplemented
Requirement analysis, catalog drafts and browser-local DOCX copy.
Project frontierimplemented
Pasted/researched signals and deterministic recommendations.
POST /api/v1/research-briefimplemented
Public-source research path; explicit owner check absent in handler.
GET/POST /api/v1/opportunitiesconfig dependent
Owner-scoped D1 collection, not connected to main dashboard intake.
POST /api/v1/discovery-runsconfig dependent
Read-only ATS adapters; route returns counts/digest scaffold rather than saved dashboard records.
/agent and workflow-run APIsimplemented
Bounded deterministic local-corpus workflow; memory/D1 storage is environment-dependent.
General document provider / outbound capabilitiesstub
Interfaces, domain helpers and schemas exist; no general provider, PDF rendering or sender is connected.
03 / Review and permissions
What needs to happen before the next step?
implemented
Source status and explicit uncertainty
Seed records retain unverified status. Briefs distinguish source-backed/inferred/needs-review fields; remote and personal eligibility are not inferred merely because a URL resolves.
Code references
data/seed-opportunities.ts:77seedOpportunities
lib/research-brief.ts:4ResearchConfidence
lib/classification.ts:31classifyOpportunity
implemented
Requirement abstention
No recognized requirements produce unassessed zero coverage. Unknown mandatory sentences and unsupported degree/bar/tool criteria remain visible, and the original posting must still be reviewed.
Code references
lib/resume-tailoring.ts:154parseRequirements
lib/resume-tailoring.ts:179analyzeResumeForRole
implemented
Source file preservation
Résumé export creates a new browser-local DOCX Blob and does not upload or overwrite the selected master; visual rendering remains a human step.
Code references
lib/resume-docx.ts:38buildTailoredResume
lib/documents.ts:29assertSourceImmutability
implemented
URL and untrusted-content boundary
Public URL validation rejects prohibited literal destinations, while text isolation strips active content. Redirect/DNS-level egress enforcement is not established by these helpers.
Code references
lib/security.ts:10validatePublicHttpUrl
lib/security.ts:30isolateUntrustedText
lib/sources/research.ts:74fetchPage
implemented
Bounded execution and decision rights
The agent subsystem uses typed allowlisted tools, evidence commitments, content-bound approvals, leases/fencing and redacted audit records. Its implemented workflow is a local demonstration.
Code references
lib/orchestrator/engine.ts:484createEngine
lib/orchestrator/demo.ts:16buildDemoWorkflow
lib/orchestrator/canonical.ts:142canonicalJson
config dependent
Deployment boundary
D1 APIs depend on the platform identity/storage setup. The research-brief route has input bounds but no explicit owner check in its handler; platform access policy and rate limits require deployment review.
Requirement matching that retains mandatory gaps and abstains when requirements are unknown.
Added token-boundary matching, strongest-priority selection across repeated mentions, common unsupported tool/degree/license terms, original-text fallback for unrecognized mandatory sentences, and zero/unassessed coverage without extracted criteria. The UI now shows the requirement source text and describes selected bullets as catalog drafts rather than independently verified output.
Substring matching could read REST inside interest or RAG inside paragraphs; the first mention of a skill could hide a later mandatory requirement, and empty requirements received a positive default score.
Options considered
Build full dashboard-to-D1 persistence for all records.
Connect a generated-document provider and rendering service.
Correct the requirement parser and make missing qualifications reviewable.
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
Seed opportunities are research leads. Link resolution does not by itself establish remote eligibility, current availability or personal qualification.
Matching is deterministic and uses a manually maintained project catalog; it is not an employer ATS score or independent verification of a résumé claim.
The main dashboard uses browser state and selected localStorage caches; it is not fully wired to the durable opportunity API.
No connected model provider, outbound application submission or messaging service is implemented.
Unfinished work and gaps in the map
Dashboard data entry, watchlists, pipeline movement and most analytics are not connected to durable D1 services.
Live configured source calls were not run; adapter tests use controlled responses and must not be described as current posting verification.
The project catalog includes historical manually supplied wording; it is not a live evidence registry and should be reconciled before application use.
No model/provider, general document generation/rendering, external sending, application submission or message delivery is connected.
Unknown mandatory criteria sharing a sentence with known skills can evade the small vocabulary; a person must check the original posting.
The public research fetch path requires deployment-level authentication, rate-limit and egress review; URL helpers do not establish DNS/redirect isolation.
The vocabulary remains limited; mandatory qualifications sharing a sentence with a recognized skill still need manual review.
A keyword match cannot prove years of experience, degree completion, bar status or truth of the catalog wording.
The four-entry project catalog includes historical user-brief entries that should be reconfirmed before application use.
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.