GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — id-worlds: charge an installed account fuel-rate budget per update (#1067 slice 2) by dezren39 · Pull Request #12557 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f8221f22c
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Three threads on #12557: - Validate message size before debiting the fuel budget: WorldInstance::update now runs check_message_size before charge_fuel_rate, so an oversized event consumes no allowance. Example test an_oversized_event_does_not_consume_the_fuel_budget pins it. - Property coverage for admission accounting: a proptest over generated allowance, quota, event size, and admission/refusal sequences, checked against an explicit oracle after every event: bounded charges, exact refusal contents, metrics counting admitted invocations only, and refused calls neither executing nor poisoning the instance (reads still serve). Examples stay as smoke coverage. - Preserve actor health on fuel-rate refusal: the Input and EntityInput handlers now distinguish a FuelRateRefusal (checked before any .context is applied, when the refusal is outermost) from a guest failure, leaving program_healthy true so the same input can succeed once the window rolls. Handle-level test a_fuel_rate_refusal_keeps_the_actor_healthy covers refusal, health, and recovery. Addresses Codex review threads PRRT_kwDOJWP47866kM4D, PRRT_kwDOJWP47866kM4E and PRRT_kwDOJWP47866kM4J on #12557.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 069e5e36f2
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The oversized-event range literals defaulted to i32, mismatching the usize arm of the prop_oneof. Suffix them usize.
…1067) The echo fixture's plaza_alloc returns 0, so an event longer than 32 bytes overwrites its 'hello' data at offset 32 and the view legitimately returns 'eello'. The proptest's not-poisoned check only needs the view to succeed, not to return the pristine fixture string; pin the Ok, not the bytes.
…in batch/system paths, rollover-aware oracle Thread 1 (P1): handle_input_batch and deliver_system now distinguish a FuelRateRefusal from a guest failure via is_fuel_rate_refusal, like the single-input handlers: the program stays healthy, the refused batch input is answered with the refusal, remaining inputs go through the single path, and a refused host event is dropped with the schedule left pending. Tests: a_fuel_rate_refusal_in_a_batch_keeps_the_actor_healthy and a_fuel_rate_refusal_of_a_host_event_keeps_the_actor_healthy. Thread 2 (P2): the admission proptest pins the admission clock with a test-only fuel_now override on WorldInstance, so the budget window can only roll when the case steps it — never because the test process was descheduled mid-case. Each case then steps the pinned clock two seconds forward and asserts the fresh-window admission/refusal deterministically. Thread 3 (P1): already answered by c6bab8a — the proptest no longer pins the echo view bytes, which the fixture legitimately overwrites for events longer than 32 bytes; no code change here.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: d233bb2846
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ule fires (#1067) Codex review on #12557 (threads r4659428216, r4659428220): - A capability result whose delivery was refused at the account's fuel rate was lost: the side effect had already run, the request id stayed in handled_requests, and the guest waited indefinitely. deliver now returns DeliveryOutcome, and deliver_result queues a fuel-refused result in pending_results for retry after the window rolls, without re-executing the capability. The same queue covers restarted/client-provider refusals and broker completions. - A due schedule whose fire was refused woke the loop immediately and retried on every pass until rollover. A refusal now records fuel_retry_not_before (one full window past the refusal, which is guaranteed to land in a fresh window); fire_schedules skips attempts before it, next_schedule_wake holds a due schedule's wake there, and next_deadline wakes the loop there while results are queued. Tests: FuelWindowProgram oracles for both (queued result delivered exactly once after rollover; refused fire attempts nothing before its deadline and fires exactly once after), plus next_schedule_wake backoff cases. Not compiled or run locally (no Rust toolchain in the sandbox; laptop fleet-shell leg down) — CI is the first verification.
…tion (task 21625, lane oc-code-03) Resolves structural conflicts from main's F12.14 portal split (command.rs, execution/portal.rs), charge-config/burn-admission refactor (run_guest_call, account_charge), and device_input/blob changes against slice-2 fuel-rate admission: - sandbox.rs: keep both fuel_rate budget and charge_key/burn paths; update() charges fuel_rate then runs via burn-admitted update_inner - actor.rs: adopt main's mod command, keep is_fuel_rate_refusal, pending_results, fuel backoff, recoverable input branches - execution.rs: drop inlined portal (now in execution/portal.rs), keep DeliveryOutcome/deliver_result/retry_pending_results - execution/portal.rs: adapt deliver() bool check to .delivered() for DeliveryOutcome
|
Batch D progress — lane oc-code-03, Fleet task 21625: merged main by merge commit 6713ab6 and fixed a malformed method boundary in sandbox.rs introduced during that resolution (c2fbc0d). Scoped fmt audit of run dezren39/fleet#45495568041 found 15 pre-existing formatting-drift files identical to the main parent; left unrelated files unchanged. Targeted sandbox verification is now running remotely at https://github.com/dezren39/fleet/actions/runs/45500233903 (branch ref; previous short-SHA checkout did not resolve). Not merging without a successful verification result. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Batch D verification — oc-code-03 / task 21625: successful remote run https://github.com/dezren39/fleet/actions/runs/45503879118 at exact head 69742c4. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Next slice after #12539/#12557/#12739/#16002/#16033: AccountQuotas defined max_worlds but nothing enforced world counts. This slice adds a deterministic AccountWorldQuota ledger (account_charge.rs) beside FuelRateBudget, a HubLimits::max_worlds_per_account ceiling (0 = unbounded, preserving current behaviour), and WorldHub::lease_as / create_as account-carrying paths enforced atomically with slot insert in acquire_slot (TooManyWorlds refusal, reusing the global ceiling's handling; reopening an already-known world is never a new hold; a creation that never opens rolls its hold back via the lease guard). Pre-quota lease/create delegate with no account and are unchanged; serve keeps 0 until a CLI flag lands. Storage-byte accounting and ownership persistence across restarts remain follow-ups.
…te (#16151) Next slice after #12539/#12557/#12739/#16002/#16033: AccountQuotas defined max_worlds but nothing enforced world counts. This slice adds a deterministic AccountWorldQuota ledger (account_charge.rs) beside FuelRateBudget, a HubLimits::max_worlds_per_account ceiling (0 = unbounded, preserving current behaviour), and WorldHub::lease_as / create_as account-carrying paths enforced atomically with slot insert in acquire_slot (TooManyWorlds refusal, reusing the global ceiling's handling; reopening an already-known world is never a new hold; a creation that never opens rolls its hold back via the lease guard). Pre-quota lease/create delegate with no account and are unchanged; serve keeps 0 until a CLI flag lands. Storage-byte accounting and ownership persistence across restarts remain follow-ups. Co-authored-by: Drewry Pope <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.