GeezerVison is showing github.com — impl(fleet): metadata database + fleet Metadata query surface · Issue #9074 · developing-today/code
impl(fleet): metadata database + fleet Metadata query surface #9074DescriptionDesign: doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy/note.md section 15. A fleet database tracks EVERY issue and PR in scope (all fleet repos): full Metadata stored as JSON + extracted key fields (direct parent, session id, lane, host, queue id, relation/status pairs) indexed for filtering.
Acceptance:
- Schema + store live; rows exist for items created via fleet gh AND items backfilled by ingestion (cross-ref the dual-ingestion slice).
- fleet query verbs list/filter by Metadata fields (by direct parent, by session, by lane, by host, by link status) with correct results against a hand-checked sample.
- The DB is consumable by the collector as a genealogy input (documented read path), and body-vs-DB divergence is reported, with bodies winning on content.
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 Amendment — Metadata schema-version doctrine (from the Atlas v1 program, 2026-11-12)
Drew's 2026-11-12 directive (Atlas v1 program, starter #9091, doctrine issue #9095, proto design doc/2026-11-12T23-59-00Z_design_atlas_v1_proto/note.md §C) establishes a schema evolution doctrine shared by the Atlas corpus metadata and the issue/PR Metadata in #9060 §12/§15. It binds this slice:
- Every stored Metadata row records its schema version alongside the full JSON; the extracted/indexed key fields are extracted per the version of the block they came from — extraction is version-aware, and rows at older versions remain fully valid and queryable (no migration-on-read requirement, no dual-schema burden on consumers: the DB presents one current view over all versions).
- Additive-only evolution: version bumps add fields/enum values only; never remove, never required-ify. Breaking changes wait in the parking lot (under design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095) and land as one version event + a reclassify-everything pass — this DB's re-extraction is part of that pass's checklist.
extras content is stored verbatim with the JSON (it is not extracted unless a later version promotes a key — promotion happens by version bump, not by extractor fiat).
- Atlas-side counterpart: the Atlas metadata DB (design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095's schema v1, query surface workstream impl(atlas): query-as-data — query embeds, full tool/parameter provenance, permanent result archive, versioning #9099/impl(atlas-search): search v1 — build-out, Workers fan-out, shard benchmarks, cache policy, second embedder #9092) follows the same doctrine — coordinate the version registry so PM Metadata and Atlas metadata versions are governed by one rule set, even though the schemas themselves differ.
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane code-c
- Session / ID: task 18824
- Found via: queue claim
- Task: Triage of issue impl(fleet): metadata database + fleet Metadata query surface #9074 (impl(fleet): metadata database + fleet Metadata query surface) — verdict: real and unstarted; first triage of this issue, routed as task 20267.
- Expectation: done = triage verdict + labels recorded (this note), follow-on task 20267 queued, task 18824 completed as triaged.
Triage (inline, this pass):
- Work kind: small-fix packet (task/small-fix) with a store + ingestion + five-filter first slice; the packet instructs the worker to split the collector integration into a named follow-on if it does not fit the same PR series.
- Priority: priority/normal — a settled design's build slice, default band.
- Effort: effort/l — a new versioned store, ingestion across the fleet repos, a query surface, and a divergence report.
- Kind: kind/feature and app/pm-stack already present.
Evidence (fresh, 2026-11-16):
- Issue impl(fleet): metadata database + fleet Metadata query surface #9074 is OPEN; its only comments are the Kaneo intake link and the 2026-11-12 amendment recording the binding schema-version doctrine (Atlas v1 programme, doctrine issue design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095) — never triaged or built, no hold labels.
- Design of record verified on origin/main this pass: doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy/note.md (§15 is the slice's spec).
- Not started, verified this pass: the fleet binary's domain registry has no metadata surface (queue, serve, proxy, dispatch, secrets, gh, search, laptop-agent only).
- First concrete step (in task 20267): the versioned store + schema per §15 and the design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095 doctrine, with the five named filters (direct parent, session, lane, host, link status) checked against a hand-checked sample.
- Acceptance check for the fix: the acceptance list in task 20267.
Issue #9074 stays open for task 20267.
dezren39 commented on Nov 21, 2026 agent-note:v1
state: parked
task: 20267
lane: oc-code-02
worker: repo-worker-code
origin: openchamber-scheduled-lane
Fresh revalidation: #9074 remains OPEN, assigned to Drew, with no open PR. The versioned metadata store/schema, ingestion, five filters, hand-checked sample and CI are a multi-shift effort/l slice, not safe to start in this scheduled 45-minute task lease. No branch, worktree or implementation was created.
Resume brief: in a dedicated implementation run, first read the binding amendment on #9074 and schema-version doctrine in #9095, then implement the versioned store/schema, ingestion and query filters with hand-checked tests and CI. Task 20267 parked for 24 hours; backlog/sweep-log bookkeeping deferred to fleet reconciliation. dezren39 commented on Nov 21, 2026 Metadata schema v1 amendment (workstream C, #9095): the database/query slice should implement the shared contract in doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/note.md §§2–6. Store the complete Metadata JSON and exact source/artifact ID; index only extracted, registered fields; preserve extras and old versions; distinguish absent from false; and report body/DB divergence with the body/source winning on content. Link records must preserve multi-subject/multi-predicate expression identity. Version adapters provide the indefinitely supported prior-version read path; the query layer does not need dual schema business logic. dezren39 commented on Nov 22, 2026 dezren39 commented on Nov 23, 2026 Agent note — task 20267 vertical slice landed
- PR feat(pm): persist versioned metadata rows #12864 (stacked on foundation PR feat(pm): add versioned metadata store foundation #12371) adds the transactional SQLite PM Metadata upsert/read path keyed by artifact identity.
- Evidence:
bun test test/metadata-store.test.ts — 5 passed, 27 assertions; git diff --check passed. The test covers full metadata round-trip, extracted fields, replay idempotence, and stale-link removal.
- Not complete: ingestion/backfill, the five Metadata filters, and body-vs-DB divergence reporting remain unchecked.
- Next slice: wire the persistent store into repository ingestion/backfill, then expose the five named filters.
dezren39 commented on Nov 23, 2026
🤖 Agent note · picked up — task 20267, lane FV (archer, sandbox fix lane)
Queue handed task 20267 to archer as the dedicated implementation run the earlier parks named as the resume condition. Fresh premise check: #9074 OPEN, premise true; the stack has advanced since triage — foundation PR #12371 (draft) + stacked PR #12864 (clean) carry the versioned pm_meta reader/extractor, DDL, and the transactional SQLite upsert/read path, with tests reported green by the prior lane.
This run: verify the stack first-hand (run the metadata-store tests on the laptop), merge #12371 then #12864, then continue with the named next step — repository ingestion/backfill, the five Metadata query filters, and body-vs-DB divergence reporting — as far as verifiably possible, splitting any remainder into named follow-ons on this issue. dezren39 commented on Nov 24, 2026 Adjudication (oc-code-01, 2026-11-24, AUDIT-7 Lane 2): SUSPECT CLOSURE. Closed automatically at 05:40Z when PR #12864 merged, which delivered only the metadata upsert/read path. The remaining scope (repository ingestion/backfill, the five Metadata query filters, body-vs-DB divergence reporting) was named as follow-ons but no follow-on issue is linked here. Recommend reopening this issue, or filing the named remainder as follow-ons and linking them, before closing. developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions Remainder disposition (ITEM-WORK-70 follow-through on the Lane 2 adjudication above, 2026-11-24):
The adjudication's recommendation is satisfied by the follow-on route rather than a reopen:
This issue stays closed; its delivered scope (upsert/read path via PR #12864) plus #12587 (filters) plus #14312 (ingestion/backfill + divergence reporting) together cover the original body.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|