Repository navigation
CI-family trust repair — detector re-adjudication, revision-2 re-measurement, workflow corpus lane - #39
Merged
Conversation
…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).
🔨 Mjölnir — Verification TrustComparing against the stored baseline (commit Score: 99/100 · WORTHY (trusted) Held in worthy hands — 1 findings remain.
1 new finding (0 error, 1 warning): 🟡 1 warnings
What to run next: npx mjolnir-qa@0.5.5 . # full scan + score
npx mjolnir-qa@0.5.5 . --verbose # every finding, uncappedAdvisory 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
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
This was referenced Sep 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
M2 of the Stable 1.0 verification-trust plan, rebased cleanly onto v0.5.5 (supersedes #37).
Verification
typecheck · lint · 6002 tests · build — all green