From 3defc4384d8f331d5e86d666e003dbdbe9c2db97 Mon Sep 17 00:00:00 2001 From: Lan Zhijiang Date: Tue, 1 Dec 2026 16:42:50 +0800 Subject: [PATCH] =?UTF-8?q?docs(source):=20=E5=AE=9A=E4=B9=89=E9=94=9A?= =?UTF-8?q?=E7=82=B9=E5=88=9B=E5=BB=BA=E4=B8=8E=E6=9D=A5=E6=BA=90=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E5=90=88=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10-prd/behavior/capabilities.md | 6 +++++ 10-prd/behavior/scope.md | 1 + 10-prd/glossary.md | 4 ++-- ...ture-retrieval-and-media-interpretation.md | 4 ++++ .../knowledge-capability-contract.md | 24 +++++++++++++++---- 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/10-prd/behavior/capabilities.md b/10-prd/behavior/capabilities.md index 8d31be8..068a50b 100644 --- a/10-prd/behavior/capabilities.md +++ b/10-prd/behavior/capabilities.md @@ -15,6 +15,12 @@ - related claim(s): expose info-base information for retrieval and downstream use - non-goal: application indexes, embeddings, and projections do not take over source or info-base authority +## 能力:检索来源仍可访问的资料 + +- 新建 Source 在 info-base 中有可发现的锚点。通过同一个锚点可沿图阅读已收录资料,也可显式使用该来源提供的检索能力。 +- 来源检索可命中尚未收录的资料。结果带来源和原生定位,可以在来源提供精确证据时链接已有 Block。 +- 词法检索默认查 info-base。调用者可以显式选择支持文本检索的来源,也可以同时查 info-base 和选定来源。 + ## Capability: Semantic retrieval - related claim(s): expose info-base information for retrieval and downstream use; retrieve semantically related info-base entities diff --git a/10-prd/behavior/scope.md b/10-prd/behavior/scope.md index ed36316..6da0cb2 100644 --- a/10-prd/behavior/scope.md +++ b/10-prd/behavior/scope.md @@ -6,6 +6,7 @@ - low-friction memo-like capture through bounded compatible backends or collectors - organization of information already in the info-base when it improves later use - feature, semantic, and graph-navigation retrieval, with indexing and embedding as application support +- explicit retrieval of accessible source-native items through Source anchors - extension-based capability addition for source, resolver, storage, sink, or bounded protocol behavior - multi-runtime participation around the same shared info-base diff --git a/10-prd/glossary.md b/10-prd/glossary.md index 41a6696..8aa130a 100644 --- a/10-prd/glossary.md +++ b/10-prd/glossary.md @@ -32,8 +32,8 @@ ## source -- canonical business meaning: an origin-facing capability or integration surface that gathers information from an external system or compatible client. -- user-visible or business lifecycle language: the collection-facing side of the product. +- canonical business meaning: an origin-facing integration that collects information from an external system or compatible client and may provide native retrieval. +- user-visible or business lifecycle language: a configured origin, represented by a Source anchor in the info-base. - notes on ambiguity with framework terms: this is a product capability, not a package or module name. ## sink diff --git a/20-product-tdd/feature-retrieval-and-media-interpretation.md b/20-product-tdd/feature-retrieval-and-media-interpretation.md index 31f9582..e5f7128 100644 --- a/20-product-tdd/feature-retrieval-and-media-interpretation.md +++ b/20-product-tdd/feature-retrieval-and-media-interpretation.md @@ -114,6 +114,10 @@ query ---------------------------------------------------------> ranked existing textual query plus a result bound and returns the V1 lexical result. The business facade executes locally when available or delegates through the shared Peer contract; a provider inbound always calls a non-delegating local path. +- A retrieval entrance may additionally dispatch the same text to explicitly selected Source + anchors that advertise text retrieval. Source-local order, coverage and failures are + preserved. This composition uses the Source-native retrieval contract and the existing + info-base lexical capability for their respective ranges. - `route_to_peer` / `routeToPeer` remains caller-local routing policy and does not enter the capability payload. - `InfoBaseListView` is the first list navigation host for retrieval results. Selecting a diff --git a/20-product-tdd/knowledge-capability-contract.md b/20-product-tdd/knowledge-capability-contract.md index 715d30d..31461e0 100644 --- a/20-product-tdd/knowledge-capability-contract.md +++ b/20-product-tdd/knowledge-capability-contract.md @@ -163,10 +163,12 @@ external API uses one of those words. URL or graph identity changes. - A source-time watermark may reduce duplicate admission when exact identity is unavailable, but it is not identity, reconciliation, or a correctness proof. -- A Source may own one optional graph-anchor Block. The Source row remains authority for - operational configuration; the Block is a lazy, resolver-readable projection and Relation - endpoint for provenance. Sources do not retain a collected-item ledger when graph identity - can locate already collected facts; cursors and validators remain valid source state. +- Creating a Source also creates its unique `core.source.v1` anchor in the same persistence + transaction. The Source row owns operational configuration and the current anchor binding. + The Block is a readable projection and can be a Relation endpoint where the domain needs one. + Source deletion preserves existing Blocks and Relations. Historical anchors without a live + binding remain readable. Sources use existing graph identity for collected facts and keep + source-scoped cursors and validators as operational state. - A Source may select one writable Storage. The selected type must advertise writable capability at the persisted boundary. Deployment-default writable Storage and the always available PostgreSQL binary fallback complete source byte-placement policy without making @@ -197,6 +199,20 @@ external API uses one of those words. the important loss; theoretical completeness alone does not justify a stronger identity or synchronization subsystem. +## Source-Native Retrieval + +- A Source extension may declare a bounded native retrieval capability with typed input. + `core.source.v1` exposes this capability on a live anchor and uses the Source row binding + to select the implementation. The caller explicitly names the anchor through an admitted + entrance. The Source owns its native access scope, provider semantics and credentials. +- Source retrieval returns bounded, live previews with native locators and coverage. + Existing Block references require evidence of exact correspondence. Search leaves the + shared graph, collection state, indexes and source-native state untouched. Discovering + capabilities or reading an anchor does not execute native retrieval. +- Adding a searchable Source uses the same host capability contract without a per-Source Core + change. When execution is on another Peer, delegation uses a shared capability path and + the execution Peer enforces the Source's own access context. + ## Info-Base Navigation And Solved Content - Hydrated content is the inline value or Storage-loaded bytes behind one Block. Solved