Skip to content

Spitfire-Cowboy/talos

Talos

Talos hero

Deterministic WIP enforcement that turns workload pressure into guardrails against overload and thrash.

License Python CI codecov

Named after Talos, the bronze guardian of Crete, this project is built around protection through deterministic guardrails.

What Talos is

Talos is a deterministic enforcement engine for work-in-progress pressure.

The public code in this repository currently includes a small Python scoring core that:

  • computes enforcement levels from workload and backlog signals
  • persists cycle counters across runs
  • stays dependency-light and deterministic

Platform support

The current Talos Python core has been verified in local development on macOS and in a Linux container.

Verified Linux scope

Linux verification currently means:

  • the package installs from source in python:3.12-slim
  • the current test suite passes in that container
  • the public Python core behaves the same there as it does on macOS

This does not currently claim:

  • a Linux service wrapper
  • a Linux-specific daemon setup
  • an MLX deployment on Linux
  • broader distribution testing beyond the containerized Python environment above

The currently observed MLX-oriented service deployment is separate from the core package and is still documented as a macOS-specific setup.

What ships today

This repository currently ships:

  • the Python scoring core in talos/
  • automated tests for scoring and persistence behavior
  • GitHub Actions CI for test and coverage runs
  • Codecov and CodeRabbit configuration files
  • repository documentation
  • verified notes about the current MLX-oriented deployment shape

It does not currently ship:

  • packaged binaries
  • a public MLX monitor implementation
  • end-to-end production deployment automation

Quick start

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .[dev]
pytest --cov=talos --cov-report=term-missing --cov-report=xml

CLI

talos score --wip-total 10 --global-max 10 --at-cap alpha --backlog-delta 0 --cycles-at-current-level 2
cat > snapshot.json <<'JSON'
{
  "wip_total": 8,
  "global_max": 10,
  "at_cap_projects": ["alpha"],
  "backlog_total": 12,
  "backlog_delta": 1,
  "source": "manual"
}
JSON

talos evaluate --snapshot snapshot.json
talos status
talos explain --snapshot snapshot.json

API usage

from talos import TalosSnapshot, evaluate_snapshot, load_state

evaluation = evaluate_snapshot(
    TalosSnapshot(
        wip_total=8,
        global_max=10,
        at_cap_projects=["alpha"],
        backlog_total=12,
        backlog_delta=1,
        source="manual",
    ),
    prior_state=load_state(),
)

print(evaluation.to_dict())

Persistence

By default, Talos stores state under ~/.config/talos/:

  • cycles.json for the cross-cycle state
  • status.json for the latest structured evaluation
  • history.jsonl for append-only evaluation history
  • policy.json for optional policy overrides

To override those locations, set the corresponding environment variables before running Talos:

export TALOS_CYCLES_FILE=/path/to/talos-cycles.json
export TALOS_STATUS_FILE=/path/to/talos-status.json
export TALOS_HISTORY_FILE=/path/to/talos-history.jsonl
export TALOS_POLICY_FILE=/path/to/talos-policy.json

MLX deployment notes

A Talos process observed on the maintainer's machine is running as a Python service that watches MLX-related logs and writes JSONL summaries.

See Running with MLX.

Documentation

License

Apache License 2.0

About

Talos is a deterministic WIP enforcement engine that turns workload pressure into automatic guardrails against overload and thrash.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages