Skip to content

feat(evidence): coverage ledger mapping all 90 needs-verification markers - #408

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/evidence-coverage-ledger
Nov 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/evidence-coverage-ledger

Conversation

@ohgeeceee

Copy link
Copy Markdown
Owner

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:

Profile Markers Dominant gap
b48 13 (incl. profile-level) OBDb-mirror + G-series applicability
b58 4 UDS-DID unvalidated
n20 13 (incl. profile-level) OBDb-mirror
n52 / n54 3 + 3 OBD bench (PIDs 5E/5F/62)
n55 6 UDS-DID unvalidated
n57 20 (incl. profile-level) OBDb-mirror + diesel DDE set
s55 15 (incl. profile-level) OBDb-mirror
s58 13 (incl. profile-level) OBDb-mirror

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 are gap/evidence only, gap references must be defined, evidence references must point at real parseable packs, gap definitions must carry summary + 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 pass
  • node scripts/lint-toml.js — OK, 59 files (ledger included)
  • Marker inventory generated programmatically from community/profiles/*.toml (90 markers), not hand-counted

Scope

Tier A — docs/data + tests. No app code, no profile changes: every marker stays exactly where it was.

@ecc-tools

ecc-tools Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 3f1da79c48ab4f129a3af354112fd4d60cd2dde7

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

ecc-tools Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 3f1da79c48ab4f129a3af354112fd4d60cd2dde7

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

ecc-tools Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 3f1da79c48ab4f129a3af354112fd4d60cd2dde7

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 /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 28, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 3f1da79c48ab4f129a3af354112fd4d60cd2dde7

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 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 3c8c34f into main Nov 28, 2026
17 checks passed
@github-actions
github-actions Bot deleted the feat/evidence-coverage-ledger branch November 28, 2026 10:54

@ohgeeceee ohgeeceee left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

github-actions Bot pushed a commit that referenced this pull request Nov 28, 2026
## 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.
github-actions Bot pushed a commit that referenced this pull request Nov 29, 2026
## 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.
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