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
{
"skill_name": "genpage",
"eval_instructions": "See EVAL_GUIDE.md in this folder for how to run these evals, how the 3-layer check works (workflow → code quality → UX rubric), and what pass/fail means. Every eval run MUST save a workflow-log.md file documenting all phases attempted — agents invoked, commands run, questions asked, files read, decisions made.",
"common_workflow_assertions": [
"A workflow-log.md file is saved to the working directory documenting all phases attempted",
"Phase 0: A working directory is created with a kebab-case name derived from the user's description",
"Phase 1 (Planner): node --version and pac help are run separately (not chained with &&) and PAC CLI version > 2.10.0 is verified",
"Phase 1 (Planner): pac auth list is run and the active environment is identified and reported to the user",
"Phase 1 (Planner): Question 1 (new or edit) is asked via AskUserQuestion",
"Phase 1 (Planner): genpage-plan.md ALWAYS contains 'Solution:' and 'Publisher Prefix:' lines in ## Environment; default fallback is 'Solution: Default' + 'Publisher Prefix: new' for code-only flows",
"Phase 1 (Planner): The solution selection question is asked via AskUserQuestion ONLY when the build needs metadata work (new entities OR new app); for code-only flows the question is skipped but the Default values are still written",
"Phase 1 (Planner): When the solution question runs, the planner queries /solutions via dataverse-request.js and presents options (existing custom solutions, 'Create new genpage-<app> solution', 'Use Default Solution')",
"Phase 1 (Planner): The plan is presented via EnterPlanMode and user approval is requested",
"Phase 1 (Planner): genpage-plan.md is written to the working directory, conforming to references/plan-schema.md",
"Phase 2a: When entities need creating, scripts/check-auth.js runs and returns ok:true before entity-builder is invoked (provision-entities.js, or legacy create-table.js/add-column.js/create-relationship.js/create-record.js); on ok:false the orchestrator surfaces the message to the user and halts",
"Phase 6 / 6.5 / 7.5 / Edit Phase 6 (--prompt scoping): The FIRST upload (the create) for each new page passes --prompt with the FULL page description (from plan's ## User Requirements). EVERY SUBSEQUENT upload of an existing page (--page-id) passes --prompt scoped to ONLY the delta of changes in that upload — never the full original description",
"Prefix discipline — plan format: Every name in `## Entity Creation Required` (table headings, column Suffix values, choice column suffixes, relationship Lookup Suffix values) is a bare suffix matching `^[a-z][a-z0-9]+$`. No value contains an underscore or a prefix. The prefix lives only in `## Environment` → `Publisher Prefix:`.",
"Prefix discipline — resolved names: For every operation in `genpage-entity-creation-log.md`, the Resolved Full Name starts with the `Publisher Prefix:` value from the plan's `## Environment` followed by `_` and the bare suffix from the plan (e.g., Publisher Prefix `crb2b` + suffix `playername` → `crb2b_playername`).",
"Prefix discipline — solution alignment: If the env has a dominant non-system custom prefix (>=50% of custom tables AND >=3 such tables), the planner surfaces this in the solution question and ordered the option whose publisher prefix matches the dominant prefix FIRST as the recommended choice. If the user picks a different-prefix solution, the planner logged a one-line warning before proceeding.",
"Phase 2a: Every applicable auth result is associated with its command; only the latest successful gate authorizes mutations, and final failures halt with bounded retry and advice",
"Phase 1: Failed connector discovery returns needs_input and never creates a connection or reference",
"Phase 6.7: Packaging uses every deployed page id, the approved solution and discovered component types; invalid identities refuse before writes and results agree with read-back"
],
"common_code_assertions": [
"Generated .tsx is a single file with `export default GeneratedComponent`",
"Generated .tsx destructures props including `pageInput` (e.g., `const { dataApi, pageInput } = props;`)",
"Generated .tsx imports types from `./RuntimeTypes` (for Dataverse pages) or uses realistic inline mock data (for mock pages)",
"Generated .tsx uses `makeStyles` with tokens for styling — no inline styles for static values",
"Generated .tsx nests `@media` queries inside `makeStyles` slots — no media query used as a top-level slot key",
"Generated .tsx does NOT use `100vh` or `100vw`",
"Generated .tsx does NOT import `createTheme`, `mergeThemes`, or `useTheme` (these do not exist in Fluent UI V9)",
"Generated .tsx does NOT wrap content in a top-level `<FluentProvider>` (already provided at root)",
"Generated .tsx does NOT use React Router or construct raw URLs / manipulate `window.location` for navigation",
"Generated .tsx uses `Xrm.Navigation.navigateTo` for any in-app navigation",
"Generated .tsx uses Fluent UI icons in unsized form (e.g., `AddRegular`, not `Add24Regular`)",
"Every named import from `@fluentui/react-icons` in the generated .tsx appears in references/verified-icons.txt — no hallucinated icon names",
"Generated .tsx wraps async `dataApi` calls in try-catch (Dataverse pages only)",
"Generated .tsx does NOT include any `TODO`, `FIXME`, ellipsis placeholders, or incomplete function bodies",
"Generated .tsx for lookup display names uses `@OData.Community.Display.V1.FormattedValue` annotations, not lookup-name fields in $select",
"For DataGrids, generated .tsx imports `createTableColumn` from `@fluentui/react-components` and configures column sizing (columnSizingOptions or resizableColumns)",
"For Dataverse pages with fetching, separate setState calls inside async callbacks are batched into a single setData(...) call (Rule 14)",
"For Dataverse list/detail pages, the inline IIFE + window cache + cache-guard pattern from references/data-caching.md is used (Rule 15); no useCallback for data-fetching functions",
"For multi-page builds, cross-page navigation uses quoted `\"PAGEREF_<filename>\"` placeholders that the orchestrator's Phase 6.5 resolves to real GUIDs",
"For Dataverse pages that call dataApi.queryTable, the result is accessed via .rows (DataTable<T> = { rows: T[], hasMoreRows, loadMoreRows() }) — never used directly as an array (Rule 11)",
"Generated .tsx passes the production completeness gate (complete module, JSX, brackets, strings, comments and no prose fences)",
"Generated .tsx establishes a scroll context: its top element is bounded by the host (height 100%) and scrolls, or holds a bounded scrolling body, so content below the fold is reachable"
],
"evals": [
{
"id": 1,
"tier": "smoke",
"prompt": "Build a page showing Account records as a gallery of cards. Include name, website, email, phone number. Make the gallery scrollable and each card clickable to open the Account record.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entities: account",
"specific_requirements": "Responsive card layout, each card clickable to open the Account record"
},
"app_selection": "user selects an existing app from apps.js list"
},
"expectations": [
"Phase 1 (Planner): list-tables.js --search 'account' --exact is run and the result is matched by exact logical name",
"Phase 1 (Planner): Account entity is detected as existing; plan records no entity creation required",
"Phase 2: Entity-builder is SKIPPED (no entities to create)",
"Phase 4: genpage.js types --data-sources 'account' --output-file <working-dir>/RuntimeTypes.ts is run",
"Phase 5b (single-page fast path): Plan has 1 page so orchestrator inlines the build — NO Task subagent dispatched for the page-builder",
"Phase 5b: Orchestrator reads ${PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx",
"Phase 5b: A relevant sample file is read (e.g., 7-responsive-cards.tsx for card layout)",
"Phase 5b: Generated .tsx uses only column names verified from RuntimeTypes.ts — no guessed names",
"Phase 5b: After writing, orchestrator greps the .tsx for `from \"@fluentui/react-icons\"` imports and verifies each named import against verified-icons.txt — rewrites if any are missing",
"Phase 6: the upload (genpage-upload.js) includes --app-id, --code-file, --data-sources 'account', --prompt, --model, --name, --agent-message, --add-to-sitemap",
"Phase 6: --prompt value is the FULL page description (from plan's ## User Requirements) — this is the create-step prompt, NOT a delta"
]
},
{
"id": 2,
"tier": "smoke",
"prompt": "Create a dashboard page with mock data showing sales metrics — monthly revenue chart, top 5 customers table, and a KPI summary bar. Use a modern dark theme look.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Mock data",
"specific_requirements": "Modern dark theme look"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): Data source question is skipped or answered 'mock data' — no entity detection needed",
"Phase 1 (Planner): Plan mentions mock data, D3.js for chart, DataGrid for customers table, KPI cards",
"Phase 2: Entity-builder is SKIPPED (mock data)",
"Phase 4: RuntimeTypes generation is SKIPPED (mock data)",
"Phase 5 (Page Builder): genpage-page-builder is invoked with Data mode: mock",
"Phase 5 (Page Builder): Generated .tsx includes realistic mock data (not empty arrays or identical values)",
"Phase 5 (Page Builder): Chart uses D3.js exclusively — no Chart.js, Recharts, or other libraries. D3 code uses group() not nest()",
"Phase 5 (Page Builder): DatePicker (if used) is imported from @fluentui/react-datepicker-compat, not @fluentui/react-components",
"Phase 6: Deployment omits --data-sources flag (mock data page)"
]
},
{
"id": 3,
"tier": "smoke",
"prompt": "I need to edit an existing generative page in my Sales Hub app. The page shows contacts but I want to add a search bar and sorting by company name.",
"data": {
"question_answers": {
"new_or_edit": "Edit existing",
"app_and_page": "user provides app-id and page-id of an existing contacts page",
"changes": "Add a search bar and column sorting by company name"
}
},
"expectations": [
"Phase 1 (Planner): User indicates 'edit existing'; planner returns { action: 'edit' }, skipping Phases 2-8 of the create flow",
"Edit Phase 1a: apps.js list is run to discover available apps — orchestrator does NOT guess or invent app names",
"Edit Phase 1a: Apps are presented to the user via AskUserQuestion using the actual app name and app-id GUID from the apps.js list output",
"Edit Phase 1b: After app selection, genpage.js list --app-id <selected> is run to discover pages — orchestrator does NOT guess or invent page names",
"Edit Phase 1b: Pages are presented to the user via AskUserQuestion using the actual page names and page-id GUIDs from genpage.js list output",
"Edit Phase 1b: If the app has zero genpages, the user is told there are no pages to edit and the flow stops",
"Edit Phase 1c: Selection is restated to the user before proceeding to download",
"Edit Phase 2: genpage.js download produces <working-dir>/<page-id>/ with page.tsx, config.json, prompt.txt",
"Edit Phase 3: config.json is read; since dataSources contains 'contact', RuntimeTypes.ts is generated",
"Edit Phase 4: genpage-edit-planner agent is invoked via Task tool",
"Edit Phase 4: edit-planner reads page.tsx, config.json, and prompt.txt from the <page-id>/ folder",
"Edit Phase 4: genpage-edit-plan.md is written to the working directory root (not inside <page-id>/)",
"Edit Phase 5: Orchestrator reads genpage-edit-plan.md, rules.md, RuntimeTypes.ts, and page.tsx",
"Edit Phase 5: Orchestrator applies edits inline using Edit tool on <working-dir>/<page-id>/page.tsx",
"Edit Phase 5: Search implementation uses Fluent UI V9 SearchBox or Input; sort uses column header handlers",
"Edit Phase 5: Existing functionality is preserved per the edit plan's Preservation Constraints",
"Edit Phase 6: the upload (genpage-upload.js) uses --page-id flag; omits --add-to-sitemap",
"Edit Phase 6: --prompt value is the user's edit request (the DELTA of changes — 'Add a search bar and column sorting by company name'), NOT a re-statement of the original page description"
]
},
{
"id": 4,
"tier": "full",
"prompt": "Build a multi-step wizard form for creating new Case records. Step 1: customer info. Step 2: case details (title, priority, category). Step 3: review and submit. Use the incident and contact tables.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entities: incident, contact (skipped because prompt specifies them)",
"specific_requirements": "3-step wizard with Next/Back navigation, form validation, review before submit"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): list-tables.js --search 'incident,contact' --exact is run; both entities confirmed as existing",
"Phase 2: Entity-builder is SKIPPED",
"Phase 4: genpage.js types --data-sources 'incident,contact' is run",
"Phase 5 (Page Builder): Wizard sample (2-wizard-multi-step.tsx) is read",
"Phase 5 (Page Builder): Generated code includes step state management (current step tracking) and Next/Back navigation",
"Phase 5 (Page Builder): Step 3 (review) shows a summary of entered data before submission",
"Phase 5 (Page Builder): Submit uses dataApi.createRow with verified column names from RuntimeTypes.ts",
"Phase 5 (Page Builder): Form uses Fluent UI V9 components (Input, Dropdown, etc.) — not HTML form elements",
"Phase 5 (Page Builder): All form fields have aria-labels or aria-labelledby for accessibility",
"Phase 6: Upload includes --data-sources 'incident,contact'"
]
},
{
"id": 5,
"tier": "full",
"prompt": "/genpage Build a task management board with columns for To Do, In Progress, and Done. Use the task entity. Allow dragging tasks between columns.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: task (skipped because prompt specifies it)",
"specific_requirements": "Kanban layout with drag-and-drop between columns mapped to status values"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): task entity confirmed as existing; plan describes kanban with 3 columns mapped to task statecode/statuscode values",
"Phase 4: RuntimeTypes.ts is read — status field enum values are identified for column mapping",
"Phase 5 (Page Builder): Drag-and-drop uses native HTML5 events (onDragStart, onDragOver, onDrop) — no external DnD library",
"Phase 5 (Page Builder): Status update on drop uses dataApi.updateRow with the correct status enum value",
"Phase 5 (Page Builder): Code uses entity logical name 'task' (singular lowercase) not 'tasks'",
"Phase 5 (Page Builder): All components and utilities are separate top-level functions (no nested function definitions)"
]
},
{
"id": 6,
"tier": "full",
"prompt": "Create a simple analytics dashboard with mock data. I just want some charts showing website traffic trends and visitor demographics. Keep it clean and minimal.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Mock data",
"specific_requirements": "Clean and minimal design"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 2: Entity-builder is SKIPPED (mock data)",
"Phase 4: RuntimeTypes generation is SKIPPED (mock data)",
"Phase 5 (Page Builder): Charts use D3.js exclusively — no Chart.js, Recharts, or other chart libraries",
"Phase 5 (Page Builder): Mock data is realistic (not empty arrays, not identical values)",
"Phase 5 (Page Builder): Generated code has no unnecessary complexity matching the 'clean and minimal' request",
"Phase 6: Upload omits --data-sources flag"
]
},
{
"id": 7,
"tier": "full",
"prompt": "Build a page showing all job candidates with their application status, interview scores, and assigned recruiter. I need new tables for this — cr_candidate and cr_jobrequisition entities don't exist yet in my environment.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entities: cr_candidate, cr_jobrequisition (new entities to create)",
"specific_requirements": "Candidate list with status, interview scores, assigned recruiter",
"sample_data": "Yes, add sample data"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): list-tables.js --search --exact confirms cr_candidate and cr_jobrequisition do NOT exist (named in missing — an exact logical-name match, not fuzzy)",
"Phase 1 (Planner): Plan includes entity definitions with columns, types, and a lookup relationship (cr_candidate → cr_jobrequisition)",
"Phase 1 (Planner): Because entities will be created, the planner asks the solution selection question via AskUserQuestion and records the choice in ## Environment as 'Solution: <uniqueName>' and 'Publisher Prefix: <prefix>'",
"Phase 2a: Orchestrator runs scripts/check-auth.js; ok:true gate before invoking entity-builder",
"Phase 2b (Entity Builder): Reads Solution + Publisher Prefix from the plan's ## Environment",
"Phase 2b (Entity Builder): cr_jobrequisition (independent) is provisioned before cr_candidate (has lookup) to satisfy dependency ordering",
"Phase 2b (Entity Builder): Every create-table.js / add-column.js / create-relationship.js call passes --solution <name> (always — 'Default' is a valid value, never omitted); provision-entities.js flow specifies solution via input JSON, verified through ## Environment → Solution: declaration",
"Phase 2b (Entity Builder): provision-entities.js handles entity creation and column definitions atomically with internal propagation management",
"Phase 2b (Entity Builder): Lookup relationship (cr_candidate → cr_jobrequisition) is provisioned via input JSON; provision-entities.js handles propagation internally",
"Phase 2b (Entity Builder): User is asked about sample data via AskUserQuestion",
"Phase 2b (Entity Builder): Sample data is provisioned via provision-entities.js input JSON; parent references use $parent/match convention for dependency resolution",
"Phase 2b (Entity Builder): Actual logical names are reported back (may be normalized by Dataverse); a transaction log at <working-dir>/genpage-entity-creation-log.md captures each successful operation",
"Phase 4: genpage.js types is run with the created entity names",
"Phase 5 (Page Builder): Generated code uses ONLY verified column names from RuntimeTypes.ts",
"Phase 6: Upload includes --data-sources with both created entity names"
]
},
{
"id": 8,
"tier": "full",
"prompt": "Create a dashboard page with account metrics. I don't have any model-driven apps yet.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: account",
"specific_requirements": "Account metrics dashboard"
},
"app_selection": "apps.js list returns zero apps; user chooses to create a new app named 'Account Metrics'"
},
"expectations": [
"Phase 1 (Planner): apps.js list returns zero apps",
"Phase 1 (Planner): User is asked via AskUserQuestion whether to create a new app or cancel",
"Phase 1 (Planner): Plan records 'create new app' decision",
"Phase 1 (Planner): Because a new app will be created, the planner asks the solution selection question and records the choice in ## Environment",
"Phase 6 (new app): apps.js create --name 'Account Metrics' --solution '<Solution from plan>' --page-id <first page> --publish is run after the first page's upload; --solution is ALWAYS passed (apps.js create refuses a call without it)",
"Phase 6 (new app): The first page is created with no --app-id and no --add-to-sitemap, before the app exists",
"Phase 6: Every upload after the app is created uses the newly created app-id"
]
},
{
"id": 9,
"tier": "full",
"prompt": "Build a project tracker page. I need new cr_project and cr_milestone entities with sample data to test the page.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entities: cr_project, cr_milestone (new)",
"specific_requirements": "Project tracker with milestones; include sample data"
},
"app_selection": "user selects an existing app",
"sample_data_response": "Yes, add sample data"
},
"expectations": [
"Phase 1 (Planner): cr_project and cr_milestone confirmed as NOT existing",
"Phase 1 (Planner): Plan includes a lookup relationship (cr_milestone → cr_project)",
"Phase 1 (Planner): Solution selection question is asked because new entities will be created",
"Phase 2a: Orchestrator runs scripts/check-auth.js; ok:true gate before invoking entity-builder",
"Phase 2b (Entity Builder): cr_project and cr_milestone entities are provisioned with lookup relationship (cr_milestone → cr_project) via provision-entities.js; dependency ordering is handled automatically",
"Phase 2b (Entity Builder): Sample data is created because the user explicitly requested it in the prompt",
"Phase 2b (Entity Builder): Sample data is provisioned via provision-entities.js; realistic values (not lorem ipsum)",
"Phase 2b (Entity Builder): Sample records respect relationships (milestones reference projects via $parent/match convention)",
"Phase 6: Deployment includes --data-sources with both entity names"
]
},
{
"id": 10,
"tier": "stress",
"prompt": "Build a page for my new cr_widget entity that doesn't exist yet.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: cr_widget (new, does not exist)"
},
"environment_state": "az CLI is signed out, lacks Dataverse access, or times out; timeout retry is bounded to once and a final failure halts"
},
"expectations": [
"Phase 1 (Planner): cr_widget is identified as NOT existing (exact logical-name match, not fuzzy)",
"Phase 1 (Planner): Plan records cr_widget under Entity Creation Required",
"Phase 2a: Orchestrator runs scripts/check-auth.js BEFORE invoking entity-builder; parses the returned JSON",
"Phase 2a: If the script returns blocker:'az_not_logged_in', orchestrator surfaces the message ('Run `az login`...') to the user and halts (entity-builder is NOT invoked)",
"Phase 2a: If blocker:'whoami_403', orchestrator surfaces the message including the specific `az login --username <pacUser>` command and halts",
"Phase 2a: If ok:true but identitiesMatch:false, orchestrator proceeds but surfaces a one-line warning",
"Phase 2b: genpage-entity-builder is only invoked AFTER check-auth returns ok:true",
"Phase 2a: Auth timeout retries once then halts before provisioning or upload"
]
},
{
"id": 11,
"tier": "full",
"prompt": "Build me three pages for a recruitment app: a candidate list page, an interview schedule page, and a hiring metrics dashboard. Use the contact and appointment entities.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entities: contact, appointment (skipped because prompt specifies them)",
"specific_requirements": "Three distinct pages sharing the contact and appointment entities"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): Plan includes 3 pages in the Pages table with distinct file names and purposes",
"Phase 1 (Planner): Per-Page Specifications section has an entry for each of the 3 pages",
"Phase 5a: Orchestrator validates the plan — at least one page, unique filenames, each page has a matching Per-Page Specifications subsection",
"Phase 4: genpage.js types is run ONCE with --data-sources 'contact,appointment'; a single RuntimeTypes.ts is generated",
"Phase 5c (multi-page): Three genpage-page-builder agents are invoked via Task tool in a SINGLE message (parallel execution, not sequential). The single-page fast path (5b) is NOT taken because N>1.",
"Phase 5c: Each builder receives a distinct target filename — no two builders target the same file",
"Phase 5c: Each builder reads the same genpage-plan.md but extracts only its own page specification",
"Phase 5c: Each builder reads the same RuntimeTypes.ts for column verification",
"Phase 5c: Cross-page navigation (e.g., candidate list → candidate detail) uses quoted `\"PAGEREF_<filename>\"` placeholders, never invented GUIDs",
"Phase 6: All 3 pages are deployed via separate genpage-upload.js create uploads, each with the correct --code-file",
"Phase 6.5: If any .tsx contains PAGEREF_ tokens, orchestrator builds a filename→page-id map sorted by length desc, replaces quoted `\"PAGEREF_<name>\"` tokens with the matching GUID (word-boundary safe), and re-uploads only affected files with the full update flag set",
"Phase 6.5: Re-upload uses a DELTA --prompt (e.g. 'Resolve cross-page navigation placeholders to real page GUIDs') — NOT a copy of the original page description from Phase 6",
"Phase 6.5: Unresolved PAGEREF tokens (typos, missing siblings) cause an explicit error to the user — never silently shipped",
"Phase 8: Summary table lists all 3 pages with their files, entities, and deployment status"
]
},
{
"id": 12,
"tier": "stress",
"prompt": "Build a page showing Account records with a filter toolbar and sortable columns.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: account",
"specific_requirements": "Filter toolbar and sortable columns"
},
"plan_revision_scenario": "On first plan presentation the user rejects via ExitPlanMode with 'add a search box in addition to the filter toolbar'; the planner revises the plan and re-enters plan mode; the user approves the revised plan"
},
"expectations": [
"Phase 1 (Planner): Initial plan is presented via EnterPlanMode",
"Phase 1 (Planner): User requests a revision (ExitPlanMode with changes-requested response)",
"Phase 1 (Planner): Planner revises the plan based on user feedback and re-enters plan mode",
"Phase 1 (Planner): Revised plan reflects the user's requested changes (search box added)",
"Phase 1 (Planner): User approves the revised plan on the second presentation",
"Phase 1 (Planner): genpage-plan.md reflects the approved (revised) version, not the initial version",
"Phase 5 (Page Builder): Generated code implements the revised plan (includes BOTH filter toolbar AND search box)"
]
},
{
"id": 13,
"tier": "full",
"prompt": "Build a page showing Contact records with name, email, and phone.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: contact",
"specific_requirements": "Contact list display"
},
"app_selection": "user selects an existing app",
"environment_state": "The environment has English (1033), Arabic (1025) and French (1036) provisioned, which scripts/list-languages.js reports (it is the only source: a failed read ends language detection, and no language is assumed). This eval exercises the localization code path."
},
"expectations": [
"Phase 1 (Planner): language discovery output includes Arabic (1025) and French (1036) in addition to English",
"Phase 1 (Planner): Plan includes a Localization section listing detected languages",
"Phase 5 (Page Builder): Generated .tsx includes language detection boilerplate using Xrm.Utility.getGlobalContext().userSettings.languageId",
"Phase 5 (Page Builder): Generated .tsx has a translations dictionary with entries for en-US, ar-SA, and fr-FR",
"Phase 5 (Page Builder): All user-visible text goes through a translate() helper — no hardcoded display strings in JSX",
"Phase 5 (Page Builder): RTL support is included (dir attribute set based on language.isRtl) because Arabic is a detected RTL language",
"Phase 5 (Page Builder): Generated .tsx uses logical CSS properties (marginInlineStart/End, paddingInlineStart/End) instead of physical (marginLeft/Right)",
"Phase 5 (Page Builder): Generated .tsx fetches usersettings via dataApi.retrieveRow and uses formatDate/formatNumber/formatCurrency helpers",
"Phase 5 (Page Builder): Generated .tsx does NOT hardcode currency symbols or date formats"
]
},
{
"id": 14,
"tier": "stress",
"prompt": "Build two pages for tracking Account records — one for listing all accounts and one for editing a single account.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: account",
"specific_requirements": "Two pages — list and edit"
},
"app_selection": "user selects an existing app",
"planner_scenario": "The planner initially assigns the filename account.tsx to both pages in the Pages table. The orchestrator detects the collision in Phase 5a and must rewrite the plan to give the pages unique filenames before dispatching builders."
},
"expectations": [
"Phase 1 (Planner): Plan initially contains a Pages table with 2 pages",
"Phase 5a: Orchestrator reads the Pages table and detects duplicate filenames",
"Phase 5a: check-page-files.js refuses the colliding plan and the orchestrator halts and re-plans through the planner (it never renames files itself), so genpage-plan.md carries unique, re-approved filenames (e.g., account-list.tsx, account-edit.tsx) before any builder is dispatched",
"Phase 5c: Two page-builders are invoked in parallel with distinct target filenames",
"Phase 5c: No builder overwrites another builder's output (both .tsx files exist after Phase 5)",
"Phase 6: Both pages are deployed with their distinct filenames"
]
},
{
"id": 15,
"tier": "full",
"prompt": "Build a page tracking support tickets. I need a new cr_ticket entity with a priority choice column (Low, Medium, High, Critical), a status choice column (Open, In Progress, Resolved, Closed), and a due date column.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: cr_ticket (new entity to create)",
"specific_requirements": "Ticket tracker with priority (4 choices), status (4 choices), and due date"
},
"app_selection": "user selects an existing app",
"sample_data_response": "No, skip sample data"
},
"expectations": [
"Phase 1 (Planner): cr_ticket is identified as NOT existing",
"Phase 1 (Planner): Plan includes choice column definitions for priority and status under Choice Columns, with numeric option values starting at 100000000",
"Phase 1 (Planner): Plan includes a datetime column for due date",
"Phase 1 (Planner): Solution selection question is asked (because new entity will be created) and recorded in ## Environment",
"Phase 2a: scripts/check-auth.js returns ok:true before entity-builder is invoked",
"Phase 2b (Entity Builder): cr_ticket is provisioned with choice columns via provision-entities.js input JSON; each picklist option is written as its label, in the plan's order (numbered 100000000 + index)",
"Phase 2b (Entity Builder): Priority picklist has 4 options starting at 100000000 (Low=100000000, Medium=100000001, High=100000002, Critical=100000003)",
"Phase 2b (Entity Builder): Status picklist has 4 options starting at 100000000",
"Phase 2b (Entity Builder): Solution is specified via provision-entities.js input JSON; verified through ## Environment → Solution: declaration",
"Phase 2b (Entity Builder): Transaction log (genpage-entity-creation-log.md) records each create with its returned metadataId",
"Phase 4: genpage.js types picks up the enum registrations",
"Phase 5 (Page Builder): Generated .tsx uses the choice enum names from RuntimeTypes.ts (not magic numbers)",
"Phase 5 (Page Builder): Generated .tsx uses dataApi.getChoices() or reads FormattedValue annotations for choice display names"
]
},
{
"id": 16,
"tier": "smoke",
"prompt": "Build a page showing Account records.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: account",
"specific_requirements": "Simple account list"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): genpage-plan.md is written and conforms to references/plan-schema.md",
"Phase 1 (Planner): genpage-plan.md contains ALL required sections with exact headings: # Genpage Plan, ## User Requirements, ## Working Directory, ## Plugin Root, ## Environment, ## Pages, ## Entity Creation Required, ## Existing Entities, ## Design Preferences, ## Relevant Samples, ## Per-Page Specifications",
"Phase 1 (Planner): ## Pages table has at least one row with columns Page, File, Purpose, Entities",
"Phase 1 (Planner): ## Per-Page Specifications has one ### <Page Name> subsection for each row in ## Pages",
"Phase 1 (Planner): File names in ## Pages are unique",
"Phase 1 (Planner): Because the account entity exists, ## Entity Creation Required contains the literal string 'No entity creation required — all entities already exist.'",
"Phase 1 (Planner): ## Existing Entities contains the entity logical name used for RuntimeTypes generation (account)"
]
},
{
"id": 17,
"tier": "smoke",
"prompt": "Build a dashboard showing the current weather for Seattle with temperature, conditions, and humidity.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Mock data",
"specific_requirements": "current weather panel"
},
"app_selection": "user selects an existing app from apps.js list"
},
"expectations": [
"Phase 1 (Planner): For a mock-data page, connector discovery (list-connections.js) is NOT run, and the plan's ## Connector Bindings is exactly 'No connector bindings.'",
"Phase 2: Entity-builder is SKIPPED (mock data)",
"Phase 4: RuntimeTypes generation is SKIPPED (mock data)",
"Phase 5 (Page Builder): genpage-page-builder is invoked with Data mode: mock",
"Phase 5b (single-page fast path): Plan has 1 page so orchestrator inlines the build — NO Task subagent dispatched for the page-builder",
"Phase 5b: Orchestrator reads ${PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx",
"Phase 5b: A relevant sample file is read (e.g., 7-responsive-cards.tsx for card layout)",
"Phase 5b: After writing, orchestrator greps the .tsx for `from \"@fluentui/react-icons\"` imports and verifies each named import against verified-icons.txt — rewrites if any are missing",
"Phase 6: Deployment omits --data-sources flag (mock data page)"
]
},
{
"id": 18,
"tier": "full",
"prompt": "Build a page listing documents from our SharePoint team site.",
"data": {
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "SharePoint (connector)",
"specific_requirements": "list documents"
}
},
"expectations": [
"Phase 1 (Planner): For a connector-backed page, list-connections.js is run for connector discovery, and the plan's ## Connector Bindings records at least one binding (not 'No connector bindings.')",
"Phase 4.5 / Phase 6: connectors.json is written as a bare array (not the config.json object wrapper) and the upload includes --connectors",
"Phase 2: Entity-builder is SKIPPED (no entities to create)",
"Phase 5b (single-page fast path): Plan has 1 page so orchestrator inlines the build — NO Task subagent dispatched for the page-builder",
"Phase 5b: Orchestrator reads ${PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx",
"Phase 5b: A relevant sample file is read (e.g., 7-responsive-cards.tsx for card layout)",
"Phase 5b: After writing, orchestrator greps the .tsx for `from \"@fluentui/react-icons\"` imports and verifies each named import against verified-icons.txt — rewrites if any are missing"
]
},
{
"id": 19,
"tier": "full",
"prompt": "Edit the Seattle Weather page in my Operations Hub app — pull the current conditions from the real MSN Weather connector instead of the hard-coded numbers. Leave the five-day forecast alone.",
"data": {
"question_answers": {
"new_or_edit": "Edit existing",
"app_and_page": "user selects Operations Hub, then the Seattle Weather page, from the apps.js list / genpage.js list output",
"changes": "Bind current conditions to the MSN Weather connector; preserve the five-day forecast"
}
},
"expectations": [
"Phase 1 (Planner): User indicates 'edit existing'; planner returns { action: 'edit' }, skipping Phases 2-8 of the create flow",
"Edit Phase 1a: apps.js list is run to discover available apps — orchestrator does NOT guess or invent app names",
"Edit Phase 1b: After app selection, genpage.js list --app-id <selected> is run to discover pages — orchestrator does NOT guess or invent page names",
"Edit Phase 4: genpage-edit-planner agent is invoked via Task tool",
"Edit Phase 4: genpage-edit-plan.md is written to the working directory root (not inside <page-id>/)",
"Edit Phase 3.5 (connector edit): genpage-connector-builder is dispatched with Mode: edit and the existing bindings, runs list-connections.js, and writes connectors.json as a bare JSON array",
"Edit Phase 5 (REST connector): the page calls executeConnectorOperation for an operation-based connector — never queryConnectorTable — presence-checks the method, and checks response.ok before reading response.body",
"Edit Phase 5 (preservation): content the connector cannot supply is preserved per the edit plan's Preservation Constraints rather than dropped",
"Edit Phase 6 (connector edit): the upload passes --page-id and --connectors, omits --add-to-sitemap, and --prompt carries only the edit delta"
]
},
{
"id": 20,
"tier": "full",
"prompt": "Create Revenue $100 $(Get-Date) using the exact approved file text. Independently edit an existing renamed page without changing its model, data sources, connectors or Custom APIs; store a straight-quoted create name exactly as approved.",
"data": { "fixture_kind": "synthetic", "contract_version": 2 },
"expectations": [
"Phase 6: Create uploads use name-file and preserve the exact approved name prompt and agent-message text",
"Edit Phase 6: Updates preserve omitted name model data sources and untouched connector and action bindings"
]
},
{
"id": 21,
"tier": "full",
"prompt": "Build a SharePoint documents page, but connection discovery returns unreadable PAC output. Return needs_input with the error; do not set up a connection or generate a page.",
"data": { "fixture_kind": "synthetic", "expected_outcome": "refused" },
"expectations": [
"Phase 1: Discovery refusal preserves the error and halts before connection setup or generation"
]
},
{
"id": 22,
"tier": "full",
"prompt": "Build three mock pages with sibling navigation. Resolve every effective target and reupload only affected pages without changing any other source bytes.",
"data": { "fixture_kind": "synthetic", "navigation_phase": "before-and-after" },
"expectations": [
"Phase 6.5: Every effective navigation target resolves against the deployed page map; exact substitutions preserve non-navigation bytes and only affected pages reupload"
]
},
{
"id": 23,
"tier": "full",
"prompt": "Build a complete mock summary page. If worker output is truncated after a valid export, refuse upload, stamp and regenerate once, then upload only the complete accepted bytes.",
"data": { "fixture_kind": "synthetic", "expected_outcome": "regenerated" },
"expectations": [
"Phase 5: A rejected worker artifact prevents upload until a stamped, complete regeneration passes the production gate"
]
},
{
"id": 24,
"tier": "full",
"prompt": "Discover the bound Approve Order Action and global Summary Function, use the exact binding names and parameter kinds, then preserve and explicitly clear bindings on separate updates.",
"data": { "fixture_kind": "synthetic", "declared_outputs": { "cnt_ApproveOrder": ["NewStatus"], "cnt_GetOrderSummary": ["Total"] } },
"expectations": [
"Phase 5: Custom API discovery, gate, bare bindings, runtime calls and update preservation or explicit clear agree"
]
},
{
"id": 25,
"tier": "full",
"prompt": "Package a deployed three-page app and its document connection reference into ContosoPages. Pass every page id explicitly, discover component types, add the app first, check read-back, and refuse malformed identities before any write.",
"data": { "fixture_kind": "synthetic", "package_into_solution": true },
"expectations": [
"Phase 6.7: Packaging uses every deployed page id, the approved solution and discovered component types; invalid identities refuse before writes and results agree with read-back"
]
},
{
"id": 26,
"tier": "full",
"prompt": "Build a Customer Opportunities page for our existing opportunities. Show every opportunity that has a customer, whether an account or a contact, and let me search customer names by substring. From each opportunity I want to open the customer's record, change the opportunity's customer, and see the opportunities for this account.",
"data": {
"fixture_kind": "synthetic",
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: opportunity",
"specific_requirements": "Open the customer's record, change the customer, and show the opportunities for this account",
"account_scope": "Direct customer"
},
"app_selection": "user selects an existing app"
},
"expectations": [
"Phase 1 (Planner): The open account-scope question reaches the maker as needs_input with no default, the answer returns to the planner by its question id, and the written plan and the approved preview record it as a user-confirmed assumption before approval",
"Phase 1 (Planner): get-lookup-metadata.js reads opportunity's lookups before approval, its successful answer is the saved lookup-metadata.json, and every recorded lookup is observed with the complete targets and concrete paths it read",
"Phase 1 (Planner): The newly authored plan records its assumptions and every page's data semantics and lookup metadata, the approved preview carries the same records, and provenance is verified with --require-assumptions",
"Phase 4: RuntimeTypes.ts is generated for opportunity and types each recorded lookup's read property with exactly its recorded targets",
"Phase 5a: The page is generated only after provenance is verified with --require-assumptions --require-observed-lookups --lookup-metadata on this plan's records",
"Phase 5b: Generated .tsx uses only column names verified from RuntimeTypes.ts — no guessed names"
]
},
{
"id": 27,
"tier": "full",
"prompt": "Build an Order Approvals page for our existing sales orders: list the sales orders, show the one I select, and let me approve it with the existing Approve Order action.",
"data": {
"fixture_kind": "synthetic",
"question_answers": {
"new_or_edit": "Create new page(s)",
"data_source": "Dataverse entity: salesorder",
"specific_requirements": "Approve the selected order with the Approve Order action"
},
"app_selection": "user selects an existing app",
"declared_outputs": { "cnt_ApproveOrder": ["NewStatus"] }
},
"expectations": [
"Phase 1 (Planner): The newly authored plan records its assumptions and every page's data semantics and lookup metadata, the approved preview carries the same records, and provenance is verified with --require-assumptions"
]
}
]
}