Repository navigation
refactor(jobs): one nightly retention sweep, declared per collection - #1013
Conversation
`purgeSubmissions`, `sweepEventImports` and `cleanupJobs` called one engine and differed only in their declaration: three slugs, three input schemas, three output schemas and three crons around one loop. They are now rows in `src/jobs/SweepRetention/registry.ts`, one per collection, each with its windows and the reason each window is the length it is in its own file under `entries/`. Adding a collection to retention is a row, not a job folder. `NO_RETENTION` beside the registry records a collection deliberately left out, with the reason. `meditation-transcripts` is its one entry: an orphaned row keeps the full spoken word and its R2 key, and how long it may is a policy decision this refactor takes no position on. One task carries one schedule, so the `payload-jobs` sweep moves from Sundays 05:00 to the nightly 04:00 run. `JOB_RETENTION_DAYS` is unchanged and still bounds what goes — a row simply stops surviving the extra nought to seven days until the next Sunday. That entry's docblock says so. The engine moves out of `src/lib/retention/` with the three call sites: one consumer in `src/` would fail `tests/unit/lib-boundary.spec.ts`, and single-owner code belongs in its owner's folder. It is renamed `sweepCollection`, since the task is now the retention sweep. A registry cannot name its counters in a static `outputSchema`, so the output carries one count per collection it touched — `users` included, which no entry of its own sweeps. The `collection` input replaces the three separately queueable rows the admin Jobs UI used to show, so an operator can still dry-run one collection; an unknown one throws rather than sweeping nothing and reporting success. The `users` orphan sweep keeps both halves. They are a per-run hooks factory rather than two functions, because a sender set held at module scope would carry a dry run's senders into the real sweep after it. Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L8FT4pY6kwRfY9E2mXzzrU
…eplaces `migrate:create` drops `cleanupJobs`, `purgeSubmissions` and `sweepEventImports` from both task-slug enums, then casts the column back with `USING "task_slug"::enum`. `deleteJobOnComplete: false` plus `JOB_RETENTION_DAYS = 7` means a finished row still naming one of the three survives up to a week past this deploy, and that cast rejects a value the new enum lacks — aborting the boot migration rather than failing a row. So the up keeps all three labels, and the down keeps `sweepRetention` for the mirrored reason. The retention sweep is what removes the rows; the labels go with the next regeneration of these enums. Measured on Postgres before committing, in a rolled-back transaction with the three legacy rows seeded: the generated DDL aborts with `invalid input value for enum ... "cleanupJobs"`, and this DDL applies in both directions with every row intact. `--` comments only, no backticks: a backtick inside the `sql` template closes it, which `tsc` reports as `TS1005: ',' expected` on the comment line. Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L8FT4pY6kwRfY9E2mXzzrU
…n by subtraction From the review pass over the branch. Three tasks could not fail each other; one task could. An entry that throws is now logged, the entries after it still run, and the run ends failed once every entry has had its turn — so a broken window query no longer leaves `payload-jobs`, which nothing else bounds, growing while the failure reads as one collection's. The job runner hands the handler a `req` carrying no transaction, so a failed statement leaves the next entry's reads working. The orphan sweep's dry run reported a sender as going whenever no durable row pinned them, which was never the question the real sweep asks: a second contact message not yet due pins the row too, and the dry run then disagreed with the sweep that followed it. It now subtracts what the windows selected from what the sender has, which is the same rule the real path reads off `remaining`. The durable types no longer come into it, which also un-cycles the module. The rest is subtraction the review asked for: one `types.ts` owns the entry vocabulary, so `registry.ts` and the entry files no longer import types from each other in a cycle, and the `beforeDelete` contract is declared once rather than spelled on both sides of the call. `beforeDelete` loses the `window` no implementation read, `afterDelete` reports one count rather than a one-element array, and `RetentionRun.now` — dead before — is what the dry-run subtraction reads its cutoffs from. `NO_RETENTION` is keyed on `CollectionSlug`, so a renamed collection cannot sit there misspelled while reading as settled. `deletedIn` takes the generated `TaskOutput<'sweepRetention'>` instead of a hand-written shape, per `taskRunner.ts`'s own rule. The migration keeps its DDL and gains the breadcrumb the review earned: the committed snapshot omits the three retained labels, so the next migration touching a task slug recreates the enums without them, and must not land while a row still names one. The pre-flight query is in the comment. Each new assertion was watched failing against the defect it names. Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L8FT4pY6kwRfY9E2mXzzrU
`tests/unit/perf-figures-pinned.spec.ts` holds `tests/PERF.md`'s count to the specs on disk, and this branch adds one. The figure was already one behind on `main` — 215 recorded against 216 files — so the lane is now 217 files and 2795 cases, measured on this branch's gate run. The three consumer docs quoting the counts move with it; the timings are unchanged and unmeasured here. Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01L8FT4pY6kwRfY9E2mXzzrU
|
🚅 Deployed to the SahajCloud-pr-1013 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Four conflicts. Three were the unit lane's file and test counts, which both sides had just re-pinned: neither side's number survives a merge that brings both new specs, so the lane was re-measured on the merged tree — 218 files, 2799 tests — and PERF.md plus its three consumers carry that. src/migrations/index.ts had both sides' new migrations. All four are kept, in timestamp order. The merge also put main's #981 localization migrations behind this branch's newer one, leaving 20261021_020011's snapshot on the pre-#981 schema. A migrate:create run then re-emitted main's whole localization move, which replays on a Railway boot and aborts the migration. 20261021_023926 heals the chain: its .json is generated on the merged tree and its up/down are empty, since 20261020_170450 and 20261020_185917 already ship every statement. A probe after it writes no files. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018VcchzPLHjQevQtqszjhX9
|
Merged Three were the same figure — both sides re-pinned the unit lane's counts, and neither number survives the merge, which brings both new specs. Re-measured on the merged tree: 218 files / 2799 tests, written into
One thing the merge broke that no hunk shows. It put main's #981 localization migrations behind this branch's newer one, leaving Lean gate green: lint, both typechecks, 218 unit files / 2799 tests in 44 s. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The registry the ticket asked for is here, and every acceptance criterion is met — including the two judgement calls (meditation-transcripts recorded in NO_RETENTION; the payload-jobs cadence change stated at its own entry). Moving the engine out of src/lib/retention/ departs from the ticket, and is right: lib-boundary.spec.ts fails a lib module with one consumer.
It does not shrink the code, though. Excluding comments and blanks: 293 → 335 lines, 5 → 8 files. The ~150 lines of repeated declaration the ticket priced did collapse; the saving went on the registry's own vocabulary and on the two items the ticket listed as costs. "A row rather than a job folder" is the whole return.
Nothing blocks.
Findings
should-fix— a thrown entry reports no count and loses the deletes it already made —SweepRetention.ts:114.should-fix—collectionis free text guarded by a runtime throw; Payload hasselect—SweepRetention.ts:42.should-fix— the body's test counts and migration list predate the conflict merge —src/migrations/index.ts:581.consider—usersis swept but is no registry row —registry.ts:19.
What was checked
#987 against the diff. All 8 SweepRetention/ files whole. lib-boundary.spec.ts (the move is forced) and src/types/AGENTS.md (types.ts is in convention). Both migrations' DDL and both .json snapshots: neither carries the three legacy labels, as the open question thread says. payload-types.ts slug union. Grep for the three old slugs over src scripts seeds tests docs — only new docblocks name them. architecture.md, src/AGENTS.md, COVERAGE.md, PERF.md, testing-reqs.md all follow the rename. Preview answers 200; no sign-in, since this run holds no PREVIEW_ADMIN_EMAIL, so collection was read from inputSchema rather than the UI.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`sweepCollection` returned its count only on success, so a throw in the second window discarded the first window's deletes and left the entry absent from the run's report — which reads as zero, the same answer a collection with nothing due gets. A `SweepFailure` carries the partial count past the throw, and the handler pushes the entry's row from it. `afterDelete` still throws past that branch, its entry's row already recorded. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018edbTgVRrCoQ3Eb3REKn9f
`collection` was free text, guarded by a runtime throw and described by a list hand-built from the registry. A `select` over the same registry gives the operator the three rows the three replaced tasks used to show, and generates a union the specs type against. The guard stays: a queue call in code reaches the handler with whatever it was handed, and no field validates that path. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018edbTgVRrCoQ3Eb3REKn9f
"One entry per collection" did not cover `users`, which the task sweeps through the `user-submissions` entry's hooks and reports as a collection with no row of its own. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018edbTgVRrCoQ3Eb3REKn9f
Two assertions land with this branch's threads, so the lane is 2801 tests over the same 218 files. `perf-figures-pinned.spec.ts` holds every consumer to PERF.md's figure. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018edbTgVRrCoQ3Eb3REKn9f
|
Four review threads adopted, one commit each, pushed as 865c4ce.
Nothing rebutted. The migration question thread stays open — it waits on you. Gate green on this head: lint, both typechecks, 2801 unit tests, 98 s. 45 int cases across 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
CI is red only in the smoke step, and the cause is outside this repo. The preview deploy failed, so all 9 e2e specs got 502 from The preview is still down — No log reached this run: Verified on
This needs an attended redeploy, which a routine may not do. Nothing pushed: no commit changes it. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#1027 landed `20261024_005319_submission_location` on `main`, which conflicted with this branch's two migrations in `src/migrations/index.ts`. Both sides are additive, so all three are registered in timestamp order. That merge re-armed the out-of-order snapshot trap. #1027's snapshot is now newest by timestamp but was generated on `main`, where `task_slug` still names `cleanupJobs`, `purgeSubmissions` and `sweepEventImports` — so `migrate:create` re-emitted both enum rebuilds that `20261021_152406_retention_registry` already ships. The re-emission omits that migration's `DELETE` of the rows naming the dropped slugs, so replaying it would abort the boot migration on the first legacy row. Healed the documented way: `20261024_161437_merge_1027_main_snapshot` keeps its `.json`, generated on the merged tree, with empty `up` and `down`. `src/plugins/formBuilder/index.ts` merged cleanly and carries both sides — this branch's `custom.retention` and #1027's `resolveProposalRegion` hook. #1027 adds no submission type, so `DURABLE_TYPES` is unchanged, and the purge windows select on `type`, `status` and `createdAt`, none of which it touches. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SPqGrb2pbaKRL5f1PFAyT8
|
Merged The merge re-armed the out-of-order snapshot trap. #1027's snapshot is newest by timestamp but was generated on
Gate green. Int specs: 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
CI is red only in smoke, and nothing in this head reproduces it. The preview crashed, so all 9 e2e specs got 502. Lint, format, typechecks and the unit + int lanes passed. New since the last run: Railway is healthy. #1020's preview deployed at 16:25, seven minutes before this one crashed at 16:32. So the fault is specific to Verified on
No log reached this run: This needs an attended environment reset ( 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…etention-registry
Four Markdown conflicts, all test-count figures that both sides re-pinned. `main` re-measured Tier 1's slowest per-edit selection on 2026-10-23 and explained why the config-importing spec dominates it, so those rows supersede this branch's older importGraph measurement. The session table keeps both sides' rows, as `tests/PERF.md` asks, renumbered. The counts themselves belonged to neither side: the merged tree carries 227 unit spec files and 2911 cases, measured here. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TTTFj1cX5mx7urq9fX39Qx
|
Merged Two hunks were a real choice. Tier 1's slowest per-edit selection took
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Three Markdown conflicts, all the same figures both sides re-pinned. `main` re-measured the warm lean gate at 112 s on 2026-10-25, so that row supersedes this branch's 103 s. The session table keeps both sides' rows — this branch's sixteenth and `main`'s own 227 / 2909 from #1034. The counts belonged to neither side: #1034 adds a unit spec, so the merged tree carries 228 files and 2918 cases, measured here inside the gate. `perf-figures-pinned.spec.ts` is what refuses the stale pair, and why the four consumer docs move with it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QLYiYBabKtcYdEPm1qE81C
|
Merged
Lean gate green on the merge: lint, format, typecheck, typecheck:tests, 228 files / 2918 cases, 120 s. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
purgeSubmissions,sweepEventImportsandcleanupJobsbecome one nightly task,cleanupCollections, over every collection that declares retention inline on its own config'scustom.retention.meditation-transcriptsdeclares a seven-day orphan window, settling the policy question earlier rounds had parked.payload-jobshidden from everyone, so the Jobs UI an operator queues this task from answered 404 for every user, admins included. It is now admin-only rather than nobody's.tests/PERF.md's unit-spec count was behindmain. Re-pinned on the merged tree, with this branch's specs.Change outline
Files — three job folders become one declaration per swept collection, inline
Contract — the task an operator queues, the enum a deploy casts, and what a collection declares
Flow — one handler over the config, with the hooks nested under the collection that owns them
CleanupCollections.handler({ input, req }) src/jobs/CleanupCollections/CleanupCollections.ts + entries = retentionEntries(req.payload.config.collections) # config order + or the one `collection` names # declares none → throw, naming those that do + for each entry: + windows = dueWindows(entry.windows, now) # resolved once, against one clock + hooks = entry.hooks?.({ dryRun, req, wheres }) + try: sweepCollection({ collection, windows, beforeDelete, … }) - per window: cutoff → beforeDelete(where) → count (dry run) or delete + per window: beforeDelete(where) → count (dry run) or delete - beforeDelete read whose users rows were about to be orphaned + user-submissions only: noteSenders fills touchedUsers + a throw carries the rows the earlier windows deleted + hooks.afterDelete() # the users orphan sweep, one count + catch: log, record the collection and what it deleted first, carry on + throw once if any collection failedPreview
dryRunand thecollectioninput⚠ Both links 404 on
mainand on every earlier commit of this branch, for every user. Payload ships its own jobs collectionadmin: { hidden: true }, which unregisters the routes as well as the nav entry — so the Jobs UI these links point at was reachable by nobody at all. The last push narrows that gate to admin managers, which is what makes the preview above usable and the four manual steps below possible.Data: not seeded. This repo configures no preview seed command, and a retention sweep shows nothing without expired rows — queue the task from the first link with
dryRunset and the output is the data. Sign in by asking for a link asPREVIEW_ADMIN_EMAIL.Migration
Two files, and only the first carries DDL. Nothing in the latest round adds a third:
custom,admin.hiddenand a retention window are all config, so a probepnpm db:migrations:create --skip-emptyon the current tree writes no file.src/migrations/20261021_152406_retention_registry.ts— both task-slug enums, and the finished job rows naming the three replaced slugs. No table, column, constraint or index is touched. The up deletes everypayload_jobsandpayload_jobs_logrow namingcleanupJobs,purgeSubmissionsorsweepEventImports, then recreates both enums with the label set the config declares. Without the delete, theUSING "task_slug"::enumcast rejects such a row and aborts the boot migration — those rows survive the deploy by up toJOB_RETENTION_DAYS(7), and nothing reads them. Same shape as20261019_182311_import_plugin.ts. Reversible: the down restores the previous member set and deletes thecleanupCollectionsrows for the mirrored reason.src/migrations/20261021_165805_merge_1010_main_snapshot.ts— snapshot only, empty up and down. Mergingmainput fix(app-cards): localize the destination discriminator beside its targets #1010's20261021_014535_localize_app_card_destinationbehind this branch's newer migration, so the newest-by-timestamp snapshot lacked the three localizedapp_cardsdestination columns andmigrate:createre-emitted all twelve of its statements. Every one already ships in fix(app-cards): localize the destination discriminator beside its targets #1010's own migration, which also backfills English between its two halves, so a replay would drop the base columns a second time with nothing to carry. Keeping the.json— generated on the merged tree — is what heals the chain (src/migrations/AGENTS.md, "The out-of-order snapshot trap"). A probemigrate:createafter it writes no files.Measured on Postgres in a rolled-back transaction, with the three legacy rows seeded: the cast without the delete aborts with
invalid input value for enum … "cleanupJobs", and the committed DDL applies in both directions.Test results
.claude/skills/pr-prep/check.sh— lint, typecheck, typecheck:tests, 225 unit files / 2895 cases, 101 s. Run on every commit of this round's series, not only the tip.pnpm format:check: ✓ (a CI gate since fix(build): pnpm generate:types rewrites payload-types.ts after prettier 3.9.10 #998)retention-jobs,retention-submissions,meditation-transcripts,payload-system-access,event-imports— 72 casesEach new assertion was watched failing against the defect it names: a collection with no window, the output's per-collection shape, a collection that throws not costing the rest their run, a run reporting a count per collection, an unknown collection refusing by name, the orphan dry run over-reporting, a
custom.retentioncarrying no windows being ignored, a failed collection reporting what it deleted before it threw,payload-jobscarrying the window its override puts there, and — this round — the transcript window with its parent clause removed (which would sweep every transcript, not only an orphan) and the Jobs UI with theadminoverride removed (hiddenis thentrue, not a function).Manual verification
Cleanup Collectionsfrom/admin/collections/payload-jobs/createwithdryRunticked, and confirm the output carries a count per collection and nothing is deleted.collection, and confirm only that collection is reported.dryRunand confirm each collection's rows go.payload-jobsis absent from the sidebar and its route 404s.Notes for reviewer
The two renamed int specs are the old
purge-submissionsandcleanup-jobsfiles:tests/int/retention-submissions.int.spec.tsandtests/int/retention-jobs.int.spec.ts. The ticket's verification checklist names the old paths.Every window is now declared inline in the config that owns it, as asked. The three
retention.tsfiles are gone.user-submissionshas no schema file of its own — the form-builder wrapper builds it — so its windows live there, beside thecustom.retentionthat declares them. Its four constants stay exported, because the invariants that make them safe to change are pinned without a database: a contact row must outlive the screening window, and no window may select a durable type. The three retention unit specs still run in 2.5 s with the plugin in their import graph.src/lib/retention/is gone too. The discovery and the cutoff were the job's own and moved intosrc/jobs/CleanupCollections/; only the type vocabulary is genuinely shared, and it is insrc/types/retention.ts, which is what that folder is for. Minimised on the way:RetentionEntrywent with the discovery, andRetentionRunnow hands a collection's hooks the resolvedWheres instead of the windows and a clock — so the orphan sweep no longer re-derives cutoffs the sweep had already computed, and the two halves of one run cannot read different clocks.lib-boundary.spec.tsno longer has anything to say about retention.meditation-transcriptssweeps an orphan after seven days, andRetentionExclusionis gone. Declaring nocustom.retentionalready says a collection is not swept, so the type, its export and the one declaration using it all went. ⚠ One thing is worth knowing about the window: it testsmeditation exists: false, which only the foreign key can produce, and it ages onupdatedAt— the last application write. A hard delete nulls the column in the database and bumps no timestamp, so an orphan last written over a week ago goes on the next sweep, and only a recently-written one waits out the rest of its week. That matches your "useless immediately after the parent is deleted" with a grace period for a transcript somebody is still working on. Both directions are asserted against a real hard delete inmeditation-transcripts.int.spec.ts, because no unit case can reach that state.Making the Jobs UI admin-only answers your question directly: yes, Payload supports it.
admin.hiddentakes{ user }, so the override narrows the gate rather than lifting it. Access was already admin-only on every operation (restrictPayloadSystemEntities), so nobody gains a permission here — only an admin gains the page their permission already allowed. ⚠accessPluginnever seespayload-jobs, so nothing composes project visibility over this the waycreateHiddendoes elsewhere.The
collectioninput is still free text. A field's options are fixed when the task is declared, and which collections carry retention is not known untilbuildConfighas run the plugins — so aselectcould only be a copy of the config. The guard answers a typo instead, and names what the config does declare. Say the word if you would rather have the dropdown back with a spec pinning its options against the booted config.The orphaned-user sweep stays in the
user-submissionshooks, as asked. The task is namedCleanupCollectionsafter review.Dismissed review findings, each with its reason:
Detail
payload-jobsis swept nightly rather than weekly, so six more deletes a week. The ticket decided this explicitly; a per-collection cadence would restore the per-task cron the refactor exists to remove. The window, not the cadence, bounds what goes.retries: 2now replays every collection, not one. A replayed collection with nothing due is adeletematching no rows, so the cost is queries, not work. Per-collection isolation means a single bad collection no longer stops the others reaching their turn.req. The job runner gives the handler areqwithtransactionID: undefinedand every operation opens its own transaction, so nothing holds a lock across collections. A partial sweep self-heals on the next run, as it already did between the submissions and users halves.deletedanddryRunin the output are derivable.dryRunmatchescleanupOrphanedMedia's own output schema, and without it the job row cannot be told from a quiet night;deletedis the number an operator reads first.fieldNamesin the discovery spec duplicates a local helper inlogin-plugin.spec.ts. No shared helper exists undertests/utils/, and adding one is not this PR's.Security review ran (the diff touches
src/payload.config.ts, asecurityReview.triggerPatternpath). Nothing reportable across the rounds: thecollectioninput reaches no query, being only the left-hand side of an equality against what the config declares, and only a collection the config declares reaches a delete; collection-levelcustomis one of Payload'sserverOnlyCollectionProperties, so thewhereclosures and the hooks factory never reach the browser (admin.custom, which does, carries nothing of retention's);jobsCollectionOverridesspreads the collection Payload built and addscustomandadmin.hiddenalone, so no field, hook or access rule changes; both migrations' SQL is static with no interpolation, and the second has no SQL at all; the orphan sweep's changed branch is the dry run, which deletes nothing, and the real path still gates on the unfiltered remaining count; no new PII or secret is logged.This round's own exposure is the
admin.hiddenchange, and it widens nothing:admin.hiddenis the admin panel's nav and routes, never an access boundary, and the collection'saccessalready denied every operation to everyone but an admin manager. A non-admin manager and an anonymous caller both readtruefrom the new function, which is what they got from Payload'strue. The transcript window'swherereaches onlymeditation-transcripts, selects on a null relationship and a timestamp, and deletes rows whose only remaining content is a transcript nothing can play./code-review highplus four cleanup lenses ran over the whole branch diff.comment-lint.mjsreports no banned comment added.Closes #987
🤖 Generated with Claude Code
https://claude.ai/code/session_013omVn6xbHvMg1aASCykUQn