Feat/cesar ask options#264
Merged
Merged
Conversation
When the Cesar brain is genuinely unsure between concrete alternatives it
can now END its turn with one [ASK]{question, options:[{label,description}]}
[/ASK] block. The runtime strips it (streamed + committed text), renders the
existing question overlay with dim per-option description lines and the
auto-appended free-text Other row, and feeds the selection back through the
existing interactive follow-up path so the turn continues.
- ask-marker.kern: parser — last well-formed block wins, all blocks stripped,
2-6 options, length clamps; located-but-malformed keeps found:true so the
turn surfaces a visible warning instead of silently never asking
- brain-helpers.kern: generalize the [TODOS] stream stripper into
createBlockDisplayStripper; add [ASK] to splitBeforeToolMarkup
- brain.kern: extractAsk at every marker-extraction site; ask branch at the
single end-of-turn interactive chokepoint (suppresses the heuristic fork/
confirm pickers; skipped while a plan surface is active)
- session.kern: RULE 7d prompt rule + agentic-prompt bullet
- composer.kern/app-layout.kern: description line per choice row + matching
reserved-row estimate
REPL-only by design; agon <cmd> one-shot surfaces are untouched.
⚔️ Forged by [Agon](https://github.com/KERNlang/agon)
Co-Authored-By: agon (KERN) <292465531+KERN-Agon@users.noreply.github.com>
Multi-engine review consensus (codex 0.84 + kimi 0.78): extractAsk always strips the block from streamed and committed text, but the overlay branch is skipped while a plan surface is active or the session is dead — the well-formed ask vanished without a trace. Surface it as plain visible text in that case (options numbered, answer via composer); a user interrupt stays a deliberate skip. ⚔️ Forged by [Agon](https://github.com/KERNlang/agon) Co-Authored-By: agon (KERN) <292465531+KERN-Agon@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.