Repository navigation
feat(backup): restore chosen settings, plugins, libraries, collections and home sections - #3398
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (26)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e11852d0e3
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a62296658
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 865944794a
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f614f19f6b
ℹ️ 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".
There was a problem hiding this comment.
Actionable comments posted: 3

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5f01140e-da09-49c3-94eb-4b444282d79a
Files selected for processing: 102-
cmd/silo/backup_wiring.gocmd/silo/main.gocontracts/api/v2/breaking-approvals.jsoncontracts/api/v2/openapi.jsondocs/admin-tasks-api.mddocs/architecture/backups.mddocs/architecture/blob-storage.mddocs/backups-api.mdinternal/adminjob/backup_restore.gointernal/adminjob/backup_restore_test.gointernal/adminjob/repository.gointernal/adminjob/runner.gointernal/api/backup_restore_wiring.gointernal/api/handlers/admin.gointernal/api/handlers/admin_images.gointernal/api/handlers/libraries.gointernal/api/handlers/libraries_service.gointernal/api/handlers/library_collection_restore.gointernal/api/handlers/library_collections.gointernal/api/handlers/library_restored_test.gointernal/api/handlers/plugin_restore.gointernal/api/handlers/plugins.gointernal/api/router.gointernal/api/testdata/media_routes.txtinternal/apiv2/admin_backup_restore.gointernal/apiv2/admin_backups.gointernal/apiv2/admin_backups_test.gointernal/apiv2/admin_task_jobs.gointernal/apiv2/problem.gointernal/backup/doc.gointernal/backup/downloads.gointernal/backup/layout.gointernal/backup/listing.gointernal/backup/manifest.gointernal/backup/manifest_test.gointernal/backup/restore_settings.gointernal/backup/restore_settings_test.gointernal/backup/restoreset.gointernal/backup/restoreset_cache.gointernal/backup/restoreset_cache_test.gointernal/backup/restoreset_read.gointernal/backup/restoreset_read_test.gointernal/backup/restoreset_write.gointernal/backup/rotation.gointernal/backup/rotation_test.gointernal/backup/selective.gointernal/backup/selective_apply.gointernal/backup/selective_apply_test.gointernal/backup/selective_identity.gointernal/backup/selective_plan.gointernal/backup/selective_postgres_test.gointernal/backup/selective_sections.gointernal/backup/selective_templates.gointernal/backup/service.gointernal/backup/status_test.gointernal/backup/stored.gointernal/backup/userdata/userdata.gointernal/blobstore/exclusive.gointernal/blobstore/exclusive_test.gointernal/blobstore/filesystem.gointernal/catalog/artwork_selection.gointernal/catalog/encrypted_settings_repo.gointernal/catalog/folder_repo.gointernal/catalog/library_collection_group_repo.gointernal/catalog/library_collection_repo.gointernal/catalog/library_collection_service.gointernal/catalog/server_settings_repo.gointernal/config/admin_settings.gointernal/contractledger/ledger_test.gointernal/metadata/capability_metadata.gointernal/metadata/chain.gointernal/plugins/installation.gointernal/plugins/installer.gointernal/plugins/restore.gointernal/plugins/restore_test.gointernal/s3client/client.gointernal/sections/mutations.gomigrations/sql/20261031164741_backup_restore_active_job.sqlmigrations/sql/20261031173353_backup_restore_followups.sqlmigrations/sql/20261101030252_backup_restore_followup_collections.sqlscripts/ci/db-contracts.txtweb/src/App.tsxweb/src/api/v2/adminBackupRestore.tsweb/src/api/v2/adminBackups.tsweb/src/api/v2/operations.tsweb/src/api/v2/schema.tsweb/src/hooks/queries/admin/backupRestore.tsweb/src/hooks/queries/admin/backups.tsweb/src/pages/AdminBackupRestore.tsxweb/src/pages/AdminBackups.tsxweb/src/pages/admin-backups/BackupSettings.tsxweb/src/pages/admin-backups/BackupTable.tsxweb/src/pages/admin-backups/RestoreChoose.tsxweb/src/pages/admin-backups/RestoreReview.tsxweb/src/pages/admin-backups/RestoreRows.tsxweb/src/pages/admin-backups/RestoreRun.tsxweb/src/pages/admin-backups/backupPresentation.test.tsweb/src/pages/admin-backups/backupPresentation.tsweb/src/pages/admin-backups/restoreGroups.test.tsweb/src/pages/admin-backups/restoreGroups.tsweb/src/pages/admin-backups/restoreModel.test.tsweb/src/pages/admin-backups/restoreModel.ts
Files with no reviewable changes: 1-
- internal/backup/status_test.go
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 112edd24d9
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f7320b380
ℹ️ 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".
There was a problem hiding this comment.

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8c76844e-f8a4-4463-bfb7-629a6c9926b3
Files selected for processing: 8-
internal/api/backup_restore_wiring.gointernal/backup/selective.gointernal/backup/selective_apply.gointernal/backup/selective_postgres_test.gointernal/blobstore/filesystem.gointernal/sections/mutations.goweb/src/hooks/queries/admin/backupRestore.tsweb/src/pages/admin-backups/backupPresentation.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2eafd46ec8
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 500911a8ec
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b70adcc5b
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f0096925cc
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e2c34e7a3
ℹ️ 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".
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: d913dd1a68
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 2ca3e2c529
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 610eca30a0
ℹ️ 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".
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 610eca30a0
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: cd51410618
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d3f9ba29b
ℹ️ 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".
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 3d3f9ba29b
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
a1e3bc2 to
a88bc5a
Compare
4dd1d69 to
59908fa
Compare
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 1694f84404
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
a88bc5a to
e95fa0f
Compare
1694f84 to
d8bceb0
Compare
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: d8bceb0e1c
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
5985f25 to
d078884
Compare
…s and home sections Adds the selective restore: each backup carries a restore set, a versioned archive of settings, plugins, libraries, collections, home sections and templates, which the page previews against this server and restores item by item as an admin job under the backup lock. A restore from a backup this server cannot authenticate needs the admin's confirmation, turns off whatever would reach outside services or cost money until an admin turns it on, and reports each item's outcome. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The report read "Added 1 items to the collection here and put it back in 0 groups." It now names the items and the groups only when there were any, with the noun matching the count. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntil the report A collection in a restore set may list each item once: one that repeats an item is left out as unusable, so a crafted document cannot multiply the work its restore does under the lock. A selective restore removed its item outcome rows as soon as it read them back, before the job recorded its final report, so a crash in between lost every outcome but the latest. The rows now go in the statement that records the report: Complete, Fail, CancelWithResult, or stale recovery. Co-Authored-By: Claude Opus 5.5 <[email protected]>
page_sections.web_only keeps a featured row on the web app alone. The restore set left it out, so restoring a deleted web-only hero row brought it back on every client, and one whose switch was turned off since looked the same as the backup. Restore-set format 4 carries web_only in home-sections.json; a set of an earlier format reads it as false, the column's default, and one that claims an earlier format while holding it is refused. A restore writes it on a featured row when it creates or replaces a section, and the preview lists "web only" when it differs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fuse repeated section items Every enabled home section is fetched on each home page request, so a restore set this server cannot verify now brings every section back off, not just seasonal ones. A section's carried collection, like an admin collection, may not list an item twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
d8bceb0 to
cc385e7
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| if err != nil { | ||
| return fmt.Errorf("beginning fenced job transaction: %w", err) | ||
| } | ||
| defer func() { _ = tx.Rollback(context.WithoutCancel(ctx)) }() |
There was a problem hiding this comment.
Detached transaction rollback has no deadline
A stalled database connection can leave cleanup waiting indefinitely after the restore request is canceled. Bound the detached context passed to tx.Rollback with a fixed timeout.
Kody rule violation: Cancel blocking lifecycle work before waiting and bound detached cleanup
Prompt for LLM
File internal/adminjob/backup_restore.go, line 157:
Detached transaction rollback has no deadline
Bound the detached rollback context with a fixed timeout. Without a deadline, a stalled database connection can leave cleanup waiting indefinitely after the restore request has been canceled.
Kody rule violation: [Cancel blocking lifecycle work before waiting and bound detached cleanup](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/6bbefdf5-b173-4ab8-aadd-04b9c38df65e?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
Suggested code:
defer func() {
rollbackCtx, cancel := context.WithTimeout(context.WithoutCancel(ctx), 2*time.Second)
defer cancel()
_ = tx.Rollback(rollbackCtx)
}()
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| if !filepath.IsAbs(path) { | ||
| return errors.New("path must be absolute") | ||
| } | ||
| dir, err := os.Open(filepath.Clean(path)) |
There was a problem hiding this comment.
Library folder checks pass encoded paths directly to the OS
Encoded filenames may not match their on-disk byte representation, causing valid library folders to be rejected or the wrong path to be inspected. Open the canonical encoded path through the filesystem adapter instead of os.Open.
Kody rule violation: Respect encoded filesystem paths at every Go boundary
Prompt for LLM
File internal/api/backup_restore_wiring.go, line 137:
Library folder checks pass encoded paths directly to the OS
Open the canonical encoded path through the filesystem adapter rather than passing it directly to `os.Open`. Encoded filenames may not match their on-disk byte representation, so this check can reject a valid library folder or inspect the wrong path.
Kody rule violation: [Respect encoded filesystem paths at every Go boundary](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/5fabedc4-ec54-48d6-99a3-d23aab81d6bb?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc385e7b60
ℹ️ 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".
| key := fmt.Sprintf("%d/%t", installation.ID, trustVerified) | ||
| result := c.loads.DoChan(key, func() (any, error) { |
There was a problem hiding this comment.
Key in-flight archive loads by release identity
On a remote plugin host with a cold cache, a load overlapping a plugin upgrade or same-version replacement can join the previous release's in-flight load: the installer preserves Installation.ID, but this key includes neither the version nor the release's install path. The shared closure rehydrates only the first caller's installation and returns its manifest directly to both callers. Consequently, Ensure for the new release can report success with the old manifest while the new release's LocalInstallPath is still absent, causing plugin startup to fail. Include the release identity in the singleflight key so different releases cannot share a result.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: cc385e7b60
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
| // many memberships it grouped. | ||
| func restoreGroups(ctx context.Context, tx pgx.Tx, collectionID string, c CollectionEntry, libMap map[int]int) (int, error) { | ||
| grouped := 0 | ||
| for _, lib := range c.Libraries { |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Security: Reject duplicate collection memberships before restore
Requires backup-destination write access, an acting admin who accepts the unverified set, and selection of a crafted collection. Fresh evidence beyond the fixed duplicate-item finding is the separate libraries array: validation accepts duplicates, and 15,881 minimal copies fit one permitted 1 MiB entry. This loop calls groupFor and GroupUngroupedMembershipInTx for every copy, issuing tens of thousands of lock/query/update operations in one cancellation-detached transaction while the global backup lock is held. Reject duplicate library IDs and cap memberships before applying them.
Useful? React with 👍 / 👎.
Resolves the conflict with #3398 in internal/api/handlers/plugins.go by keeping both new PluginHandler fields. Stops before 0dc1cca, which leaves internal/jellycompat tests failing to compile on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
Related issue: #2313
Validation tasks: none
A full restore replaces everything. An admin who broke one settings page,
removed a plugin, or lost a set of collections has to roll the whole server
back, which discards every change made since. They also can't bring
configuration from one server to another. This lets an admin open a backup in
the browser, see what differs from the server as it is now, and restore only
the parts they pick.
Stacked on #3397.
Approach
snapshot as the dump. It holds versioned JSON documents for settings pages,
plugins (with their archives and settings), libraries, collections
(manual and starter-pack), and home sections, plus the files they reference.
Reading it is restricted to regular files, canonical paths, no duplicates,
bounded sizes and allowed key prefixes.
Home sections keep their web-only switch (restore-set format 4), so a
web-only hero row comes back web-only. A format 3 set without the field
still reads, with the switch off.
this server. Some items can't be restored, and the preview says why: a
missing folder, another server's key, a template this server doesn't have.
Settings use an allowlist, so settings specific to a server (identity,
public URL, storage, the push relay, the sign-in key, search, backups) are
never offered. A test makes every new setting choose a class.
and sections match by their backup id first, then by name with exactly one
candidate, and two backup items never claim the same item here.
restores item by item. Each item's transaction locks the job row through
commit, so a stalled worker can't write after the job is marked interrupted.
Restored plugins are installed disabled and enabled only after their
settings pass validation. Files are created only if absent, so a restore
never overwrites a live file. Setup that runs after commit, such as a new
library's first scan and provider chain or a new collection's sync, is
recorded in the same transaction and retried until it succeeds. Running the
same restore twice changes nothing.
sections with nothing to restore collapsed to one line, grouping by library
and a filter for large sections, and a report per item.
Validation
go vet, and changed-line golangci-lint against the previous pull request: pass.verify-apiv2-openapi,-web-types,-fixtures,-contract(additive only),verify-migrations,verify-migration-ledger,verify-size-ratchet,verify-local-paths,verify-settings-bindings: pass.tsc -b, eslint and prettier on changed files, and vitest: pass.verify-route-inventory: pass.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3398/
Risks
table, and a table of per-item outcomes a running restore writes (its
rows move into the job's result when the restore ends). Only additive.
CreateExclusive(S3If-None-Match).Selective restore refuses stores that can't create atomically; other writes
are unchanged. Catalog, settings, plugin and sections write paths gain
variants that take the caller's transaction; the existing paths behave as
before.
by digest.
most 200 MDBList lists and takes the rest on later runs, on every server,
not just restored ones. A restore writes at most 50 seasonal sections, and
those from a backup this server can't verify come back disabled.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add selective restore of settings, plugins, libraries, collections and home sections
restore-set.tarobject (format v4): a versioned JSON archive with sections for settings, plugins, libraries, collections, and home sections, plus referenced blobs. See restoreset.go and restoreset_write.go.backup_restoreadmin job (backup_restore.go) holding the subsystem lock for the whole run. It takes abefore-restorebackup first, applies selected items in fenced transactions, and reports per-item outcomes.backup_restore_followupsandbackup_restore_itemstables and retried after failures.ExclusiveCreatorin exclusive.go) cannot restore blobs.Macroscope summarized cc385e7.