GeezerVison is showing github.com — impl(fleet-hosted): Metadata query surface — REST + CLI filters over the metadata DB (#9074 hosted) · Issue #12587 · developing-today/code
impl(fleet-hosted): Metadata query surface — REST + CLI filters over the metadata DB (#9074 hosted) #12587DescriptionDesign: doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition §7.1 (component C of epic #9078, design issue #9081). Parent: #9081. Hosted counterpart of #9074's query surface.
Scope
Metadata query over the metadata DB, hosted:
Acceptance
- Filters return correct results against a hand-checked sample spanning both editions' items.
- An item whose body block was hand-edited after stamping shows a divergence finding, with the body content winning.
- The collector can consume this surface as a genealogy input (documented read path).
Activitydeveloping-today commented on Nov 22, 2026 dezren39 commented on Nov 23, 2026
Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 23, 2026 agent-note:v1
event: PR #12872 OPENED — Metadata query surface implemented (hosted #9074 query counterpart)
by: agent felix lane (kind muse, Muse sandbox seat), for Felix's review — PR left unmerged
at: 2026-11-22
PR #12872 (branch felix/12587-hosted-worker): GET|POST /v1/query over the metadata store with the §7.1 filter set (direct parent, session, lane, host, queue id, link relation/status as a same-link pair), GitHub fallback for not-yet-ingested items (#9060 §13) over a new GitHubItemSource seam both writer classes implement, body-vs-DB divergence findings with bodies winning on content (#9060 §15) plus per-result verifyStamp of the served provenance, and the TS CLI query verbs rendering the same document JSON-first. The collector's read path is documented in src/query.ts and the README (service token scoped to the query door).
Two judgment calls, stated on the PR: results are tenancy-scoped to the caller's binding_id (fallback items attribute by stamped auth_subject only; unattributable items wait for ingestion), and the store fails closed when unconfigured while an absent item source degrades to DB-only answers with body_checked false.
Evidence: npm test 111/111 (90 baseline green + 21 new, incl. a hand-checked both-editions sample and all three divergence cases), tsc clean, smoke all-pass with new query checks. No new dependencies. #12587 stays open until the PR merges and for the production wiring that lands with #9074's DB. dezren39 commented on Nov 23, 2026
Released by felix (outcome: done). Implemented in PR #12872 (unmerged, for Felix's review): hosted Metadata query surface — REST + CLI filters over the metadata store, GitHub fallback (#9060 §13), body-vs-DB divergence with bodies winning (§15), per-result stamp verification. npm test 111/111, tsc clean, smoke all-pass. No new dependencies. dezren39 commented on Nov 23, 2026 agent-note:v1
event: PR #12872 MERGED — the hosted Metadata query surface landed
by: agent felix (kind muse, Muse sandbox seat), merging after review
at: 2026-11-22
PR #12872 merged. GET|POST /v1/query over the metadata store with the §7.1 filters (relation+status must hold of the same link), GitHub fallback for not-yet-ingested items (§13), block-vs-row divergence findings with bodies winning (§15), and verifyStamp reported per result — a provenance hand-edit shows as both a finding and a diverged stamp. The TS CLI query verbs render the same documents through the same filter parser.
Felix's review: re-ran the suite — 111/111 (90 baseline + 21 new); read the tenancy scoping in src/query.ts — the store is only ever asked for the caller's binding_id rows, and fallback items are admitted only when their stamped auth_subject equals the caller's binding (a native-stamped, not-yet-ingested item is unattributable and waits for ingestion rather than leaking across accounts; absence, not error). Unconfigured store fails closed (503); malformed filters refuse 400 invalid_query rather than matching everything. No new dependencies.
#12587's slice is complete; the production metadata DB behind the same MetadataStore interface remains #9074's. dezren39 commented on Nov 24, 2026 Lane any-n triage verdict (queue task 22223, 2026-11-24). Verified: PR #12872 is MERGED (2026-11-23T04:10Z) and delivers the hosted metadata query surface: GET|POST /v1/query with the §7.1 filters, GitHub fallback, divergence findings with bodies winning, verifyStamp per result, and TS CLI query verbs. The acceptance items are covered by that merge. Closing as implemented. Tracking: #14158. dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|