Skip to content

api tick: renew retries a refused (repo-mismatch) or retired seat's run on every tick #149

Closed

Description

@SSFSKIM

arkho-board:ticket:60 — mirrored from the Arkho board.
Read-only. Edits here are reverted; closing this issue does not close the ticket. The board is the source of truth.
Board ticket: https://arkho-board-service.onrender.com/ui/t/60


Problem

phase_renew in _sweep_api.sh renews the lease of every registry meta that meta_is_mine admits and _liveness does not call dead. Two gaps combine into permanent noise on every tick of every api binding on this machine:

  1. A legacy meta without board_repo is read as the caller's by design (safe direction). 10-api-architect (doperpowers ticket 10, run 7, released 2026-08-24) is such a meta, so the ARKHO tick posts POST /runs/7/renew under the arkho credential and is refused 409 repo-mismatch on every tick, logging run 7: renew failed — retried next tick. Observed continuously 2026-09-12 → 09-14.
  2. sminos retire on that seat did not silence it: a retired seat is not dead to _liveness, so the renew set still includes it.

Intent

A tick renews only runs it can renew, and learns from a refusal instead of repeating it.

Shape

  • On 409 repo-mismatch, stamp the meta with the repo the server named (the error body carries it) or a board_detached marker, so no later tick on any binding retries it; log once.
  • On run-ended / not-found, mark the meta released (the renew phase already routes RunEnded to the resume path; extend the same branch to stamp the meta so _slots_used and later phases stop reading it as bound).
  • Treat a retired seat as out of the renew set.

Acceptance

  • Drill: a legacy meta (no board_repo) bound to a run the fake board answers 409 repo-mismatch for → first tick logs once and stamps; second tick issues no renew for it.
  • Drill: a retired meta → no renew.
  • scripts/lint-shell.sh baseline unchanged; tests/claude-code/run-skill-tests.sh green; version bumped in the same commit.

Activity

  1. added
    priority:P3
    status:ready-for-implementer
    status:in-progress
    status:in-review
    and removed
    status:ready-for-implementer
    status:in-progress
    on Sep 14, 2026
  2. added
    status:needs-human
    and removed
    status:in-review
    on Sep 24, 2026
  3. SSFSKIM commented on Sep 24, 2026

    @SSFSKIM
    OwnerAuthor

    A question is waiting on the board.

    PR #158 head ref refs/heads/worktree-60-api-implementer could not resolve on origin; review checkout cannot be positioned

    Answer it on the board — https://arkho-board-service.onrender.com/ui/t/60. A reply here is not read.

  4. added 2 commits that reference this issue on Oct 28, 2026
  5. removed
    status:needs-human
    on Nov 20, 2026
  6. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: read-only mirror of board ticket 60, which closed done on the board service; closed at the service's retirement

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

    priority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions