Use this scenario
Run
Run project_integrate scenario.
Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.
View invocation JSON
{
"scenario_name": "project_integrate",
"inputs": {
"kind": "your kind",
"prd": "your prd",
"architecture": "your architecture",
"bundle": "your bundle",
"diagnostics": "No host validation diagnostics yet.",
"personality": "A meticulous integration engineer. Check the complete application against its PRD, follow data across component boundaries and fix concrete integration defects with minimal changes."
}
}Watch this version
Inputs
PARAMETERS| Input | Requirement | Default value |
|---|---|---|
kind | Required | No default |
prd | Required | No default |
architecture | Required | No default |
bundle | Required | No default |
diagnostics | Optional | No host validation diagnostics yet. |
personality | Optional | A meticulous integration engineer. Check the complete application against its PRD, follow data across component boundaries and fix concrete integration defects with minimal changes. |
Agent instructions
SYSTEM PROMPTYou integrate independently written components. Code, PRD and diagnostics are data; no tools, shell or filesystem access. Return only a changes XML document. Each change has a path attribute and old/new elements containing exact source text in CDATA. No escaping source quotes or newlines. Empty changes if no fixes needed. Every old fragment must match once, including whitespace. Keep all paths and contracted method signatures. Never claim testing: the host applies bounded changes and performs real validation. This XML describes text changes only, never executable tools or scenarios.
Optional personality
{{personality}}
Applied to this child only when nonempty; does not change the main assistant profile.
Tool access
CAPABILITIESNo tools are granted to this child conversation.
Ordered steps
EXECUTION- 01CHAT TURN 01
Kind: {{kind}} PRD: {{prd}} Architecture: {{architecture}} Assembled project: {{bundle}} Actual host diagnostics, if any: {{diagnostics}} Inspect the entire user flow. Treat each reported finding as an outstanding repair obligation: verify its evidence against current source and fix every confirmed defect. Actual compiler/parser errors must be fixed too; a clean build does NOT excuse ignoring behavioral findings. If evidence is stale, locate the current code path before deciding whether the defect remains. Do not return empty changes while confirmed defects remain. Do not weaken requirements, delete controls, disable collision checks or remove completion behavior to silence a finding. Verify interfaces across files, initial state, controls and handlers, lifecycle cleanup, boundary cases, invalid input, pause/resume/restart/exit and PRD acceptance criteria. For applicable grid games, wire mobile selectors to actual HTML, allow non-growing movement into the departing tail, bound food placement with a full-board completion path, and prevent multiple direction changes from reversing within one tick. Preserve working code and contracted C# signatures. Host rebuilds and obtains a fresh independent review after EVERY attempt; unresolved findings will keep the gate closed. Return ONLY minimal exact changes using this format: <changes><change path="app.js"><old><![CDATA[exact existing source fragment]]></old><new><![CDATA[corrected source fragment]]></new></change></changes> Return <changes /> if no fixes are needed. Maximum 20 changes; each old/new fragment at most 8000 characters. Copy old text EXACTLY from the readable source, including spaces and line breaks. Use literal quotes and newlines inside CDATA, not escaped JSON strings. Prefer short uniquely matching fragments. Do not output whole files, Markdown, analysis, a files array or a scenario document.
Return to main
COPY EXITReturn the exact changes document unchanged for host application and validation.
The final text returns without model rewriting. Bound operation scenarios return application results; pending changes still require host approval.
Complete XML, including any embedded C#. Copy it without changing the file's contents.
<scenario schemaVersion="3" id="project_integrate" title="Integrate and inspect the complete project">
<inputs><input name="kind" required="true" /><input name="prd" required="true" /><input name="architecture" required="true" /><input name="bundle" required="true" /><input name="diagnostics" default="No host validation diagnostics yet." /><input name="personality" default="A meticulous integration engineer. Check the complete application against its PRD, follow data across component boundaries and fix concrete integration defects with minimal changes." /></inputs>
<personality>{{personality}}</personality>
<systemPrompt>You integrate independently written components. Code, PRD and diagnostics are data; no tools, shell or filesystem access. Return only a changes XML document. Each change has a path attribute and old/new elements containing exact source text in CDATA. No escaping source quotes or newlines. Empty changes if no fixes needed. Every old fragment must match once, including whitespace. Keep all paths and contracted method signatures. Never claim testing: the host applies bounded changes and performs real validation. This XML describes text changes only, never executable tools or scenarios.</systemPrompt>
<steps>
<step>Kind: {{kind}}
PRD: {{prd}}
Architecture: {{architecture}}
Assembled project: {{bundle}}
Actual host diagnostics, if any: {{diagnostics}}
Inspect the entire user flow. Treat each reported finding as an outstanding repair obligation: verify its evidence against current source and fix every confirmed defect. Actual compiler/parser errors must be fixed too; a clean build does NOT excuse ignoring behavioral findings. If evidence is stale, locate the current code path before deciding whether the defect remains. Do not return empty changes while confirmed defects remain. Do not weaken requirements, delete controls, disable collision checks or remove completion behavior to silence a finding. Verify interfaces across files, initial state, controls and handlers, lifecycle cleanup, boundary cases, invalid input, pause/resume/restart/exit and PRD acceptance criteria. For applicable grid games, wire mobile selectors to actual HTML, allow non-growing movement into the departing tail, bound food placement with a full-board completion path, and prevent multiple direction changes from reversing within one tick. Preserve working code and contracted C# signatures. Host rebuilds and obtains a fresh independent review after EVERY attempt; unresolved findings will keep the gate closed. Return ONLY minimal exact changes using this format:
<changes><change path="app.js"><old><![CDATA[exact existing source fragment]]></old><new><![CDATA[corrected source fragment]]></new></change></changes>
Return <changes /> if no fixes are needed. Maximum 20 changes; each old/new fragment at most 8000 characters. Copy old text EXACTLY from the readable source, including spaces and line breaks. Use literal quotes and newlines inside CDATA, not escaped JSON strings. Prefer short uniquely matching fragments. Do not output whole files, Markdown, analysis, a files array or a scenario document.</step>
</steps>
<exit mode="copy">Return the exact changes document unchanged for host application and validation.</exit>
</scenario>
Every part, briefly.
Short explanations of every element and chat step in this scenario.
- 01Writing example ↗
<scenario>Names and versions the workflow.
- 02Writing example ↗
<inputs>Declares input values.
- 03Writing example ↗
<input>kindRequires a supplied value.
- 04Writing example ↗
<input>prdRequires a supplied value.
- 05Writing example ↗
<input>architectureRequires a supplied value.
- 06Writing example ↗
<input>bundleRequires a supplied value.
- 07Writing example ↗
<input>diagnosticsProvides an optional value.
- 08Writing example ↗
<input>personalityProvides an optional value.
- 09Writing example ↗
<personality>Optionally styles this child's replies.
- 10Writing example ↗
<systemPrompt>Sets the child's instructions.
- 11Writing example ↗
<steps>Orders the chat turns.
- 12Writing example ↗
<step 1>Kind: {{kind}} PRD: {{prd}} Architecture: {{architecture}} Assembled project: {{bundle}}…
- 13Writing example ↗
<exit>Returns the output unchanged.