application_agents_rustant - lgcorzo/rust_CACD_autonomous_factory GitHub Wiki


iso_doc_type: "Specification" iso_viewpoint: "ComponentView" type: "module" title: "factory-application::agents::rustant โ€” RustantAgent (Planner)" source_path: "crates/factory-application/src/agents/rustant.rs" description: "ISO 42010 ComponentView / ISO 15289 Specification documentation for factory-application::agents::rustant โ€” RustantAgent (Planner)." tags: ['iso42010', 'okf', 'component_view', 'rust', 'ast'] timestamp: "2026-10-01T14:00:00Z" generated: "agent:okf-professional-documenter" verified: "true" last_verified_commit: "fbdc5848"

factory-application::agents::rustant โ€” RustantAgent (Planner)

Source: crates/factory-application/src/agents/rustant.rs Layer: Application


Behavioral Specification

Attribute Value
Role Strategic mission planner โ€” decomposes goals into SDD task sequences
DAG Phase Phase 2 (Plan), Phase 5 (Review)
MCP Tools plan_mission, retrieve_context, security_review, search_jira

Planning Sequence Diagram

sequenceDiagram
    participant Hatchet as Hatchet DAG
    participant Rustant as RustantAgent
    participant R2R as R2R GraphRAG
    participant MCP as MCP Server
    participant LLM as LiteLLM

    Hatchet->>Rustant: Phase 2: Plan mission
    Rustant->>R2R: retrieve_context(goal, codebase)
    R2R-->>Rustant: Relevant code chunks + docs
    Rustant->>MCP: plan_mission(context + goal)
    MCP->>LLM: Chat completion (planner model)
    LLM-->>MCP: SDD sequence output
    MCP-->>Rustant: Raw plan text

    Rustant->>Rustant: parse_sdd_tasks(content)
    Note right of Rustant: Extract task IDs,<br/>descriptions, files,<br/>dependencies, parallel flags

    Rustant-->>Hatchet: SddMissionPlan
Loading

SDD 6-Phase Sequence

Step Spec-Kit Command Output
1 speckit init .specify/ directory
2 speckit specify spec.md
3 speckit plan plan.md
4 speckit tasks tasks.md
5 speckit implement Code changes
6 speckit git-commit Git commit

Related: agents/mod.rs ยท ZeroClawAgent

โš ๏ธ **GitHub.com Fallback** โš ๏ธ