Skip to content

Expose bounded key reuse through the protected residency owner - #90

Merged
MrScripty merged 1 commit into
mainfrom
feat/cpu-scheduler-owned-key-reuse
Oct 21, 2026
Merged

MrScripty merged 1 commit into
mainfrom
feat/cpu-scheduler-owned-key-reuse

Conversation

@MrScripty

@MrScripty MrScripty commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

The protected residency facade could not select the existing bounded workload-key cache: its constructor always chose fair serial residency with reuse off. Add EmbeddedSerialCpuResidency::new_with_bounded_key_reuse(config) and delegate scheduler_configuration() to the existing immutable value query. Existing new(config), config struct literals, private owners, run/resume feature gates and shutdown behavior remain intact.

Exact source head c45d103fedc08f567e2892e8d71b1eda49cfe881, tree 540618b75e7ebbde9a5713c8ac14f05e77936f80, based on PR89's normal merge dc64b895180260ceef8619bedd1ac6d8b756a3ec. Independent pre-code and exact staged-tree source reviews approved publication, and a refreshed independent review approved normal merge. All 22 exact-head check runs and all four PR workflows passed; CodeRabbit status supplies no independent source-review credit. PR89's actual merge dc64b895 independently passed all 20 post-merge check runs and four workflows.

Each actual member still takes its own fair opportunity, preparation, reservation, final Start fence, native execution/drain and matched cleanup. This selects pure planning reuse; it enables no grouped native forward, new admission/resource policy or complete-memory guarantee. The query exposes no owner handle and remains configuration after acknowledged shutdown.

The canonical CPU plan now links a finite five-row completion checklist, explicitly selecting ordinary-member planning reuse as the supported CPU envelope. It distinguishes required software/consumer functionality, the still-required prospectively fixed actual CPU baseline-versus-key-reuse comparison, and later representative model/hardware qualification. Complete allocator/drop/alias/scratch instrumentation is required for a future complete-memory claim, not for cost-free C2a. No further allocator slice is selected; broader M5/M6 acceptance remains open.

Local validation passed: default facade module 8 cases; full embedded-runtime library 607 passed with 2 existing ignored controlled cost probes; inventory-feature facade module 6 cases; all-feature/all-target own-package Clippy with warnings denied; all-feature own-package Rustdoc with warnings denied; formatting, 33 resolved doc links, traceability (7 paths/0 mapped impacts), and declared pre-push tests (261/one existing ignored + 168 passed). The inventory suite's existing native lifecycle case uses its original constructor; it does not qualify native key reuse. Initial feature-selection/Option-access and restricted-home Pumas setup failures are retained in the report. Corrected test runs use pinned Pumas's supported process-local registry override in writable scratch; no HOME, permission or security setting changed. PR89's baseline inference strict lint/Rustdoc limitations and denied historical log evidence remain preserved and unretried.

The completion checklist owns exact remaining gates and stop conditions. Native qualification producer/protocol work is still software work; no external input blocks it. All earlier branches, PR84 lineage and unrelated work remain retained-protected. No dependency, manifest/lockfile, CI, IPC/binding or default-policy changes.

Exact-head hosted workflows: Quality Gates, CPU Composition Contract, Headless Workflow Contract, and Runtime Separation Check. Fresh Rust-focused CI at integration commit 7fb1c05d5d542438a715a7b58ffb8d8a743069db (same approved tree) passed both new facade cases; the hosted embedded-runtime summary also confirms 607 passed, zero failures and the same two existing ignored cost probes. This source is merged; no overall M5/M6, native key-reuse performance or complete-memory acceptance is claimed.

Normal guarded integration completed as ecfed47da7c51d03b968bed739e2abc06eb4a6de, parents dc64b895180260ceef8619bedd1ac6d8b756a3ec and c45d103fedc08f567e2892e8d71b1eda49cfe881, identical approved tree 540618b75e7ebbde9a5713c8ac14f05e77936f80. All 20 actual-main check runs and all four workflows passed: Quality Gates, Headless Workflow Contract, Runtime Separation, Push on main. Integration receipt SHA256 9d7e20d34d5a1a55811134dd35058f3795f0f966a0fdf49b0c05b95b84a38daf; eight prior clean worktrees and all twelve prior remote branch tips are retained. Denied historical log reads were not retried. The separate prospective native comparison is a distinct acceptance gate; this integration does not qualify it.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 54792252-5844-4b2a-bd40-0f02baf4d633
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MrScripty
MrScripty marked this pull request as ready for review October 21, 2026 05:46
@MrScripty
MrScripty merged commit ecfed47 into main Oct 21, 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