Repository navigation
fix(platform): preserve provider-specific usage ledger buckets - #4241
Conversation
Accept verdict — exact head
|
Request changes — blocking retention regression at
|
TALE-196 repair receipt
RepairRetention previously selected inherited ledger rows by The real-Postgres retention audit fixture now covers stale parent/child rows, Observed checks
PendingThe manager checkpoint requesting the named heavy PostgreSQL slot is comment |
TALE-196 / PR #4241 — H2 proof and stop receiptExact head Outcome: failing collision proof; do not merge this head.
H2 stop receipt, 11:13:22Z: PostgreSQL PID 305 and child PIDs 306, 307, Retained original CI failure and blocking finding; valid provider/upgrade |
|
TALE-196 light-phase receipt / waiting_for_manager PR #4241: #4241 Supplied actual Question key: TALE196_HEAVY_LEASE='<new manager-issued lease name>' bash fresh-native-proof.shThe prepared shell runner uses a fresh cluster and always stops owned |
Independent source-level ACCEPT — exact head
|
The sweep deletes a bounded batch of stale rows in scan order, so the fixture counted a batch row where it should count how many stale rows stay, whichever table they sit in. Its audit counts also lacked the project buckets the sweep now reports. Run against real Postgres, the old ctid-only delete fails it (a held custodian's child row goes) and the tuple-identity delete passes.
Rule 1 now names the child table the writer books into, the retention reader row says why it deletes by tableoid and ctid, and the guards list holds the provider-local bucket proof and the collision fixture. The coverage row says the same.
The ledger is the parent table and its provider child. A reader that names the parent alone sees half the spend, and an index added to the parent alone leaves the rows the current image books to a scan. The README forbade both; this holds them.
7f2636d to
eeb4d5b
Compare
Changes
Data and deployment limits
Existing parent rows remain unchanged; previously merged requests cannot be split without original attribution data. Old-image bookings retain the old behavior until those images retire. New-image bookings are provider-specific immediately. The migration is additive, transactional and idempotent; it does not remove the conflict target older images use. Read filters/folds already use provider and model separately and need no behavior change.
Verification
origin/mainwriter before and after migration; historical rows are byte-preserved; repeated transactional migration is harmless; mixed old/new writes fold correctly.git diff --checkpass. Local-only targeted SAST: zero findings; the large integration harness is excluded by the configured scan size limit.Closes #3655