WIP: Resume native cleanup contexts after child proofs #144
Draft
erikinkinen
wants to merge 5 commits from
feature/cleanup-context-continuations into feature/native-cstd-memory-provider
pull from: feature/cleanup-context-continuations
merge into: erix:feature/native-cstd-memory-provider
erix:main
erix:feature/native-cstd-memory-provider
erix:feature/cleanup-native-feature-selections
erix:feature/cleanup-return-ledger
erix:feature/cleanup-scalar-move-proof
erix:feature/cleanup-scalar-memory-proofs
erix:feature/cleanup-body-lookup
erix:perf/immutable-literal-plans
erix:feature/public-ci-source-graph
erix:feature/frame-instruction-write-sets
erix:feature/retained-ci-provider-preparation
erix:feature/document-realm-configuration-version
erix:feature/document-trace-result-custody
erix:feature/document-main-source-policy
erix:feature/native-realm-contract-reference
erix:feature/ci-source-acquisition
erix:feature/directory-stream-oracle
erix:feature/versioned-workspace-frame-checks
erix:feature/typed-external-launch-causes
erix:feature/caller-counted-raw-redirection
erix:feature/optional-cwd-description-transactions
erix:feature/original-stream-timestamps
erix:feature/original-pty-identity
erix:feature/configured-fifo-creators
erix:feature/explicit-realm-clock-bindings
erix:feature/exact-native-pipe-outcomes
erix:feature/shared-test-callbacks
erix:feature/registry-backed-shell-help
erix:feature/original-realm-client-signals
erix:feature/independent-realm-creation-ceilings
erix:feature/ci-compiler-artifact-provenance
erix:feature/explicit-heap-clock-sources
erix:feature/private-realm-filesystem-workload
erix:feature/restricted-heap-terminal-controls
erix:feature/explicit-realm-cwd-capacities
erix:feature/ordinary-receiver-startup-attestation
erix:feature/closed-descriptor-launches
erix:feature/original-standard-streams
erix:feature/caller-owned-lexical-storage
erix:feature/iterative-interactive-handoffs
erix:feature/native-image-quiet-expiry
erix:feature/offline-shell-manual-pages
erix:feature/native-frame-checker-contracts
erix:feature/native-frame-direct-child-input-supervision
erix:feature/native-frame-preparation-gated-supervisor-startup
erix:feature/native-frame-context-transfer-reuse
erix:feature/native-frame-live-target-cell-preservation
erix:feature/native-frame-owned-pic-compiler-handoff
erix:feature/native-frame-context-discovery-scheduling
erix:feature/native-frame-lexical-workspace-accounting
erix:feature/native-frame-explicit-endpoint-query-contracts
erix:feature/native-frame-native-stack-closure-diagnostics
erix:feature/native-frame-scalar-context-key-profiles
erix:feature/native-frame-contextual-scalar-inputs
erix:feature/native-frame-selected-kernel-return-contract
erix:feature/exact-help-prefix-synopses
erix:feature/positive-realm-factory-witness
erix:feature/counted-native-realm-resources
erix:feature/original-launch-creation-mask
erix:feature/realm-directory-failure-custody
erix:feature/native-frame-deferred-report-projection
erix:feature/native-frame-fixed-point-work-profiles
erix:feature/native-frame-live-region-retirement-scanning
erix:feature/native-frame-low-byte-branch-bounds
erix:feature/native-frame-immutable-analysis-states
erix:feature/native-frame-offline-frame-input-capture
erix:feature/native-frame-phase-and-fixed-point-profiles
erix:feature/native-frame-returned-scalar-contents
erix:feature/native-frame-forward-stack-copy-proof
erix:feature/native-frame-instruction-proof-domains
erix:feature/native-frame-live-frame-analysis-profiles
erix:feature/native-frame-checker-failure-retirement
erix:feature/native-frame-compiler-input-custody
erix:feature/native-frame-compiler-supervisor-custody
erix:feature/native-frame-imported-signing-key-policy
erix:feature/explicit-realm-client-creation-masks
erix:feature/native-frame-packed-instruction-source-mapping
erix:feature/readonly-realm-acquisition-scopes
erix:feature/counted-realm-authority-bindings
erix:feature/explicit-realm-client-credentials
erix:feature/independent-realm-fd-budgets
erix:feature/original-scope-realm-file-resize
erix:feature/authenticated-realm-caller-loss
erix:feature/counted-realm-authority-framing
erix:feature/never-started-realm-disposal-witness
erix:feature/configured-realm-client-witness
erix:feature/independent-realm-resource-exhaustion
erix:feature/private-mediator-startup-witness
erix:feature/scoped-guarded-realm-preparation
erix:feature/caller-bound-realm-admission
erix:feature/protected-native-call-graphs
erix:feature/saved-register-stack-write-bounds
erix:feature/explicit-native-dependency-inputs
erix:feature/ordered-native-symbol-providers
erix:feature/explicit-native-artifact-pairs
erix:feature/instruction-bound-call-preservation
erix:feature/bounded-table-function-targets
erix:feature/comparison-bound-table-flow
erix:feature/independent-checker-fixture-imports
erix:feature/modular-arithmetic-target-guards
erix:feature/cached-disassembly-patterns
erix:feature/direction-flag-frame-effects
erix:feature/grounded-nonreturning-call-evidence
erix:feature/protected-function-register-flow
erix:feature/owned-shell-transport-storage
erix:feature/packaged-transport-frame-evidence
erix:feature/protected-relro-call-evidence
erix:feature/emitted-elf-frame-evidence
erix:feature/guarded-frame-dispatch
erix:feature/descriptor-cleanup-fixture-context
erix:feature/original-source-pic-ci
erix:feature/locked-ci-provider-commands
erix:feature/caller-bound-stack-write-contracts
erix:feature/manifest-catalog-rustdoc
erix:feature/shared-contribution-policy
erix:feature/posix-compat
erix:feature/native-cli
No reviewers
Labels
Clear labels
alpha-1
EriX Alpha 1 release acceptance
bug
Something is not working
ci
docs
duplicate
This issue or pull request already exists
enhancement
New feature
help wanted
Need some help
invalid
Something is wrong
performance
Measured performance profiling, bottleneck analysis, and regression budgets.
phase-6
Phase 6: POSIX compatibility, full EriX self-hosting, and its required audits and validation.
question
More information is needed
refactor
Code cleanup, removal of obsolete paths, and structural improvements preserving behavior.
security
wontfix
This won't be fixed
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
erix/exsh!144
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/cleanup-context-continuations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resume eligible native context checks after their actual child proofs finish, with bounded retained state and the original callback path for unsupported readers.
Paused frames are measured as one current object graph. Shared data is counted once, nested replacements are measured afresh, and unsupported storage falls back without invoking its custom protocols. The per-State extent caches have been removed.
The frame deadline remains unresolved. This does not establish source/type closure or guest acceptance.
Keep custom decoder callbacks on the original interpretation schedule. Eligibility now checks the defining implementation and its actual bound receiver, including the live profiler binding. It also avoids entering custom attribute readers and preserves the original body-map coupling when paused work resumes.
Regression tests compare callback visits and complete results with the original schedule. The six native frame deadlines remain unresolved, so this stays WIP.
Measure every held State again so a larger nested replacement cannot borrow its earlier byte count. Primitive leaf rows retain their actual immutable fields and replay shared nodes through the original seen set; quota pressure evicts optional backing before exact retry.
Whole-State shortcuts are removed, and shared objects keep their original per-traversal accounting. The analysis allowance stays unchanged. The native frame deadline remains open, and no speed gain is claimed.
Count the complete paused frame once, including data shared between States. Each observation traverses current storage, so nested replacements cannot borrow earlier byte counts. The per-State caches and their unused backing machinery are removed.
The original material allowance, callback fallback and cleanup rules remain in force. The native frame deadline is still open; this accounting fix does not claim a speed gain.
Retire the lifetime fixture with the same detach-and-close sequence as the execution owner. Python 3.13 keeps the closure alive while a closed generator is still held, including in the control without a material account. The weak-reference assertion stays in place with the account still live.
The production interpreter is unchanged. The native frame deadline remains open.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.