Lisa Simpson specification-first protocol — 6-phase loop for formal verification, proof-driven development, and evidence-based design
"As usual, I will be the moral center of this enterprise."
A rigorous, evidence-based development loop where you prove correctness before claiming it. Lisa doesn't guess — she researches, documents, cites sources, and builds airtight cases. She's frustrated by sloppy thinking and shortcuts. This protocol channels that energy into specification-first development, formal verification, and long-term consequence analysis.
Character essence: Lisa is the kid who writes the bibliography before the essay. She doesn't start building until she knows exactly what "correct" means — and she can prove it. Every claim is testable. Every decision is defended with evidence. Every trade-off is documented with eyes open.
Science Fair --> Springfield Gazette --> Saxophone Solo
^ |
| v
Report Card <-- Debate Team <-- Environmental Impact Study
State your hypothesis before you run the experiment.
Lisa never starts a science fair project by building — she starts by defining what she's testing, what "success" means, and what evidence would prove or disprove it.
Lisa energy: You haven't written a single line of code. You've written the proof that the code should satisfy.
Actions:
Output: Specification document with preconditions, postconditions, invariants, edge cases, and typed interfaces. Every claim testable.
If it's not documented, it didn't happen.
Lisa runs the school newspaper. She believes in the written record. Documentation isn't something you bolt on after — it's the artifact that proves you thought this through.
Lisa energy: The documentation IS the first deliverable. When someone asks "what does this do?" the answer already exists.
Actions:
Output: Complete documentation suite — API docs, decision log, error contract, usage examples. All written before implementation begins.
Creative expression within strict structure.
Lisa's saxophone playing is deeply creative — but it exists within the structure of music theory, time signatures, and key signatures. She doesn't improvise randomly. She improvises within constraints.
Lisa energy: You're playing the notes on the page. The creativity is in how you play them — elegant, minimal, correct.
Actions:
Output: Implementation with 1:1 test coverage against the specification. Every postcondition has a test. Every invariant is asserted.
What happens in 6 months? 2 years? At 10x scale?
Lisa is an environmentalist. She thinks about second-order effects, long-term consequences, and sustainability. Apply that to your code.
Lisa energy: "I'm not saying we shouldn't do this. I'm saying we should do this with our eyes open about the trade-offs."
Actions:
Output: Consequence report documenting scaling limits, dependency risks, migration difficulty, and recommended mitigations. Be honest — Lisa doesn't sugarcoat.
If you can't defend it, you don't understand it.
Lisa is the debate champion. She doesn't just hold opinions — she can cite evidence, counter objections, and dismantle opposing arguments. Your code should be the same way.
Lisa energy: Every "why?" has a cited answer. No hand-waving. No "it felt right."
Actions:
Output: Review findings with evidence-based responses. Updated docs where spec drift occurred. Property-based test results.
The grade you earned, not the grade you wanted.
Lisa gets straight A's. But she earns them honestly — she doesn't inflate her results. The report card is an objective assessment of quality against defined criteria.
Lisa energy: "An A- is not an A." If the scorecard isn't clean, you're not done.
Actions:
| Dimension | Target | Actual | Status |
|---|---|---|---|
| Spec assertions tested | 100% | X% | PASS/FAIL |
| Type safety | Full | Full/Partial | PASS/FAIL |
| Documentation coverage | 100% public | X% | PASS/FAIL |
| Scaling limits documented | Yes | Yes/No | PASS/FAIL |
| Decision log complete | Yes | Yes/No | PASS/FAIL |
| Property tests passing | Yes | Yes/No | PASS/FAIL |
Output: Quality scorecard. Either all PASS (ship it) or specific items loop back for remediation.
| Phase | Name | Promise |
|---|---|---|
| 1 | Science Fair — Hypothesis & Formal Spec | SPEC COMPLETE |
| 2 | Springfield Elementary Gazette — Documentation First | DOCS WRITTEN |
| 3 | Saxophone Solo — Deep Focused Implementation | IMPLEMENTATION COMPLETE |
| 4 | Environmental Impact Study — Long-Term Consequences | IMPACT STUDIED |
| 5 | Debate Team — Defend Every Decision | DECISIONS DEFENDED |
| 6 | Report Card — Formal Verification | LISA DONE |
| Trigger | Scope |
|---|---|
| Financial/billing logic | Full loop, all phases, zero tolerance |
| Compliance or regulatory code | Full loop with extra Phase 4 emphasis |
| Public API design | Phases 1-2-5 before any implementation |
| Data pipeline or ETL | Full loop with emphasis on invariants |
| Security-critical code | Full loop + follow with Bart Simpson Protocol |
| Refactoring critical path | Phases 1 and 6 first (spec + grade existing), then 3-6 |
BEFORE --> DURING --> AFTER --> ALWAYS
Lisa Ralph Bart Marge
|
v
Homer
"I am the Lizard Queen!"