MARK GARASLEGAL AI & SOFTWARE

Legal ↔ Technical / Architecture map

CircleProof

One local reporting job keeps source records, financial schedules, draft checks and reviewer decisions together.

Workflow SVG ↓Project case study ↗

Current workflow review / 31 October 2026

All 713 tests passed on 31 October 2026. The 28-step guided synthetic journey completed source and schedule checks, review questions, a fixed handoff and a simulated receipt. Session checks now cover the older create and revise endpoints as well as newer routes. Exact software results are retained in the verification record.

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

Define the reporting job

The operator creates a reporting job. The app normalizes its period and selects a supported workflow for the evidence and decisions it needs.

Legal ↔ Technical
Legal purpose

Scope and applicability remain human judgments.

How it works

Closed route templates, canonical periods and revisioned jobs.

  • simulator/workbench/workspace/jobs.py:216create
  • simulator/workbench/workspace/periods.py:25_month_end
implemented

Preserve the evidence

Uploaded records and selected EDGAR documents retain their original bytes, origin and hash. Draft sections can then link to a specific source.

Legal ↔ Technical
Legal purpose

The operator supplies and authorizes the evidence scope.

How it works

Content-addressed blobs, source metadata and explicit attribution.

  • simulator/workbench/workspace/sources.py:56Sources
  • simulator/workbench/workspace/edgar.py:41Edgar

02Application & processing

implemented

Prepare financial support

The local engine prepares schedules within its supported scope and flags exceptions. Preparers can correct the records and request independent review.

Legal ↔ Technical
Legal purpose

Accounting treatment and required procedures remain with people.

How it works

PreparationStore receipts, source-linked schedules and dependency signatures.

  • simulator/workbench/preparation.py:138create
  • simulator/workbench/disclosure_preparation.py:106inspect_preparation
implemented

Check the draft

A check compares the draft with its selected source attribution. Reviewers receive a worklist of exceptions with the underlying evidence.

Legal ↔ Technical
Legal purpose

Located text and numeric comparison are distinct from semantic or legal support.

How it works

Subprocess kernel, typed findings and persisted reviewer dispositions.

  • simulator/workbench/workspace/tieout.py:91Tieout
  • circleproof/cli/engine.py:3602CheckEngine.run_check

03Review & decisions

implemented

Resolve questions and review

Each review question records an owner, supporting evidence and the version under review. A later change can reopen the affected decision.

Legal ↔ Technical
Legal purpose

Company and independent reviewer roles retain separate responsibilities.

How it works

Role-scoped actions, revisions, dependencies and hash-chained events.

  • simulator/workbench/workspace/actions.py:17apply_action
  • simulator/workbench/workspace/workflow.py:279compute
implemented

Record release evidence

Once required company work is resolved, the filing operator records the current authorization evidence. The company then decides whether to save the handoff within that scope.

Legal ↔ Technical
Legal purpose

Software readiness does not grant filing or professional issuance authority.

How it works

Server-derived readiness, actor-bound actions and current evidence basis.

  • simulator/workbench/disclosure.py:387_act_save_handoff
  • simulator/workbench/workspace/jobs.py:341act

04Records & handoff

implemented

Save and check the handoff

The saved handoff fixes the recipient scope and hashes its ZIP archive. Reviewers can check every saved archive before relying on the local files.

Legal ↔ Technical
Legal purpose

The archive excludes separate auditor work and does not certify release.

How it works

Scoped ZIP generation, hash-bound download and read-only archive verification.

  • simulator/workbench/workspace/jobs.py:133verify_handoffs
  • simulator/workbench/pages/handoff.js:243handoff-verify
implemented

Keep the external decision separate

People decide whether to release or file the materials outside the app. The built-in receipt exercise is explicitly a simulation.

Legal ↔ Technical
Legal purpose

A simulated receipt is not external acceptance.

How it works

Local simulation records; no filing transport.

  • simulator/workbench/disclosure.py:397_act_simulate_receipt
  • simulator/workbench/pages/handoff.js:118const SYNTHETIC
Read the connections as a list
  • Define the reporting job → Preserve the evidenceDefine scope
  • Preserve the evidence ⇢ Prepare financial supportNative records
  • Preserve the evidence ⇢ Check the draftAttributed sources
  • Prepare financial support ⇢ Check the draftSelected schedules
  • Check the draft → Resolve questions and reviewReview exceptions
  • Resolve questions and review → Record release evidenceResolve required work
  • Record release evidence → Save and check the handoffSave scoped files
  • Save and check the handoff → Keep the external decision separateHuman reliance decision
  • Resolve questions and review ⇢ Prepare financial supportCorrections and questions

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

Sign-in, Operators, Jobs and Overview

Name the local actor and organize the company reporting scope.

Interface / command
pages/operators.js; pages/job.js:recordAction
Call
POST /api/operators/bootstrap; /api/session/signin; /api/jobs; /api/jobs/{id}/actions; GET /workflow
Service / backend
workspace/routes.py:Router.dispatch; workspace/jobs.py:JobStore
Rules & validation
Scrypt local credentials, session cookies, closed action bodies, revision conflicts and server-derived owner/blocker state.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
workspace.sqlite3 operators, sessions, jobs and job_events
Review & permissions
Authenticated local operator; allowed role and distinct reviewer checks.
Output
Job, work plan and attributed decisions.
  • simulator/workbench/workspace/identity.py:38Identity
  • simulator/workbench/workspace/routes.py:30Router
  • simulator/workbench/pages/job.js:67recordAction
implemented

Sources, attribution and EDGAR import

Retain the source chosen for each disclosure section.

Interface / command
pages/sources.js
Call
GET/POST /api/jobs/{id}/sources; POST /api/edgar/lookup; /api/edgar/documents; /sources/edgar; /attribution
Service / backend
workspace/routes.py:register_sources; Sources; Edgar
Rules & validation
Pin original bytes and origin URL; allowlisted SEC URLs; validate attribution and source membership.
Model / provider
none
Prompt
none
Retrieval / sources
SEC submissions and accession documents through workspace/edgar.py; explicit user-triggered requests only.
Persistence
blobs/ and SQLite sources/attribution
Review & permissions
Signed-in operator attaches and confirms evidence.
Output
Reusable source records and attribution document.
  • simulator/workbench/workspace/routes.py:462register_sources
  • simulator/workbench/workspace/sources.py:56Sources
  • simulator/workbench/workspace/edgar.py:16allowed_url
implemented

Financial support and /prepare

Build and review scoped financial schedules, then select matching company/period support.

Interface / command
pages/support.js; preparation.js
Call
POST /api/preparations; /api/preparations/{id}/revise|event|time|inspect-pdf|recover-pdf|draft|select-draft
Service / backend
preparation.py:PreparationStore; disclosure_preparation.py:inspect_preparation
Rules & validation
Bounded native parsing; arithmetic schedules; receipt validation; dependency signatures; source/period matching; review and recovery records.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
preparations/{id}/ request.json, result.json, activity.json, receipt.json and exports
Review & permissions
Named review actions require a session; some retained legacy create/revise paths remain ungated.
Output
Schedules, exceptions, corrected draft and scoped company companion.
  • simulator/workbench/preparation.py:27PreparationStore
  • simulator/workbench/server.py:568do_POST
  • simulator/workbench/disclosure_preparation.py:106inspect_preparation
implemented

Draft vs sources and assure check/extract/clean

Locate draft assertions in attributed evidence and preserve uncertainty.

Interface / command
pages/checks.js; circleproof/cli/app.py
Call
POST /api/tieout/start; GET /api/tieout/{id}/result; POST /dispose; local assure CLI
Service / backend
workspace/tieout.py:Tieout; circleproof/cli/engine.py
Rules & validation
Subprocess check materializes exact source IDs and attribution, enforces resource bounds and orders exceptions before abstentions and located figures.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
tieout/{run_id}/ engine artifacts, status and dispositions
Review & permissions
Reviewer disposition is separate from deterministic wire status.
Output
Exceptions-first worklist with source locators.
  • simulator/workbench/workspace/tieout.py:91Tieout
  • circleproof/cli/app.py:36_SUBCOMMANDS
  • circleproof/cli/engine.py:3602CheckEngine.run_check
implemented

Draft vs schedules, /drafts and retained package APIs

Check draft figures against a selected schedule package.

Interface / command
packet.js; pages/checks.js
Call
POST /api/packages; /api/packages/{id}/revise|review|time; GET package exports
Service / backend
server.py:Handler.do_POST; preparation_delivery.py
Rules & validation
Bounded package creation, deterministic schedule comparison, review receipts and fixed exports; no semantic completeness claim.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Local package folders and source/preparation links
Review & permissions
Human chooses schedule and review scope; named review uses local identity.
Output
Package result, comparisons and download views.
  • simulator/workbench/server.py:648if path=="/api/packages"
  • simulator/workbench/preparation_delivery.py:21build_draft
implemented

Questions and request brief

Ask for missing evidence without implying that the application sent a message.

Interface / command
pages/questions.js
Call
GET /api/jobs/{id}/questions; /questions/brief; POST /actions
Service / backend
workspace/routes.py:register_questions; workspace/brief.py:request_brief
Rules & validation
Derive open/waiting/closed requests, upstream dependency currency and role-specific next actions.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Job action/event records; on-demand text brief
Review & permissions
Question owner and permitted respondent record work; original requester closes the request.
Output
Shared work queue and unsent downloadable brief.
  • simulator/workbench/workspace/routes.py:589register_questions
  • simulator/workbench/workspace/brief.py:88request_brief
  • simulator/workbench/workspace/workflow.py:321question_rows
implemented

Company handoff, archive downloads and integrity button

Retain a fixed company record and inspect whether saved bytes changed.

Interface / command
pages/handoff.js
Call
POST /actions save_handoff; GET /api/jobs/{id}/handoffs/{archive}.zip; /handoffs/verify; /events/verify
Service / backend
JobStore.download / verify_handoffs; Database.verify_chain
Rules & validation
Release evidence and current basis gate saving; each download/check hashes original archive bytes; missing and changed archives stay visible.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
jobs/{id}/handoff-{id}.zip; SQLite chain head and job_events
Review & permissions
Filing role records release; authenticated readers can check saved archives.
Output
Scoped handoff ZIP, per-archive check and separate simulated receipt.
  • simulator/workbench/workspace/jobs.py:133verify_handoffs
  • simulator/workbench/workspace/routes.py:214jobs_handoffs_verify
  • simulator/workbench/pages/handoff.js:243handoff-verify
config dependent

Optional attribution and question assistant

Offer clerical suggestions for operator confirmation.

Interface / command
pages/sources.js; pages/questions.js
Call
GET /api/assist/status; POST /api/jobs/{id}/assist/attribution|question
Service / backend
workspace/assist.py:Assist; routes.py:assist_attribution / assist_question
Rules & validation
Explicit content preview/consent; bounded tokens and daily budget; validate structured suggestions; no dependency into verdict kernel.
Model / provider
claude-sonnet-5 (configured constant in workspace/assist.py)
Prompt
workspace/assist.py:ATTRIBUTION_PROMPT and QUESTION_PROMPT
Retrieval / sources
No assistant retrieval; supplied source names and bounded previews only.
Persistence
assist_calls metadata; accepted suggestions become separately attributed job records
Review & permissions
Operator consents to egress and explicitly accepts suggestions.
Output
Attribution suggestion or question wording.
  • simulator/workbench/workspace/assist.py:13MODEL =
  • simulator/workbench/workspace/assist.py:37ATTRIBUTION_PROMPT =
  • simulator/workbench/workspace/routes.py:748assist_attribution
implemented

Guided run and document pack

Rehearse the reporting journey using synthetic data and visibly separate personas.

Interface / command
pages/guided.js; pages/job.js
Call
POST /api/guided-runs; /switch; /leave; GET /pack.zip
Service / backend
workspace/guided.py:GuidedRun
Rules & validation
Create ordinary guided jobs, constrain personas to guided work and preserve return to the original operator.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Guided job/persona rows and synthetic document pack
Review & permissions
A persona cannot sign in directly or change the operator roster.
Output
Guided job, steps and downloadable synthetic files.
  • simulator/workbench/workspace/guided.py:109GuidedRun
  • simulator/workbench/workspace/guided.py:276register_guided
  • simulator/workbench/workspace/jobs.py:72_persona_gate
unknown

Learn, earlier simulators and separate DAOS toolchain

Keep teaching simulations and experimental assurance separate from the reporting workspace.

Interface / command
learn.js; simulator/app.js; simulator/lookback/app.js; daos CLI
Call
GET /learn; /learn/archive; local daos rehearse|verify-export|gates|lint-claims|demo-manifest|operating-room-manifest and filer/workinggroup groups
Service / backend
server.py:Handler.do_GET; daos/cli.py
Rules & validation
Reporting workspace entry points and redirections were traced; the separate DAOS internal planes and older presentation handlers were inventoried but not fully retraced in this portfolio update.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Local research artifacts and simulated event logs
Review & permissions
Teaching choices are not professional or external approvals.
Output
Archive views, research gate reports and teaching catalogs.
  • simulator/workbench/server.py:331do_GET
  • daos/cli.py:42app =
Which parts of the app are mapped

Current connected reporting workspace traced through its page/API/service/storage groups; retained CLI and experimental surfaces separately inventoried. Counts are surface groups, not endpoint counts.

11 mapped3 partial0 unmapped
  • Jobs and overviewimplemented

    Creation, period preview, actions, archive/restore and workflow.

  • Sources and attributionimplemented

    Upload, source bytes and EDGAR lookups/import.

  • Financial support /prepareimplemented

    Creation, revisions, recovery, review and selected support.

  • Draft vs sourcesimplemented

    Kernel check, result, dispositions and previous-run carry-forward.

  • Draft vs schedules /draftsimplemented

    Packet creation, comparison and exports.

  • Questionsimplemented

    Shared requests and downloadable unsent brief.

  • Company handoffimplemented

    Readiness, saving, download, new integrity check and simulated receipt.

  • Sign-in and Operatorsimplemented

    Bootstrap, sign-in/out, local sessions and operator registry.

  • Guided runsimplemented

    Synthetic personas, pack and return to original session.

  • Retained legacy API mutationsimplemented

    Traced in server fallback; authentication gap explicitly retained.

  • assure check/extract/cleanimplemented

    Core CLI registration and checking integration traced.

  • Learn and earlier simulator viewsunknown

    Entry points inventoried; individual legacy visualization handlers not fully traced.

  • DAOS CLI groupsunknown

    Separate rehearse/filer/workinggroup and verification/catalog surfaces inventoried; internal planes not fully retraced.

  • DAOS HTTP teaching/disclosure surfacesunknown

    Separate project/disclosure HTTP tests and implementation exist; not represented as reporting-workspace functionality.

03 / Review and permissions

What needs to happen before the next step?

implemented

Named decisions and stale-state refusal

Current job actions read the local session, refuse self-declared actors, and reject stale revisions rather than silently overwriting later work.

Code references
  • simulator/workbench/workspace/routes.py:30Router
  • simulator/workbench/workspace/jobs.py:341act
implemented

Evidence and version binding

Source bytes are content-addressed; preparation receipts and dependency signatures connect reviews to the exact represented work.

Code references
  • simulator/workbench/workspace/sources.py:56Sources
  • simulator/workbench/preparation.py:39get
config dependent

Clerical AI is separate

The optional assistant uses explicit egress consent and a budget; deterministic check results do not depend on its suggestions.

Code references
  • simulator/workbench/workspace/assist.py:67Assist
  • simulator/workbench/workspace/tieout.py:91Tieout
implemented

Archive check is read-only

The new check hashes saved handoffs and reports individual failures without recording release, changing a job revision or returning any file bytes.

Code references
  • simulator/workbench/workspace/jobs.py:133verify_handoffs
  • simulator/workbench/workspace/routes.py:214jobs_handoffs_verify
unknown

Local trust limit

Some retained legacy mutation/read surfaces remain accessible outside the newer session router; local disk access also bypasses page sign-in. This is an open limitation.

Code references
  • simulator/workbench/server.py:568do_POST
  • README.md:93Sign-in gates the pages

04 / Completion work

What changed in this snapshot.

Implemented change

Saved handoff integrity check

Added an authenticated GET route, a read-only JobStore check and a Handoff button that reports each saved archive as intact or unavailable/changed. An empty set stays explicitly empty.

Downloads already check one archive; reviewers lacked a single visible check that names all missing or changed saved handoffs without changing release state.

Options considered
  • Extend authentication to every retained legacy endpoint.
  • Add an explicit check of saved handoff archives before reuse.
  • Add a new source-discovery provider.
Files changed
  • simulator/workbench/workspace/jobs.py
  • simulator/workbench/workspace/routes.py
  • simulator/workbench/pages/handoff.js
  • simulator/workbench/tests_py/test_jobs.py
  • simulator/workbench/tests_py/test_jobs_http.py
  • README.md

Validation

passed./.venv/bin/python -m pytest simulator/workbench/tests_py/test_jobs.py simulator/workbench/tests_py/test_jobs_http.py -q

17 passed; includes intact bytes, tampered archive, unchanged job revision, authenticated route and no-archive state.

passednode --test simulator/workbench/tests/job-page.test.cjs simulator/workbench/tests/handoff-section.test.cjs

43 existing helper tests passed using the bundled Node runtime.

passed./.venv/bin/python -m pytest simulator/workbench/tests_py -q

Full existing workbench suite: 687 passed in 473.74s (local synthetic data and ephemeral HTTP test servers). See circleproof-tests.log.

Scope of the tool

  • A located literal or numeric agreement is not a conclusion about truth, materiality, GAAP, completeness or legal sufficiency.
  • Company release, independent-engagement completion, scoped reviewer delivery and actual filing are separate decisions.
  • Local operator sign-in is not SSO, MFA, encryption or a complete confidentiality boundary; retained legacy API gaps remain.
  • The optional assistant drafts clerical suggestions and cannot determine or change check results.
  • No external filing or messaging connector is implemented.

Unfinished work and gaps in the map

  • The August architecture document says there is no web app/API/database; executable current code now has a local web workspace, SQLite storage and an optional assistant. This map follows the current code.
  • No current external-law or official-source completeness audit was performed; route templates are represented workflow defaults rather than legal determinations.
  • The new archive check detects inconsistency against the saved local record, not coordinated replacement of the record and archive.
  • Independent DAOS research and earlier simulator planes require separate full-depth audits before claiming complete monorepo coverage.
  • The local machine owner can replace a whole consistent workspace; no external signature or anchor is created.
  • Legacy create/revise APIs still have access-control gaps; this change does not imply they were repaired.
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.