Make the governed RAG evidence path executable end to end
Some checks failed
verify / verify (push) Has been cancelled

Separate local parsing from model indexing, bind review decisions to immutable manifests, persist vectors behind active profiles, and expose retrieval, chat, evaluation, and document workflows through the React workbench.

Constraint: Live Bailian authentication currently fails for all three configured capabilities

Rejected: Direct upload-to-embedding flow | bypasses local review and manifest binding

Confidence: high

Scope-risk: broad

Directive: Keep private-data deployment blocked until authentication, RBAC, and separate database roles land

Tested: make verify; fresh and replay Docker document smoke; worker recovery smoke; frozen synthetic evaluation; migration 0003-0004 roundtrip

Not-tested: Successful live Bailian calls, OCR, real multi-user authorization
This commit is contained in:
2026-07-13 05:58:11 +08:00
parent 75592af33a
commit ecdb10c37a
111 changed files with 25457 additions and 152 deletions

View File

@@ -0,0 +1,31 @@
"""Export the FastAPI contract without opening a database or reading secrets."""
from __future__ import annotations
import json
import sys
from typing import Any
from app.main import create_app
def export_schema() -> dict[str, Any]:
"""Build the deterministic application schema from import-safe contracts."""
return create_app().openapi()
def main() -> None:
sys.stdout.write(
json.dumps(
export_schema(),
ensure_ascii=False,
sort_keys=True,
separators=(",", ":"),
)
+ "\n"
)
if __name__ == "__main__":
main()