Skip to content

Follow-ups from CodeRabbit's reviews of the stack #166

Open

Description

@PiquelChips

CodeRabbit's reviews of the stack (#88 to #17) raised these, which the stack doesn't fix: each is either narrow or needs a design change bigger than the PR it's in. Each links its review thread.

Correctness

  • Commit a snapshot's objects child-first, so a crash between renames can't publish a tree without its children (#4).
  • Write statements that depend on a promotion in the same pack after put_promotions, so a refused claim doesn't leave them stored (#4).
  • Hold back every statement about a subject that has an unsent statement, so push never sends a pass without the failure superseding it (#5).
  • Fetch the merge bases' snapshots before converge merges in a lazy clone (#5).
  • Take the push lock around a workspace's revision publication, so it can't race the queue's rebases (#5).
  • Ask the remote which dependencies of unsent statements it already has (#5).
  • Refuse a lazy clone as a path remote, or ask it which snapshots it holds whole (#5).
  • Claim a clone's directory atomically, so two clones racing into it can't delete each other's files (#5).

Robustness

  • Cap concurrent event long-polls, so they can't take the whole blocking pool (#4).
  • Bound the indexes OriginService has open at once, not only the idle ones (#4).
  • Bound the wait for a check's output reader, and the wait for .held in Checkout::spawn (#16).
  • Keep a fetched part when one object in a prefetched chunk can't be read (#5).
  • Stop the parallel readers at the part's byte target (#5).
  • Kill the test server's child when its banner can't be read (#5).

API and polish

  • Return extractor rejections as ApiError (#4).
  • Encode and decode packs on the blocking pool (#4).
  • Load the node key lazily, so read-only commands never create it (#4).
  • Make Period's field private, so only whole seconds can be built (#4).
  • Read only the asked range of a target's log when a limit is set (#5).

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

Activity

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