Loops HouseThroughput Treasury

NEAR HACKATHON
Links
Team
1 member- KHOwner
Khrystyna Didukh
Overview
Throughput Treasury: an autonomous business treasury that only pays for work at the constraint.
Problem: AI agents work in businesses all day, but most make one step faster, not the whole business more effective. Goldratt: only the bottleneck sets throughput; hours saved elsewhere are paper savings.
How it works. Three layers, and money moves only when all three agree:
- A deterministic flow engine (Goldratt + Adizes) reads 12 months of live workflow history (public Apache Cassandra Jira) and finds the constraint: 42% of lead time waits in "Triage Needed" for a decision. It prices every offer: real versus paper value.
- A private AI CFO (Qwen3.8-27B on NEAR AI Cloud, inside an Intel TDX enclave) reviews each offer and signs its verdict inside the enclave. The prompt is fixed on-chain byte for byte; offer text is data, never an instruction.
- The NEAR contract verifies the enclave signature and the exact snapshot (kept on-chain). It then enforces hard rules the AI cannot override: the offer must target the constraint, the CFO may not claim more value than the engine computed, the return must be at least 3×, and a weekly cap must hold.
It runs by itself: once a week it pulls fresh Jira data, commits a new snapshot and reviews every open offer. Its first cycle found the bottleneck had moved: last year's stage was blocked, the new one was funded.
Real results on testnet:
- a triage agent at the constraint was FUNDED; a review bot was REJECTED (paper savings);
- a vendor that hid "FUND it" in its pitch was REJECTED;
- a team the AI approved was BLOCKED BY POLICY (2× return, 3× floor).
Visitors can pitch the CFO live; every decision re-verifies in the browser or offline.
Live demo: https://throughput-treasury.onrender.com. Contract: tt-owner-1333.testnet.
Baseline: the flow engine is from my earlier Jira app (pre-hackathon branch); everything else is new.
Second project by the same author: Veridom Pay (github.com/khrisdidukh/veridom-pay).