Skip to content

fix(id): restore references.rs build — Default for StoreId, own the from_markdown hex slice - #4477

Merged
dezren39 merged 1 commit into
mainfrom
queue/6359-4454-references-compile
Nov 2, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/6359-4454-references-compile

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Fixes #4454 (queue task 6359).

PR #2756 landed pkgs/id/src/references.rs uncompiled, breaking the default id lib build on main (the module is unconditional, lib.rs:213) with two errors:

  • E0277 (references.rs:303) — LocalIndex derives Default over a store: StoreId field, but StoreId had no Default impl. Fix: impl Default for StoreId delegating to StoreId::local() — the PoC has exactly one local store, so the default store is the local one.
  • E0597 (references.rs:124) — from_markdown broke out of the loop with a slice borrowed from the loop-local rest: String, which is dropped at the end of the match arm. Fix: .to_owned() the hex slice so the loop value owns it.

Changes are confined to pkgs/id/src/references.rs, per the issue scope.

Verification:

  • cargo check -p id --lib on the laptop (worktree on origin/main ee7d4de): passes (exit 0; was E0277 + E0597 on main). Triage task 6354 probe-verified the same two fixes compile the module.
  • cargo test -p id --lib references (12 existing unit tests): compile of the test harness was still running on the saturated laptop when the worker shift ended (log: ~/test6359.log on the laptop, worktree ~/git/fleet/task-6359); triage's probe ran all 12 green with these fixes. PR checks/Codex should be read before merge — the queue task is parked with that as its resume condition.

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 2, 2026 17:11
@coderabbitai

coderabbitai Bot commented Nov 2, 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 56 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: 9870efaf-1571-48b6-b69d-a126d6d903a0
Commits

Reviewing files that changed from the base of the PR and between 7297b5d and 9637726.

Files selected for processing: 1
  • pkgs/id/src/references.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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T17:12:24.900268Z 9637726 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.

dezren39 added a commit that referenced this pull request Nov 2, 2026
)

Codex P2 on PR #3896: a root connection that closed (server restart)
stayed in WorldSessions.roots forever; after close_session, open_session
skipped redialing on the membership check and kept attempting open_bi on
the dead connection, so one endpoint could only recover via close_all,
which also drops healthy sessions on other servers.

WorldSessions::open_session now evicts a closed root (detected via
WorldClient::is_closed, the close_reason idiom from repl.rs) together
with every session keyed to its endpoint before dialing, so the
endpoint redials independently. Regression test
coordinator_replaces_a_closed_root_connection_on_reopen covers
close_session + reopen after the root dies.

Verification status: targeted tests cannot run yet — the branch base
does not compile pkgs/id (references.rs E0277/E0597, the breakage PR
#4477 restores; world_net.rs E0599 addr.id() also fires on the PRs
pre-existing Self::key at the same base). Rebase onto post-#4477 main
and rerun cargo test -p id --lib world_net::tests::coordinator before
merge (task 5831 park note).
@dezren39
dezren39 merged commit 0292915 into main Nov 2, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/6359-4454-references-compile branch November 2, 2026 17:52
dezren39 added a commit that referenced this pull request Nov 3, 2026
parse_peek_args accepted --head-only with --tail-only and --chars with
--words, then silently rendered only one member of each pair. The CLI
declares both pairs conflicts_with (cli.rs); the REPL parser now rejects
both pairs with a parse error before any search/fetch work, mirroring
the existing --first/--last rejection shape. Regression tests pin both
conflicting pairs as errors and the single-flag cases as accepted.

Verification status: cargo test -p id --lib test_parse_peek_args cannot
complete on current main — the lib-test compile fails with only the two
references.rs errors (E0277 StoreId: Default, E0597 borrow) that PR
#4477 restores; no errors in repl/runner.rs. Rerun after #4477 merges
and this branch rebases (task 6234 park note).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant