From 7000662539c5c88e86560a1ef11fea91aaf09945 Mon Sep 17 00:00:00 2001 From: Alex Maldonado Date: Fri, 13 Nov 2026 07:01:35 -0500 Subject: [PATCH] A proof's time limit is the reader's to set The Prove view gives each routine 3 seconds on the clock. On a slow or busy device that runs out before the proof does, and claims stay open with nothing to say why. - The view says when the time, not the proof, stopped the checker, that what was not finished is open and not disproved, and offers to prove again with the next longer time. The setting is at the foot of the view: 3, 10 or 30 seconds or 2 minutes for each routine, kept in the browser (pplus.proveclock). - A proof rendered with Quarto takes prove-seconds on the shortcode or pplus-prove-seconds for the site, and the render warns when the time ran out. - The home page's own example is proved with no time on the clock, and the tests that hold a proof's outcome give it time to spare, so neither depends on the machine. - core moves to 38e6e2c, whose report says which routines the clock stopped. --- CHANGELOG.md | 1 + core | 2 +- docs/app.md | 1 + quarto/README.md | 4 ++ quarto/_extensions/pplus/pplus-views.css | 13 ++++ quarto/_extensions/pplus/pplus.lua | 4 ++ scripts/quarto-css.mjs | 3 + src/core/proveclock.ts | 53 +++++++++++++++ src/core/session.ts | 12 ++++ src/core/site.ts | 2 +- src/quarto/render.ts | 13 +++- src/ui/embed.ts | 1 + src/ui/home.ts | 6 +- src/ui/shell.ts | 1 + src/ui/views/panels.ts | 20 ++++++ styles.css | 17 +++++ tests/bridge.test.mjs | 1 + tests/proveclock.test.mjs | 87 ++++++++++++++++++++++++ tests/quarto-render.test.mjs | 5 +- 19 files changed, 240 insertions(+), 6 deletions(-) create mode 100644 src/core/proveclock.ts create mode 100644 tests/proveclock.test.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d76141..1dfa3fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ No version has been tagged yet. What programs mean is pplus-core's, and its chan ### Added +- The Prove view's time limit is the reader's to set: 3 seconds for each routine as before, or 10, 30 or 120, kept in the browser. When the time, not the proof, stopped the checker (a slow or busy device), the view says so, says that what was not finished is open and not disproved, and offers to prove again with more. A proof rendered with Quarto takes `prove-seconds` on the shortcode or `pplus-prove-seconds` for the site, and the render warns when the time ran out. - `THIRD_PARTY.md`, with the copyright notice of every package bundled into the editor, and a test that holds it to the bundle, the copied stylesheets, the fonts and the locks. - The Apache License 2.0, a NOTICE, contributing rules, a security policy, a code of conduct, and a citation file. - A footer with the license, the notices, the disclaimer about Modular, the build's commit, and "What this site stores and sends", each statement held to the code by a test. diff --git a/core b/core index b10a5c8..38e6e2c 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit b10a5c87a335f4d3c2b831c51b58d7cb204191df +Subproject commit 38e6e2cdd2b10ad70d4ebfec015a97149e124771 diff --git a/docs/app.md b/docs/app.md index c8a2e87..8606464 100644 --- a/docs/app.md +++ b/docs/app.md @@ -131,6 +131,7 @@ The **Share** button in the app produces the app link, a ready-to-paste `