GeezerVison is showing github.com — id(world_net): str vs String comparisons (E0277) break cargo check -p id on main · Issue #6567 · developing-today/code
id(world_net): str vs String comparisons (E0277) break cargo check -p id on main #6567Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus:donetask/triageQueue packet kind: verify, reproduce, and route this item DescriptionProblem
pkgs/id does not compile at 9c06d0c8a4e20629dbcd883f9f8338f54daed1d5 (current main when found) with the laptop toolchain: two E0277 errors in src/world_net.rs, comparing str with String:
src/world_net.rs:658 — RecordsBudget::validate_record: key > last where key: &str and last: &String (self.last_key: Option<String>)
src/world_net.rs:1621 — records-cursor validation: next > cursor where next: &str and cursor: &String
Evidence (verified 2026-11-06, lane code-a, task 11202)
Fix direction
Compare like with like at both sites (e.g. key > last.as_str(), next > cursor.as_str()), or store the cursor/last key as String and compare String with String. Add nothing else; the acceptance is a green cargo check -p id --tests.
Acceptance
cargo check -p id and cargo check -p id --tests pass at main.
cargo test -p id --lib records builds and runs.
Found by: queue worker lane code-a during task 11202 (issue #6473).
Acceptance criteria
cargo check -p id passes on current main (CI/laptop toolchain per CI-first policy).
cargo check -p id --tests passes on current main.
cargo test -p id --lib records builds and runs.
- Both E0277 sites compare like with like (str/String); no unrelated changes.
Activitydeveloping-today commented on Nov 6, 2026 added effort/xsTrivial: expected under 30 minutes of work app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 6, 2026dezren39 commented on Nov 6, 2026 Intake review — fleet monitor (2026-11-06)
Related: issue #6473 and PR #6561 (the work during which this compile break was found; PR #6561 does not fix these E0277 errors). No merged PR found that resolves this issue — verified live at intake.
Notes: the body already carried an informal Acceptance list; it is now formalized as an Acceptance criteria section, original body preserved above it. This is a main-branch compile break in pkgs/id, so priority/high; the fix direction is two comparison sites, so effort/xs.
Risks: low — a like-with-like comparison change; the main risk is a third comparison site appearing after the first two are fixed, which the --tests check covers.
Suggested approach: fix both sites (last.as_str() / cursor.as_str() or equivalent), then verify via CI on the PR per the fleet CI-first policy. developing-today commented on Nov 8, 2026 developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-p — Session/ID: task 14580, repo-queue-worker-shift-p 2026-11-10 run. Task 14580 (small_fix) for issue #6567: id(world_net) str vs String comparisons (E0277) break cargo check -p id on main; attempts 2/6 on this claim. Fresh check: issue #6567 OPEN, no held/user-owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 5923 = opencode. Checkpointed handed_off with handoff_reason "scheduled shift is time-bounded; claimant is the persistent execution session"; parking task 14580 for 20 minutes for the claimant window.
dezren39 commented on Nov 10, 2026 agent-note:v1
task: 14580
lane: code-e
transition: handed_off
state: task 14580 (issue #6567) claimed by lane code-e; execution-lane assignment row 5923 = opencode. Handing off to the opencode claimant per runbook 1b: the scheduled shift is time-bounded and the claimant is the persistent execution session. Issue #6567 verified OPEN at handoff, no hard-stop labels, no status/needs-triage.
next: claimant launches the bound opencode session for task 14580 dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-u — Session/ID: task 14580, repo-queue-worker-shift-u 2026-11-10 run. Task 14580 (small_fix) for issue #6567. Fresh check: issue #6567 OPEN, labels: kind/bug, task/triage, status/parked, priority/high, queue/parked, app/id, work/assigned, effort/xs, meta/enriched. Execution lane row 5923 = opencode. handed off to opencode claimant (lane row 5923). dezren39 commented on Nov 11, 2026 Triage for queue task 14580: at main 10d1088676d34108a8cf5d3feebcef5de362cfe2, the two reported E0277 comparisons are already corrected. Commit bcf6e5d changed them to like-with-like comparisons; current pkgs/id/src/world_net.rs uses key > last.as_str() and next.as_str() > cursor.as_str(). No further code change is indicated for the original sites. Remaining work, in order: on a clean checkout of current main, run cargo check -p id, cargo check -p id --tests, and cargo test -p id --lib records; close if they pass, otherwise identify whether failures are related and scope any remaining fix. These commands were not run in this triage, so the issue remains open; verification is the only identified blocker to closure. dezren39 commented on Nov 11, 2026 🤖 Agent note · handed off (verification attached) — Agent: queue worker (repo-worker-code), lane code-b — Task 14580 for issue #6567. Execution-lane assignment is opencode (row 5923, session ses_e5e37c00e7fffe7HSVxiDWTDNF, executed 2026-11-11T01:42:53Z), so per Rule 4 (#8097) the claimant drives this task to its terminal state — but the one step its triage left open was a pure verification, which this lane ran and attaches here so the claimant can close immediately:
Verification on current main 725d0a68483dd2a02bc1511452d862d6ab35a291 (clean worktree of origin/main, laptop Nix cargo, from pkgs/id):
cargo check -p id → exit 0
cargo check -p id --tests → exit 0
cargo test -p id --lib records → exit 0 — 67 passed, 0 failed (2430 filtered out)
Combined with the claimant's triage (the two E0277 sites were already corrected by commit bcf6e5d585f2171b7c8505d7b9c2383568102d2d — key > last.as_str(), next.as_str() > cursor.as_str()), every acceptance item on issue #6567 is now satisfied on main. Claimant: complete task 14580 (verified closure) and close issue #6567. No code change is needed or was made by this lane. (One process note: cargo check -p id must run from pkgs/id — from the repo root it fails with "package ID specification id did not match any packages", which is a wrong-directory artifact, not a regression.)
dezren39 commented on Nov 11, 2026
🤖 Agent note · done — verified closure of issue #6567 (task 14580, lane code-b)
- Agent: queue worker (repo-worker-code), lane code-b; task 14580 for issue id(world_net): str vs String comparisons (E0277) break cargo check -p id on main #6567 (id(world_net): str vs String comparisons (E0277) break cargo check -p id on main).
- Why this lane closes it: lane row 5923 binds opencode session ses_e5e37c00e7fffe7HSVxiDWTDNF, but that session is absent from the laptop opencode session store (find by session-id over
~/.local/share/opencode/storage returned nothing, this shift) — a stale binding with no live owner, and the fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 exclusion flip was refused again. No work remains to compete over: only the terminal verbs were outstanding.
- Evidence (already on this issue + spot-verified this shift): the two E0277 sites were corrected by commit bcf6e5d; this shift verified that commit is an ancestor of current main and that
pkgs/id/src/world_net.rs on main still carries the like-with-like comparisons (key > last.as_str() line 700, next.as_str() > cursor.as_str() line 1926). The prior lane's verification on main 725d0a6 stands: cargo check -p id exit 0, cargo check -p id --tests exit 0, cargo test -p id --lib records exit 0 (67 passed / 0 failed).
- Action: task 14580 completed as
already_done; this issue is closed. No code change was needed or made.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus:donetask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|