Skip to content
bondiano edited this page Nov 12, 2026 · 1 revision

Workspace crates

Active contributors: Vassiliy, Eduard, bondiano

Purpose

The five packages in Cargo.toml separate domain decisions, external integrations, durable state, application orchestration and repository style checks. Start with the package that owns the boundary you need to change, then follow its linked feature page for the workflow.

Package map

Package Owns Documentation
sych-core Domain documents, pure planning/reduction, model and source ports, configuration contracts Core
sych-adapters Git, tools, fact collection, model transports, GitHub and notification integrations Adapters
sych-storage Database lifecycle, run/artifact pointers, cost ledger, jobs, publication and read models Storage
sych-app sych binary, commands, review services, Axum API and workers CLI, Server
sych-style AST-aware house-style checker and fixer Style

These are Cargo packages, not five separate deployments. crates/sych-app/Cargo.toml declares the sych executable at crates/sych-app/bin/sych.rs; its server commands run combined or split API/worker roles. There is deliberately no second sych-app crate page.

Dependency direction

graph TD
    App["sych-app"] --> Core["sych-core"]
    App --> Adapters["sych-adapters"]
    App --> Storage["sych-storage"]
    Adapters --> Core
    Storage --> Core
    Checks["just lint / style-fix"] --> Style["sych-style"]
Loading

The package manifests enforce this direction: core imports no sibling package, adapters and storage depend on core, and app composes all three. Style’s non-development dependencies are only syn and proc-macro2; it is invoked by justfile, not by the running reviewer.

Cargo.toml shares version 0.2.0, Rust 2024, minimum Rust 1.94, Apache-2.0 licensing and publish = false across the packages. The workspace also forbids unsafe Rust and denies ignored must-use values.

Where a change belongs

Change Start here
Document field, identifier, status, policy or evidence contract crates/sych-core/src/lib.rs; regenerate schemas with just schemas
Review planning, assessment contract or reduction Review, then core and app analysis modules
Git reading, a language/parser/linter or imported CI format Facts, then adapters
Provider transport or model-routing contract Models, then adapters or core respectively
Persistent lifecycle, transaction, migration or retention Storage and both backend migration directories
Command, output format or server orchestration CLI or server pages
Repository-only Rust formatting rule Style, not the reviewer’s lint adapter

Key source files

File Why read it
Cargo.toml Workspace members, shared dependencies and lint policy
crates/sych-core/Cargo.toml Dependency boundary of the pure domain package
crates/sych-adapters/Cargo.toml Parser, process, HTTP and tool dependencies
crates/sych-storage/Cargo.toml SQLx and core integration
crates/sych-app/src/lib.rs Command and service exports
crates/sych-app/bin/sych.rs Executable dispatch
crates/sych-style/Cargo.toml Independent development-tool package
justfile Workspace checks and schema/style commands

Scope and maintenance snapshot

At documented revision 00dc7637f89a47ee6fd4713204f8331418428370, crates/ has 419 tracked files, including 400 Rust files: 289 outside tests/ and 111 in integration-test/support directories. 184/400 (46.0%) contain a #[test] or #[tokio::test…] attribute. This test-bearing-file ratio includes inline unit tests; it is not line coverage and test helpers without an attribute do not enter the numerator. Root-level fixtures and migrations are outside this scope.

Contributor data uses all git log origin/main --format='%an' -- crates history, deduplicates exact nonbot author display names and does not count co-author trailers. There are 3 distinct nonbot author names; aliases are not merged, so this is a history indicator, not an ownership or staffing guarantee. The byline lists the most recent distinct names, shortened to first names/usernames.

See Architecture for runtime flow and Testing for the full check matrix.

Clone this wiki locally