Skip to content

Merge API-owned demo documents into staging - #43

Merged
suguanYang merged 5 commits into
stagingfrom
feat/wangbinqi/demo-documents-refactor
May 12, 2026
Merged

suguanYang merged 5 commits into
stagingfrom
feat/wangbinqi/demo-documents-refactor

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Adds API-owned canonical demo document catalog, chunks, original/asset preview routes, and curated example answers.
  • Adds authenticated demo materialization that copies canonical demo chunks/assets into a user namespace without reparsing or charging credits.
  • Keeps materialization idempotent and retry-safe with a durable user/namespace/demo-source mapping.

Verification

  • uv run pytest apps/api/tests/contract/test_demo_documents_contract.py -> 5 passed
  • uv run ruff check apps/api/app/services/demo_document_service.py apps/api/app/api/v1/routes/demo.py apps/api/tests/contract/test_demo_documents_contract.py
  • uv run pyright apps/api/app/services/demo_document_service.py apps/api/app/api/v1/routes/demo.py apps/api/tests/contract/test_demo_documents_contract.py
  • uv run ruff check
  • Synthetic merge of current origin/staging into this branch completed without conflicts; demo contract and targeted ruff stayed green on that merged state.

Refs #38

* feat: add API-owned demo document materialization

* fix: harden demo materialization publication

* fix: harden demo materialization edge cases

* fix: harden demo materialization previews
@suguanYang
suguanYang merged commit e5e723d into staging May 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant