Skip to content

conductor babysitter: session archive path missing from API inventory — verified-finished sessions cannot be archived (from #2021 design) #5066

Closed

Description

@dezren39

Follow-up from the issue #2021 babysitter design (task 8584, design doc: files/opencode-babysitter-design-2026-11-03.md in the keep-the-four-repos-healthy goal workspace, §5).

Problem

Conductor Phase 1's finished-unverified audit (in hidden_files/openchamber-conductor-instruction.md) ends in "archive the session" once GitHub verification passes — but the same instruction records that if the archive call is not in the current API inventory, the session is left in place and noted. Verified-finished sessions therefore accumulate as leftovers in the unfinished set, polluting the capacity picture the scripted tally has to explain every cycle. Sessions are never deleted; archiving is the only terminal cleanup, and it is currently not wired.

Scope

  • Verify whether the current OpenChamber API exposes a session archive call (check against files/openchamber-api-inventory-2026-10-26.md, gap 4 area, and the live API from the laptop).
  • If it exists: add it to the API inventory with the verified request/response shape, and update the conductor instruction's finished-unverified step to call it.
  • If it does not exist: file the gap against the OpenChamber side with the exact endpoint shape needed, and record that in the inventory instead.

Acceptance

  • The API inventory states, with fresh evidence, whether an archive call exists and its exact shape.
  • A verified-finished session can be archived by the babysitter round (or the blocker is filed and linked here with the endpoint shape specified).
  • No session is ever deleted as part of this work.

Refs #2021, #2153

Acceptance criteria

  • The current OpenChamber API's session-archive capability is verified against the live API (not only the 2026-10-26 inventory): the call exists with a recorded request/response shape, or its absence is confirmed with a follow-up filed.
  • The API inventory names the archive call (or the confirmed gap) in the gap-4 area.
  • The conductor instruction's finished-unverified step archives verified-finished sessions instead of leaving them in place with a note.
  • Verified-finished sessions no longer accumulate unexplained in the unfinished set / capacity tally.

Activity

  1. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    area/infraInfrastructure, deployment, and operations
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  3. added
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Intake review

    — fleet monitor intake pass (repo-fleet-monitor, 2026-11-03 12:12 CST run)

  5. added
    work/assignedQueue worker lifecycle state
    and removed on Nov 3, 2026
  6. 152 remaining items

  7. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  8. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  10. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  11. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    \ud83e\udd16 Agent note \u00b7 handed off\n- Agent: repo queue worker, lane code-p (repo-worker-code)\n- Session / ID: cron repo-queue-worker-shift-p run 2026-11-08 18:57 CST; task 12200\n- Found via: claimed task 12200 this shift; execution-lane assignment returned opencode (lane row 4016)\n- Task: Claimed task 12200 (triage) for issue #5066 (attempt 9/12). Fresh check: issue #5066 is OPEN. No hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit) on the target. Handed off to the opencode claimant \u2014 the claimant launches the bound opencode session; this lane does not work it directly. Task 12200 parked 1200s in the same pass.\n- Expectation: claimant session drives task 12200 to a terminal state.\n- Links: task 12200 \u00b7 issue #5066\n

  12. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict: validated invalid (superseded) — archive capability verified present, target surfaces retired

    • Agent: repo queue worker, OpenChamber scheduled lane 7b47536b-c162-444c-be8a-3a9538cc4cb5 (repo-worker-code)
    • Task: 12200 (triage, attempt 9/12)

    1. The question this issue asks is answered: an archive call exists.

    Fresh read of the OpenChamber fork at main = d5955751ce22c273c1987149b586c43064871499 (2026-11-09) shows a real server-side capability, not a gap:

    Surface Evidence
    POST /api/openchamber/sessions/archive packages/web/server/lib/openchamber-sessions/routes.js:1482
    POST /api/openchamber/sessions/unarchive same route module (routes.test.js covers both)
    GET/POST /api/openchamber/sessions/:sessionId/metadata routes.js:1491, routes.js:1503

    Exact request/response shape, from the typed client wrapper packages/ui/src/sync/session-archive-batch.ts:1-79:

    • request body: { directory: string, ids: string[], archivedAt: number }
    • response: { archived: [{ id: string, archivedAt: number }], failedIds: string[] }
    • non-200 or malformed body is reported as unavailable (never as an empty success)

    That file header also records the reason OpenChamber owns this instead of OpenCode: "OpenCode 2.x has no HTTP route that sets time.archived or rewrites a session’s metadata after creation, so OpenChamber keeps both itself, next to OpenCode, per data directory."

    2. The artifacts this issue asked to change no longer exist.

    • files/openchamber-api-inventory-2026-10-26.md and hidden_files/openchamber-conductor-instruction.md are absent from ~/workspace/goals/keep-the-four-repos-healthy/ (only files/designs/code-routing-policy-alignment.md and the queue-handoff/backlog files remain), and a repo-wide search finds neither document.
    • The two rounds that were to consume them are disabled in this repo’s own schedule registry: doc/fleet-schedule-registry.md:156 (openchamber-babysitter, interval@20m, disabled) and doc/fleet-schedule-registry.md:157 (openchamber-conductor, interval@20m, disabled).

    3. Verdict and disposition.

    validated invalid (superseded) — the capability gap the issue reported is closed on the OpenChamber side, and the instruction/inventory surfaces it wanted updated have been retired (disabled schedules, absent documents). No fix packet is enqueued, because there is no live surface left to wire and no missing capability to file. Closing this issue rather than returning it to the queue, per the triage doctrine’s invalid exit.

    If this is wrong: the cheap reversal is to reopen and ask for the route shape above to be recorded in whichever document now governs the session sweep — the evidence above is ready to paste.

    • Changes made: comment only; labels returned to a non-in-flight set; no code, branch, or PR touched.
    • Links: task 12200 · this issue · openchamber d5955751c
  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  14. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — already done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/infraInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilottask/triageQueue packet kind: verify, reproduce, and route this itemuser/reviewNeeds a user-look: Muse reviews first and handles what it can

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions