Sharing my pstack NSWF prompt. Your repo will never be the same...in a good way of course:
Use /poteto-mode on this repo. First, find the mistakes agents and humans keep repeating here: read the git log, past bug fixes and review comments. Then make each one impossible instead of documenting it. Try architecture first, then types, then a lint whose error names the fix, then a test. Delete comments that restate code, and encode the constraint behind any comment that matters (/no-comments). Where concurrency, retries or state machines cause real bugs, write a formal model that replays a past bug and fails on it (/create-formal-verification-skill), and run it in CI. Replace unit tests that pin implementation with those models plus real DB and e2e tests, but keep every test that guards security or legal behavior. Ship one verifiable PR per step, and prove each check catches a real past mistake before you trust it.
Ray Fernando
@RayFernando1337
Ray Fernando @RayFernando1337
Lauren Tan on formal verification: "How do you know what it's proving?" "It could be proving false is true."
7:22 PM UTC · Nov 21, 2026 · 257K Views
32761.8K4.9K
Ray Fernando
@RayFernando1337
Ran this on my e-signature app (SignuDoc fork). In 13 PRs:
Deleted ~470 comments and added a CI lint so new ones fail the build. A "why" note is allowed only with a ticket number.
Wrote 4 TLA+ models (deletion notices, download/audit, DB lock order, PDF render pool). They run in CI and replay real past bugs, which they catch.
The models found 3 real bugs in our deletion-notice emails and 2 database deadlocks. Every one was reproduced on real Postgres before it was fixed, and all of them have shipped.
Deleted 10,189 lines of implementation-pinning unit tests (47 files). Kept the 36 that guard security and legal behavior.
Turned on strict TypeScript flags and banned any and !. Added a "type ratchet" so unsafe casts can only go down.
Gave every ID and token its own type, so passing a signer ID where an envelope ID belongs, or a raw token where its hash belongs, no longer compiles.
Database rows are now parsed when they're loaded, not cast. That surfaced a type that had been lying about which columns a query returned.
Added a CI color-contrast check and a "verify your change" table in AGENTS.md, so agents know which check to run for each kind of change.
Total model cost: about $6.60 charged (covered by Claude Max Subscription)
Deleted ~470 comments and added a CI lint so new ones fail the build. A "why" note is allowed only with a ticket number.
Wrote 4 TLA+ models (deletion notices, download/audit, DB lock order, PDF render pool). They run in CI and replay real past bugs, which they catch.
The models found 3 real bugs in our deletion-notice emails and 2 database deadlocks. Every one was reproduced on real Postgres before it was fixed, and all of them have shipped.
Deleted 10,189 lines of implementation-pinning unit tests (47 files). Kept the 36 that guard security and legal behavior.
Turned on strict TypeScript flags and banned any and !. Added a "type ratchet" so unsafe casts can only go down.
Gave every ID and token its own type, so passing a signer ID where an envelope ID belongs, or a raw token where its hash belongs, no longer compiles.
Database rows are now parsed when they're loaded, not cast. That surfaced a type that had been lying about which columns a query returned.
Added a CI color-contrast check and a "verify your change" table in AGENTS.md, so agents know which check to run for each kind of change.
Total model cost: about $6.60 charged (covered by Claude Max Subscription)


7:22 PM UTC · Nov 21, 2026 · 17.4K Views
304456