Skip to content

fix(up): fail errored one-shot passes - #395

Merged
schickling merged 2 commits into
mainfrom
schickling-assistant/2026-08-30-fix-up-once-exit
Aug 31, 2026
Merged

fix(up): fail errored one-shot passes#395
schickling merged 2 commits into
mainfrom
schickling-assistant/2026-08-30-fix-up-once-exit

Conversation

@schickling-assistant

@schickling-assistant schickling-assistant commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Problem

st2 up --once printed 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 UpReport contains 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 passed
  • CI=1 nix develop -c cargo test --test hooks — 11 passed
  • nix flake check --print-build-logs --no-write-lock-file — passed all 16 Linux checks

Complexity

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
field value
agent_identity dev3.direct.omp.vjwqaz7t
session dev3.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
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
schickling-assistant marked this pull request as ready for review August 31, 2026 00:04
@schickling
schickling merged commit 023ef11 into main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

st2 up --once exits 0 after a pass that reconciled nothing

2 participants