feat(create_executor): implement create_executor() factory and Executor.execute() returning ActorResult #38
No reviewers
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#13 feat(create_executor): implement create_executor() factory and Executor.execute() returning ActorResult
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core!38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/create-executor-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement the router-facing
create_executor()factory function andExecutorclass with asyncexecute()method returningActorResult.What This PR Does
Production Code
src/cleveractors/runtime.py—create_executor()factory,Executorclass,ActorResult/NodeUsagedataclasses (~183 lines)src/cleveractors/runtime_dispatch.py— Four dispatch methods:_execute_llm,_execute_graph,_execute_tool,_execute_multi_actor(~420 lines)src/cleveractors/runtime_tokens.py— Token estimation via tiktoken with heuristic fallback,lru_cacheon encoding lookup,_EncodingProtocol for return typingAgentFactory(credentials=...)— storedconfig_dictnever modified (ADR-2026 AC8)_usage_log.clear()at start ofexecute()for AC5 compliance; direct assertion in testscopy.deepcopy()used in both_execute_graphand_execute_multi_actorCONTRIBUTING.md)WARNINGlevel for agent cleanup failuresQuality Gates
nox -e lint— passesnox -e typecheck— passes (0 errors)nox -e unit_tests— 112 features, 2049 scenarios passnox -e integration_tests— 76 tests passnox -e coverage_report— >= 97%nox -e security_scan— 0 findingsnox -e dead_code— passesCode Review Fixes (Cycle 6)
isinstance(message, str)guard at top ofExecutor.execute()with BDD scenario incredential_executor_validation.featurecontext.credentialsdirect access togetattr(context, "credentials", None)for consistency with limits/pricing guardsruntime_coverage.featurefor_execute_graphwithroute.nodes = []Executor.__init__sub_config.copy()tocopy.deepcopy(sub_config)in_execute_multi_actorfor nested-dict safetycreate_executor(credentials=None)standalone mode_get_encoding.cache_clear()toenvironment.pybefore_scenariofor defensive test isolationruntime_tokens.pyruntime_dispatch.py(PEP 563 makes them unnecessary)_execute_graph_execute_graphcredential_graph_cleanup_steps.pyfinallyblock explaining dual cleanup rationaleCloses #13
05cb9beb048921a0e9bf8921a0e9bf68c3fb7f9d68c3fb7f9df6ce512fb5f6ce512fb5ff2658e55eff2658e55ec623054253c623054253362b30bae0View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.