DET001 - Family Mismatch¶
Description¶
The user-supplied --target (or --to) family contradicts the family
that the detection layer inferred from the payload itself.
Category¶
Detection Errors
Severity¶
error
When emitted¶
Surfaced from
validators/detection.py
during the routing phase that runs before any layered validator.
The CLI translates DET001 into exit code
EXIT_FAMILY_MISMATCH (3) so wrapper
scripts can branch on it without parsing error messages — see
ADR 0005.
Common causes¶
- Running
dppvalidator validate --target untp <cirpass-payload>.jsonon a payload whose@contextresolves to the CIRPASS namespace. - Migrating the wrong direction:
migrate --to cirpass-1.3against a payload that already declares CIRPASS shape. - A pipeline that hard-codes
--targetwhile feeding it mixed-family fixtures.
How to fix¶
- Drop the
--target/--toflag and let detection auto-route, or - Pass the family that matches the payload's declared
@context/ shape, or - If you intentionally want the cross-family pathway, use
dppvalidator migraterather thanvalidate.
See also¶
- Validation pipeline — Layer 0 detection.
ADR 0005 — CLI exit codes— howDET001maps toEXIT_FAMILY_MISMATCH.- Error Overview