Skip to content

feat(runtime): workflows, checkpoints and multi-agent orchestrations … - #110

Merged
quantum-osiris merged 1 commit into
mainfrom
feat/runtime-workflows
Dec 5, 2026
Merged

quantum-osiris merged 1 commit into
mainfrom
feat/runtime-workflows

Conversation

@quantum-osiris

Copy link
Copy Markdown
Owner

…(Phase 2)

Phase 2 of re-engineering microsoft/agent-framework@567e4d4 (MIT) into osiris_cli.runtime. See osiris_cli/runtime/PORT_MAP.md.

  • _workflows.py: executors with typed handlers; direct, conditional, fan-out, fan-in and switch-case edges; superstep runner with results applied in registration order (deterministic); request_info pauses a run and run(responses=...) continues it, with exact response types; streaming; run_sync that works inside a running loop; optional run governance (workflow task in the canonical task ledger, intent gate, one budget step per superstep, evidence firewall on text outputs).
  • _checkpoints.py: checkpoint after each superstep; in-memory or hash-chained JSONL file storage; resume from any checkpoint; graph- signature check. No pickle: only JSON and registered types are written or rebuilt; tampered files are refused.
  • _orchestrations.py: AgentExecutor; Sequential, Concurrent, Group chat (code selector), Handoff (declared routes, checked again by code), Magentic (strict progress-ledger parsing, stalls, resets, no final answer on a limit). Governed by default, as Agent is.
  • orchestration/council.py and trio.py run as workflows with unchanged signatures, results and receipts; their test files are unchanged. 27 recorded scenarios give identical results to main apart from timestamped receipt hashes.
  • Agent.clone(); task_context.KINDS gains "workflow".

Tests: test_runtime_workflows.py (20), test_runtime_orchestrations.py (11), test_council_trio_workflows.py (4). Full suite here: 3 failed (the same 3 as main in this environment), 3725 passed, 76 skipped.

Claude-Session: https://claude.ai/code/session_01FYXiwQpjjWVfi7MNQgjVHJ

…(Phase 2)

Phase 2 of re-engineering microsoft/agent-framework@567e4d4 (MIT) into
osiris_cli.runtime. See osiris_cli/runtime/PORT_MAP.md.

- _workflows.py: executors with typed handlers; direct, conditional,
  fan-out, fan-in and switch-case edges; superstep runner with results
  applied in registration order (deterministic); request_info pauses a
  run and run(responses=...) continues it, with exact response types;
  streaming; run_sync that works inside a running loop; optional run
  governance (workflow task in the canonical task ledger, intent gate,
  one budget step per superstep, evidence firewall on text outputs).
- _checkpoints.py: checkpoint after each superstep; in-memory or
  hash-chained JSONL file storage; resume from any checkpoint; graph-
  signature check. No pickle: only JSON and registered types are
  written or rebuilt; tampered files are refused.
- _orchestrations.py: AgentExecutor; Sequential, Concurrent, Group chat
  (code selector), Handoff (declared routes, checked again by code),
  Magentic (strict progress-ledger parsing, stalls, resets, no final
  answer on a limit). Governed by default, as Agent is.
- orchestration/council.py and trio.py run as workflows with unchanged
  signatures, results and receipts; their test files are unchanged.
  27 recorded scenarios give identical results to main apart from
  timestamped receipt hashes.
- Agent.clone(); task_context.KINDS gains "workflow".

Tests: test_runtime_workflows.py (20), test_runtime_orchestrations.py
(11), test_council_trio_workflows.py (4). Full suite here: 3 failed
(the same 3 as main in this environment), 3725 passed, 76 skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FYXiwQpjjWVfi7MNQgjVHJ
@vercel

vercel Bot commented Dec 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-ui Ready Ready Preview Dec 5, 2026 10:30pm UTC

@quantum-osiris
quantum-osiris merged commit 7d09cc8 into main Dec 5, 2026
18 checks passed
@quantum-osiris
quantum-osiris deleted the feat/runtime-workflows branch December 5, 2026 22:41
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