β οΈ AI-Agent-Only RepositoryThis repo is planned, maintained, and managed exclusively by AI Agents. Slop issues, rough edges, and AI artifacts are expected and intentionally present as part of an HITL-less / minimized AI-DD metaproject focused on learning, refining, and brute-force training both the agents and the human operator. Bug reports and contributions are still welcome, but please expect AI-generated code, comments, and documentation throughout.
Work state: ACTIVE Β· Progress:
ββββββββββ 45%Rust task engine; scaffold-to-active, governance complete Β· updated 2026-06-02
Pinned references (Phenotype-org)
- MSRV: see rust-toolchain.toml
- cargo-deny config: see deny.toml
- cargo-audit: rustsec/audit-check@v2 weekly
- Branch protection: 1 reviewer required, no force-push
- Authority: phenotype-org-governance/SUPERSEDED.md
Universal task execution framework with scheduling, workflow orchestration, DAG support, and plugin system.
A comprehensive task execution engine with implementations in Rust and Python.
| Language | Directory | Description |
|---|---|---|
| Rust | src/ |
High-performance hexagonal architecture |
| Python | python/ |
Async task orchestration with dependency management |
- Task Scheduling: Cron, interval, one-shot, and delayed execution
- Workflow Orchestration: DAG-based workflows with parallel/sequential execution
- Plugin System: Extend task types and integrations via plugins
- Multiple Runners: Sync, async, background, and queue-based execution
- Observability: Built-in metrics, tracing, and structured logging
- Hexagonal Architecture: Clean separation of domain, application, and infrastructure
- Async/Await: Full async execution with asyncio
- Dependency Graph: DAG-based task dependencies
- Retry Logic: Exponential backoff with jitter
- Parallel Execution: Maximize resource utilization
- Distributed: Support for multi-node execution
- Observability: Tracing and metrics for all tasks
tasken/
βββ src/ # Rust implementation
β βββ domain/ # Core domain logic (pure)
β β βββ tasks/ # Task definitions and state machine
β β βββ workflows/ # Workflow and DAG definitions
β β βββ scheduler/ # Scheduling logic
β β βββ runners/ # Execution runners
β β βββ ports/ # Interface definitions
β β βββ errors/ # Domain errors
β βββ application/ # Application services
β β βββ commands/ # Command handlers
β β βββ queries/ # Query handlers
β βββ adapters/ # Infrastructure adapters
β β βββ primary/ # Primary adapters (CLI, API)
β β βββ secondary/ # Secondary adapters (storage, queue)
β β βββ plugins/ # Plugin system
β βββ infrastructure/ # Cross-cutting concerns
βββ python/ # Python implementation
β βββ task.py # Core task definitions
β βββ execute_task.py # Task execution engine
β βββ run.py # CLI entry point
β βββ ...
βββ tests/ # Integration tests
βββ examples/ # Usage examples
βββ benches/ # Benchmarks
[dependencies]
tasken = "0.1"use tasken::{Task, TaskRunner, SyncRunner};
let task = Task::new("hello")
.with_action(|| println!("Hello, Tasken!"))
.with_timeout(Duration::from_secs(30));
let runner = SyncRunner::new();
runner.execute(task)?;pip install taskenfrom tasken import Task, execute_task
async def main():
task = Task(name="hello", action=lambda: print("Hello, Tasken!"))
await execute_task(task)
asyncio.run(main())AgilePlus Integration: All work tracked in /repos/AgilePlus. Review CLAUDE.md for development policies and standards.
Quality Gates:
cargo test --workspace # Test suite (min 80% coverage)
cargo clippy --workspace -- -D warnings # Linting (zero warnings)
cargo fmt --check # Format validation
cargo doc --open # Documentation generationArchitecture Pattern: Tasken follows hexagonal (ports & adapters) architecture to maintain clean separation between domain logic, application services, and infrastructure concerns.
- Built-in Metrics: Task execution times, retry counts, and workflow DAG metrics
- Structured Logging: Full execution tracing for debugging distributed workflows
- Benchmarking: Dedicated
benches/directory for performance profiling
Tasken emits task and workflow lifecycle events through phenotype-event-bus where cross-repo event streaming is required. Agent-driven distribution and workflow-state integrations should be documented against their current owning crates and services rather than stale retired bus assumptions.
- Sidekick β Agent dispatch for task execution
- Stashly β State machines & event sourcing
- phenotype-shared β Shared utilities
- AgilePlus β Specification & planning
MIT OR Apache-2.0
Status: Active development
Maintained by: Phenotype Org
Last Updated: 2026-04-24
This repository includes the following cross-cutting documents:
AGENTS.mdβ operating instructions for AI agents and human contributorsSPEC.mdβ formal specification of behavior and contractsdocs/β design notes, ADRs, and supporting documentation (seedocs/index.md)
phenoForge build-orchestrator research and product intent is preserved under docs/history/archived-repos/phenoForge/. Tasken remains the canonical active task orchestration product; phenoForge material is historical input for build-runner, DAG, caching, plugin, and remote execution requirements.