Skip to content

fix(kiloclaw): skip destroyed instances in expiry sweep#3285

Open
jeanduplessis wants to merge 1 commit into
mainfrom
fix/kiloclaw-expiry-destroyed-instances
Open

fix(kiloclaw): skip destroyed instances in expiry sweep#3285
jeanduplessis wants to merge 1 commit into
mainfrom
fix/kiloclaw-expiry-destroyed-instances

Conversation

@jeanduplessis
Copy link
Copy Markdown
Contributor

Summary

  • Exclude already-destroyed KiloClaw instances from subscription-expiry sweep candidates.
  • Prevent repeated no-op expiry skip warnings for rows that no longer need enforcement.
  • Add SQL-shape coverage so destroyed instances stay filtered at query time.

Verification

  • N/A

Visual Changes

  • N/A

Reviewer Notes

  • Existing row-level destroyed-instance guard stays in place as defensive fallback.
  • Targeted verification run in session:
    • pnpm --filter kiloclaw-billing test -- src/lifecycle.test.ts
    • pnpm --filter kiloclaw-billing typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant