Add Quantus Captcha widget/demo and Debate Tree plan#558
Conversation
captcha/ is the embeddable proof-of-work captcha: drop-in widget, Web Worker WASM solver glue, demo form page, and integration docs; it consumes the pool-service API from quantus-miner. debate-tree/PLAN.md is the full plan for the AI-moderated debate platform the captcha gates. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit cd6fccd. Configure here.
setState now owns the checkmark in both directions, and the solved state is applied after the hidden-token injection so a throw in the tail lands in fail() without leaving solved visuals behind. Co-authored-by: Cursor <cursoragent@cursor.com>
ReviewChecked out What's solid
Findings
VerdictOpinion only — not a formal approve/request-changes: I'd merge this as-is if the README's cross-origin integration example (finding 1) is corrected or caveated first — shipping docs that direct integrators into a guaranteed |
n13
left a comment
There was a problem hiding this comment.
Approved, should update documentation

Summary
captcha/: drop-in proof-of-work captcha widget (checkbox UI, Web Worker WASM solver, hidden token input, quan-captcha-solved event), demo form page, integration README with threat model. Consumes the pool-service API from Quantus-Network/quantus-miner (companion PR).
debate-tree/PLAN.md: full plan for the AI-moderated debate platform (components, gating model, djb hybrid-vs-pure-PQ seed strategy, risks).
Test plan
Manual e2e via the demo page against a dev node (5 solves, verified server-side)
Not wired into melos/Flutter tooling (plain JS/static assets; dist/ is gitignored)
Note
Low Risk
Greenfield static JS, demo HTML, docs, and a plan file; no changes to existing app runtime or auth paths in this repo.
Overview
Introduces
captcha/, a new embeddable Quantus proof-of-work captcha that treats each solve as a real mining share against pool-service (companion PR inquantus-miner). The widget (quan-captcha.js) is a checkbox UI that only starts work on user click: it callsPOST /api/session, runs Poseidon2 hashing in a Web Worker with WASM frombuild-solver.sh, submits the nonce viaPOST /api/share, injects a hiddenquan-captcha-token, and firesquan-captcha-solved. A demo form illustrates end-to-end flow (including demo-onlysiteverify). README documents integration, API surface, and an explicit rate-limiter threat model;dist/is gitignored.Also adds
debate-tree/PLAN.md, a product/architecture plan for a future AI-moderated debate app that would consume this captcha plus QUAN balance gates—no application code in this PR.Reviewed by Cursor Bugbot for commit cd6fccd. Configure here.