Skip to content

Decision LLM Model Selection

Reese Hodge edited this page Nov 2, 2026 · 9 revisions

Decision: LLM Model Selection

Context

Max Height needs a cloud-hosted conversational model that can maintain the character voice, use tools for factual news and weather, stream promptly, and stay inside the Concept-Budget-Ceiling.

The original baseline model was Claude 3.5 Haiku, but research.md records that AWS scheduled it as legacy by June 19, 2026. That made it unsuitable for a new project whose backend is expected to live beyond the first implementation phase.

The model also anchors the rest of the runtime architecture: the agent runs via Strands on Bedrock AgentCore Runtime, described on Decision-Strands-SDK and Decision-AgentCore-Runtime-V2.

Decision

Use Claude Haiku 4.5 on Amazon Bedrock as Max Height's primary LLM.

Concrete selection from research.md R0 and plan.md:

Field Value
Bedrock model ID global.anthropic.claude-haiku-4-5-20251001-v1:0
Input context 200K tokens
Max output 64K tokens
Global endpoint pricing $1.00 / 1M input tokens, $5.00 / 1M output tokens
Prompt cache reads $0.10 / 1M tokens on the global profile ($0.11 on the us. profile), us-west-2
Prompt cache writes $1.25 / 1M (5-minute TTL), $2.00 / 1M (1-hour TTL) on the global profile ($1.375 and $2.20 on the us. profile)
Batch pricing $0.50 / 1M input, $2.50 / 1M output
Per-reply output cap used in cost model BedrockModel.maxTokens: 250

Rates re-verified against the AWS Bedrock pricing page on 2026-09-29 for both Regions. The headline input and output prices were correct as recorded. Three corrections and additions came out of that check — see below. On 2026-11-02 the cache-read figure was corrected again, to the table above, against the AWS Price List; see correction 1.

R0 estimates the LLM portion at about $0.003 per turn. Its original $0.011/turn, $0.56/50-turn session, $0.17/15-turn session and 16 full or 53 average sessions/month included only one Polly charge per reply. Decision-Polly-Voice documents two billed calls. Holding R0's assumed 500-character average reply and LLM estimate constant, the illustrative pre-free-tier average is $0.003 + 2 × $0.008 = $0.019/turn, or $0.285 for 15 turns. For 50 maximum-length 1,000-character replies, two Polly calls cost $1.60 per session; adding 50 × $0.003 LLM gives **$1.75** under the same simplified LLM assumption. These are per-session scenarios, not measured traffic, a monthly worst case, or a revised monthly budget. R0's $1/month infrastructure and $9/month conversation allowance are also estimates, not deployed-account measurements. Neural's first-12-months free tier could lower actual Polly charges if the account is eligible and has remaining allowance; its status was not checked. #47 and #49 own the cost-model follow-up, not an invented monthly traffic forecast here.

The Free plan documents no cross-Region inference — resolved for the first deployment

Spec 003's plan found this on 2026-10-11 (discrepancy D1). AWS's list of services for Free-plan accounts says the plan supports no multi-Region or cross-Region features for any service. The ID above is a global cross-Region inference profile, so by that rule this account could not invoke the model this page selects. The code names it (packages/agent/src/index.ts:96).

Resolved 2026-11-02 (spec 003 T144). The first deployment adopts this ID, the cheaper of the two profiles S0 proved. The Free plan is temporary and rejects nothing (Decision-AWS-Account-Plan), and the builder's reservation about cross-Region inference is about cost, not a prohibition. The history below stays as the record of how the decision was reached.

Spike S0 contradicted the rule in practice. On 2026-10-29 the builder ran S0 in the Free-plan account, in us-west-2, and both the global. and the us. Haiku 4.5 profiles succeeded. The builder confirmed the account is on the Free plan and, at the time, chose to record the result, not adopt it: the documented rule could start being enforced, and a deployment built on it would then fail with no warning. That caution was superseded on 2026-11-02, as above; the enforcement risk remains and is covered by the post-upgrade model review (T152).

No in-Region route keeps the rest of the decision intact either. S0 found Claude not available for this account on both in-Region paths it tried:

Probe Path and ID Result
S0-3 bedrock-mantle Messages, anthropic.claude-haiku-4-5 HTTP 403 permission_error: "not available for this account"
S0-4 bedrock-runtime Converse, anthropic.claude-haiku-5-5 AccessDeniedException: "not available for this account"
S0-5 bedrock-runtime Converse, amazon.nova-2-lite-v1:0 ValidationException: on-demand throughput not supported; needs an inference profile
S0-6 bedrock-runtime Converse, amazon.nova-lite-v1:0 Success

Mantle would not have qualified anyway: it supports no Guardrails, and the builder requires the adopted model to support them. Nova Lite v1 was the only in-Region candidate. Its provisional adoption (T096) was superseded on 2026-11-02 by T144's choice of Haiku 4.5; Nova Lite v1 is compared at the post-upgrade model review (T152). See Source-Spec-003 and Source-Amazon-Nova-Lite.

The Free-plan premise no longer holds (builder, 2026-10-30). The Free plan expires in December 2026, and nothing is to be rejected because of it. See Decision-AWS-Account-Plan. After the upgrade, this ID and Nova 2 Lite are eligible again, and whether Haiku 5.5 or mantle open up needs a re-probe. Cost still separates the candidates: Haiku 4.5 costs about 17x Nova Lite v1 for input and 21x for output. Revising Q2's candidate set is a spec 003 clarification.

Haiku 4.5 is not end-of-life. Its model card, read 2026-10-29, shows lifecycle Active with no EOL date. Its "EOL no sooner than" floor, 2026-10-16, has passed, so a Legacy announcement can now come at any time (see Source-Bedrock-Model-Lifecycle).

Three corrections from the 2026-09-29 re-check, and a fourth on 2026-11-02

1. Prompt cache reads: the 2026-09-29 "$0.20 in us-west-2" figure is not in the AWS Price List. The 2026-09-29 re-check recorded $0.20 / 1M, against $0.10 in us-east-1, and called it the only cell that differs between Regions for any Anthropic model. On 2026-11-02 the AWS Price List (AmazonBedrockFoundationModels, us-west-2, version 20261012084008, rates effective 2026-09-01) lists Haiku 4.5 cache reads at $0.10 on the global profile and $0.11 on the us. profile, with no $0.20 line. The builder's 2026-11-01 read of the pricing page agrees. What the 2026-09-29 read saw cannot be reconstructed, so the old figure is withdrawn, not explained. It changes no cost: nothing enables caching (correction 3).

2. A provider's own pricing page is not a proxy for Bedrock's. This was first illustrated by Anthropic's $0.10 / MTok cache-hit rate looking wrong for Oregon. That example is withdrawn (correction 1): the Price List agrees with Anthropic's figure. The general caution stands, because Bedrock rates differ by route and Bedrock serves models a provider lists as retired, but cite a Bedrock source for any budget number. The same applies to lifecycle dates — see Source-Bedrock-Model-Lifecycle.

3. Both cache rates are currently unreachable, so neither is load-bearing. Explicit prompt caching requires a minimum of 4,096 tokens per cache checkpoint. systemPrompt.ts is 11,062 characters — roughly 2,990 tokens, and that counts the TypeScript around the string, so the real prompt is smaller still. It does not clear the floor on its own.

A checkpoint may also cover messages and tools (max 4 checkpoints, TTL 5 minutes or 1 hour), so system prompt plus tool definitions might clear 4,096 together — that is unverified. What is verified is that the agent asks for no caching at all: BedrockModel is constructed with only modelId and maxTokens, and the agent source contains zero occurrences of cachePoint, cachePrompt or cacheControl.

So the practical answer to "does Oregon cost us more?" is no — the cache-read rate is the same $0.10 either way, and we do not pay it on a feature we do not enable, with a prompt that may be too small to use it.

Issue #49 tracked these corrections; its research.md § R0 job is moot because R0's $0.10 figure is correct. The open question is whether system prompt plus tool definitions clear 4,096 together. If they do not, the caching line should be struck from the cost model rather than carried forward as an optimisation nobody can take.

The lifecycle was misread, in both directions

The model card's EOL no sooner than 2026-10-16 reads like a fortnight's notice. It is not a retirement date but a floor, and Claude Haiku 4.5 is Active and absent from Bedrock's Legacy table. Legacy is a notice period of at least six months that runs before EOL, so the earliest real EOL is around March 2027, and only if an announcement landed today.

The opposite error is just as easy. This page's own framing — that Claude 3.5 Haiku's scheduled legacy status "made it a bad foundation for new work" — is sound, but the risk it names is not really removal. It is price: under the policy governing every model we use, a Legacy model enters public extended access after roughly three months, where the provider may raise the rate on a workload nobody changed. The clock that matters is therefore 3 months, not 6. Full story on Source-Bedrock-Model-Lifecycle.

One billing note that belongs with the numbers: Claude is a third-party model billed through AWS Marketplace, so charges appear in Cost Explorer under the provider rather than under Amazon Bedrock. Our budget is account-wide and catches it either way, but a spend investigation that filters on "Bedrock" will not see this model.

Consequences

The project can keep the MVP cloud-only, streaming, and type-safe without moving to a more expensive model tier. Haiku 4.5 is the lowest-cost successor that still meets the personality and tool-use requirements for Feature-Max-Height-Core.

The decision makes budget controls load-bearing. The old 16 full / 53 average sessions per month estimates should not guide capacity or spend: they use single-call Polly pricing and unverified workload/free-tier assumptions. Polly can dominate spend, so Decision-Polly-Voice remains part of the same cost decision, not a separate cosmetic choice.

The source explicitly says a constitution amendment was required to move the technology table from Claude 3.5 Haiku to Claude Haiku 4.5. This page records the implemented decision; it does not amend the constitution.

Alternatives considered

Alternative Rejected because
Claude 3.5 Haiku Scheduled legacy status made it a bad foundation for new work.
Claude 3.5 Sonnet Better quality but about 3x more expensive, budget-incompatible.
Claude Sonnet 4 / 4.5 Premium tier, outside the project cost envelope. Sonnet 4 has since entered Legacy itself (EOL 2026-10-14).
Amazon Nova 2 Lite Ineligible on the Free plan, which is temporary (Decision-AWS-Account-Plan); reopened once the account upgrades. Its model card (read 2026-10-11) offers it only through cross-Region inference, and spike S0 confirmed it on 2026-10-29: a bare-ID call returns ValidationException. Spec 003 therefore moved the cheaper-model evaluation for #50 to Nova Lite v1. It is cheaper per token (3.3x input, 2x output) and ships built-in web grounding and a code interpreter. See Source-Amazon-Nova-Lite.
Claude Haiku 5.5 Not available for this account (spike S0-4, 2026-10-29). S0-4 tried the bare ID, but the card lists no in-Region bedrock-runtime endpoint (In-Region endpoint URL: N/A, read 2026-10-30), only the us. and global. profiles. Spec 003 adds probe S0-9 for us.anthropic.claude-haiku-5-5.

Status/verification

Rates and lifecycle re-verified against the AWS model card and the Bedrock pricing page on 2026-09-29, in both us-east-1 and us-west-2. The selection itself is unchanged; three cost-model details were corrected above. On 2026-10-11 spec 003's plan found that the Free plan documents no cross-Region inference, so it could not invoke the selected ID. On 2026-10-29 spike S0 showed it can in practice. On 2026-10-30 the builder ruled that the temporary Free plan rejects nothing (Decision-AWS-Account-Plan), and on 2026-11-02 (T144) the first deployment adopted this ID on the global profile, $1.00 / $5.00 against the us. profile's $1.10 / $5.50. The cache-read figure was corrected against the AWS Price List the same day.

Re-check this page before changing Component-Agent-Runtime or the cost assumptions on Concept-Budget-Ceiling. The specific triggers to watch for are a Legacy announcement for Haiku 4.5 — which starts a three-month clock to a possible price rise, not a six-month one to removal — and any decision to actually enable prompt caching, which would make the cache-read rate real for the first time.

Clone this wiki locally