docs(skills): update SKILL.md guides for herdr workspace runtime synchronization and add unit tests

This commit is contained in:
2026-08-24 13:18:45 +09:00
parent fc8ca88107
commit b859970b84
3 changed files with 24 additions and 1 deletions
+22
View File
@@ -843,4 +843,26 @@ def test_g10_delegate_job_rc3_not_mistaken_for_error(mam_sandbox):
assert 'job_status="broker_unavailable"' in content
def test_claude_adapter_ready_tokens_includes_modern_banners():
"""Verify claude adapter ready_tokens regex includes modern Claude Code banners."""
from lib_py.agents.adapters.claude import ClaudeAgentAdapter
adapter = ClaudeAgentAdapter()
tokens = adapter.ready_tokens
assert "Claude Code" in tokens
assert "Opus" in tokens
assert "Sonnet" in tokens
import re
assert re.search(tokens, "Claude Code v2.1.241")
assert re.search(tokens, "Opus 5 with high effort · Claude Pro")
def test_lib_sh_new_session_passes_mam_ws_label(mam_sandbox):
"""Verify lib.sh new-session translates MAM_WS_LABEL to herdr workspace create --label and rename."""
lib_path = mam_sandbox / "skills" / "lib.sh"
content = lib_path.read_text()
assert '${MAM_WS_LABEL:+--label "$MAM_WS_LABEL"}' in content
assert '_real_herdr workspace rename "$existing_ws" "$MAM_WS_LABEL"' in content