Auto Dig backend API, fast v0.9 importer, Forgejo CI - #2306
Open
lost-rob0t wants to merge 5 commits into
Open
Conversation
- backend/: FastAPI /api/v1 surface (capabilities, runs lifecycle with durable restartable state, idempotent mutations, progress, validated document results, health/readiness), strict starintel_doc v0.9 gate - backend/server_client.py: typed StarIntel server client; bulk submit handles both inline and 202 async-job modes with bounded polling - scripts/import_starintel.py: streaming NDJSON importer with bounded concurrency, checkpoints/resume, per-document result categories, machine-readable summary - tests: backend API (10) + importer unit (9), all green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backend/ — typed versioned API (
/api/v1)starintel_docv0.9 validation gate: invalid documents are 422s and never reach the serverserver_client.py: typed StarIntel server client;POST /documents/bulksupports both inline and 202 async-job modes with bounded pollingscripts/import_starintel.py — fast streaming importer
--checkpoint,--resume) make runs idempotent; per-document result categories: attempted/accepted/duplicate/invalid/failed/transient--dry-run,--validate-only,--limit,--dtypes, machine-readable--summaryreports/import-benchmarks/: 5,671 docs @ 730.9 docs/s (inline) and 912.8 docs/s (async) against a real starintel-server compose stack, 0 invalid/failed/transient.forgejo/workflows/ci.yml
Self-contained (no
uses:, no GitHub Actions): backend tests, importer tests, changed-document detection + validation (fail-closed fallback to full-corpus validation when the base revision is unavailable), hygiene. Verified end-to-end green via act locally; the fallback path validated 1,271,092 documents, ok=true, schema=0.9.0.Requires the starintel-server false-value fix (lost-rob0t/starintel-server#134) for corpus docs carrying
falsevalues.