Follow a regulatory passage through interpretation review and deterministic control tests. A separate financial-close workflow has its own evidence and export checks.
Decision supported
Show counsel and operations how the recorded authority and assumptions lead to specific tests. The resulting evidence does not establish general compliance.
Architecture baseline 2026-10-26Base a26f5772 + local changesFinancial regulatory counsel · Operations and compliance · Controllers · Authorized reviewers
All 1,606 repository tests passed on 31 October 2026, including the workbench, filing and export paths. An explicitly historical synthetic replay matched all eight scenario expectations and verified its event chain. It made no model calls and involved no professional review; ordinary current-date acceptance still refuses the expired source review.
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
Pin the source and its status
The workbench saves passage IDs, dates, jurisdiction and source status. An interpretation can cite that text without presenting a proposed rule as final law.
Legal ↔ Technical +
Legal purpose
Authority status, scope and currentness require review.
How it works
Typed source bundles and versioned immutable records.
cee/workbench/models.py:35Source
cee/workbench/service.py:131import_sources
implemented
Describe the operating question
Operations supplies a public or synthetic business context. The workbench checks the task, assumptions and questions so counsel can see which facts and choices the proposed test relies on.
Legal ↔ Technical +
Legal purpose
A factual assumption is not a legal rule.
How it works
Closed Context schema and domain control contracts.
cee/workbench/models.py:81Context
cee/workbench/catalog.py:78prompt_context
02Application & processing
implemented
Prepare a contestable proposal
An optional model operating within defined limits, or an explicit manual worksheet, drafts source-linked claims and test cases. A reviewer can challenge the interpretation before execution.
Legal ↔ Technical +
Legal purpose
Exact quotations do not establish correct legal meaning.
How it works
Structured Proposal schema, zero-tool model request and quote/control validation.
cee/workbench/service.py:333prepare
cee/workbench/provider.py:45OpenAITransport
cee/workbench/service.py:23SYSTEM =
implemented
Run the conditional tests
Deterministic controls run every supplied scenario for the current accepted revision. Missing facts and out-of-scope conditions remain visible beside expected and actual results.
Legal ↔ Technical +
Legal purpose
A scenario result is conditional on the represented legal reading and facts.
How it works
Typed facts, Decimal/time/calendar calculations and persisted run bindings.
cee/workbench/service.py:497run_tests
cee/workbench/controls.py:434calculate
implemented
Prepare the separate financial evidence
Separate close commands process the supplied finance records. Deterministic streams reconcile supply and reserves, check supported limits and service rules, and prepare evidence for supported reporting fields.
Legal ↔ Technical +
Legal purpose
Financial arithmetic and a supported subset do not establish complete regulatory compliance.
Counsel reviews claims, exceptions and expected test results. Authenticated review and acceptance are separate records tied to the current proposal, sources and control implementation.
Legal ↔ Technical +
Legal purpose
A role preview or research-session Yes is not canonical professional approval.
How it works
Role authorization, substantive checklist, revision hashes and source-age gate.
cee/workbench/service.py:451review_proposal
cee/workbench/service.py:256_active
cee/review/identity.py:451require_current_role
implemented
Satisfy the packet gates
Authorized reviewers must resolve evidence and source-change blockers first. A credentialed exporter can then request a sealed packet whose manifest identifies the exporter, authority context and included files.
Legal ↔ Technical +
Legal purpose
Workbench reports alone do not satisfy the separate packet gates.
How it works
Role checks, current reviews, stale-evidence refusal, hashes and standalone verifier.
cee/cli.py:424run_export
cee/export/packet.py:179build_packet
tools/verify_packet.py:195verify_packet
04Records & handoff
implemented
Inspect and verify saved work
An authenticated reader can inspect the saved report and verify its records and calculations. This does not call a model, accept stale sources or change review state.
Legal ↔ Technical +
Legal purpose
Historical inspection does not renew authority currentness.
How it works
New read-only saved-case verification and fingerprint-aware deterministic replay.
Counsel, officers and independent reviewers inspect the materials within their own responsibilities. Any actual payment, certification or regulatory submission happens outside this repository.
Legal ↔ Technical +
Legal purpose
Internal preparation and simulated approvals do not grant external authority.
How it works
No payment or submission connector; teaching transcripts remain simulated.
README.md:12No automatic licensing
cee/demo/workflow.py:12SIMULATION_NOTICE
Read the connections as a list
Pin the source and its status ⇢ Describe the operating questionVersioned passages
Describe the operating question → Prepare a contestable proposalPrepare proposal
Prepare a contestable proposal → Review the exact revisionChallenge and revise
Review the exact revision → Run the conditional testsAccept exact revision
Run the conditional tests ⇢ Inspect and verify saved workRetain linked results
Pin the source and its status ⇢ Prepare the separate financial evidenceSeparate authority library
Prepare the separate financial evidence → Satisfy the packet gatesResolve canonical blockers
Satisfy the packet gates → Leave consequential action with peopleScoped reliance decision
Inspect and verify saved work → Leave consequential action with peopleResearch inspection only
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
Workbench catalog, examples, import-sources and intake
Set a bounded legal-operational question and preserve source status.
+
Interface / command
cee/workbench/cli.py:add_parser; ui/intake-ui.js
Call
workbench catalog|examples|import-sources; POST /api/action preview_intake
Typed deterministic controls use explicit business calendars, Decimal amounts and unknown/out-of-scope states; verification checks local chain/content/run links and compares saved results only under the same control fingerprint.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
wb_run, wb_proposal, wb_sources, wb_decision and append-only event chain
Review & permissions
Execution requires current acceptance; verification requires read permission and leaves state unchanged.
Output
Conditional scenario results, source-linked HTML/JSON reports and new verification result.
cee/workbench/service.py:497run_tests
cee/workbench/service.py:606verify_saved_case
cee/workbench/controls.py:434calculate
cee/workbench/report.py:7render_html
implemented
Browser examples and hypothesis comparison lab
Explore alternative readings while keeping an amendment or assumption visibly experimental.
+
Interface / command
ui/lab.js; ui/intake-state.js
Call
POST /api/action preview_calculate|preview_compare|preview_intake
Configured official-source fetching, byte hash comparison and change flags propagate to dependent requirements/controls/evidence; legal status is not inferred from a fetched document.
Model / provider
none
Prompt
none
Retrieval / sources
Configured authority/ingestion/sources.yaml endpoints through bounded ingestion fetch transport.
Persistence
Sources, versioned authority/requirement/evidence records, source-change flags and event log
Review & permissions
Operator invokes network scan; counsel must dispose interpretive/source changes.
Output
Change report, stale dependencies and blocking cadence evidence.
cee/cli.py:1013_run_authority_scan
cee/authority/ingestion/scan.py:134change_scan
cee/authority/staleness.py:243propagate_staleness
implemented
Financial ingest, daily/weekly/monthly close and supported-field filing dossier
Prepare repeatable financial and reporting evidence from represented records.
Demo choices create illustrative transcripts; repayment commands calculate proposals over synthetic scenarios and never pay anyone; dashboard is a local report. Core public entry points were inventoried, but every ancillary branch was not fully retraced.
Model / provider
none
Prompt
none
Retrieval / sources
none
Persistence
Synthetic in-memory/browser state or explicitly selected local research outputs
Review & permissions
Simulated approval is not canonical approval; repayment output retains legal_review none.
Output
Teaching catalogs, scenario comparisons, synthetic feeds and static dashboard.
cee/demo/workflow.py:12SIMULATION_NOTICE
cee/repayment/cli.py:29add_parser
cee/synth/cli.py:17build_parser
tools/dashboard.py:28main
Which parts of the app are mapped
Core workbench, canonical close/authority/export commands and research-session UI traced by surface group. Separate teaching, repayment and auxiliary generation/reporting commands are inventoried with explicit partial depth.
Separate sealed-packet gate path and standalone verifier.
Local authentication/session controlsimplemented
Host/origin/CSRF, current role and credential verification.
Operating-room teaching pagesunknown
Catalog and simulation boundary inspected; all 13 teaching phases not individually traced.
Repayment researchunknown
Replay/compare CLI inventoried and boundary inspected; every ledger/policy branch not retraced.
Synthetic generation and static dashboardunknown
Entry points inventoried; auxiliary output transformations not fully audited.
03 / Review and permissions
What needs to happen before the next step?
implemented
Source age remains a live gate
Acceptance/execution checks source and control versions and rejects a checked_on date outside the allowed window. The October baseline failures are preserved rather than relabeled as fresh source verification.
Code references
cee/workbench/service.py:256_active
implemented
Only typed, versioned tests execute
Accepted claims, facts and expectations bind to one proposal/source/control version; unsupported interpretations cannot silently run under a different fixed calculation.
Code references
cee/workbench/service.py:163validation
cee/workbench/service.py:497run_tests
config dependent
Provider egress is bounded
The core provider sends a structured zero-tool request to its fixed Responses endpoint with no redirect or automatic paid retry. Live research uses an explicit ephemeral session adapter with disabled tool/web capabilities.
Code references
cee/workbench/provider.py:45OpenAITransport
cee/workbench/session_model.py:78settings =
implemented
Current local roles govern saved decisions
Argon2-backed credential verification and current-role checks protect canonical review/export; preview role selection does not create an authenticated identity.
Code references
cee/review/identity.py:376verify_identity
cee/workbench/service.py:79authorize
cee/workbench/web.py:151guarded
implemented
Saved-case verification does not approve
The new action checks local record bindings, chain and compatible calculation replay; it returns stale/currentness information and does not append a run or review.
Canonical packet creation rechecks required review, source flags, evidence, gate states and exporter authority; a workbench research report is not this sealed packet.
Code references
cee/export/packet.py:179build_packet
cee/cli.py:424run_export
04 / Completion work
What changed in this snapshot.
Implemented change
Saved-case verification and replay
Added verify_saved_case, a credentialed workbench verify CLI command, an authenticated verify_case action and an Evidence-view button. It checks content bindings, the event chain, review/run links and deterministic results under the same control fingerprint. Old control versions are reported without replay; currentness warnings remain visible.
A saved case could be inspected or rerun only through execution gates; users needed a way to check its integrity and retained calculations without obtaining fresh approval, paying for a model or pretending expired sources were current.
Options considered
Refresh bundled legal sources automatically and reopen accepted tests.
Add read-only verification/replay for existing saved cases.
Persist the ephemeral research-session experiment into the canonical approval database.
108 tests passed in the saved-case (5 at that point), deterministic control and bounded-provider subset, confirmed against collection count. Two later added verification tests also passed in the final 7-test verification run. See regulatory-targeted-tests.log.
Baseline before this change: 22 existing tests failed because bundled source-review dates exceed the 30-day runtime currentness window in October. These were not fixed by weakening or relabeling the gate.
Scope of the tool
Proposed authority and hypothetical business rules remain distinguishable from operative law; no current-law conclusion is made by this map.
PASS and FAIL describe the selected conditional check, not an issuer-wide compliance determination, filing approval or regulator permission.
Workbench research reports, saved authenticated decisions and sealed financial evidence packets are distinct products with different gates.
Public or synthetic workbench inputs only; no production issuer, holder or customer records were examined.
No payment execution, regulatory submission, licensing decision or autonomous professional advice connector is implemented.
Unfinished work and gaps in the map
Existing source-review dates are stale at the current runtime date. New current-date acceptance/run is correctly blocked until an actual recheck/import; this task did not verify or refresh law.
Core workbench source bundles and canonical financial-close authority libraries are separate paths; this map does not invent a direct handoff from a workbench acceptance to packet export.
Core live-model legal accuracy, professional review performance, real issuer adoption and time savings remain unmeasured.
Research-session decisions explicitly say professional_review false and remain in memory; they are not canonical legal approvals.
Local hashes and append-only SQLite triggers are not an external signature or protection against a machine owner replacing an entire consistent store.
Ancillary repayment, synthetic generation, dashboard and teaching branches are inventoried with partial depth rather than included in a complete-coverage claim.
The source set requires genuine professional rechecking/import before new current-date acceptance or execution; source dates were not refreshed.
A whole consistent store replacement is not prevented by local hashes.
Editing service.py changes the accepted-control fingerprint, so previously saved cases can be integrity-checked but report control-version change instead of replaying under different semantics.
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.