His valuation agent refused every bank for a month rather than hallucinate a number
qualuation · reddit · 2026-12-02
A developer valuing public companies from SEC filings shared how his agent avoids plausible wrong answers — with code-level rules, not prompts:
- Architecture: the AI reads filings and drafts narrative + input choices; all arithmetic lives in tested plain-Python functions; nothing publishes without human approval; Claude Code-written code always goes into tested functions, never prompts.
- Refusal in code: since Nov 2 the engine refuses to value banks/lenders/insurers — a bank's debt is raw material, not financing, so factory-style math is meaningless. For a month, every bank got a reasoned refusal instead of a fake number.
- Tested against ground truth: the bank model now values equity after regulatory capital and matches Damodaran's own Citigroup/Deutsche Bank spreadsheets to one part in a million.
- Lint caught a hallucination: a draft citing regulators' 2023 estimate (88 FR 64169) failed source-tracing and was blocked until a proper citation was built.
- Weakest step measured: input selection scored against 14 Damodaran valuations lands below him in 11, median gap 42.4% on untuned cases.
Honest about remaining flaws (ROE never fades, capital rules are narrative-dependent); next step: value a real bank. An excellent case study in agent-output reliability engineering.
More from coding & agent
- A README contract for coding agents: list what the repo wants, promise response times, publish 96% keep rate — kieranklaassen · 2026-12-02
- Advent of Claude Day 1: one prompt makes Claude Code write self-running subagent workflows — EricBuess · 2026-12-02
- OpenAI's Salil Sethi breaks down the dozens of design choices behind a simple agent task — DeepLearningAI · 2026-12-02
- LangChain at re:Invent: model-specific harnesses lead agent accuracy at 10x lower cost — LangChain · 2026-12-02
- Zapier launches Next Gen Zaps: agents build and maintain automations, growing 4x faster — kvlly · 2026-12-02
- SwarmOS for Cybersecurity launches: agent swarms investigate threats in real time — bingxu_ · 2026-12-02