INSIDE THE SYSTEM

A tax-preparation system, not a tax chatbot.

The architecture follows the professional work: preserve the evidence, establish the facts, calculate deterministically, explain the result and produce the return.

THE S-CORP CONCEPTUAL ARCHITECTURE

Different jobs.
Clear boundaries.

The source-ingestion stages shown here describe the S-Corp Engine. The 1040 Engine currently starts with manually established household and tax-item facts, with separately reviewed structured recipient exchange and bounded supporting attachments.

A source parser, a tax rule and a PDF renderer each have a job. Separating those jobs makes it possible to challenge a result without treating the entire system as a black box.

See the practitioner’s view
  1. 01

    Evidence

    Source documents and financial data

    Original bytes and identity are retained. Supported source formats have explicit extraction contracts.

  2. 02

    Interpretation

    Ingestion → proposed facts

    Bounded deterministic extraction yields reviewable readings, with source locations and periods.

  3. 03

    Authority

    Provenance + preparer review

    Accept, correct, exclude or establish facts. Tax treatment and elections remain explicit.

  4. 04

    Calculation

    Established facts → deterministic engine

    One normalized preparation model feeds ordered rules, explicit money handling and cross-checks.

  5. 05

    Explanation

    Workpapers and diagnostics

    Supporting calculations explain results. Optional diagnostics inspect the saved preparation.

  6. 06

    Output

    IRS form rendering → return package

    Applicable forms, owner deliverables and internal workpapers share saved output and a manifest.

THE DETERMINISTIC CORE

Same established facts.
Same rules.
Same result.

Each engine has its own deterministic calculation core, with explicit money handling, calculation order and rounding. It does not ask a model to improvise a deduction. Results can be reproduced, compared against independently derived expectations and traced through workpapers.

The boundaries between calculations matter as much as the arithmetic. Corporate allocations remain full even if one owner lacks basis. Book equity is not tax basis. A loan’s principal is not necessarily its tax basis. Those concepts have distinct records and rules.

A missing fact withholds a dependent conclusion. It need not erase unrelated valid information: unknown shareholder basis does not make known corporate interest income disappear.

Why determinism matters

THE INDIVIDUAL-RETURN ARCHITECTURE

Different domains.
Explicit connections.

A household is more than a corporation with different forms.

The 1040 Engine is a separate Python application with a browser workspace and local case storage. Stable household, person, source-item and activity identities supply deterministic Decimal calculations in explicit dependency order. Filing status, household eligibility, regular tax and AMT keep the distinctions they need.

One action service connects Guided Preparation, direct workpapers, Forms and corrections. Saved fact revisions, calculation versions, authority and presentation mappings determine whether output is current. A failed renderer does not erase a valid saved calculation.

Business and investment amounts keep their source character through basis, at-risk, passive and household limitations. Where income and deductions interact circularly, bounded methods use applicability checks and exact final residuals.

Review binds to the relevant fact revisions. A correction can reopen affected work while preserving unrelated facts and earlier output. Forms and workpapers are projections of that preparation, not separate tax models.

The applications share principles and a bounded recipient-package contract. They have separate domain models and calculation code, with no automatic synchronization. Broader 1040 document ingestion, public APIs and state calculations remain future extensions.

Inside the 1040 Engine

FACT AUTHORITY

Proposed is not established.

A source reading and a preparer decision carry different authority. Accepted source facts, manual entries, corrections and unresolved conflicts must remain distinguishable. A newer file is not automatically a better answer.

The retained source supports future review. Correction history records what changed without altering what the original document reported.

Explore the evidence model

EXPLICIT STATE

Missing is meaningful.

Unknown, known zero, not applicable and unsupported cannot safely collapse into one empty field. Applicability depends on established facts; a form is not omitted merely because the engine has no value for it.

Those distinctions also inform the preparer’s next action. A missing fact calls for evidence. An unsupported structure calls for a different preparation path.

A SAVED PREPARATION

Forms, diagnostics and history must agree.

A prepared package binds the calculation, explanations and output to a particular saved state. Its manifest identifies the documents and their corporate, shareholder or internal-workpaper roles.

Printing selects saved output. It does not run another tax engine. Owner-scoped selection checks that private shareholder documents belong to the selected owner.

After an input changes, old output remains historical. A new preparation establishes the current package. That is a product behavior with engineering consequences: dependencies, integrity checks, stale-state handling and visible labels all have to work together.

The difficult engineering behind it

ACTUAL FORMS

The PDF is part of the system.

Official-form output uses pinned IRS templates and versioned mappings. The preparation determines applicability and instances; the renderer places the saved values on the relevant forms and supporting pages.

Correct field mappings alone are insufficient. Text can exist in a mapping ledger and still fail to appear on the visible page. The development process therefore inspects downloaded PDF content and rendered appearance, as well as the underlying calculation.

That also explains why a template inventory is not a capability list. A supported form needs the right inputs, calculations, selection rules, explanatory information and tests.

ELECTRONIC FILING

IRS Modernized e-File

The return is only finished when it can be filed.

TY2026 has been developed for both preparation engines within their supported scopes. Connecting those engines to IRS electronic filing means more than producing a PDF. Return data must be expressed in IRS-compliant XML, checked against schemas and business rules, packaged for submission and followed through IRS acknowledgments.

PrepReturns has completed the transmission infrastructure for both Application-to-Application (A2A) and Internet Filing Application (IFA). Test files submitted to the IRS have received accepted acknowledgments.

That test acceptance is an engineering milestone. Production electronic filing remains the next step, subject to the remaining IRS authorization requirements and production readiness work.

THE AI BOUNDARY

AI helped build it.
Tax rules calculate it.

Frontier models support research, implementation, test creation, fresh review and iteration under human direction.

The S-Corp Engine’s current runtime source parsers are deterministic. They process supported structured exports and bounded text-PDF layouts. The retained implementation evidence does not establish LLM extraction, OCR or universal document understanding.

AI-assisted development is distinct from the AI-enhanced runtime interpretation now under development for S-corp ingestion. In either setting, a proposed reading does not acquire authority over the tax return.

Independent model review adds a useful challenge to the work. It is not independent professional certification. Tax-professional judgment remains the final authority.

See the development process

S-CORP / ACTIVE ENGINEERING DIRECTION

Advanced ingestion: probabilistic at the edges, deterministic at the core.

The difficult boundary is between a plausible reading and an authoritative tax fact.

Financial statements vary between systems. A prior-year return preserves tax history that current books cannot reconstruct. Supporting schedules and narratives may disagree about an owner, period, amount or treatment. More extracted numbers do not resolve those relationships.

The hybrid direction combines deterministic extraction where structures and field relationships are known with frontier-AI-enhanced probabilistic interpretation of less predictable documents and language. Both paths must produce reviewable proposals with provenance.

The implemented foundation already preserves original source bytes and readings, distinguishes proposed from established facts, records corrections and surfaces conflicts. Supported structured data and bounded PDF layouts use deterministic parsers.

The broader AI interpretation path is under active development. It must make uncertainty visible, retain conflicting sources and let the preparer establish authority. Missing evidence remains unknown; a plausible interpretation cannot turn it into zero.

Implemented for supported inputs

Structured forms / financial data

Deterministic extraction

Known structure and field relationships

Active engineering direction

Variable documents / narratives

AI-assisted interpretation

Probabilistic readings to be reviewed

Proposed facts + provenanceOriginal evidence remains original.
  1. 01Professional review / authority

    Resolve conflicts and corrections

  2. 02Established tax facts

    Unknown is distinct from zero

  3. 03Deterministic tax engine

    Explicit rules and calculations

  4. 04Workpapers / forms

    Explain and preserve the result

S-Corp engineering direction. The deterministic extraction and provenance foundation exists; broader AI interpretation is under active development. This is not the current Form 1040 intake path.

Probabilistic interpretation never gets to silently rewrite source evidence or improvise a tax calculation.

A correction must preserve what the document originally said, what was proposed, who established the fact and why it changed. Established facts feed the deterministic S-corp engine; workpapers, forms and saved history remain downstream of that authority boundary. This direction does not imply universal AI ingestion or extend the 1040 Engine’s current manual intake scope.

LOCAL-FIRST HERITAGE

Built as a professional workspace.

The engine began as a local workspace with a browser interface and local case storage, rather than a consumer cloud service. Source preservation, recoverability and professional control shaped its architecture from that starting point.

This public website is a separate static showcase. It does not run the tax engine or accept taxpayer uploads. A future hosted environment would require its own data-handling and security design.

Form 1040 now applies these principles in a separate household engine. Its own calculation, preparation and output layers preserve the relationship between people, tax items, activity histories and the return. Useful exchange contracts connect the domains without making either calculator depend on the other.

The individual-return engine

Interested in the architecture?

We welcome conversations about preparation models, professional workflow, integrations and the open-source direction.

Let’s compare notes

Open full-size image ↗