diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 14:59:31 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 14:59:31 +0100 |
| commit | f192c40b2a3643a9ab97303310db8dbc7547ee35 (patch) | |
| tree | 1b2133afa1b3318f8c0da032a7da278691e577ca /docs | |
| parent | M1-M5: sessions, six tools, approvals, prompt, Ctrl-C, target gate (diff) | |
| download | agent686-f192c40b2a3643a9ab97303310db8dbc7547ee35.tar.gz agent686-f192c40b2a3643a9ab97303310db8dbc7547ee35.zip | |
Robustness: retry with backoff, explained errors, --list, --session creates
- four attempts on 408/425/429/500/502/503/504 and transport errors, honouring Retry-After
- backoff is interruptible so Ctrl-C is not held for up to 8s
- context overflow, auth failure and rate limit messages say what to do
- --list shows id/model/messages/age without needing a key
- --session <id> creates the session when the id does not exist
- probes recorded: session header is mandatory, consecutive user messages allowed
Diffstat (limited to '')
| -rw-r--r-- | docs/PLAN.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/PLAN.md b/docs/PLAN.md index b1273b1..75fd25b 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md | |||
| @@ -110,6 +110,23 @@ against the live API: streaming, tool calls, `reasoning_content`, usage and | |||
| 110 | 2.0 MB stripped i686 binary, `GLIBC_2.34` required. Verified by running the | 110 | 2.0 MB stripped i686 binary, `GLIBC_2.34` required. Verified by running the |
| 111 | whole acceptance test inside `--platform linux/386 debian:12`. | 111 | whole acceptance test inside `--platform linux/386 debian:12`. |
| 112 | 112 | ||
| 113 | **M6 — Robustness.** ✅ Done. | ||
| 114 | |||
| 115 | - Retries on 408/425/429/500/502/503/504 and on transport errors: four attempts, | ||
| 116 | 1 s / 2 s / 4 s backoff, `Retry-After` honoured, and the backoff is | ||
| 117 | interruptible so Ctrl-C does not wait it out. | ||
| 118 | - Provider errors explain themselves: context overflow says to start a new | ||
| 119 | session, 401/403 says where the key lives, 429 points at the plan limit and | ||
| 120 | `--model`. | ||
| 121 | - `--list` shows id, model, message count and age; `--session <id>` creates the | ||
| 122 | session when the id is new instead of erroring. | ||
| 123 | |||
| 124 | Probed against the live gateway: `x-opencode-session` is mandatory (400 | ||
| 125 | `MissingSessionID` without it); two consecutive user messages are accepted, so a | ||
| 126 | turn that failed after writing its prompt can be resumed without editing the | ||
| 127 | transcript; and `deepseek-v4.1-flash` accepted a 500k-token prompt, so the | ||
| 128 | context ceiling is far higher than the 128k the plan assumed. | ||
| 129 | |||
| 113 | ## Acceptance test (v1) | 130 | ## Acceptance test (v1) |
| 114 | 131 | ||
| 115 | > "Make a simple calculator in C" — run on the i386 box, from an empty directory. | 132 | > "Make a simple calculator in C" — run on the i386 box, from an empty directory. |
