Repository navigation
feat(evidence): coverage ledger mapping all 90 needs-verification markers - #408
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 4 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 clear (success) Scanned 4 changed file(s). No taxonomy bucket signals were detected. Scanned 4 changed file(s). No PR taxonomy bucket signals were 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 / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 4 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 4 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 - Verifies `registry.json` using pure RFC 8032 Ed25519 and a pinned marketplace public key before accepting or caching a fresh listing. - Refuses present-but-invalid signatures while preserving cached browsing and installed-plugin management. - Keeps an explicit legacy unsigned fallback and an unsupported-WebCrypto notice; offline cache state makes no fresh trust claim. - Validates optional per-version `changelog` text (maximum 4,000 characters) and renders it as plain text in single install/update and Update-all consent. - Stamps v5.4.0 (`Verified Registry`, 2026-11-28) across app manifests, Cargo metadata, README, CHANGELOG, release notes, and website surfaces. - Marks v5.3-plan P1 shipped; P2 remains proposed. - Includes current `main` through PRs #407 and #408. Registry publisher: ohgeeceee/beemuu-plugins#7 is merged. Its deployment succeeded, and the live 12-plugin registry verifies with this app's verifier. ## Local verification - Focused marketplace tests: signed verification, tamper/malformed/wrong-key refusal, legacy fallback, offline cache/management, changelog validation, and enabled-state-preserving update all passed. - Full frontend: 1,190 passed, 1 skipped; only the established Windows CRLF `Cargo.lock version` assertion failed. Linux CI is authoritative. - Backend: 277 passed in the full run; two Git-fixture failures were caused by inherited `GIT_CONFIG_*` shell state and their six-test file passes with that state removed. The remaining local failure is the Windows executable-bit assertion for `ops/bootstrap-admin.sh`. - Rust: `cargo` is unavailable in this local shell; mandatory Linux CI must pass. - `git diff --check`: clean. ## Release gate Merge only with every required check green. After merge, tag `v5.4.0`, verify all signed release assets and `latest.json`, then dispatch the website and marketplace release syncs.
## 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.
What changed
Update 3 prep (January beat,
docs/product_calendar.md): the wiring that makes "every[needs verification]marker maps to an evidence record or a named gap" a CI-enforced contract rather than a doc promise.docs/evidence/coverage.toml— the ledger. All 90 markers across 9 profiles are mapped:Four named gaps, each with an actionable
closes_when:profile-unvalidated,obdb-mirror-unvalidated,uds-did-unvalidated,obd-bench-unvalidated. Every entry is honestly a gap today — the one existing pack (n55.example.json) is a simulator baseline for CAN broadcast decoders, adjacent to but not DID validation, and the ledger says so.backend/tests/test_evidence_coverage.py— 8 guard tests enforcing the contract both ways: marker without entry fails, entry without live marker fails (no rot), statuses aregap/evidenceonly, gap references must be defined, evidence references must point at real parseable packs, gap definitions must carrysummary+closes_when. Runs in the existing CI python job — no workflow change.docs/evidence/README.md— new "Coverage ledger" section documenting the contract, and naming the record form that closes UDS gaps (<family>.uds.json: DID request, raw positive-response payload, expected value, provenance). The schema extension for that form stays with the January beat — this PR deliberately does not design it.docs/product_calendar.md— Jan 4–10 row notes the prep landed Nov 28.Also verified during prep: all nine decode functions used by marked params (
u16_tenths,u16_div100,s16_div4,s16_div100,u8_div100,u8_enum,u16_fiftieths,u32_be,u16_half) are implemented in both Rust and JS — no decode-fn-missing gaps; every gap is a validation gap.Verification
python -m pytest backend/tests/test_evidence_coverage.py -v— 8/8 passnode scripts/lint-toml.js— OK, 59 files (ledger included)community/profiles/*.toml(90 markers), not hand-countedScope
Tier A — docs/data + tests. No app code, no profile changes: every marker stays exactly where it was.