feat(pack): 建立 Source 数据底座 - #225
Open
maokelong wants to merge 1 commit into
Open
Conversation
maokelong
force-pushed
the
codex/issue-224-pack-sources
branch
from
August 24, 2026 19:58
fdc4650 to
1ccca94
Compare
This was referenced Aug 27, 2026
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.
关联 issue
Closes #224
SDD 摘要
问题:
KAT 的来源扩展此前被封闭的 Datasource 类型和顶层
kat import限制,PACK 无法自行接入远端数据库、Parquet 或普通日志解析器;Workflow 还需要感知底层表依赖和来源形态。非目标:
考虑过的方案:
kat import与 Sources 并行:会长期形成两套来源模型;选中方案:
PACK catalog / Source schema / Source table命名;kat bind只保存 External Binding,kat materialize显式发布本地 Parquet;最小切片:
kat-kernel/raw_smaps与kat-kernel/hitrace两个纵向样例;主要变更
@kat.source、schema_from_readers和 DataFusion SchemaProvider/FFI 适配。kat bind、kat materialize与kat query --pack-dir。(PACK, Source)隔离 External/Materialized Binding,并保存可重放 argv/cwd。stage_hitrace;Dataset 发布只经通用 Materialization。kat-kernelPACK,交付 raw_smaps Source、Hitrace Source、Analysis 与 Workflow。kat import、Trace Streamer、SQLite/Langfuse 旧路径和两个预发布分析 PACK。为什么本 PR 较大
这是一次产品模型切换,无法在保持每个中间状态可用的前提下继续拆成独立 PR:
因此本 PR 以“统一 Source 生命周期完成、旧模型完全退场”为一个原子切片。对应设计和范围已在 #224、ADR-0062、ADR-0063 与两份 SDD 中闭合。
验证证据
额外验证:
kat --help只展示 bind、inspect、run、query、materialize、test;kat import返回unrecognized subcommand 'import';docs/superpowers/未纳入提交。范围自检