Schema Use Case Mismatch Detection

Use when a user reports "field X is always NULL in table Y despite active code" or "data missing from a table that's actively being written to" — BEFORE jumping to "fix the bug, set the field". Iron-Law: when a single DB-table has ≥2 writer-paths with different semantics (per-trade vs per-portfolio, legacy vs new pipeline), the field-NULL-symptom is often NOT a bug but a schema-use-case-mismatch — the active writer simply lacks the semantics to produce that field. A "fix" without this check would patch the writer to set a value that doesn't exist semantically. Trigger on phrases like "verdict is always NULL", "field X always missing", "this column is never populated", "INSERT list incomplete", "data not appearing despite job running", "two write-paths same table different semantics". Do NOT load for ALTER-TABLE-missing-column, permission issues, connection issues, or first-implementation of a feature.

Ed3Design 17cff3a 10.5 KB Updated

File contents

Ed3Design/ed3design-skill-bundles/tree/main/schema-discipline/skills/schema-use-case-mismatch-detection commit 17cff3a2b5

Frequently asked questions

npx skillmds@latest add ed3design/schema-use-case-mismatch-detection