Skip to content

feat(evidence): UDS DID evidence-record schema with CI validator - #412

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/uds-evidence-schema
Nov 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/uds-evidence-schema

Conversation

@ohgeeceee

Copy link
Copy Markdown
Owner

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.json format 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, optional latency_timer_ms tying to the FTDI invariant), parameter (profile + param + did + decode), units (expected.unit, required), result (pass/fail/inconclusive). Two deliberate decisions:

  • response is the full raw positive response including the 0x62 service byte and DID echo — reproducibility beats compactness.
  • A refused DID is evidence too: 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, no jsonschema dependency). Validates both pack families — CAN packs against the schema.json rules, *.uds.json against the new rules — and cross-checks every UDS record against the profile it claims: did must equal the profile param's did: query, decode must 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_record both ways).

backend/tests/test_evidence_coverage.py — the promotion rule, closing the calendar gate's "no unverified coverage promoted": a ledger entry may flip to status = "evidence" only when the referenced pack holds a result = "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.json unchanged: vehicle object (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: CAN id/data frame shape — a polled DID exchange is not a broadcast frame.

Verification

  • python scripts/validate_evidence_packs.py — OK (existing n55.example.json passes 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 the 0x prefix)

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.

@ecc-tools

ecc-tools Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 414c9a5f3ec7367d6d780b9295e453345e6cfa79

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

ecc-tools Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 414c9a5f3ec7367d6d780b9295e453345e6cfa79

PR taxonomy review recommended (neutral)

Detected 1 PR taxonomy bucket(s): CI/CD Recommendation.

Scanned 6 changed file(s).

Roadmap taxonomy buckets:

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • Regression coverage may lag behind the diff
  • 0 CI or workflow path(s) changed

Paths:

  • backend/tests/test_evidence_coverage.py
  • backend/tests/test_evidence_packs.py
  • docs/evidence/schema-uds.json
  • scripts/validate_evidence_packs.py

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

ecc-tools Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 414c9a5f3ec7367d6d780b9295e453345e6cfa79

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 /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

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

ecc-tools Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 414c9a5f3ec7367d6d780b9295e453345e6cfa79

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 src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

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.

@github-actions
github-actions Bot merged commit 07d7f93 into main Nov 29, 2026
17 checks passed
@github-actions
github-actions Bot deleted the feat/uds-evidence-schema branch November 29, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant