Skip to content

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

Done

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. added
    in-progress
    on Jul 24, 2026
  4. 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.

  5. added
    accepted
    on Aug 13, 2026
  6. jerrybate-sketch commented on Sep 6, 2026

    @jerrybate-sketch
    Contributor

    /assign

  7. 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)

  8. 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.

  9. Davidson3556 commented on Oct 16, 2026

    @Davidson3556
    Contributor

    /unassign

  10. testsprite-hob commented on Oct 16, 2026

    @testsprite-hob

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

  11. self-assigned this
    on Nov 3, 2026
  12. removed
    in-progress
    on Nov 24, 2026
  13. zeshi-du commented on Nov 24, 2026

    @zeshi-du
    ContributorAuthor

    Closing as done. Of the shapes listed here, the project, /me and usage responses are validated at runtime as of v0.17.0, along with the new result responses. The test-code, create-test and failure-summary shapes went away with the commands that used them, which v0.17.0 removed. The one shape left is the test read (test get / test list), and we'll cover that ourselves, so this is no longer open for claims. @jerrybate-sketch, I've removed your assignment. Thanks to everyone who worked under this umbrella.

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

Metadata

Metadata

Assignees

Labels

accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions