| Day | Task | Start Date | Completion Date | Reference Material |
|---|---|---|---|---|
| 2 | - Review Free Tier and AI access constraints + Check Bedrock pricing and model access requirements + Decide that Bedrock should not be mandatory in the MVP + Move to an external AI approach to reduce account/policy risk | 06/22/2026 | 06/22/2026 | Amazon Bedrock Pricing AWS Free Tier |
| 3 | - Revise the system architecture + Remove the Bedrock state from the Step Functions workflow + Add an externalAiNormalize Lambda that calls an external AI API+ Store the API key in Secrets Manager instead of code or frontend config + Update the diagram and data flow | 06/23/2026 | 06/23/2026 | AWS Lambda AWS Secrets Manager Step Functions |
| 4 | - Update the data contract, status model, and error handling + Keep the shared JSON schema for invoices/receipts + Add EXTERNAL_AI_FAILED handling or map it to REVIEW_REQUIRED/FAILED+ Update workflow retry/catch behavior + Adjust the IAM role for the Lambda adapter | 06/24/2026 | 06/24/2026 | Step Functions Error Handling IAM Best Practices |
| 5 | - Update cost and risk analysis + Remove Bedrock from the AWS baseline cost table + Add external AI provider cost by request/token + Add risks for API keys, quota, latency, network timeout, and sensitive data leaving AWS + Update cost control and cleanup checklists | 06/25/2026 | 06/25/2026 | AWS Budgets CloudWatch Logs Secrets Manager Pricing |
| 6 | - Rewrite the proposal based on the new architecture + Update the executive summary, architecture, service selection, and workflow + Replace Bedrock with the External AI Lambda Adapter + Update the timeline, cost estimation, risk mitigation, and definition of done | 06/26/2026 | 06/26/2026 | AWS Well-Architected Framework Serverless Lens |
| 7 | - Rewrite the workshop based on the updated proposal + Update overview, prerequisites, and the AI extraction module + Rewrite the external AI secret configuration steps + Update deploy steps, test cases, evidence, and cleanup + Re-check workshop internal links | 06/27/2026 | 06/27/2026 | AWS SAM S3 Presigned URL Upload Amazon Textract AnalyzeExpense |
Reconfirmed the DocuFlow AI architecture direction:
Updated the processing flow:
externalAiNormalize, JSON validation, result persistence, and status updates.Redesigned the external AI integration:
Updated the data contract and status model:
documentId, userId, fileName, documentType, vendorName, invoiceDate, currency, totalAmount, taxAmount, lineItems, confidenceScore, status, s3RawPath, and s3ProcessedPath.REVIEW_REQUIRED when human review is useful, or FAILED when the workflow cannot continue.Updated the cost analysis:
Updated the risk matrix:
REVIEW_REQUIRED.Reworked the proposal:
Reworked the workshop: