Skip to content

Add Action Memory System #11

@trmxvibs

Description

@trmxvibs

Objective

Create an in-memory action history system for OpenOperator.

The system should record every action executed by the agent so that future components can inspect previous behavior.

This is the first step toward:

  • Execution history
  • Replay functionality
  • Audit logs
  • Self-correction
  • Autonomous workflows

Requirements

Create:

src/openoperator/core/action_memory.py

Models

ActionRecord

Fields:

  • step: int
  • action: str
  • status: str
  • timestamp: str

Memory Class

ActionMemory

Methods:

  • add_record(record)
  • get_records()
  • clear()

Requirements:

  • In-memory only
  • No database
  • No file storage
  • Python 3.11+
  • Pydantic v2 compatible
  • Fully typed
  • Contributor-friendly implementation

Acceptance Criteria

The following should work:

memory.add_record(...)
memory.get_records()
memory.clear()

Records must remain available during runtime until cleared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions