Skip to content

fix(review): separate analysis, publication, and gate truth for summary findings #839

Closed

Description

@EffortlessSteven

Problem

A review packet can contain substantive summary-only findings and failed/timed-out sensors, suppress the PR-facing review body, and still end in a sufficient/pass state. The perl-lsp-swarm#5797 calibration packet demonstrated the failure:

  • substantive findings existed in the compiled review;
  • several sensors failed or timed out;
  • model budget exhaustion reduced coverage;
  • the publication selector withheld the review body;
  • no useful GitHub review was posted;
  • the terminal result still appeared sufficient/pass to the consumer.

This loses useful investigation and lets publication failure or evidence insufficiency masquerade as a clean review.

Required result boundaries

Keep three outcomes separate:

{
  "analysis_result": "clean | findings | limited | not_proven",
  "publication_result": "posted | not_needed | failed | not_proven",
  "gate_result": "pass | finding | not_proven"
}

Rules:

  • substantive summary-only findings count as reviewer value;
  • findings without a safe inline location appear in a structured summary review;
  • failed/timed-out/skipped sensors reduce evidence coverage;
  • insufficient evidence cannot yield clean;
  • material findings plus skipped/failed publication yield not_proven;
  • model budget exhaustion is explicit;
  • one successful sensor cannot erase several failed instruments;
  • advisory operation may remain non-blocking, but the result must remain truthful.

Implementation slices

U1 — compiled-review publication semantics

  • treat substantive summary findings and evidence gaps as publishable reviewer value;
  • generate a useful grouped review when inline comments are unavailable;
  • record publication skip/failure separately from analysis.

U2 — result model and action outputs

  • expose analysis/publication/gate outcomes independently;
  • expose sensor coverage, failures/timeouts, model-budget exhaustion, finding counts, and review-body publication;
  • make publication/model/instrument failure not_proven.

U3 — incident regression

Create a minimized fixture shaped like the #5797 packet:

substantive summary findings present
+ multiple sensors failed/timed out
+ no inline position
+ publication selector suppresses body
→ expected: analysis=findings, publication=failed/not_proven, gate=not_proven

Also cover a genuinely clean complete run and a clean analysis where publication is legitimately unnecessary.

Acceptance

  • Material findings cannot remain artifact-only while the consumer receives pass.
  • Summary-only findings produce a useful GitHub review body.
  • Publication failure is visible and cannot yield pass.
  • Sensor/model/instrument insufficiency is limited or not_proven, never clean by default.
  • Advisory workflow behavior remains non-blocking without becoming misleading.
  • The action exposes structured outputs that downstream workflows can consume without parsing prose.

Non-goals

  • No promotion to required merge gate in this issue.
  • No requirement that every sensor be required.
  • No suppression of complete red packets.
  • No claim that model review replaces deterministic proof.

Consumer

EffortlessMetrics/perl-lsp-swarm#3653 will pin the corrected action and repair its profile/sensor/publication configuration after this lands.

Activity

  1. coderabbitai commented on Aug 7, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #758 - feat(review): narrow current-head claims and adaptive proof planning [merged]
    #793 - fix(verifier): reconcile blocking evidence-gap counts [merged]
    #819 - fix(gate): enforce exact pass for direct runs [merged]
    #833 - feat(review): admit evidence-backed public items [merged]
    #834 - feat(review): degrade output by evidence value [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions