Repository navigation
Releases
ICODE v2.47.0
ICODE v2.47.0 — 工作区冻结修复与账本恢复命令
小版本。修复 High 级缺陷:工作区中任一普通工单的账本无法被当前读取器认证时,stage 发现会把“读不懂一个工单”放大成“整个工作区不可信”,导致 create / create-next 永久冻结;同时把恢复路径产品化为只读 repair 与默认 dry-run 的 quarantine。
- 工作区不再因单个普通工单不可读而冻结:阶段历史发现逐个工单扫描,账本内容认证失败(版本错配、缺定义、摘要不符、hash/镜像不一致)只在该工单自身带阶段证据时 fail-closed:metadata 的
stage_program/stage_binding,或账本原始字节中的stage_control事件。无阶段证据的普通工单记录 diagnostic 后继续;create/create-next成功并输出warnings,指明被跳过的工单与建议动作。预算、超时、符号链接、重复读取等资源与路径类失败仍立即终止。 - 错误分层:新增只读
classify_control_failure,区分definition_store_unsupported(定义就在.ico_storage且摘要自洽,需要升级控制面)、definition_missing(引用定义缺失)与definition_tampered(侧文件摘要不符),并给出不同的recovery.action。 - 可执行恢复:新增
repair --dir(只读诊断,幂等)与quarantine --dir [--apply](默认 dry-run;移入同级.quarantine/并把索引标记为stale_reason=quarantined,已隔离时幂等)。原recovery_action="repair_control_ledger"改为真实命令repair;索引号分配器保留历史 vNext 编号,避免隔离最高编号后下一次create-next复号触发out_dir_ownership。 tolerate逃逸通道:内容失败白名单改为前缀匹配,覆盖reject()追加; candidate storage: …后的真实失败签名。- 文档与护栏:
references/control_plane.md、references/serial_evidence_stages.md同步新语义;新增tests/test_stage_workspace_isolation.py(16 用例),保留tools/diagnose_definition_skew.py与 6 用例的 side-store 契约测试;fast profile 的references/control_plane.md/references/serial_evidence_stages.md源哈希钉已按sha256_utf8_lf重算。
验证边界
在 Windows Python 3.11 实跑:核心控制面/阶段发现套件 154 passed、1 skipped、60 subtests;控制面索引/批处理/linter/候选存储 217 passed;review return 41 passed;UI catalog/overview/delivery 37 passed;execution_profiles 140 passed、2 skipped。shell 契约 birth-optimization 11 PASS、control-plane regression 26 PASS。并以现场真实 121 事件侧库账本复核:新读取器可完整读取;模拟 v2.44 读取器(不传 definition_store)时 create 成功并给出 definition_store_unsupported WARN;同账本加阶段标记后 fail-closed 且不建单。仓库内 GBK 终端解码与 WindowsApps python3 假 stub 相关用例在 HEAD 上即可复现,与本次改动无关;发布资产由 tag 触发的 release.yml 在 Ubuntu-22.04 上按 build_release_assets.py + SHA256SUMS 重建校验。
English summary
Minor release fixing a High-severity workspace freeze: an ordinary ticket whose ledger the current reader cannot authenticate no longer makes stage discovery treat the whole workspace as unproven. Discovery now records a diagnostic and continues unless the ticket itself carries stage evidence (stage_program/stage_binding or a stage_control event). create / create-next therefore succeed with warnings instead of failing permanently. The recovery path is productized as read-only repair and dry-run-by-default quarantine, with failure classification (definition_store_unsupported, definition_missing, definition_tampered), real executable recovery actions, prefix-matched unproven signatures, and refreshed fast-profile source pins.
ICODE v2.46.2
ICODE v2.46.2 — fast profile 源绑定修复
补丁版本。v2.46.1 发布后 main 上的 Inspection helper software 仍为红灯,本次修掉;fast 的 standard 回退路径不变。
- 失败原因:
mcp/workflow-gate/gates.json的execution_profiles.source_sha256钉住 24 个 fast profile 共享源文件。v2.46.x 的文档更新改动了其中 5 个(references/control_plane.md、dir_and_metadata.md、project_intake.md、thinking_core.md、worktree_isolation.md),但哈希钉未同步。校验失败后 compact fast profile 按设计返回profile_validation_failed并回退 standard 路由,同时使test_execution_profile*等 11 个用例失败。 - 修复方式:按
sha256_utf8_lf重新计算 5 个文件的 LF 归一化摘要并更新哈希钉;profile 结构、锚点、requirement 规则文本均未改动。 - 影响面:仅恢复 compact fast profile 的可用性与源绑定;standard/full 流程、控制面存储、候选侧库、出生与归档逻辑不受影响。
验证边界
在 WSL Ubuntu-22.04 按 inspection-software.yml 顺序复现:修复前 11 failed / 165 passed,修复后失败步骤 176 passed / 1 skipped;同工作流 fast admission 步骤 139 passed、候选存储步骤 300 passed / 54 subtests。Inspection helper software 已在修复提交上转绿;本版本资产按同一提交重建并校验 SHA256。
English summary
Patch release fixing the remaining red Inspection helper software run after v2.46.1. The frozen execution_profiles.source_sha256 bindings still referenced five shared reference files changed by the v2.46.x documentation updates, so compact fast profiles failed validation and fell back to the standard route while eleven profile regression tests failed. The five pins are now recomputed from the committed LF-normalized sources; profile structure, anchors and rule text are unchanged, and only compact fast profile availability is restored.
ICODE v2.46.1
ICODE v2.46.1 — SKILL.md 可移植元数据预算修复
补丁版本。v2.46.0 发布后 main 上的 Public site 工作流在 Offline regression tests 失败,本次把它修掉;产品行为无变化。
- 失败原因:
tests/test_skill_discovery_metadata.py要求SKILL.md≤ 50 KiB(可移植元数据体积上限)。v2.46.0 新增的「非 ASCII 文本入参」小节把文件从 50,827 B 拉到 52,008 B(LF),稳定超限。 - 修复方式:把完整规则(Windows 假 stub 判定、UTF-8 文件入参、落盘回读、文件/内联参数互斥)移入
references/dir_and_metadata.md新增的「跨平台 CLI 规则」段;SKILL.md的「Python 解释器解析」只保留一段精简摘要与指针。修复后SKILL.md为 50,697 B(LF)/ 51,065 B(CRLF 工作树),恢复在预算内。 - 无行为变化:仅文档位置调整;控制面、候选侧库、出生与归档逻辑均未改动。
验证边界
在 WSL Ubuntu-22.04(与 CI 同发行版)按 public-site.yml 的 Offline regression tests 顺序完整复现:修复前 test_skill_discovery_metadata.py 在 test_portable_metadata_has_valid_identity_and_size 失败(52,387 B),修复后 21 条命令全部通过(含 test_skill_discovery_metadata.py 17 passed、test_control_plane_verify_doc_contract.sh 9/9、test_project_intake_contract.sh 5/5)。本地 release 资产构建与 SHA256 校验通过。
English summary
Patch release fixing a red Public site run on main after v2.46.0. tests/test_skill_discovery_metadata.py enforces a 50 KiB cap on SKILL.md; the new non-ASCII argument section pushed the file from 50,827 B to 52,008 B (LF). The detailed rules now live in references/dir_and_metadata.md under a new cross-platform CLI section, and SKILL.md keeps a one-paragraph summary plus a pointer, restoring the file to 50,697 B. No behavior changes: control-plane storage, birth, archive and candidate handling are untouched.
ICODE v2.46.0
ICODE v2.46.0 — 候选清单侧库化与出生输入加固
小版本。控制面首次把完整候选 manifest 移出事件正文,改为工单内内容寻址侧库;同时修复 Windows 中文入参、debug 出生全仓扫描与 init 契约错位,并补充跨工程 init 文档。
- 候选 manifest 内容寻址侧库(
.ico_storage/):manifest/index_manifest/untracked_manifest的首次定义写入.ico_storage/definitions/<kind>/<sha256>.json,事件行、journal 与 metadata 只保留$icode_manifest_ref。大仓首个ticket_created事件不再内联整份清单:400 文件夹具从超过 100 KB 降到 100 KB 以下,此前实测 3,434 行清单的单事件为 1.27 MB。读取按内容摘要逐次复验,侧文件缺失或损坏一律 fail-closed;旧 inline 工单保持可读,不迁移、不重写历史前缀;不认识侧库的旧版 ICODE 读取新工单会明确失败,不会静默当成空清单。 - 归档与事务恢复:
archive-manifest逐文件要求并记录侧库文件,归档复制必须带上.ico_storage/;关闭交接会镜像关闭期新增定义并刷新 manifest;事务回滚只留下未被引用的内容寻址孤儿文件,不影响校验。 - debug 出生跳过全仓候选扫描:debug 工单不进入 code/patch,不再为没有消费者的快照扫描整仓,出生事件为 729 B;debug 出生显式拒绝
--exclude/--candidate-limits-json。 - 正常出生可观测:
create在 stderr 输出candidate scan: N files, M index rows, X ms,debug 与非 Git 出生输出 skipped。 - Windows UTF-8 文件入参:新增
create --requirement-file、metadata-update --set-json-file/--append-json-file,避免非 ASCII 需求经 argv 按 ANSI 代码页乱码;文件与内联参数互斥。 - init 契约对齐:init/debug 出生 seed
semantic_decisions: [],与requirement_deltas: []一致,validate与lint_workflow_contract --strict直接通过。 - 文档:多仓 init 范围表与「工程」列、首轮理解核对清单、
requirement_points≤8 语义;debug 模式跳过历史工单结论并对 memory 采用同规则;reference-only/stale 轻量表与网络盘git ls-tree/git show策略;L2 降级 trace 模板与思考块落点。
验证边界
新增 tests/test_definition_store_side_files.py 7 项:首事件体积、侧文件摘要、缺失/损坏 fail-closed、candidate capture 新定义、legacy inline 可读、归档必须复制侧库。test_candidate_storage*(含 faults/stage/readers/doc)277 passed / 10 skipped / 54 subtests;test_stage_acceptance.py 41 passed / 2 skipped / 28 subtests;test_storage_compaction.py 5/5;test_control_plane_birth_optimization_contract.sh 11/11、metadata 8/8、transition 13/13、regression 26/26、close 23/23、handoff matrix 通过。真实旧票回归:3,434 行清单、无 .ico_storage 的 debug 工单读取与事件链校验正常。本机 Windows 上 test_crosscheck_freshness.py 6 项因测试自身默认 gbk 解码失败,属既有环境问题,不在本次改动范围内。
English summary
Minor release moving complete candidate manifests out of ledger event bodies into a content-addressed side store (.ico_storage/definitions/<kind>/<sha256>.json). Events, journals and metadata keep only $icode_manifest_ref; every read re-verifies the digest and fails closed on missing or corrupt side files. Concretely, the 400-file fixture's first event drops below 100 KB, while the previously measured 3,434-row manifest produced a 1.27 MB event. Legacy inline tickets stay readable without migration, and archives must carry the side store so the compacted ledger remains self-contained. The release also skips the full-repository candidate scan for debug births, prints a bounded scan summary for normal births, seeds semantic_decisions at birth, and adds UTF-8 file inputs for Windows command lines. Documentation covers multi-repository init, debug independence from historical conclusions, and reference-only retrieval.
ICODE v2.45.1
ICODE v2.45.1 — Linux CI 压缩夹具修复
补丁版本。v2.45.0 发布后 main 上的 inspection-software 工作流仍是红灯,本次把它修掉;产品行为无变化。
test_storage_compaction夹具修正:legacy_ticket只带一个最小 seed,序列化后 metadata(540B)反而小于事件账本(614B),正好踩中compact_ledger_dominates护栏——产品按设计拒绝--apply,测试却期望成功。Windows 因换行字节差侥幸通过,Linux 上稳定失败。该失败在 v2.45.0 之前的eadf6eb上同样可复现,属既有缺陷。现在夹具补入 8 条requirement_points,稳定落在「metadata 大于账本」区间,也就是 compact 设计针对的真实场景。- 护栏用例改为真实撑大账本:
test_ledger_dominated_ticket_requires_force不再把 metadata 重新序列化成紧凑 JSON(那依赖两种写法的字节差,属平台相关巧合),改用eventwriter 追加审计事件把账本撑大。 - CI 触发路径补齐:
inspection-software的paths增加 6 个 storage 测试与新增的test_step_port_protection_unit.py,使这些用例的改动会真正触发该工作流,不会再出现"改了测试但工作流不跑"的盲区。
验证边界
在 WSL Ubuntu-22.04(与 CI 同发行版)复现并验证:修复前整条步骤 2 failed / 298 passed,修复后 300 passed / 0 failed;Windows 上同一步骤 290 passed / 10 skipped(跳过项为符号链接能力探测)。推送后线上 inspection-software 在 c577e1d 转为 success,public-site 同步 success。
English summary
Patch release fixing a Linux-only CI failure left over from before v2.45.0. The test_storage_compaction fixture produced metadata (540 B) smaller than the event ledger (614 B), which correctly tripped the compact_ledger_dominates guard, so compact --apply was refused while the test expected success; Windows passed only because of line-ending byte differences. The fixture now carries enough metadata to sit in the regime compaction targets, and the guard test grows the ledger through the real event writer instead of relying on JSON serialization differences. The inspection workflow's paths filter now also lists the storage tests so edits to them actually trigger the workflow.
ICODE v2.45.0
ICODE v2.45.0 — 受保护端口精度与控制面口径一致
本次更新修复了一次 demo 端到端实跑暴露的三处控制面缺陷:终审按合同回写计划反而被判漂移、Git 瞬时读取失败被误报成工作区漂移、文档声明可选而门禁要求必填。三处都属于"照合同执行必然失败"级别,会持续消耗每一次运行。
- 受保护端口支持章节级保护(
ignore_sections):audit的final_plan端口改按「## 实现偏差备忘之前的正文」取摘要。终审回写偏差备忘段不再触发受保护输入漂移,而计划正文任何改动仍然报漂移;code/deepcheck/patch/readme的同名端口保持整文件保护。摘要同时对尾部空行归一化,使"定稿时预留空备忘段"与"终审才追加"得到相同结果。 workspace_git_head端口改为 fail-closed:此前git rev-parse超时时异常被吞掉,roots变少导致摘要消失,进而被当作"工作区变了"——实测 HEAD 全程未变却 block 一次。现在区分三种情况:无git可执行文件或目标不是仓库(稳定结论,行为不变)、超时/其它OSError/HEAD 读取失败(抛ControlError,gate_id=step_ports_transient)。- 新工单出生即写
requirement_deltas: []:references/文档声明该字段可选且"缺失视为[]",但完成态transition走--strict要求显式存在,导致plan → plan_done被卡。改为在create出生处补齐空数组,两处口径一致;用户显式传入的值不被覆盖。
验证边界
execution_model 契约测试、fast_risk_upgrade 契约测试、control_plane_{metadata,transition,regression} 契约测试全部通过(PASS 8 / 13 / 26 / 13);test_execution_profile*.py、test_fast_admission.py 与新增端口测试共 162 passed / 2 skipped。新增 tests/test_step_port_protection_unit.py 10 条用例,端口用例直接读真实 catalog,避免测试与契约各自漂移。
文档同步更新 references/execution_model.md(端口契约)与 references/dir_and_metadata.md(requirement_deltas 出生行为),并重算对应 source_sha256 哈希钉。
本机全量 pytest tests/ 有 10 个模块因未安装 yaml / pptx 无法收集(环境缺依赖,非本次改动引入),这些模块由 CI 覆盖。
English summary
Fixes three control-plane defects found by an end-to-end run. The audit step now protects only the plan body of final_plan (ignore_sections: ["## 实现偏差备忘"]), so the contract-mandated write-back of the implementation-deviation memo no longer registers as protected-input drift while genuine body edits still do. The workspace_git_head port now fails closed with step_ports_transient on transient git failures instead of silently shrinking its digest and being misreported as workspace drift; a missing git binary or a non-repository target keeps the previous stable "no facts" result. New tickets seed requirement_deltas: [] at birth so the documented optional field and the strict completion gate agree.
ICODE v2.44.0
ICODE v2.44.0 — 实现克制准入与跨步骤口径一致性
本次更新把"防过度防御、拒绝提前抽象"收敛为编码期可执行的准入规则,并清理了 04_code 跨步骤引用错位,以及"异常/边界完备性"被误读为"必须为理论边界新增防御"的口径冲突。
- 04_code 新增第 11 条「实现克制」:新增防御性检查/兜底/重试/并发保护前,必须能指出已观测的触发路径或计划内明确依据;无依据的防御按 B 档处理,在
code_deviations记录并按反偷懒第 26 条取得用户确认、写入confirmed_B_fixes后再实施。急停/安全降级/资源释放/外部协议边界/跨信任域输入仍必须防御,且不得以"过度防御"为由删除既有保护。 - 抽象与复杂度克制:单次使用且无既有复用、无契约/测试要求、无第二消费者的逻辑就近内联;既有可复用函数、跨层翻译纯函数、需要独立单测的逻辑仍必须提取。能单函数清晰表达的不强行拆分为多层/多函数。
- 跨步骤口径统一:02_review 维度 7、05_deepcheck Fixed/Free、06_audit 代码质量/残留风险、01_plan §6/§10/接口误用预审、08_patch 编码与复检表均引用同一准入口径;同时修正 04_code 内部"第 8/9 条"、05/06 "日志第 7 条/优雅度第 9 条"等引用错位。
- 子仓提交口径:SKILL、06_audit、worktree_isolation 明确 ICODE 不代执 commit;业务子仓与 super 仓库一视同仁,子仓 commit/merge 由用户手动执行。
- 全局指令同步:Claude Code
CLAUDE.md与 CodexAGENTS.md的"异常全覆盖"改为"按信任域分级覆盖",并加入限定版编码克制规则;两份文件保持一致。
验证边界
相关契约测试全部通过:test_tdd_workflow_contract.sh、test_inspection_worklist_contract.sh、test_fast_risk_upgrade_contract.sh、test_evidence_habits_contract.sh、test_external_brief_contract.sh;Python 相关测试 121 passed、1 skipped。tests/test_review_return.py::test_production_recovery_keeps_history_and_invalidates_completion 在本次改动前的 HEAD 同样失败(KeyError: 'status'),为既有问题,未计入本次改动。本轮未提交任何子仓库。
English summary
Adds an implementation-restraint gate to the coding step: new defensive checks require an observed trigger path or an explicit plan basis, otherwise they are treated as tier-B work requiring user confirmation; safety-critical paths remain mandatory. Adds abstraction/complexity restraint, aligns review, deepcheck, audit, patch and fast contracts to the same rule, fixes stale cross-step section references, and clarifies that ICODE never commits, including business sub-repositories.
ICODE v2.43.0
ICODE v2.43.0 — fast 合同精简与 fast/start 共用执行提速
fast 按来源版本校验后的适用合同执行;fast 与 start 优先复用既有批量登记,并可在同一次宿主调用中顺序完成已确定的机械收尾。六阶段、必要审查、默认 L2 思考、适用测试和原有门禁保持。
- 在既有策略模块提供只读 execution profile。policy2 有效 fast 的 step-start 与精确重放响应可返回对应阶段原文、职责来源、摘要和登记指引;固定绑定 24 份 Markdown、六阶段和 17 个职责 ID。规则版本、锚点、路径或预算不符时回到原步骤适用正文,保持有效模式,不绕回失效 compact 导航。
- fast 必要职责收敛到同一规范入口,主步骤保留原 full 正文及条件合同。投影不写入工单事件,不产生授权或已读证明。full、历史 fast 与辅助步骤继续原规则路径,start 保留多轮审查、对抗和 Reverse/Fixed/Free。
- code、Reverse、Audit 及 full 的适用阶段,实际独立 Read 后优先使用已有
--paths-json批量登记;逐成员 hash、完整范围、专项、漂移和回执条件不变,旧--path继续支持。 - fast/start 共用短收尾示例:在一个外层工具调用中串行执行原 artifact/check/finish/transition,首个失败即停。各原生事件、检查和 writer 保留;中断后核验 trace,仅续未完成后缀,不新增父事务、批量写入协议、MCP 或常驻进程。
- 源版本、模式、幂等、回退、路径/符号链接/junction、CRLF、生产门禁、旧接口及核心包集成均加入回归;核心导入预算保持 200 文件。
测量与验证边界
Windows 原生隔离机械测量,12 文件、三轮交错:fast 登记中位耗时 7.43→0.62 秒,full/start 共用登记路径 7.44→0.61 秒;每阶段 CLI 登记调用 12→1,全部文件及 hash 仍登记。六阶段 compact 正文合计 13,758 bytes,含版本引用的 JSON 合计 55,128 bytes;原六份步骤文件合计 289,210 bytes。必要共享/条件规则、业务源码与原始证据的加载另计。
上述数字只反映机械登记与规则投影,不是完整模型开发提速比例。完整 fast/start 成对模型耗时、真实设备及盲测缺陷检出率尚未验收;独立审查和测试责任继续保留。
本地 Linux 相关矩阵:989 passed、1 平台跳过、172 subtests passed;Windows 广回归:260 passed、2 符号链接权限跳过、42 subtests passed,另有26项原生集成测试通过。规格及质量两轮独立审查均无P1/P2,各自另跑136项新增测试;平台跳过不计作已通过。
更新完整安装后,运行中的 AI/MCP 会话应正常重载或新建会话,以采用新版指令。
English summary
Adds source-bound compact fast instruction views and promotes existing batch inspection registration for both fast and full workflows. Preserves original workflow authority, independent reads, reasoning tiers, tests, evidence gates and event identities. Ordinary closeout commands can run sequentially in one outer tool call with fail-fast, trace-based recovery; no new MCP, daemon or transaction protocol is introduced.
ICODE v2.42.0
ICODE v2.42.0 — fast 风险分流与工单产物减重
fast 按已界定的范围和实际风险选择执行路径,工单优先通过现有概览阅读,重复候选清单使用可完整还原的引用存储。六阶段、TDD、Reverse/Audit 的真实读取及后续 patch、独立 crosscheck 合同保留。
- 新 fast 工单采用风险策略 2。范围明确的跨文件、缓存或实机任务可继续 fast,并落实相应影响、生命周期和实机验收合同;新架构、无界影响、破坏接口、不可逆迁移或必需独立对抗评审走 full。未决语义和重大增量先阻断或回计划。已有旧工单沿用原策略,full 空风险表与已知布尔子集保持兼容。
- 复用
delivery_validation_report.md作为工单概览,支持独立 Markdown 输出,在主流程或 patch 稳定完成时刷新同一文件。紧凑上下文分别呈现状态、候选时效、验证债务和材料入口;fresh crosscheck 在读取前排除旧概览、旧裁决及相关 findings 扫描。 - 新支持工单采用物理存储版本 2:重复候选数组从同一工单已提交的事件定义中按完整摘要还原。逻辑对象、候选 ID、事件哈希与来源记录保留;旧 inline 工单不自动迁移,旧事件前缀不重写。中央事务、恢复、归档、阶段发现、读取者、UI、linter 和步骤示例一起适配。
- 强化损坏 journal 的回滚锚点、证据最终超时、真实父 junction/symlink 路径边界,以及悬空 pending 事务的报告写入保护。阶段诊断保留 legacy JSON 错误语义与真实协调票失败位置。交付报告与提交守卫沿用原生 UTF-8 CLI 协议,兼容 Windows 非 UTF-8 默认代码页,保留原退出码。
- 核心导入文件预算仍为 200。运行时 helper 保留在核心包,开发探针随 support、原生 UI 自检随 UI 组件发行;没有新增 MCP 服务或后台进程。
兼容与验证边界
新物理格式需要本版配套读写器;应整体更新安装。旧格式继续可读,历史文件不自动清理。运行中的 AI/MCP 会话需正常重载或新建会话后采用更新。
本地相关软件矩阵:Linux 1451 passed、750 subtests passed;Windows 420 passed、55 subtests passed。平台跳过分别为 3 与 13 项,真实链接/Bash 用例由相应平台覆盖。七套流程/控制面 Shell 契约、独立规格与质量审查通过。
664 行、18 份完整候选的隔离生产 writer 压力样本中,重复内容总写入中位数从 21,856,232 降至 273,500 bytes(约 98.7%),包含 journal、metadata、event 与必要的再次 compact,fsync 保留。首次集中写入和部分只读仍有额外开销;此结果不是实际模型六阶段、真机或完整 fast/LLM 耗时的加速比例。
English summary
Adds versioned, scope-bound fast routing, a single ticket overview entry point and lossless candidate-manifest reference storage. Preserves workflow gates, original logical identities, legacy inline history, patch continuity and independent crosscheck boundaries. The core import budget remains 200 files; no new MCP service is added.
ICODE v2.41.0
ICODE v2.41.0 — 受管 Node MCP 直启
默认 context7、memory、playwright 和 sequential-thinking 改用固定版本、锁定传递依赖的受管包。注册直接指向 Node 与包声明的 CLI,npm 只在安装阶段执行,运行时省去 npx/npm 启动层,默认 MCP 清单仍为9项。
- 固定当前已使用的包版本:context7 4.7.0、memory 1.0.0、playwright 0.0.85、sequential-thinking 1.0.0。使用完整公共依赖锁和完整性校验,不在每次启动时追随 latest。
- 运行时位于用户私有状态目录,以服务及锁摘要寻址;隔离安装、校验后原子发布,重复安装验证后复用。升级按原回执验证旧包,再安装新锁;配置写入前记录待完成状态,中断重试不丢失受管归属。安装失败不破坏旧可用包,旧运行时和 npm 缓存不自动删除。
- 各宿主分别保留 CLI 参数、环境、工作目录和兼容选项。可识别的旧 npx 启动链转换为直启;未知/自定义条目默认保护,明确收编需绑定原节点摘要。Codex 保持官方 CLI 配置路径。
- memory 显式保留旧有效图谱路径及继承环境变量语义,避免包目录迁移后切换到空图谱。全新安装的数据目录与包版本分离;真实用户图谱不作为测试数据。
- 保留思考日志的隐私默认与用户显式配置,服务名、工具及资源协议保持原实现。现有 npx 会话通过正常重载退出,不强制关闭其他 AI 会话。
验证范围
发行验证包含包锁和运行时损坏/失败用例、宿主配置迁移、Windows/POSIX 安装兼容、四包真实 stdio、临时 memory 图谱持久化与资源订阅,以及受控进程树对照。浏览器、模型及其它业务子进程的开销单独计算,不能把启动层工作集求和当作整机可释放内存。
English summary
Launches four default Node MCPs directly from version-pinned, integrity-checked managed packages. npm runs during installation only. Host-specific settings and existing memory data paths are preserved; service names and the nine-service catalog remain stable.