[#272] Post-E2E cleanup: update StoryFactory address & remove orphan data#550
[#272] Post-E2E cleanup: update StoryFactory address & remove orphan data#550realproject7 merged 3 commits intomainfrom
Conversation
…ines Update mainnet fallback to v4b factory (0x9D2AE1E...8744Cf) deployed at block 43840298 (symbol-collision fix). Add migration to delete orphan storyline IDs 25-33 from first E2E attempt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
project7-interns
left a comment
There was a problem hiding this comment.
LGTM. Address updates are consistent across both constants files, deployment block updated correctly, and migration handles all dependent tables in proper FK order with a graceful fallback for notification_queue.
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: REQUEST CHANGES
Summary
The address and deployment-block updates look right, but the PR does not fully implement issue #549 and the cleanup migration is broader than the ticketed delete scope.
Findings
- [high] Issue #549 requires resetting or updating
backfill_cursorfor the redeployed factory, but this diff only updates constants and the cleanup migration. Existing environments can stay pinned to the old cursor and miss events from the v4b deployment.- File:
lib/contracts/constants.ts:28 - Suggestion: Add the requested migration or update that resets
backfill_cursorto43840298, or document why it is provably unnecessary.
- File:
- [medium] The cleanup migration deletes by
storyline_idalone across every table, while issue #549 scoped the cleanup to the affected factory address for tables that carrycontract_address. As written, this can delete non-orphan rows if valid records share IDs 25-33.- File:
supabase/migrations/00025_cleanup_orphan_storylines.sql:7 - Suggestion: Add the contract-address predicates from issue #549 where those columns exist, and keep any unscoped deletes limited to tables that cannot distinguish by contract.
- File:
Decision
Request changes until the missing backfill_cursor handling is included and the migration scope is tightened to the intended orphaned rows.
…rsor Address T2a review feedback: - Scope all DELETE statements to old v4 factory (0x92c3bd44...) to avoid accidentally deleting non-orphan rows - Reset backfill_cursor to block 43840297 (one before v4b deploy) so backfill picks up events from the new factory Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: REQUEST CHANGES
Summary
The backfill_cursor reset is now covered, but the cleanup migration no longer matches the contract scope specified in issue #549.
Findings
- [high] Issue #549's cleanup SQL scopes the orphaned storyline deletes to the redeployed v4b factory
0x9D2AE1E99D0A6300bfcCF41A82260374e38744Cf, but this migration now filters the affected tables by the old factory0x92c3bd44fda84e632c3c3cb31387d0c0c1de618d. If the orphaned IDs 25-33 are the rows described in #549, these DELETEs will miss the intended records and leave the cleanup incomplete.- File:
supabase/migrations/00025_cleanup_orphan_storylines.sql:13 - Suggestion: Reconcile the migration with issue #549's contract scope. Either target the v4b address from the ticket, or update the ticket/PR with concrete evidence that the orphaned rows actually live on the old factory address.
- File:
Decision
Request changes until the cleanup migration is aligned with the actual contract address for the orphaned rows.
Orphan storylines 25-33 were created on the new v4b factory (0x9D2AE1E9...) during the first E2E attempt, not the old v4. Correct the contract_address filter accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The PR now covers the Batch 20 cleanup scope: the StoryFactory constants are updated, the orphan-row cleanup is scoped to the v4b contract, and the backfill cursor reset is included.
Findings
- None.
Decision
Approve. The remaining diff is consistent with issue #549 and the requested fixes are addressed.
Summary
Fixes #272
0x92c3bd44...) to v4b (0x9D2AE1E9...8744Cf) inlib/contracts/constants.tsandpackages/sdk/src/constants.tsDEPLOYMENT_BLOCK/DEPLOYMENT_BLOCK_MAINNETto43840298(the v4b deployment block)00025_cleanup_orphan_storylines.sqlto delete storyline IDs 25-33 (orphans from first E2E attempt with wrong content hashes)Companion PR in plotlink-contracts updates the README with the new address.
Test plan
npx tsc --noEmitpasses🤖 Generated with Claude Code