devto 2026-07-07 원문 보기 ↗
LLMs produce probabilistic outputs. No matter how good your prompt is, edge cases will fail — hallucinations, omissions, format drift, and confident-sounding rationalizations that don't hold up.
I noticed this while using Claude Code daily: the AI would say "done" but the file wasn't written. It would claim "logs updated" but the timestamps were three days old. The AI wasn't lying — probabilistic output is inherently unstable.
Pure prompt engineering is fighting probability with probability. The ultimate defense must be deterministic, mechanical checks.
I built an agent configuration system with a closed-loop feedback mechanism:
self-model.md (current self-cognition)
↓
Session executes (AI works based on config)
↓
Growth data accumulates (what worked, what failed)
↓
quality-gate.py detects staleness (file timestamps + exit codes, pure Python)
↓
Writes .self-model-stale flag to disk
↓
Next startup: health-check.py detects flag → triggers AI to regenerate self-model
↓ (loop closes)
4 steps are mechanical scripts: file timestamp checks, exit code gates, JSONL audit trails, flag file I/O.
1 step requires AI: content regeneration — synthesizing accumulated growth data into updated self-cognition.
Machines do the checking. Humans and AI do the judging. This isn't philosophy — it's engineering.
Every script uses only Python's standard library. A quality check tool can't introduce new dependency risks.
The boundary isn't importance — it's "can this be fixed later?"
No vector databases. No cloud services. All identity data, growth logs, and audit records are local Markdown + JSON files. Git-auditable, offline-capable, fully self-sovereign.
I extracted one module (delivery-gate) from my personal system and submitted it to ECC (100K+ stars).
Result: maintainer daltino reviewed and approved it with praise. Maintainer affaan-m personally merged two follow-up PRs. A 200-line Python script went through 4 rounds of community bot review + human maintainer review, catching 9 issues I hadn't found in self-testing.
Open-source community review is the best free QA you'll ever get. This became my "open-source flywheel" methodology: build for yourself → extract module → find a community gap → submit PR → merge back into your own system.
I'm a junior-year undergrad. My raw coding speed probably doesn't beat CS majors who eat LeetCode for breakfast. But I've learned one thing that matters more:
The core competency of the AI era isn't typing speed — it's knowing what to let AI do, and what must be enforced with deterministic rules.