Skip to content

Cover bounded spam actor state semantics#31

Merged
alyldas merged 2 commits into
mainfrom
issue-30-bound-actor-state
Jul 1, 2026
Merged

Cover bounded spam actor state semantics#31
alyldas merged 2 commits into
mainfrom
issue-30-bound-actor-state

Conversation

@alyldas

@alyldas alyldas commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add regression coverage for bounded actor-state behavior with out-of-order explicit nowMs values.
  • Preserve burst timestamps across duplicate rejections so delayed unique messages keep the existing burst decision semantics.
  • Keep duplicate and burst pruning on their existing decision-specific paths.
  • Avoid adding schedulers, timers, background cleanup, or new public API.

Validation

  • npm ci with a temporary npm cache
  • npm test -- tests/index.spec.ts tests/actor-state.spec.ts with a temporary npm cache
  • npm run check with a temporary npm cache

Benchmark Evidence

No package benchmark script exists for this path.

The runtime behavior is unchanged after review feedback; this branch adds regression coverage for the bounded-state compatibility case.

Compatibility Notes

  • Public APIs are unchanged.
  • Rejected messages still do not update actor pressure by default.
  • trackRejectedAttempts keeps its existing opt-in behavior.
  • Finite backward-moving nowMs compatibility is preserved for delayed unique messages after duplicate rejections.

Closes #30

BEGIN_COMMIT_OVERRIDE
fix: preserve spam burst state compatibility
END_COMMIT_OVERRIDE

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8551ee57a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/index.ts Outdated
@alyldas alyldas changed the title Persist lazy spam actor pruning Cover bounded spam actor state semantics Jul 1, 2026
@alyldas alyldas merged commit 0e3f54e into main Jul 1, 2026
4 checks passed
@alyldas alyldas deleted the issue-30-bound-actor-state branch July 1, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bound memory actor state and use lazy pruning

1 participant