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
32 lines
613 B
Python
32 lines
613 B
Python
"""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()
|