Skip to content

feat(review): per-record Delete, Verify, and durable Unmatch (#803) - #874

Merged
athvin merged 10 commits into
mainfrom
issue/803-per-record-actions
Nov 21, 2026
Merged

athvin merged 10 commits into
mainfrom
issue/803-per-record-actions

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #803

What

Adds per-record Delete, row and cell Verify, and durable Unmatch to the steward UI and API. Protected records cannot be deleted or absorbed as non-master merge members. Unmatch persists a never-match assertion against every current co-member, including across reanalysis.

Why

Completes the missing spec 2.9 steward actions and makes their state visible in record details and duplicate-group verification filters.

Proof

make frontend passed (936 browser tests passed, 135 intentionally skipped). Real Postgres/DuckLake tests for deletion, protection, row/cell verification, verification filters and durable unmatch passed. Full make check and make check-e2e passed after the catalog fixture/count corrections and refresh from main. make frontend-audit passed (advisories and license allowlist).

Risk & rollback

Adds a lake table and retractable overlays/assertions; deletion is logical, not physical. Actions queue an apply job and the UI reports that queued state. Revert the merge commit to roll back behavior; additive stored verification data remains.

Post-merge ledger

Closed by: Codex · session Codex:01a1fbde-0afc-7230-9834-f66819562089 on brians-MacBook-Pro · 2026-11-21T04:14:05Z

Specific to this change

  • Later independent work during the watch: fix(marketing): stabilize the paused audit configuration lock (#1146) #1147 fixed the existing marketing pause-test failure. The production database update in ec16e855 coincided with transient Postgres connection refusals and two dispatcher restarts; logs show recovery at 03:55:23Z and a successful lake migration at 03:57:44Z. A subsequent rollout replaced that pod; all current pods have zero restarts. No unresolved regression from feat(review): per-record Delete, Verify, and durable Unmatch (#803) #874.

  • Verified row/cell verification persistence and retraction, protected deletion/merge refusal, and Unmatch across correction and full reanalysis in the real Postgres/DuckLake harness. Full backend, e2e, frontend, audit and preview gates passed locally; final PR CI passed (one unchanged rerun for the existing marketing animation test).

Context — implementation and validation
  • Recovered the abandoned implementation from its original worktree, leaving that recovery copy untouched. Registered the previously unregistered Postgres tests and added row/cell verification coverage.
  • Uses the current bounded lake-read helper, active-dataset checks and existing staging/apply flow. The BFF requires steward access; viewers see verification marks without mutation controls.
  • Regenerated entity artifacts, internal/public OpenAPI, TypeScript schemas, MCP tools and the developer-reference operations. The first CI run caught the stale developer reference; its failure was reproduced locally and the full frontend gate passed after regeneration. Verification inputs use explicit schema fields rather than unsupported flattened fields.
  • Updated the CLI fixture's exact empty-table expectation for record_verifications and telemetry's catalog bounds for the new statements/relation; assertions remain intact.
  • The refreshed branch also passed the static marketing preview smoke check (34 routes, assets, theme and navigation).
  • Final PR checks passed on 31fb526b; the existing marketing pause test needed one unchanged CI rerun (frontend run 44861450834, attempt 2). The identical failure was observed on pre-merge main run 44858366901.
  • The first full frontend run hit an existing impersonation redirect/reset failure; a fresh complete run passed without changing the test or timeout.

Recovery commits

5eff862c, 6a1b8195, cdd5d60c, b385668b, 774f1a61, 8c84cb0a, ff44cbc1, b865c9e1, 31fb526b; squash merge fcfda9a6. No new PR was created. The temporary test database and clean recovery worktree were removed; the original abandoned worktree was left untouched.

@athvin

athvin commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Reviewed while clearing the open pull requests. Nothing here can be merged,
and the work is not lost — those are two separate facts.

This pull request is empty

One commit (wip: claim #803), 0 files changed, +0/-0. It is a claim
marker, not an implementation.

The claiming session is gone

The claim reads "session codex-herdr-w7p2 on Mac", dated
2026-11-08T14:41:27Z. The fleet now has exactly one pane — this one — so that
session is no longer running. By the claim-ticket convention this is a stale
claim.

But the implementation exists, uncommitted, in its worktree

.claude/worktrees/per-record-actions is 27 paths dirty, last commit nine
days ago — git --no-optional-locks diff --stat HEAD reports
1,236 insertions across 15 modified files, plus 12 untracked additions:

 M entities/record_overlay/entity.yaml
 M rust/crates/er-server/src/lib.rs          | 440 ++++++++++++-
 M rust/crates/er-server/src/read.rs         | 149 ++++-
 M rust/crates/er-entities/src/record_overlay.rs
 M frontend/src/components/records/entity-view.tsx
 M frontend/src/lib/query/reviews.ts
 ?? entities/record_verification/                      (a new entity)
 ?? entities/record_overlay/read/active_keys_by_kind.{sql,yaml}
 ?? rust/crates/er-entities/ddl/lake/record_verifications.sql
 ?? rust/crates/er-server/tests/pg_record_delete.rs
 ?? rust/crates/er-server/tests/pg_unmatch.rs
 ?? frontend/src/app/api/.../records/{delete,undelete,unmatch,verify,unverify}/

That is a substantially complete #803 — a new entity, a declared SQL statement,
five BFF routes and two pg_* tests — that was never committed, so it has
landed nowhere and no pull request reflects it.

I deliberately did not touch that worktree. Committing another session's
uncommitted work would mean adopting design decisions I did not make and have
not reviewed, and git add -A across a shared checkout is the documented way
to commit someone else's half-finished work. The worktree audit says KEEP for
exactly this reason.

The decision, which is the owner's

  1. Adopt it — commit it on a fresh branch off current main, run
    make check (it touches entities/, so entities-check will want
    regenerated artifacts) and make frontend, and drive it to merge as real
    work. This is the option that preserves the 1,236 lines.
  2. Release the claim — close this pull request, which returns feat(review): per-record Delete, Verify, and a durable Unmatch distinct from unmerge #803 to the
    board, and keep the worktree until someone decides whether to mine it.
    Cheap, but the next person starts from scratch beside a tree that already
    has an answer.

Leaving this open and unreferenced is the one outcome worth avoiding: #803 reads
as claimed, so nobody picks it up, while the only copy of the work sits
uncommitted on one machine.

@athvin
athvin marked this pull request as ready for review November 21, 2026 03:15
@athvin
athvin merged commit fcfda9a into main Nov 21, 2026
59 of 61 checks passed

This branch was successfully deployed

1 active deployment
marketing-preview — 31fb526b Deployed Nov 21, 2026 by athvin via publish marketing preview #6
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.

feat(review): per-record Delete, Verify, and a durable Unmatch distinct from unmerge

2 participants