Skip to content

kagent-lane-runs.sh reads rclone v1.76's index as an empty lane store #5037

Closed

Description

@devantler

🤖 Generated by the Agentic Engineer (interactive Claude Code session)

Part of #4866.

What happened

devantler-tech/platform#6220 (merged 2026-11-13) moved the kagent lane store's reader to rclone v1.76.0. Since then, .claude/scripts/kagent-lane-runs.sh list reports the lane store holds no run yet (its index shows no run folder) and exits 0. The store holds three runs.

Why

index_entries counted two markers in rclone's folder index, entry rows (<tr class="file">) and name links (<span class="name"><a href="), and required the two counts to match. The v1.76 template renamed both:

  • Entry rows are now <tr class="file dir" data-…> and <tr class="file" data-…>.
  • Name links are now <td class="name"><svg>…</svg><a href="./x/">.

Both counts fell to 0 and still matched, so the reader returned an index it never read as an empty folder. liveness then said UNKNOWN reason=no-run-yet. That failed closed, but for the wrong reason. list failed open.

Done when

  • The reader reads both the v1.75 and the v1.76 index.
  • Every row of an index's table body must be a row the reader knows, so a future template change reads as UNKNOWN, never as an empty store.
  • Where the page states its own entry counts, the entries read must add up to them.
  • Tests cover the v1.76 template, and the unknown-row cases fail against the old reader.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions