Skip to content

Comments

docs: add AgentRuntime abstraction RFC#2

Closed
dgarson wants to merge 5 commits intomainfrom
claude/write-rfc-proposal-Mk0Y2
Closed

docs: add AgentRuntime abstraction RFC#2
dgarson wants to merge 5 commits intomainfrom
claude/write-rfc-proposal-Mk0Y2

Conversation

@dgarson
Copy link
Owner

@dgarson dgarson commented Jan 29, 2026

Proposes a unified AgentRuntime interface to standardize agent execution across embedded Pi runtime and CLI providers. Includes:

  • Core interface definition with run/abort/isRunActive methods
  • Runtime registry for backend pluggability
  • Orchestration layer for centralized fallback and retry logic
  • Phased migration path from current architecture
  • Alternatives considered and consequences analysis

https://claude.ai/code/session_01MsBPZBLfx4j7NZgJCE6qsN

dgarson and others added 5 commits January 26, 2026 18:12
Proposes a unified AgentRuntime interface to standardize agent execution
across embedded Pi runtime and CLI providers. Includes:

- Core interface definition with run/abort/isRunActive methods
- Runtime registry for backend pluggability
- Orchestration layer for centralized fallback and retry logic
- Phased migration path from current architecture
- Alternatives considered and consequences analysis

https://claude.ai/code/session_01MsBPZBLfx4j7NZgJCE6qsN
Remove over-engineered elements:
- Registry (use direct imports)
- Orchestration layer extraction
- queueMessage steering
- Phases 3-4 (fallback refactor, event normalization)
- Detailed file organization

Focus on: interface definition, thin wrappers, parity with current behavior.

https://claude.ai/code/session_01MsBPZBLfx4j7NZgJCE6qsN
dgarson added a commit that referenced this pull request Feb 2, 2026
dgarson added a commit that referenced this pull request Feb 7, 2026
…#208)

* feat: added work-queue workflow workers and a worker manager, integrate w/cron

* fix: address 12 logic flaws in workflow engine, adapter, phases, and cron types

- engine: capture phase before clobbering in catch handler (#1)
- engine: remove dead `state.plan ?? plan` fallback (#2)
- engine: mark workflow failed when all execution nodes fail (#6)
- adapter: fix retry count off-by-one (attemptNumber vs retryCount) (#3)
- adapter: clean up abort listener in sleep on timeout (#10)
- discover: fix batch/entries index mismatch when spawns fail (#4)
- execute: add cycle detection to topological sort (#5)
- review: add autoApproved flag to distinguish fallback approvals (#7)
- plan: add comment clarifying sessionKey reuse across repair attempts (#8)
- decompose: remove unused model/maxPhases/maxTasksPerPhase/maxSubtasksPerTask opts (#9)
- types: add autoApproved to ReviewIteration (#7)
- cron/state: use discriminated union for CronEvent (CronJobEvent | CronHealthEvent) (#12)
- tests: add WorkflowWorkerAdapter test suite (8 tests) (#11)

https://claude.ai/code/session_01L8kquwpmUh5zmU9S4MHgPu

---------

Co-authored-by: Claude <[email protected]>
dgarson added a commit that referenced this pull request Feb 7, 2026
…cron types (openclaw#217)

- engine: capture phase before clobbering in catch handler (#1)
- engine: remove dead `state.plan ?? plan` fallback (#2)
- engine: mark workflow failed when all execution nodes fail (#6)
- adapter: fix retry count off-by-one (attemptNumber vs retryCount) (#3)
- adapter: clean up abort listener in sleep on timeout (#10)
- discover: fix batch/entries index mismatch when spawns fail (#4)
- execute: add cycle detection to topological sort (#5)
- review: add autoApproved flag to distinguish fallback approvals (#7)
- plan: add comment clarifying sessionKey reuse across repair attempts (#8)
- decompose: remove unused model/maxPhases/maxTasksPerPhase/maxSubtasksPerTask opts (#9)
- types: add autoApproved to ReviewIteration (#7)
- cron/state: use discriminated union for CronEvent (CronJobEvent | CronHealthEvent) (#12)
- tests: add WorkflowWorkerAdapter test suite (8 tests) (#11)

https://claude.ai/code/session_01L8kquwpmUh5zmU9S4MHgPu

Co-authored-by: Claude <[email protected]>
@dgarson
Copy link
Owner Author

dgarson commented Feb 7, 2026

Superseded by completed AgentRuntime/ExecutionKernel refactor (Phases 1-9 all merged).

@dgarson dgarson closed this Feb 7, 2026
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.

2 participants