retry.cordis.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Retry-scenario overlay: pin the bounded transient retry policy to a
  2. # deterministic 1 ms zero-jitter delay so the durable `llm/retry` event
  3. # (`delayMs`) and replay wall time stay reproducible. The overlay changes no
  4. # tool or prompt composition, so its scenarios share the default header class.
  5. # Config patches replace whole plugin configs: the provider patch restates its
  6. # adapter fields around `retryPolicy`, while the app patch re-pins the recorded
  7. # flash model and restates its base fields.
  8. - id: base
  9. name: '@cordisjs/plugin-include'
  10. config:
  11. path: ./cordis.yml
  12. patches:
  13. - id: llm-deepseek
  14. name: '@deepseek-ai/dsh-llm-deepseek'
  15. config:
  16. apiKey: !!js process.env.DEEPSEEK_API_KEY
  17. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  18. thinking: enabled
  19. reasoningEffort: max
  20. retryPolicy:
  21. mode: normal
  22. maxRetries: 2
  23. backoff:
  24. initialDelayMs: 1
  25. maxDelayMs: 1
  26. jitterRatio: 0
  27. models:
  28. - id: deepseek-v4-flash
  29. - id: deepseek-v4-pro
  30. - id: acp-agent
  31. name: '@deepseek-ai/dsh-acp-demo'
  32. config:
  33. provider: deepseek-official
  34. model: deepseek-v4-flash
  35. persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
  36. persistenceCompression: !!js "process.env.DSH_SNAPSHOT === undefined ? 'zstd' : 'none'"
  37. workspaceContext:
  38. maxBytes: 65536
  39. persona: |
  40. You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}. Your bash tool runs under a file sandbox — a `[sandbox: file access denied …]` result is policy, not a command bug.
  41. Verify your work by running the code or tests. Keep answers brief and factual.