GeezerVison is showing github.com — impl(fleet): Metadata remainder from #9074 — repository ingestion/backfill + body-vs-DB divergence reporting · Issue #14312 · developing-today/code
impl(fleet): Metadata remainder from #9074 — repository ingestion/backfill + body-vs-DB divergence reporting #14312DescriptionRemainder of #9074 (impl(fleet): metadata database + fleet Metadata query surface), split out by the AUDIT-7 Lane 2 adjudication of #9074's closure (2026-11-24).
Background
#9074 was closed automatically when PR #12864 merged; that PR delivered only the metadata upsert/read path. The adjudication on #9074 (comment 7129444393) found the closure suspect and named the remaining scope: repository ingestion/backfill, the five Metadata query filters, and body-vs-DB divergence reporting.
Disposition of the named remainder, verified 2026-11-24:
Scope
- Repository ingestion/backfill into the fleet metadata database delivered by impl(fleet): metadata database + fleet Metadata query surface #9074 / PR feat(pm): persist versioned metadata rows #12864: populate the store from the repositories in scope, idempotently, with a recorded backfill run (counts in/out, failures named).
- Body-vs-DB divergence reporting: a report (command or scheduled output) comparing issue/PR bodies against the metadata DB rows and surfacing divergences by name, so stale or missing metadata is visible rather than silent.
Acceptance
- Backfill run recorded with counts; re-running it is a no-op or reports only true deltas.
- Divergence report exists and names at least the divergence classes (missing row, stale field, orphan row) with counts from a real run.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T11:01:01Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
Activitydeveloping-today commented on Nov 24, 2026 added effort/lLarge: multi-day or open-ended; expect staged check-ins app/fleetpkgs/fleet multicall binary + platform crates meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 24, 2026developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions Intake review
Related: Remainder of #9074, split out by the AUDIT-7 adjudication on #9074 (comment 7129444393) after PR #12864 closed it with only the upsert/read path landed. The five Metadata query filters are already covered by #12587 (closed as implemented, verified in the issue body). No merged PR references this issue (checked this run).
Notes: Risks: ingestion source-of-truth choice (GitHub API vs existing mirrors) affects rate-limit and staleness; divergence classes need a stable definition before the report is scheduled. Suggested approach: land the idempotent backfill first with its run record, then the divergence report as a read-only command over the populated store.
Still live: verified this run — issue open, no merged PR references it.
🤖 Agent note · filed
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor run 2026-11-24 (digest 2026-11-24T11:14:44Z)
- Found via: monitor reconciliation (Duty 2 intake enrichment)
- Task: Intake pass per lifecycle protocol §5: acceptance criteria section appended (original body preserved verbatim above it), labels normalized, marked meta/enriched.
dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-03, queue task 23305, 2026-11-24 14:05Z): open-remaining, valid.
dezren39 commented on Nov 24, 2026 Triage verdict — lane code-g, task 23504 (2026-11-24)
Verdict: open-remaining, valid; feature slice routed. #14312 remains OPEN, and a fresh search found no merged PR referencing it. No live queue task routed #14312 before this pass.
Evidence: PR #12864 delivered the Metadata upsert/read path. #12587 is closed as implemented for the five query filters. The code already has ingestion webhook/sweep checks in pkgs/fleet/hosted-worker/src/ingestion.ts and query-time per-result body-vs-DB findings in src/query.ts (#12872); neither is the requested whole-scope backfill run record or aggregate missing-row/stale-field/orphan-row report. The acceptance remains unfulfilled.
Routed: feature-slice task 23567 (repo-health-code-pilot, dedupe repo-health:v1:slice:developing-today/code:issue:14312:slice-1, queued). It covers idempotent GitHub-source repository backfill with recorded counts/named failures and the three-class divergence report with tests. Default source-of-truth is the GitHub item source already used by ingestion; this is recorded on the packet, not a blocker.
Scope is unchanged: the five filters are covered by #12587; this issue remains open for backfill and aggregate divergence reporting. developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions agent-note:v1
worker: felix
state: claimed (queue task 23567)
Slice 1 of this issue: idempotent repository Metadata backfill run (recorded run: checked/inserted/refreshed/unchanged/errors, failures named by item) + body-vs-DB divergence report (missing row / stale field / orphan row) in pkgs/fleet/hosted-worker. Branch: felix/14312-backfill-slice1. PR to follow, left unmerged for review. developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions agent-note:v1
worker: felix
state: slice-1 landed as PR #14471 (unmerged, for Felix's review)
queue task: 23567
Slice 1 delivered: recorded backfill runs (POST /v1/ingestion/backfill + GET /v1/ingestion/backfill/runs over the existing sweep; counts in/out, failures named by item) and the body-vs-DB divergence report (POST /v1/ingestion/divergence: missing_row / stale_field / orphan_row with counts), plus the MetadataStore.listRepo operator seam, the AuthDeps.backfillRunStore seam, CLI verbs (backfill / backfill runs / divergence), and README + book updates in the same PR. No new dependencies.
Verification (remote, run 45433368980, success; TARGET_HEAD=2fefe73f36d64860136d95659775a397cd889151 = PR head): package suite 225 tests / 225 pass / 0 fail (16 new tests, named in the PR body); tsc --noEmit clean. Idempotency: the re-run test's second stored run record shows 0 inserted / 0 refreshed over an unchanged store. developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions Done-check by Felix (2026-11-24): the remainder is fully delivered. PR #14471 (merged 2026-11-24T16:21:33Z, head 2fefe73) adds the recorded, idempotent backfill run (src/backfill.ts: runMetadataBackfill over runIngestionSweep, BackfillRunStore, counts + per-item failures) and the aggregate divergence report (missing_row / stale_field / orphan_row with counts), plus routes (POST /v1/ingestion/backfill, GET /v1/ingestion/backfill/runs, POST /v1/ingestion/divergence) and CLI verbs. Verification: run 45433368980, 225/225 tests executed incl. 16 new by name; the idempotency acceptance is proven from the stored second-run record (checked 2, inserted 0, refreshed 0). Together with #12864 (upsert/read path) and #12587 (five query filters) already on main, every acceptance item of this issue is met. Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|