A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
Show only configured models on the evaluations dashboard (#875)
Priyanshu Agrawalb37cfce03578
diff --git a/site/README.md b/site/README.mdindex 59224b257..c55fa7467 100644--- a/site/README.md+++ b/site/README.md@@ -1,7 +1,7 @@# Showcase siteThe source for the plugin showcase at <https://microsoft.github.io/power-platform-skills/>.-It is a static site with no dependencies beyond Node.js.+It is a static site with no dependencies beyond Node.js 22.15 or later.## Build and preview@@ -62,7 +62,7 @@ Each suite identifies a skill, SKILL.md and suite directory hashes, repeat countEvery record carries the status, optional score, named boolean grader checks, optional token/duration counts, and a fixed error code rather than an error message.Version 2 records add agent input, output and cache counters plus judge call counts and reported input/output counters.Version 3 retains those counters and requires agent and judge reasoning efforts plus distinct agent/judge models.-Earlier summaries display unreported effort and remain separate from explicitly measured effort settings.+Earlier summaries display unreported effort; selection follows the plugin-specific rules below.Unknown agent counters stay null, and judge totals are lower bounds because Vally can substitute zero for missing provider fields.Version 1 zero-token totals are treated as unknown because they could indicate missing usage events.Unrecognized fields are rejected so raw transcripts cannot accidentally enter the page.@@ -76,7 +76,10 @@ Changing plugin files, SKILL.md, suite inputs or runtime files invalidates curreThe page separates capability from routing/dormancy, shows observed passes over expected trials, counts distinct tasks and all-repeats-pass tasks, and compares capability against its matched baseline.Repeats do not count as additional independent tasks.-Only the newest supplied run for each plugin / skill / execution model / judge model / agent effort / judge effort combination is shown.+For Power Pages, the page shows only the agent models in `DEFAULT_MODELS` in [`evals/runtime/models.mjs`](../evals/runtime/models.mjs), which also configures the default Actions matrix.+Each skill shows the newest supplied result for each configured model, regardless of judge or effort.+A subset run updates only those models; the latest available results for the other configured models remain visible.+For other plugins, the page shows the newest supplied run for each plugin / skill / execution model / judge model / agent effort / judge effort combination.Separate summaries from a per-skill Actions matrix can share a timestamp and still contribute coverage.Every skill retains its selected run's date, commit and hashes; results from different runs, models or versions are never pooled, and missing trials are never filled from older runs.The descriptive "Consistent offline evidence" category requires current, complete results, all skilled trials passing, at least two capability tasks, one dormancy task, and two repeats.@@ -85,7 +88,7 @@ The page explains every category and keeps stale runs inspectable.The token view aggregates all supplied summaries rather than only the newest evidence.It shows reported agent and judge usage by each skill evaluation's UTC start date and by plugin, along with missing counts and incomplete trial records.The usage totals include all models and are not changed by the skill filters.-On the public site, history is limited to retained artifacts from the latest 20 default-branch manual workflow runs, for up to 90 days.+On the public site, results and usage history are limited to retained artifacts from the latest 20 default-branch manual workflow runs, for up to 90 days.Power Pages evaluations assess generated documentation, HTML, and semantic/quality properties of ER diagrams offline.They do not provision resources, contact a tenant, or verify deployed behavior.diff --git a/site/lib/evaluations.js b/site/lib/evaluations.jsindex d119d7260..a3bedd04f 100644--- a/site/lib/evaluations.js+++ b/site/lib/evaluations.js@@ -3,12 +3,14 @@const fs = require('node:fs');const path = require('node:path');const { hashFile, hashTree } = require('../../scripts/lib/eval-evidence.js');+const { DEFAULT_MODELS } = require('../../evals/runtime/models.mjs');const HASH = /^[a-f0-9]{64}$/;const NAME = /^[a-z0-9][a-z0-9._-]{0,127}$/;const CODE = /^[a-zA-Z][a-zA-Z0-9_-]{0,79}$/;const DAY = 86400000;const MAX_AGE_DAYS = 30;+const POWER_PAGES_MODELS = new Set(DEFAULT_MODELS);function requireValue(condition, message) {if (!condition) throw new Error(`Invalid evaluation summary: ${message}`);@@ -261,12 +263,16 @@ function loadEvaluations({ repoRoot, catalog, evalResults = null, allowEmptyEvalrequireValue(summary.suites.every((suite) => plugin.skills.some((skill) => skill.name === suite.skill)), 'unknown skill');requireValue(Date.parse(summary.generatedAt) <= Number(now) + 5 * 60000, 'future date');for (const suite of summary.suites) {- const key = JSON.stringify([summary.plugin, suite.skill, summary.model, summary.judgeModel,+ const combination = JSON.stringify([summary.plugin, suite.skill, summary.model, summary.judgeModel,summary.reasoningEffort ?? null, summary.judgeReasoningEffort ?? null]);const timestamp = Date.parse(summary.generatedAt);+ const configuredPowerPages = summary.plugin === 'power-pages' && POWER_PAGES_MODELS.has(summary.model);+ const key = configuredPowerPages+ ? JSON.stringify([summary.plugin, suite.skill, summary.model]) : combination;const identity = JSON.stringify([key, timestamp]);requireValue(!seen.has(identity), 'ambiguous same-date skill/model summaries');seen.add(identity);+ if (summary.plugin === 'power-pages' && !POWER_PAGES_MODELS.has(summary.model)) continue;const previous = latest.get(key);// Actions can upload one summary per skill. Select a whole suite with its// own provenance; filling missing trials from another run could turn andiff --git a/site/lib/render-evaluations.js b/site/lib/render-evaluations.jsindex 1471edc17..146b460c7 100644--- a/site/lib/render-evaluations.js+++ b/site/lib/render-evaluations.js@@ -48,7 +48,7 @@ function renderSkill(skill) {const evaluated = skill.evidence.length > 0;const current = skill.evidence.some((item) => item.fresh && item.complete);const attention = skill.evidence.some((item) => !item.fresh || !item.complete || item.category === 'Mixed results');- const label = !evaluated ? 'Not evaluated' : skill.evidence.length === 1 ? skill.evidence[0].category : `${skill.evidence.length} model / judge / effort combinations`;+ const label = !evaluated ? 'Not evaluated' : skill.evidence.length === 1 ? skill.evidence[0].category : `${skill.evidence.length} results`;return `<details class="skill" data-skill data-search="${esc(skill.name.toLowerCase())}" data-evaluated="${evaluated}" data-current="${current}" data-attention="${attention}"><summary><span class="skill-name">${esc(skill.name)}</span><span class="badge${!evaluated ? ' quiet' : ''}">${esc(label)}</span><span class="expand-label">Details</span></summary><div class="skill-body">${evaluated ? skill.evidence.map(renderEvidence).join('') : '<p class="muted">No offline evaluation has been published for this skill. No rating is assigned.</p>'}</div>@@ -166,7 +166,7 @@ function renderEvaluations(data) {${renderUsage(data.usage)}<section id="methodology" class="methodology" aria-labelledby="methodology-heading"><h2 id="methodology-heading">How to read the evidence</h2><div class="method-grid"><section><h3>Observed results, not confidence</h3><p>A pass rate is passed trials divided by expected trials, including errors and missing trials in the denominator. Repeats test stability on the same task; they are not extra independent tasks. The task count and all-repeats-pass count show that distinction.</p><p>Capability checks assess the requested artifact. Routing / dormancy checks assess whether the skill stays inactive on unrelated tasks. They are reported separately.</p></section>- <section><h3>A fair comparison</h3><p>Baseline trials run without the skill. The delta compares pass rates on the same capability tasks and repeat count. It is unavailable if any baseline or skill trial is missing. Scores come from each suite's graders and are not calibrated confidence.</p><p>Models, judges and source versions are never pooled. Each skill shows its newest supplied run for each model / judge combination, with that run's own date and commit. Missing trials are never filled from another run.</p></section>+ <section><h3>A fair comparison</h3><p>Baseline trials run without the skill. The delta compares pass rates on the same capability tasks and repeat count. It is unavailable if any baseline or skill trial is missing. Scores come from each suite's graders and are not calibrated confidence.</p><p>Models, judges and source versions are never pooled. For Power Pages, each skill shows the newest retained run for each model in the default Actions configuration. A subset run leaves the latest available results for other configured models in place. Other plugins show the newest supplied run for each model, judge and effort combination. Each result keeps its run's date and commit; missing trials are never filled from another run.</p></section><section><h3>Evidence categories</h3><dl><dt>Not evaluated</dt><dd>No published run for this skill.</dd><dt>Limited evidence</dt><dd>Published evidence does not meet the repeat, breadth, completeness or freshness rules below.</dd><dt>Mixed results</dt><dd>At least one with-skill trial failed or errored. Baseline failures remain visible in the comparison.</dd><dt>Consistent offline evidence</dt><dd>Every expected baseline and skill trial is present, all with-skill trials pass, and the source is current. At least two capability tasks, one dormancy task and two repeats provide a minimum check of breadth, routing and repeatability. This is a descriptive label, not a statistical guarantee.</dd></dl></section><section><h3>Source and scope matter</h3><p>Evidence becomes stale after ${data.maxAgeDays} days, or when the plugin tree, SKILL.md, suite directory or evaluation runtime hash changes. Suite hashes include fixtures and hidden checks. Stale and incomplete runs remain inspectable but cannot receive the consistent-evidence label.</p><p>Power Pages evaluations run offline. Documentation, HTML and ER diagrams can be graded for semantic correctness and artifact quality without creating sites or calling a tenant. A passing artifact check does not prove a deployed site works.</p><p>Only summary metadata and named grader outcomes are published. Raw model responses, prompts and generated artifacts are not included here. A run link identifies provenance; it does not certify the evaluation design.</p></section></div></section>diff --git a/site/tests/site.test.js b/site/tests/site.test.jsindex 66782812a..e85f352dc 100644--- a/site/tests/site.test.js+++ b/site/tests/site.test.js@@ -66,11 +66,11 @@ function writeJson(file, value) {// These tiny, synthetic summaries exist only in tests. Production builds ship no// example scores or model responses.-function evidenceFixture() {+function evidenceFixture(pluginName = 'sample') {const root = tempDir('pps-evidence-');- const pluginDir = path.join(root, 'plugins', 'sample');+ const pluginDir = path.join(root, 'plugins', pluginName);const skillFile = path.join(pluginDir, 'skills', 'write-docs', 'SKILL.md');- const suiteFile = path.join(root, 'evals', 'sample', 'write-docs', 'eval.yaml');+ const suiteFile = path.join(root, 'evals', pluginName, 'write-docs', 'eval.yaml');const runtimeDir = path.join(root, 'evals', 'runtime');fs.mkdirSync(path.dirname(skillFile), { recursive: true });fs.mkdirSync(path.dirname(suiteFile), { recursive: true });@@ -78,10 +78,10 @@ function evidenceFixture() {fs.writeFileSync(suiteFile, 'name: test-suite\n');fs.mkdirSync(runtimeDir, { recursive: true });fs.writeFileSync(path.join(runtimeDir, 'grader.js'), '// Test-only runtime\n');- writeJson(path.join(root, 'marketplace.json'), { plugins: [{ name: 'sample', source: './plugins/sample' }] });+ writeJson(path.join(root, 'marketplace.json'), { plugins: [{ name: pluginName, source: `./plugins/${pluginName}` }] });const cases = [{ name: 'documentation', kind: 'capability' }, { name: 'diagram', kind: 'capability' }, { name: 'unrelated request', kind: 'dormancy' }];const summary = {- schemaVersion: 1, plugin: 'sample', commit: 'a'.repeat(40), generatedAt: '2026-01-15T12:00:00Z',+ schemaVersion: 1, plugin: pluginName, commit: 'a'.repeat(40), generatedAt: '2026-01-15T12:00:00Z',model: 'test-model', judgeModel: 'test-judge', runUrl: 'https://github.com/example/project/actions/runs/123',pluginHash: hashTree(pluginDir), runtimeHash: hashTree(runtimeDir),suites: [{@@ -95,7 +95,7 @@ function evidenceFixture() {})))),}],};- const catalog = { plugins: [{ name: 'sample', title: 'Sample plugin', docsUrl: 'https://github.com/example/project' }] };+ const catalog = { plugins: [{ name: pluginName, title: 'Sample plugin', docsUrl: 'https://github.com/example/project' }] };const summaryFile = path.join(root, 'summary.json');function load(value = summary, options = {}) {writeJson(summaryFile, value);@@ -104,6 +104,75 @@ function evidenceFixture() {return { root, pluginDir, skillFile, suiteFile, runtimeDir, summary, summaryFile, catalog, load };}+test('dashboard shows the latest result for each configured model after a subset run', () => {+ const { DEFAULT_MODELS } = require('../../evals/runtime/models.mjs');+ const fixture = evidenceFixture('power-pages');+ const oldA = structuredClone(fixture.summary);+ oldA.model = DEFAULT_MODELS[0];+ oldA.judgeModel = 'previous-judge';+ const oldB = structuredClone(fixture.summary);+ oldB.model = DEFAULT_MODELS[1];+ oldB.judgeModel = 'retained-judge';+ const retired = structuredClone(fixture.summary);+ retired.model = 'retired-model';+ const updatedA = structuredClone(oldA);+ updatedA.generatedAt = '2026-01-16T00:00:00Z';+ updatedA.judgeModel = 'current-judge';+ updatedA.commit = 'b'.repeat(40);+ updatedA.runUrl = 'https://github.com/example/project/actions/runs/124';+ Object.assign(updatedA, { schemaVersion: 3, reasoningEffort: 'high', judgeReasoningEffort: 'low' });+ for (const result of updatedA.suites[0].results) {+ result.agentUsage = { inputTokens: 70, outputTokens: 30, cacheReadTokens: null, cacheWriteTokens: null };+ result.judgeUsage = { calls: 1, reportedCalls: 1, inputTokens: 10, outputTokens: 5 };+ }+ updatedA.suites[0].results.pop();+ Object.assign(updatedA.suites[0].results.find((result) => result.variant === 'skilled'), {+ status: 'error', score: null, checks: [], error: 'MODEL_ERROR',+ });+ const inputs = [updatedA, oldB, retired, oldA].map((summary, index) => {+ const file = path.join(fixture.root, `run-${index}.summary.json`);+ writeJson(file, summary);+ return file;+ });+ const html = renderEvaluations(fixture.load(fixture.summary, { evalResults: inputs }));+ const cards = [...html.matchAll(/<article class="model-result"[\s\S]*?<\/article>/g)].map((match) => match[0]);+ assert.equal(cards.length, 2);+ const current = cards.find((card) => card.includes(`data-evidence-model="${DEFAULT_MODELS[0]}"`));+ const retained = cards.find((card) => card.includes(`data-evidence-model="${DEFAULT_MODELS[1]}"`));+ assert.ok(current && retained, 'both configured models retain a result');+ assert.ok(current.includes(`${DEFAULT_MODELS[0]} (high effort)`));+ assert.match(current, /Judge: current-judge \(low effort\)/);+ assert.match(current, /bbbbbbbbbbbb/);+ assert.match(current, /actions\/runs\/124/);+ assert.match(current, /Incomplete evidence/);+ assert.match(current, /MODEL_ERROR/);+ assert.match(retained, /Judge: retained-judge/);+ assert.match(retained, /aaaaaaaaaaaa/);+ const modelFilter = html.match(/<select id="model">([\s\S]*?)<\/select>/)[1];+ assert.ok(modelFilter.includes(DEFAULT_MODELS[0]) && modelFilter.includes(DEFAULT_MODELS[1]));+ assert.doesNotMatch(html, /retired-model|Judge: previous-judge/);+ assert.match(html, /4 summaries/);+});++test('conflicting same-date Power Pages results for a model stop publication', () => {+ const { DEFAULT_MODELS } = require('../../evals/runtime/models.mjs');+ const fixture = evidenceFixture('power-pages');+ const first = { ...fixture.summary, model: DEFAULT_MODELS[0] };+ const second = { ...first, judgeModel: 'different-judge' };+ const newer = { ...first, generatedAt: '2026-01-16T00:00:00Z' };+ const secondFile = path.join(fixture.root, 'second.summary.json');+ const newerFile = path.join(fixture.root, 'newer.summary.json');+ writeJson(secondFile, second);+ writeJson(newerFile, newer);+ for (const files of [+ [fixture.summaryFile, secondFile, newerFile],+ [newerFile, fixture.summaryFile, secondFile],+ ]) {+ assert.throws(() => fixture.load(first, { evalResults: files }),+ /ambiguous same-date skill\/model summaries/);+ }+});+test('evaluation inventory discovers every real skill, not only featured catalog entries', () => {const catalog = loadCatalog(REPO_ROOT);const data = evaluations.loadEvaluations({ repoRoot: REPO_ROOT, catalog });@@ -548,17 +617,18 @@ test('site build includes a linked evaluations page without depending on media o.find((entry) => entry.isDirectory() && fs.existsSync(path.join(pluginDir, 'skills', entry.name, 'SKILL.md')));const summary = fixture.summary;summary.plugin = 'power-pages';+ summary.model = require('../../evals/runtime/models.mjs').DEFAULT_MODELS[0];summary.generatedAt = new Date().toISOString();summary.pluginHash = hashTree(pluginDir);summary.suites[0].skill = skill.name;summary.suites[0].skillHash = hashFile(path.join(pluginDir, 'skills', skill.name, 'SKILL.md'));writeJson(fixture.summaryFile, summary);build({ repoRoot: REPO_ROOT, outDir, basePath: '/', evalResults: fixture.summaryFile });- assert.match(fs.readFileSync(path.join(outDir, 'evaluations/index.html'), 'utf8'), /test-model/);+ assert.ok(fs.readFileSync(path.join(outDir, 'evaluations/index.html'), 'utf8').includes(`data-evidence-model="${summary.model}"`));assert.ok(!fs.existsSync(path.join(outDir, 'summary.json')), 'input evidence must not be copied wholesale');writeJson(fixture.summaryFile, { ...summary, transcript: 'private' });assert.throws(() => build({ repoRoot: REPO_ROOT, outDir, basePath: '/', evalResults: fixture.summaryFile }), /Invalid evaluation summary/);- assert.match(fs.readFileSync(path.join(outDir, 'evaluations/index.html'), 'utf8'), /test-model/, 'invalid input cannot clear a previous build');+ assert.ok(fs.readFileSync(path.join(outDir, 'evaluations/index.html'), 'utf8').includes(`data-evidence-model="${summary.model}"`), 'invalid input cannot clear a previous build');});test('published site builds an untested dashboard when no retained summaries exist', () => {