Repository navigation
Conversation
Add a deterministic authority with independently implemented reference tests, adversarial replay and mutation checks, an OpenRaft 0.9.25/redb journal, and real three-member recovery fixtures. Preserve complete request/result facts, resource charges, bounded starvation holds, and fenced memory retry attempts. Add an identity-bearing worker recipient and additive protocol, namespace quiescence receipts, and a durable-authority/subprocess test that permits AC publication only after acceptance. Preserve uncertainty across cancellation, reconnect, and restart. Production factories remain on the legacy runtime. Record retention experiments, synthetic measurements, exact evidence, and open qualification gates. Aggregate completion-byte credits and meaningful transfer progress remain subsequent work. Isolate an existing filesystem test from shared /tmp paths and preserve immutable evidence through repository hooks. Validation: Cargo workspace check and tests (1546 passed, 5 ignored); all 135 Bazel test targets plus focused followup; 20/20 semantic mutants caught after repairing one insufficient fixture; repository hooks and docs gates passed.
Add descriptor-bound worker input and action capabilities with retained namespace custody, exact bounded copying, read-only completed inputs, isolated metadata and same-family checks. Keep the module private while qualifying 33 frozen worker cases in both normal and redb suites. Preserve actual binaries, build events and exact source guards for 16 runtime controls and 17 invocations, with refusal-preserving error-contract outcomes distinguished. Restored ownership68/journal80 suites and normal/redb libraries pass; independent review and complete archived evidence accompany the change. Production factory and execution integration remain separate.
Size allocation batches from measured process-group PSS and the existing workload window, reducing repeated smaps scans. Keep the five-second calibration deadline, cumulative allocation cap, and actual enforcement assertions.
Controlled CPU contention reproduces the three-GiB fixture calibration failure before memory enforcement can report its breach. Allow five seconds of setup per started GiB while keeping observer I/O, action and RPC deadlines, measured memory windows, and all enforcement and retry assertions unchanged.
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.
What and why
This draft starts the categorical elimination plan: one committed scheduler transition model, fixed storage and worker roles, and explicit ownership and recovery boundaries. It collects the experimental implementation, related protocol repairs, and the evidence needed to review each stage. Production factories still construct the legacy runtime.
The series includes:
Start with the source plan, contract, and morning ledger. The ledger links individual changes, failures, qualification receipts and remaining work. Most changed files are archived evidence; the implementation and design records are organized by crate and stage.
How was this verified?
39936f3748: all 168 normal Bazel targets and all 168 ASAN targets executed and passed, all 10 remote-execution examples passed, and fuzzing completed 2,890,093 executions. Web, docs, pre-commit, local-execution, CodeQL and PR validation checks also passed; the two existing schedule-only Nix jobs were skipped. See the normal/RBE run, ASAN run, and fuzz run.50097d6375, all 168 Bazel test targets passed uncached under ASAN, with nightly Clippy and rustfmt checks passing. The sanitizer run retained all case selections and target deadlines. The sanitizer workflow separates compilation from tests and bounds nested concurrency for hosted runners.50097d6375, a fresh Rust remote build against the corrected server completed 886 remote actions with an empty cache. The build and test passed, both scheduler status endpoints returned HTTP 200, and the server logged no errors.78ab50c3b6ran six uncached targets with 378 passes and one existing ignore, plus a server build; its packet binds source inputs and actual executable digests. Fault campaigns retain original failures and distinguish compiler/prerequisite failures from detected semantic faults.The closed recovered owner and private worker materialization are included with their separate fault campaigns and the combined root check. The next-stage handoff identifies the remaining layout synchronization, cold initialization/sealing, fixed feature admission and canonical coordinator dependencies. It is a source-only proposal.
Risk
This is a large experimental series touching authority state, persistence, worker lifecycle and protocol behavior. The categorical milestones remain open: production construction, cold bootstrap and sealing, combined workload admission, deployment trust and placement, migration, and final removal of legacy implementations still need work. Redis remains in the repository. Experimental formats and synthetic workload envelopes do not establish a production compatibility or capacity promise. Keep this PR in draft while those boundaries are reviewed and qualified.
AI assistance
OpenAI Codex (Astra), with collaborating agents, implemented the series, ran checks, and performed independent agent reviews. b7r6 directed the work and explicitly requested this draft PR. Human review is pending; no claim is made that every line has already received human review.