justingrammens / OSN-2026
PublicSpec First, Agents Second: Engineering AI Systems with Discipline. Slides and code from the Open Source North 2026 Conference.
MDAM (Medication Dose Alert Monitor) is an open-source demonstration project from Open Source North 2026 that shows how to build healthcare safety software using a 'spec-first' development approach. The system monitors scheduled medication doses and alerts care teams when doses go unacknowledged past a configurable threshold, escalating to charge nurses if still not addressed. It was specifically designed to demonstrate disciplined AI-assisted engineering โ using AI to build faster, but within explicit constraints that preserve architectural intent. The project includes comprehensive documentation, a complete test suite, and is structured as a teaching tool for teams wanting to adopt more rigorous AI workflows.
How It Works
A developer hears Justin Grammens present on responsible AI-assisted engineering at Open Source North 2026
They learn about a near-miss: a patient whose insulin dose went untracked at 2:47 AM because no requirement captured the timing constraint
They discover MDAM, a medication alert monitor built during the talk, and see how it makes that failure structurally impossible
See the 12 clear rules the system must follow, from detecting overdue doses to requiring authenticated acknowledgment
Watch 60 tests pass, seeing exactly how the system responds at boundary moments like 14:59.999 versus 15:00.000
They see how pure functions return instructions, not actions โ keeping the logic clean and predictable
They notice every function is annotated with which requirement it satisfies, so nothing gets lost
They leave understanding how starting with clear, testable requirements produces software that stays maintainable and safe
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.