Skip to content

Extend runtime response validation to the remaining typed response shapes #277

Open

Description

@zeshi-du

Follow-up to #266 (merged), which established the validation policy (looseObject + openWireLiteral + evidence-based nullish/optional — see the merge comment there) and wired it into the 7 run-path shapes.

Remaining work: bring the other typed response shapes onto the same schema layer incrementally — CliTest, CliTestCode, CliCreateTestResponse, CliProject, MeResponse (schema already stubbed as ME_IDENTITY_SCHEMA, currently unwired), UsageResponse, CliFailureSummary, and the rest of the as T casts in src/lib/http.ts helpers.

Guidelines:

Good structured task for anyone who wants it — comment /assign to claim.

Activity

  1. Davidson3556 commented on Jul 24, 2026

    @Davidson3556
    Contributor

    /assign

  2. testsprite-hob commented on Jul 24, 2026

    @testsprite-hob

    Assigned to @Davidson3556. Thanks for taking this on. (2 more slots available.)

    Your open assigned issues (1/3):
    (none)

  3. Davidson3556 commented on Jul 26, 2026

    @Davidson3556
    Contributor

    Started on this. PR #291 covers the account surfaces group: ME_RESPONSE_SCHEMA + USAGE_RESPONSE_SCHEMA, and it wires the stubbed ME_IDENTITY_SCHEMA into doctor (whose local MeIdentity had already drifted — it carried v3Enabled, the schema didn't).

    The one that actually bites: whoami calls m.scopes.join(', ') unguarded, so a /me body without scopes throws a raw TypeError in text mode and, under --output json, exits 0 with a partial identity. Before/after is in the PR.

    Next up, unless you'd rather have them ordered differently: the read shapes (CliTest, CliTestCode, CliProject), then CliCreateTestResponse + CliFailureSummary and the remaining as T casts in the http.ts helpers.

  4. added
    acceptedTriaged and accepted — a PR for this will be reviewed
    on Aug 13, 2026
  5. jerrybate-sketch commented on Sep 6, 2026

    @jerrybate-sketch
    Contributor

    /assign

  6. testsprite-hob commented on Sep 6, 2026

    @testsprite-hob

    Assigned to @jerrybate-sketch. Thanks for taking this on. (2 more slots available.)

    Your open assigned issues (1/3):
    (none)

  7. zeshi-du commented on Sep 16, 2026

    @zeshi-du
    ContributorAuthor

    Umbrella status.

    Tracked internally as DEV-879 — runtime response validation is missing for CliTest / CliTestCode / CliCreateTestResponse / CliProject / CliFailureSummary, which trust the wire unchecked. This is confirmed and wanted; it isn't a speculative hardening request.

    Two notes for the people working under this umbrella:

    Leaving this open as the umbrella until every shape in DEV-879 is covered.

  8. Davidson3556 commented on Oct 16, 2026

    @Davidson3556
    Contributor

    /unassign

  9. testsprite-hob commented on Oct 16, 2026

    @testsprite-hob

    Unassigned @Davidson3556. Thanks for the update — freeing this up for someone else.

  10. self-assigned this
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

acceptedTriaged and accepted — a PR for this will be reviewedin-progressAssigned and actively being worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions