Skip to content

demo: the capped footer blames the demo, not the call cap that stopped it #1270

Done

Description

@HugoXK

Implementation: AgentDescent (ours) — PR follows in this session; do not pick up.

AGENTDESCENT_MAX_CALLS=1 agentdescent demo exits 1 at round 0/4, reward 0.000, and prints "(that is lower than expected for the demo; the run store has the detail: …)" — while the run store it points at already recorded stop_reason: budget, stop_detail: max_calls (AGENTDESCENT_MAX_CALLS): 1 call(s) made, cap 1. _print_demo_human prints that fixed sentence and never reads the status (cli.py:944-949), and demo --json carries the same wrong note (cli.py:883), so the one surface a newcomer reads names the wrong cause and offers no knob.

Add:

  • the payload's note names the recorded cause when the run stopped on a limit (RunStatus.stop_detail), and keeps today's sentence when it simply fell short
  • _print_demo_human prints that note in place of the fixed sentence, keeping the run-store path line
  • a row for the capped footer and a row for --json.note, with the uncapped demo and the path line as controls that stay green
  • one changelog fragment

Acceptance: at main, AGENTDESCENT_MAX_CALLS=1 agentdescent demo names max_calls … cap 1 in the human footer and in --json.note, and no longer says "lower than expected for the demo"; the uncapped demo still exits 0 with no note; pytest -q offline; docs/changelog.

Activity

  1. added
    bug
    area:cli
    agent-working
    on Nov 24, 2026
  2. HugoXK commented on Nov 24, 2026

    @HugoXK
    CollaboratorAuthor

    Branch agent/1270-demo-stop-cause → draft PR #1272 (fix(cli): name the limit that stopped the demo). Red first at 441ac2bd, whole new file in one run with only that file added: 2 failed, 2 passed in 2.18s — both failures are the product rows (footer, --json.note), the two passes are the uncapped-run control and the run-store path line. Green at the tip: 4 passed (new file), 64 passed (demo family), 5 passed (MCP demo rows), 39 fragments OK, api docs current.

  3. removed
    agent-working
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clibug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions