feature/aditya-m3-actor-loader #118

Closed
aditya wants to merge 0 commits from feature/aditya-m3-actor-loader into master
Member
No description provided.
Update implementation_plan.md to reflect that 5 actor YAML example files
have been created under examples/actors/ during C1.schema implementation.

These examples were completed as part of C1.schema task.
Remaining work: documentation, test scenarios, integration tests, and benchmarks.
Create docs/reference/actors_examples.md with detailed examples covering:
- Simple LLM actors (code reviewers, assistants)
- Strategist actors (planning, decomposition)
- Executor actors (implementation, file operations)
- Reviewer actors (quality gates, standards compliance)
- Tool-only actors (reusable tool collections)
- Validation-node actors (linting, security scanning)
- Linear graph workflows (3-step review pipeline)
- Complex graph workflows (TDD with conditionals, retry logic)
- Hierarchical actor graphs (multi-level planning, subgraph composition)

Each example includes purpose, use cases, key features, and alignment
with CleverAgents specification. Documentation references existing
YAML files in examples/actors/ directory.
Create features/actor_examples.feature with 30+ test scenarios covering:
- All 5 example YAML files load and validate successfully
- Strategist actor pattern (planning, large context, read-only tools)
- Executor actor pattern (write-capable tools, implementation focus)
- Reviewer actor pattern (quality gates, linting tools)
- Tool-only actors (no LLM, pure tool collections)
- Validation-node actors (stateless validators, security scanning)
- Linear graph workflows (sequential 3-step pipelines)
- Complex graphs (conditionals, retry logic, tool nodes)
- Hierarchical graphs (subgraph invocation, parallel execution)
- Multi-level patterns (strategic → tactical → execution)
- Invalid example rejection (missing fields, cycles, bad names)
- Documentation completeness verification

Each scenario validates schema correctness, required fields, and
actor-specific patterns aligned with CleverAgents specification.
Create features/steps/actor_examples_steps.py with step implementations:
- Given steps for actor patterns (strategist/executor/reviewer/validator)
- When steps for schema validation from string and file
- Then steps for field validation and pattern verification
- Graph/route validation (nodes, edges, conditionals, subgraphs)
- Error assertions and documentation completeness checks

All steps use unique patterns to avoid AmbiguousStep conflicts.
Create robot/actor_examples.robot with 17 integration test cases:
- Validate all 5 example YAML files load successfully
- Verify actor patterns (strategist, tool-only, graph, hierarchical)
- Check documentation completeness and pattern coverage
- Test invalid example rejection scenarios

Create robot/helper_actor_examples.py with validation commands.
Uses ${PYTHON} and ${CURDIR} per Robot Framework standards.
- Measure file loading throughput for all 5 example YAML files
- Benchmark complex hierarchical graph parsing performance
- Fix ActorType import error in actor_schema_steps.py
- Simplify actor_examples_steps.py to remove duplicate steps
- Add missing Background step and actor validation steps
- Add llm_with_tools.yaml documentation section
- Rename conflicting Given step patterns with 'examples' suffix
- Add comprehensive Then steps for actor config validation
- Fix step patterns to include trailing colons for docstring steps

Test Results:
- 8 scenarios passing (up from 0)
- 138 steps passing (critical path tests working)
- 5 undefined steps remaining (minor edge cases)
- Basic actor example validation fully functional
- Add missing node descriptions in Behave test scenarios
- Fix context_view and parallel execution step definitions
- Update llm_with_tools.yaml max_context_tokens (10000 → 16000)
- Add context.error compatibility for error assertions

Results: Behave 25/25, Robot 16/16, ASV 7/7 all newly added tests passing.
docs(plan): update implementation_plan for completed C1.examples task
All checks were successful
CI / lint (pull_request) Successful in 15s
CI / typecheck (pull_request) Successful in 31s
CI / security (pull_request) Successful in 25s
CI / quality (pull_request) Successful in 16s
CI / integration_tests (pull_request) Successful in 4m6s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Successful in 18m21s
CI / docker (pull_request) Successful in 39s
CI / coverage (pull_request) Successful in 1h11m30s
7a670feed2
- Mark all C1.examples checklist items as complete with actual line counts
- Add comprehensive implementation notes section for C1.examples
- Document key decisions: pattern-based organization, test reuse strategy, parallel execution detection, error compatibility
- Add development log entry with commit list and test results
- Document bug fixes: max_context_tokens, missing descriptions, step conflicts

Checklist: 22/22 items complete (docs, tests, benchmarks, quality, git, PR)
Test Results: Behave 25/25, Robot 16/16, ASV 7/7 all passing
Merge branch 'master' into feature/m3-actor-schema-examples
All checks were successful
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 16s
CI / security (pull_request) Successful in 26s
CI / typecheck (pull_request) Successful in 27s
CI / integration_tests (pull_request) Successful in 3m16s
CI / unit_tests (pull_request) Successful in 4m7s
CI / docker (pull_request) Successful in 37s
CI / benchmark-regression (pull_request) Successful in 8m45s
CI / coverage (pull_request) Successful in 10m42s
CI / benchmark-publish (pull_request) Has been skipped
3ea2413b43
# Conflicts:
#	implementation_plan.md
docs(plan): mark C2.loader complete
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 13s
CI / build (pull_request) Successful in 14s
CI / quality (pull_request) Successful in 17s
CI / typecheck (pull_request) Successful in 28s
CI / security (pull_request) Successful in 39s
CI / integration_tests (pull_request) Successful in 3m15s
CI / unit_tests (pull_request) Successful in 4m24s
CI / docker (pull_request) Successful in 58s
CI / benchmark-regression (pull_request) Failing after 11m13s
CI / coverage (pull_request) Successful in 11m17s
436a4af6d7
aditya closed this pull request 2026-02-23 06:05:48 +00:00
freemo added this to the v3.1.0 milestone 2026-02-23 17:26:07 +00:00
Owner

Closes #294

Closes #294
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 13s
Required
Details
CI / build (pull_request) Successful in 14s
Required
Details
CI / quality (pull_request) Successful in 17s
Required
Details
CI / typecheck (pull_request) Successful in 28s
Required
Details
CI / security (pull_request) Successful in 39s
Required
Details
CI / integration_tests (pull_request) Successful in 3m15s
Required
Details
CI / unit_tests (pull_request) Successful in 4m24s
Required
Details
CI / docker (pull_request) Successful in 58s
Required
Details
CI / benchmark-regression (pull_request) Failing after 11m13s
CI / coverage (pull_request) Successful in 11m17s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core!118
No description provided.