Repository navigation
Freeze capsule sources and retain durable worker results - #365
Draft
ovasylenko wants to merge 11 commits into
Draft
ovasylenko wants to merge 11 commits into
ovasylenko wants to merge 11 commits into
Conversation
Draft foundation for continued distributed/mobile/embedded review. Preserve source recovery points and physical identity fences; see the lifetime review for remaining suspension, ownership, archival and reconciliation gates.
Separate local filesystem/memory support from server S3 features and refresh the standalone fuzz graph without dependency upgrades. Validate production mobile outside dev feature unification, server artifact compatibility and all locked workspaces.
Validate original instance and block, replacement scope and optional tree node atomically in fenced resolution and legacy retry. Preserve parent-before-worker locking and outcome evidence. Exercise cross-tenant rejection and valid retry controls; repair export fixtures to configure artifacts and use fresh physical destinations.
Guard native writes, owner changes and active history deletion in PostgreSQL 131 and SQLite 62. Release capture atomically during abort, quarantine old state once, serialize downgrade checks and use existing identity/partial indexes for point admission. Cover controlled native update/delete, owner and downgrade waits, scope and JSON mismatches, rollback and GC. Configure cloud fixture artifacts; keep live migration snapshot and transfer/archive gates explicit in the draft review.
Resolve dependency guards in the namespace owning the locked source-cut table. A later search_path schema can contain another installation after the local dependency is removed. Add a regression that downgrades with shadow guards and tables in a fallback schema and verifies they remain untouched. The isolated published-baseline candidate passes all 176 capsule/source-cut tests, formatting and strict test-target Clippy.
Capture run, activation, mode and full ownership before preparation; publish against the original fence and retain retry scope. Validate stranded receipt recovery, await rollback cleanup and preserve gRPC claims on rejected oversized outcomes. Atomic effect publication and durable outcome integration remain draft gates.
Pin immutable actual dispatch identity separately from retry reservation, retain the first admitted payload, and protect admitted specifications across hot GC. Enroll initial ownership only during remote publication so pure local SDK execution preserves explicit export ownership. Outcome integration and coordinator protocol gates remain open.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capsule export and delayed worker preparation can outlive their original execution. This draft freezes captured sources and binds remote work to its original run, activation, mode and continuity owner. Dispatch atomically publishes the actual prepared payload with its effect receipt. A new immutable success journal also preserves the winning result when an acknowledgement is lost and the hot task is collected.
The implementation includes:
Latest checkpoint:
0ef2acf9c646994241878f1b8807152393162913. Exact-head CI is pending.Local validation for the accepted-success checkpoint:
This remains a draft. The journal proves acceptance, not workflow integration. Effect settlement still precedes acceptance in a separate transaction, and accepted paused results still need automatic integration without worker retries. Atomic scoped context/output/node/state application with an Applied receipt, bounded recovery, failure/delegation parity, pending-outcome snapshot handling, issued-claim/reporter authorization and explicit acknowledged archive/compaction remain merge gates.
Legacy identity-only queue APIs do not establish a coordinator protocol floor or unknown-legacy quarantine policy. Invariant audit reconciliation, full PostgreSQL u16 attempt compatibility, backup/key rotation, compensation invocation identity and independent offline-owner handling remain broader gates. The distributed/mobile review and physical lifetime review track these requirements. Passing local tests does not close them. No release is published by this PR.