tegwick 53c03d65a3 chore(consistency): sync task status from DB [auto]
Updated by fix-consistency on 2026-05-16:
  - ARTIFACT-STORE-WP-0002-T001: todo → cancelled
2026-05-16 14:46:18 +02:00
2026-05-15 20:08:32 +02:00
2026-05-15 16:14:36 +00:00
2026-05-15 20:08:32 +02:00

artifact-store

Generic artifact registry and storage gateway for generated outputs, evidence packages, reports, logs, snapshots, exports, and release artifacts.

The registry owns artifact identity, metadata, provenance, retention policy, and retrieval records. Bytes are delegated to configured storage backends (local filesystem in v1, S3-compatible / Ceph RGW in WP-0004).

The shape is library-first (artifactstore Python package); the HTTP server and the CLI are thin consumers. Content is addressed by digest; state is authoritative in an append-only event log (ADR-0002); materialised views are rebuildable.

Status

v0.1 (WP-0001 baseline) — library, CLI, minimal HTTP app, local FS backend, end-to-end ingest + finalize + replay all working. The full package CRUD HTTP API lands in WP-0002.

Quick start

Requires Python ≥ 3.12 and uv.

uv sync --all-extras          # install dependencies (creates .venv + uv.lock)
cp .env.example .env          # optional; defaults work out of the box

make migrate-fresh            # initialise ./var/artifactstore.db
make dev                      # uvicorn on 127.0.0.1:8000

# in another terminal
curl -s http://127.0.0.1:8000/health | python3 -m json.tool
artifactstore health

Make targets

Target Purpose
make install uv sync --all-extras
make dev run the FastAPI app with reload
make test run the pytest suite
make lint ruff check + ruff format --check
make format apply ruff format + ruff check --fix
make type mypy --strict
make migrate alembic upgrade head
make migrate-fresh drop the local SQLite DB and re-run migrations
make clean remove caches and build artefacts

CLI

artifactstore version     # print the package version
artifactstore migrate     # alembic upgrade head
artifactstore replay      # rebuild materialised views from the event log
artifactstore health      # JSON liveness summary (same payload as /health)

Documentation

Workplans

Agent operating notes

See AGENTS.md for the StateHub-integrated session protocol, workplan conventions, and progress-logging contract.

Description
Generic shared service artifact store to integrat S3 Buckets or scalable selfhosted Storage based on Ceph.
Readme MIT-0 750 KiB
Languages
Python 99.4%
Makefile 0.4%
Mako 0.2%