Skip to content

Smaller dev-loop gaps: OpenAPI check command, local signal sink, find user by email, one error envelope #917

Closed

Description

@jimhoyd

Found by the #841 trial (#909). All four are low priority.

  1. No user-facing OpenAPI validation. The export is validated only by a repository test against the vendored schema. A site needed a third-party validator. Expected: urlcode openapi --check, or a documented recommended validator.
  2. Signals can't be checked locally. Delivery can't be asserted or captured in local tests; urlcode test --verbose logs signal outcome: failed for a placeholder hook. Expected: a test-mode signal sink or a fixture assertion.
  3. No way to look up a user's id by email. urlcode-store members add --principal <id> needs the Better Auth user id. urlcode-auth has only migrate and create-user, so for self-registered users the operator has to query SQLite. Expected: urlcode-auth find-user --email, or members add accepting an email when auth is installed.
  4. Two error envelopes. A body-schema 422 is {"error":"body_validation_failed","message","issues"}, but store errors are {"error":{"code","message","issues"}}, so a frontend needs two parsers. Unverified: whether errors.format: json aligns them.

Activity

  1. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Items 1, 3 and 4 are in #921. Options for item 2 (checking signals locally):

    • (a) urlcode test swaps the egress broker for an in-process recorder, and fixtures assert expect.signals: [{event, count, payload-shape}]. Nothing is delivered in tests.
    • (b) urlcode dev --signal-sink stdout|<file.jsonl> records each would-be delivery as a JSON event, with outcome captured.
    • (c) Document an operator grant to a local HTTP receiver. This needs a loopback egress exception, which cuts against the egress rules.

    Recommended: (a) and (b) sharing one recorder, with never any real delivery in test mode.

  2. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Items 1, 3 and 4 landed in #921. Item 2 (local signal recorder, options (a)+(b)) is in progress.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions