Skip to content

Attachments stage 2b: retire the inert browser expiry worker#220

Merged
sysread merged 1 commit into
mainfrom
claude/affectionate-ritchie-1jcnn
May 30, 2026
Merged

Attachments stage 2b: retire the inert browser expiry worker#220
sysread merged 1 commit into
mainfrom
claude/affectionate-ritchie-1jcnn

Conversation

@sysread
Copy link
Copy Markdown
Owner

@sysread sysread commented May 30, 2026

SYNOPSIS

Remove the inert browser attachment-expiry worker now that the server-side sweep (stage 2) owns expiry.

DESCRIPTION

Stage 2 moved attachment expiry to a server-side cron + edge function. The old browser path it replaced was already a no-op post-stage-1 (its RPC nulled data where data is not null, which matches zero rows after the base64 reclaim). Remove it:

  • Drop the attachment_expiry unit from the supervisor (loop/manager/worker) - it now walks six units, not seven, and the attachmentExpiryDays tunable is gone.
  • Delete src/lib/agents/attachment_expiry/.
  • Remove SupabaseService.expireOldAttachments and the expire_old_attachments RPC (schema keeps an idempotent drop function so a sync clears it from any project that ran the earlier schema).
  • Delete tests/attachment-expiry-loop.test.ts; refresh the comments that listed attachment_expiry as a live worker.

Pure cleanup. Gate green: svelte-check 0 errors, lint, knip, 1764 tests, build clean.


Generated by Claude Code

The server-side sweep (stage 2) owns attachment expiry now, so remove the
old browser path it replaced:

- drop the attachment_expiry unit from the supervisor (loop/manager/worker),
  which now walks six units instead of seven;
- delete src/lib/agents/attachment_expiry/;
- remove SupabaseService.expireOldAttachments and the expire_old_attachments
  RPC (schema keeps an idempotent `drop function` so a sync clears it from
  any project that ran the earlier schema);
- delete tests/attachment-expiry-loop.test.ts;
- refresh the comments that enumerated attachment_expiry as a live worker.

It was already inert post-stage-1 (the RPC matched zero rows after the
base64 reclaim), so this is pure cleanup. Gate green: svelte-check 0,
lint, knip, 1764 tests, build clean.
@sysread sysread merged commit ad49d27 into main May 30, 2026
1 check passed
@sysread sysread deleted the claude/affectionate-ritchie-1jcnn branch May 30, 2026 03:01
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.

2 participants