Implements general purpose AWM workers customized for arbitrary task execution.
Find a file
Your Name a2d4fbb3d1 Fix: Ensure artifact content is full, not summary only
- Update worker prompt to clarify content vs summary fields
- Add Skill-First Architecture components (SkillContainer, SkillPolicy)
- Add skill tool binding in worker crew
- Add policy filtering in builder
- Fix KnowledgeService empty query guards
- Add tests for KnowledgeService edge cases
- Add enable_retrieval flag to profiles
- Add skill artifact extraction in flow
2026-02-25 22:30:04 -08:00
chroma_tools Phase 2: Remove Planner and Knowledge from WorkerCrew 2026-02-21 12:30:08 -08:00
data PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
docs Fix: Ensure artifact content is full, not summary only 2026-02-25 22:30:04 -08:00
embeddings PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
knowledge_db PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
runs Phase 1: Worker Plan Generation (Foundation) 2026-02-21 12:22:44 -08:00
scripts Fix: Ensure artifact content is full, not summary only 2026-02-25 22:30:04 -08:00
src/awm_crewai_runner Fix: Ensure artifact content is full, not summary only 2026-02-25 22:30:04 -08:00
test_docs PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
tests Fix: Ensure artifact content is full, not summary only 2026-02-25 22:30:04 -08:00
.env.sample initial commit 2026-01-13 17:23:37 -08:00
.gitignore Add ignore rules for logs and temp data 2026-02-11 19:46:23 -08:00
apple_sentence_artifact Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
ARCHITECTURE.md Add Skills Paradigm milestone to architecture documentation 2026-02-16 16:41:11 -08:00
debug_registry.py initial commit 2026-01-13 17:23:37 -08:00
essay_draft Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
fix_all_tools.py initial commit 2026-01-13 17:23:37 -08:00
fix_registry.py initial commit 2026-01-13 17:23:37 -08:00
knowledge.db PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
MIGRATION_COMPLETE.md Add architecture and migration docs 2026-02-11 19:55:08 -08:00
orange_sentence_artifact Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
poetry.lock Add run_awm.py and update all dependencies to latest compatible versions 2026-02-12 17:11:19 -08:00
pyproject.toml Add run_awm.py and update all dependencies to latest compatible versions 2026-02-12 17:11:19 -08:00
pyproject.toml.bak PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
pytest.ini Update project metadata 2026-02-11 19:55:19 -08:00
README.md Update Flow runtime docs 2026-02-11 19:54:58 -08:00
research_analysis_summary Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
run_awm.py Add run_awm.py and update all dependencies to latest compatible versions 2026-02-12 17:11:19 -08:00
run_tests.py PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
sentence_about_apples Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
TEST_REFACTOR_PLAN.md Add architecture and migration docs 2026-02-11 19:55:08 -08:00
test_txt_file Remove unused meta knowledge tools 2026-02-18 22:41:27 -08:00
TESTING.md PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
tool_manager.py initial commit 2026-01-13 17:23:37 -08:00
TOOL_REGISTRY_FIXES_SUMMARY.md PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
tools.db PRE-NUCLEAR: Current state before profile system annihilation 2026-02-04 19:13:27 -08:00
uv.lock Update project metadata 2026-02-11 19:55:19 -08:00
verify_all_tools.py initial commit 2026-01-13 17:23:37 -08:00
verify_calc.py initial commit 2026-01-13 17:23:37 -08:00

AWM CrewAI Flow Runtime (v0.1)

A deterministic, polymorphic Flow-based runtime for AWM (Autonomous Workflow Model), using CrewAI only as an execution substrate. AWM remains authoritative for planning, regulation, and recursion.

This project implements the control plane for running complex tasks safely, recursively, and with configurable execution context (tools, RAG, specialists).

Core Concepts

AWMEnvelope (Immutable)

The canonical unit of work.

  • Intent
  • Constraints
  • Lineage (parent/child)
  • Depth tracking

The envelope is never mutated by agents.

Flow Runtime (Non-LLM)

The runtime is a Flow-driven controller, but not generative.

It:

  • Invokes AWM Planner for decomposition using CrewAI tasks
  • Routes execution through Flow steps (execute → review → route)
  • Manages recursion, retries, and limits
  • Selects execution profiles
  • Injects tools and RAG context

It never "reasons" — it routes.

ExecutionProfile (Polymorphism)

Defines how a task is executed, without changing what the task is.

Profiles may configure:

  • Crew composition
  • Agent role addenda
  • Tool exposure (including RAG)
  • Execution policies (strict, exploratory, etc.)

Profiles live above the envelope.

RAG Support

Two supported modes (profile-controlled):

  • Runner-managed: deterministic, auditable, read-only context
  • Tool-exposed: agent-invoked RAG with guardrails

RAG is execution context, not task memory.

Project Structure

src/awm_crewai_runner/
├── flow/              # Flow orchestration runtime
├── envelope.py        # AWMEnvelope definition
├── profiles.py        # ExecutionProfile system
├── rag.py             # RAG interfaces
├── llm.py             # LLM client abstraction (stubbed)
└── awm_assets/
    └── awm_v0_1/      # Embedded AWM prompts/assets

Key Changes from Original Design

Instead of distinct LLM agents, the implementation now uses CrewAI tasks coordinated by a Flow runtime:

  1. Planning Task: Decomposes the intent into executable steps
  2. Execution Task: Carries out the planned steps
  3. Review Task: Evaluates execution results for quality and compliance
  4. Routing Step: Determines retry, replan, or completion

This approach leverages CrewAI's Flow orchestration while maintaining the AWM's authority over planning and regulation.

Installation

pip install poetry
poetry install

Usage

from awm_crewai_runner import AWMEnvelope, STRICT_PROFILE, AWMFlow

# Create an envelope with your intent
envelope = AWMEnvelope(
    intent="Your task intent here",
    constraints=["constraint1", "constraint2"],
    lineage={},
    depth=0
)

# Create and run a flow
flow = AWMFlow(envelope=envelope, profile=STRICT_PROFILE)
state = await flow.run_workflow()
result = flow.get_results()

What v0.1 Provides

  • Deterministic Flow-based execution using CrewAI tasks
  • Explicit recursion and retry control
  • Polymorphic execution profiles
  • Clean RAG boundary
  • No hidden agent planning
  • No emergent behavior

What v0.1 Does Not Provide (Yet)

  • Concrete LLM backend implementation
  • Full CrewAI adapter layer with all features
  • Persistence or long-term memory

Design Guarantees

  • Intent integrity
  • Bounded recursion
  • Reproducibility
  • Auditability
  • Clear separation of planning vs execution

One-Sentence Summary

AWM defines the work. The flow governs execution. CrewAI executes tasks — nothing more.

AWM Documentation

For detailed information about the Autonomous Workflow Model (AWM) principles and architecture, see docs/awm_documentation.md.

For a visual representation of the AWM architecture, see docs/architecture_diagram.md.