Skip to content

estate_journey l2-from-prs: review follow-ups from #8406 (title-only credit, silent truncation, --since format) #8475

Closed

Description

@squid-protocol

Follow-ups from the independent review of #8406 (2026-11-14). The four defects that could corrupt data or crash were fixed on that PR; these remain. One issue for the class, per the class-sweep rule. All in tests/tools/estate_journey.py.

  1. L2 credit rests on title words alone (l2_series_from_prs). Any trial PR whose title contains "case" and an eligible program name credits that program. Example: "Census: PGMA lower-case names fold, case-insensitive (Part of Weekly canary control PR: scheduled job plants one defect per gate (Part of #7155) #9002)" credits PGMA. The point's source text then says "det port equal, CI det-sweep ratchet", which the code never checked. Fix direction: credit only programs that have a committed case directory at the PR's merge commit, or check the evidence report.
  2. fetch_prs truncates silently. Each query is capped at --limit 200 in best-match order with no warning when the cap is hit; a long trial undercounts PRs and shifts every x value. A failing gh call surfaces as an uncaught CalledProcessError.
  3. The PR count is unbounded in time. The same query on Blind 1 now returns 82 trial PRs where the page says 81, because matching PRs keep merging after close-out. An --until (the trial's close) would pin it.
  4. --since is compared as a raw string. --since "2026-11-08 03:32" (space, no T) lets a PR merged before T0 through; an Eastern time passed by mistake is accepted the same way. Parse it as a UTC timestamp and refuse anything else.
  5. Nothing checks that the evidence report's L2+ matches the last series value, though .claude/skills/estate-trial/SKILL.md says it must.
  6. Smaller:
    • the "N draws remain" check misses the singular ("1 draw remains");
    • a later --l2-note silently overwrites the recorded amendment text;
    • a missing estate4_candidates.json makes planned 0 and skips the draw-count and prose checks silently;
    • add-draw validates neither the date format nor accounted <= basis;
    • Blind 1's l2_series mixes an unlabelled Eastern time with UTC times.

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. squid-protocol commented on Nov 21, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-21T19:51Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  3. added a commit that references this issue on Nov 27, 2026
    b6fd699
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

    claim:melekenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions