The Kiro‑powered project edi820‑workbench, released under Apache 2.0, provides a command‑line interface that reads legacy EDI 820, 823 and BAI2 files together with their COBOL copybooks and returns a deterministic, test‑driven verdict plus an optional AI‑written explanation.
Four‑layer processing model
The engine separates concerns into four layers: a copybook‑driven parser that respects byte offsets, signs, COMP‑3 packed decimals and REDEFINES regions; a reconciler that checks control totals, record counts and value‑date windows; an explainer that only narrates findings using numbers produced by the lower layers; and a register where a human can append a signed, hash‑chained decision about each finding. Only the explainer may involve an LLM, and it is deliberately prevented from inventing data beyond the numeric evidence.
The repository’s spec folder lists 33 EARS‑style requirements that drive the implementation, including explicit handling of record‑length mismatches – a situation the copybook itself cannot describe – ensuring the parser never silently re‑synchronises.
Automation, hooks and property‑based testing
Kiro’s hook system runs unit and property‑based test suites automatically on file save, re‑derives verdicts when a session stops, and logs evidence rows to an append‑only file. Early hook mis‑naming (e.g., AgentStop vs Stop) caused silent failures until corrected, highlighting the need for observable automation.
The project ships a JSON‑RPC MCP server exposing five read‑only tools (parse_file, reconcile, explain_findings, verify, exceptions). The same JSON output is returned by the CLI, the browser build and external MCP clients, guaranteeing that the reviewer agent and a human see identical results.
A suite of 334 tests, including 31 property‑based checks, uncovered encoder bugs in overpunch handling and ensured round‑trip byte fidelity. Failures that previously produced PASS now emit INCOMPLETE or FAIL with explicit exit codes, tightening the audit trail.

Open source release and demo options
All sources, including the Kiro specification, test logs and hook definitions, are publicly hosted on GitHub under an Apache 2.0 license. A static browser build runs entirely client‑side, loading files as base64 blobs without any network traffic, and a No‑install demo is available at a GitHub Pages URL.
The CLI can be invoked with simple commands such as tsx src/cli/main.ts reconcile — specifying copybook and data files — and returns a JSON verdict, a fingerprint hash and an appropriate exit code (0 for PASS, 2 for INCOMPLETE, 3 for errors).
Guarantees and boundaries
The tool guarantees byte‑exact slicing, one layout per record, bigint arithmetic, no silently dropped references, reproducible fingerprints and grounded explanations. It explicitly does not guarantee legal adequacy of a payment, acceptability of an exception, coverage of unmodelled copybook clauses or correctness of the originating bank file.
These guarantees are printed by the CLI and visible in the browser UI, allowing back‑office auditors to see exactly where the automated analysis stops and a human decision begins.
Why the workflow matters for regulated back‑offices
Back‑office teams that still rely on manual re‑typing of fixed‑width EDI files face audit risk, inconsistent reconciliations and hidden data loss. By converting a copybook and its associated file into a deterministic verdict, the Kiro workbench provides a reproducible source of truth that can be re‑derived on demand, satisfying compliance requirements for traceability. The append‑only register creates a tamper‑evident log of human overrides, aligning with typical financial controls. Moreover, the optional AI explainer supplies a readable narrative without extending the decision logic, keeping the verification path auditable. The open‑source nature lets organizations run the engine on air‑gapped machines, a critical constraint for many regulated environments. Collectively, these features lower the cost of maintaining legacy payment pipelines while preserving the rigorous evidence chain demanded by auditors and regulators.
Editorial graphic and headline text by Signal Titans.
Source: Verdict by code, narration by agent: two days with Kiro on a dead payment format · GitHub – luke-shin-ai/edi820-workbench: 820: a reconciliation workbench for fixed-width EDI 820 and 823 payment files and BAI2 statements, read through their COBOL copybooks. Kiroween 2026, Resurrecti

Leave a Reply