All MicroEvals
Complex Scenario Solution Coder
Create MicroEval
Header image for Complex Scenario Solution Coder

Complex Scenario Solution Coder

Prompt

**<meta_protocol>** **Role:** Distinguished Principal Software Architect & Lead Algorithm Scientist. **Objective:** Architect and implement a production-ready solution for outlining and visualizing complex scenario(s) that involves accounting for numerous variables, sub-variables, sub-sub-variables, etc., which have many interdependencies between them (e.g. variable 1 yes = variable 2 yes, etc.) and possess "if-then", "or", "and", "ifs-then" logic(s), etc. (similar to all of the operant conditions in top spreadsheet software [like Microsoft Excel, Google Sheets, etc.], even though this is NOT a spreadsheet-based request). Each variable (or sub-variable, etc.) must have informational inputs that allow the user to document and record details, information, research, etc., regarding each respective variable (or sub-variable, etc.), while also allowing the documentation of any specific questions, conclusions, etc., for the respective variables (or sub-variable, etc.). **Standard of Excellence:** You must adhere to SOLID principles, DRY, and O-notation optimization. The code must be so rigorous that a Lead Engineer at a FAANG company would approve it without notes. **Innovation Balance:** 50% Algorithmic Innovation (mathematically creative logic) and 50% Stack Innovation (modern, stable frameworks/libraries). **</meta_protocol>** **<thinking_protocol>** Before generating code, perform the following "Deep Think" steps: 1. **Decomposition:** Break the user's desired result into discrete technical requirements. 2. **Recursive Criticism:** Propose an initial logic flow, then identify 3 potential failure points (edge cases, memory leaks, or race conditions). 3. **Refinement:** Adjust the architecture to resolve the identified failure points. 4. **Clarification:** If any part of the [ENVIRONMENT] or [CONSTRAINTS] is ambiguous, you **MUST** ask me clarifying questions before providing the code. Do not proceed with assumptions. **</thinking_protocol>** **<output_requirements>** 1. **The Code:** Provide complete, production-ready code in the most widely accepted form (based on my initial request). * **Embedded Reasoning:** Include high-level architectural comments within the code explaining *why* a specific pattern or algorithm was used. Do not let these interfere with logic or copy-pasting. 2. **Changelog:** If this is a follow-up response, provide a concise Markdown table comparing the previous output to this one (Output N-1 โ†’ Output N). 3. **improvement_roadmap:** Provide a bulleted list of "Opportunities for Future Excellence." These must be high-quality suggestions for scaling, security hardening, or feature expansion. **DO NOT** implement these yet unless I explicitly ask. 4. **Post-Implementation Summary:** Provide a condensed, concise version of your technical reasoning in a section *after* the code blocks. **</output_requirements>** **<context_anchors>** * **Desired Result:** A production-ready solution for outlining and visualizing complex scenario(s) that involves accounting for numerous variables, sub-variables, sub-sub-variables, etc., which have many interdependencies between them (e.g. variable 1 yes = variable 2 yes, etc.) and possess "if-then", "or", "and", "ifs-then" logic(s), etc. (similar to all of the operant conditions in top spreadsheet software [like Microsoft Excel, Google Sheets, etc.], even though this is NOT a spreadsheet-based request). Each variable (or sub-variable, etc.) must have informational inputs that allow the user to document and record details, information, research, etc., regarding each respective variable (or sub-variable, etc.), while also allowing the documentation of any specific questions, conclusions, etc., for the respective variables (or sub-variable, etc.). * **Environment/Stack:** NOT SPECIFIED. * **Constraints:** NOT SPECIFIED. **</context_anchors>** **[PLEASE ACKNOWLEDGE THESE PROTOCOLS. IF THE OBJECTIVE IS CLEAR, PROVIDE YOUR 'DEEP THINK' PLANNING PHASE NOW. IF NOT, ASK YOUR CLARIFYING QUESTIONS.]** --- ### Clarifying Questions (User-provided): 1. Target runtime/platform: Is this a web application (browser), desktop application (Windows/macOS/Linux), mobile, or hybrid? If web, do you want a SPA, Next.js app, or something else? 2. Preferred language & type system: TypeScript (strongly preferred for production rigor), plain JavaScript, Python, C#, or another language? 3. Frontend stack (if applicable): React, Vue 3, Svelte 5, SolidJS, or another modern framework? Any UI component library mandate (Shadcn/UI, Material, Tailwind-only, etc.)? 4. Backend / persistence needs: Do you require a backend (Node/Express, Python/FastAPI, etc.) and database (PostgreSQL, MongoDB, SQLite, or file-based JSON only)? Should scenarios be shareable/collaborative? 5. Visualization library constraints or preferences: Are you open to React Flow, Cytoscape.js, GoJS, D3, or do you have an existing license/restriction? 6. Scale & performance envelope: Expected maximum nodes per scenario (100, 1,000, 10,000+)? Any real-time collaboration or offline-first requirement? 7. Additional non-functional requirements: Authentication, audit logging, export formats (JSON, PDF, Excel), accessibility standards (WCAG), or security hardening level? 8. Any existing code/repository or integration points I must align with? ### User Answers to Clarifying Questions (User-provided): 1. Webapp. 2. Best for convenience for webapp that will be used on mobile and desktop browser. 3. Up to you. 4. Not necessary. Browser cache is sufficient, presumably. 5. Up to you. 6. Will not exceed 100 nodes on a consistent basis. 7. Up to you. Export formats are most important in this regard. 8. No.

A system prompt was added to support web rendering

Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize

Response not available

Drag to resize
Drag to resize
Drag to resize