This commit is contained in:
Brent Larsen
2026-10-07 09:27:20 -05:00
parent cf1ab0a7af
commit bf02eff6ea
12 changed files with 808 additions and 91 deletions
+31
View File
@@ -0,0 +1,31 @@
# Ideas and deferred work
These are observations worth retaining, not promises or roadmap commitments. Do not implement them merely because they are written here. Revisit them when real work makes them relevant.
## Retry and model recovery
Current Perry transport behavior allows up to ten retries before giving up.
A real failure pattern suggests a potentially better strategy: after roughly four consecutive failures, explicitly recover or reload the requested model, then allow another small group of attempts rather than blindly repeating the same failing request ten times.
This has not been implemented in Perry 0.2. The existing retry behavior is transparent to consumers and remains serviceable. Before changing it, inspect current failures and discuss what "recover/reload" means for the active provider rather than designing a provider-wide recovery framework in advance.
## Additional providers
Ollama existed in Perry's Chat2 ancestry and was useful when it was being used. No active implementation exists in the current repository, so it was not recreated.
If Ollama or another provider becomes useful again, implement the concrete provider required by that work. Do not pre-build generalized provider infrastructure first.
Likewise, a future Perry provider might not be a network client at all. A local Python-backed model runtime could still be a Perry provider if it satisfies the actual need. That possibility does not justify architecture today.
## Additional settings
Possible LLM controls include context size, output token limits, temperature, reasoning effort, provider endpoints, and many others.
None should be added to Perry merely because they exist. Add a setting when a real consumer needs to control it and the responsibility clearly belongs at the Perry boundary.
## Shared provider behavior
Some behavior currently lives inside the LM Studio provider, including exact repetition-loop detection and stream abortion.
Do not extract a generic interface after a second vaguely similar implementation. A useful working heuristic is to wait until about three real implementations reveal substantially the same shape, then decide whether there is actually a common concept worth naming.