Skip to content

gate: render one concise agent-readable decision surface from receipts and final review #943

Open

Description

@EffortlessSteven

Parent

#840 — useful reviewer and trustworthy CI evidence gate.

Related authority/output work: #926 FinalizedOutcome, #865 ReviewJudgment, #765 delivery, #658 sole-gate UX, #809 terminal publication, onboarding #811.

Product intent

A great CI gate should eliminate workflow and artifact archaeology. Contributors and coding agents should not inspect ten checks, infer which failure is causal, or decode internal scheduler/model machinery. The one required decision surface should state exactly what passed, failed, or could not be proven, why, which receipts support it, and what bounded action follows.

The reviewer and gate share evidence but serve different jobs:

  • inline review explains material code/architecture findings at the right location;
  • the gate summary explains deterministic merge authority and infrastructure state.

They should agree without duplicating every finding or exposing committee internals.

Outcome

Introduce one concise GateDecisionSummary / agent-readable terminal surface derived only from:

RevisionIdentity
FinalizedOutcome
Required/Detective task consumers + terminal receipts
ReviewJudgment public finding identities
confirmed delivery receipts
stable coordinator/tool identity where applicable

Representative structure:

PASS | FAIL | NOT_PROVEN
reviewed revision / semantics
blocking deterministic evidence[]
required evidence unavailable[]
material reviewer actions[] or link to confirmed inline locations
nonblocking infrastructure/review degradation[]
exact reproduction / retry actions[]
receipt and artifact bundle references

A failed task may include its already-executed reproduction command. An unexecuted optional proof request must not become maintainer homework.

Scope

  • Render one bounded Markdown summary plus one machine-readable decision artifact.
  • Separate deterministic blockers, unavailable Required evidence, reviewer findings, optional/provider degradation, and delivery state.
  • Include exact current-revision receipt references for every blocking/non-proven statement.
  • Provide exact local reproduction commands only for approved tasks that actually executed or for a clearly identified retry of unavailable Required infrastructure.
  • Link to confirmed inline comments/replies rather than repeating their full prose.
  • Give coding agents a stable structured schema for next-action selection.
  • Suppress lane names, provider tables, request queues, duplicate/conflict markers, raw command logs, cache internals, and successful-tool inventories.
  • Preserve the full packet for audit while keeping the terminal surface small.
  • Support model-off runs and stable-coordinator publication.
  • Keep pass summaries quiet/minimal; no congratulatory boilerplate is required.

Acceptance

  • Every FAIL names at least one exact current-revision deterministic receipt and bounded reproduction/repair action.
  • Every NOT_PROVEN names the missing/unusable Required obligation, terminal reason, receipt/state evidence, and bounded retry path without accusing the code.
  • A provider/model outage appears as nonblocking review degradation when the deterministic spine is sufficient.
  • A confirmed inline reviewer finding is linked once and not duplicated verbatim in the gate body.
  • An unexecuted Detective/Advisory request never appears as a command for the maintainer to run.
  • PASS contains no false claim that optional review/model coverage was complete.
  • Model-off PASS/FAIL/NOT_PROVEN is fully understandable from the same schema.
  • A contributor or agent can determine the blocking next action without opening multiple workflow logs/artifacts.
  • Stale or mismatched receipt references fail artifact verification.
  • Summary byte/item budgets degrade by value without dropping blocking evidence.

Proof

  • PASS, deterministic FAIL, Required timeout/unavailable NOT_PROVEN, provider outage, posting failure, and mixed findings+not-proven goldens.
  • Confirmed-inline link/no-duplication fixture.
  • Unexecuted optional proof no-homework adversarial fixture.
  • Exact reproduction/retry action validation fixtures.
  • Model-off and stable-coordinator summary fixtures.
  • Size/degradation and forged/stale receipt negative fixtures.
  • Full summary/gate/review/delivery/verifier/CLI/workspace/fmt/Clippy/policy/exact-head gate.

Non-goals

Dependency/order

Build after #926 and #865 are available in shadow; integrate confirmed delivery from #765. It should be complete before #809 publishes the terminal required check and before #811 calls the product easy to adopt.

Rollback

Fall back to the prior bounded summary while retaining the structured decision artifact. Never remove exact blocking receipt references or collapse NOT_PROVEN into code failure/pass.


First-hour investigation acceptance — 2026-10-26

make next-action adequacy executable within its current scope

Extend the existing human/machine golden matrix with the actual first-hour consumer failure: available failing gate plus unavailable metrics; absent/invalid gate plus retained calibration pass; and semantic configuration error before execution. Each projection must preserve known blocking evidence, mark unavailable input as unavailable, and identify a bounded next action without reconstructing a result from another derived summary. Keep the #1554 separate from #1016's future source-of-truth migration.

For each existing FAIL/NOT_PROVEN action golden, retain the precise supporting receipt and reason, the action's target, the allowed executor, and the evidence that would resolve that reason. Reject a circular recovery that merely rereads the same missing artifact, an unsupported command, or a generic rerun presented as proof that the issue is fixed. The consumer must be able to distinguish correcting source/config, repairing tool/environment availability, recovering an original packet, and collecting one missing experiment. Use existing fields if sufficient; this is an acceptance refinement, not a demand for another action schema.

Preserve the mode distinction already owned by #1334/#1335/#1338: source-only next-evidence requests remain inert and own no CI result. Integrated approved reproduction/retry actions retain #1000's exact claim/task/receipt effects. Optional unexecuted work must not become mandatory author homework. An unavailable final judgment remains unavailable, even if delivery is quiet or a formatter succeeds.

Stopping evidence remains the existing #943/#1016/#1017 finite goldens and independent source/reference validation. Do not promise an automatic repair loop or require the full future platform before improving the demonstrated current diagnostics.

Activity

  1. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    PR-sized decomposition — #945 C6.2–C6.3

    1. C6.2 structured decision artifact — exact revision, FinalizedOutcome, blockers, Required gaps, reviewer-action IDs, nonblocking degradation, reproduction/retry and receipt refs; verifier first.
    2. C6.3 bounded presentation — Markdown/GitHub summary, confirmed-inline links/no duplication, value-based size degradation and agent-readable next-action schema.

    #926 C6.1 switches enforcement separately. #809 later publishes this surface as the stable terminal check. No unexecuted optional command may become maintainer homework.

  2. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Concrete PR decomposition

    #1016 structured agent-readable GateDecisionSummary
    → #1017 bounded GitHub/job summary linking confirmed inline review and suppressing machinery
    

    Both derive from #926 FinalizedOutcome, TaskLedger, ReviewJudgment and confirmed delivery; neither computes new truth. FAIL/NOT_PROVEN must name exact current-revision receipts and bounded actions. Unexecuted optional proof never becomes maintainer homework.

  3. EffortlessSteven commented on Sep 13, 2026

    @EffortlessSteven
    MemberAuthor

    Concrete consumer evidence for the existing summary-agreement contract: cargo-allow PR #4177, UB run 34732069165, artifact 10310337044 (ub-review-artifacts), reviewed synthetic merge c8b916de7cd201ceab9b6c8bb2bbae74e2ca2a2b.

    review/review.md says no findings were validated for inline posting and puts the index-test/post-phase proposals under Summary-only findings. review/github-review.json has an empty comments array but promotes those same proposals into a Confirmed findings section. The gate passes with needs-reviewer-attention. This requires consumer-side artifact comparison to determine finding authority; the proposed post-phase reduction also conflicts with the producer's selected before/after admission contract.

    Please retain this as a projection-agreement fixture under #943/#865/#1017: a summary-only/demoted proposal must not become a confirmed finding in another rendering unless the authoritative finding disposition changes. Assert matching public finding identities/statuses across Markdown and prepared GitHub payload, including the empty-inline case. This is output reconciliation, not a request to execute the model's optional proof suggestions.

    The same bundle also reports publication_result=posted while post-error.json records missing_token and payload_written=false; that separate delivery issue is already owned by #959. No new delivery issue is requested. Logs/artifacts: https://github.com/EffortlessMetrics/cargo-allow/actions/runs/34732069165 . This run is historical after a later cargo-allow source correction and is not current-head merge proof.

  4. EffortlessSteven commented on Sep 13, 2026

    @EffortlessSteven
    MemberAuthor

    Additional consumer evidence from cargo-allow #4177: Ready run 34737437326, artifact ub-review-artifacts 10311801575, exact merge e2ac07c7de879625ada14f79cdf0efb8ddb1ec5d (parents cb7f22ee / fe6cf535).

    The workflow passed, but the packet required manual reconciliation of nine summary entries, four degraded substantive lanes, an invalid-JSON refuter, two failed optional sensors, and an optional base-plus-tests compilation timeout. Head-side Rust proof passed 2/2. review/post-error.json records missing_token/preflight failure, while gate_outcome.json still says publication_result=posted; #959 owns that delivery-finalization mismatch, and cargo-allow #4255 owns its caller wiring.

    The one concrete summary allegation misread the existing Python predicate None != b"": the framing guard raises on a missing terminator. Both existing framing controls plus the CLI/index-failure controls passed again (4 tests, 6.846s); no source repair or bypass reproduction was needed. Full source/observation dispositions are retained in review 5189552311. Separate exact-pair CodeRabbit static review and full hosted CI supported the merge; the green UB job alone did not.

    This is evidence for #943's existing acceptance: distinguish completed deterministic proof, unavailable optional proof, summary concerns requiring adjudication, and failed delivery on one bounded terminal surface. Unsupported Python proof-intent targets and the timed-out base side must not become clean proof or unexecuted maintainer homework. The repository already ran the actual supported protocol directly, and the optional sensor-contract mismatch is tracked in cargo-allow #4252. No additional local workaround or expanded product PR was introduced.

  5. EffortlessSteven commented on Oct 15, 2026

    @EffortlessSteven
    MemberAuthor

    Reproduced a bounded current-summary reporting gap while tracing ripr-swarm #8008. Existing owner #943 is reused; this does not implement or close the future FinalizedOutcome/decision-surface programme.

    On main 3dbcc2b, render_review_efficiency_section displays legacy "Gate: pass" and omits analysis_result, gate_result and not_proven_reasons. It also hides the gate projection entirely when metrics.json is unavailable. The existing production CLI outage fixture returns success with conclusion=pass, zero usable model lanes, and unproven analysis/gate results. Four tests-first summary fixtures fail against original rendering.

    Bounded candidate: branch fix/workflow-review-summary, head 7bbd6bd, tree 25b70f4ee578dd3ac6b983f584e8b98fb5651c30. Branch push was read back; no PR opened. Existing workflows trigger broad qualification on PR creation, not ordinary branch pushes.

    The renderer now labels the legacy enforcement conclusion explicitly and renders the recorded analysis/evidence results and sanitized missing-evidence reasons before optional metrics. Missing/invalid result values fall back visibly to not_proven. Calibration's ambiguous Gate label is clarified. No enforcement, shared schema, delivery, threshold, suppression or workflow changes. #131787e28f8 owns delivery finalization and does not touch summary_render.rs; its patch is not duplicated. #13732bc9478 retains model-off coverage/adjacent model-lane summary ownership; this candidate does not alter those lines. main.rs changes are two test-label assertions only.

    Proof: four initial RED fixtures; all nine renderer tests GREEN; real provider-503 CLI outage GREEN; workspace/all-target tests 1,263 top-level passes, zero failures, one intentional ignore. Independent detached-worktree review at exact head found no material findings; 44 summary-related tests, both updated label tests and the CLI outage passed. A compiling omission mutation failed all four new summary fixtures, then pristine positive controls passed. Fmt/check/strict Clippy/docs/policy/verifier checks passed; existing rustdoc/policy-date warnings retained. Staged precommit against identical candidate tree reports zero blockers but cargo-allow/ripr/unsafe-review/ast-grep are missing, not passing analyzer evidence.

    Incident boundary: native run 38653225000/job 116156782378 at ripr-swarm head 57d6d72f864d7b1705f95bcec7052ef854e74c9d confirms success and advisory enforcement disabled; action pin 55e4fba. Artifact 11935743585 is retained (351508 bytes; API SHA256 dbda03c4a333fd0d4be6444c2a7b59ffdf2d72445bfefc5ae0c3dac8dbef0ed1), but local materialization hit proxy 403. This session has not independently read that packet's terminal/model fields and does not claim a byte-exact incident replay.

    Integration remains with the coordinating owner: reconcile #1373 adjacency, preserve #1317 schema ownership, replay focused/full checks on the assembled tree, then one explicit late required gate and fresh protected-merge decision. No hosted analyzer clearance, full #943 acceptance or live model proof is claimed.

  6. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    @EffortlessSteven A deterministic producer-to-summary regression case for the existing verdict-display work.

    On main 810527e3, the native sensor matrix supplies a two-packet control in ReviewByok: keep one healthy sensor, a Required cargo-clippy sensor with status=failed and timed_out=false, and no model evidence or material review findings. Change only the Clippy receipt's exit code.

    Clippy exit code Legacy conclusion / blocking reasons Recorded analysis / evidence result
    101 pass / 0 findings / finding
    absent pass / 0 not_proven / not_proven

    The first row is a demonstrated lint failure. The second never establishes an analyzer verdict. The truth derivation preserves that distinction, but the current gate summary line reads Gate: pass with 0 blocking reasons for both. This pair needs no provider outage and exercises the same visible sensor status for both inputs.

    Suggested regression for the existing task/public-summary-truth candidate and the recorded summary integration work: serialize each produced gate artifact, use bind_gate_fixture to satisfy current revision admission, and render with metrics absent. Assert the same legacy policy line and different evidence lines. The older candidate’s synthetic gate inputs lack the revision admission now required by #1619, so this control should use the current admission helper.

    This is a source-level trace and fixture specification. I did not execute the matrix or open a competing PR.

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

    codexenhancementtest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions