- 删除 cli.RegisterRuntimeContractFinal 包装器:生产侧零调用(全部走 corecmd.New 内部注册或 contractfinal 直调),9 处测试调用迁移到 contractfinal.RegisterRuntimeContractFinal - 删除死常量 ProvenanceEmbeddedCommandCatalog(全库零引用的 legacy wire label;运行时装配统一打 SchemaSourceRuntimeAssembled) - 同步 6 处文档/注释:AGENTS.md、RFC §277、contract/final.go、 contractfinal/store.go、contractfinal/doc.go、corecmd.go、 contract/doc.go、contract_register_seam_test.go 的死符号钉扎改为 import 前缀分层检查兜底
- import 统一:删除 cli/contractfinal 与 cli/runtimeannotate 垫片包, 26 个消费文件一律直引 corecmd/*;cli 根仅保留 runtime_schema_seam.go 包内别名,依赖图保持单向无环 - 新增 internal/testseam.Swap[T]:包级 var 注入缝置换由 t.Cleanup 结构性恢复;迁移 pipeline*/stdinIsTerminalFn/loadReviewedCommandRegistry/ schemaCommandCatalogError/schemaParameterBindingData/finalSchemaAgentMetadata 六组核心缝(26+ 处) - ForTest 辅助归拢到 per-package fortest.go(corecmd/contract、 corecmd/contractfinal、shortcut、cli),生产文件只留真逻辑 - 文档同步:runtime_schema_seam.go / runtimeannotate/doc.go 注释、 CHANGELOG、RFC §278-279、AGENTS.md
Move schema authority to declare-time ParamDecl/ContractFinal and ResolveSchemaBuild so CI/runtime assemble instead of shipping JSON exclusions/meta-index as delivery sources. Co-authored-by: Cursor <cursoragent@cursor.com>