Skip to content

main-broken: atlas-core label_migration.rs reads COUNT(*) as u64 — rusqlite 0.43 has no FromSql for u64 (blocks fleet-static build) #16845

Done

Description

@developing-today-fleet

Found by lane 0922-F (2026-11-29) while refreshing the fleet binary for #16577: nix build .#fleet-static at main 5cf40a1 fails compiling atlas-core:

error[E0277]: the trait bound `u64: FromSql` is not satisfied
   --> pkgs/atlas-search/crates/atlas-core/src/label_migration.rs:125:64
125 |             Ok((row.get::<_, Option<String>>(0)?, row.get::<_, u64>(1)?))

rusqlite 0.43 implements FromSql for i64 (and the smaller ints) but not u64. The value read is COUNT(*), a non-negative SQLite integer, so reading it as i64 and casting is exact.

Fix: read i64 in scan_labels and cast to u64. This unblocks the fleet-static build (and any other consumer building atlas-core against rusqlite 0.43).

{
  "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-29T15:55:34Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "oc-code-06",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added a commit that references this issue on Nov 29, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions