Skip to content

Source Infra Plan

Reese Hodge edited this page Sep 30, 2026 · 2 revisions

Source: Infra Plan

Source path: docs/infra-plan.md.

This plan corrected the infrastructure reality after an audit found task status had drifted from code. It is the main source for Guide-Deployment and Decision-AgentCore-Runtime-V2.

Problem it solved

Two issues drove the plan:

  • A task had been marked complete even though the AgentCore Memory construct and agent-side memory implementation were not actually present.
  • AgentCore Runtime V2 changed deployment and runtime-shape requirements, and the project decided to target V2.

The durable lesson is the one also recorded in AGENTS.md: a checked task is a claim, not proof.

Verified state at the time

Built or partly built:

  • WebSocket API, Lambda integration, and production stage throttling.
  • Lambda live alias for rollback.
  • Secure parameter imports for tool API keys.
  • Cognito guest identity stack.
  • Budget controls.
  • Frontend hosting stack.

Missing or incomplete:

  • AgentCore Memory construct.
  • AgentCore Runtime provisioning.
  • Agent-side memory client.
  • V2 snapshot-safety work.
  • Operational alarms.
  • Actual AWS deployment.

Key decisions

  • Target AgentCore Runtime V2 for better cold-start behavior and memory billing fit.
  • Keep the target region aligned with required service availability and existing voice dependencies.
  • Historical proposal, superseded: use the AgentCore CLI or AWS CLI for the runtime because CDK/CloudFormation could not set V2 platformVersion. docs/infra-plan.md was revised to choose stable CDK plus a raw CloudFormation property override; Decision-AgentCore-Runtime-V2 records the accepted target. The constitution still names CLI agent deployment.
  • Start the session on TV power-on so greeting playback hides runtime startup.
  • Update stale AgentCore package/CLI assumptions before deployment.

Phase summary

  1. Close spec/reality drift.
  2. Make the agent snapshot-safe before any V2 deployment.
  3. Build a snapsafe base image.
  4. Finish AgentCore Memory infrastructure and client.
  5. Deploy V2 and confirm the platform version.
  6. Add operational alarms.
  7. Run the full validation gate and reconcile docs with reality.

Snapshot-safety cautions

V2 restores instances from a snapshot, so initialization must complete before the app reports healthy. The plan calls out hazards such as freezing randomness, timestamps, tokens, process-specific IDs or mutable startup-fetched catalogs into the snapshot.

Cost and credential posture

Budget controls should precede spend-bearing runtime work. Local AWS use must follow temporary credential rules from Concept-Credential-Hygiene. The plan does not authorize writing credentials or account-specific identifiers into docs.

Agent takeaway

If changing deployment, start from Guide-Deployment for current procedure, then use this source for the rationale and missing-work history. Do not assume the task list is proof of implementation. T148/T149/T154 readiness and warm-up are complete in code; T152 runtime provisioning and post-deploy V2 verification are not. No live AWS deployment was audited for this reconciliation.

Clone this wiki locally