Skip to content

agentd doctor says a model is "not in the price list either" when it is present in the cached price list; stale cache from a different price_source is reported as absence #136

Backlog

Description

@gutzjr

Summary

agentd doctor's model-prices warning tells the user a model is "not in the price list either", naming [budget] price_source and its cache. For at least one model that claim is false: the model is present in the cached price list with all four rates. The fix text then directs the user to hand-type rates that are already on disk.

Observed

agentd doctor:

warn  model-prices  unpriced models in worker runs from the last 7 days: gpt-6.1-sol; cost is not measured
                    fix: "${EDITOR:-vi}" <root>/config.toml; they are not in the price list
                    either ([budget] price_source, cached in <root>/.state/prices.json); under
                    [budget.prices] add "gpt-6.1-sol" = { input = IN, output = OUT, cache_read = CR,
                    cache_write = CW }; replace IN, OUT, CR and CW with your provider's rates in USD
                    per million tokens

<root>/.state/prices.json at that moment:

{
 "source": "https://api.libraos.com/v1/models",
 "fetched_at": "2026-11-23T19:46:25.066602Z",
 "attempted_at": "2026-11-26T18:04:05.435161Z",
 "error": "cannot read a price list (https://gateway.meganova.ai/v1/models: the model list has no priced anthropic or openai model); the last one read is kept",
 "prices": {
  "gpt-6-astra":  { "input": 8,    "output": 40,  "cache_read": 0.8,   "cache_write": 10 },
  "gpt-6-luna":   { "input": 0.08, "output": 0.4, "cache_read": 0.008, "cache_write": 0.1 },
  "gpt-6.1-sol":  { "input": 1.6,  "output": 8,   "cache_read": 0.08,  "cache_write": 2 }
 }
}

gpt-6.1-sol is in the file, fully priced, and the cache's own error line says the last list read "is kept".

Context that probably matters

The install has [gateway] url pointed at a third-party gateway (gateway.meganova.ai), not api.libraos.com. The cached prices were fetched from api.libraos.com on 2026-11-23, before the switch. Every refresh since fails with the error above and the stale list is retained.

So gpt-6.1-sol in the cache is a same-named model from a different provider, and whose rates very likely differ.

Two readings — I could not separate them without the source

  1. Behaviour correct, message wrong. A failed refresh makes the cache untrusted for pricing, so the price is deliberately ignored — which is right here, since the rates belong to another provider. But the message asserts the model is absent from the list rather than saying the list is stale or from a different price_source.
  2. Behaviour inconsistent. The cache is consulted for cost attribution but not for this warning, so the two paths disagree about whether the model is priced.

In both cases the user-facing text is wrong, and in this install it sends the user to hand-type a rate that is sitting in prices.json. A user who copies it would silently adopt another provider's pricing — the worse outcome, because it is wrong but looks authoritative.

Expected

The warning distinguishes the cases it actually faces:

  • model genuinely absent from the price list → current wording is fine
  • model present but the list is stale / from a different price_source than the configured gateway → say that, name the source and fetched_at, and warn that adopting those rates assumes the two providers charge alike

Related

Not verified

Whether --budget '$5' is in fact refused for a gpt-6.1-sol worker. Confirming it starts a real worker and spends money, so it was not run.

Environment

  • agentd / libraos-engine, macOS arm64 (Darwin 25.4.0)
  • [gateway] url = https://gateway.meganova.ai/v1, reachable, 63 models, none priced
  • Observed 2026-11-26

Activity

  1. added
    agentd:fix-proposed
    on Nov 26, 2026
  2. flyworker commented on Nov 26, 2026

    @flyworker
    Contributor

    LibraOS Engine triaged this issue: fix.

    Reason given by its worker: Confirmed in libraos/core: the doctor model-prices fix text always says "not in the price list". priceIn/listPrices skip, on purpose, a cache from a source the config no longer names. The lookup is right; the message is wrong and may lead users to copy another provider's rates. Low confidence: the code lives in libraos/core, not this UI/docs repository, so a person must route it. Not a duplicate o…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentd:fix-proposed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions