Skip to content

impl(fleet): metadata database + fleet Metadata query surface #9074

Closed

Description

@developing-today-fleet

Design: 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.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 12, 2026

    @dezren39
    Member

    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:

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 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 #9074 stays open for task 20267.

  4. 21 remaining items

  5. removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 21, 2026
  6. dezren39 commented on Nov 21, 2026

    @dezren39
    Member

    agent-note:v1
    state: picked_up
    task: 20267
    lane: oc-code-02
    worker: repo-worker-code
    origin: openchamber-scheduled-lane

    Claimed and checkpointed. Fresh revalidation: #9074 remains OPEN and assigned to Drew; no open PR exists. Prior notes and current state confirm this is a large, unstarted versioned metadata store/schema, ingestion, and five-filter implementation. No worktree or implementation has been started.

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 21, 2026
  8. dezren39 commented on Nov 21, 2026

    @dezren39
    Member

    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.

  9. dezren39 commented on Nov 21, 2026

    @dezren39
    Member

    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.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    Member

    🤖 Agent note · PR opened

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    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.
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    🤖 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions