Skip to content

docs(vocabulary): author from the declared contract, not package source - #36

Merged
rponeawa merged 1 commit into
mainfrom
docs/author-from-declaration-not-source
Aug 22, 2026
Merged

rponeawa merged 1 commit into
mainfrom
docs/author-from-declaration-not-source

Conversation

@rponeawa

Copy link
Copy Markdown
Member

修复另一个复刻会话滑向读包源码的问题。

问题

skill 指示"run inspect + 读 README"。caption-fine 的 README 只有 64 行、一个示例配方,没有逐参数参考。模型按指示读 README 发现不够,就滑向读包的 TypeScript 源码。

事实

inspect_svml_vocabulary 的输出已经声明了全部 95 个 recipe 参数,每个带 summary 和 admitted values——参数参考是齐的,在声明里不在源码里。

改动

  • vocabulary.md:明确 inspect 输出即完整作者契约,据此写,不要读包源码学语法;薄 README 是薄示例,不是缺文档;loader 按声明拒绝误写属性,不是按源码。
  • authoring.md:"读 README"改为"inspect 声明 + README 当示例"。

🤖 Generated with Claude Code

A reconstruction session in another thread reached into the caption package's
source to learn its parameters, because the skill told it to "read the README"
and the caption-fine README is one illustrative recipe with no per-parameter
reference. The declarations were already complete: inspect_svml_vocabulary
returns every recipe property with its summary and admitted values.

vocabulary.md now states that output is the complete authoring contract — author
from it, do not read a package's source to learn its syntax; a thin README is a
thin example next to a complete declaration, and the loader refuses a mistaken
attribute against the declaration, not against the source. authoring.md reads
the same way, framing the README as the example rather than the parameter
reference.
@rponeawa
rponeawa merged commit b512a7d into main Aug 22, 2026
2 checks passed
@overlordkim
overlordkim deleted the docs/author-from-declaration-not-source branch August 26, 2026 08:06
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
…-source

docs(vocabulary): author from the declared contract, not package source
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
…-source

docs(vocabulary): author from the declared contract, not package source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant