Skip to content

Commit c0c86b7

Browse files
committed
Add provenance docstrings to the new Skills tests
1 parent 42eff6c commit c0c86b7

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/client/extensions/test_skills.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ async def test_get_skill_returns_the_matching_entry() -> None:
189189

190190

191191
async def test_list_and_get_skill_preserve_skill_meta() -> None:
192+
"""ext-skills#157: a skill's optional `_meta` survives server -> wire -> client on both methods."""
192193
meta = {"example.com/owner": "platform"}
193194
skill_with_meta = Skill(
194195
uri=_SKILL_URI,

‎tests/server/test_skills.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ async def mutating_list(ctx: ServerRequestContext[Any, Any], params: ListSkillsP
180180

181181

182182
async def test_skills_list_sends_skill_meta_as_underscore_meta() -> None:
183+
"""ext-skills#157: a skill's optional metadata crosses the wire as `_meta`, not `meta`."""
184+
183185
async def with_meta(ctx: ServerRequestContext[Any, Any], params: ListSkillsParams) -> ListSkillsResult:
184186
skill = _git_workflow_skill().model_copy(update={"meta": {"example.com/owner": "platform"}})
185187
return ListSkillsResult(skills=[skill])
@@ -344,6 +346,8 @@ async def test_directory_read_defaults_to_private_cache_scope_on_the_2026_07_28_
344346

345347

346348
async def test_directory_read_omits_cache_fields_on_a_legacy_wire() -> None:
349+
"""SEP-2549 fields are 2026-07-28+ only, and the runner's sieve skips extension methods,
350+
so `Skills` strips them itself for an older connection."""
347351
async with Client(_server(with_directory_read=True), mode="legacy") as client:
348352
raw = await client.session.send_request(
349353
ReadDirectoryRequest(params=ReadDirectoryParams(uri="skill://git-workflow")), _RawResult

0 commit comments

Comments
 (0)