Add source-preserving agent retirement authoring - #114
Closed
myobie wants to merge 1 commit into
Closed
Conversation
Contributor
|
Superseded by the merged reversible desired-state model and source-preserving desired-state authoring. Posted on behalf of @schickling
|
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.
Outcome
Adds
st2 agent retire <host.identity>as an exact, source-preserving lifecycle authoring command.This PR is intentionally stacked on draft PR #112 because both commands share the new
agentauthoring surface. It should be retargeted tomainafter #112 lands.Contract
<host>.<identity>selector and refuses absent, ambiguous, malformed, or path-derived-only targetsretired #trueauthored/unchangedresults and always reports runtime retirement asnot-observed.retired, moves/deletes source, reconciles, launches, or claims teardownVerification
cargo test --workspace --all-targets -- --test-threads=1: passedcargo test --doc --workspace: passed-D warnings: passed with only the pre-existingeval_run::wait_donetoo-many-arguments lint allowedgit diff --check: passedThe live integration launches two independent exec tasks, authors retirement for one exact declaration, proves only that task tears down and GCs, proves the sibling PID remains unchanged, and proves the retired task never relaunches.
Closes #109