Integrations#
Adapters live in packages/integrations (library) and apps/api/routers/integrations.py
(server connections). Credentials are always explicit; nothing is shown as connected unless
its status says so. All network adapters are tested with mocked HTTP; none has been
exercised against the live third-party service in this repository's CI.
| Integration | What it does | Credentials | Status |
|---|---|---|---|
| Git (local) | every commit and run records the Git HEAD, dirty state, remote (credentials stripped) and diff hash | none | implemented, tested |
| GitHub | signed push-webhook ingestion (/api/v1/integrations/github/webhook/{id}), commit lookup client, research↔code links view |
webhook secret (generated), optional token | implemented; webhook tested; API client mocked only |
| Hugging Face | resolve a dataset/model revision to an immutable commit sha and register it | optional HF_TOKEN |
implemented, mocked tests |
| Weights & Biases | import runs (config, summary metrics, state) via GraphQL | WANDB_API_KEY |
implemented, mocked tests |
| MLflow | import runs (params, metrics, status) via REST runs/search |
optional token | implemented, mocked tests |
| DVC | read .dvc files / dvc.lock → external artifact refs (md5) and preprocessing stages |
none | implemented, tested |
| Jupyter | parse notebooks, diff cells/outputs, extract printed metrics, register as code artifact | none | implemented, tested |
| LaTeX editors / Lattedit | editor API (below) | API token | implemented, tested |
Library usage (stages entities; commit afterwards):
from rvc_core.repo import Repository
from rvc_integrations import HuggingFace, WandB, MLflow, import_runs, import_dvc
repo = Repository.discover()
HuggingFace().register(repo, "org/dataset", kind="dataset", revision="main")
import_runs(repo, WandB(os.environ["WANDB_API_KEY"]).runs("entity", "project"), group="wandb")
import_runs(repo, MLflow("http://mlflow:5000").runs("1"))
import_dvc(repo)
External editor API (Lattedit)#
Designed so an editor can act as a native ResearchVC provider. All endpoints are under
/api/v1/projects/{org}/{project} and use a project-scoped API token.
| Endpoint | Purpose |
|---|---|
POST /editor/snapshots {files:{path:content}, delete:[], message, branch?, expected_head?} |
ingest a manuscript snapshot as a new research commit (CAS on expected_head) |
GET /editor/annotations?path=&rev= |
line-anchored claims with evidence, and audit findings for one source file |
GET /editor/diff?a=&b= |
semantic manuscript comparison (sections, sentences, tables, citations) |
GET /manuscripts/{id} / /history / /diff |
structure, version timeline, comparisons |
GET /audits |
findings with evidence locations |
POST /projects/.../integrations {kind:"lattedit"} |
register the editor connection |
rvc_integrations.EditorClient is a reference Python client. Outbound webhook delivery
(push, finding, release events to the editor) is not implemented yet; editors poll
/activity or /audits.