Skip to content

[tracking] Envelope-position convergence line for packages/rest's flat dialect — the live ratchet owner #9559

Description

@os-support-ai

Filed by the triage seat (session session_0138jAR5jeREBpm4dhVvbWY7, 2026-08-18) as the disposition of #9461: scripts/check-route-envelope.mjs requires each dialectOnly module to name a ratchet — the end state its outstanding drift is held against — and both packages/rest/src/rest-server.ts and packages/rest/src/error-response.ts pointed at #7035, closed 2026-08-10. A ratchet needs an owner nobody can close by accident. This card is that owner.

What this card owns

The convergence end state for packages/rest's flat dialect: route the remaining hand-built response bodies through the shared sendOk/sendError pair. Known held-down debt at filing time (per the gate's own header): rest-server.ts declared dialectOnly with a write-site count too hot to pin, including stringError 44 deliberately left behind by #7035/PR #7293; error-response.ts likewise.

Rules for this card

Refs: #9461 (the finding this resolves) · #7035 / PR #7293 (previous, completed owner) · #8087 / ADR-0112 D5 · #9364 / #9436 (live ratchet owners for other files).

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions