Skip to content

proof(unsafe-review): retain the remaining 0.3.8 comment-plan smoke receipt #913

Open

Description

@EffortlessSteven

Current remaining scope — exact-binary smoke evidence

The parser/adapter implementation merged through PR #915 at 4dde1d9250f56be6f71782a7a1962a3a54f980f2. The 2026-08-24 reconciliation leaves only the producer/consumer smoke receipt unproven. Do not create a second parser implementation PR or infer smoke completion from fixture tests.

  1. Search retained artifacts for the exact unsafe-review 0.3.8 / raw_pointer_alignment model-off run. Reuse only a receipt that binds the actual source/binary hashes, complete argv, exit statuses, and bounded output hashes.
  2. If absent, build or resolve the specified binary pair and execute the original bounded smoke: ub-review run --model-mode off --posting artifact-only --fail-on-gate false --tools unsafe-review, with explicit fixture/base/head/output arguments from the current CLI contract. Record those resolved arguments and binary paths/hashes. Use no credentials or posting.
  3. Retain the expected candidate/card ID, path/line, advisory trust boundary, operation family, and exact repair join, with malformed/unsupported-shape behavior covered by the existing tests. Do not substitute a different analyzer version without explicitly reconciling the original acceptance.
  4. Link the reproducible receipt, then close only when it satisfies the original exact-binary obligation. If the smoke reveals a code defect, capture a bounded trigger-backed repair and preserve the failure evidence.

Target surfaces: src/sensors/unsafe_review.rs, existing sensor tests and retained fixture/receipt conventions. No code change is presumed. The claim remains consumer routing and receipt provenance, not safety, UB absence, or witness execution. Remove smoke-only scratch/worktrees after retaining the receipt; preserve original failures and public issue history.

Historical implementation work packet

The original diagnosis, contract, and acceptance below remain as provenance for the merged implementation. The remaining execution instruction is the smoke-only scope above.

Problem

The exact producer/consumer smoke for
unsafe-review-swarm #2116
found that ub-review retains and routes the unsafe-review 0.3.8 gate bundle but
silently loses its comment candidates.

At unsafe-review commit
672a4c259dd9ddf8e4fa81d861b57d0d5e1254e1 (0.3.8),
comment-plan.json is an object envelope containing comments. At ub-review
commit 9de43c5215c8e4278cce9421b55991ced4f66065, the consumer attempts to
deserialize the whole file as Vec<UnsafeReviewCommentPlanEntry> and applies
unwrap_or_default() on failure. The producer selected one exact ReviewCard,
but the model-off consumer run reported Comment-plan candidates: 0 without a
typed artifact gap. Consequently the card-id repair join was not reached, and
operation_family was only present in raw retained JSON/diff text.

This is a follow-up to the structured routing delivered for #359, not a request
to restore the obsolete top-level array producer shape.

Target seam

  • Route the supported unsafe-review 0.3.x comment-plan object envelope by its
    declared schema and parse comments fallibly.
  • Treat malformed or incompatible structured input as an explicit typed
    evidence gap; never silently convert it to a valid empty candidate set.
  • Preserve the exact card_id and join its repair-queue context by that ID.
  • Bind and propagate operation_family as an opaque, nonempty typed value.
    Do not impose a closed vocabulary on future producer families.
  • Preserve the producer's advisory trust boundary through the candidate and
    repair projection.

Acceptance criteria

  • A fixture using the real unsafe-review 0.3.8 object envelope with one comment
    yields exactly one semantic consumer candidate with the same card ID, path,
    line, trust boundary, and operation family.
  • The same card ID joins the intended repair-queue entry; a missing or
    mismatched repair entry is explicit rather than silently attached to another
    card.
  • Additive unknown object fields are accepted.
  • A malformed comment-plan, wrong top-level type, missing comments, malformed
    entry, or missing required pointer file produces a typed artifact/field/reason
    disposition and no candidate.
  • Unsupported gate schema unsafe-review-gate/v999 continues to produce a
    typed artifact gap, no structured candidate, no Markdown fallback, and an
    advisory command exit when --fail-on-gate false is used.
  • A consistent nonempty future operation_family value is retained; empty or
    inconsistent values are rejected/degraded explicitly.

Proof

  • Focused unit tests for the real object envelope, additive fields, malformed
    and missing shapes, repair card-ID match/mismatch, opaque operation family,
    and unsupported gate schema.
  • An exact-binary smoke using unsafe-review 0.3.8 and the
    raw_pointer_alignment fixture through ub-review run --model-mode off --posting artifact-only --fail-on-gate false --tools unsafe-review, with no
    credentials or posting. Record source/binary hashes, argv, exits, and bounded
    output hashes.
  • Run the repository's focused test target, cargo fmt --check, Clippy with
    warnings denied, and the normal deterministic PR gate.

Non-goals

  • No producer downgrade or adapter that emits the obsolete top-level Vec.
  • No unsafe execution, witness execution, analyzer changes, calibration,
    safety/UB/Miri claims, automatic repair, posting, or blocking-default change.
  • No global artifact registry, ingestion framework rewrite, release, or Action
    installer/version change in this slice.

Risk and rollback

The risk is silently accepting a partially parsed candidate. Keep schema/type
validation and the exact card-ID join local to the unsafe-review sensor adapter.
Rollback is removal of that narrow parser/projection and its fixtures; existing
gate-envelope routing and advisory behavior remain intact.

Activity

  1. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    State reconciliation — implementation merged in PR #915

    PR #915 (4dde1d9250f56be6f71782a7a1962a3a54f980f2) merged the core issue seam:

    • typed 0.3.x object-envelope ingestion;
    • explicit malformed/missing dispositions;
    • confined comment-plan pointer handling;
    • opaque nonempty operation_family;
    • exact (card_id, operation_family) repair join;
    • focused unsafe_review and comment_plan tests.

    Do not open a second implementation PR for this issue.

    Before closing, reconcile the one acceptance item not clearly receipted in the PR body: the exact-binary unsafe-review 0.3.8 model-off smoke with source/binary hashes, argv, exits, and bounded output hashes. If an existing hosted/local artifact proves it, attach the receipt and close as completed. If not, narrow this issue to that smoke-only proof rather than reopening parser/adapter code.

    #963 will also reconcile the canonical product-state documentation against this merged result.

  2. changed the title [-]unsafe-review: ingest 0.3.x comment-plan object without silent empty fallback[/-] [+]proof(unsafe-review): retain the remaining 0.3.8 comment-plan smoke receipt[/+] on Sep 8, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions