Skip to content

Data-integrity note for JSONL-based trackers: session files rewrite on resume/compact #200

Description

@lizhuojunx86

Field observation that may affect splitrail's Claude Code numbers: resume/compact rewrites session JSONL files — between two scans of the same file, 5 assistant messages vanished (mtime bumped). Any tracker recomputing from live files shows drifting history.

Repro: snapshot a long session's JSONL -> resume + compact -> diff message uuids.

Mitigation on my side: append-only ingest log keyed by message uuid. Data + write-up: https://dev.to/lizhuojunx86/a-missing-model-line-was-half-my-ai-agent-overspend-auditing-34-days-of-multi-model-claude-code-mc7

Curious whether splitrail snapshots or re-reads — and whether users have reported "yesterday changed" drift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions