{ “output”: ”# Patterns\n- Structured Identifiers: Replace placeholders with namespaced formats like [env].[region].[service].[data-type].\n- Versioning & Casing: Append explicit versioning (v1) and enforce strict lowercase.\n- Automated Cleanup: Automate temporary infrastructure cleanup via TTL (auto_ttl_days: 1).\n- Agent Prompts: Inject personas directly into the prompt string.\n- Uvicorn / Discord.py Integration: Co-locate Uvicorn by disabling native signals (server.install_signal_handlers = lambda: None).\n- Telemetry Context Propagation: Carry context via Node/Bun AsyncLocalStorage and use safe lazy dynamic imports.\n- WordPress Workflow: Edit JS/PHP in src/ and run npm run build from the plugin root.\n- WP-CLI Execution: Run commands using sudo -u www-data wp to avoid permission errors.\n\n# Anti-patterns\n- Generic Placeholders: Deploying generic strings (like test-topic-123) in shared/production environments (introduces collision risks and obscures observability).\n- Invalid Parameters: Using the role kwarg for agent() (it is invalid).\n- Read-Only I/O: Attempting filesystem I/O using agents tagged agent_type=\"reviewer\" (they cannot write to the filesystem).\n- Shared State in Tests: Designing tests that rely on shared state from previous tests (leads to cascading failures).\n- Direct Build Edits: Modifying build/ files in WordPress directly (edits will be overwritten during the build process).\n\n# Best Practices\n- Structured Naming: Replace generic placeholders with structured identifiers and maintain executable documentation.\n- Test Independence: Assert strictly on behavioral outcomes and isolate shared state.\n- Tooling Consistency: Ignore quartz/local-plugins in workspace configs to prevent overwrite loops.\n- UI Parsing: Strip emojis in Quartz using a regex mapFn and wrap Mermaid edge labels in double quotes (-->|\"label\"|).\n- OMP Troubleshooting: Execute debugging CLI commands under a real PTY (pty: true).” }