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
Workflow Log — Eval 27: Order approvals with one error reporter (create flow)
Synthetic trace constructed from the current /genpage SKILL.md, not a captured agent run.
Every command below has an ordered result in tool-results.json. Commands run from the
working directory, so file arguments are relative to it.
Phase 0 — Working directory
$ARGUMENTS: "Build an Order Approvals page for our existing sales orders."- Working directory created:
mkdir -p 'order-approvals'(kebab-case from "Order Approvals") - Resolved working directory: D:/work/order-approvals
- Plugin root: D:/repo/plugins/model-apps
Phase 0.5 — Local-dev manifest
- Command:
node 'D:/repo/plugins/model-apps/scripts/generate-page-manifest.js' 'D:/work/order-approvals' 'order-approvals' - Result: exit 0; package.json and genpage.d.ts written; no
--features(no charts or date/time pickers needed)
Phase 1 — Plan
Interaction mode
- Command:
node 'D:/repo/plugins/model-apps/scripts/resolve-interaction-mode.js' - Result:
{"ok":true,"interactive":true,"reason":"default (attended)"}— attended run, every gate asked in this loop
Prereq checks (run separately, not chained)
node --version→ v20.20.2pac help→ Microsoft PowerPlatform CLI Version: 2.11.0 (> 2.10.0 verified)
Auth
pac auth list→ one profile, currently active: [email protected]- Active environment reported to the user: https://contoso.crm.dynamics.com/
Create or edit
- AskUserQuestion: Do you want to create new page(s) or edit an existing page? → Create new page(s)
Requirements
- AskUserQuestion: Where should the page get its data? → Dataverse entity: salesorder
- AskUserQuestion: Any specific requirements for the page? → Approve the selected order with the Approve Order action
Discovery (genpage-planner dispatched via Task as a headless worker)
- Dispatched
Task genpage-plannerwith the requirements, working directory, plugin root, create/edit decision = create,No connector bindings.(connectors.json: none — omit --connectors) andNo custom API bindings.(discovery has not run) - Planner ran
node 'D:/repo/plugins/model-apps/scripts/list-languages.js' --env 'https://contoso.crm.dynamics.com'→ English (1033) only, no RTL language - Planner ran
node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --search 'salesorder' --exact→ 1 table:salesorder(exact logical-name match, nothing inmissing); no entity creation - Planner ran
node 'D:/repo/plugins/model-apps/scripts/apps.js' list --env 'https://contoso.crm.dynamics.com'→ 2 apps: Sales Hub (11111111-2222-3333-4444-555555555555), Customer Service Hub (44444444-5555-6666-7777-888888888888) - Planner returned
{ "action": "custom_api_discovery_required", "resolvedAction": "create", "pageTables": "salesorder" }: the request names an existing Approve Order action
Custom API discovery (genpage-customapi-builder, Mode: create)
- Dispatched
Task genpage-customapi-builderwith Mode: create, https://contoso.crm.dynamics.com, page tables salesorder, the working directory and the plugin root - Builder ran
node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' dataverse-operations→ disabled (no built-in operation is offered) - Builder ran
node 'D:/repo/plugins/model-apps/scripts/list-custom-apis.js' 'https://contoso.crm.dynamics.com' --entities 'salesorder'→ cnt_ApproveOrder (Action, bound to salesorder, Comment: String) - Builder wrote custom-api-bindings.md (one binding row) and actions.json (a bare array holding that row)
- Read custom-api-bindings.md; actions.json is a bare JSON array
Planning with the binding
- Re-invoked
Task genpage-plannerwith the## Custom API Bindingscontract and the actions.json status; it returned{ "action": "needs_input" }for the app choice - AskUserQuestion: Which app should the page be added to? (options from
apps.js list: Sales Hub — 11111111-2222-3333-4444-555555555555; Customer Service Hub — 44444444-5555-6666-7777-888888888888; Create a new app) → Sales Hub (existing app) - Data semantics (planner Step 4, "Resolve Data Semantics"): the request asks for the sales orders with no restriction and uses no lookup, so no question was needed; the planner recorded two planner defaults (A1 — no added restriction, name order, 50 rows; A2 — initial-load caching)
Solution selection
- Code-only build (no new entities, existing app) → solution selection question SKIPPED
- Defaults written to the plan:
Solution: Default,Publisher Prefix: new
Plan approval
- Re-invoked
Task genpage-plannerwith every answer gathered so far; it returned the proposed plan (1 page: Order Approvals on salesorder), its### Assumptionsfirst - EnterPlanMode called — presented the proposed plan, Assumptions A1 and A2 first, then the page list, Data Semantics (None.) and Lookup Metadata (None.)
- ExitPlanMode → user approved the plan without changes
- Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' prepare --plan 'D:/work/order-approvals/genpage-plan.md' - Result:
"ok":true, nothing to quarantine (first run in this folder) - Saved the approved plan body verbatim to D:/work/order-approvals/.approved-genpage-plan.md (kept here as approved-plan.md)
- Re-invoked
Task genpage-plannerwith the approval outcome, the approved plan body and all prior discovery; it wrote genpage-plan.md (conforms to references/plan-schema.md, with the same Assumptions and per-page records) - Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/order-approvals/genpage-plan.md' --approved '@D:/work/order-approvals/.approved-genpage-plan.md' --require-assumptions - Result:
"ok":true, kind create, targets [order-approvals.tsx], writtenHash 36d395158139cb51e1359e3ba90cc8f21e7ed3b3b3e454289aaa6388353f1310, semanticsHash 63d8d19210142a458d55cd6d9181628948d5a3e38cb567807aa0edd7accfd44d
Phase 2 — Entities
- SKIPPED:
## Entity Creation Requiredis the no-entity sentinel (salesorder exists) - check-auth.js and genpage-entity-builder were not invoked (no metadata work)
- Phase 2c SKIPPED: the plan records no lookup
Phase 3 — App
- SKIPPED app creation: existing app Sales Hub (11111111-2222-3333-4444-555555555555) selected
Phase 4 — RuntimeTypes
node 'D:/repo/plugins/model-apps/scripts/genpage.js' types --env 'https://contoso.crm.dynamics.com' --data-sources 'salesorder' --output-file 'D:/work/order-approvals/RuntimeTypes.ts'- Read RuntimeTypes.ts: verified salesorderid, name, totalamount and statuscode
Phase 4.5 — Connector bindings
- SKIPPED: plan says
No connector bindings.→ Connectors: none; no connectors.json, no--connectors
Phase 4.6 — Custom API bindings
- The plan's
## Custom API Bindingstable has one row, cnt_ApproveOrder; the Custom API rows of actions.json match it (name, Action, salesorder, Comment: String)
Phase 4.6b — Built-in Dataverse operations
- SKIPPED: the plan has no
## Dataverse Operationssection
Phase 4.6c — The actions file
- actions.json is not empty: the create passes
--actions 'D:/work/order-approvals/actions.json'
Phase 4.7 — Page telemetry
- Command:
node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-telemetry - Result:
disabled→ Telemetry: disabled; the page contains no telemetry calls
Phase 5a — Plan validation
- One page row with a matching
### Order Approvalssubsection - Command:
node 'D:/repo/plugins/model-apps/scripts/check-page-files.js' --plan 'D:/work/order-approvals/genpage-plan.md' - Result:
"ok":true— order-approvals.tsx is a safe, unique page file - The plan's records are complete: Assumptions A1 and A2; Data semantics and Lookup metadata are
None. - Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/order-approvals/genpage-plan.md' --approved '@D:/work/order-approvals/.approved-genpage-plan.md' --require-assumptions - Result:
"ok":true, semanticsHash 63d8d19210142a458d55cd6d9181628948d5a3e38cb567807aa0edd7accfd44d (unchanged since approval)
Phase 5b — Single-page fast path
- Plan has 1 page → inlined the page-builder workflow (no Task dispatch for the page)
- Data mode: dataverse; Connectors: none; Telemetry: disabled
- Read D:/repo/plugins/model-apps/references/rules.md, including Critical Rule 22 and "Missing Error Handling"
- Read samples 9-list-with-caching.tsx and 13-custom-api-invocation.tsx (from
## Relevant Samples) - Needs caching: true → read references/data-caching.md
- Custom API binding table → read references/custom-api.md
- Languages: English only → localization.md not needed
- Read genpage-plan.md and RuntimeTypes.ts
- Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --stamp --file 'D:/work/order-approvals/order-approvals.tsx' - Result:
"ok":true, stamp recorded, no earlier file at the target - Wrote order-approvals.tsx with the file tool: the page error block of rules.md copied unchanged, PageBody inside PageErrorBoundary; the list read through the window cache and in-flight de-dupe, its rejection reported from the consumer's catch with a retry; the selected order read awaited in a try with a stale-request guard; the Approve Order Action with a double-submit latch, both indeterminate checks before the network check before any other failure, and a rejection reported as a write; the approval belongs to the selected order — another order cannot be selected while it runs, and selecting another order clears its result and its retry
- Icon verification: Grep for
from "@fluentui/react-icons"→ one named import, CheckmarkRegular; Grep of references/verified-icons.txt for^CheckmarkRegular$→ present - Grep
['"]?borderWidth['"]?\s*:→ no matches - Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --file 'D:/work/order-approvals/order-approvals.tsx' - Result:
"ok":true, problems [] — complete page accepted
Phase 6 — Deploy
- Checked prompt.txt, agent-message.txt and page-name.txt in the working directory: none existed, none is a link
- Wrote prompt.txt (the full
## User Requirementsbody), agent-message.txt and page-name.txt ("Order Approvals") with the file tool - Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-upload.js' --env 'https://contoso.crm.dynamics.com' --app-id '11111111-2222-3333-4444-555555555555' --code-file 'order-approvals.tsx' --name-file 'page-name.txt' --data-sources 'salesorder' --actions 'actions.json' --prompt-file 'prompt.txt' --model 'claude-sonnet-4-6' --agent-message-file 'agent-message.txt' --add-to-sitemap - Prompt scope: full page description from the plan's
## User Requirements(create) - Result: page-id = cccccccc-dddd-eeee-ffff-000000000027, status = success (
updated: false, added to the Sales Hub sitemap)
Phase 6.5 — Navigation fix-up
- SKIPPED: single page, no PAGEREF_ placeholders
Phase 7 — Verify in browser
- AskUserQuestion: Would you like to verify the page(s) in the browser using Playwright? → Skip verification
Phase 8 — Summary
| Page | File | Entities | Status |
|---|---|---|---|
| Order Approvals | order-approvals.tsx | salesorder | Deployed |
- App: Sales Hub (11111111-2222-3333-4444-555555555555)
- Page ID: cccccccc-dddd-eeee-ffff-000000000027
- Entities created: none
- Custom API bindings: cnt_ApproveOrder
- Browser verification: skipped