Skip to content

Session 14: compose_surface skill + outcome-aware planner - #15

Merged
theschoolofai merged 1 commit into
mainfrom
s14-compose-surface
Jul 24, 2026
Merged

theschoolofai merged 1 commit into
mainfrom
s14-compose-surface

Conversation

@theschoolofai

Copy link
Copy Markdown
Owner

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_surface skill — 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/event invariants). UI generation happens inside the live graph, not as a standalone prompt.
  • Outcome-aware DeterministicPlanner — when a research node returns weak evidence (population missing / ≤0 / implausible), the planner adds a corrective research_<city>_retry node before distill, so a bad value never reaches the composed UI.

Safety / compatibility

  • Existing behaviour unchanged unless the compose_dashboard mode is triggered.
  • s14code imported lazily via S14CODE_PATH; S13Code tests/imports untouched.
  • S13 live-graph tests pass (7 passed).

🤖 Generated with Claude Code

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>
@theschoolofai
theschoolofai merged commit efd2138 into main Jul 24, 2026
2 checks passed
@theschoolofai
theschoolofai deleted the s14-compose-surface branch July 24, 2026 06:34
theschoolofai added a commit that referenced this pull request Jul 24, 2026
deephazar-eva-ai added a commit to deephazar-eva-ai/S13Code that referenced this pull request Jul 24, 2026
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.

1 participant