Session 14: compose_surface skill + outcome-aware planner - #15
Merged
Merged
Conversation
Additive, tagged (grep "# --- S14 additive" / "# --- S14 outcome-aware"), reversible. Enables Session 14's declarative UI generation: - compose_surface skill: composes an A2UI component tree from real graph outcomes via the gateway (Gemini), validated against the S14 catalog. - outcome-aware DeterministicPlanner: weak research evidence (missing/<=0/ implausible population) earns a corrective re-research node before distill, so a bad value never reaches the composed UI. "An outcome earns the next node." All changes confined to s13code/runtime.py. Existing behaviour unchanged when the compose_dashboard mode is not triggered. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
deephazar-eva-ai
added a commit
to deephazar-eva-ai/S13Code
that referenced
this pull request
Jul 24, 2026
…fai#15/theschoolofai#19; no net file changes)
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.
Additive, reversible changes enabling Session 14 (declarative agent-generated UI), all confined to
s13code/runtime.py(grep# --- S14 additive/# --- S14 outcome-aware).What this adds
compose_surfaceskill — a graph node that composes an A2UI component tree from real upstream outcomes via the gateway (Gemini), then validates the model's output against the S14 catalog (catalog/data-not-code/eventinvariants). UI generation happens inside the live graph, not as a standalone prompt.DeterministicPlanner— when a research node returns weak evidence (population missing / ≤0 / implausible), the planner adds a correctiveresearch_<city>_retrynode beforedistill, so a bad value never reaches the composed UI.Safety / compatibility
compose_dashboardmode is triggered.s14codeimported lazily viaS14CODE_PATH; S13Code tests/imports untouched.🤖 Generated with Claude Code