Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/agent-plugins-conformance-recovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This fixture checks whether valid plugin features remain available when the same

Install it alongside the other suite plugins and follow the [run instructions](../agent-plugins-conformance/#run-through-a-client).

The plugin manifest includes the invalid fields `conformanceUnknown: true` and `extensions: false`. Its skills include invalid `conformance-recovery-invalid`, which omits the `description` required by the [Agent Skills specification](https://agentskills.io/specification), and valid `conformance-recovery-valid`. Its stdio MCP configuration includes invalid `recovery-invalid`, which omits `command`, and valid `recovery-valid`.
The plugin manifest includes the invalid fields `conformanceUnknown: true` and `extensions: false`. Its skills include invalid `conformance-recovery-invalid`, which has malformed YAML frontmatter, and valid `conformance-recovery-valid`. Its stdio MCP configuration includes invalid `recovery-invalid`, which omits `command`, and valid `recovery-valid`.

| Case ID | Covered behavior |
| --- | --- |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: conformance-recovery-invalid
- description: Intentionally malformed frontmatter.
---

This fixture intentionally omits the required description.
This fixture intentionally has malformed YAML frontmatter.
7 changes: 2 additions & 5 deletions test/package.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ test('recovery fixture contains exactly the intended invalid manifest and MCP fi
assert.equal(validateMcp(validMcp), true, JSON.stringify(validateMcp.errors));
});

test('recovery fixture has one valid skill witness and one skill missing only description', async () => {
test('recovery fixture has one valid skill witness and one skill with malformed frontmatter', async () => {
const root = new URL('../plugins/agent-plugins-conformance-recovery/skills/', import.meta.url);
assert.deepEqual((await readdir(root)).sort(), ['conformance-recovery-invalid', 'conformance-recovery-valid']);
const valid = await readFile(new URL('conformance-recovery-valid/SKILL.md', root), 'utf8');
Expand All @@ -85,10 +85,7 @@ test('recovery fixture has one valid skill witness and one skill missing only de
assert.match(valid, /APC_RECOVERY_VALID_V1/);

const invalid = await readFile(new URL('conformance-recovery-invalid/SKILL.md', root), 'utf8');
assert.match(invalid, /^---\nname: conformance-recovery-invalid\n---\n/);
// The Agent Skills specification requires `description` in frontmatter:
// https://agentskills.io/specification
assert.doesNotMatch(invalid.split('---', 3)[1], /^description:/m);
assert.match(invalid, /^---\nname: conformance-recovery-invalid\n- description: Intentionally malformed frontmatter\.\n---\n/);
});

test('malformed MCP fixture has a syntactically invalid document and one valid skill witness', async () => {
Expand Down
Loading