Repository navigation
docs(ns8-module): no migrations in restore-module - #45
Open
DavidePrincipi wants to merge 2 commits into
Open
DavidePrincipi wants to merge 2 commits into
DavidePrincipi wants to merge 2 commits into
Conversation
A restore always runs the same module version that produced the backup, so restore-module steps never need to convert old settings or data. Migrations belong in update-module.d hooks, which run when the restored module is later updated. Agents kept adding such steps to cover "older backups". Assisted-by: Claude Code:claude-opus-5-5
The full rule, with its exceptions, now lives in the ns8-core developer manual. Keep only a short pointer in the skill, and use the same wording in SKILL.md and the reference. Assisted-by: Claude Code:claude-opus-5-5
DavidePrincipi
marked this pull request as ready for review
November 25, 2026 15:10
stephdl
reviewed
Nov 26, 2026
| - Non-zero exit from any action step or event handler step halts the remaining sequence. (`references/backend.md`) | ||
| - Starting only the pod's `<module>.service` does NOT start its children — list every service explicitly in `systemctl --user try-restart`. (`references/backend.md`) | ||
| - In `restore-module`, `50call-configure-module` must pass ALL vars restored by `06copyenv`, not just a subset — check `configure-module/validate-input.json`. (`references/backup-restore.md`) | ||
| - No data or settings migrations in `restore-module` (except Traefik): put them in `imageroot/update-module.d/`. (`references/backup-restore.md`) |
Contributor
There was a problem hiding this comment.
Could we say why here? Without it an agent may still add migrations just in case.
Suggested change
| - No data or settings migrations in `restore-module` (except Traefik): put them in `imageroot/update-module.d/`. (`references/backup-restore.md`) | |
| - A restore reinstalls the module version that made the backup, so `restore-module` needs no data or settings migrations (except Traefik): put them in `imageroot/update-module.d/`. (`references/backup-restore.md`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI agents working on NS8 modules sometimes add migration steps to the
restore-moduleaction, to convert settings or data from "an older backup". This is not needed: a restore installs the module version that made the backup, and migrations run later through theupdate-module.dhooks when the restored module is updated.The full rule, with its exceptions (Traefik, and images pulled from tags that can move), now lives in the ns8-core developer manual. This skill keeps only a short pointer to it, so agents stop proposing such steps. No behavior change.
references/backup-restore.md: short paragraph with a link to the manual sectionSKILL.md: one-line pointer in the "Always applies" listSee also
Generated by Claude Code:claude-opus-5-5 with nethserver-pr