Skip to content

fix: retain actor snapshot leases through event settlement - #318

Merged
yasyf merged 1 commit into
mainfrom
actor-lease-scope-public-20261005
Oct 6, 2026
Merged

yasyf merged 1 commit into
mainfrom
actor-lease-scope-public-20261005

Conversation

@yasyf

@yasyf yasyf commented Oct 5, 2026

Copy link
Copy Markdown
Owner

An API actor can release a snapshot lease after one branch finishes while another branch still borrows the shared graph. Keep deferred cleanup scoped to the actor event, including its awaited background work, and settle the leases and graph before closing the bridge.

Forward the existing SnapshotClient cleanup option through client_scope and select it for evaluate_actor. Other callers retain immediate cleanup by default. Native claimant, generation, and expiry checks, actor deadlines, and API authentication remain unchanged.

The source worker passed six offline FixtureOwner regressions covering normal completion and exception unwinding; restoring immediate cleanup makes five cases fail. Related tests passed 95 cases and hit one mcp package import TypeError, reproduced on the pristine base. Ruff checks and formatting passed. Full CI is pending. The fixture reproduces the source failure sequence; it does not establish which private handle or branch caused every historical warning, and live actor validation remains separate.

@yasyf
yasyf merged commit e4429f3 into main Oct 6, 2026
23 checks passed
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.

1 participant