docs: design-18 舰队即线路数据库(平台脊柱:从纳管到订阅) - #7
Open
lr00rl wants to merge 2 commits into
Open
Conversation
…doption to subscription) From the operator directive 2026-08-12: the sing-box fleet is one abstract database, read through the server projection and written through planned, approved tasks; extensions declare dependencies and pre-apply checks; the chain graph and the subscription layer follow as views over the same rows. Decision registry: projection-only reads (D1); identity in the sidecar, not in-config _lattice (D2, reaffirms design-15 §4.4); extension contract v2.1 with dependencies + preflight (D3); greenfield install from our sing-box fork (D4); chain builder over line descriptors with declared edges (D5); runtime doctrine — platform paths pure Go, QuickJS for user scripts only, no Node anywhere (D6); performance doctrine for many small nodes (D7); subscriptions as a view over the database (D8). Slices E1-E5 sequence the gaps to the sub-store endpoint; design-17 S1/S2 remains the in-flight first citizen of the line database.
The dependency contract is enforced at load and activation; per-plugin manifest declarations ride each plugin's next signed release with a compatibility.server floor bump (strict decode requires a18+).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
立意
把 2026-08-12 的运营商愿景落成架构:散布在各 VPS 上的 sing-box 就是一个抽象数据库——不做外部注册,只通过 Lattice 自有的元数据读写它。框架(L0)→ 扩展(L1)→ 节点生命周期(L2)→ 线路数据库投影(L3)→ 链式图谱(L4)→ 订阅组合(L5),每层都是下层数据的视图。
关键裁决
_lattice(sing-box 严格解析未知键;重申 design-15 §4.4)——下划线字段的直觉以更安全的形式保留切片
E1 扩展合同 → E2 绿地安装 → E3 链式构建(依赖 design-17 S2)→ E4 jump_edges+拓扑 → E5 舰队订阅流(可并行起步)。
与 design-17(#6)关系:托管线路覆盖层是线路数据库的第一个公民,两文档互补无冲突。