Expand description
Algorithm competition domain (ABC/ARC/AGC etc.): tasks, solutions, cases, local test runs, submissions, and practice attempts.
This crate owns the Algorithm-side state model and transitions described
in docs/requirements/architecture.md §2. It depends only on
ac_services for shared primitives such as ac_services::jobs::JobId
and must never depend on ac-heuristic, ac-session, ac-daemon, or
any client — that direction is enforced by the workspace dependency
graph.
Types here are the domain skeleton for issue #15. Behavior (state transitions, statistics, generation, comparison) lands in the P2-A work units; persisted schema is owned by issue #18.
Modules§
- case
- Test cases: inputs, expected outputs, and comparison rules (A-02).
- compare
- Output comparison for local test runs (A-02, issue #25).
- generate
- Deterministic test-case generation (A-03, issue #26).
- ids
- Identifier types for the Algorithm domain.
- practice
- Practice attempts: out-of-contest problem work (precision training, virtual contests) recorded against the same task/solution model.
- solution
- Solution snapshots: the source file is the source of truth; metadata records identity and the hash of the exact byte string under test.
- submission
- Submissions: the intent/result state machine that prevents duplicate and mismatched sends (C-07, ADR-0005 invariant 4).
- test_
run - Local test runs: one solution executed against one case (or ad-hoc input) through the job manager.
- testcase_
yaml - cargo-compete-compatible testcase YAML import (issue #26, AC-05).
- verdict
- Verdict vocabulary for the Algorithm domain.