specode 6.1.1: contract-lockstep CI gate + knowledge-flow mental model#77
Merged
Conversation
…er contract Turns the CLAUDE.md 变更纪律 prose into a CI gate. Reads knowledge.py's ACTUAL emitted MEMORY header (behavioral, via memory-rebuild on a fixture) and asserts it matches the columns documented in retrieval.md and distill's doc-template.md, plus that doc-template's frontmatter keys match what knowledge.py reads. The order-preserving extractor is negative-controlled to fail on a reordered or dropped column, so the gate can actually catch drift instead of passing trivially. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-Authored-By: Qiang Xue <qxbyte@users.noreply.github.com>
…fixups New references/knowledge-flow.md — an ASCII producer→index→consumer map of the KB loop (distill writes / knowledge.py indexes / intake+design read; tasks+execution zero) with the 定位用非事实用 invariant and the pointers to each part's authoritative doc. Linked from SKILL + intake References and both README architecture trees (also surfacing autonomous-mode.md there). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-Authored-By: Qiang Xue <qxbyte@users.noreply.github.com>
…tal model Bump both manifests to 6.1.1, date both CHANGELOGs, refresh README version rows, and fix the stale specode version badge (drifted at 5.2.0 since 6.0.0). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-Authored-By: Qiang Xue <qxbyte@users.noreply.github.com>
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.
Summary
P1 契约测试 + P2 知识流文档(评估文档优先级表里的两项),零 breaking。
tests/test_contract_lockstep.py:把 CLAUDE.md 的「变更纪律」变成可执行测试。读knowledge.py真实产出的 MEMORY 表头(跑memory-rebuild,非源码内省),断言它与references/retrieval.md、skills/distill/references/doc-template.md文档化的列一致,并断言 doc-template 的 frontmatter 键 == knowledge.py 读的键。提取器经负控验证能抓 reorder/drop——门禁可真失败,不是白过。三处任一漂移 → 测试红。(+5 测,共 90。)references/knowledge-flow.md:ASCII 产出→索引→消费全图(distill 写 /knowledge.py索引 / intake+design 读、tasks+执行零注入)+「定位用非事实用」不变量 + 各部件权威文档指针。挂进 SKILL/intake References + 两 README 架构树。Test plan
.venv/bin/python -m pytest plugins/specode/tests/ -q— 90 passed(含 5 个新契约测试)python3 scripts/check_marketplace_versions.py— 4 插件同步于 6.1.1🤖 Generated with Claude Code