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.
Canvas App Behavior Acceptance Guide
Use this guide to turn advanced prompt requirements into implementation contracts that can be verified from the generated YAML. A control, collection, or screen existing is not proof that the behavior works.
Functional capability inventory
Canvas apps are extensible through controls, Power Fx, data sources, connectors, components, and device capabilities, so no static list can enumerate every possible app. Classify every requested requirement into the applicable capability families below and create an Action Contract for every behavior in scope:
- App shell and navigation — start screen, menus, tabs, deep links, back behavior, responsive composition, accessibility, loading, empty, error, and permission states.
- Data lifecycle — create, read, select, view details, edit, save, cancel, delete, restore, validate, deduplicate, and preserve stable identity.
- Data exploration — search, filter, sort, group, paginate, select, clear, drill down, and show active criteria and zero-result states.
- Workflow and review — status transitions, approve, reject, assign, escalate, submit, reopen, confirm, enforce eligibility, and expose role-specific actions.
- Relationships and hierarchy — parent/child, team membership, ownership, dependencies, trees, org charts, and reassignment.
- Time and scheduling — dates, calendars, periods, recurrence, deadlines, timers, reminders, and time-zone-aware display.
- Analytics and visualization — counts, aggregates, KPIs, charts, dashboards, boards, maps, rankings, comparisons, and snapshots.
- Files, media, and device input — attachments, images, camera, barcode, audio, signatures, location, sensors, and import/export.
- Integration and automation — data-source CRUD, connectors, APIs, flows, notifications, report preparation, refresh, and error handling.
- Security, persistence, and resilience — role visibility, data-source permissions, session versus durable storage, offline behavior, concurrency, retry, and truthful failure states.
Implement only capabilities supported by discovered controls, data sources, APIs, and the approved scope. If exact behavior is unavailable, use an explicitly approved approximation or mark it blocked. Never substitute static UI for a behavior from this inventory.
Before summarizing or reorganizing the request, preserve each independently testable
original clause in the plan's ## Original Request Capability Inventory. Give it a stable
key, capability family, required outcome and scope, mapped Action Contract(s), named
observer(s), and Functional Test Matrix scenario(s). Inventory first, then design. A later
planner summary must not erase create/edit lifecycles, relationships, alert rules,
aggregation scope, or other requested behavior. Do not invent universal CRUD: map only
what the original request or approved plan requires.
Functional-first priority
Allocate implementation effort in this order:
- Shared data model, stable IDs, source-of-truth fields, and valid seed data.
- Every requested action's complete state transition and boundary behavior.
- Observable postconditions and cross-screen source consistency.
- Reachability, responsive layout, accessibility, and truthful empty/error states.
- Visual polish, decorative media, and optional secondary content.
When control or screen budgets are tight, remove decoration and consolidate presentation before reducing behavior. An attractive control that does not perform its named action is a defect, not partial credit.
General acceptance contract
For every requested behavior, the plan must identify:
- The initial state and visible entry point.
- The exact source of truth and stable record identity.
- The entry control role/event and state or data operation, preserving existing or shared event identities.
- The postcondition in that source and the observer that must read it.
- The success path and its visible evidence.
- Any required blocked or boundary path and its visible evidence.
Keep a single source of truth for each concept. Do not update one collection while a visible gallery, metric, or selector reads another.
Plan semantics and preserved/shared bindings under ${PLUGIN_ROOT}/references/PlanModel.md; builders choose file-local formulas and return their exact final-YAML event and observer evidence. Acceptance must inspect those actual formulas, not treat the existence of a planned formula as implementation proof.
For user-requested or plan-declared mutations, use ${PLUGIN_ROOT}/references/MutationBehavior.md to choose the feedback mode and prove the affected record, writes, preserved fields, and actual source-bound observers. That reference owns immediate receipt requirements for new/approved feedback and preservation of existing feedback. Notification or navigation alone never proves a mutation. Do not depend on programmatically scrolling a Gallery to an arbitrary record; Canvas galleries do not provide a reliable general reveal contract.
Closed-loop state transitions
Every action must form one traceable loop:
reachable entry point -> enabled event -> source operation -> postcondition -> observer -> visible evidence
- Name the precondition and eligibility predicate. The control's
VisibleandDisplayModeformulas must permit that state. - Mutate the same source and field that the observer reads. A status button that patches
ReviewStatewhile the badge rendersStatusis broken even when both formulas compile. - Identify records by an immutable stable ID. Capture
ThisItem.IDor the selected ID before mutation and look up the target from the source; do not infer identity from a display name. TheLookUp/Filterthat locates the target must compare the key field against the raw selected/context value with no concatenation, prefix, suffix, casing, or reshaping (= Selected.ID & " ID","ITEM-" & Selected.ID,Left(...),Trim(...)) unless the documented schema stores the key that way. A reshaped key is a phantom LookUp key: it matches nothing, soLookUpreturnsBlank()and thePatchsilently mutates no row even though the formula compiles. - When an action depends on a prior record selection, use one nullable selected-record ID
as the selection source of truth. Initialize or reset it to
Blank(), assign it from the row's selection event, and use that same ID for the selected-record display, eligibility gate, mutationLookUp, feedback, and compound sequence evidence. This is the default pattern for proving an incomplete state. A direct row action may instead use that row's stableThisItemidentity without introducing separate selection state.Control.Selected/.Selected.*on a Gallery, Dropdown, List box, or Combo box is not an empty-selection contract: a control with nonemptyItemscan expose an automatic/default selection before the user chooses one. Use it as incomplete-state evidence only when the control's empty-selection semantics are explicitly configured and evidenced. - Feed mutations from live input, not dead state. Any variable that is meant to carry a user-entered or user-selected value (
varAmount,varOldQuantity, a staging variable) must be written from its input control at the moment of input — anOnChangethat runsSet(varStaging, Control.Value)/Set(varStaging, Control.Selected), or an inlineControl.Value/Control.Selectedread inside the handler. A staging variable initialized only inApp.OnStartorScreen.OnVisibleand never re-written from an input is dead: it stays at its seed (0,Blank()), so the mutation silently computes against the seed while still compiling and still passing sign/direction checks. Prefer reading the input directly at mutation time (Value(txtAmount.Text),cmbItem.Selected.ID). An amount staged byOnChangeis live, but not automatically valid: the input'sDefault,Min, and currentValuemust still make invalid states representable, and the submission gate must reject the staged/current blank or non-positive value. - Trace post-state evidence to the mutation result or a fresh canonical read by ID. Do not read a potentially stale gallery
ThisItemafterPatchand assume it contains the new value. - Make success contingent on the operation. Reset inputs, exit edit mode, navigate, and reveal success evidence only on the success path.
- Bind every downstream list, filter, metric, export, and decision surface to the same updated source or refresh the external source before observing it.
- Define a deterministic Given/When/Then scenario for the success path and each required negative or boundary path. If the generated formulas cannot satisfy that scenario by inspection, the action is incomplete.
Navigation and action reachability
- Put every primary destination in a repeated navigation region that is visible in the initial viewport, or behind an immediately visible menu control.
- Keep record-level management actions on the management row/detail surface or behind a visible overflow control. Do not rely on clicking non-interactive text or cards.
- Render each primary record's canonical human-readable identity, such as the full colleague, customer, or item name, as visible text on its row or immediately reachable detail. Avatar initials, icons, IDs, accessible labels, and agent-inferred names may supplement this text but cannot replace it.
- On phone layouts, keep the record identity, status, and required lifecycle actions in the visible row or its immediately reachable detail. Stack the row or use a visible overflow control; never leave Edit, approve, reject, or remove in desktop columns clipped beyond the canvas width.
- A required action below the fold needs an obvious, working scroll affordance and must not be trapped inside nested fixed-height containers.
- Repeat the same destination set and ordering across screens so an evaluator or user does not need to rediscover navigation after each action.
Record presentation contract
- For every repeated card, row, or immediately reachable detail, enumerate the fields the requirements expect users to see. Render each field through a visible control bound to the current record and keep that control inside the record surface.
- The canonical identity is mandatory, but it is not sufficient when the request also names people, time ranges, descriptions, statuses, or other details. A time-only card, icon, tooltip, accessible label, hidden control, or clipped text does not prove those fields are present.
- A combined text control may render several fields only when its formula references every required source field and the complete value fits or wraps in the normal layout.
- After create or edit, update or refresh the source used by the record surface so the required field bindings immediately show the new values without a manual refresh.
Completion rule
If any required success path, boundary path, source-of-truth binding, or visible evidence cannot be implemented with discovered controls and data sources, mark the action blocked or an explicit approximation. Do not ship placeholder UI or claim completion.