Skip to Main Content

ChaosHook: AI-powered verification and repair for event-driven backends Webhook handlers can silently corrupt business state when events arrive out of order, are duplicated, execute concurrently, or are retried after a crash. A successful HTTP response does not guarantee that a customer's balance, subscription, or transaction ledger is correct. ChaosHook is a local-first developer workbench that combines Meta Muse-powered code repair with deterministic, independently specified verification. Its Python execution engine tests a vulnerable subscription webhook handler against 24 event permutations, a controlled concurrent race, and two crash/retry schedules using real SQLite transactions. An independent executable business contract compares expected and observed database outcomes, while a React investigation workspace exposes the source code, execution matrix, SQL traces, state differences, and candidate evidence. Meta Muse Wonder proposes repairs, with Muse Spark 1.3 supporting diagnosis and diagram-based analysis. Candidates are admitted through source-bound verification, authentication-preservation checks, and auditable acceptance gates. Following an external adversarial audit, I extended ChaosHook with causal checkpoints and counterfactual lifecycle scenarios. The resulting suite executes 62 semantic schedules and 526 checks, rejecting a hardcoded-outcome implementation that fooled the original verifier. In three live contract-driven Muse Wonder trials, three distinct generated candidates passed both the original 27-check gate and all 526 strict semantic checks. Their retained results were independently reproduced. ChaosHook also offers a CLI, deterministic evidence exports, mutation testing, and regression coverage. It is a bounded synthetic research prototype rather than being a claim of exhaustive formal proof or production Stripe integration. The core principle: AI proposes the repair; independent executable evidence determines whether it passes.

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview