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.
- audit
- Audit log infrastructure: writer, reader, reconciliation, worktree discovery. Audit log infrastructure: filesystem writer, event reader, reconciliation engine, worktree discovery, and stream watcher.
- backend_
auth - Backend server authentication setup and token resolution. Backend server authentication setup and token resolution.
- backend_
change_ repository - Backend-backed change repository adapter. Backend-backed change repository adapter.
- backend_
client - Backend API client factory, runtime, and coordination services. Backend API client factory and runtime.
- backend_
coordination - Backend coordination use-cases (claim, release, allocate, sync). Backend coordination use-cases for CLI commands.
- backend_
sync - Artifact synchronization (pull/push) for backend mode. Artifact synchronization service for backend mode.
- backend_
task_ repository - Backend-backed task repository adapter. Backend-backed task repository adapter.
- 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.
- event_
forwarder - Client-side forwarding of local audit events to the backend. Client-side forwarding of locally produced audit events to the backend.
- front_
matter - YAML front matter parsing, writing, and metadata utilities for artifacts. YAML front matter parsing, writing, and metadata utilities.
- fs_
project_ store - Filesystem-backed backend project store implementation.
Filesystem-backed
BackendProjectStoreimplementation. - git
- Git synchronization helpers for coordination workflows. Git synchronization helpers for coordination workflows.
- 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.
- installers
- Installers for project/home templates and harness assets.
- list
- List/query project entities (modules, changes, tasks). Listing helpers for modules, changes, and specs.
- module_
repository - Filesystem-backed module repository implementation. Filesystem-backed module repository implementation.
- 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.
- schemas
- Re-exported schema types from
ito_domain::schemas. - show
- Display and inspection commands. Convert Ito markdown artifacts into JSON-friendly structures.
- 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_
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. - token
- Cryptographic token generation for backend server authentication. Cryptographic token generation for backend server authentication.
- validate
- Validation utilities for on-disk state. Validate Ito repository artifacts.
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
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.
- Task
Item - A normalized task entry parsed from a tasks tracking file.
- Tasks
Parse Result - Output of parsing a
tasks.mdfile.
Enums§
- Backend
Error - Backend operation error category.
- Change
Target Resolution - Deterministic resolution result for a change target input.
- Domain
Error - Error type used by domain ports and domain utilities.
- 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
Project Store - Port for resolving
{org}/{repo}to project-level repositories. - Backend
Sync Client - Port for backend artifact synchronization operations.
- Backend
Task Reader - Port for backend-backed task reading.
- Change
Repository - Port for accessing change data.
- Domain
Task Repository - Port for accessing task data.
- Module
Repository - Port for accessing module data.
Functions§
- nearest_
matches - Return up to
maxcandidates closest toinput. - parse_
change_ id - Parse a change identifier.
- parse_
module_ id - Parse a module identifier.