Skip to content

Feat/cesar ask options#264

Merged
cukas merged 2 commits into
mainfrom
feat/cesar-ask-options
Jul 16, 2026
Merged

Feat/cesar ask options#264
cukas merged 2 commits into
mainfrom
feat/cesar-ask-options

Conversation

@cukas

@cukas cukas commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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>
@cukas
cukas merged commit 90e8e3d into main Jul 16, 2026
2 checks passed
@cukas
cukas deleted the feat/cesar-ask-options branch July 16, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants