GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(id): refuse pre-restart wants on reopen (#839) by dezren39 · Pull Request #4677 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

open_world
  restore program from journal
  spawn_restored
    capture request ids already present in wants
    after_change refuses those ids as actor_denied / restarted
    requests issued after open execute normally

Adds an explicit restored-world spawn path and documents restart semantics: because handled request ids are memory-only, open-time requests may already have executed before the restart. Refusing them prevents a duplicate unattributed side effect.

Evidence

  • Before: handled_requests starts empty after reopen; open-time wants requests execute with world authority.
  • After: three regression tests cover the refusal and reason, fresh requests after open, and restored-vs-fresh spawn behavior.
  • cargo test --lib world::tests:: — 139 passed.
  • cargo test --lib world_store — 30 passed.
  • cargo test -p id-core — 263 passed, 1 pre-existing unrelated failure (membership::layer::tests::test_a_sequential_named_create_is_refused_even_with_the_smaller_id; reproduced when run alone).

Merge Danger

Door: two-way

Blast Radius: narrow

Only restored-world request IDs already present in wants are refused. Fresh worlds and post-open requests retain existing execution behavior. Reverting restores the previous at-least-once-on-restart behavior.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 00:21
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You'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 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 125d9ef9-15db-461d-b2f9-9c617d209f13
Commits

Reviewing files that changed from the base of the PR and between effdff2 and 43dcdb9.

Files selected for processing: 5

  • pkgs/id/crates/id-core/src/world_caps.rs
  • pkgs/id/src/world/actor.rs
  • pkgs/id/src/world/handle.rs
  • pkgs/id/src/world/tests.rs
  • pkgs/id/src/world_store.rs
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T00:25:26.928443Z 43dcdb9 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 3, 2026
id(world): capability requests in wants re-execute unattributed after a world reopen #839
Closed
3 tasks
@github-actions github-actions Bot assigned dezren39 Nov 3, 2026
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@dezren39

dezren39 commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · picked up

  • Agent: queue worker (repo-worker-code), Lane X shift (code-x)
  • Session / ID: queue task 14750 (pr_shepherd, direct per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
  • Found via: queue claim (follow-on from batch triage task 12906, issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 4 of 9)
  • Task: Shepherd PR fix(id): refuse pre-restart wants on reopen (#839) #4677 (branch queue/6514-839-wants-reexec): refuse pre-restart wants on world reopen for issue id(world): capability requests in wants re-execute unattributed after a world reopen #839 (still OPEN; the restored-spawn path is not on main). Rebase onto current main, disposition Codex findings, run the targeted world tests, merge under the standing criteria.
  • Expectation: done = PR fix(id): refuse pre-restart wants on reopen (#839) #4677 merged with targeted tests verified and issue id(world): capability requests in wants re-execute unattributed after a world reopen #839 closed, or a recorded reason here and on issue Unowned PR batch from branch disposition (2026-11-07) #7297
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 repo-worker-code-k
fix(id): refuse pre-restart wants at reopen instead of re-executing (#…
df04696
…839)

A reopen is not a fresh world: handled_requests is memory-only, so
requests the restored program already listed in wants may have
executed before the restart, unattributed. spawn_restored now
captures the open-time wants and the first after_change passes
refuse those ids with actor_denied/restarted, keeping
non-idempotent providers at-most-once per id across a reopen.
Requests issued after the open execute normally.

Regression tests: reopened_wants_are_refused_not_reexecuted,
spawn_restored_refuses_open_time_wants,
stale_wants_capture_reads_the_current_wants.
@dezren39
dezren39 force-pushed the queue/6514-839-wants-reexec branch from c90be8d to df04696 Compare November 11, 2026 00:00
repo-worker-code-k
Merge remote-tracking branch 'origin/main' into shepherd-14750
43dcdb9
@dezren39

dezren39 commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

Agent note - picked up - lane code-b, task 14750 (pr_shepherd, PR #4677, batch issue #7297, linked issue #839).

Fresh revalidation: PR #4677 OPEN, no labels on the PR (no hard stops), issue #839 OPEN. The branch carries one substantive commit on current main: refuse pre-restart wants at reopen instead of re-executing them, with three new tests (reopened_wants_are_refused_not_reexecuted, spawn_restored_refuses_open_time_wants, stale_wants_capture_reads_the_current_wants). No Codex review findings exist on the PR. This shift: current origin/main merged into the branch in worktree fleet/14750 (diff unchanged, 5 files), targeted lib tests running on the laptop. Next: merge under the standing criteria when the tests pass, otherwise park with the evidence.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39

dezren39 commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked (resumable — verification build still running)

  • Agent: queue worker (repo-worker-code), Lane X shift (code-x)
  • Session / ID: queue task 14750 (pr_shepherd, direct per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
  • State reached: PR fix(id): refuse pre-restart wants on reopen (#839) #4677 rebased onto current main and pushed — head df04696. The rebase was NOT clean and the resolution matters, so it is recorded here in full:
    • actor.rs: both new struct fields kept (main's device_manifest from id: device.info capability — device capability manifest for interface adaptation (#2027) #2338 and the PR's stale_wants_at_open); doc comments merged.
    • The PR predates main's spawn refactor, and its textual rebase silently broke handle.rs: spawn_inner discarded its read_only/presence/device_manifest parameters and spawn_durable_inner referenced them undefined. Resolved by unifying the signatures: spawn_durable_inner now takes the full parameter set plus restored; spawn_inner forwards everything with restored=false.
    • spawn_restored now also takes a device manifest, and world_store's restored open passes Some(WorldHandle::host_device_manifest()) — the restored path keeps main's id(world): device.info can never succeed in production — no spawn path supplies a DeviceManifest, so every real request is refused unknown_cap #7942 manifest behavior instead of dropping it. The PR's test call site gained the extra None argument.
  • Reviews: Codex completed on the original head with no findings; no inline findings exist.
  • Remaining (exact next step): cargo test --lib world in the worktree (~/git/fleet/queue-14750-839-wants-reexec, pkgs/id) was still compiling on the laptop after ~50 minutes under heavy fleet contention — zero compile errors in the log (/tmp/lane-x-14750-test.log on the laptop; the target dir keeps the build, so a resume is incremental). When it reports: if the world tests pass (including spawn_restored_refuses_open_time_wants), merge PR fix(id): refuse pre-restart wants on reopen (#839) #4677 and close issue id(world): capability requests in wants re-execute unattributed after a world reopen #839; the task then completes fixed_merged.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 652f470 into main Nov 11, 2026
1 of 7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/6514-839-wants-reexec branch November 11, 2026 00:24
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:no-issue No spawning issue; judged on stated intent label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

audit:no-issue No spawning issue; judged on stated intent

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.