GeezerVison is showing github.com — id(world): result_too_large is an undocumented capability wire error code · Issue #837 · developing-today/code
id(world): result_too_large is an undocumented capability wire error code #837Labels 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 Descriptionresult_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)
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) 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, 2026dezren39 commented on Oct 26, 2026 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. dezren39 commented on Nov 1, 2026 🤖 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
dezren39 commented on Nov 1, 2026 🤖 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.
dezren39 commented on Nov 1, 2026 🤖 Agent note · state: done
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/normalOrdinary priority (the default)source/humanFiled directly by a human DevelopmentNo branches or pull requestsIssue actions
|