avocet/tests
pyr0ball 8fda821e15 feat: add POST /ingest endpoint to corrections API with Bearer auth
Adds IngestRequest model and POST /api/sft/ingest route to
app/data/corrections.py. Sibling CF products (Peregrine, Kiwi, etc.)
can push pre-approved corrections via Bearer token auth
(AVOCET_INGESTION_SECRET). Records land as status=approved in both
sft_candidates.jsonl and sft_approved.jsonl immediately.

7 tests in tests/test_data_corrections.py cover 503 (secret unset),
401 (missing/malformed header), 403 (wrong secret), happy-path writes
to both files, and optional label field.
2026-05-02 09:07:10 -07:00
..
__init__.py feat: initial avocet repo — email classifier training tool 2026-02-27 14:07:38 -08:00
test_api.py feat: build SQLite-backed train job queue in app/train/train.py 2026-05-01 23:05:11 -07:00
test_benchmark_classifier.py fix(avocet): guard discover_finetuned_models against malformed/incomplete training_info.json 2026-03-15 15:18:13 -07:00
test_cforch.py feat: build app/eval/cforch.py aggregating eval benchmark routers 2026-05-01 22:23:06 -07:00
test_classifier_adapters.py fix(avocet): FineTunedAdapter GPU device routing + precise body truncation test 2026-03-15 10:56:47 -07:00
test_dashboard.py feat: add GET /api/dashboard flywheel aggregate endpoint 2026-05-01 23:30:04 -07:00
test_data_corrections.py feat: add POST /ingest endpoint to corrections API with Bearer auth 2026-05-02 09:07:10 -07:00
test_data_fetch.py feat: extract fetch routes and IMAP helpers into app/data/fetch.py 2026-05-01 21:57:31 -07:00
test_data_label.py feat: extract label queue API into app/data/label.py 2026-05-01 18:48:14 -07:00
test_finetune.py fix(avocet): move TorchDataset import to top; split sample_count into total+train 2026-03-15 16:02:43 -07:00
test_imap_fetch.py feat: extract IMAP logic to app/imap_fetch.py for reuse by API 2026-03-04 11:42:22 -08:00
test_imitate.py feat: move imitate API into app/data/imitate.py 2026-05-01 22:12:19 -07:00
test_label_tool.py refactor: consolidate HTML extraction into app/utils.py 2026-04-08 06:52:15 -07:00
test_models.py feat(models): extended model registry + manage.sh benchmark subcommands 2026-04-24 14:56:24 -07:00
test_sft.py feat: move SFT corrections API into app/data/corrections.py 2026-05-01 22:02:22 -07:00
test_sft_import.py fix: log warning when sft record is missing id field 2026-04-08 07:30:46 -07:00
test_train.py feat: build SQLite-backed train job queue in app/train/train.py 2026-05-01 23:05:11 -07:00