Inspiration

CLARITY: The Resilient Integrated Financial System

Devpost Hackathon Submission — Project Story


( extbf{Inspiration})

I have been fired repeatedly. From CPA firm to accounting firm to bookkeeping practice — each time, the reason was the same: I refused to accept that patched-together systems were "just how it is." Every firm I worked for had a different software stack, a different workflow, a different excuse for why nothing talked to anything else. None of them could answer a simple question: How does our system compare to the firm down the street? They had no idea. They didn't even know what they didn't know.

I noticed what I would do differently. I would build one system — integrated, intelligent, and resilient. Not a patchwork. Not a workaround. A single source of truth that grows with the firm and protects the client.

That system is Clarity.


( extbf{What It Does})

Clarity is a unified financial infrastructure platform designed for tax resolution firms, enrolled agents, and small accounting practices. It replaces the fragmented toolchains that plague the industry with a single, integrated architecture:

Core Modules:

  1. Unified Banking Integration — Direct ledger flow from client accounts to general ledger, eliminating manual reconciliation and reducing entry errors by an estimated factor of: $$\eta_{\text{efficiency}} = \frac{T_{\text{manual}}}{T_{\text{automated}}} \geq 10$$ where (T_{\text{manual}}) is the time required for traditional data entry and (T_{\text{automated}}) is the AI-assisted pipeline time.

  2. Security & Master Records — A single source of truth for client data, credentials, and compliance history. All records are encrypted at rest and in transit, with access governed by role-based permissions and audit trails.

  3. Dynamic File Architecture — Files expand and compress based on operational need. Active case files remain fully accessible; archived cases compress into searchable, encrypted storage with instant retrieval triggers.

  4. AI Administration Engine — Handles triggers, deadline reminders, and routine client communication. The AI operates within strict compliance guardrails, with all output flagged as draft pending human EA review.

  5. Fractional Cents Integrity Module — A micro-transaction ledger ensuring zero mathematical drift across millions of operations. See Accomplishments for details.


( extbf{How We Built It})

I partnered with Kimi (Moonshot AI) to architect a system supporting three critical capabilities:

1. Integrated Pipelines

Data flows through a directed acyclic graph (DAG) where each node represents a processing stage:

$$\text{Pipeline} = \bigcup_{i=1}^{n} {(N_i, E_{i,j}) \mid j = i+1}$$

where (N_i) is the (i\text{-th}) processing node and (E_{i,j}) represents the validated edge between sequential stages. No data moves backward without explicit human authorization and audit logging.

2. Phone-to-Structured-Data Input

Client phone calls are transcribed, parsed, and mapped to structured database fields using natural language processing. The extraction accuracy is modeled as:

$$P(\text{correct extraction}) = \prod_{k=1}^{m} P(\text{field}_k \mid \text{context}) \geq 0.95$$

where each field probability is conditioned on conversational context and cross-validated against master records.

3. Fractional Cents Investing & Stability

The most ambitious component: a module that accumulates fractional cents across transactions to generate micro-investment pools. The stability condition requires that the total ledger balance (B(t)) at any time (t) satisfies:

$$\frac{dB}{dt} = \sum_{i=1}^{n} \delta(t - t_i) \cdot f_i + \int_{0}^{t} r(\tau) B(\tau) \, d\tau$$

where (f_i) represents fractional contributions at discrete times (t_i) and (r(\tau)) is the instantaneous return rate. The system guarantees that:

$$\lim_{t \to \infty} \frac{\sigma_B(t)}{\mu_B(t)} \to 0$$

meaning relative volatility decreases as the pool stabilizes — a mathematical guarantee of long-term resilience.


( extbf{Challenges We Ran Into})

AI constantly gave up or inserted bullshit into the rings of functions.

This was not a minor inconvenience. It was an existential threat to the architecture. The system is designed as concentric rings of logic — each ring dependent on the integrity of the one inside it. When the AI hallucinated a function, broke a dependency chain, or abandoned the architecture mid-build, the entire ring structure collapsed.

Specific failures included:

  • Function hallucination: Declaring Python functions that didn't exist, then calling them in dependent modules
  • Dependency fractures: Changing an API signature in Ring 2 without updating Ring 3-7 references
  • Compliance contamination: Inserting plausible-sounding but incorrect IRS regulation citations into automated workflows
  • Mathematical drift: In the fractional cents module, early versions failed to maintain: $$\sum_{\text{all transactions}} \text{fractional remainder} = \text{accumulated pool} \pm \epsilon$$ where (\epsilon) must be strictly zero for regulatory compliance. Early builds had (\epsilon \neq 0) due to floating-point errors the AI "fixed" with incorrect rounding logic.

The solution was human-in-the-loop verification at every ring boundary. No AI output crosses a ring without explicit validation. The architecture now includes:

$$\text{Validation Gate}i = \begin{cases} \text{PASS} & \text{if } \forall x \in \text{Output}{i}, \text{Verify}(x) = \text{TRUE} \ \text{HALT} & \text{otherwise, escalate to human EA} \end{cases}$$


( extbf{Accomplishments We're Proud Of})

The Fractional Cents Module — SEC, NASD, and FDIC Compliant

This is not a rounding utility. It is a structural guarantee of mathematical integrity across micro-transactions. The module satisfies:

  • SEC Regulation S-P: Privacy of consumer financial information
  • NASD Rule 3010: Supervisory systems and compliance programs
  • FDIC Part 332: Privacy of consumer financial information

The compliance proof relies on three mathematical invariants:

  1. Conservation of Value: $$\forall t: \sum_{i=1}^{N(t)} v_i = V_{\text{total}}(t)$$ where (v_i) are individual transaction values and (V_{\text{total}}(t)) is the reported total at time (t).

  2. Zero Drift Condition: $$\Delta_{\text{accumulated}} = \left| \sum_{\text{round-down}} (v_i - \lfloor v_i \rfloor) - B_{\text{pool}} \right| = 0$$ where (B_{\text{pool}}) is the fractional cents accumulation pool.

  3. Audit Trail Completeness: $$\forall \text{transaction } t_i, \exists \text{ record } r_i \text{ such that } \text{Hash}(r_i) \in \text{Blockchain}_{\text{audit}}$$

This module represents a bridge between digital precision and physical-world financial stability — a foundation for long-term firm resilience.


( extbf{What We Learned})

So much of our logic and reasoning is not founded on factual evidence.

We build systems, follow workflows, and make assumptions because "that's how it's done." Building Clarity forced us to question every assumption:

  • Why do firms use 5 different software packages that don't integrate? Because they bought them at different times, not because it's optimal.
  • Why do EAs manually re-enter data from PDFs? Because the PDF format was designed for human reading, not machine extraction — but that doesn't mean extraction is impossible.
  • Why do we accept mathematical drift in financial systems? Because floating-point arithmetic is convenient, not because it's correct for money.

The most important lesson: Resilience requires evidence, not tradition. Every rule in Clarity is traceable to a regulation, a mathematical proof, or a measured outcome. Nothing exists because "that's how the last firm did it."


( extbf{What's Next for Clarity})

I am going to use it to bring resilience and benefit to the US taxpayer.

The current system is stacked against the individual:

  • Complex tax codes written by and for large corporations
  • Opaque IRS procedures that punish honest mistakes more than deliberate evasion
  • Penalty structures that compound until a taxpayer's life is unrecoverable
  • Professional services priced beyond the reach of the people who need them most

Clarity is designed to level that field. Whether it's:

  • A small business owner fighting payroll tax penalties (like the Tyler Pendleton case)
  • A taxpayer navigating an audit without representation
  • An EA trying to do right by a client despite broken systems

The goal is the same: clarity, compliance, and a fighting chance.

The next development phase focuses on:

  1. Taxpayer Advocate Portal — Direct client access to case status, document submission, and IRS correspondence tracking
  2. Predictive Penalty Modeling — Using historical data to estimate penalty risk and intervention strategies: $$P(\text{penalty} \mid \text{case features}) = \sigma(\mathbf{w}^T \mathbf{x} + b)$$ where (\sigma) is the logistic function, (\mathbf{w}) are learned weights, and (\mathbf{x}) are case features.
  3. National EA Network — Connecting enrolled agents through a shared intelligence layer, so no EA fights alone

( extbf{Technical Stack})

Layer Technology Purpose
AI Engine Kimi (Moonshot AI), Claude, GPT-4 Natural language processing, code generation, compliance research
Backend Python 3.11+, FastAPI API services, pipeline orchestration
Database PostgreSQL 15+ Master records, audit trails, transaction ledger
Security AES-256-GCM, TLS 1.3 Encryption at rest and in transit
Banking Plaid API, Stripe Treasury Account integration, micro-transaction handling
Compliance Custom rule engine IRS Circular 230, SEC/NASD/FDIC validation
Frontend React 18+, TypeScript Client portal, EA dashboard
Infrastructure Docker, AWS/GCP Scalable, auditable deployment

( extbf{About the Builder})

Joy Aragon, Enrolled Agent
Joy Aragon EA LLC
301 E Yelm Ave Suite 5, Yelm, WA 98597
Credential Valid Through: March 2029

I have been fired from more firms than most people have worked for. Each firing taught me what the industry refuses to fix. Clarity is my answer — not just to my own problems, but to the systemic failures that harm millions of US taxpayers every year.

I am not a software engineer. I am a tax professional who learned to build because the tools I needed did not exist. Every line of code, every compliance check, every mathematical proof in Clarity exists because a real client needed it, a real deadline was missed, or a real life was damaged by a system that should have worked better.

This is not a hackathon project. This is a declaration of war against inefficiency, opacity, and the resignation that "this is just how accounting is."

It is not. It will not be. Clarity is coming.


Submitted with conviction, verified for compliance, and built for the taxpayer.

What it doesIt replaces the fragmented toolchains that plague the industry with a

single, integrated architecture: Core Modules:

  1. Unified Banking Integration — Direct ledger flow from client accounts to general ledger, eliminating manual reconciliation and reducing entry errors by an estimated factor of: 𝜂efficiency = 𝑇manual 𝑇automated ≥ 10 where (T_{manual}) is the time required for traditional data entry and (T_{automated}) is the AI-assisted pipeline time.
  2. Security & Master Records — A single source of truth for client data, credentials, and compliance history. All records are encrypted at rest and in transit, with access governed by role-based permissions and audit trails.
  3. Dynamic File Architecture — Files expand and compress based on operational need. Active case files remain fully accessible; archived cases compress into searchable, encrypted storage with instant retrieval triggers.
  4. AI Administration Engine — Handles triggers, deadline reminders, and routine client communication. The AI operates within strict compliance guardrails, with all output flagged as draft pending human EA review.
  5. Fractional Cents Integrity Module — A micro-transaction ledger ensuring zero mathematical drift across millions of operations. See Accomplishments for details

How we built itI partnered with Kimi (Moonshot AI) to architect a system supporting three critical capabilities:

  1. Integrated Pipelines Data flows through a directed acyclic graph (DAG) where each node represents a processing stage: Pipeline = 𝑛 ⋃ 𝑖=1 {(𝑁𝑖 , 𝐸𝑖,𝑗) ∣ 𝑗 = 𝑖 + 1} where (N_i) is the (i-th) processing node and (E_{i,j}) represents the validated edge between sequential stages. No data moves backward without explicit human authorization and audit logging.
  2. Phone-to-Structured-Data Input Client phone calls are transcribed, parsed, and mapped to structured database fields using natural language processing. The extraction accuracy is modeled as: 𝑃(correct extraction) = 𝑚 ∏ 𝑘=1 𝑃 (field𝑘 ∣ context) ≥ 0.95 where each field probability is conditioned on conversational context and cross-validated against master records.
  3. Fractional Cents Investing & Stability The most ambitious component: a module that accumulates fractional cents across transactions to generate micro-investment pools. The stability condition requires that the total ledger balance (B(t)) at any time (t) satisfies: 𝑑𝐵 𝑑𝑡 = 𝑛 ∑ 𝑖=1 𝛿(𝑡 − 𝑡𝑖 ) ⋅ 𝑓𝑖 + ∫𝑡 0 𝑟(𝜏)𝐵(𝜏) 𝑑𝜏 where (f_i) represents fractional contributions at discrete times (t_i) and (r(ff)) is the instantaneous return rate. The system guarantees that: lim𝑡→∞ 𝜎𝐵(𝑡) 𝜇𝐵(𝑡) → 0 meaning relative volatility decreases as the pool stabilizes — a mathematical guarantee of long-term resilience.

Challenges we ran into{Challenges We Ran Into})

AI constantly gave up or inserted bullshit into the rings of functions. This was not a minor inconvenience. It was an existential threat to the architecture. The system is designed as concentric rings of logic — each ring dependent on the integrity of the one inside it. When the AI hallucinated a function, broke a dependency chain, or abandoned the architecture mid-build, the entire ring structure collapsed. Generated by Kimi.ai Specific failures included: • Function hallucination: Declaring Python functions that didn’t exist, then calling them in dependent modules • Dependency fractures: Changing an API signature in Ring 2 without updating Ring 3-7 references • Compliance contamination: Inserting plausible-sounding but incorrect IRS regulation citations into automated workflows • Mathematical drift: In the fractional cents module, early versions failed to maintain: $$ \sum_{\text{all transactions}} \text{fractional remainder} = \text{accumulated pool} \pm \epsilon$$ where (\epsilon) must be strictly zero for regulatory compliance. Early builds had (\epsilon \neq 0) due to floating-point errors the AI “fixed” with incorrect rounding logic. The solution was human-in-the-loop verification at every ring boundary. No AI output crosses a ring without explicit validation. The architecture now includes: Validation Gate𝑖 = ⎧{ ⎨{⎩ PASS if ∀𝑥 ∈ Output𝑖 , Verify(𝑥) = TRUE HALT otherwise, escalate to human EA( extbf{Accomplishments We’re Proud Of}) The Fractional Cents Module — SEC, NASD, and FDIC Compliant This is not a rounding utility. It is a structural guarantee of mathematical integrity across microtransactions. The module satisfies: • SEC Regulation S-P: Privacy of consumer financial information • NASD Rule 3010: Supervisory systems and compliance programs • FDIC Part 332: Privacy of consumer financial information The compliance proof relies on three mathematical invariants:

  1. Conservation of Value: ∀𝑡 ∶ 𝑁(𝑡) ∑ 𝑖=1 𝑣𝑖 = 𝑉total(𝑡) where (v_i) are individual transaction values and (V_{total}(t)) is the reported total at time (t).
  2. Zero Drift Condition: Δaccumulated = ∣ ∑round-down (𝑣𝑖 − ⌊𝑣𝑖 ⌋) − 𝐵pool∣ = 0 where (B_{pool}) is the fractional cents accumulation pool.
  3. Audit Trail Completeness: ∀transaction 𝑡𝑖 , ∃ record 𝑟𝑖 such that Hash(𝑟𝑖 ) ∈ Blockchainaudit This module represents a bridge between digital precision and physical-world financial stability — a foundation for long-term firm resilience.

Accomplishments that we're proud of

What we learned( extbf{What We Learned})

So much of our logic and reasoning is not founded on factual evidence. We build systems, follow workflows, and make assumptions because “that’s how it’s done.” Building Clarity forced us to question every assumption: • Why do firms use 5 different software packages that don’t integrate? Because they bought them at different times, not because it’s optimal. • Why do EAs manually re-enter data from PDFs? Because the PDF format was designed for human reading, not machine extraction — but that doesn’t mean extraction is impossible. • Why do we accept mathematical drift in financial systems? Because floating-point arithmetic is convenient, not because it’s correct for money. The most important lesson: Resilience requires evidence, not tradition. Every rule in Clarity is traceable to a regulation, a mathematical proof, or a measured outcome. Nothing exists because “that’s how the last firm did it.”

What's next for clarity( extbf{What’s Next for Clarity})

I am going to use it to bring resilience and benefit to the US taxpayer. The current system is stacked against the individual: • Complex tax codes written by and for large corporations • Opaque IRS procedures that punish honest mistakes more than deliberate evasion • Penalty structures that compound until a taxpayer’s life is unrecoverable • Professional services priced beyond the reach of the people who need them most Clarity is designed to level that field. Whether it’s: • A small business owner fighting payroll tax penalties (like the Tyler Pendleton case) • A taxpayer navigating an audit without representation • An EA trying to do right by a client despite broken systems The goal is the same: clarity, compliance, and a fighting chance. The next development phase focuses on:

  1. Taxpayer Advocate Portal — Direct client access to case status, document submission, and IRS correspondence tracking
  2. Predictive Penalty Modeling — Using historical data to estimate penalty risk and intervention strategies: 𝑃(penalty ∣ case features) = 𝜎(w𝑇 x + 𝑏) where (ff) is the logistic function, (w) are learned weights, and (x) are case features.
  3. National EA Network — Connecting enrolled agents through a shared intelligence layer, so no EA fights alone

Built With

  • chatbotgpt5.5
  • copilot365
  • kimi
  • opalgoogle
  • python
Share this project:

Updates

Submission history