Skip to content

feat(session-flow): decide how keep-going accounts for in-flight MCP calls and agent-team teammates #7906

Description

@kyle-sexton

Parent

Refs #7340 (gap 4, in-flight MCP calls and agent-team teammates)

Depends on

  • none: on the frontier now

Open question for the owner

Can a resumed session observe in-flight MCP calls and agent-team teammates at all, and if not, does keep-going inventory them or record them as undetectable?

An MCP tool call whose session ended mid-call may leave no state the resumed session can read; agent teams are experimental and off by default here. Settling it decides whether this becomes an inventory rule or one line in the report naming these two kinds as not observable.

Options:

  1. Research first (/discovery:research): what a resumed session can read about a prior session's MCP calls and teammates; then build to the answer.
  2. Record both kinds as undetectable now: the report names them as not checked, with the reason, and the item closes.
  3. Inventory teammates only when agent teams are enabled; record MCP calls as undetectable.

RECOMMENDED: option 1, closing as option 2 if the research finds no readable state. Basis: judgment; the #7340 triage comment flags both as possibly unobservable.

Answered (owner, 2026-10-18 comment): option 1, research first; if nothing readable exists, keep-going reports them as undetectable.

Research result (2026-10-21, from the docs; the lane rechecks both pages, code.claude.com is on its host list)

So teammates have readable state (the task list); MCP calls do not, beyond a possible partial output file.

Outcome

keep-going's report accounts for in-flight MCP calls and agent-team teammates: each is either inventoried with its real state or named as not observable, with the reason. None is silently skipped.

Key interfaces

  • The shared session-flow reference "Off-thread work: inventory kinds and the inspect-real-state invariant", section "What counts as off-thread work".

Done when

  • The owner has answered the open question in a comment (2026-10-18: research first).
  • plugins/session-flow/reference/off-thread-work.md "What counts as off-thread work" lists agent-team teammates and in-flight MCP calls. Teammates: not restored after a resume; keep-going reads ~/.claude/tasks/session-<first 8 of the prior session id>/ when it exists and reports each task's status (pending, in progress, completed) as the teammates' last recorded state, and with no directory reports teammates as none recorded. MCP calls: reported as not observable, with the reason (the call does not survive the session; the server may have done part of the work); when the prior transcript names a backgroundOutputPath that still exists, its contents are reported as partial output whose completion is unknown. Each statement carries a pointer, an as-of date and a recheck trigger (.claude/rules/skill-bodies-state-current-rules.md). Check: the PR's CI runs the markdown lint and it passes; the reviewer checks each pointer.
  • The keep-going report names both kinds after a stop, with state or a not-observable reason: plugins/session-flow/skills/keep-going/SKILL.md names both kinds in its report and never skips them silently. Check: the PR's CI runs the skill-quality check on the changed SKILL.md and it passes.
  • A keep-going eval case covers the chosen behavior: one evals.json case with a stop that leaves a task-list directory and one MCP call in flight. Check: plugins/skill-quality/scripts/check-evals-quality.sh passes.
  • A .changes/session-flow/ fragment exists. Check: the PR's CI runs scripts/check-changelog-fragments.sh --check and it passes.

Out of scope

  • Enabling agent teams.
  • Nested subagents and CLI child processes (sibling items).

Files the fix would touch

  • plugins/session-flow/reference/off-thread-work.md
  • plugins/session-flow/skills/keep-going/SKILL.md
  • plugins/session-flow/skills/keep-going/evals/evals.json
  • .changes/session-flow/ changelog fragment

No protected path.

Activity

  1. added
    needs-human
    on Oct 18, 2026
  2. kyle-sexton commented on Oct 18, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision: research first whether a resumed session can read in-flight MCP calls or agent-team teammates at all. If nothing readable exists, keep-going reports them as undetectable and this closes. Stays held until that research is done.

    Posted by Claude Code on the owner's behalf.

  3. added
    status: confirmed
    status: ready
    agent-ready
    and removed
    needs-human
    status: confirmed
    on Oct 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

    Labels

    agent-readystatus: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions