Skip to content

feat(ops): expose action execution status and logs #67

Description

@05F3759DF

Context

After Keystone creates action requests, operators need to understand whether a robot picked up the request, whether it is running, and why it succeeded or failed. Keystone should expose a bounded and sanitized execution history without leaking credentials.

Scope

  • Store action execution status updates from Axon Agent.
  • Represent states such as pending, queued, running, succeeded, failed, timed_out, expired, and cancelled.
  • Store bounded stdout/stderr snippets, exit code, error summary, started time, and finished time.
  • Sanitize or reject logs containing sensitive values such as tokens, passwords, keys, and certificates.
  • Expose APIs for action request detail and recent execution history per robot.

Acceptance Criteria

  • Operators can query current status and recent execution history for robot actions.
  • Status transitions are persisted with timestamps and request IDs.
  • Long output is truncated consistently.
  • Sensitive values are not exposed in API responses or UI-facing payloads.
  • Tests cover successful execution, failure, timeout, expired request, output truncation, and secret filtering.

Depends On

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:devicesRobot/device inventory, health, and lifecyclearea:opsOperations, recovery, incidents, and site workflowscross-repo:axonRequires coordination with archebase/axonenhancementNew feature or requestpriority:p1High priority for production operations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions