Skip to content

fix: lower eventExpiryDuration minimum from 7 to 3 days#956

Merged
jesseturner21 merged 1 commit intoaws:mainfrom
notgitika:fix/744-event-expiry-min
Apr 24, 2026
Merged

fix: lower eventExpiryDuration minimum from 7 to 3 days#956
jesseturner21 merged 1 commit intoaws:mainfrom
notgitika:fix/744-event-expiry-min

Conversation

@notgitika
Copy link
Copy Markdown
Contributor

Summary

  • Aligns CLI schema with the AWS CreateMemory API which allows a minimum of 3 days for eventExpiryDuration
  • Users can now configure memories with 3-6 day expiry through the CLI

Closes #744

Changes

  • src/schema/schemas/agentcore-project.ts.min(7).min(3)
  • src/schema/llm-compacted/agentcore.ts — comment @min 7@min 3
  • src/cli/commands/import/import-memory.ts — clamping floor 7 → 3
  • src/cli/commands/import/actions.ts — clamping floor 7 → 3
  • Updated all related tests (schema validation, import clamping, merge logic)

Test plan

  • All 123 tests pass across 3 test files
  • agentcore validate accepts eventExpiryDuration: 3
  • agentcore validate rejects eventExpiryDuration: 2

The AWS CreateMemory API allows a minimum of 3 days, but the CLI schema
was rejecting values below 7. Update the Zod schema, LLM compacted
types, import clamping logic, and all related tests.
@notgitika notgitika requested a review from a team April 24, 2026 19:09
@github-actions github-actions Bot added the size/s PR size: S label Apr 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.9.1.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-956-tarball/aws-agentcore-0.9.1.tgz

@jesseturner21 jesseturner21 merged commit 8613657 into aws:main Apr 24, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eventExpiryDuration minimum is 7 in schema but API allows 3

2 participants