{
  "$schema": "https://skill-map.ai/spec/v1/conformance-case.schema.json",
  "id": "sidecar-end-to-end",
  "description": "Step 9.6.6 — co-located `.sm` sidecar end-to-end. Scanning a fixture that carries a stale sidecar (wrong `identity.{bodyHash,frontmatterHash}`) plus an orphan sidecar (no sibling `.md`) MUST surface `sidecar.status` on the node and emit the `annotation-orphan` warning (per orphan `.sm`) from the built-in core analyzers. Drift is icon-only since 2026-07-20: the `annotation-stale` analyzer surfaces the derived `sidecar.status` via card contributions and emits NO issue, so a default scan yields exactly one issue for this corpus.",
  "fixture": "sidecar-end-to-end",
  "invoke": {
    "verb": "scan",
    "flags": ["--json"]
  },
  "assertions": [
    { "type": "exit-code", "value": 0 },
    { "type": "json-path", "path": "$.schemaVersion", "equals": 1 },
    { "type": "json-path", "path": "$.stats.nodesCount", "equals": 1 },
    { "type": "json-path", "path": "$.nodes[0].path", "equals": ".claude/agents/stale.md" },
    { "type": "json-path", "path": "$.nodes[0].sidecar.present", "equals": true },
    { "type": "json-path", "path": "$.nodes[0].sidecar.status", "matches": "^stale-(body|frontmatter|both)$" },
    { "type": "json-path", "path": "$.nodes[0].sidecar.annotations.version", "equals": 7 },
    { "type": "json-path", "path": "$.stats.issuesCount", "equals": 1 },
    { "type": "json-path", "path": "$.issues[0].analyzerId", "equals": "annotation-orphan" },
    { "type": "json-path", "path": "$.issues[0].severity", "equals": "warn" },
    { "type": "json-path", "path": "$.issues[0].data.expectedMdPath", "equals": ".claude/agents/orphan.md" }
  ]
}
