Skip to content

python: follow-ups from family-relevant assertion selection (#6906) #6910

Open

Description

@EffortlessSteven

These are the non-blocking gaps the review of PR #6906 (#5572) found. All of them fail closed: none makes a card newly delegatable. Goal hurt: trustworthy verdicts and refusals that explain why. Owner: the Python gap-reason producer lane (#5491 / #5488).

  1. The surfaced-alignment override drops the earlier reason. When selection moves, alignment_reason is replaced with no_family_relevant_assertion or other_behavior_assertion_passed_over, even when the strength-only pick carried something more specific, such as strong_oracle_observes_different_sink.

    • Repro: a return-value change whose test has a strong pytest.raises(match=...) plus a smoke assert total(..).
      • Base reports orthogonal with strong_oracle_observes_different_sink.
      • Head reports other_behavior_assertion_passed_over with oracle_alignment unknown.
    • Option: keep the earlier reason in a secondary field.
  2. The corpus inventory test in output/gap_decision_ledger.rs does not count other_behavior_assertion_passed_over. The corpus has none today, so it is pinned only implicitly. Add a corpus case and count it.

  3. The human full row line still reads "uses unknown unknown oracle" for a no-family-relevant row. The renderer and miss assignment belong with evidence(python): assign truthful typed miss reasons to related tests #5491.

  4. excinfo.value is not recognised as an error observer. For a changed raise, this misses one value observation. It currently fails closed.

  5. Same-family sink ranking covers fields only.

  6. A bare except: is classified Predicate, not ErrorPath. is_error_handler_line's except: arm is dead code as a result. CodeRabbit flagged this on feat(python): select the family-relevant assertion for each related test (#5572) #6906.

    • Moving it to ErrorPath enables the error-path oracle gate. A bare-handler change that is exposed today through a strong value assertion can then become a weakly_exposed card with direct alignment, which is agent-packet eligible.
    • Before changing the family, decide whether handler-line ErrorPath cards may be delegated. The same question applies to typed except E: lines today.
  7. Pre-existing, outside feat(python): select the family-relevant assertion for each related test (#5572) #6906: a print change is marked exposed through assert result == 3, because a capsys output assertion is not recognised as the output family.

  8. Handler-line changes never earn exposed. error_path_oracle_ok requires an exception oracle for every ErrorPath finding, including a changed except clause whose handler result a strong value or status-code assertion observes.

  9. Review-bot follow-ups from feat(python): select the family-relevant assertion for each related test (#5572) #6906 (124c2f1):

    • Add a selection control for an except* E: handler line.
    • Consider extracting the per-family shape preference into one table.
    • The #[cfg(test)] static_limit_for_change wrapper drops the old line. Remove it, or migrate its test callers to static_limit_for_focused_change.
    • Repo-mode behavior items have no old line, so dict-key localization is unavailable there.

Generated by Claude Code

Activity

  1. EffortlessSteven commented on Nov 2, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming #6910 follow-ups (Cursor cloud agent): preserve strength-only alignment_reason in superseded_alignment_reason when family selection overrides; pin other_behavior_assertion_passed_over in the gap-ledger repair-card corpus inventory; recognize excinfo.value assertions as error-path observers. Branch incoming: cursor/python-6910-followups-99fa.

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