Repository navigation
Retire legacy Goal pause metadata through backed-up upgrades - #8460
Closed
huangruiteng wants to merge 1 commit into
Closed
huangruiteng wants to merge 1 commit into
huangruiteng wants to merge 1 commit into
Conversation
Signed-off-by: huangruiteng <huangrt01@163.com>
Collaborator
Author
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.
A resumed Goal could still be blocked by legacy registry pause metadata that disagreed with
activation.state(#8431). The existing backup-first upgrade sweep now retiresstatus=paused/stoppedand storedactivation_statealiases before activating the candidate runtime. Normal registry reads and transactions reject those retired representations, and Resume writes only canonical activation.statusretains registration/archive meaning;activation_stateremains a derived response field for the existing UI. The TS upgrade decoder preserves a stop when historical representations disagree, matches source/projection by exact route and Goal lifetime, and leaves unrelated configuration intact. The existing Python lifecycle service composes the upgrade; the registry transaction owns verified preimage backups, locking, format/protocol validation and compensated writes. There is no new configuration mode or normal-path compatibility reader.The CLI/snapshot update path already invokes
authority-archive upgrade --all-known --execute. This change adds metadata to that existing step, with original-byte private backups before any registry commit, read-only preview/currentness checks, idempotent retry and rejection of changed source routes. A lifecycle-onlysource_session_v1execution pause remains rejected rather than being translated into newly runnable registration; this change does not activate that profile.Validation:
f5110d3437befedfbeb860982e6282bbbf75284f, passes at this head, and fails both cases when metadata execution is deliberately removed. The original bytes, unknown/nested metadata, large integers, canonical authority revision, Stop, stale confirmation and receipt replay are checked.8637173797eda47575ff716cd0d8f6fc0c630d5a: 6 direct checks and all 17 selected catalog/risk/boundary checks, with no failures or manual holds. The boundary check uses an isolated registry; this is not a claim about unrelated live Goal diagnostics. Installed desktop/release qualification and remote CI are separate from the isolated CLI/HTTP evidence. Retire legacy Goal pause metadata through backed-up upgrades #8431 remains open; this proposal supersedes its dual-pause reconciliation approach rather than depending on a second writer being retained.