You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
demo: the capped footer blames the demo, not the call cap that stopped it #1270
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.
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.
Activity
HugoXK commentedon Nov 24, 2026
Branch
agent/1270-demo-stop-cause→ draft PR #1272 (fix(cli): name the limit that stopped the demo). Red first at441ac2bd, 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.