gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#8BS2: finish the boot index in slices so a booting instance keeps answering

mergedbs2 → mainby Tracker · head 0dd538a6

  • failureKunibert: kunibertKunibert review

Verdicts

  • Kunibertrequested changes

People’s approvals

Reviews

  1. Kunibertapprequested changes0dd538a6 · current head · 2026-11-10 21:51:49 UTC

    Two correctness issues remain: unbounded copies during sorting and imports reopening before person writes are ready. The new sorter also duplicates a shared helper contrary to L16.

    Correctness (2 new, 0 still open)

    Merge-pass rollover can exceed the boot budget, and imports during people finalization can persist incomplete credits.

    Not on changed lines:

    • 🔶 Major · Correctness: no rule: Keep imports blocked until people finalization completes (lib/bootscan.hl:110) finishSearchIndex makes ensureIndex() return true while the people finisher still yields with warm.people == false. A signed-in search import completing in this window reaches applyCredits, but castPersonId refuses through warmBlocked(): main cast and crew are omitted while creditsAt is persisted, preventing the credits job from retrying. Delay publishing search readiness or explicitly keep imports behind warmBlocked().
    • 🔶 Major · Correctness: no rule: Include merge-pass rollover in the slicing budget (lib/sort-rows.hl:25) Hybrids deep-copy on assignment, so runs = nextRuns copies every nested run and row in one operation after each merge pass. The deadline check cannot interrupt this data-sized allocation, leaving large catalog sorts capable of blocking the request loop despite yielding between comparisons. Rotate buffers held by instance references, or transfer their contents incrementally.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (1 new, 0 still open)

    L16 is violated by maintaining a second production implementation of the shared descending sort.

    Not on changed lines:

    • 🔹 Minor · Standards: L16: Keep one shared descending-sort implementation (lib/sort-rows.hl:20) L16 in .kunibert/HL-STANDARD.md requires shared helpers to be centralized and says “never copy them.” This adds another natural-run discovery and stable-merge implementation alongside lib/util.hl's sortDesc/mergeDesc, which synchronous callers still use. Back both synchronous and resumable entry points with one shared implementation.

    Gates: not run

Threads

No inline comments yet.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.