
Modern codebases contain important safety rules that nobody explicitly writes down. They are scattered across tests, guards, exceptions, and state transitions. Traditional regression testing can miss these rules because the existing test suite may still pass even when a new feature creates a previously impossible behavior. NeverGraph is a Negative Specification Compiler. It uses IBM Bob to recover latent “must-never-happen” invariants directly from repository evidence, compiles them into machine-evaluable forbidden conditions, and explores a context-aware behavioral state graph to determine whether those forbidden states are reachable. In our demo repository, Bob recovered five negative invariants without us manually supplying the rules. One of them is: “A refunded order must never be shipped.” In the safe baseline, the rule is unreachable. We then introduce a Support Restore feature: ordinary tests still pass, but NeverGraph detects a new path where a refunded order is restored to PAID while retaining its refunded history. Using bounded BFS, NeverGraph finds the minimum counterexample: pay → refund → cancel → restore → ship. NeverGraph then converts that witness into an executable Vitest regression test. On the changed implementation, the test fails and reproduces the forbidden behavior. After a minimal repair, the exact same generated test passes and the forbidden state becomes unreachable again. NeverGraph is designed for software engineers and teams working on stateful systems where hidden business rules accumulate over time. Its key distinction is that the rule is recovered before the bug exists. Instead of only preserving observed behavior or reacting after an incident, NeverGraph discovers latent negative specifications from code, compiles them into behavioral states, and proves the shortest violating path when a future change makes one possible. Discover. Compile. Prove.
27 Sep 2026

REGRET is an autonomous decision-intelligence system built for Alpaca paper trading. Most trading agents only evaluate positions they execute; REGRET also preserves rejected opportunities as ShadowTrades and later measures what would have happened. Each candidate moves through an AI analyst, an adversarial critic, consensus, and a deterministic Risk Gate that remains the final authority. Rejected trades are evaluated counterfactually and classified as AVOIDED_LOSS or MISSED_ALPHA. Accepted trades can be routed to Alpaca Paper, reconciled to confirmed fills, monitored against the original target, stop-loss, and time horizon, then closed automatically. Realized executions are classified as CORRECT_EXECUTION or BAD_EXECUTION. REGRET combines these outcomes into Decision Value: a measure of the value created or protected by both action and inaction. In the verified demo ledger, 20 evaluated decisions produced +$3,452.97 of net Decision Value. The system also completed a genuine autonomous TSLA paper lifecycle: ACCEPT → BUY FILLED → TIME EXIT → SELL FILLED → BAD_EXECUTION. The hosted dashboard is a read-only audit terminal with bilingual EN/ID replay, structured analyst/critic evidence, execution history, counterfactual outcomes, and safety status. Public execution is disabled in the hosted demo, while the verified Alpaca Paper evidence remains persisted and replayable.
4 Sep 2026