Contributing to Eidos¶
We welcome contributions to Eidos! Whether fixing a bug, improving documentation, or adding a new capability, this guide will help you get started.
Development Environment Setup¶
1. Clone the Repository¶
2. Install Dependencies & Editable CLI Tool¶
Using uv:
Running Quality Checks¶
1. Validate Living Specifications & Check Drift¶
Eidos uses itself to govern its own architecture! Before submitting any changes, ensure all specifications validate and there is zero unreconciled spec-to-code drift:
2. Validate Agent Plugin¶
3. Run the Test Suite¶
All tests run in parallel by default via pytest-xdist (-n auto --dist worksteal in pyproject.toml) and must satisfy POL-STATEMENT-TEST-COVERAGE (>90% statement coverage for every Python file under src/eidos/, with fail_under = 90 enforced in pyproject.toml):
To enforce diff-line statement coverage (>= 90%) on newly added or modified lines in your working tree (matching CI's PR check so untested new branches aren't masked by existing file-level coverage):
# Uncommitted working tree + untracked files vs HEAD
uv run python tests/check_diff_coverage.py
# Branch diff vs origin/main
uv run python tests/check_diff_coverage.py --base origin/main
To run serially (for example, when stepping through a single test with --pdb or -s), override with -n 0:
4. Code Formatting, Linting & Type Checking¶
We use Ruff for linting/formatting and ty for static type checking:
Building the Documentation¶
This documentation site is built with Zensical (zensical.toml):
1. Generate the Living Architecture Changelog¶
Generate CHANGELOG.md and docs/changelog.md from applied SpecDeltas and Git tags:
2. Local Live-Reload Server¶
Open http://localhost:8000 to preview changes in real time.
3. Strict Static Production Build¶
Commit Guidelines¶
We follow the Conventional Commits specification:
feat(...): A new feature or capabilityfix(...): A bug fixdocs(...): Documentation changesci(...): CI/CD workflows and automationrefactor(...): Code changes that neither fix a bug nor add a featuretest(...): Adding or updating test suites
Creating a Release¶
Releases are driven by annotated SemVer Git tags (vX.Y.Z) via hatch-vcs and .github/workflows/ci.yml. Always push main first and push the tag last as a separate command so origin/main is updated before the release tag triggers (the tag workflow automatically cancels superseded main push CI runs without ever being cancelled by main):