perf: Derive frame contracts from checked calls #132

Open
erikinkinen wants to merge 15 commits from feature/frame-instruction-write-sets into feature/original-source-pic-ci
Owner

The frame checker inventories every function but derives preservation contracts only for entry points and callees found by checked code. New callee facts wake affected callers; unknown targets and recursive cycles gain no assumed contracts.

Reuse immutable instruction forms and stop discarded dependency-discovery passes while retaining the complete final interpretation, byte checks and original deadlines.

Builds on #131.

The frame checker inventories every function but derives preservation contracts only for entry points and callees found by checked code. New callee facts wake affected callers; unknown targets and recursive cycles gain no assumed contracts. Reuse immutable instruction forms and stop discarded dependency-discovery passes while retaining the complete final interpretation, byte checks and original deadlines. Builds on [#131](https://git.erikinkinen.fi/erix/exsh/pulls/131).
erikinkinen added this to the Alpha 1 milestone 2026-11-07 17:21:53 +01:00
perf: Reuse instruction write sets across frame transfers
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Failing after 35s
00c31570ca
Keep each normalized instruction write set in its existing body-bound plan. GP, condition, saved-value and content transfers share this immutable grammar while retaining their current path inputs, original byte checks and finite clocks. Cache unknown effects as unknown and leave failed queries uncached.
ci: Declare policy helper and output boundaries
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 21s
CI / rust (push) Failing after 26m59s
268260182c
Select a disjoint operation parent for policy evidence and explicitly identify the helper checkout excluded from original component input. Keep the complete dependency policy and existing acceptance commands.
test: Select quiet expiry after the original image read
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Failing after 26m16s
8c7fe1f3b4
Control only the supervisor component clock so earlier capture latency cannot move this negative case before its intended native read. Keep the original deadline, observation and retirement clocks and require the actual returned prefix, no child creation and positive cleanup.
ci: Select the current provider policy explicitly
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / rust (push) Failing after 21m38s
dea2ce165f
Keep feature qualification on its declared companions and main or release qualification on actual main providers. Preserve the original source checks, native gates and finite operation limits.
Author
Owner

Routine matrix profiling now uses the existing proof-phase observer at 5cbb66f3, alongside this branch’s instruction-effect cache. Detailed transfer profiling remains available for investigation; all frame analysis and original deadlines remain enabled.

Routine matrix profiling now uses the existing proof-phase observer at `5cbb66f3`, alongside this branch’s instruction-effect cache. Detailed transfer profiling remains available for investigation; all frame analysis and original deadlines remain enabled.
ci: Keep frame matrix profiling at proof-phase granularity
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / rust (push) Failing after 22m9s
5cbb66f317
Use the existing phase observer for routine matrix runs while retaining full transfer profiling for focused investigations. Keep all proof analysis, original deadlines and output budgets unchanged.
Suspend each original contextual interpretation at most once after it reaches a new missing child. Later complete batches and the final full interpretation retain every proof and refusal, while avoiding a discarded fixed point with unknown child effects. Keep the retired linear scheduling hint only inside the pinned historical test reference and restore its class bindings on every exit.

(cherry picked from commit eb1186b0e6d74da0c72cb9eb07f832bfb56613d3)
Keep the complete source inventory while interpreting only demanded bodies and checked callees. Newly discovered owned targets complete before their waiting caller publishes evidence, and grounded facts wake selected dependents. Scope retained source and interpreter callbacks to one graph invocation while preserving full Kernel scalar metadata, original clocks and the eager API.

(cherry picked from commit a416a296edbd292a4b7b3dafaa0044d74416d481)
fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / rust (push) Failing after 18m38s
a742b20386
Bind the preservation profiling phase to the shared engine used by eager and demanded analysis. Keep inventory lookup on its original dynamic binding so instrumentation observes real work. Give body-progress controls an ordinary proof ledger with the same revision state as production.

(cherry picked from commit 399c90bc0caa874414ec7dfb07f6a6c06da44bf2)
erikinkinen changed title from perf: Reuse instruction write sets across frame transfers to perf: Derive frame contracts from checked calls 2026-11-13 01:09:29 +01:00
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / rust (push) Failing after 22m39s
6413471d2d
Use direct switch lowering in the original PIC and LLVM emission instead of relying on unproved enum-domain facts to bound compiler jump tables. Retain all target, source, ownership and frame-limit checks against the actual newly emitted code.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / rust (push) Failing after 21m46s
745a402709
Pin the complete immutable original oracle source bytes instead of Python-version-specific AST dump formatting. Preserve every original fixture body and declaration byte hash, and reject changed body/report bytes explicitly across interpreter upgrades.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / rust (push) Failing after 11m8s
93bbb38e97
Apply direct switch lowering through the original Cargo consumer to the actual library and dependency artifacts. A cargo rustc trailing binary-only argument leaves linked library switch tables unchanged; the complete retained build must share this codegen choice.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / rust (push) Failing after 21m29s
5ee72413e9
Derive unconditional preservation only when actual calls request it. Entry and fallback still undergo contextual interpretation, and complete source inventory remains mandatory. Retain equivalent complete reports and exercise warm-body replacement refusal on an actually demanded library callee.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 30s
CI / rust (push) Failing after 29m25s
c579158e02
Propagate complete instruction-proven local integer arguments without requiring a Kernel contract. Keep unknown syscall footprints conservative and numbers separate from stack origins, mappings and callable targets. Exercise bounded copies, joined origins, unknown/partial/overrun counts and opaque syscall invalidation in both analysis modes.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / rust (push) Failing after 22m3s
65518f4a88
Account for the one additional contextual interpretation requested by exact caller scalars without a Kernel contract. Keep the pinned historical interpreter and every proof/refusal field unchanged; record the real work instead of requiring its earlier zero-work count.
fixup! fix: Observe the active preservation work engine
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / rust (push) Failing after 20m57s
f739bb8892
Make native startup and deployment-slice adoption unsafe Rust boundaries with explicit mapping, uniqueness and lifetime preconditions. Reject startup lengths outside Rust slice bounds. Scalar framing and linker coordinates remain insufficient to authenticate memory.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / rust (push) Failing after 20m57s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/frame-instruction-write-sets:feature/frame-instruction-write-sets'
git switch 'feature/frame-instruction-write-sets'

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.

git switch 'feature/original-source-pic-ci'
git merge --no-ff 'feature/frame-instruction-write-sets'
git switch 'feature/frame-instruction-write-sets'
git rebase 'feature/original-source-pic-ci'
git switch 'feature/original-source-pic-ci'
git merge --ff-only 'feature/frame-instruction-write-sets'
git switch 'feature/frame-instruction-write-sets'
git rebase 'feature/original-source-pic-ci'
git switch 'feature/original-source-pic-ci'
git merge --no-ff 'feature/frame-instruction-write-sets'
git switch 'feature/original-source-pic-ci'
git merge --squash 'feature/frame-instruction-write-sets'
git switch 'feature/original-source-pic-ci'
git merge --ff-only 'feature/frame-instruction-write-sets'
git switch 'feature/original-source-pic-ci'
git merge 'feature/frame-instruction-write-sets'
git push origin 'feature/original-source-pic-ci'
Sign in to join this conversation.
No description provided.