GeezerVison is showing github.com — id: design: Postgres-over-HTTP adapter (from #5672) · Issue #5805 · developing-today/code
id: design: Postgres-over-HTTP adapter (from #5672) #5805DescriptionSummary
Follow-on design ticket from #5672 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.
What this design must settle
The Postgres-over-HTTP adapter: query translation scope — what subset of ID queries translates, and what is honestly refused.
Context from the parent
The parent design fixes the selective-sharing grants model, the existence-privacy rule, and the foreign data-store adapter contract. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.
Decision record expected
Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.
Relations
Parent: #5672. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 agent-note:v1 agent=repo-worker-code state=picked-up task=10208 lane=8ac61616-3815-4e7b-b33d-840a3829154a at=2026-11-05T12:46:45Z
Claimed queue task 10208 for triage. Revalidated issue #5805 as open; checking the parent design and any existing work before routing. dezren39 commented on Nov 5, 2026 🤖 Agent note · done (triage)
Triage findings (verified fresh 2026-11-05):
- Issue id: design: Postgres-over-HTTP adapter (from #5672) #5805 remains OPEN and unassigned. It has no hard-stop labels (
held, user/owned, do-not-merge, do-not-auto-edit) and no matching PR was found. Parent id: design: ID selective sharing and foreign data-store adapters v1 #5672 and adapter-contract issue id: design: foreign data-store adapter contract (from #5672) #5803 are also OPEN; no competing implementation was found.
- Scope: settle the Postgres-over-HTTP endpoint contract and the ID query shapes it supports. Unsupported shapes must be explicitly refused, not silently degraded. The parent asks which HTTP interface is canonical; this ticket should answer that for Postgres rather than re-decide the parent’s grants or existence-privacy model.
- Current-main evidence:
doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/2026-11-04T21-27-34Z_design_atlas_scaler_revision.md:463-474 accepts a portable PostgREST-style REST contract over standard Postgres and keeps Supabase-specific features out of the portable core. The queue broker (pkgs/fleet/crates/fleet-queue/src/queue_broker.rs:165-249,490-567) is a narrow hand-built PostgREST client, not a general SQL/query translator. Atlas’s SQL-over-HTTP pipeline is for libSQL/Turso, not Postgres (pkgs/atlas-search/crates/atlas-core/src/turso.rs:92-205). No general Postgres adapter or query-translation implementation exists on current main.
- Design fork / recommendation: explicitly choose between PostgREST-compatible CRUD/RPC and an endpoint that accepts arbitrary SQL; do not imply general SQL translation unless the endpoint provides it. Define the supported filters/operators, ordering/limits, pagination/counts, types and errors, and whether joins, writes/RPC, or cross-request transactions are in scope. Add request/response contract tests with an injectable transport when implementation is planned.
- Ordering: exploratory work can proceed now. Align the final decision with id: design: foreign data-store adapter contract (from #5672) #5803’s addressing/type-mapping/live-vs-materialized/auth/error contract and record assumptions against the still-open parent id: design: ID selective sharing and foreign data-store adapters v1 #5672. id: design: foreign data-store adapter contract (from #5672) #5803 is a design input, not an active competing PR. No Drew decision or access blocker was found.
- No code changed and no runtime reproduction or tests were applicable. No additional issue or queue task was created: id: design: Postgres-over-HTTP adapter (from #5672) #5805 is already the follow-on design ticket; implementation timing remains a separate decision.
Disposition: triaged; issue #5805 stays open for the scoped design decision.
dezren39 commented on Nov 8, 2026 Agent note - handed off
- Agent: queue worker (repo-worker-code), lane code-e
- Session / ID: task 12306
- Found via: queue claim
- Task: triage of issue id: design: Postgres-over-HTTP adapter (from #5672) #5805 handed off to the opencode claimant (assigned_lane=opencode)
- Expectation: claimant launches the bound opencode session and drives task 12306 to a terminal state; if unbound at lease expiry the task returns to the queue
- Links: n/a
added kind/designA design proposal (design-architect): multi-step, phased, decision-bearing effort/lLarge: multi-day or open-ended; expect staged check-ins on Nov 11, 2026dezren39 commented on Nov 11, 2026
Agent note — inline triage: real-and-current, design routed (task 14618, lane code-v)
- Task 14618 claimed by lane code-v; lane assignment
direct — triaged inline in this shift (per §1c; no triage-step park).
- Fresh verification 2026-11-11T04:08Z: issue id: design: Postgres-over-HTTP adapter (from #5672) #5805 OPEN, no hard-stop labels, no
status/needs-triage. No open or merged PR references id: design: Postgres-over-HTTP adapter (from #5672) #5805, and no design record for the Postgres-over-HTTP adapter exists in doc/ on current main.
- Verdict: real-and-current. Re-confirms task 13143's 2026-11-08 verdict (note 6721362159). New evidence since then: parent id: design: ID selective sharing and foreign data-store adapters v1 #5672 is now CLOSED — its closing note (task 12243) says explicitly that there is no remainder owned by the parent and the remainder lives in the child design tickets, each with its own queue/design state. This ticket is one of those children and is still live.
- Scope (unchanged from the body): settle the adapter's query-translation scope — what subset of ID queries translates, and what is honestly refused — and close with a recorded decision (chosen shape, rejected alternatives, invariants for implementation), without re-deciding the parent's fixed decisions (grants model, existence privacy, adapter contract).
- Labels applied:
kind/design, priority/normal, effort/l. Priority reasoning: design work is Drew-weighted (ID design tracks), but the body says timing is possibly months out and the standing order is to finish open work before starting new design — normal, not high. Effort l: a decision record, not a code fix.
- Routing: a design commission, not a queue fix packet — no queue kind expresses it (the same reason task 14010 gave for issue design(atlas): expansive v2–v4 — feedback-driven ranking, provenance-complete resolution, self-curating corpus #6020). Precedent is the sibling ticket id: design: encrypted shares & key distribution (from #5672) #5801, decided via a design-mill record merged as PR docs(id): decision record — encrypted shares & key distribution (#5801) #7961 (
doc/2026-11-09T05-06-00Z_decision_id5801_encrypted_shares_key_distribution.md). Task 13143's attempt to enqueue a fix packet deduped into itself, confirming the queue-packet route is a dead end for this work. No packet enqueued; this task completes as triaged naming this note and the id: design: encrypted shares & key distribution (from #5672) #5801 route pattern.
dezren39 commented on Nov 17, 2026 agent-note:v1
lane: code-f (openchamber-scheduled-lane)
task: 18377
issue: #5805
stage: triaged
verdict: real and current; design still owed, no fix packet queued
Fresh check (2026-11-17): #5805 is OPEN, with labels task/triage, kind/design, epic/id-program. No hard-stop labels. No open PR references #5805. Parent #5672 is the same design line. No live queue task covers #5805 other than this triage claim.
Disposition: this is a design ticket (what Postgres-over-HTTP query subset translates and what is refused, with a decision record). It is not a small fix, so a worker-sized fix packet would be the wrong shape. Keeping it open for a design owner. The earlier routing on 2026-11-11 left no live task, so this is recorded here rather than re-queued.
dezren39 commented on Nov 23, 2026 🤖 Agent note · done (design)
- Lane: oc-code-05 (OpenChamber scheduled Fleet lane), queue task 21489
- Design record: PR design: #5805 Postgres-over-HTTP adapter decision record #13771, merged at
573540088e665c4759563836f94ad2dfc82214fd
doc/2026-11-23T20-55-00Z_design_id5805_postgres_http_adapter/2026-11-23T20-55-00Z_design_id5805_postgres_http_adapter.md, plus the index line in doc/README.md
- Decision: PostgREST-compatible surface only. No SQL-over-HTTP and no
/rpc. Where no PostgREST surface exists, the endpoint is adapter_unavailable (no_rest_surface).
- Query translation scope: one collection; conjunctive filters over a closed operator set; declared projection; ordering on declared keys with the unique key as tiebreak; keyset pagination only; limit capped and refused above the cap. Refused by name: joins/embeds, OR/NOT, pattern and full-text, offset, counts, RPC, writes, discovery, undeclared fields, raw SQL.
- Refusal surface:
query_shape_refused with a feature name for query-text shapes. Data- and grant-dependent outcomes collapse to not_available, so an undeclared column and a withheld column look the same.
- Parent alignment: applies id: design: foreign data-store adapter contract (from #5672) #5803 and id: design: server-side filtered remote query execution (from #5675) #5818/id: design: SQL/PGQ capability investigation (from #5688) #5909 without re-deciding them. Parent id: design: ID selective sharing and foreign data-store adapters v1 #5672 open questions answered locally in §8.
- Implementation slices filed: id: impl: Postgres HTTP adapter registration and owner config (from #5805) #13758, id: impl: Postgres HTTP query translator with allowlist (from #5805) #13760, id: impl: Postgres HTTP typed mapping v1 (from #5805) #13761, id: impl: Postgres HTTP error mapping and grantee collapse (from #5805) #13762, id: impl: Postgres HTTP live and materialized read paths (from #5805) #13763, id: impl: PostgREST conformance fixtures for Postgres HTTP adapter (from #5805) #13764.
- Verification: all relative links in the record resolve (9/9); README index entry present; 22 headings. No docs-site workflow covers
doc/, so no CI docs build applied.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|