[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J4CVN4BB9GK4S8CE8F058N":3,"skill-same:01M6J4CVN4BB9GK4S8CE8F058N":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6J4CVN4BB9GK4S8CE8F058N","mcs-pipeline-test",null,"Use this skill to run the MCS build pipeline verify-fix harness against the canonical kitchen-sink agent. The harness reads back every component from MCS via API, classifies any drift against a fixed taxonomy, and auto-applies fixes for confirmed classifications. Use when validating the build pipeline end-to-end, after touching tools\u002Fmcs-lsp.js, tools\u002Fisland-client.js, tools\u002Fadd-tool.js, or app\u002Flib\u002Fbuild-runner.js, or when component pushes are silent-failing in real builds.","dayour\u002FMCS-Agent-Builder","dayour","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F27440189?v=4","01M6J4B4HCG47B9AN14ADC3FV5","01M6J4B4P4QYVAZ0C7PZ84E1XD",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcs-pipeline-test\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"mcs pipeline test","pipeline","pipeline test","test","back","mcs build","fixes","for","app","end","drift","lsp","runner","auto","use","fix","tool","taxonomy","api","harness","2026-11-10 10:12:30",false,"---\nname: mcs-pipeline-test\ndescription: \"Use this skill to run the MCS build pipeline verify-fix harness against the canonical kitchen-sink agent. The harness reads back every component from MCS via API, classifies any drift against a fixed taxonomy, and auto-applies fixes for confirmed classifications. Use when validating the build pipeline end-to-end, after touching tools\u002Fmcs-lsp.js, tools\u002Fisland-client.js, tools\u002Fadd-tool.js, or app\u002Flib\u002Fbuild-runner.js, or when component pushes are silent-failing in real builds.\"\n---\n\n# MCS Pipeline Verify-Fix Harness\n\nBuilds the canonical \"kitchen-sink\" test agent in the **dktest** environment, reads back every component from MCS, and iterates fix → verify until all verifiable components match the spec. Wraps `\u002Fmcs-build`; does not replace it.\n\nThis skill is the entry point for the harness. The runner that drives the loop is `tools\u002Fpipeline-test-loop.js`. The verifier library is `tools\u002Fverify-component.js`. Failure taxonomy lives in `tools\u002Fpipeline-classifications.js`. Fix planner lives in `tools\u002Fpipeline-fix-map.js`.\n\n**Smoke-phase coverage** (current): only `verifyTopic` is wired live. Other component verifiers return `status: 'skipped'` and surface as \"not yet implemented.\" Each iteration of harness work expands one verifier at a time. When a verifier ships, its corresponding classification becomes auto-fix-eligible if `pipeline-fix-map.js` lists it as `type: 'auto'`.\n\n**Out of scope for this skill**: building real customer agents (use `\u002Fmcs-build`), evaluating an agent's behavior (use `\u002Fmcs-eval`), and Playwright UI snapshots of the MCS portal (deliberately not implemented — see plan).\n\n---\n\n## Pre-flight\n\nBefore invoking the runner, confirm the local environment is set up correctly. These checks are fast and prevent wasted iteration on auth\u002Fwrong-env issues:\n\n1. **Azure CLI tenant**:\n   ```bash\n   az account show --query \"tenantId,user.name\" -o tsv\n   ```\n   Expected tenant matches the `_environment.tenant` field in `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fagentspec.json` (currently `M365CPI15209943`). If not, run `az login --tenant \u003Ctenant>`.\n\n2. **PAC CLI environment** (best-effort — Dataverse fallback covers PAC failures):\n   ```bash\n   pac org list\n   ```\n   Expected to show the env with org id matching `_environment.orgId` (currently `org04723bf3` \u002F `dktest`). If PAC is misaligned, you can still proceed — the runner uses Dataverse direct.\n\n3. **Workspace existence**:\n   The runner needs a cloned MCS workspace at `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fworkspace\u002F` with `.mcs\u002Fconn.json`. If absent, run `\u002Fmcs-build _pipeline-test canonical` first to create the agent and clone it.\n\n4. **No background mcs-lsp running**:\n   ```bash\n   tasklist | grep -i lsp\n   ```\n   Concurrent LSP processes cause `ConcurrencyVersionMismatch`. Stop any stragglers before running.\n\nIf a check fails, stop and surface the issue to the user — do not retry blindly.\n\n---\n\n## Run the loop\n\nSingle iteration:\n\n```bash\nnpm run pipeline:run -- --workspace \"Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fworkspace\" --note \"\u003Cwhat changed since last run>\"\n```\n\nThe runner prints structured JSON to stdout and appends one entry to `tools\u002Fpipeline-log.jsonl`.\n\nRead the JSON `recommendation` field — it tells you the next action:\n\n- **`All verifiable components match the spec.`** — green, loop is done.\n- **`Auto-fix applied for \u003Cclassification>. Re-run pipeline:run to verify.`** — re-invoke `npm run pipeline:run` with the same args.\n- **`Escalate \u003Cclassification>: \u003Creason>`** — surface the classification + reason to the user; do not auto-retry.\n- **`Same classifications failed N+ iterations.`** — stalled, escalate.\n\nHard stops (advisory; the runner does not loop on its own):\n- `iteration >= 10` (`MAX_ITERATIONS` in `tools\u002Fpipeline-test-loop.js`)\n- `trend === 'stalled'` (same classification set 3 consecutive iterations)\n- Unknown classification — fix-map needs a new entry\n\nInspect history any time:\n\n```bash\nnpm run pipeline:status\n```\n\nInspect the latest run's failures with full evidence:\n\n```bash\nnpm run pipeline:failures\n```\n\nReset between independent harness sessions:\n\n```bash\nnpm run pipeline:reset\n```\n\n---\n\n## Reporting\n\nAfter a run sequence concludes (green or escalated), write a summary to `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fpipeline-report.md` covering:\n\n- Date + git SHA of the run\n- Final status (green \u002F escalated \u002F stalled)\n- Per-classification disposition: which auto-resolved, which escalated, which never surfaced\n- Fix-map entries that need executor implementation (anything currently `type: 'escalate'` that should be `type: 'auto'`)\n- Verifier coverage gap: which component classes are still `skipped` (not yet implemented)\n\nThis report is the per-session artifact — it shows what the harness proved out and what is still on the to-do list.\n\n---\n\n## Failure handling\n\nIf the runner crashes (returns `status: 'error'` in stdout JSON), do not retry blindly. Read the `error` and `stack` fields.\n\nCommon causes:\n\n- **`No .mcs\u002Fconn.json under \u003Cpath>`** — workspace not cloned. Run `\u002Fmcs-build _pipeline-test canonical` first, or `node tools\u002Fmcs-lsp.js clone` against an existing agent.\n- **`Failed to get token`** — `az login` expired. Run `az login --tenant M365CPI15209943` and retry.\n- **`fetchDialogComponents HTTP 401`** — Dataverse token rejected. Confirm the env id in conn.json matches the env behind `_environment.dataverseUrl`.\n- **`Verifier crashed`** — bug in `tools\u002Fverify-component.js`. Capture the stack, file an issue, do not retry against MCS.\n\nFor escalations (non-auto fix), present the classification's `summary`, `learning`, and `reason` from `tools\u002Fpipeline-fix-map.js` to the user and ask how to proceed. Do not silently skip.\n\n---\n\n## Adding a new verifier\n\nWhen you ship a new verifier (say `verifyKnowledge`):\n\n1. Replace the `verifyKnowledge` stub in `tools\u002Fverify-component.js` with a real implementation. Pattern: paired query (Dataverse + Gateway when both exist), classify with a pure helper, return `VerifyResult`.\n2. Confirm the relevant classification IDs already exist in `tools\u002Fpipeline-classifications.js`. If a new failure mode emerged, add a new ID with a `learning` ref.\n3. Update `tools\u002Fpipeline-fix-map.js`:\n   - If the fix is reversible and reuses an existing helper (mcs-lsp \u002F island-client \u002F add-tool), set `type: 'auto'`.\n   - If the fix is destructive or executor missing, leave `type: 'escalate'` with a clear `reason`.\n4. Run `npm run pipeline:run` against the canonical workspace. Expect first iteration to surface the new classification, second iteration to either auto-fix or escalate cleanly.\n5. Append a row to `pipeline-report.md`.\n\nDo not modify `\u002Fmcs-build` SKILL.md to call the new verifier in this PR — wiring real builds to the verifier library is a separate, follow-up change once the harness is green.\n","# MCS Pipeline Verify-Fix Harness\n\nBuilds the canonical \"kitchen-sink\" test agent in the **dktest** environment, reads back every component from MCS, and iterates fix → verify until all verifiable components match the spec. Wraps `\u002Fmcs-build`; does not replace it.\n\nThis skill is the entry point for the harness. The runner that drives the loop is `tools\u002Fpipeline-test-loop.js`. The verifier library is `tools\u002Fverify-component.js`. Failure taxonomy lives in `tools\u002Fpipeline-classifications.js`. Fix planner lives in `tools\u002Fpipeline-fix-map.js`.\n\n**Smoke-phase coverage** (current): only `verifyTopic` is wired live. Other component verifiers return `status: 'skipped'` and surface as \"not yet implemented.\" Each iteration of harness work expands one verifier at a time. When a verifier ships, its corresponding classification becomes auto-fix-eligible if `pipeline-fix-map.js` lists it as `type: 'auto'`.\n\n**Out of scope for this skill**: building real customer agents (use `\u002Fmcs-build`), evaluating an agent's behavior (use `\u002Fmcs-eval`), and Playwright UI snapshots of the MCS portal (deliberately not implemented — see plan).\n\n---\n\n## Pre-flight\n\nBefore invoking the runner, confirm the local environment is set up correctly. These checks are fast and prevent wasted iteration on auth\u002Fwrong-env issues:\n\n1. **Azure CLI tenant**:\n   ```bash\n   az account show --query \"tenantId,user.name\" -o tsv\n   ```\n   Expected tenant matches the `_environment.tenant` field in `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fagentspec.json` (currently `M365CPI15209943`). If not, run `az login --tenant \u003Ctenant>`.\n\n2. **PAC CLI environment** (best-effort — Dataverse fallback covers PAC failures):\n   ```bash\n   pac org list\n   ```\n   Expected to show the env with org id matching `_environment.orgId` (currently `org04723bf3` \u002F `dktest`). If PAC is misaligned, you can still proceed — the runner uses Dataverse direct.\n\n3. **Workspace existence**:\n   The runner needs a cloned MCS workspace at `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fworkspace\u002F` with `.mcs\u002Fconn.json`. If absent, run `\u002Fmcs-build _pipeline-test canonical` first to create the agent and clone it.\n\n4. **No background mcs-lsp running**:\n   ```bash\n   tasklist | grep -i lsp\n   ```\n   Concurrent LSP processes cause `ConcurrencyVersionMismatch`. Stop any stragglers before running.\n\nIf a check fails, stop and surface the issue to the user — do not retry blindly.\n\n---\n\n## Run the loop\n\nSingle iteration:\n\n```bash\nnpm run pipeline:run -- --workspace \"Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fworkspace\" --note \"\u003Cwhat changed since last run>\"\n```\n\nThe runner prints structured JSON to stdout and appends one entry to `tools\u002Fpipeline-log.jsonl`.\n\nRead the JSON `recommendation` field — it tells you the next action:\n\n- **`All verifiable components match the spec.`** — green, loop is done.\n- **`Auto-fix applied for \u003Cclassification>. Re-run pipeline:run to verify.`** — re-invoke `npm run pipeline:run` with the same args.\n- **`Escalate \u003Cclassification>: \u003Creason>`** — surface the classification + reason to the user; do not auto-retry.\n- **`Same classifications failed N+ iterations.`** — stalled, escalate.\n\nHard stops (advisory; the runner does not loop on its own):\n- `iteration >= 10` (`MAX_ITERATIONS` in `tools\u002Fpipeline-test-loop.js`)\n- `trend === 'stalled'` (same classification set 3 consecutive iterations)\n- Unknown classification — fix-map needs a new entry\n\nInspect history any time:\n\n```bash\nnpm run pipeline:status\n```\n\nInspect the latest run's failures with full evidence:\n\n```bash\nnpm run pipeline:failures\n```\n\nReset between independent harness sessions:\n\n```bash\nnpm run pipeline:reset\n```\n\n---\n\n## Reporting\n\nAfter a run sequence concludes (green or escalated), write a summary to `Build-Guides\u002F_pipeline-test\u002Fagents\u002Fcanonical\u002Fpipeline-report.md` covering:\n\n- Date + git SHA of the run\n- Final status (green \u002F escalated \u002F stalled)\n- Per-classification disposition: which auto-resolved, which escalated, which never surfaced\n- Fix-map entries that need executor implementation (anything currently `type: 'escalate'` that should be `type: 'auto'`)\n- Verifier coverage gap: which component classes are still `skipped` (not yet implemented)\n\nThis report is the per-session artifact — it shows what the harness proved out and what is still on the to-do list.\n\n---\n\n## Failure handling\n\nIf the runner crashes (returns `status: 'error'` in stdout JSON), do not retry blindly. Read the `error` and `stack` fields.\n\nCommon causes:\n\n- **`No .mcs\u002Fconn.json under \u003Cpath>`** — workspace not cloned. Run `\u002Fmcs-build _pipeline-test canonical` first, or `node tools\u002Fmcs-lsp.js clone` against an existing agent.\n- **`Failed to get token`** — `az login` expired. Run `az login --tenant M365CPI15209943` and retry.\n- **`fetchDialogComponents HTTP 401`** — Dataverse token rejected. Confirm the env id in conn.json matches the env behind `_environment.dataverseUrl`.\n- **`Verifier crashed`** — bug in `tools\u002Fverify-component.js`. Capture the stack, file an issue, do not retry against MCS.\n\nFor escalations (non-auto fix), present the classification's `summary`, `learning`, and `reason` from `tools\u002Fpipeline-fix-map.js` to the user and ask how to proceed. Do not silently skip.\n\n---\n\n## Adding a new verifier\n\nWhen you ship a new verifier (say `verifyKnowledge`):\n\n1. Replace the `verifyKnowledge` stub in `tools\u002Fverify-component.js` with a real implementation. Pattern: paired query (Dataverse + Gateway when both exist), classify with a pure helper, return `VerifyResult`.\n2. Confirm the relevant classification IDs already exist in `tools\u002Fpipeline-classifications.js`. If a new failure mode emerged, add a new ID with a `learning` ref.\n3. Update `tools\u002Fpipeline-fix-map.js`:\n   - If the fix is reversible and reuses an existing helper (mcs-lsp \u002F island-client \u002F add-tool), set `type: 'auto'`.\n   - If the fix is destructive or executor missing, leave `type: 'escalate'` with a clear `reason`.\n4. Run `npm run pipeline:run` against the canonical workspace. Expect first iteration to surface the new classification, second iteration to either auto-fix or escalate cleanly.\n5. Append a row to `pipeline-report.md`.\n\nDo not modify `\u002Fmcs-build` SKILL.md to call the new verifier in this PR — wiring real builds to the verifier library is a separate, follow-up change once the harness is green.\n",{"name":5,"description":7},"main","b7593fb57652591678d1aeb9bcc19738e903ffbe",".claude\u002Fskills\u002Fmcs-pipeline-test",3,"https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder","https:\u002F\u002Fgithub.com\u002Fdayour","2026-11-08 11:20:11",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add dayour\u002FMCS-Agent-Builder --skill mcs-pipeline-test",{"tool":56,"command":57},"bunx","bunx skills add dayour\u002FMCS-Agent-Builder --skill mcs-pipeline-test",{"tool":59,"command":60},"pnpm","pnpm dlx skills add dayour\u002FMCS-Agent-Builder --skill mcs-pipeline-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmcs-pipeline-test\u002FSKILL.md",true,[],[65,84,91,96,103,108],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":38},"01M6WTHH2JPKXM1JDRE55KC4A6","order-status","Read the packaged Copilot Studio agent definition, including messaging topics and boundaries, from the local plugin.","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Fmodel-secret\u002Fskills\u002Forder-status\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,82,83],"order status","status","copilot","plugin","copilot studio","messaging","read","local","agent definition","studio","definition","topics",{"skillNo":85,"name":86,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":38},"01M6WTHE20Y6X94754CP3TAY1Y","level-pass","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Flevel-status-failed\u002Fskills\u002Flevel-pass\u002FSKILL.md",[],[90,78,77,76,75,74,81,79,80,82,83],"level pass",{"skillNo":92,"name":86,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":38},"01M6WTHBZ5EY53QPYKREMEVHZK","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Flevel-status-fail\u002Fskills\u002Flevel-pass\u002FSKILL.md",[],[90,82,83,81,80,79,78,77,74,76,75],{"skillNo":97,"name":98,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"01M6WTH9AKX173Y69CJS3CZM5A","level-not-passing","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Flevel-malformed\u002Fskills\u002Flevel-not-passing\u002FSKILL.md",[],[102,74,75,76,77,78,79,80,81,82,83],"level not passing",{"skillNo":104,"name":86,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M6WTH70Z5Z2JV26J9C1ZRYPS","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Flevel-long-fence\u002Fskills\u002Flevel-pass\u002FSKILL.md",[],[90,80,74,75,76,77,78,79,81,82,83],{"skillNo":109,"name":86,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M6WTH4ZSAJ8SADD803KY2DW0","https:\u002F\u002Fgithub.com\u002Fdayour\u002FMCS-Agent-Builder\u002Fblob\u002Fmain\u002Fschema\u002Ffixtures\u002Finvalid\u002Flevel-indented\u002Fskills\u002Flevel-pass\u002FSKILL.md",[],[90,75,76,77,78,79,80,81,82,83,74]]