Display per harness spec 3.7.0: the end line, durations, locale numbers, the cards' actions
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
- A reply that was stopped or failed keeps the progress text at its end (display.md section 4): "Stopped: by you", "Failed: ...". message.stopped was never drawn, and a failure showed the raw error. The reason comes from the stream's last status frame and stays with the finished row; a stored row gives "Stopped" or "Failed: <first line of its error>". - A finished tool call shows its duration (0.4s, 1m 05s, 2h 03m) from the call's `ms`, where the server sends it; none while running or when denied. - Counts in the progress line are in the phone's locale format (Locale.ROOT is the spec's plain format, which the conformance cases use); a cut `what` ends in an ellipsis, counted in code points; the clock is joined with the shared progress_line separator. - Approval card: Allow once / Always allow / Deny / Deny, and say why. Plan card: Approve, continue in Edit / in Manual, and Revise. - fetch-contract.py pins the spec's display.json as harness_display.json once the server's copy of the spec has it; DisplayTest then runs its duration and end cases. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
22 files changed
+428
-41
No files matched your search
@@ -26,7 +26,7 @@ SOURCE = "tests/fixtures/api_v2"
|
||||
# The harness spec's conformance cases a client draws by, from the server's vendored copy of the
|
||||
# spec at the same ref: `harness_<name>.json` beside the fixtures, once the server has them.
|
||||
HARNESS = "src/lembas/harness_spec/conformance"
|
||||
HARNESS_CASES = ("progress.json",)
|
||||
HARNESS_CASES = ("progress.json", "display.json")
|
||||
OUT = ROOT / "contract"
|
||||
LOCK = OUT / "lock.json"
|
||||
|
||||
|
||||
Reference in new issue
Block a user