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 — id(world_net): create_world reads a missing or mistyped 'created' flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist · Issue #6632 · developing-today/code

id(world_net): create_world reads a missing or mistyped 'created' flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist #6632

New issue
Copy link
New issue
Copy link
Closed
#6688
Closed
id(world_net): create_world reads a missing or mistyped 'created' flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist#6632
#6688
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

id(world_net): create_world reads a missing or mistyped created flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist

Evidence (verified this run, laptop primary @ origin/main 075b2de)

WorldClient::create_world (pkgs/id/src/world_net.rs:1226) checks only that the reply frame's type is "world_created", then reads the outcome flag with a silent default:

  • pkgs/id/src/world_net.rs:1245 — Ok(reply["created"].as_bool().unwrap_or(false))

false is a real, meaningful answer here: the host (pkgs/id/src/world_session/mod.rs:977-986) replies ServerFrame::WorldCreated { world, created } where created: false means the world already existed. So a world_created reply whose created field is missing or mistyped (host bug, version skew, hostile host) is indistinguishable from "already exists" — the client reports Ok(false) and never errors.

The sole caller trusts the bool directly:

  • pkgs/id/src/commands/world.rs:772-777 (id world create): println!("{}", if result? { "created" } else { "exists" }) and exits Ok(()) — a malformed reply prints exists and exits 0, telling the operator the world is there when the reply never actually said so.

Sibling WorldClient methods refuse exactly this shape instead of defaulting: set_isolation requires the field with .context("host sent no isolation") (world_net.rs:1155-1158), info_details requires world_id/current_sequence with context errors (:1473-1478), set_schedule/cancel_schedule parse via from_value with "host sent a malformed schedule map" (:909/:943), and manifest_state does the same (:979).

Reproduction (probe, laptop)

Probe ~/git/fleet/probe-world-reply-defaults (verbatim extraction of the reply tail world_net.rs:1237-1245; only the transport is replaced by passing the reply Value in):

  • control {"type":"world_created","world":"arena","created":true} -> Ok(true)
  • control {"type":"world_created","world":"arena","created":false} -> Ok(false) (legitimate "exists")
  • MISSING created ({"type":"world_created","world":"arena"}) -> Ok(false) — silently reads as "exists"
  • MISTYPED created ("created":"true") -> Ok(false) — silently reads as "exists"

PROBE PASS (cargo run --offline, laptop). Note the same probe run also reproduced the policy_request null/verbatim behavior — that half is already tracked as #6625 and is NOT part of this issue.

Why it matters

id world create is how an operator provisions a world. Today a garbled success reply produces a confident, wrong answer — "exists", exit 0 — for a world whose creation was never confirmed. The operator (or a script checking the output) proceeds as if the world is ready; the failure surfaces later, elsewhere, with no trace back to the bad reply. This is the same silent-default family as #6620 (compile) and #6621 (read_worlds), in a distinct method with a distinct user-visible lie.

Acceptance criteria

  • WorldClient::create_world rejects a world_created reply whose created field is missing or not a bool, with an error in the existing style (e.g. "host sent no created flag" / "host sent a malformed world_created reply")
  • Well-formed replies still return Ok(true) (newly created) and Ok(false) (already existed) unchanged; the refusal path (non-world_created type) still surfaces the host's message
  • A regression test feeds create_world (or its reply extraction) the missing/mistyped shapes and asserts Err; the two control shapes assert Ok(true)/Ok(false)
  • cargo test -p id world_net (laptop or CI) green, including the existing create-world-over-iroh tests (world_session/tests.rs:1724-1770 region)

Distinct from: #6620 (compile reply defaults), #6621 (read_worlds reply drops), #6624 (caps/update_caps report), #6625 (policy_request policy) — same family, different method and consequence. The typed server side is ServerFrame::WorldCreated { world, created } (pkgs/id/src/world_session/mod.rs:981-984); only the client extraction is unchecked.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-2038

  3. dezren39
    added
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane A, slug new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-06 16:05 CST
    • Found via: filed this run
    • Task: create_world silently defaults a missing/mistyped created flag to Ok(false) — malformed world_created reply reports "exists"; verified by read + verbatim-extraction probe on the laptop (~/git/fleet/probe-world-reply-defaults @ origin/main 075b2de)
    • Expectation: effort/s — one-expression fix in the sibling context-error style plus a regression test; done when the acceptance criteria hold and cargo test -p id world_net is green
    • Links: packet packet-6632-small-fix.json (enqueue attempted this run; queue backend in PostgREST outage infra: repo-queue PostgREST timeout: global failures lane-visible again — recurrence after #6450 closed (2026-11-06 21:15-21:31Z) #6619 — result recorded in the backlog)
  5. dezren39
    added a parent issue on Nov 7, 2026
    • Design: a reply is not its defaults — one validated-reply contract for the WorldClient #6669
  6. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Nov 7, 2026
  7. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · design-architect pass 64 — adopted as a phase of design #6669

    • Design: Design: a reply is not its defaults — one validated-reply contract for the WorldClient #6669 — a reply is not its defaults (one validated-reply contract for the WorldClient). Doc: files/designs/code-worldnet-reply-validation.md in the keep-the-four-repos-healthy goal workspace.
    • This issue is Phase 1 (defaulted scalars) of Design: a reply is not its defaults — one validated-reply contract for the WorldClient #6669, linked as its sub-issue.
    • Your acceptance stands unchanged: created is required-and-typed — a missing/mistyped flag is a malformed reply, never Ok(false). Phase 1 also carries id(world_net): compile() silently defaults a malformed 'compiled' reply — missing/mistyped module_hash, sequence and diagnostics all read as Ok(("", 0, "")) #6620 and id(world_net): read_worlds_reply reads a missing or mistyped 'default' as Ok("") — a malformed worlds reply silently lists no default world #6647. Triage: do not re-file, split, or re-scope; record the phase structure instead. Your existing queue lifecycle is untouched.
  8. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-l — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-l posts progress markers; after 30 minutes of silence any other worker may pick this up.)

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-l
    • Session / ID: repo-queue-worker-shift-l run, 2026-11-06 19:58 CST (fallback mode; no queue task id — issue id(world_net): create_world reads a missing or mistyped 'created' flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist #6632 is the task)
    • Found via: fallback scan of queue/queued issues (backend down: fleet queue health HTTP 503 PGRST002; fallback subcommand not in deployed fleet 0.1.0 binary, protocol doc/fleet/queue-fallback-mode.md followed manually via gh CLI)
    • Task: fix create_world silent default of missing/mistyped created flag in pkgs/id/src/world_net.rs per acceptance criteria, with regression tests
    • Expectation: effort s; done = PR opened/merged with fix + tests, verified against current main
    • Links: pkgs/id/src/world_net.rs
  9. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 7, 2026
  10. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-l: verified: bug confirmed on current main 2b426f7 — pkgs/id/src/world_net.rs create_world still reads reply["created"].as_bool().unwrap_or(false); worktree ~/git/fleet/fallback-6632 on branch queue/fallback-6632-create-world-created-flag created from origin/main; next: factor parse_create_world_reply per the parse_module_info_reply precedent (#6633) + regression tests

  11. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-l: implementation_complete: parse_create_world_reply factored + regression test added, rustfmt clean on world_net.rs; targeted cargo test compiling/running on laptop

  12. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-l: pr_opened: PR #6688 #6688 (branch queue/fallback-6632-create-world-created-flag @62377a73ee); targeted tests passed on laptop (new parser test, sibling parser test, existing create-world-over-iroh test); next: check PR CI/Codex, merge if green

  13. dezren39
    added a commit that references this issue on Nov 7, 2026

    Merge pull request #6688 from developing-today/queue/fallback-6632-cr…

    83a6d10
  14. dezren39
    closed this as completedin #6688on Nov 7, 2026
  15. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Released by repo-worker-code-l (outcome: done). Issue #6632 FIXED and merged: PR #6688 #6688 (branch queue/fallback-6632-create-world-created-flag @62377a73ee, merge commit 83a6d10). create_world now rejects a world_created reply whose created flag is missing (host sent no created flag) or non-boolean (malformed reply) via the factored parse_create_world_reply; controls Ok(true)/Ok(false) and the refusal path unchanged. Tests on laptop: new create_world_reply_requires_created_flag ok, sibling info_details_rejects_malformed_active_module_hash ok, existing world_session only_an_admin_creates_or_lists_worlds ok; rustfmt clean on world_net.rs; Codex review completed with no findings. PR-tier CI was still QUEUED (runner backlog) at merge — merged under the standing merge authority with laptop-verified tests. Issue auto-closed by the PR.

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-l
    • Session / ID: repo-queue-worker-shift-l run, 2026-11-06 19:58 CST (fallback mode; issue id(world_net): create_world reads a missing or mistyped 'created' flag as Ok(false) — a malformed world_created reply reports "exists" for a world that may not exist #6632 is the task)
    • Outcome: fixed_merged — PR fix(id): reject world_created replies with a missing or mistyped created flag (#6632) #6688 merged, issue closed
  16. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 7, 2026
  17. developing-today
    added
    status:done
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.