Skip to content

id(world): result_too_large is an undocumented capability wire error code #837

Closed

Description

@dezren39

result_event emits {"cap":"result",…,"ok":false,"error":"result_too_large"} (pkgs/id/src/world_caps.rs:325). That code is not a CapErrorCode variant, and it is missing from the module's refusal-code table (world_caps.rs:33-40). The module doc says codes are a stable wire contract that the DoS suite asserts, and F11.13's exit criterion is "every CapError carries a documented code". This one is outside both. Fix: add it to the enum and the table, or map it to failed with a reason.

Found while writing the F13.7 design (#789).

Acceptance criteria

  • result_too_large is either a CapErrorCode variant documented in the refusal-code table in world_caps.rs, or the emit site maps it to failed with a reason
  • The DoS suite's code assertions cover the result path (oversized result carries a documented code)
  • No other emit site in world_caps.rs produces an undocumented error string (grep audit recorded)

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    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 Oct 26, 2026
  2. dezren39 commented on Oct 26, 2026

    @dezren39
    MemberAuthor

    Intake review

    Still live: verified on current main (a2eef6f) — pkgs/id/src/world_caps.rs:325 still emits "error":"result_too_large" as a bare string; it is not in the refusal-code table (lines 33–40) and is not a CapErrorCode variant (enum at line ~359 has Denied/Unknown/BadArgs/Failed/ActorDenied/OutsideCeiling only).

    Related: #789 (found while writing the F13.7 design).

    Notes / risks: none material — the smallest item in this batch. Either resolution (new code vs map to failed + reason) is defensible; adding the variant keeps the oversized-result case distinguishable for clients and the DoS suite.

    Suggested approach: add the variant + table row, extend the existing assertion at world_caps.rs:860 (which already checks the string appears) to assert the documented code path.

    🤖 Fleet monitor intake enrichment — acceptance criteria appended to the body, labels normalized and meta/enriched applied this pass.

  3. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  4. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: queue task 2261 (repo-health-code-pilot)
    • Found via: queue claim
    • Task: Triage issue id(world): result_too_large is an undocumented capability wire error code #837 — audit every error-code emit site in pkgs/id/src/world_caps.rs against the CapErrorCode enum and the refusal-code table at current HEAD, then route a scoped fix packet or close with evidence.
    • Expectation: effort xs; done = verdict note with the emit-site audit at HEAD plus a follow-up fix packet if confirmed.
    • Links: pkgs/id/src/world_caps.rs
  5. 1 remaining item

  6. added
    queue/queuedHas a queued task in the Supabase agent queue
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 1, 2026
  7. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: picked up

    • Agent: Lane B queue worker (repo-worker-code)
    • Session / ID: queue task 4859
    • Found via: queue claim
    • Task: Implementing the triage-pinned fix (task 2261, option a): add CapErrorCode::ResultTooLarge (result_too_large), document it in the world_caps refusal-code table, route result_event's oversized fallback through the enum, and strengthen the bounded-result test to assert the parsed error equals the variant's code(). Wire string unchanged.
  8. added a commit that references this issue on Nov 1, 2026
  9. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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/normalOrdinary priority (the default)source/humanFiled directly by a human

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions