Commit 252d3eb
docs(agents): Prime Directive #12 — contract-first (fix the metadata, not the runtime)
Codify the rule that governed the AI-flow create_record fix: when metadata
doesn't work, first ask if it's spec-compliant and whether the fix is the
long-term-correct direction. Fix the producer + reject off-spec input at
authoring/publish; never add a lenient `??` alias in a consumer (executor /
renderer) to tolerate non-compliant metadata. `packages/spec` stays the single
strict contract; change the spec only when it is genuinely wrong. The existing
`cfg.filter ?? cfg.filters` style fallbacks are debt, not a pattern to extend.
Same principle added to the cloud and objectui AGENTS.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent fea3ef2 commit 252d3eb
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments