Skip to content

Source Agent Infra Deployment Review

Reese Hodge edited this page Nov 15, 2026 · 1 revision

Source: Agent and Infrastructure Deployment Review

Published branch evidence, not deployed state. The foundation batch is commit ee4e458 on 003-architecture-review, not merged to main. The original review and working plan are local-only documents; the pinned research, spec and tasks above are the public evidence and decision record. The builder separately approved committing and pushing both repos on 2026-11-15.

The 2026-11-15 review examined 98fadf7 and recommended not deploying it. The follow-up plan checked the relevant code on that same revision. The offline regressions below then drove the foundation fixes; no live AWS checks or deployment were performed.

Findings and integration traps at reviewed baseline 98fadf7

Finding Why it matters
Per-call token limit is not an invocation ceiling index.ts:97-106,203-205 has no SDK loop bounds or overall turn deadline. Repeated tool/model calls bypass a before-invocation session check.
Control reads and session writes are unsafe under concurrency controlTable.ts:124-138,244-247 combines eventual reads with unconditional session replacement. Strong reads alone do not prevent lost updates.
JSON timing logs are not exported application traces observability.ts:38-54,81-94 has no provider/exporter and keys overlapping spans by name. P9 cannot be satisfied by console output alone.
Warm-up discards serving resources index.ts:282-285 constructs and discards an Agent; warmup.ts:14-18 probes a separate client. Requests create fresh models.
Body buffering has no byte ceiling index.ts:125-129 reads everything before validation. A character ceiling cannot bound unrelated fields or parsing allocation.
Unconditional asset publication creates a bootstrap cycle max-height-app.ts:41-43 constructs the frontend even for Budget selection. Planned BucketDeployment needs dist before the output-dependent production build. This is not a current synth failure.
Reusing Agents changes usage accounting usage.ts:52-54 reads lifetime metrics; adding readings from a reused Agent double-counts earlier calls.

SDK and observability qualifications

The installed Strands 1.24.0 dist/src/types/agent.d.ts:102-154 exposes request-wide limits.turns, outputTokens and totalTokens. Checks run between turns, so the last call can overshoot. Auxiliary work also has qualifications. Loop limits are not strict pre-spend reservations.

The same file (:424-432) exposes request usage through AgentResult.invocationContext.usage; each top-level call starts new usage. Prove cancellation/error accounting before using it, and never carry a previous request's context into the next chat turn. Bedrock's public clientConfig supports shared HTTP-handler configuration; private client injection is not a supported fix.

AWS's setup guide, read 2026-11-15, requires code instrumentation and Transaction Search for application telemetry. Its hosted-agent setup examples are Python. The Node-compatible exporter, resource attributes and actual span destination still need verification; do not copy Python setup into this TypeScript agent.

Follow-up

The follow-up extends Source-Spec-003, not a second specification. It puts foundation safety before reuse, verified identity and spend admission before access, real tracing before release, then streaming/Memory/frontend integration and bootstrap-safe publication.

Budget reservation and concurrency choices are approved but not implemented. They can bound admitted application work, not promise a literal AWS invoice ceiling: static infrastructure, telemetry and refused-request CPU still cost money. Resolve P2 compliance before claiming the design is deployment-ready. The reviewable batch below fixes two foundation primitives; end-to-end migration and live quickstart verification remain deployment gates.

Reviewable foundation batch (ee4e458, 2026-11-15)

The builder approved the recommended limits and semantics for implementation; spec 003's Session 2026-11-15 is the decision record. That safety approval did not authorize publication; the later commit/push instruction does. Deployment and billable probes remain unauthorized. The P2 amendment is still unapplied, and true 30-day retention needs verified source/service timestamps.

T159-T162 fix the control/usage primitives: strongly consistent reads, create-if-absent or expected-snapshot session writes, and per-request invocationContext.usage without a lifetime fallback. Twelve regressions failed first for the intended gaps. Two invocations on the actual SDK Agent, with mocked Bedrock transport, reproduced the 250-then-500 readings before the fix and report 250 each afterward. Conditional session conflicts propagate instead of overwriting another update.

These are committed branch changes, not live enforcement. The runtime still needs verified identity, admission/reservations, cancelled/error settlement, request/loop limits and the other migration work. T163-T174 keep that work visible; do not treat the helper fixes as a deployment sign-off.

Clone this wiki locally