Merge remote-tracking branch 'origin/master' into worktree-plugin-config-guideline
Master's docs-overhaul stack (#142-#144) rewrote AGENTS.md into the slim budget-gated form and repointed the review skill's citations. Resolutions: - AGENTS.md: master's rewrite wins; the no-hardcoded-tunables convention is re-added as one terse bullet in the new style, after 'Explicit > implicit at package seams'. Within the verify-doc-budgets ceiling, so no displacement or raise needed. - dsh-code-review SKILL.md: master's repointed citations win; the hardcoded-tunables reviewer check and the Conventions keyword are re-applied on top. - packages/README.md: master replaced the hand-maintained dependency list (which carried this branch's chars-per-token wording) with a pointer to the generated module graph — master's side taken whole; the estimator wording lives on in the compact package READMEs.
This commit is contained in:
@@ -216,7 +216,7 @@ interface TurnEndReasonMap {
|
||||
}
|
||||
```
|
||||
|
||||
`max-tokens` mirrors the model-call `FinishReason` of the same name: any `max-tokens` step in a turn makes the whole turn end `max-tokens` (the cut-short fact wins over a later continuation), so a consumer can tell a clean stop from a truncated one. `rejected` is a zero-step turn whose whole prompt batch an `agent/prompt-submit` hook blocked (the ACP bridge maps it to `cancelled`). `interrupted` is the one reason no loop emits — it is synthesized by crash recovery (see [persistence.md](persistence.md)). Both maps are merge-extensible.
|
||||
`max-tokens` mirrors the model-call `FinishReason` of the same name: any `max-tokens` step in a turn makes the whole turn end `max-tokens` rather than `completed` (the cut-short fact wins over a later continuation), so a consumer can tell a clean stop from a truncated one — but only over `completed`: the `disposed`/`aborted`/`error` outcomes take precedence. `rejected` is a zero-step turn whose whole prompt batch an `agent/prompt-submit` hook blocked (the ACP bridge maps it to `cancelled`). `interrupted` is the one reason no loop emits — it is synthesized by crash recovery (see [persistence.md](persistence.md)). Both maps are merge-extensible.
|
||||
|
||||
## The turn-enclosure invariant
|
||||
|
||||
|
||||
Reference in New Issue
Block a user