Commit Graph

1524 Commits

Author SHA1 Message Date
aditya c6157745e7 test(actor): add step definitions for actor examples validation
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.
2026-02-18 09:36:14 +00:00
aditya 02466864ef test(actor): add comprehensive Behave scenarios for actor examples
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.
2026-02-18 08:52:08 +00:00
aditya 2b56b7f38b docs(actor): add comprehensive actor YAML examples documentation
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.
2026-02-18 08:44:56 +00:00
aditya af38a6bf75 docs(plan): mark actor YAML examples as complete in C1.examples checklist
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.
2026-02-18 06:41:18 +00:00
brent.edwards 52f74f3ddb Merge master into develop-20260217 2026-02-18 05:52:05 +00:00
freemo 2c8c6283f0 Fix: Minor linting issue 2026-02-18 00:18:12 -05:00
freemo 24b475dcec Docs: Normalized ADRs 2026-02-18 00:09:51 -05:00
freemo b587c3315f Docs: Resolved docs warnings 2026-02-18 00:09:50 -05:00
freemo 0c7bfb1ae9 Tests: Fixed lint error 2026-02-17 23:34:16 -05:00
freemo b2c3c08415 Tests: Fixed broken tests 2026-02-17 22:59:16 -05:00
brent.edwards 7f8cc7bf73 Merge branch 'master' into develop-20260217
# Conflicts:
#	docs/reference/database_schema.md
#	implementation_plan.md
#	src/cleveragents/infrastructure/database/models.py
#	src/cleveragents/infrastructure/database/repositories.py
2026-02-18 03:29:31 +00:00
brent.edwards f5e28d5196 Merge branch 'master' into develop-20260217 2026-02-18 03:28:32 +00:00
brent.edwards 24866b2244 Merge branch 'master' into develop-20260217 2026-02-18 03:27:00 +00:00
brent.edwards 629f286bd3 Merge branch 'feature/m3-skill-domain-robot' into develop-20260217 2026-02-18 02:45:31 +00:00
brent.edwards a2ec1ccc44 Merge branch 'feature/m3-tool-domain-robot' into develop-20260217 2026-02-18 02:45:27 +00:00
brent.edwards 0a7a8d15be Merge branch 'feature/m1-resource-db-robot-tests' into develop-20260217 2026-02-18 02:45:22 +00:00
brent.edwards 4e3150bd50 Merge branch 'feature/m3-session-domain-robot' into develop-20260217
# Conflicts:
#	implementation_plan.md
2026-02-18 02:45:08 +00:00
brent.edwards a9ee5fbc0e Merge branch 'feature/m3-session-persistence' into develop-20260217 2026-02-18 02:44:11 +00:00
brent.edwards 6f09f23d29 Merge branch 'feature/m1-persistence-tests' into develop-20260217
# Conflicts:
#	docs/development/testing.md
2026-02-18 02:43:58 +00:00
brent.edwards b6c1c72d43 Merge branch 'feature/m1-cli-tests' into develop-20260217 2026-02-18 02:43:05 +00:00
brent.edwards e6e8eecd1e Merge branch 'feature/m3-skill-cli' into develop-20260217 2026-02-18 02:42:56 +00:00
brent.edwards d476e45fba style(ruff-format): fix one unformatted file 2026-02-18 02:17:58 +00:00
freemo 77a0a95dc3 Tests: Added coverage to get us to 97% 2026-02-17 21:00:05 -05:00
freemo 4cda00abf6 Build: configured coverage report to run in parallal, removed cap on number of parallel processes, limited by number of cores of env variable 2026-02-17 21:00:02 -05:00
freemo 2a84341753 Docs: Updated implementation plan 2026-02-17 20:59:54 -05:00
freemo 79f91c51b1 Tests: ensuring tests have coverage and work. 2026-02-17 20:55:49 -05:00
freemo a4db605e1c feat(tool): add resource binding resolution 2026-02-17 20:55:46 -05:00
freemo a8558f13ca feat(cli): add project context commands 2026-02-17 20:55:43 -05:00
freemo 08639183e2 feat(resource): add DAG linking and discovery 2026-02-17 20:55:32 -05:00
brent.edwards 5ceca82e49 feat: merge branch 'master' into feature/m3-skill-domain-robot 2026-02-18 01:19:28 +00:00
freemo 3b005ddcd4 feat(service): resolve automation profiles with precedence 2026-02-17 20:18:18 -05:00
freemo 7e7d2e7727 feat(execute): add changeset model and change capture 2026-02-17 20:18:15 -05:00
freemo be4d32d550 feat(tool): add tool registry persistence 2026-02-17 20:18:04 -05:00
brent.edwards 4a200faf11 feat: merge branch 'master' into feature/m3-skill-cli 2026-02-18 01:08:52 +00:00
freemo 5480cd36fd feat(project): add context policy model 2026-02-17 20:07:38 -05:00
freemo 9464ec6285 feat(domain): add automation profile model and built-ins 2026-02-17 20:07:34 -05:00
freemo 093204a703 feat(resource): add fs-mount and fs-directory types 2026-02-17 20:07:31 -05:00
freemo 02d384d209 fix(lint): narrow docstring tables to 88-char line limit
Fix 25 E501 line-too-long violations in RST/markdown docstring tables
across resource.py, tool.py, models.py, and lifecycle.py. Also fix
invalid test expectation in project_commands_coverage.feature where
project list with no database was expected to abort but now succeeds
with an empty list after the redesign.
2026-02-17 20:07:26 -05:00
brent.edwards 3598924d6f test(cov): add skill CLI and service coverage scenarios
Add 19 behave scenarios covering uncovered paths in skill_service.py
and cli/commands/skill.py to bring coverage above the 97% threshold:
- show with includes, MCP servers, agent_skills, inline tools, Referenced By
- tools with mixed MCP/inline sources
- list with non-local namespaces
- remove without --yes (abort path)
- update with dependent skills (Affected Actors panel)
- service edge cases: skill_count, empty names, source filtering, no config_path
- add with missing-description YAML (validation failure)
2026-02-18 01:03:11 +00:00
brent.edwards 686c834602 feat: merge branch 'master' into feature/m3-tool-domain-robot 2026-02-17 17:02:27 -08:00
brent.edwards c985b3435e feat: merge branch 'master' into feature/m3-skill-schema 2026-02-18 00:46:23 +00:00
brent.edwards 066e3c248c feat: merge branch 'master' into feature/m3-session-persistence 2026-02-18 00:45:19 +00:00
brent.edwards b528cde8e7 feat: merge branch 'master' into feature/m1-persistence-tests 2026-02-18 00:43:28 +00:00
brent.edwards 60d10cef7c Merge branch 'master' into feature/m1-cli-tests 2026-02-18 00:42:19 +00:00
brent.edwards c8fa6f716d style(ruff-format): ruff format run
One file repaired.
2026-02-18 00:39:41 +00:00
brent.edwards 1fbc062b48 style(format): 1 file reformatted 2026-02-18 00:34:44 +00:00
freemo 740e08b2a4 Docs: Updated ADRs and specification to include details about standards 2026-02-17 19:31:27 -05:00
brent.edwards 8416962bea feat: merge branch 'master' into feature/m3-skill-schema 2026-02-18 00:31:14 +00:00
brent.edwards 9e9f229b3a fix(test): commit edge row so delete step sees it in its own session
The "Deleting a resource with edges is rejected" scenario was failing
because the ResourceEdgeModel row was flushed but never committed.
Since ResourceRepository.delete() obtains its own session from the
factory, the uncommitted edge was invisible and ResourceHasEdgesError
was never raised.
2026-02-18 00:28:29 +00:00
brent.edwards b1c011702f feat: merge branch 'master' into feature/m3-skill-domain-robot 2026-02-18 00:21:04 +00:00