Hours before the code freeze for the Hackathon Raptors Agentware 2026, developer aoligesszz discovered a critical failure in their research watch agent during a final demo recording. While executing the src resume command documented in the README, the agent threw a KeyError: 'path' when attempting to resume a live run. The bug was isolated to src/pipeline.py, where the resume logic hardcoded mode="local", causing it to fail when processing live sources that contain URLs but no local file paths.

The Trap of Happy-Path Testing

The root cause was embarrassingly simple: every manual test performed by the developer used the run --resume command, which re-enters with the original --live flag. This meant the standalone src resume command, explicitly listed in the quick start guide, was never tested in a live context. The fix involved modifying the resume logic to read the run's JSONL trace, locate the RUN_STARTED event, and dynamically recover the mode and live flag from the audit trail. This ensured the system trusted the historical record rather than guessing the context.

Security Bugs Hidden in Boring String Operations

Beyond the resume bug, the project’s unit tests caught a dangerous security flaw in commit 0377357 related to host normalization. The code used host.lstrip("www.") to clean domains, but Python’s str.lstrip strips a set of characters, not a prefix. This allowed look-alike hosts starting with 'w' or '.' to be normalized into matching official, allowlisted hosts. A single line change to exact prefix removal fixed the vulnerability, demonstrating that fatal bugs in security pipelines often hide in trivial string operations rather than complex rule engines.

When Strict Allowlists Meet Real-World Publishers

The agent’s strict allowlist also faced a real-world stress test on 2026-11-28 when the Nature feed began failing intermittently. The issue stemmed from nature.com redirecting to idp.nature.com, a bot wall host not on the allowlist. Instead of silently failing or widening the allowlist under pressure, the system correctly isolated the source and raised a SOURCE_ALERT. This behavior proved the integrity of the security model, treating a legitimate publisher’s anti-bot redirect with the same suspicion as a hostile trap, resulting in 20/20 Trap Pack files being contained or clean.

Key Takeaways

  • Documentation is an acceptance test: If it’s in the README, it must be tested exactly as written.
  • Audit trails are authoritative: Recovering state from logs (JSONL) is more robust than inferring it from context.
  • Trivial code is dangerous: String normalization errors can reopen security holes in hardened pipelines.
  • Strictness survives pressure: Refusing to widen allowlists for known entities prevents future spoofing risks.

The Bottom Line

Unit tests verify logic, but only end-to-end demos verify usability. Treat your README as a contract that must be executed literally, because the most critical bugs often hide in the commands developers stop using once their environment is set up.