Skip to content

id: #5873 flow verbs in the shared world_line grammar (#7616 part 1) - #11251

Merged
dezren39 merged 4 commits into
mainfrom
queue/20028-7616-world-verbs
Nov 17, 2026
Merged

dezren39 merged 4 commits into
mainfrom
queue/20028-7616-world-verbs

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Part 1 of #7616 (terminal participation in object discussions): the #5873 section 3 flow verbs land in the shared world_line grammar, so all three surfaces parse them identically.

Grammar (pkgs/id/crates/id-worlds/src/world_line.rs):

  • /anchor <target> [type], /anchor confirm <n>, /anchor list, /talk <target>, /anchors <target>, /resolve <thread> [into <target>], /queue, /flush are new WorldLine variants with the same verb-boundary rules as the existing set (ASCII space only, tab is not a separator, glued verbs stay unknown, bare argument verbs answer with usage, unknown /verbs still become WorldLine::Message and are never treated as chat text).
  • The [type] slot is the anchor relation (about, anchored-to-part, derived-from, talk-for, from id: design: chat anchor data model (from #5682) #5870's AnchorRelation vocabulary): it is taken from the final word when that word names a relation, so friendly-name targets keep their spaces otherwise. /anchors is matched before /anchor so the shared prefix cannot misparse.
  • Targets stay textual: an id://<target-id> reference (with a #pa1... part selector where applicable, per part 0's verdict on id: implement terminal participation in object discussions (from #5873) #7616) or a friendly-name phrase.

Surfaces: world_ssh.rs gains the mirrored WorldCommand variants and mapping; command_frame returns no frame for the new verbs and the SSH command-mode shell answers them locally with a not-available-in-this-session notice, following the Logs precedent. The id world join pump (id-cli commands/world.rs) answers them with the same kind of local notice, following the Documents precedent. Both help texts list the new verbs. Execution wiring (chat.anchor.v1 emission, talk_for binding, resolve mechanics, outbox inspect/drain) is deliberately NOT in this PR: it lands per-verb in follow-on work without grammar changes, and no surface silently forwards a frame the world program cannot mean in the meantime.

Verification, stated plainly: the parser is self-contained and was verified standalone (rustc --test on world_line.rs): 10/10 tests pass, including the two new flow-verb tests. The in-crate build cannot currently verify: id-worlds does not compile on main for pre-existing reasons (issue #11250 — ClientFrame Pointer/Hover E0004 in world_session, #1831 S2 fallout, plus test-module fallout from the #10456 split). A cargo check of this branch surfaced exactly those pre-existing errors and none in the files this PR touches, but id-cli could not be reached behind the id-worlds failure. This PR should merge only after #11250 is fixed, this branch is rebased, and cargo test -p id-worlds -p id-cli runs green in-crate.

Part 0 of #7616 (the #5870 grammar vs #5873 section 5.2 frame check) is already recorded on the issue: the pa1 grammar is fragment-safe, no amendment to the #5873 record is needed. Parts 2 (textual anchor rendering) and 3 (offline compose on the existing Outbox) remain after this.

Refs #7616


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

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 11:21
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T11:21:21.671183Z
We couldn’t complete this review. Comment @codex review to try again.
71d4e7c PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

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 43 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: b07cd406-40be-4b4c-be7b-800c1031f371
Commits

Reviewing files that changed from the base of the PR and between bcb79c8 and ba21c2e.

Files selected for processing: 3

  • pkgs/id/crates/id-cli/src/commands/world.rs
  • pkgs/id/crates/id-worlds/src/world_line.rs
  • pkgs/id/crates/id-worlds/src/world_ssh.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

@dezren39
dezren39 force-pushed the queue/20028-7616-world-verbs branch from 71d4e7c to 54a2fc5 Compare November 17, 2026 12:34
repo-worker-tmp-code-b added 3 commits November 17, 2026 07:03
…p surfaces

The parser already carried the #5873 section 3 verbs; this pins the
acceptance property that the SSH command mode and the id world join
pump consume exactly the same shared parse, that no flow verb is
forwarded to the world program as a frame, and that the pump answers
them locally instead of sending a frame the host cannot mean.
@dezren39
dezren39 merged commit 2793052 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20028-7616-world-verbs branch November 17, 2026 14:04
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