Skip to content

Add listen --on-quote-model-prices for agent self-reported rates - #324

Merged
NeilJo-GY merged 2 commits into
mainfrom
fix/on-quote-model-prices
Oct 30, 2026
Merged

NeilJo-GY merged 2 commits into
mainfrom
fix/on-quote-model-prices

Conversation

@NeilJo-GY

Copy link
Copy Markdown
Contributor

Summary

  • Add --on-quote-model-prices / ACN_ON_QUOTE_MODEL_PRICES so Mode B listen can ask the agent runtime for Host-book misses (including price_required retry), with a 20s wall-clock budget.
  • Quote order: live provider catalog → shell hook → ACN_MODEL_PRICES fallback; bump CLI to 1.0.35 and document in the listen heartbeat runbook.
  • Include Comiclaw reference hook scripts under scripts/comiclaw/ (already landed on the production box).

Test plan

  • npm test -- --run tests/preferred-model-apply.test.ts tests/listen.test.ts
  • Comiclaw: install 1.0.35 tarball, set ACN_ON_QUOTE_MODEL_PRICES, restart acn-listen
  • Hook smoke returns kimi/glm model_prices
  • Owner Settings on Comiclaw: open AGENT PRICING → quote fills stickers; no not priced rows

Host price_required / quote_model_prices now prefers the provider catalog, then a shell hook (≤20s), then ACN_MODEL_PRICES — so TokenPlan-style catalogs without price fields can still sticker market rates.
Drop the mistaken onQuoteModelPrices pass into preferred-model apply, and bump past reused v1.0.35–38 tags so npm can publish a fresh version.
@NeilJo-GY
NeilJo-GY merged commit 29e6c6e into main Oct 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant