Skip to content

docs(rfc): design plugin-based text material import - #2073

Closed
Zxf-xufeng wants to merge 4 commits into
masterfrom
codex/rfc-text-material-import
Closed

Zxf-xufeng wants to merge 4 commits into
masterfrom
codex/rfc-text-material-import

Conversation

@Zxf-xufeng

@Zxf-xufeng Zxf-xufeng commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Which issue or RFC does this PR close?

Design proposal based on the text material import research. No implementation issue is closed.

Rationale for this change

Importing documents needs parsing, private previews and explicit acceptance in an existing Scope. Reuse Source plugins for collection and Artifact plugins for ImportedContent generation, revisions and reads, while retaining the import-specific workflow and a durable complete-document handoff.

Confirmation atomically saves document Sources, a frozen commit manifest, publication intent and an acceptance receipt (T1). Artifact generation separately publishes the Revision, Head, lineage, declared indexes and completion record (T2). Evidence may therefore be visible before the Artifact exists; 202 is acceptance, not completed import.

What changes are included in this PR?

  • Matching Chinese and English RFCs define family=importedcontent, source_kind=content, mandatory existing Scope selection, 52 proposed parser profiles and four diagrams per locale.
  • A reuse matrix identifies existing Source/Artifact capabilities, import-specific responsibilities and required framework extensions. The plugin PRs do not already provide complete-document input, transactional publication acknowledgement or the collect-to-import adapter.
  • Document-scoped input validates exact ordered evidence across journal windows, with bounded part reads and separate input/output budgets. A normal Source window is not treated as a complete document.
  • Seventeen proposed import operations and four reused Artifact read operations document parameters, meanings, limits, request examples, state, errors and recovery. New evidence acceptance returns 202; published-current reuse returns 200; commit status supplies the exact published revision.
  • Reuse Artifact storage and plugin lifecycle/index infrastructure. Specify nine import-specific logical persistence responsibilities, including immutable commit manifests and publication state, without an ImportedContent main/version table or FileImportJob business resource.
  • Define per-document publication reservation, Head CAS, idempotent retries, permission rechecks, TTL-independent accepted commits and checkpoint advancement only after verified publication.
  • The explanatory long infographic is a separate deliverable and is not embedded in the RFC.

Are there any user-facing changes?

Documentation only. No parsers, runtime code, OpenAPI output or database migrations are implemented by this PR. The UI distinguishes private preview, evidence accepted, publication pending/failed and completed import. ImportedContent is assembled deterministically without an LLM. Source acceptance/publication does not imply Memory generation or full-text indexing.

The pinned plugin PRs are dependency baselines, not claims of merged availability. Publication readiness must remain unavailable until the specified document-input and transaction-completion extensions are implemented and validated.

How was this change tested?

  • git diff --check.
  • SKIP=ty-check /Users/zhengxiaofeng/Desktop/code/powercontext/.venv/bin/prek run --files docs/zh/rfcs/2073-text-material-import.md docs/en/rfcs/2073-text-material-import.md: applicable document hooks passed; unrelated always-run type checking was skipped for this documentation-only change.
  • Bilingual consistency checks: matching 21-row HTTP inventories (17 proposed import operations and four reused Artifact reads), all 52 original parser profiles retained, 12 valid JSON blocks per language, local documentation links resolve and no obsolete ImportCommitReceipt remains.
  • Both RFCs compile with the installed MDX Markdown compiler and GFM parser: 30 tables, 310 rows and four Mermaid code blocks per language. This checks Markdown compilation, not a rendered Mermaid/browser or full website build.
  • No runtime, parser, migration, seekdb or OceanBase execution is claimed. The full website build was not run.
  • The long infographic was generated using the built-in image-generation tool and visually checked against the design.

AI usage statement

OpenAI Codex assisted with plugin-source inspection, architecture, bilingual documentation, API-contract consistency checks and the separate overview infographic. No implementation changes are included.

@AlexStocks AlexStocks added the 1.4.1 v1.4.1 release tracking label Oct 20, 2026
@hidb4ai hidb4ai added 1.5.0 v1.5.0 release tracking and removed 1.4.1 v1.4.1 release tracking labels Oct 23, 2026
@Zxf-xufeng Zxf-xufeng changed the title docs(rfc): propose text material import docs(rfc): design plugin-based text material import Oct 27, 2026
@hidb4ai hidb4ai removed the 1.5.0 v1.5.0 release tracking label Nov 2, 2026
@AlexStocks AlexStocks added the 1.5.1 v1.5.1 release tracking label Nov 3, 2026

@knqiufan knqiufan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the English and Chinese RFCs, including the document identity, two-stage publication, authorization, recovery, and capability boundaries. I found no blocking design inconsistency. The proposed parser and backend capabilities still require the implementation and acceptance described in the RFC.

@hidb4ai hidb4ai removed the 1.5.1 v1.5.1 release tracking label Nov 9, 2026
@AlexStocks AlexStocks added the 1.5.2 v1.5.2 release tracking label Nov 9, 2026
@hidb4ai hidb4ai removed the 1.5.2 v1.5.2 release tracking label Nov 15, 2026
@AlexStocks AlexStocks added the 1.6.0 v1.6.0 release tracking label Nov 17, 2026
@AlexStocks AlexStocks added 1.6.1 v1.6.1 release tracking 1.6.2 v1.6.2 release tracking and removed 1.6.0 v1.6.0 release tracking 1.6.1 v1.6.1 release tracking labels Nov 24, 2026
@hidb4ai hidb4ai added module:core Core: PR changes under src/ module:knowledge-base Primary module: knowledge base import, processing and retrieval and removed module:core Core: PR changes under src/ labels Dec 2, 2026
@hireview001

Copy link
Copy Markdown
Collaborator

The affected modules are Knowledge base. @Zxf-xufeng, please coordinate follow-up. Knowledge base: @Zxf-xufeng @Alanxtl. Please coordinate the review of the affected changes.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed ed3886a. The explicit T1/T2 handoff, exact document input and separation of proposed versus available capabilities are reasonable. Two documentation issues below need correction. This PR implements neither the nine proposed persistence responsibilities nor the proposed APIs. Merge confidence: 45/100.

| MinerU / DeepDoc / LlamaParse | Independently enabled C-level alternatives; LlamaParse is external or enterprise self-hosted | No implicit fallback from standard profiles |
| LlamaIndex | Optional future Reader/retrieval-transform reference and indexing use | Does not own transactions, versions, or Sources; no default silent Reader error skipping |

Selections draw on the [RAGFlow study](https://yuque.antfin.com/obopensrc/knowledge_sharing/lmziuic5tzhgny8c),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P2] Replace private SSO references in public material

These research links require corporate SSO and violate the repository public-content rules. The same links recur in the Chinese RFC and both Prior art sections, and the PR description also cites a private research page. Replace them with public primary sources or neutral, self-contained rationale, consistently in both languages and the PR description, before this becomes a permanent public record.


The proposal builds on verifiable repository designs and implementations:

- [RFC template](0000_example.md) and [process](README.md): structure and numbering.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P2] Use an RFC-process link that survives site generation

The site generator renames the RFC README.md to index.md, but this relative link remains README.md. The current-head website CI fails on this exact line with README.md: not-found; a local next-validate-link reproduction with the generated layout fails likewise. Use a link valid in both the repository and generated site, such as the pinned public process URL already used by the Chinese counterpart.

@Zxf-xufeng Zxf-xufeng closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6.2 v1.6.2 release tracking module:knowledge-base Primary module: knowledge base import, processing and retrieval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants