Skip to content

CI-family trust repair — detector re-adjudication, revision-2 re-measurement, workflow corpus lane - #39

Merged
Sergey-Bar merged 5 commits into
mainfrom
eng/verification-trust-2.0
Sep 6, 2026
Merged

Sergey-Bar merged 5 commits into
mainfrom
eng/verification-trust-2.0

Conversation

@Sergey-Bar

Copy link
Copy Markdown
Owner

Summary

M2 of the Stable 1.0 verification-trust plan, rebased cleanly onto v0.5.5 (supersedes #37).

  • QA-CI-001..010 detector fixes, each anchored to adjudicated FP evidence, all behind detectorRevision 2 bumps with invalidated rev-1 measurements
  • QA-CI-009 measured for the first time on real code (n=10, 0% FP, extended)
  • Re-adjudicated corpus verdicts (+446 positive-fixture rows), regenerated FP-AUDIT/measured-fp sidecars
  • Measured coverage: 76/99 (matrix generator: 0 drift, 0 unmeasured-in-core)

Verification

typecheck · lint · 6002 tests · build — all green

…asurement, workflow corpus lane

M2 of the Stable 1.0 verification-trust plan (plan
1788544178891-verification-trust-category-strategy).

Detector fixes, each anchored to adjudicated FP evidence from the
corpus verdicts (2026-09-02 wave 5 + this pass), all behind
detectorRevision 2 bumps with invalidated rev-1 measurements
(plan section 07 stale -> re-measure):

- QA-CI-001: re-run outcome idiom (steps.*.outcome == failure) no
  longer flagged; --merge-reports / collect-only / rebalance run
  shapes excluded; '(non-blocking)' step names respected.
- QA-CI-002: shared VERIFICATION_GATE_RE gained mvnw wrapper coverage
  (additive; keycloak ./mvnw test loops).
- QA-CI-005: producer vocabulary rebuilt as a literal array — Java/
  JaCoCo (mvn/mvnw/gradle jacoco*Report, incl. gradle-build-action
  with.arguments), Python (pytest --cov, coverage run/combine,
  COVERAGE_FILE), Go/.NET/Rust cover profiles, script-name coverage
  (npm run test:coverage), named report files; upload-artifact with
  values excluded from the producer scan; coverage-data download is
  production evidence; per-job line anchoring.
- QA-CI-007: inline retry-loop branch requires counter-style loop
  constructs (seq/range/{a..b}/digit lists/while-true/max_attempts/
  until-succeed) around a test-runner gate; curl/wget network probes
  excluded; per-step line anchoring for both branches.
- QA-CI-008: earlier tolerated step must be a verification gate;
  later always() enforcement steps (exit 1 on status != success)
  refute the green-flip diagnosis (hashicorp/vault class).
- QA-CI-009: quoted-string shell separators stripped before the
  ;-sequence scan (yarn berry e2e-vitest class); shell block
  keywords (do/then/done) after ';' skipped; measured for the
  first time on real code (n=10, 0% FP, extended per the n>=20 +
  Wilson-CI core bar).
- QA-CI-010: compound conditions with PR-inclusive branches (non-
  draft PR, labeled trigger, head.repo.fork == false) no longer
  misread as PR skips (nocodb/grafana/streamlit classes).

Workflow corpus lane (M2): CORPUS +3 — junit5 (JVM CI), yarnpkg
berry (first real QA-CI-009 surface), pyca cryptography (multi-
language CI); scan durations verified non-truncating.

Fixture corpora: +4 positive workflow exhibits for CI-009 (to
n=10), +6 orphan-codecov/coveralls and +5 green-flip exhibits
(CI-005 to n=13, CI-008 to n=10), negative producer/condition
exhibits; per-repo baselines re-recorded under rev-2 detectors;
positive-fixtures verdict duplicates (9 rows) removed.

Verdict maintenance: CI-family rows re-verified line-by-line
against live scans — orphaned rows pruned, misclassified TP rows
(appsmith green-flip over a non-gate tolerated step) corrected to
FP, new findings classified with W1.1 provenance fields
(classifiedAt/classifiedBy/protocolVersion). QA-PY-105 sidecar
entry restored (declared rev 2 since the Phase 2 retune).

Honesty surface after re-measurement: 76/99 measured (was 74);
CI family now 13%/12%/8%/0%/0% at n 10-19 (was 32/19/82/27/75/
unmeasured) — the family that gates CI trust no longer carries the
registry's worst measured FP rates. Rule freeze (M1 funding) in
effect; standing gate green (lint 0/0, typecheck, 5391 tests,
coverage, build, golden lock, self-scan WORTHY 99/100).
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🔨 Mjölnir — Verification Trust

Comparing against the stored baseline (commit be0a3bccc2af2f71700ab72338ba17c8671c356d) — showing only what this PR changed.

Score: 99/100 · WORTHY (trusted)

Held in worthy hands — 1 findings remain.

Category Score
QA-PW 99/100

1 new finding (0 error, 1 warning):

🟡 1 warnings
  • 🟡 QA-PW-125 tests/rules/rule-arm-completion.spec.ts:86 — Global setup mutates shared state: `query("DROP TABLE users"…`. [E1 · heuristic]
    Fix: Target an ephemeral per-run environment \(testcontainers, branch DB\) instead of shared infrastructure.

What to run next:

npx mjolnir-qa@0.5.5 .            # full scan + score
npx mjolnir-qa@0.5.5 . --verbose # every finding, uncapped

Advisory only — this comment never blocks merging. Generated by Mjölnir.

… for CI rules

Found via the 100% coverage floor: laterStepEnforcesFailure sliced from
steps.indexOf(last) — the FINAL step — so the window was always empty
and the rev-2 hashicorp/vault FP-class suppression (a later always()
step re-checking the tolerated result and exiting 1) could never fire.
The detector now slices from the tolerated step, making the enforcement
arm real; ci-trust-arms.spec pins all three postures (enforced, not
enforced, upload-not-a-gate).

Also: 007/005 line-resolution fallbacks simplified to their documented
invariants (call sites guarantee non-empty command/run text — casts
replace dead ?? arms; the anchored/file-wide two-regex ladder keeps one
dead branch only where the honest floor (line 1) is unreachable by
construction). Arms specs added for the download-artifact production
evidence, with-path aggregation, and above-declaration fallback paths.

Verified: 6015 tests green, coverage floor 0 violations, lint,
typecheck.
@Sergey-Bar
Sergey-Bar merged commit bb65fa3 into main Sep 6, 2026
17 checks passed
Sergey-Bar pushed a commit that referenced this pull request Sep 6, 2026
…h this one

While the previous merge's fix commit was in flight, an entirely separate
PR (#39, "CI-family trust repair — detector re-adjudication, revision-2
re-measurement, workflow corpus lane") landed on main, taking it from
v0.5.4 to v0.5.6. That's why PR #33 showed mergeable_state "dirty" and no
fresh CI had started for the previous fix commit — not a stuck runner,
main had moved again underneath it.

Five conflicts, all mechanical or superseded-content, none in logic this
branch owns:

  - package.json, .claude/commands/mjolnir.md: version bump (0.5.4 ->
    0.5.6). mjolnir.md's own committed copy on main still said v0.5.5 —
    main's own version-sync had lagged one release. Regenerated it
    properly with `mjolnir install --force` rather than copying either
    side's stale text, so it actually matches package.json now.
  - README.md, honesty-numbers paragraph: main re-ran the FP corpus
    measurement (74/99 -> 76/99) independently of the fix I made to this
    same paragraph earlier. Took main's numbers outright — they're a real
    re-measurement, mine was arithmetic correction on stale ones.
  - README.md, Trust model / Architecture: this branch's restructure had
    already moved this whole section to the docs site as redundant
    content. Main had, in the meantime, added something that ISN'T
    redundant — a new `--enable-plugins` / `MJOLNIR_ENABLE_PLUGINS` opt-in
    gate, a real security-relevant behavior change with no other home (I
    checked: neither the site nor this branch's trimmed README mentions
    it anywhere else). Dropping it wholesale to preserve the restructure
    would have shipped a README silent on a new safety-relevant flag.
    Kept that one bullet, condensed; the Architecture tree and the rest of
    the old bullets stay cut, since those remain genuinely redundant with
    CONTRIBUTING.md and the site.
  - assets/readme/{demo,terminal-hero}.svg: took main's regenerated
    copies, then regenerated AGAIN locally and verified byte-identical —
    main's copies were generated against their own tree and don't reflect
    this branch's reporter changes (one hammer, width wrapping) layered
    on top.

Regenerated after resolving: both README SVGs, both video capture
scripts, and both videos — the corpus re-measurement changes several
rules' FP%, and one previously-unmeasured rule (QA-CI-009) gained a
measured-FP suffix long enough to trigger this branch's own evidence-
bracket wrap logic for the first time on real content. Re-verified the
README's inline `explain QA-CI-001` sample against the new 11% (was 32%)
measurement using the same verified line-range splice as last time — no
blind string replacement.

Full suite: 6,072 passed. Three failures, all environmental and none
introduced by this merge: the same two pre-existing root-permission tests
from before, plus one more of the identical class in main's own new
tests/audit/audit-coverage-arms-5.spec.ts (chmod 0444 does not block a
write when the process runs as root) — confirmed failing identically on
unmodified origin/main in an isolated worktree before writing this off.
Self-scan: 99/100 WORTHY.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019DNLSymcNGsbb1MoxKd5hu
@Sergey-Bar
Sergey-Bar deleted the eng/verification-trust-2.0 branch September 15, 2026 16:38
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