Repository navigation
feat(evidence): UDS DID evidence-record schema with CI validator - #412
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 6 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 6 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 6 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 6 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
What changed
Update 3 open, Dec 14–20 row in
docs/product_calendar.md— the evidence-record schema, landed early. Builds directly on the coverage ledger from #408.docs/evidence/schema-uds.json(new) — the<family>.uds.jsonformat for polled-DID evidence, the record shape that retires[needs verification]markers. Every record carries the update-3 identity contract: chassis (vehicle.chassis, required), firmware (≥1 of sw/hw/integration_level, required — DID applicability moves across integration levels), adapter (kind: enet/kdcan, optionallatency_timer_mstying to the FTDI invariant), parameter (profile+param+did+decode), units (expected.unit, required), result (pass/fail/inconclusive). Two deliberate decisions:responseis the full raw positive response including the0x62service byte and DID echo — reproducibility beats compactness.nrc+result: "fail"records it with proof instead of silence, and keeps the marker on.scripts/validate_evidence_packs.py(new, stdlib-only) — the enforced half of the contract. The JSON Schema docs stay human-readable; this script is what CI runs (the repo is stdlib-only, nojsonschemadependency). Validates both pack families — CAN packs against the schema.json rules,*.uds.jsonagainst the new rules — and cross-checks every UDS record against the profile it claims:didmust equal the profile param'sdid:query,decodemust equal the profile's decode, OBD-backed params are rejected in UDS packs,result: "pass"requires a positive response whose DID echo matches.backend/tests/test_evidence_packs.py(new) — 12 tests: repo packs validate, plus fixtures for the good path and each failure mode (missing field, decode/DID mismatch, pass-without-response, bad DID echo, NRC-only fail record, missing unit, unknown profile, OBD param in a UDS pack,pack_has_passing_recordboth ways).backend/tests/test_evidence_coverage.py— the promotion rule, closing the calendar gate's "no unverified coverage promoted": a ledger entry may flip tostatus = "evidence"only when the referenced pack holds aresult = "pass"record for that exact parameter — never on fail/inconclusive, and profile-level (*) markers are never promoted by a single pack.docs/evidence/README.md— the "UDS DID packs" section replaces the "schema extension is January work" placeholder with the format, a worked example, and the validation pointer.docs/product_calendar.md— Dec 14–20 row marked landed Nov 29.No example UDS pack ships: the simulator's DID map (0x1000-series, E90 personality) doesn't cover the F-series DIDs the marked profiles poll, and inventing responses would be dishonest. First real pack lands with the first real-car capture.
Schema review against the existing skeleton (the row's gate)
Reused from
schema.jsonunchanged:vehicleobject (VIN vs WMI+serial privacy convention),source(minLength 5),captured_at(ISO 8601),notes. New, UDS-specific:profile/param/did/decode(profile-keyed identity),response/nrc(the capture),expected.unit(units as first-class claim),result(verdict),firmware,adapter. Deliberately not reused: CANid/dataframe shape — a polled DID exchange is not a broadcast frame.Verification
python scripts/validate_evidence_packs.py— OK (existingn55.example.jsonpasses the CAN path)python -m pytest backend/tests/test_evidence_packs.py backend/tests/test_evidence_coverage.py backend/tests/test_gen_content_pages.py -q— 25/25 pass (caught and fixed one real bug during development: DID comparison mis-normalized the0xprefix)Scope
Tier A — docs/evidence data contract + scripts + tests. No app code, no profile changes, no ledger promotions: all 90 markers stay exactly as they are.