Skip to content

feat: add reversible human review - #11

Merged
SerDrozd merged 2 commits into
mainfrom
feat/reversible-review
Oct 4, 2026
Merged

SerDrozd merged 2 commits into
mainfrom
feat/reversible-review

Conversation

@SerDrozd

@SerDrozd SerDrozd commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

Make human review decisions reversible while preserving the one-to-one matching invariant and the audit trail.

Changes

  • reopen confirmed review decisions back to review
  • unlink manual matches back into two unmatched rows
  • restore rejected proposals when both original rows are still unmatched
  • preserve the original score and evidence for rejected proposals
  • record reopen, unlink, and restore actions in review history
  • add a backward-compatible SQLite migration for stored review evidence
  • expose reversible actions in the results UI only when the transition is valid
  • prevent stale rejection events from being restored after a newer rejection of the same pair

Validation

  • uv run ruff check .
  • uv run mypy src tests
  • uv run pytest - 69 passed
  • uv build
  • git diff main...HEAD --check

@SerDrozd
SerDrozd merged commit 6111378 into main Oct 4, 2026
5 checks passed
@SerDrozd
SerDrozd deleted the feat/reversible-review branch October 4, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant