Repository navigation
v3.0.0 fix: persist settlement inputs before resuming stored jobs - #372
Conversation
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5072308. Configure here.
PR #372 thermo review dispositionsReviewed head:
Appended fix and validationPushed commit: Executed locally:
The coordinator reports the independent Fable adversarial review of |
Keep compact input conversions together and extract the inline resume compatibility decision without moving fee admission, cancellation owners, or the original expiry calculation. Document why Prepared keeps a typed input view and why resumed work cannot authorize original compact capture. Require an explicit ctv key in direct compact decoding, matching the storage reader that already rejects omitted keys via canonical re-encoding. Preserve explicit null, flat compact fields, field order and legacy bytes. Incompatible inputs still return a miss before the live fee check; compatible work retains that check. Cover the policy directly and exercise missing-CTV rejection through the real PostgreSQL reader and retry path. Refs #370
|
Coordinator final verification: independent Fable reviewed 5072308..7406ff9 and found no remaining findings. It independently confirmed unchanged persisted serialization, strict omitted-versus-null CTV handling, preserved compatibility/fee ordering, and untouched cancellation/expiry ownership. Disposable PostgreSQL qualification passed 270 library tests and 13 compact-storage tests; Clippy and formatting passed. Current-head CI is now green after the documented single startup-timeout retry; artifact provenance was verified and the original cause remains unconfirmed. All initial review lanes and thermo dispositions are accounted for. This supersedes earlier pending-final-verification wording. Ready on this reviewed head; recheck integration if the base changes. |
Summary
Persist the settlement inputs captured when prepared work is built, and require those inputs to match before resuming a stored job. Builder-version or CTV configuration changes produce a cache miss; legacy rows without inputs also miss, while malformed records remain backend errors.
Compatible jobs retain their original bundle, settlement inputs, worker identity and expiry. Compatibility is checked before the live fee check: incompatible work returns a miss even where the base branch could surface a fee error first; compatible work retains fee admission.
Centralize compact input conversions and extract the stored-input compatibility decision. Both formats require an explicit
ctvkey, with null representing no CTV; the compact storage reader already rejected omission through canonical re-encoding. Valid compact serialization, legacy round-trip bytes, cancellation owners and clock semantics remain unchanged. The nonoptional input view remains documented beside the durable representation.Refs #370
Validation
cargo clippy --locked --workspace --all-targets -- -D warnings,cargo fmt --all --check, andgit diff --check: passed.Review status
5072308: medium-effort and Codex adversarial reviews found no actionable issue; the coordinator reports Fable adversarial completed with no refutation found. Bugbot and CI passed on that initial head.7406ff966d4c12a2baa81fc318e0c95da14db97f. Focused independent verification and CI for this head are pending; the full review is not complete.No merge, schema migration, compact runtime activation or production change. Signing configuration, VERSION and CHANGELOG are unchanged.