qwen-code/packages/core
Shaojin Wen 3f6551f9cf
fix(review): correct the round-cap marker lifecycle and stale cap docs (#8850)
* fix(review): correct the round-cap marker lifecycle and stale cap docs

Follow-up to #8773. The round-cap stop marker shared budget-stop.json with
the time-budget stop but did not share its lifecycle rules, and the huge-diff
cap left several docs describing the old 5-round-only world.

Marker lifecycle:
- First refusal wins. Both writers now skip when a same-run marker already
  exists, so a time-budget stop followed by a retry the cap refuses no longer
  overwrites the marker and posts two contradictory stop disclosures.
- A CONVERGED exit clears any same-run marker. A round-cap refusal followed by
  a converged round (the convergence check runs before the cap gate) left a
  stale marker that capped a legitimately-converged verdict; the converged
  branch now unlinks it.
- coverage.ts's reverseByDesign exemption is now cause-aware. It suppressed
  the not-built gap for any marker, but a round-cap stop's fix (rebuild
  --round 1) is admitted — so a round-cap marker keeps the gap and its
  rebuild remediation.

Docs and tests:
- Drop the stale "retirement.ts re-exports it" and "the retirement scheduler"
  reader claims in budget.ts; note the huge-diff 3-round cap in DESIGN.md's
  LLM-call-budget paragraph and table.
- Mirror the time-budget stop's bounded-tail protocol into the ROUND CAP
  message and SKILL.md bullet (verify only via --role verify, bound the wait
  at the compose floor, no fresh re-verification pass).
- Pin the spelled cap number in the retirement note, and pin that a converged
  past-cap round exits 5 rather than refusing at the cap.

* test(review): pin the round-cap tail protocol and the per-chunk converged clear

* fix(review): recall relayed stop entries on a converged exit and align both refusal tails

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* test(review): pin clearBudgetStop directly and the round-cap wait-bound clauses

---------

Co-authored-by: verify <verify@local>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-08-11 04:36:03 +00:00
..
scripts
src fix(review): correct the round-cap marker lifecycle and stale cap docs (#8850) 2026-08-11 04:36:03 +00:00
vendor feat test tool permissions 2026-03-10 16:30:22 +08:00
index.ts fix: Remove remaining ClearcutLogger export from packages/core/index.ts 2026-02-01 14:52:14 +08:00
package.json chore(release): v0.21.9 (#8886) 2026-08-10 15:27:45 +00:00
test-setup.ts feat(memory): managed auto-memory and auto-dream system (#3087) 2026-04-16 20:05:45 +08:00
tsconfig.json fix: upgrade @lydell/node-pty to 1.2.0-beta.10 to fix PTY FD leak 2026-04-01 07:55:56 +08:00
vitest.config.ts test: raise timeout ceiling for I/O-bound tests flaky under CI contention (#7230) 2026-07-19 12:03:48 +00:00