Skip to content

Say whether an operation succeeded, failed or is unknown - #336

Merged
athNdev merged 1 commit into
mainfrom
feat/operation-diagnostics
Nov 4, 2026
Merged

athNdev merged 1 commit into
mainfrom
feat/operation-diagnostics

Conversation

@athNdev

@athNdev athNdev commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Part of OSS-245.

operation.Describe projects a durable journal row into exactly one of three outcomes — success, failed, unknown — plus a stable next action:

Phase Outcome Next action
complete success none
failed failed retry with a new request id (the same key is refused)
executing unknown resolve the operation after observing the container
prepared unknown wait
anything else unknown contact operator
  • An uncertain outcome is never folded into success or failure: the external effect may or may not have happened, and that is the distinction the journal exists for.
  • Credentials in recorded error text are redacted (scheme://user:pass@ and inline bearer/basic tokens). Hosts, paths and daemon messages are kept — they are the evidence.
  • The support bundle now carries operations.json: a summary by outcome plus the projection of every row, so a stuck server can be explained without privileged Docker socket access.

Tests: phase→outcome/action table, redaction (including that the evidence survives), and two bundle tests that assert operations.json records an executing row as unknown and a credential never reaches the bundle.

operation.Describe projects a journal row into one of three outcomes and a
stable next action: retry with a new request id after a failure, resolve an
attempt that started but never finished, wait while it can still finish. An
unknown outcome is never folded into success or failure.

Credentials in recorded error text are redacted; hosts, paths and daemon
messages stay. The support bundle now carries operations.json with that
projection, so a stuck server can be explained without the Docker socket.

Refs OSS-245
@athNdev
athNdev merged commit d30337d into main Nov 4, 2026
11 checks passed
@athNdev
athNdev deleted the feat/operation-diagnostics branch November 4, 2026 02:10
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.

1 participant