Skip to content

Reconcile-rendered re-picks truncated-tree repos every 6 hours #280

Closed

Description

@harlan-github-agent

The reconcile-rendered selection SQL lacks the tree_truncated_at guard the sync-candidate sweeps carry, so every 6-hour fire re-enqueues a render job for posthog/posthog whose tree always truncates, producing 4 guaranteed failed jobs on 2026-09-22 (00:25Z, 06:30Z, 12:25Z, 18:25Z) and a 38-attempt stale-reservation retry loop.

Target: layers/registry/server/tasks/reconcile-rendered.ts

Verify with: 24h after deploy: pnpm exec wrangler d1 execute skilld-db --remote --json --command "SELECT count(*) AS refails FROM failed_jobs WHERE exception = 'tree_truncated' AND failed_at >= strftime('%s','now') - 86400" returns 0 across four 6-hour fires

Estimated to change 1 file.

The daily-checkin routine opened this issue automatically on its 2026-09-22T21:40:00.000Z run. It is not Harlan's own report. Close it to reject the proposal, and the reason you give stops it being offered again.

Activity

  1. harlan-github-agent commented on Sep 22, 2026

    @harlan-github-agent
    ContributorAuthor

    🤖 ISSUE TRIAGE

    Harlan Agent Kit posted this automated triage. It is not Harlan's personal assessment or commitment. AI open source policy.

    • Route: Ready to implement
    • Difficulty: 1/5
    • Impact: 3/5
    • Reproduction: Yes
    • Codebase review: Not needed
    • Summary: Confirmed: reconcile-rendered.ts (lines 33-40) selects render-repair candidates with only r.broken_since IS NULL, while both sync-candidate sweeps (layers/registry/server/utils/sync-candidates.ts lines 32 and 57) add `AND r.tree_truncated
    • Next action: In layers/registry/server/tasks/reconcile-rendered.ts add AND r.tree_truncated_at IS NULL to the candidate SELECT's WHERE clause beside the existing r.broken_since IS NULL guard, mirroring sync-candidates.ts; then after deploy confirm the issue's wrangler failed_jobs query returns 0 across four 6-hour fires.
  2. added
    harlan-agent-ready-to-implementIssue triage found bounded work ready for an implementation Agent.
    harlan-agent-runningAn Agent holds a Task on this issue or pull request right now.
    and removed
    harlan-agent-runningAn Agent holds a Task on this issue or pull request right now.
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions