From 89e9e47ecc74820ac1dd7e227297cbe79c0063a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Fri, 13 Nov 2026 14:25:25 +0000 Subject: [PATCH] spec 3.8.1: a page for what is to be seen, a shown file for what has to run The pages block now says that something the person asks to see in the answer is written as a page, not as an HTML file opened with `show`, and that a page is static: what has to run is said to be beyond a page and, where the model has `write` and `show`, written as a file and shown. A text; nothing else moves. Co-Authored-By: Claude Fable 5.2 --- CHANGELOG.md | 12 ++++++++++++ harness/README.md | 11 +++++++++++ harness/VERSION | 2 +- harness/pages.md | 7 ++++++- harness/prompts/blocks/html-pages.md | 4 +++- tests/pages.test.ts | 17 +++++++++++++++++ 6 files changed, 50 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2632ace..00894cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to LLeMbas CLI. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses [Semantic Versioning](https://semver.org/). +## [Unreleased] + +### Changed + +- **Harness spec 3.8.1: a page for what is to be seen, a shown file for what has to run.** The + text a model is given when HTML pages are on (`harness/prompts/blocks/html-pages.md`) now says + that something the person asks to see in the answer is written as a page, not as an HTML file + opened with `show`; and that a page is static, so anything that has to run — a calculator, a + game, something that reacts to a click — is not a page: the model says so and, where it can, + writes an HTML file and shows that. A text only; the CLI is never offered pages and behaves + as before. + ## [2.0.0-beta.10] — 2026-11-13 Harness spec 3.8.0: reports from scheduled runs, HTML pages in answers, which permission rule decides. diff --git a/harness/README.md b/harness/README.md index faecda0..c733e1e 100644 --- a/harness/README.md +++ b/harness/README.md @@ -78,6 +78,17 @@ page *Harness-parity* in LLeMbas CLI's wiki. approval in plan mode and answers its `unavailable` text outside it. Their permission key is `plan` (`permission/defaults.json`), which a rule written for the former `todo` key still reaches. +## 3.8.1 + +A text. `prompts/blocks/html-pages.md` (`pages.md` §2) now says which of the two ways of +showing HTML is for what: **something the person asks to see in the answer is a page** — not +an HTML file written and opened with `show`, which is what a model did when nothing said +otherwise, leaving a card to open where the drawing was asked for — and **something that has to +run is not a page**: a page is static, so for a calculator, a game or anything that reacts to a +click the model says a page cannot do it and, where it has `write` and `show`, writes an HTML +file and shows that. Nothing else changes: no tool, rule, field or conformance case; the CLI is +never offered pages, so its behaviour is the same. + ## 3.8.0 Written ahead of the implementations; the CLI carries it in the same round. diff --git a/harness/VERSION b/harness/VERSION index 1981190..f280719 100644 --- a/harness/VERSION +++ b/harness/VERSION @@ -1 +1 @@ -3.8.0 +3.8.1 diff --git a/harness/pages.md b/harness/pages.md index 29caf06..3c07f4f 100644 --- a/harness/pages.md +++ b/harness/pages.md @@ -40,7 +40,12 @@ A page is a fenced code block whose info string begins with the word **`html-vie ## 2. What the model is told `prompts/blocks/html-pages.md`, as bullets of the system prompt when pages are offered (§4) — -in short: the answer stays Markdown and must make sense without the page; a page is a complete +in short: the answer stays Markdown and must make sense without the page; **what the person +asks to see in the answer is a page, not an HTML file opened with `show`** (3.8.1: without +this a model wrote a file and showed it, and the person got a card to open instead of the thing +they asked for); **what has to run is not a page** — the model says a page cannot run anything +and, where it has `write` and `show`, writes an HTML file and shows that, which a client runs +in its sealed viewer; a page is a complete document in an `html-view` fence with a short title, one page per fence; it is **static** — HTML, CSS and inline SVG, nothing that runs and nothing loaded from anywhere; a chart is inline SVG the model writes out, shapes and numbers it worked out itself; tables and layout are CSS; colours diff --git a/harness/prompts/blocks/html-pages.md b/harness/prompts/blocks/html-pages.md index f4d6b8a..3061ed0 100644 --- a/harness/prompts/blocks/html-pages.md +++ b/harness/prompts/blocks/html-pages.md @@ -1,8 +1,10 @@ - - Your answer is Markdown, as always. Where seeing answers better than reading — a chart, a comparison laid out as a table with colour, a diagram, a timeline — you may add a page to it: a complete, self-contained HTML document in a fenced block whose info string is `html-view` followed by a short title, for example ```html-view Monthly sales. One page per block. It is shown at that place in your answer, in a sealed frame of a fixed height that scrolls. +- When the user asks to see something in your answer — "show me", "draw", "visualise", a chart, a diagram, a table laid out — and it can be drawn without running anything, write it as a page here. Do not write it to an HTML file and open that with `show` instead: a page is what appears in the conversation, at the place you put it, and stays there when the conversation is opened again. - A page is static: HTML, CSS and inline SVG only. Nothing in it runs and nothing is loaded: no `