Repository navigation
fix(cli): name the limit that stopped the demo - #1272
Conversation
At main the footer and --json both say the result is lower than expected for the demo, while the run store records stop_detail: max_calls ... cap 1. The two product rows fail; the uncapped run and the run-store path line stay green.
demo_payload read only the reward to decide the footer, so a run halted by AGENTDESCENT_MAX_CALLS printed the fixed sentence about the demo falling short although the status already recorded which limit fired and what it observed. The payload now carries that stop_detail as note, and both the human footer and --json read it; a run that simply fell short keeps a cause line instead of the stale sentence.
|
Full suite at All 21 failures are the four known environment-only files, none of them on this diff's surface: Body untouched; this comment is the |
|
QA read at Checked independently: the capped-demo sentence comes from the run store's recorded
Suites:
No UI surface: CLI text and exit codes only. No blocking finding at this sha. Not run: full No merge action from QA: this report is advisory, the merge gate is the repo's review decision on the head sha, and the merge itself is executed by the repo's merge process. |
Pre-report —
|
|
Review (Birfy) Tip SHA: 552dc49
|
Fixes #1270
What changed
demo_payloaddecided the footer fromfinal_rewardalone, soAGENTDESCENT_MAX_CALLS=1 agentdescent demoprinted "(that is lower than expected for the demo; …)" while the run store it pointed at already recordedstop_reason: budget,stop_detail: max_calls (AGENTDESCENT_MAX_CALLS): 1 call(s) made, cap 1. The payload'snotenow carries that recordedstop_detail, and both surfaces read it: the human footer prints(the run stopped at max_calls (AGENTDESCENT_MAX_CALLS): 1 call(s) made, cap 1; the run store has the detail: <path>), anddemo --jsoncarries the same sentence innote. A run that simply fell short now saysthe final reward never reached 1.0instead of blaming the demo.Reporting only: the run, the cap it enforced, the exit code and the run-store path line are untouched.
Not a goal: the footer's own "next steps" list and any change to what is enforced.
Verification at the tip
Tip SHA: 552dc49
Ran:
441ac2bd, clean tree with only the new test file added, whole file in one run:2 failed, 2 passed in 2.18s; both failures are the product rows (assert 'max_calls' in outwith the footer text, andassert 'max_calls' in 'lower than expected for the demo; see the run store'), and the two passes are the uncapped-run control and the run-store path row, green by designtests/test_demo_capped_footer.pyat the tip:4 passed in 1.95stest_demo.py,test_demo_temp_root.py,test_demo_learned_library.py,test_demo_dest_link.py,test_demo_learned_rules.py, plus the new file):64 passed in 33.84stests/test_mcp.py -k demo):5 passed, 36 deselected in 4.24spython -m tools.changelog_fragments check→ 39 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run:
pytest -q— running at this tip in the background; its line will be posted here as a commentmkdocs build --strict— no file underdocs/ormkdocs.ymlchanges