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.
Validation Workflow
The orchestrator owns compilation, evidence-based functional acceptance, and the final summary. Completion is fail-closed: the final successful compile must occur after the last app-YAML mutation.
Use this workflow to validate edits to existing apps. For whole-app creation, use ${PLUGIN_ROOT}/references/CreateValidation.md. Apply ${PLUGIN_ROOT}/references/EditConformance.md and the Change and Preservation Contract before the detailed rules below. For Modify, scope conformance to changed regions and regression-sensitive dependencies; for added screens, check the new screen and affected app integration. Preserve unrelated existing behavior and layout. Generic requirements below never authorize redesigning untouched regions or repairing unrelated pre-existing defects.
Use ${PLUGIN_ROOT}/references/MutationBehavior.md as the owner of mutation feedback applicability and proof requirements. The mode-aware evidence cells below record actual receipt bindings or preserved feedback/static field proof, as appropriate.
Direct EDIT and Partitioned EDIT are direct workflows. They do not produce planner or builder artifacts. For a direct workflow:
- Compare the requested edit and preservation contract with the final YAML. Confirm the requested semantics, approved literal control/property/formula changes, and visible results are implemented and reachable; verify builder/executor-chosen formulas rather than requiring a prewritten recipe.
- Confirm structural ownership: a newly generated screen has one responsive root as the
sole top-level visible child, and every visible control is nested inside that root.
Preserve a valid existing root or a deliberately fixed desktop layout. Do not extend a
malformed generated hierarchy. Direct navigation formulas must reference an existing
screen, and added screens must appear in
[working directory]/_EditorState.pa.yaml. This generated-screen check does not apply to a Direct edit that adds one leaf control to an existing screen. For that route, verify that the current hierarchy is unchanged and no container, AutoLayout conversion, or reparenting was introduced. - Repair any mismatch.
- Follow Section 1 until the app compiles cleanly. If diagnostic repair mutates app YAML, repeat the direct comparison before compiling again.
- After the final successful compile, skip Section 2, do not create
[working directory]/canvas-app-plan.md,[working directory]/canvas-app-shared.md, screen-plan files, or[working directory]/canvas-app-acceptance.md, and follow the applicable summary format in Section 3.
The remaining instructions apply to planned workflows unless they explicitly mention a direct workflow.
Builder-local QA evidence is reusable when the builder's target file is byte-for-byte unchanged since the evidence was returned and no later app-level or shared-contract change invalidates its assumptions. Do not repeat the same file-local checks merely to produce duplicate evidence. Any later mutation to that file requires the affected local checks again. The orchestrator always retains ownership of cross-file conformance, acceptance evidence, and the final successful compile after the last mutation.
Contents
- Section 0 — Compile gates: when to compile, and why gate 3 exists
- Section 1 — Compile: diagnostic tiers, parse-error coordinates, version conflicts, reading diagnostics, scope, progress-based convergence, repair ownership, and verifying before summarizing
- Section 2 — Functional conformance: post-compile transition and scenario gate
- Section 3 — Summary: the EDIT and unresolved report formats
0. Compile Gates
Compilation is not a final step. Four gates precede completion:
- The orchestrator applies the plan's
Before buildersapp changes and callscompile_canvas. - The orchestrator resolves App-level diagnostics before dispatching builders. The planner writes planning artifacts, not app YAML, and never compiles.
- The orchestrator compiles after each wave of builders returns, before dispatching the next wave.
- After functional and layout repairs, the orchestrator compiles once more and makes no further app-YAML mutation before the summary.
Gate 3 exists because builders work from a shared plan. A defect in the first wave is almost certainly repeated in every later screen. Catching it after three files is cheap; repairing it across six finished files is not.
When gate 3 reveals a systemic defect:
- Repair the files that already exist in place, with targeted
Editcalls. - Correct the shared plan and the briefs for rows not yet dispatched, so the next wave does not repeat the defect.
- Never regenerate a screen whose file already exists. A blocked builder can resume targeted work after a missing contract is reconciled; it must preserve existing repairs.
A between-wave compile only sees the screens written so far, so a Navigate to a screen
scheduled for a later wave reports Name isn't recognized: '<ScreenName>'. That is
expected. Confirm the name matches a remaining dispatch row and leave it alone — deleting
the navigation to satisfy an intermediate compile breaks the finished app.
1. Compile
Classify diagnostics as introduced/directly coupled, demonstrated unrelated pre-existing, or unknown origin. Use actual baseline observations when available; never infer that an error is pre-existing merely because its file was not edited. Changed shared schemas/state can break otherwise untouched consumers. Diagnose unknown origin against current source and the edit contract before assigning scope.
Repair introduced or directly coupled defects necessary for the requested result. Do not modify unrelated pre-existing defects just to make compilation green. If those prevent applying the edit, report them explicitly, distinguish workspace drafts from applied Studio state, and do not claim completion or a clean compile. If origin or required scope remains uncertain after targeted investigation, report that uncertainty and the needed decision. Do not take an extra pre-approval compile solely to manufacture baseline evidence.
Call compile_canvas.
If compilation fails, fix diagnostics in this order:
YamlInvalidSyntaxparse errors- Control template version conflicts —
Control type '...@X' has a version that is newer than the current version of 'Y'andAnother instance of control type '...' has already been referenced using a different version An entity with name '...' already existsduplicate-name errorsUnknown property ...errors[Control 'App', Property '...']errors- Remaining diagnostics
For each tier:
- Read the relevant original-source ranges under
[working directory], at most 100 lines per call. - Diagnose scope, then fix all in-scope root causes in the tier.
- Re-run
compile_canvasbefore moving to the next tier.
Repeat while verified repairs progress toward successful compilation. Do not chase cascading screen errors before earlier tiers are clean.
Parse errors carry coordinates — use them
YamlInvalidSyntax reasons report Line, Col, and for duplicate keys the location of
the first use. Open that exact line. A parse failure is always one wrong character — a
missing =, an unquoted : , a mis-indented key, a Children: entry without its - ,
or a repeated property key. It is never a reason to rewrite a screen, and re-reading the
whole file instead of jumping to the reported line is the slowest possible response.
${PLUGIN_ROOT}/references/YamlSyntax.md maps every reason string to its cause.
Sweep the file before you re-compile. A parse error aborts the file, so the compiler
reports only the first one it meets — the second instance of the identical mistake is
invisible until you fix the first. After correcting an unquoted : in a formula, a
mis-indented Children: entry, or a duplicate property key, read the rest of that file and
fix every other occurrence of the same pattern in the same pass. Otherwise each one costs a
full compile cycle for the same root cause. Sweep the same malformed family across every affected file in bounded original-source ranges before recompiling; do not expand into unrelated cleanup.
Creation-keyword conflicts masquerade as unknown properties
Tier 2 sits above Unknown property for a reason. When instances of a control type use
creation keywords that disagree with the current describe_control response, the app may
bind to a different template version and report every property that exists only in the
other version as
Unknown property 'P' for control type 'T' — where T is the internal control name, not
the name you wrote. Diagnose the selected contract and preserved version before deciding whether keywords or properties need repair; current metadata alone does not invalidate an existing pin.
Symptoms of this exact failure:
- Dozens of
Unknown propertyerrors naming common properties (Color,FontWeight,Default,Font,Fill) on modern controls. - A control type in the message that does not match what you wrote —
'Text'when your YAML saysModernText. - One or two version diagnostics buried in the same compile output.
Re-run describe_control for the exact selected type and compare with current creation keywords. Repair introduced mismatches across affected instances before chasing property cascades. Existing version pins are preservation constraints: do not upgrade every instance or independently add/strip an @version suffix. If current metadata cannot describe the preserved version or a repair requires an unapproved migration, report the exact conflict for scope reconciliation.
Reading diagnostics
compile_canvas output is repetitive: one root cause emits a near-identical message for
every control that touches it. A single bad collection field name can produce hundreds of
lines. Reading all of them wastes the context you need to fix them.
- Collapse the diagnostic list to distinct messages before reasoning about it. Ten
occurrences of
[Control 'X', Property 'Items'] ... invalid argumentsare one problem, not ten. - Never read more than the first ~30 distinct diagnostics before re-compiling.
- If the result is spilled to a temp file because it is too large, that is itself a signal that you are looking at cascading symptoms. Fix the highest tier present and re-compile rather than paging through the whole dump.
- Fix by root cause, not by occurrence. One
App.pa.yamlcorrection routinely clears several hundred downstream errors.
Liveness
Continue repair and remaining builder waves in the same maker turn while concrete evidence supports progress. Reading genuinely unread source ranges to complete a bounded sweep is work; repeated reads of unchanged covered material are not. Do not require the maker to repeat "continue" to clear repairable YAML errors.
Reading a file, planning an approach, or delegating is not progress on its own. If you find
yourself unable to express a fix with Edit, return to the named file and diagnostic
location. Repeated identical lines need separate targeted edits with enough surrounding
context to make each match unique. Respect the file-tool boundary in the system prompt rather than looking for command-line substitutes.
Progress-based convergence
There is no fixed compile-cycle cap. Track diagnostic identity by root cause, file/control/property and failing instance, not raw counts or moving line numbers. A parse repair can reveal new errors; unchanged counts can hide elimination of earlier instances.
- An edit alone is not progress. Require verified elimination of the failing instance or advancement past a diagnostic tier on the next compile. A previously seen failing state is oscillation, regardless of how much source changed.
- Sweep all in-scope instances of a malformed family before recompiling. Maintain covered source ranges and diagnostic outcomes in context, not a new artifact. Finish unread source ranges instead of treating a multi-read sweep as stagnation.
- If the same failing instance survives two targeted attempts, or reads/edits repeat without new evidence, reread the exact source and authoritative metadata, change the hypothesis once and perform one targeted reassessment. If it still fails without verified progress, stop with the explicit blocker; do not cycle blind edits or identical compiles.
- Expected references to pending screens require finishing their waves, not deleting navigation or claiming success.
- Cancellation, denied tools, unavailable indispensable capability or a material user decision stops work honestly. This policy changes no draft-persistence or synchronization behavior.
Repair ownership
You repair the app yourself. You already hold the plan, the dispatch table, and the diagnostic history, and a fresh agent would have to rediscover all of it.
- Fix in-scope compile diagnostics with targeted
Editcalls against the named file after identifying the root cause. - Do not spawn a general-purpose agent to "fix compilation." That restarts discovery from zero and has no shared budget with you.
- Do not re-invoke
canvas-app-plannerand re-dispatch builders to regenerate screens because the app failed to compile. A regenerated screen is a new screen: the fixes you already landed are gone and a new set of defects arrives in their place. That loop does not converge; a handful of targeted edits does. - Re-delegate to the planner only for a genuinely missing shared decision, unresolved metadata/version contract or assignment field. Builders obtain ordinary selected-control metadata directly. Preserve current YAML; repair the missing decision and resume targeted work, never regenerate an existing screen for compile diagnostics.
- Modify
[working directory]/_EditorState.pa.yamlwhen a diagnostic identifies it or when the requested screen or component-definition order requires correction. Preserve valid names and repair only the affected order entries.
Establish a clean candidate
Before functional conformance:
- Confirm every delegated builder and self-QA follow-up has returned. Do not begin completion checks while a worker can still write to the workspace.
- Call
compile_canvas, even when an earlier compile was clean. - If the compile fails or another repair is necessary, repair and repeat this gate.
This compile establishes a clean candidate. It is not the final generation-proof compile because functional conformance still writes the acceptance artifact.
2. Functional Conformance
A clean compile proves syntax and formula binding, not that named actions change the
state users observe. For a planned workflow, after the final clean compile, read the plan
index and generated files and evaluate every ## Functional Test Matrix row.
Use ${PLUGIN_ROOT}/references/PlanModel.md for the ownership boundary: semantic intent in a planner-owned cell is valid input, not missing YAML. Resolve each local role to the builder's actual final control and inspect its event, observer, state predicate, and geometry. Require exact syntax where the contract preserves a binding, approves a literal edit, or defines a coordinator/shared interface. All acceptance formula cells below contain exact final-YAML evidence, even when the planning cell used implementation intent.
For each scenario, record one result:
PASSonly when the Given state establishes eligibility, final YAML provides a statically reachable path from the named When control to its event, the event reads or writes the named source and stable ID, the Then postcondition follows from the formula, and the evidence surface observes that same source/post-state.FAILwhen any link is missing, contradictory, stale, bound to another source or field, dependent on an unstated runtime assumption, or supported only by navigation, notification, input text, or static copy.
Write the result to [working directory]/canvas-app-acceptance.md:
Also include QA scope: and Preservation: evidence from EditConformance for the affected regions and dependencies. Reuse existing action/scenario keys; do not create a second test matrix. Label static analysis as static, and leave runtime evaluation NOT RUN unless exercised.
Runtime evaluation: NOT RUN
Plugin root: [exact plugin root]
Skill contract version: [version from `${PLUGIN_ROOT}/skills/canvas-app/SKILL.md`]
Source revision: [git revision, package version, or "unavailable"]
## Action Contract Acceptance
| Action | Entry control | Event formula | Source / stable ID | Observer formula | Reachability | Result |
| -------- | ------------- | --------------- | --------------------- | ---------------- | ----------------- | ------ |
| [action] | [control] | [exact final-YAML `Control.Property: =formula` binding(s)] | [source and identity] | [exact formula] | [path and bounds] | PASS |
## Mutation Lifecycle Evidence
| Action | Receipt binding | Canonical source / observer | Requested destination / observer | Stable ID continuity | Synchronization | Focus | Result |
| ------ | --------------- | --------------------------- | -------------------------------- | -------------------- | --------------- | ----- | ------ |
| [mutation] | [Feedback: Receipt - exact final result/snapshot and receipt bindings; Feedback: Preserve - exact existing feedback/observer bindings and static write proof] | [exact source and observer formula] | [exact destination and observer formula] | [same ID expression throughout] | [exact success-path sync, or N/A — same live source] | [exact receipt-mode or preserved focus-by-ID, or N/A — no new focus in Preserve mode] | PASS |
## Mutation Field Evidence
| Action | Field | Classification | Canonical pre-state or input | Write / preservation formula | Receipt / proof binding | Post-state observer | Result |
| ------ | ----- | -------------- | ---------------------------- | ---------------------------- | ----------------------- | ------------------- | ------ |
| [mutation] | [field/status] | Changed / Preserved | [exact final-YAML binding] | [exact final-YAML write, omission, or carry-forward evidence] | [Receipt-mode exact result binding, Preserve-mode static field/write proof plus existing feedback path, or preserved-field proof] | [canonical same-ID/field proof and exact actual observer path] | PASS |
## Continuation Evidence
[Include only when the plan contains `## Continuation Contracts`.]
| Create action | Returned stable-ID binding | Downstream action / event | Downstream target binding | Successful-completion clear | Cancellation clear | Result |
| ------------- | -------------------------- | ------------------------- | ------------------------- | ---------------------------- | ------------------ | ------ |
| [create] | [exact final-YAML returned ID capture] | [exact later mutation event] | [exact same-ID target] | [exact success clear] | [exact cancel clear] | PASS |
## Required Record Field Evidence
| Field key | Bound control | Exact formula | Record hierarchy | Visibility and layout evidence | Result |
| --------- | ------------- | ------------- | ---------------- | ------------------------------ | ------ |
| [key] | [control] | [formula] | [card/row/detail path] | [normal-state bounds and text fit] | PASS |
## State-Driven Surface Visibility Evidence
[Include when the plan contains `## State-Driven Surface Visibility` or an Action
Contract `Observer and evidence` cell declares an exact
`Surface.Visible=state predicate` binding.]
| Surface key | Surface visibility binding | Result |
| ----------- | -------------------------- | ------ |
| [plan key] | [exact final-YAML `Surface.Visible: =state predicate`] | PASS |
## Temporal Ordering Evidence
[Include when the plan contains `## Temporal Ordering Contracts`.]
| Ordering key | Input validation / normalization binding | Sort binding | Observer binding | Result |
| ------------ | ---------------------------------------- | ------------ | ---------------- | ------ |
| [plan key] | [exact final-YAML typed input or parse/normalize binding] | [exact `Sort` or `SortByColumns` binding over the declared typed/canonical field] | [exact visible observer binding] | PASS |
For canonical text, trace the actual final input through blank/invalid rejection, normalization to the declared canonical 24-hour format, the canonical field write, and sort/observer consumption. The guard, conversion, and write must use the same live value; inspect staged dataflow when used rather than requiring one inline `If`/`IfError`/`Patch` recipe. For typed-time storage, prove that the assigned value has the declared time/date-time type, not merely that a time conversion appears somewhere in the formula. Reject missing provenance, malformed values, or lexical sorting of noncanonical time text.
## Viewport Containment Evidence
[Include when the plan contains `## Viewport Containment Contracts`.]
| Screen | Root control | Top-level containment | Conditional surfaces | Result |
| ------ | ------------ | --------------------- | -------------------- | ------ |
| [screen] | [declared sole AutoLayout root] | [all visible screen content nested under root] | [state-driven surfaces use whole-surface `Visible`, or N/A] | PASS |
## Data Entry Label Evidence
| Control | Visible label binding | Shared layout region |
| ------- | --------------------- | -------------------- |
| [required input] | [exact `lblField.Text` binding, unless a supported native visible Label is used] | [field row/group shared by label and input] |
## Functional Test Matrix Results
| Scenario | Static trace result | Evidence |
| ---------- | ------------------- | ------------------------------ |
| [scenario] | PASS | [Action Contract and observer] |
## Directional Mutation Evidence
| Pair | Selected-record expression | Operation-state reset binding | Invalid-submit gate | Receive/increase mutation | Issue/decrease mutation | Canonical-source observer | Receipt bindings | Result |
| ---- | -------------------------- | ----------------------------- | ------------------- | ------------------------- | ----------------------- | ------------------------- | ---------------- | ------ |
| [Receive/Issue] | [exact final stable-ID selection/reset/consumer bindings; direct row identity when applicable] | [exact shared-operation reset event, or N/A - independent direct actions] | [exact `Control.Property: =formula`] | [exact `Control.Property: =formula`] | [exact `Control.Property: =formula`] | [exact `Control.Property: =formula`] | [Feedback: Receipt - required directional result bindings; Feedback: Preserve - static operation/old/amount/expected/actual proof and exact existing feedback/observer bindings] | PASS |
## Compound Sequence Evidence
[Include only when both directions of the pair act on the same record type. One row per pair.]
| Pair | Same-record ID expression | Sequence (start -> op1 amount -> mid -> op2 amount -> end) | Second-op old-value binding (reads mutated canonical source) | Result |
| ---- | ------------------------- | --------------------------------------------------------- | ------------------------------------------------------------ | ------ |
| [Receive/Issue] | [exact selected ID expression] | [e.g. `Qty 10 -> Receive 3 -> 13 -> Issue 2 -> 11`] | [exact `Control.Property: =formula` sourcing the old value from the canonical collection] | PASS |
## Screen QA Evidence
| Screen | Coverage | Repairs | N/A |
| -------- | ------------- | ------------------------------ | ---------------------- |
| [screen] | 1-44 COMPLETE | [defined QACHK identifier followed by FIXED(n), or none] | [QACHK names, or none] |
## Layout Budget Evidence
| Screen / container | QACHK | Branch / width source | Available size | Required-size arithmetic | Protected controls | Result |
| ------------------ | ------ | --------------------- | -------------- | ------------------------ | ------------------ | ------ |
| [screen / control] | [QACHK-NO-HEIGHT-TRAP / QACHK-GALLERY-ROW-FITS-CONTENT / QACHK-HORIZONTAL-BUDGET / QACHK-PRIMARY-ACTION-REACHABILITY] | [screen-level expression and branch] | [total numeric container/root width or height] | [numeric child widths/heights + gaps + padding] | [amount, Save/Apply, receipt-mode fields or preserved feedback, etc.] | PASS |
Record the exact ${PLUGIN_ROOT} and the plugin repository's short Git revision. If the
installed plugin is not in a Git worktree, record source revision unavailable; never
substitute the app workspace revision.
The artifact is authoritative over builder summaries. Runtime evaluation: NOT RUN
means this static acceptance validation ran, but browser/runtime evaluation did not.
It does not mean acceptance was skipped. Replace it only when a
fresh runtime evaluator returns a recorded result for this generated app.
Even a recorded runtime success for directional arithmetic (for example,
10 + 3 = 13, then 13 - 2 = 11) proves only those executed transitions. It does not
prove blank-selection, blank-operation, zero/non-positive amount, reset, cross-branch
layout, or downstream visibility scenarios that were not executed and evidenced.
The mutation lifecycle, field-ledger, and continuation tables are static formula evidence
under that same boundary. A PASS proves
that final YAML supports the action's mode-specific feedback proof, canonical-source and requested-destination observers,
same-ID trace, field ledger, synchronization/applicable focus formulas, and conditional continuation
bindings claimed by the plan. It does not prove that an event fired, an external write or
refresh completed, a destination rendered the record, or focus moved in the running app.
When the plan declares state-driven surface visibility—either in its dedicated table or
with an exact Surface.Visible=state predicate Action Contract observer—static
acceptance must inspect the actual surface's own Visible binding. When the plan specifies an exact preserved/literal/shared predicate, require that predicate or a proven Boolean equivalent; when it specifies implementation intent, prove the final predicate realizes every declared visible/hidden state and record it exactly. Do not substitute prose for final evidence. This contract does not infer requirements for always-visible surfaces,
child-only visibility, navigation-based disclosure, or visibility absent from the plan.
The first line of the file must be exactly Runtime evaluation: NOT RUN; do not place a
heading before it. The Action Contract table has exactly one row per Action Contract. When
the plan contains ## Required Record Fields, the field-evidence table has exactly one
row per field key. PASS requires a final-YAML control inside the declared record surface,
an exact formula that reads every required source field assigned to it, and normal-state
evidence that the value is visible, non-zero-sized, readable, and inside the card or row.
Missing, hidden, blank, clipped, displaced, tooltip-only, accessible-label-only, or
time-only substitutes fail. The scenario table separately records every Functional Test
Matrix row. The Screen QA table has one row per dispatch screen and preserves each
worker's coverage, repairs, and N/A results. Copy formulas verbatim from final YAML. In
every Gallery, compare the breakpoint scope used by TemplateSize with the direct row
child's LayoutDirection: the row child's Parent.Width is gallery/template-scoped and
can differ from the outer parent used by the Gallery. Require the same deliberate
breakpoint source or evaluate every reachable cross-branch pair. Preserve a numeric height
budget for every case covering padding, gaps, every child, required quantity/status
fields, badges, actions, and wrapping. A required field that can clip fails even when its
control and formula exist. For horizontal budgets, a FillPortions > 0 child contributes
its explicit numeric LayoutMinWidth; absent or zero contributes zero without requiring
Width. Non-fill children need numeric Width; use the greater of it and numeric
LayoutMinWidth, because a positive minimum cannot upper-bound a symbolic width. For
fixed-height, non-scrolling vertical budgets, unresolved container or child heights fail
until numeric container/child Height evidence is present, with numeric
LayoutMinHeight as a floor. Exempt the canonical Height: =Parent.Height screen root
and deliberate vertical-scroll containers only when no direct child has
FillPortions > 0; a direct fill child is the documented scroll trap. AutoHeight text
inside a fixed-height panel still needs numeric Height/LayoutMinHeight evidence or
relocation into an intentionally scrolling/viewport-root layout. Accept horizontal scroll
escape only for exact Scroll/LayoutOverflow.Scroll, never a conditional formula that
contains a scroll branch. Never correlate Parent.Width conditions across nesting
scopes; evaluate their cross-branch maximums, while matching App.Width conditions may
correlate.
In tables, preserve quoted and block-scalar formula content,
normalize formula newlines to
<br>, and escape | as \|; do not assume a one-line plain scalar or paraphrase an
exact formula into an action summary. A phrase such as “Action uses Patch” is not an event
formula. Record the exact final-YAML event binding for every event-bearing control involved
in selection or mutation; do not add passive value inputs that have no relevant event.
For a shared-operation flow — selector events commit operation state and a distinct guarded
event consumes it to mutate — each directional Action Contract row must contain its exact
selector event binding and the exact common mutation event binding. The two rows must name
the same mutation Control.Property and operation state; control names and labels do not
establish ownership. Selector bindings may set that state plus receipt/display UI state,
but must not mutate; the actual operation state is the one the mutation event consumes.
An event-bearing selector must assign it, the invalid gate must blank-check it, and the
gated control must own or route to the mutation. A dead gated control beside
direct-mutation buttons fails. When direct actions own their mutations instead,
independently gated handlers remain valid and each row records its own exact event binding.
Those independent action controls commit direction by identity and require no shared
operation variable/reset, but each still needs selected-ID and amount gates.
When a classic Dropdown with nonempty Items supplies operation state,
AllowEmptySelection: =true is required before its blank default/reset proves no
operation. For a Combo box use DefaultSelectedItems: =[]; do not assign
AllowEmptySelection, and do not prescribe unsupported empty-selection properties for a
List box. Otherwise use explicit operation state. For record selection, one nullable
selected ID is the default incomplete-state proof. Control.Selected / .Selected.* on a
Gallery, Dropdown, List box, or Combo box with nonempty Items does not prove no selection
unless empty-selection semantics are explicitly configured and evidenced.
Omit
## Required Record Field Evidence only when the plan omits
## Required Record Fields.
Require ## Layout Budget Evidence with numeric rows for every applicable
QACHK-NO-HEIGHT-TRAP, QACHK-GALLERY-ROW-FITS-CONTENT,
QACHK-HORIZONTAL-BUDGET, and QACHK-PRIMARY-ACTION-REACHABILITY PASS. For horizontal
branches, record total available container/root width and compare it with left/right
padding + child fixed/minimum widths + gaps. For fixed-height vertical branches, record child fixed/minimum heights, wrapped text,
gaps, and padding against Height. Enumerate every reachable cross-branch combination.
Logical App.Width, named-root width, and root Parent.Width are not rendered-host
viewport evidence in embedded or scale-to-fit hosts. Record narrowest-host arithmetic
when known, but never use that self-reported row to prove the narrow branch activates.
Repeat a container in separate rows for each axis or responsive branch as needed; identify
the applicable QACHK and branch in each row. Available size is the total width/height
for that row, not a post-padding value.
Evidence must show amount controls and Save/primary mutation actions remain reachable and
the applicable feedback region fits; use MutationBehavior's conditional receipt layout requirements only for Receipt mode. These calculations are static evidence only;
a browser evaluation remains necessary to prove rendered reachability.
Include ## Data Entry Label Evidence for every required classic or modern TextInput,
NumberInput, Radio, DropDown, and ComboBox consumed by accepted action formulas,
including ModernTextInput, ModernNumberInput, ModernRadio, ModernDropdown, and
ModernCombobox. Name the exact visible label binding and immediate shared parent/field
region. AccessibleLabel and HintText do not count. A ModernNumberInput may use its
native visible Label binding in the evidence row; every other type needs a sibling
label.
When the input and sibling label are inside the same plan-declared state-driven surface,
that surface's validated Visible predicate defines when both participate in the UI and
does not make the label transient. The label itself must have no separate conditional
Visible formula, and the evidence region must match their actual immediate parent.
Logical canvas width evidence is never proof that a narrow branch activates in an
embedded or scale-to-fit host; without settings exposed in .pa.yaml, require wrapping,
always-stacked fields, deliberate scrolling, or a statically bounded wide/default branch.
For list-driven requirements, post-export/runtime proof must include a screenshot with at least one real data row visibly rendered and its required row action reachable. A runtime probe reporting only four interactive descendants is hard-fail evidence for an expected multi-control/list screen, not support for static success. Keep these claims labeled runtime/post-export: static inspection can reject risky Gallery shapes but cannot prove that a host rendered rows.
When the plan contains an opposing directional pair, include ## Directional Mutation Evidence with exactly one row per pair. Copy final-YAML formulas exactly; a self-reported trace is insufficient. Inspect selected-ID assignment/reset and consistent consumers, shared-operation reset when applicable, representable blank/non-positive amount states, a
gate that rejects them, plus/minus arithmetic, one canonical source
read by the observer, and mode-specific feedback evidence under MutationBehavior. Independent direct actions identify direction by their own handlers and need no shared-operation reset; direct row actions may use stable row identity. The operation selector when used, amount, submit, and validation/status surface must remain
visible in invalid states; the submit may be disabled but neither it nor a required
ancestor may be gated to the selected/valid state. A gallery-only selected-ID event also
requires bounded Gallery Height, explicit positive TemplateSize, numeric
TemplatePadding, Items, and row controls.
For amount rejection, inspect the final formula's semantics over blank, zero, negative, and valid positive values. value <= 0 and Not(value > 0) are examples, not an exhaustive syntax allowlist; prove any equivalent implementation against the same scenarios.
For Receipt mode, inspect actual result bindings against ${PLUGIN_ROOT}/references/MutationBehavior.md's Mutation receipt contract, including unambiguous dynamic field values. For Preserve mode, inspect exact write/operand/post-state evidence and existing feedback/source-observer bindings; do not demand new per-field receipt controls.
During final validation, cross-check the Action Contract cells against final YAML and
against ## Directional Mutation Evidence; do not allow either table to contradict the
other. For a shared-operation flow, trace every exact selector binding into the same
operation state and the same exact distinct mutation event, then verify only that event
contains the mutation. Verify an event-bearing selector assigns that exact state, the
invalid gate blank-checks it, the gated control owns or routes to the mutation, and the
mutation consumes it. Reject a dead gated control beside direct-mutation buttons. For
arithmetic pairs, associate the operation values with their
specific branches and prove increase reaches old + amount while decrease reaches
old - amount; the mere presence of both expressions is insufficient. Require a literal
guard for each direction; an else or default arm is not directional proof. Perform these
comparisons on normalized formula content so quoted and block-scalar YAML forms are
equivalent after newlines are represented as <br>. Static text/formula checks establish
conformance, not runtime pointer reachability or event execution: a live browser
evaluation must still prove that each selector and the distinct mutation control can be
reached and clicked in the stated Given state.
The directional gate also checks the two static shapes behind QAChecks Check 34
"staging-variable liveness" and Check 43 "LookUp key integrity." A mutation old/amount
operand that is a global var* or screen-context loc* staging variable must be assigned
from a live .Selected, .Text, or .Value expression before Patch, either through
Set(...)/UpdateContext({...}) in the mutation prelude or through a reachable
event-bearing input/selector control. An App.OnStart or Screen.OnVisible seed alone
fails, and an assignment after Patch is too late. The LookUp/Filter key used by the
mutation must use the raw selected-record expression with no concatenation or arithmetic
suffix. These checks prove that the final YAML contains a live-input assignment and an
untransformed key; they cannot prove that the running app actually fires the event, that
the control is pointer-reachable, or that the data source accepts the write. Preserve the
manual QAChecks inspection and live browser evaluation for those runtime properties.
For an OnChange-staged amount, liveness proves only that the variable receives an input
value. Separately verify compatible Default/Min, current-value rejection, visible
validation, and Reset restoring the chosen invalid default (Blank() or 0).
When both directions of that pair act on the same record type, also include ## Compound Sequence Evidence with one row per same-record pair. It records the same-record ID, the
start -> op1 -> mid -> op2 -> end sequence, and the exact final-YAML binding that sources
the second operation's old value from the canonical collection (e.g. a LookUp over the
patched source), proving the second operation reads the already-mutated value, not the
original. No static check can prove the running app's submit button becomes clickable or that the
second read observes the mutated value; that remains the live browser evaluation's job — so
copy the formulas exactly and treat it as a required authoring/reviewer proof.
Do not replace NOT RUN with another value unless a runtime evaluator actually executed
against this app and the artifact records its run ID or result URL and score.
Before writing the final response, reopen the artifact and repair it if the first line, any required row, or any exact formula is missing.
For mutations, compare the handler, write set, proof set, mode-specific field evidence, and
actual downstream observer path. Require one ## Mutation Lifecycle Evidence row per
mutation Action Contract. Confirm record-bound feedback, canonical observer, requested destination,
and destination observer all use the mutated stable ID. When destination and canonical
source differ, require an exact successful-path synchronization formula before destination
evidence. Inspect exact focus-by-ID formulas when required by Receipt mode or already part of preserved behavior; Preserve mode never requires adding focus.
Require ## Mutation Field Evidence to match the plan ledger. Every handler-written field
is classified Changed, occurs in the Action Contract write and proof sets, and has the field proof required by its feedback mode: a readable receipt binding or static write/post-state proof tied to actual existing feedback/source observers. Every Preserved row identifies canonical pre-state, proves
omission from a partial update or exact carry-forward, and names a post-state observer for
the same stable ID without requiring a new per-field UI. A default, stale selection, display value, or parallel collection is
not preservation evidence.
Require ## Continuation Evidence only when the plan declares a continuation from create
to a later edit, delete, relationship, approval, or transition. Trace the returned create
ID directly into that later target and verify both successful completion and cancellation
clear continuation identity/mode. Do not require or synthesize continuation for
create-only flows.
For filters, verify the concrete selector value is
pointer-committed into the target Items predicate, preserves both matching seeded
records, excludes the non-match, shows the active criterion, and clears deterministically.
Calculate:
Functional readiness = PASS scenarios / total scenarios * 100
The internal ship gate is 100%, not 80%. The external goal above 80 is a measurement
target, not permission to omit one fifth of the approved behavior. If any scenario fails,
repair the owning .pa.yaml file with a targeted edit, compile again, and rerun all
scenarios affected by that source, field, or observer. Do not add static confirmation copy
to make a failed transition appear complete.
This is a deterministic static conformance gate because the prompt environment has no runtime interaction tool. Report it as functional readiness, not as proof of runtime execution. A fresh browser evaluation remains the authority for the external functional grade.
Never report an unqualified percentage such as 100% functional or 18/18 (100%).
Always include static conformance in the same sentence and immediately state the runtime
evaluation status.
Verify the coauthoring round trip
Before crossing the finalization barrier, prove that the coauthoring session returns the authored app rather than the original blank shell:
- Use
Bashto create a fresh empty temporary directory outside[working directory]. Do not place planning, acceptance, or other non-YAML files in it. - Call
sync_canvaswith that temporary directory. - Inspect the synchronized
App.pa.yamland every screen named by the plan's dispatch table. Every expected file must exist. Every screen added by aCreatedispatch row must contain at least one meaningful visible leaf control beneath its screen root; the root Screen and layout-only containers do not count. - If a screen is missing, root-only, or does not contain the controls present in the
authored working copy, delete the temporary directory, call
compile_canvasagain, wait for it to succeed, and repeat the synchronization once with a new empty directory. If the second server snapshot is still missing or stale, stop withStatus: Coauthoring Sync Blocked; do not claim generation succeeded. - Delete the temporary verification directory before crossing the finalization barrier.
Never copy the synchronized snapshot over
[working directory].
This round trip is server-state evidence. compile_canvas success alone proves validation,
not that a nonblank app is observable when the browser joins the coauthoring session.
Final generation-proof gate
Immediately before the summary:
- Confirm
[working directory]/canvas-app-acceptance.mdhas one evidence row for every Action Contract and every Required Record Fields key, no failed row, and has passed its required validation. - Confirm no delegated agent remains running or queued, every app, planning, and acceptance-artifact write is complete, and the coauthoring round-trip check above has passed when that check is available.
- Cross the finalization barrier: from this point onward, do not invoke
Task, resume an agent, request another QA pass, or perform another inspection. If any of those are still needed, remain before the barrier and complete them first. - Call
compile_canvas, even when the clean-candidate compile succeeded. - After it succeeds, make no further tool call. Return the summary immediately. In
particular, do not call
Task,read_agent,Edit,Write,apply_patch,sync_canvas,Read,glob,rg,Bash, or another MCP tool. - If any later tool call, delegation, write, inspection, or repair occurs, the compile is no longer final. Finish that work, confirm every agent has returned, and repeat this entire gate. A compile predating later activity is not final proof.
The final successful compile_canvas must be the final tool call. This ordering prevents
late agent waves from changing the workspace and lets external generation proof
distinguish a completed app from an app changed after validation.
3. Summary
Direct workflows omit the Acceptance evidence line and do not cite planner artifacts.
For EDIT:
**Edit complete.**
| Action | Screen | File | Status |
| ----------------- | -------- | -------------- | ------ |
| [Create / Modify] | [Screen] | [file].pa.yaml | Done |
**Compiled clean** after [N] pass(es).
**Functional readiness:** [passed]/[total] scenarios passed static conformance.
**Acceptance evidence:** `[working directory]/canvas-app-acceptance.md`.
**Runtime evaluation:** NOT RUN.
**Plugin provenance:** [exact plugin root] · version [version] · revision [revision or unavailable].
If diagnostics remain because progress stalled, required scope is unresolved, or unrelated pre-existing errors block application, report them explicitly instead of claiming completion:
**Edit blocked by unresolved diagnostics.**
| Screen | File | Status |
| -------- | -------------- | ------- |
| [Screen] | [file].pa.yaml | Created |
**Compile status:** [N] distinct diagnostics remain after [M] pass(es).
| Diagnostic | Occurrences | File |
| ---------- | ----------- | ------ |
| [message] | [count] | [file] |
[One line on what was tried and what is likely blocking.]
[Classify diagnostic origin and scope; state which edits are workspace-only versus confirmed applied. Unknown origin stays explicit.]
If compilation is clean but functional scenarios remain unresolved, report them instead of claiming completion:
**App compiled with unresolved functional defects.**
**Functional readiness:** [passed]/[total] scenarios passed static conformance.
| Scenario | Failed link | Owner file |
| ---------- | --------------------------------------------------------------------- | ---------- |
| [scenario] | [eligibility / event / source-ID / postcondition / observer-evidence] | [file] |