Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.58 KB

File metadata and controls

54 lines (38 loc) · 1.58 KB

Execution Flow

End-to-end path

  1. receive a task from the CLI or shell
  2. resolve the requested, active, or default profile
  3. inspect the remote environment when enabled
  4. try to match a verified playbook
  5. fall back to provider planning only when needed
  6. classify the resulting commands with the risk engine
  7. build a plan review summary
  8. show commands, risks, changes, and rollback guidance
  9. request approval
  10. execute over SSH if approved
  11. capture stdout, stderr, exit codes, and timing
  12. summarize the outcome
  13. prepare a repair path when execution fails
  14. record task history, session events, and audit logs

Dry run

During --dry-run:

  • mutating execute and repair steps are skipped
  • inspect and verify steps may still run
  • skipped mutating steps are recorded explicitly

Trust behavior

KOMU does not hide dangerous commands behind a summary. Review happens before execution and remains visible even for provider-backed plans.

Standard plans use a normal approval prompt.

Elevated or destructive plans require typed confirmation.

Rollback behavior

Plans and playbooks can now carry rollback guidance.

Current rollback support is guidance-oriented:

  • some playbooks expose concrete rollback commands
  • some only expose manual recovery steps
  • some mark rollback as unavailable and explain why

Failure and repair

If execution fails, KOMU:

  • records the failing step
  • keeps stdout and stderr
  • summarizes the failure
  • prepares a repair attempt when a meaningful path exists
  • keeps the repair path visible and reviewed before any follow-up execution