Repository navigation
refactor(config): share plan writes with caller transactions - #888
Conversation
|
Merge verification: head remains b71d7c1, the independently reviewed tree aa3e7b41274cd023e15a596dceb851ce1346d069. Both workflow runs completed successfully, all reported checks are green, and GitHub reports CLEAN/MERGEABLE. CodeRabbit's actual review of this head reported no actionable comments; the inline comment list is empty. Current main is 282c7e1. Its changes since the reviewed base touch separate tooling and ladder-provenance paths. The original plan wrappers, WithTx, provider validation, baseline code and shared native fixtures are byte-identical between those bases; the types.go delta only adds LadderTrancheDB provenance fields. The three PR files do not overlap those changes. The existing independent committed-SHA verification and scope limits in the PR description remain applicable. Normal squash merge uses the expected reviewed head and all active required checks. |
Plan creation and account replacement keep their existing wrapper behavior while sharing private SQL bodies that can use a caller's transaction. This lets the command store compose those writes without nesting transactions or escaping to the pool.
The change preserves the Create insert's 13 arguments, UUID and timestamp mutation, JSON encoding and errors. Account replacement retains its Begin/rollback/Commit boundaries, validation order, duplicate handling and errors. No exported transaction API, StoreInterface change, migration, route or atomic Save endpoint is included.
Validation at b71d7c1 (tree aa3e7b41274cd023e15a596dceb851ce1346d069):
Refs #631. This leaf does not complete or close the graph editor work. The next consumer is the creator-owned command store composing plan, associations, roots, cancellations, clock and receipt in one transaction.
Summary by CodeRabbit