You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2602d44
Browse filesBrowse the repository at this point in the historyBrowse files
`{"blob": {"read": true}}` (#106) is what lets a wasm32-areev-io module read
the attachment a trigger's connector already filed -- by address, read-only,
every read journaled as a blob_read Observation. On PostgreSQL the broker
answered 501: the read is lock-free because it goes to the .blobs sidecar
without opening the database, and that sidecar is an embedded-backend thing.
So on the tier the server product actually runs on, the whole class of
attachment-parsing capability tools was unavailable -- and the documented
alternative, letting the tool open the memory itself, means handing it a
credential to that memory, which is the thing a capability tool exists to
avoid.
read_blob_offline now serves a postgres://...?schema=... locator too: its own
short-lived connection, one schema-qualified SELECT against the in-schema
blobs table, closed on return. It still never opens the memory, so it cannot
contend with the run holding it -- and here there is no exclusive lock to
avoid in the first place, which makes this cheaper than the embedded case
rather than harder. Qualifying the table (#181) keeps it independent of
search_path, so it is safe behind a pooler. Blobs are never sealed on this
backend, because the blob key derives from the page cipher Postgres refuses,
so that branch cannot arise.
The broker's 501 is deleted rather than narrowed: its call site is unchanged,
because widening the function was the smaller change than adding a second one.
`areev blob get` carried the same restriction -- it skipped the lock-free path
for a DSN, a workaround for the limitation this removes. Lifted, so the two
blob-reading surfaces behave identically instead of diverging for a reason
that no longer holds.
Two things cleaned up on the way. The "is this a DSN?" test existed in four
copies (CLI, both bindings, and the one this change would have added); it now
lives once in the store, which owns the concept, and the other three call it.
And the row read uses try_get rather than get, so a column whose type ever
surprises us is an error the broker reports instead of a panic that takes the
serving thread with it.
Conformance gains a case that puts a blob in, holds the memory OPEN, and reads
it by address; it runs against both backends and is registered in one place.
The Backend trait gains `locator` for it -- a file path or a DSN, the seam any
case needs when the API under test takes an address rather than a handle.
83 postgres conformance cases and 69 embedded against a real pgvector:pg16,
2,702 workspace tests, 124 pytest, 72 node --test, clippy -D warnings clean
including --features postgres. The Postgres path was mutation-checked, and
`areev blob get` was driven end-to-end against a live schema while another
handle held the memory.
Docs moved with it: run.md's "Embedded backend only" warning, mcp-reference's
sidecar claim, and the store crate notes.
0 commit comments