Skip to content

sync migration dry-run reports wrong verb (inserted vs updated) #126

@moekatib

Description

@moekatib

Summary

sync run --dry-run on a legacy .one/sync/data/<plat>.db migration predicts inserted: 30 on rows that a real run would updated. Cosmetic only — no data impact — but misleading.

Repro

  1. Have a legacy SQLite DB at .one/sync/data/fathom.db with rows that already exist in the memory store under the same source keys.
  2. one --agent sync run fathom --dry-run
  3. Output reports inserted: N where every row would hit the upsert-by-keys updated branch on a real run.

Expected

Dry-run runs the same classify-before-upsert path as a live run (or at least tests mem_records.keys && p_keys against the current set) so the predicted action matches.

Notes

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