Inspiration
Pet boarding and grooming teams often need to follow up with owners, but information can be fragmented across staff notes and communication channels. CareLoop explores a safety-gated way to prepare a consistent, auditable follow-up rather than sending unreviewed messages.
What it does
CareLoop is a synthetic-data staging prototype, not a production clinical tool. Its Python Journey engine and deterministic policy layer turn a synthetic observation into a proposed follow-up. The separate staging Lambda candidate is dry-run by default and requires exact-payload approval checks before any possible SES call. The system is designed around recipient allowlisting, human authorization, and avoiding ambiguous retries.
How we built it
The public repository contains Python domain models and policies, a boto3 SESv2 adapter with a real send_email call path, synthetic fixtures and unit tests. The current isolated Ship PR adds an experimental Lambda handler, HMAC-SHA256 approval-signature validation with a short time window, and a conditional DynamoDB write intended to block repeated send attempts. Tests use mocked AWS clients and do not prove cloud execution.
We implemented the build and reviewed safety boundaries with AI-assisted development tools, then verified the code using GitHub Actions. GitHub Actions run 40642141094 passed after the signed-approval change and regression-test correction. This is code-level verification, not AWS deployment proof.
Technical architecture
Synthetic boarding/grooming observation → Python Journey / deterministic follow-up policy → proposed message → signed approval check → atomic send-attempt claim (DynamoDB, in the staging candidate) → Amazon SESv2 adapter → provider response (if authorized and successfully sent). Independent deployment and runtime verification of the end-to-end sequence are still required.
What we learned
A client's approved=true flag is not trustworthy approval. A content digest alone does not authenticate a reviewer. Conditional write-before-send protects against automatic duplicate attempts but can leave an uncertain state after a timeout. A SES API response, if obtained, would establish provider acceptance, not final inbox delivery.
Reproducibility and evidence
Repository: https://github.com/corwinlim/careloop-aws-cds Ship candidate PR: https://github.com/corwinlim/careloop-aws-cds/pull/1 Verified CI: https://github.com/corwinlim/careloop-aws-cds/actions/runs/40642141094
The repository has a Python test workflow and synthetic test data. Separate AWS CDK scaffolding has been prepared but has not been verified as deployed to the AWS account.
Known limitations / remaining work
- The real SESv2 SendEmail attempt returned AccessDeniedException involving the recipient identity. No successful live SES MessageId or delivery evidence is available.
- A genuinely deployed AWS-hosted AI inference workflow and end-to-end CDS runtime proof are not yet established.
- The HMAC approval-signing service, authenticated reviewer identity and production-grade secret management are not deployed or evidenced.
- APN membership and the genuine event-campaign ACE Opportunity ID remain unverified.
- The public repository's root open-source LICENSE requires the owner's explicit authorization and is not yet confirmed.
- A public ~3-minute demonstration video, architecture attachment and final entry submission remain outstanding.
CareLoop is presented at its actual prototype stage, with roadmap items clearly separated from demonstrated capabilities.
Built With
- amazon-ses
- aws-iam-identity-center
- aws-lambda
- boto3
- dynamodb
- github-actions
- pytest
- python