Skip to content

Core State Management (core/state.py, core/parser.py) #2

Closed

Description

@maddes8cht

Priority: High
Dependencies: Issue #1
Description:
Implement the externalized state management system that tracks workflow execution and parses state updates from OpenCode output.
Requirements:
WorkflowState dataclass with fields: current_phase, iteration, is_complete, termination_reason, payload
JSON serialization/deserialization methods
StateParser class to extract state updates from LLM stdout
Support both XML-style (<state_update>...</state_update>) and markdown code block (```json) formats
Graceful handling of malformed output
Acceptance Criteria:
State can be serialized to JSON and deserialized back
Parser extracts valid JSON from XML tags
Parser extracts valid JSON from markdown code blocks
Parser returns None for malformed output (no crashes)

Activity

  1. added
    enhancement
    on Jul 18, 2026
  2. added a commit that references this issue on Jul 18, 2026
    bf151ad
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions