Present DocsFlow as the reference architecture behind SureCiteAI by nicuk · Pull Request #15 · nicuk/docsflow · GitHub
Skip to content

Present DocsFlow as the reference architecture behind SureCiteAI - #15

Open
nicuk wants to merge 1 commit into
mainfrom
docs/reference-architecture-readme
Open

nicuk wants to merge 1 commit into
mainfrom
docs/reference-architecture-readme

Conversation

@nicuk

@nicuk nicuk commented Sep 30, 2026

Copy link
Copy Markdown
Owner

The README opened as if this repo were the live product. This rewrites the opening so a visitor knows what they're looking at:

  • What DocsFlow is: the open reference architecture for a client's document AI product (SureCiteAI), with each claim pointing at the file that backs it.
  • What stays private: the production citation verifier, eval gates and calibrated abstention.
  • Removed claims the code doesn't support: 5-tier access levels (only admin/user/viewer roles exist) and "no hallucinated claims" (the citation verifier isn't in this repo).
  • BENCHMARKS.md now says its numbers measure production SureCiteAI, not this code, and no longer calls FinanceBench peer-reviewed (it's an arXiv preprint).

Docs only. Doesn't overlap with #14.

The README opened as if this repo were the live product. It now says what
DocsFlow is (the open reference architecture), points each claim at the file
that backs it, and says what stays with the production system.

Also removes two claims this code doesn't support: 5-tier access levels
(only admin/user/viewer roles exist) and "no hallucinated claims" (the
citation verifier lives in production, not here). BENCHMARKS.md now says its
numbers measure production SureCiteAI, and no longer calls FinanceBench
peer-reviewed.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae66117b45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify the claimed RLS isolation layer

This presents RLS as an enforcement layer for tenant isolation, but application-facing document queries use a Supabase service-role client, which explicitly bypasses RLS (app/api/documents/route.ts:21-27); their isolation instead depends on adding .eq('tenant_id', tenantId) after validateTenantContext. Consequently, a route modeled on this description can read across tenants if it omits that predicate, so the README should not represent Postgres RLS as a fourth effective layer for those paths.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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