Skip to content

fork report: a symlinked statev2.sqlite reads the WAL beside the link, giving wrong counts #176

Closed

Description

@scuttletoby

If statev2.sqlite in a T3 home is a symlink, __fork-report looks for the WAL beside the link, not beside the real file. Beside a running server it got "malformed" errors and counts that went down; on a crashed copy it missed threads still in the WAL. Wrong answers, no writes. Fix: resolve the real path before checking the WAL and opening. Fix before the go-live kit trusts the report (go-live PR 5 rehearse).

Found by the correctness lens on #172 (#172 (comment)). Failing test kept by the orchestrator (forkReport.review172.test.ts).

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 15, 2026
  2. added 5 commits that reference this issue on Nov 18, 2026
    49b0ffa
    8beb3b4
    331971e
    8ded6ae
    9de50ed
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions