Repository navigation
id-shell contract revision 11: agent profile — region subscriptions, semantic diffs, stale-decision token (#7913) - #11302
Merged
Conversation
…semantic diffs, stale-decision token (#7913) Additive revision per design doc/2026-11-09_design_id6300_agents_in_worlds_v1.md sections 4.2/4.3/8/9.1: join agent_profile capability flag, screen_subscribe client frame, semantic_diff + screen_subscription server frames, screen_revision stale-decision token on agent input frames with host-side rejection (error code stale_decision, no commit, current view follows). Host: id-worlds world_session (join threading, subscription validation + ack, event diffs scoped by class, region diffs in send_view). Native shell: builders + SessionState folding + semantic_diff_text rendering. Conformance: contract parity/transcript tests, live host contract tests, view region/scoping oracles, native-shell transcript test. Also fixes #11277 (pre-existing, proven on clean e5eab19): revision-10 Pointer/Hover variants had no dispatch arms (E0004 x2, crate did not compile), plus E0618 in shell_contract pointer test and missing world_caps imports in actor device_info/form test modules. Interim pointer dispatch is an explicit input_refused/unknown_or_unsupported_event; hover is an ephemeral no-op; real pointer routing remains #1831 follow-up work.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed.
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. |
…t-shell-profile # Conflicts: # pkgs/id/crates/id-worlds/src/shell_contract/tests.rs
…ttern Main's pointer handler (#1831 S2) destructured every Pointer field; revision 11 adds screen_revision, which is checked before dispatch and is not part of the journaled input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
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.
Implements #7913 (spike 1/5 for #6300): the agent shell profile in the id-shell contract, per design
doc/2026-11-09_design_id6300_agents_in_worlds_v1.mdsections 4.2, 4.3, 8, 9.1 (PR #7911).Contract (additive revision 10 -> 11)
joingains theagent_profilecapability flag: a shell that sets it advertises it can consume semantic diffs.screen_subscribe(ephemeral, joined): a screen region and/or semantic event classes (chat_posted,input_applied,object_changed,system_event,program_changed; empty list = all, absent = none).semantic_diff(ephemeral) andscreen_subscription(reply, echoes the active subscription + current screen revision).input,chat,paste,form_result,pointer) gain the optionalscreen_revisionstale-decision token.features.agent_profiledocuments the profile, including the reduced-fidelity rule: a host without the revision serves an agent full view frames with identical authority.Host (id-worlds)
agent_profileinto the session's view state; authority is unchanged.screen_subscribeis validated (region bounds, known classes, at least one of region/classes, agent flag required), recorded connection-locally, and answered withscreen_subscription.semantic_diffframes in world terms (chat text, object ref, program hash — never raw input bytes, system payloads, or seeds).region_changeddiffs computed insend_viewagainst the last screen the session received, scoped to the subscribed rows/columns.screen_revisionis not the session's current screen revision is rejected before dispatch with anerrorframe (codestale_decision), commits nothing, and the current view follows.Native shell (id-native-shell)
agent_join_frame,screen_subscribe_frame,input_frame_with_revision.SessionStatefoldssemantic_diff/screen_subscriptionframes;semantic_diff_textrenders diffs as world-term lines.Conformance (design section 8 cases for this spike)
Also fixes the pre-existing main breakage filed as #11277 (id-worlds did not compile at e5eab19: revision-10 Pointer/Hover dispatch missing, E0004 x2 — proven on a clean worktree; plus two test-build import/shadowing errors behind it). Interim dispatch: hover = ephemeral no-op, pointer = explicit
input_refused/unknown_or_unsupported_eventuntil #1831 routing lands; the journal-boundary test's pointer expectation is written ahead of that routing and stays red for #1831.Queue: task 20044, lane any-e.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.