Inspiration
My background in forensic science reveals a terrifying vulnerability in our justice system: the "Chain of Custody" is entirely centralized and relies on human honesty. If a biological sample meant for STR profiling degrades because a lab refrigerator failed, a corrupt technician can simply alter the temperature logs in a centralized database to cover their tracks. A single chronological paradox or environmental anomaly can make vital evidence legally inadmissible.
I realized that AI alone isn't enough to fix this—an AI can hallucinate, and centralized databases can be hacked. We needed a Zero-Trust Forensic Pipeline. I built Audit Ally to eliminate the human single point of failure by bridging decentralized hardware (Fetch.ai uAgents), agentic AI (ASI-1), and immutable Web3 ledgers.
What it does
Audit Ally is an Omni-Domain forensic auditing ecosystem that actively prevents evidence tampering. It operates in three distinct phases:
- The uAgent Digital Witness: We deploy Fetch.ai uAgents directly onto physical evidence lockers. These autonomous agents act as cryptographic digital twins, streaming live environmental telemetry (temperature, VOCs, RFID) independently of human input.
- Multi-Step Agentic Auditing: When an investigator uploads a PDF forensic report, our ASI-1 agent doesn't just read it. It cross-references the human's written claims against the live, immutable data streaming from the hardware uAgent. It actively "Red-Teams" its own findings to filter out false positives.
- Immutable Web3 Anchoring: Once the AI finalizes its verdict, Audit Ally generates a cryptographic signature of the evidence and anchors the AI's reasoning trace directly to the ASI Dorado Testnet.
How we built it
Audit Ally is a full-stack Web3 application engineered for high-stakes environments:
- Frontend: React.js provides a high-fidelity dashboard for investigators to view live telemetry and upload documents.
- Backend: A Python Flask engine handles the asynchronous routing between the UI, the AI, and the blockchain.
- IoT Simulation: We utilized the uAgents framework to build a swarm of autonomous hardware witnesses.
- Smart Reasoning: The ASI-1 model is constrained by highly engineered, XML-tagged structural prompts and a multi-step agentic iteration loop. Instead of a single pass, the AI acts as its own Red-Team, iteratively challenging its initial findings against the hardware data to force deterministic, legally compliant JSON outputs.
- Ledger Integration: We used the cosmpy SDK to automate transaction signing and payload anchoring to the Dorado Testnet.
The Cryptographic Verification Model
To ensure absolute integrity, Audit Ally relies on a deterministic verification function before anchoring to the ASI network. We define the validation state $V$ of the evidence as a function of the Documented State $D_t$ and the immutable uAgent Telemetry $\mu_t$.
If the absolute difference between the human log and the hardware telemetry exceeds the biological degradation threshold $\epsilon$ (e.g., a thermal spike of $\Delta T > 4^\circ C$), the agent flags the discrepancy:
$$f_{ASI}(D_t, \mu_t) = \begin{cases} 1, & \text{if } |D_t - \mu_t| \le \epsilon \ 0, & \text{if } |D_t - \mu_t| > \epsilon \end{cases}$$
Once verified, the final payload anchored to the blockchain is a concatenated SHA-256 hash of the source PDF and the agent's reasoning trace:
$$H_{final} = \text{SHA-256}(\text{Doc}{pdf} \parallel \text{Trace}{ASI})$$
This mathematical proof guarantees that neither the original file nor the AI's logic can be retroactively altered.
Challenges we ran into
The hardest architectural challenge was forcing the ASI-1 model to behave deterministically. LLMs inherently want to be conversational. Building a multi-step agentic workflow that strips away the "chat" and outputs strict, evaluated JSON against ISO/IEC 27037 standards required heavy prompt engineering and iterative Red-Team loops.
Additionally, bridging asynchronous WebSockets for live uAgent telemetry with the synchronous REST API calls of the React frontend required careful state management to ensure the dashboard accurately reflected the live hardware.
Accomplishments that we're proud of
I am incredibly proud of achieving a true Hardware-to-Blockchain pipeline. Successfully deploying an autonomous Fetch.ai uAgent that streams live data, and then having an ASI-1 model actively reason over that hardware data to catch a human lie, proves that decentralized AI can solve massive real-world legal problems.
What we learned
I deepened my understanding of Agentic System Architectures. I learned that "AI" isn't just about generation; it's about reasoning. By combining strict prompt constraints with live IoT data, an AI agent transitions from being a simple chatbot into a reliable, secure cryptographic auditor.
What's next for Audit Ally
We plan to expand the uAgent integration from simple thermal tracking to full digital forensic acquisition (auditing hard-drive hash logs). The ultimate goal is to pilot this architecture with real-world private investigation firms, providing courts with mathematically proven, AI-audited evidence logs.
Built With
- artificial-intelligence
- asi-api
- blockchain
- cosmpy
- fetch.ai
- flask
- iot
- javascript
- python
- react.js
- uagents
- web3
Log in or sign up for Devpost to join the conversation.