Ferret: a rule-based lending engine whose risk mood adjusts ceilings, built spec-first with Kiro
Ferret is a play-money lending guard that approves or refuses invoice advances through twelve fixed checks applied in a set order. A stress-driven mood, which can be calm, wary or feral, tightens the concentration and term limits after defaults and relaxes them over time, but it never removes or reorders any check. The idea draws on the author's XRPLife research, where a neuromodulator scales network activity without changing its connections. The project was developed for the Kiroween 2026 hackathon, with specifications and steering files written before any code. A separate Python reference implementation validated the TypeScript engine across 4,926 replayed events with zero mismatches. Four unit tests written during development were found to be wrong, and the reference judge confirmed the engine's behavior was correct.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in