Skip to content

fix(gate-truth): distinguish disabled model review from unavailable model evidence #1352

Open

Description

@EffortlessSteven

Purpose and ownership

Bounded current-product reporting repair under #1339/#1341; related #839/#926 and #957. Not a replacement for the future #1272 model-off SharedRunPlan or #1015 enforcement migration. Preserve the existing runtime merge-front and coordinate any shared gate_truth/terminal-state writer before implementation.

Verified evidence

Re-read main at 7453db0a4f1976b4a6b5481da06e4cfd0837b902 on 2026-10-10. The contained workflow explicitly selects model-mode: off and artifact-only operation. src/gate_truth.rs::build_model_coverage copies terminal_state.model_lanes; build_gate_truth adds model-coverage: whenever total > 0 and usable == 0. Its comment assumes model-off plans no lanes, but the retained production packet contradicts that assumption.

In PR #1347's exact 9fa5ac2353194209b26d89672fb7c66bf4810a93 packet, run 38006904966, artifact 11651950018 (ZIP SHA256 540af8070e670d6985fc8ad7988e0753309a719f033cec41d2731097d540ac3e):

  • review/terminal_state.json: model_mode="off", model_lanes=8, usable_model_lanes=0.
  • review/gate_outcome.json: model_coverage.lanes_total=8, plus model-coverage: 0 of 8 model lanes produced usable output.
  • The actual gate failure is independently explained by RIPR 27/max0; three Required proof obligations are also unproven. Neither is excused by this issue.

The archive and manifest-backed state were inspected; this is a retained-run observation and current-source trace, not a new full CLI reproduction. Current gate_truth.rs still contains the applicable calculation. Fresh issue searches for model-off coverage and the literal model-coverage reason found broader authorities, not a dedicated repair for this disabled-mode case.

Source:

  • .github/workflows/ub-review-gate.yml at the stated main.
  • src/gate_truth.rs::build_model_coverage and build_gate_truth.
  • Terminal-state/model-receipt construction feeding those functions; trace before choosing the minimal fix.

One-PR outcome

Carry or derive explicit model-review applicability so deliberately disabled review is not reported as a failed/unavailable model investigation. Preserve configured/planned/skipped diagnostics where useful, but distinguish them from the denominator of model work that was actually applicable. Do not infer applicability by matching free-form reason text or simply erase all failed model rows.

No model review must also remain not performed, not a claim that a semantic review found no defects. Deterministic evidence may be complete in model-off mode without claiming model judgment exists.

Acceptance and proof

  • Add a tests-first production-path regression with a nonempty configured lane set and model mode off; assert actual terminal, coverage, gate-truth and serialized artifacts, not a hand-built fixture with lane count already zero.
  • Off mode performs zero provider requests and emits no model-unavailable/model-budget-exhausted reason solely because models were disabled.
  • Model-on with missing credentials, total provider failure, exhausted budget, and partial usable results remains separately and accurately reported.
  • Deterministic violation and missing Required proof retain their exact findings/non-pass reasons under off mode. This issue cannot make the retained 27/max0 packet pass.
  • An explicit no-applicable-model case differs from a failed applicable model attempt; no generic model-clean claim is introduced.
  • Reporter, terminal, summary and verifier expectations agree on the same denominator; maintain or explicitly version wire compatibility as necessary.
  • Independent red/green evidence, focused CLI/Action tests, full current baseline, exact-head required gate and independent review are retained.

Non-goals / rollback

No model scheduler, new provider, shared-plan implementation, new deterministic CI authority, analyzer pin/threshold/suppression change, publication, secrets or branch protection. Restore the prior reporting code if needed while retaining the counterexample; do not mask the fault by removing configured lanes or model-off acceptance from the corpus.

Activity

  1. added
    bug
    on Oct 10, 2026
  2. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Coordination reservation for a bounded #1339 current-product repair, starting from main 411d68f. I found no existing implementation claim/PR for #1352. Scope: explicit model-off applicability in current coverage/evidence reporting; retain configured/skipped lane diagnostics, zero provider calls, unchanged deterministic/Required-proof failures and legacy enforcement. Tests first through the actual run/artifact path. No scheduler, delivery finalization, provider transport/schema parsing, onboarding or release activation. Expected shared reporting surfaces will be coordinated with PR #1317; its publication branch and runtime front remain owned and untouched. A draft PR will retain RED/GREEN and current qualification limits; no merge is authorized in this session.

  3. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Touch-domain refinement for the parallel burst: canonical source edits are limited to src/gate_truth.rs and src/summary_render.rs, plus a new tests/model_off_applicability.rs target. The required producer guard at src/main.rs's initial missing_or_failed_model_evidence collection will be delivered as a small patch to the shared main.rs writer: filter receipts only when args.model_mode is Auto. Applicability comes from typed mode, never free-form reason matching. Existing status classification, configured/skipped receipts and terminal counts remain backward-compatible. An isolated assembled copy will test that exact hunk; canonical main.rs remains untouched by this lane. No verifier changes appear necessary from current count/result contracts.

  4. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Coordination: integration session 01a1290d-5fb3-7333-952b-867c137570ff has selected the #1352 producer repair. My independent #1341 lane changes only tests/release_result_planes.rs and verifies current gate-check authority against conflicting advisory result planes; it does not fix or compete on model applicability, terminal reporting or gate_truth. Source at main411d68f still confirms the issue: build_model_coverage copies terminal model_lanes and build_gate_truth adds model-coverage whenever total>0 and usable=0 without consulting off-mode. Acceptance review: require an actual nonempty-configured-lane model-off run with zero provider requests; independently assert terminal/gate/summary/verifier agreement, semantic review not performed, no disabled-only unavailable/budget reason, retained deterministic violation and missing Required proof, and distinct model-on missing-credential/outage/budget/partial cases. Existing hand-built zero-lane unit fixtures and dry-run model-call counters do not satisfy that production-path regression. No producer/shared-helper files touched.

  5. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Additional independent acceptance traps on main411d68f: (1) src/main.rs::skipped_model_lanes_are_missing_evidence_when_review_work_was_suppressed explicitly asserts a skipped 'model-mode off' lane IS an evidence issue; production collects those at model receipt construction, while terminal model_lanes retains input.model_lanes.len(). Fixing only gate_truth's denominator can leave model-off gaps in terminal/public diagnostics. (2) build_gate_truth falls through to analysis_result='clean' when no findings/not-proven reasons/coverage losses remain. If off-mode applicability zeros the denominator, retain explicit 'semantic review not performed' meaning so complete deterministic evidence is not presented as a completed clean semantic review. (3) artifact_only_run_with_no_usable_lane_is_not_proven covers provider outage under artifact-only, so using terminal status='artifact-only' as the applicability discriminator would incorrectly erase that control. The actual mode, nonempty configured lanes and production serialization must drive the regression. This is read-only review; no competing producer edits.

  6. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Implementation is published as draft PR #1373, branch fix/1352-disabled-model-coverage, exact head 1bed8a6. Four added tests: same-input Off/Auto coverage control plus three real CLI artifact paths for disabled configured lanes, missing Required sensor enforcement, and unsupported Required proof. RED/GREEN, three compiled mutation kills/restored GREEN, all seven local baseline checks and independent source review are retained in the PR. Source scope is gate_truth.rs, summary_render.rs, the separately coordinated write_review_artifacts initial model-evidence filter, and the new model_off_applicability integration target. No schema/default/enforcement/publication change. Exact-head hosted qualification remains pending; keep issue open and PR draft until that boundary is earned.

  7. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    PR1373 advanced to 2bc9478 with tests-only acceptance-evidence follow-up. Five real CLI cases now pass, including actual configured deterministic sensor failure and actual malformed Required-check policy violation. The full artifact verifier runs on all five emitted packets; no verifier bypass/change. Zero provider calls/owed model coverage remains exact. Sensor failure preserves existing fail/findings + publication/additive gate not_proven distinction; policy case is fail/findings/finding. Fmt, focused strict Clippy, diff-check pass. Details: #1373 (comment). Hosted product run38110405958 is pending; no hosted/combined-main or complete #1352 acceptance claimed. Draft and no-merge boundaries retained.

  8. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Archive-backed consumer evidence only, no gate_truth/runtime edits: draft #1391 at e60f891 executes preliminary local binary from source 777d86a through #1382 strict installation. Explicit model-off intelligent-ci/no-sensors/no-provider fixture emits conclusion=pass but gate_result=not_proven, analysis_result=not_proven, 0/1 usable model coverage and model-coverage reason. Required disabled tokmd fixture remains conclusion=inconclusive with a required evidence gap. This preserves your #1373 producer ownership; campaign currently pins the observed pre-fix contract as an explicit blocker and must be refreshed against your future source/archive before disabled applicability can be accepted. No live endpoints/actual credentials used. Campaign receipt 86894e8534287490ddc6229f55bdcaba04d9430c8430fdac72eb703fea4c307a.

  9. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Coordination receipt for #1352, #943 and landed #1663. On main af0f85444b44d6d05f0184a34bc7fa71b0d3428c (tree df45ff77faf425f816587d4fec1dfb0e5e42b6f5), Off with configured lanes and Auto with missing keys can emit identical model coverage counts. Terminal state carries the mode; gate JSON lacks the disposition. A two-file candidate adds model_coverage.disposition from the canonical mode and lane counts and documents its values. The pure fixture compares Off and Auto with two configured lanes and zero usable output, then covers unscheduled, partial and available evidence. This is lane evidence metadata, independent of semantic findings.

    Rust 1.95.0 isolated proof compiled the exact src/gate_truth.rs with cached dependencies and a small fixture harness. The new assertion alone failed on main plus the test (missing disabled); the candidate passed all 16 harness tests. Eight pre/post JSON controls matched after removing the new field, including deterministic failure and missing Required evidence. The existing verifier’s coverage check accepted all eight old and all eight new snapshots, and its self-test passed. Rustfmt and whitespace/apply checks passed. Patch SHA256 e732fed3c48c391b65806e02b3dad6cb1f52ab446e16c19d25fc76b0656f33d6 is retained in the task workspace.

    The candidate edits gate coverage serialization and its spec. It leaves #943’s summary candidate, #1663’s sensor-policy matrix, the existing verdict and reasons, and #1373’s separate producer recovery in their respective scopes. The current gate workflow starts on PR open, including drafts. The patch is retained for the coordinating owner; native workspace proof and exact-head PR review are pending an authorized publication route. No model or hosted runs were requested.

  10. EffortlessSteven commented on Nov 25, 2026

    @EffortlessSteven
    MemberAuthor

    Reverified through the actual ub-review run and gate-check entry points on main at fda83bf62b45a9b7db4e61945d31c2e83ba01e40 (Rust 1.95.0), using only synthetic inputs and no provider calls. With model review off and two configured lanes, the summary still lists both deliberately skipped lanes as missing or failed; the legacy conclusion remains pass and the evidence result is not_proven. With review enabled and no credentials, the summary instead reports missing_key and preflight_failed, with the same result pair. With review off and Required tokmd evidence missing, gate-check exits 1 with inconclusive / not_proven and correctly names tokmd. All three artifact verifications passed. Keep the Required-evidence refusal unchanged when fixing the wording and applicability. This checks current main only; #1373 is closed unmerged and this does not qualify its successor or a release binary.

  11. EffortlessSteven commented on Dec 1, 2026

    @EffortlessSteven
    MemberAuthor

    The exact isolated source candidate is available on an ordinary review branch: H 84c5d3cf8755a4bfd2dacbb1f45d0e0f987b737a, tree 82e338778e243ae0d4e2c6a825d23744b180f007, protected base fda83bf62b45a9b7db4e61945d31c2e83ba01e40. Native fixture comparison went 0/6 to 6/6; both Off and unavailable retain the old result planes, failed Required proof remains finding, and missing Required tokmd still exits 1. Independent verifier replay accepted all 12 genuine packets and refused contradictory disposition, mismatched counts and missing whole coverage. Full source re-review is pending. The pre-existing task-ledger-shadow expiration blocks local policy on both base and candidate. No PR was opened: the installed opened event schedules the full baseline and contained heavy gate even for Drafts; exact native runs for this branch are zero. No checks or protections were changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions