fix(up): fail errored one-shot passes - #395
Merged
schickling merged 2 commits intoAug 31, 2026
Merged
Conversation
agent-identity: dev3.direct.omp.vjwqaz7t agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.0.11 agent-runtime: OMP 18.0.11 tooling-profile: dotfiles@000f2b3
agent-identity: dev3.direct.omp.vjwqaz7t agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.0.11 agent-runtime: OMP 18.0.11 tooling-profile: dotfiles@000f2b3
schickling-assistant
marked this pull request as ready for review
August 31, 2026 00:04
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.
Problem
st2 up --onceprinted reconciliation errors but exited 0 unless the pass was marked skipped. Automation could not distinguish a clean no-op from a failed pass.Goal
Make every one-shot entry path exit nonzero when its
UpReportcontains errors.Decisions
Keep reconciliation behavior unchanged. The CLI now treats the existing error report as a failed command after printing it.
Verification
CI=1 nix develop -c cargo test --test up_once_exit— 4 passedCI=1 nix develop -c cargo test --test hooks— 11 passednix flake check --print-build-logs --no-write-lock-file— passed all 16 Linux checksComplexity
No new complexity. Two existing one-shot return boundaries now enforce the same contract.
Concerns
None.
Friction & bottlenecks
Local Nix tracing emitted an ignored permissions warning. Validation itself passed.
Follow-ups
Whether one malformed declaration should block unrelated agents remains outside this exit-code fix.
References
Closes #195
Posted on behalf of @schickling
agent_identitysessionagent_personaagent_supervisoragent_toolagent_tool_versionagent_runtimetooling_profile