Expand description
Core Ito application behavior.
ito-core implements the main orchestration logic behind the CLI: reading and
writing Ito state on disk, running workflows, validating inputs, and
delegating to installers and harness integrations.
This crate is intentionally “policy heavy” but “UI light”: it defines the core semantics of commands without owning the CLI argument surface.
Modules§
- archive
- Archive completed changes and update specifications. Archive completed changes.
- artifact_
mutations - Active change artifact mutation services for runtime-selected persistence. Active change artifact mutation services.
- audit
- Audit log infrastructure: writer, reader, reconciliation, worktree discovery. Audit log infrastructure: filesystem writer, event reader, reconciliation engine, worktree discovery, and stream watcher.
- capabilities
- Compile-time capability reporting and configuration preflight. Compile-time capability reporting and configuration preflight.
- change_
repository - Filesystem-backed change repository implementation. Filesystem-backed implementation of the domain change repository port.
- config
- JSON configuration file CRUD operations. JSON configuration file CRUD operations.
- create
- Create new modules/changes and initial scaffolding. Creation helpers for modules and changes.
- distribution
- Distribution/build metadata helpers. Embedded asset distribution helpers.
- domain
- Re-exported domain modules
- errors
- Core-layer error types and result alias. Core-layer error types.
- front_
matter - YAML front matter parsing, writing, and metadata utilities for artifacts. YAML front matter parsing, writing, and metadata utilities.
- git_
remote - Git remote URL resolution for org/repo namespace discovery. Git remote URL resolution for org/repo namespace discovery.
- grep
- Grep-style search over Ito change artifacts using ripgrep crates. Grep-style search over Ito change artifacts.
- harness
- Harness integrations for running AI-assisted workflows. Harness integrations for running AI-assisted workflows.
- harness_
context - Infer Ito change/module target context for harness sessions. Harness context inference helpers.
- implementation_
readiness - Main-first proposal authority and implementation readiness evaluation. Main-first proposal authority and implementation readiness evaluation.
- installers
- Installers for project/home templates and harness assets.
- legacy_
coordination - Read-only inspection of repositories using legacy coordination storage. Side-effect-free inspection of legacy coordination-worktree state.
- list
- List/query project entities (modules, changes, tasks). Listing helpers for modules, changes, and specs.
- memory
- Agent memory provider resolution and instruction rendering. Agent memory provider resolution and instruction rendering.
- module_
repository - Filesystem-backed module repository implementation. Filesystem-backed module repository implementation.
- orchestrate
- Orchestrator configuration helpers (user prompt + presets). Orchestrator configuration and shared helpers.
- paths
- Re-exported path utilities from
ito_common::paths. - planning_
init - Planning directory initialization (filesystem I/O). Planning directory initialization.
- process
- Process execution boundary and default runner. Process execution boundary for core-side command invocation.
- ralph
- Ralph Wiggum loop support. Ralph Wiggum iterative development loop.
- repo_
index - Indexing helpers for repository contents. Precomputed index of an Ito repository.
- repo_
paths - Resolve repository and worktree path roots. Repository and worktree path resolution.
- repository_
runtime - Repository runtime selection and composition. Repository runtime selection and composition.
- schemas
- Re-exported schema types from
ito_domain::schemas. - show
- Display and inspection commands. Convert Ito markdown artifacts into JSON-friendly structures.
- spec_
repository - Filesystem-backed promoted spec repository implementation. Filesystem-backed promoted spec repository.
- sqlite_
project_ store - SQLite-backed backend project store proof-of-concept.
SQLite-backed
BackendProjectStoreproof-of-concept implementation. - stats
- Statistics collection and computation for command usage. Statistics collection and computation for Ito command usage.
- task_
mutations - Task mutation services for filesystem and backend persistence. Task mutation services for filesystem-backed persistence.
- task_
repository - Filesystem-backed task repository implementation. Filesystem-backed task repository implementation.
- tasks
- Task-focused orchestration use-cases. Task-oriented orchestration use-cases for adapters.
- templates
- Schema templates execution and planning. Schema/template helpers for change artifacts.
- time
- Clock helpers (
now_time,now_date). Clock helpers for the application layer. - trace
- Requirement traceability computation for the
ito tracecommand. Core orchestration for theito tracecommand. - validate
- Validation utilities for on-disk state. Validate Ito repository artifacts.
- validate_
repo - Repository-level validation rules driven by
ito_config::types::ItoConfig. Repository-level validation rules driven byito_config::types::ItoConfig. - viewer
- Proposal viewer artifact collection and backend dispatch. Proposal viewer support.
- worktree_
ensure - Change worktree ensure: verify or create the correct worktree for a change. Change worktree ensure: verify or create the correct worktree for a change.
- worktree_
init - Change worktree initialization: file copy-over and include-pattern resolution. Change worktree initialization: file copy-over, setup command execution, and include-pattern resolution.
- worktree_
validate - Read-only validation of whether the current checkout matches an expected change worktree. Read-only validation of whether the current checkout matches an expected change worktree.
Structs§
- Allocate
Result - Result of an allocation operation.
- Archive
Result - Result of marking a change as archived on the backend.
- Artifact
Bundle - An artifact bundle pulled from the backend for a single change.
- Change
- Full change with all artifacts loaded.
- Change
Artifact Mutation Result - Result of mutating a change artifact.
- Change
Artifact Ref - Reference to a mutable artifact within an active change.
- Change
Summary - Lightweight change summary for listings.
- Claim
Result - Result of a successful change lease claim.
- Event
Batch - A batch of audit events to send to the backend.
- Event
Ingest Result - Result of a successful event ingest operation.
- Lease
Conflict - Conflict detail when a lease claim fails because another holder owns it.
- Module
- Full module with metadata loaded.
- Module
Summary - Lightweight module summary for listings.
- Progress
Info - Summary counts computed from the parsed tasks.
- Push
Result - Result of a push operation.
- Release
Result - Result of a lease release operation.
- Revision
Conflict - Conflict detail when a push fails due to a stale revision.
- Spec
Document - Full promoted spec document.
- Spec
Summary - Lightweight promoted spec summary.
- Task
Init Result - Outcome of initializing task tracking.
- Task
Item - A normalized task entry parsed from a tasks tracking file.
- Task
Mutation Result - Outcome of a task mutation.
- Tasks
Parse Result - Output of parsing a
tasks.mdfile.
Enums§
- Backend
Error - Backend operation error category.
- Change
Artifact Kind - A mutable artifact within an active change.
- Change
Artifact Mutation Error - Error type for change artifact mutation ports.
- Change
Lifecycle Filter - Lifecycle filter for change repository queries.
- Change
Target Resolution - Deterministic resolution result for a change target input.
- Domain
Error - Error type used by domain ports and domain utilities.
- Task
Kind - Task classification.
- Task
Mutation Error - Error type for task mutation ports.
- Task
Status - Status values supported by Ito task tracking.
- Tasks
Format - The detected format of a
tasks.mdfile.
Traits§
- Backend
Archive Client - Port for backend archive lifecycle operations.
- Backend
Change Reader - Port for backend-backed change listing (read path).
- Backend
Event Ingest Client - Port for backend event ingestion.
- Backend
Lease Client - Port for backend lease operations (claim, release, allocate).
- Backend
Module Reader - Port for backend-backed module listing.
- Backend
Project Store - Port for resolving
{org}/{repo}to project-level repositories. - Backend
Spec Reader - Port for backend-backed promoted spec reading.
- Backend
Sync Client - Port for backend artifact synchronization operations.
- Backend
Task Reader - Port for backend-backed task reading.
- Change
Artifact Mutation Service - Port for active-change artifact mutations.
- Change
Repository - Port for accessing change data.
- Domain
Task Repository - Port for accessing task data.
- Module
Repository - Port for accessing module data.
- Spec
Repository - Port for accessing promoted spec data.
- Task
Mutation Service - Port for task mutations and raw markdown access.
Functions§
- nearest_
matches - Return up to
maxcandidates closest toinput. - parse_
change_ id - Parse a change identifier.
- parse_
module_ id - Parse a module identifier.
Type Aliases§
- Change
Artifact Mutation Service Result - Result alias for change artifact mutation operations.
- Task
Mutation Service Result - Result alias for task mutation operations.