instructions: the agent speaks the KB language in chat - AGENTS.md § Conversation language, and instructions sync compiles the language tag into every published SKILL.md (#116); 10.0.0-beta.9
Files changed: - AGENTS.md - CHANGES.md - VERSION - docs/explanation/language-boundaries.md - docs/reference/commands/types-instructions-and-docs.md - instructions/CONTRACT.md - instructions/dev/stack-build/SKILL.md - instructions/dev/stack-close/SKILL.md - instructions/dev/stack-dev/SKILL.md - kb/CONVENTIONS.md - kb/CONVENTIONS.md.template - tools/CONTRACT.md - tools/chemenu/commands/doctor.py - tools/chemenu/commands/instructions_cmd.py - tools/chemenu/tests/test_doctor.py - tools/chemenu/tests/test_instructions_cmd.py Co-Authored-By: Claude Code <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SnAJ7Z3CpVD3PRbN73QtU2
This commit is contained in:
1 parent
c06bde2e95
commit
0f0a5799fd
16 files changed
+385
-54
No files matched your search
@@ -461,6 +461,22 @@ def test_unpublished_skills_fail(instance):
|
||||
assert _status(checks, "skills") == "FAIL"
|
||||
|
||||
|
||||
def test_a_changed_conversation_language_fails_skills_and_names_the_block(instance):
|
||||
(config.KB_DIR / conventions.CONVENTIONS_FILENAME).write_text(
|
||||
"---\nlanguage: de\nprofile: none\nsections:\n links: Relationships\n"
|
||||
" footnotes: Footnotes\n---\n\n# conventions\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
conventions.reset_cache()
|
||||
checks = doctor.run_doctor()
|
||||
assert _status(checks, "skills") == "FAIL"
|
||||
assert "2 published copy/copies drifted" in _detail(checks, "skills")
|
||||
assert "language block is for `en`, conventions say `de`" in _detail(checks, "skills")
|
||||
|
||||
instructions_cmd.sync(force=False)
|
||||
assert _status(doctor.run_doctor(), "skills") == "OK"
|
||||
|
||||
|
||||
def test_no_author_fails(instance, monkeypatch):
|
||||
monkeypatch.delenv("WIKI_AUTHOR", raising=False)
|
||||
monkeypatch.setattr(config, "default_author", lambda: None)
|
||||
|
||||
Reference in new issue
Block a user