Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
1ed421e
eval: React reference for desk9 (grades 0: 77/77, 38/38, 0/20)
claude Nov 14, 2026
91ec6ae
eval: desk9 XState reference (grades 0)
claude Nov 14, 2026
f072d16
eval: desk9 vanilla reference (grades 0)
claude Nov 14, 2026
8e67b41
eval: desk9 Foldkit reference (grades 0)
claude Nov 14, 2026
883b0cc
eval fuzz: A4 also covers detail, labels, comments and two views
claude Nov 14, 2026
53e2f68
eval: --r15 fuzz rule (server's last answer wins at rest); React and …
claude Nov 14, 2026
274f306
eval: plain Solid repro of a stale heading after select (rx desk9 ref…
claude Nov 14, 2026
472e73e
eval: board task (round 15 held-out), its fuzzer, and the React refer…
claude Nov 14, 2026
6ba2af8
eval: board .rx reference (grades 0) + plain-Solid repro of stale lab…
claude Nov 14, 2026
ea24896
eval: fuzz-board B1 also exempts the duplicate-card check in a late-w…
claude Nov 14, 2026
882172f
eval: board vanilla reference (grades 0)
claude Nov 14, 2026
2df041f
eval: board XState reference (grades 0)
claude Nov 14, 2026
0cba38d
eval: board Foldkit reference (grades 0)
claude Nov 14, 2026
1074753
eval: board Exact (contract) reference (grades 0)
claude Nov 14, 2026
7278c87
eval: board fuzz checks every card's count against the server; round …
claude Nov 14, 2026
a169017
eval: fuzz-board B3, legal holds (as desk9 A1/A5): held detail and an…
claude Nov 14, 2026
f9edf8f
eval: prereg records the Exact move-error limit (Ryan's call)
claude Nov 14, 2026
edde969
eval: guide-shaped .rx board (rx-guide) and repros for solidjs/solid#…
claude Nov 14, 2026
2d3b0eb
eval: repro for the page hang from solid 9e02d02a8 (board guide shape…
claude Nov 14, 2026
fbf898d
eval: idiomatic one-store .rx board (rx-store) and its repros (solidj…
claude Nov 14, 2026
27377f7
catch reads in handlers are snapshots; ARGUMENT_COUNT and props of C(…
claude Nov 14, 2026
b5ddae5
eval: store board fixes (placeholder list, pending? in handlers, reas…
claude Nov 15, 2026
38b2125
eval: board .rx placeholder back in the store, per-column store versi…
claude Nov 15, 2026
9a7b294
eval: rx-cols grade notes
claude Nov 15, 2026
a78c746
eval: rx-store grade notes
claude Nov 15, 2026
c58dba7
ST-4a: a key applies at any depth, as Solid's (lists under a record l…
claude Nov 15, 2026
2bd5cd9
eval: repros for solidjs/solid#4888 and #4889
claude Nov 15, 2026
4a192c5
eval: rx-cols re-asks the card's server column after a move's answer …
claude Nov 15, 2026
4a2b41a
eval: seed 41 traced to solidjs/solid#4897 (declined variant)
claude Nov 15, 2026
8876be0
guide: one keyed store per fetch; moves guess each list they change; …
claude Nov 15, 2026
20589f4
prereg: shared-list holds excluded as by design (Ryan, 2026-11-15)
claude Nov 15, 2026
d2bfd96
eval: rx-cols re-asks every column whose answer has the moved card; 0…
claude Nov 15, 2026
2f2bc85
eval: repro for solidjs/solid#4902 (path guess lost on a row moved in…
claude Nov 15, 2026
f482392
eval: rx-cols grade on next eafe671b6 (#4902 fixed); repro for solidj…
claude Nov 15, 2026
a93efdb
PREREG-15: board rx reference = rx-cols; Solid fixes required; guide/…
claude Nov 15, 2026
f843a9e
eval: rx-cols regraded on next b08afe5ce (#4904 fixed)
claude Nov 15, 2026
6146c67
PREREG-15: Solid fixes through #4904
claude Nov 15, 2026
8395412
Repin Solid to 2.0.0-rc.22: keyed answers returned for Solid to recon…
claude Nov 15, 2026
486af79
eval: repro for solidjs/solid#4907 (return-path derive drops a row's …
claude Nov 15, 2026
670f26e
eval: repro for solidjs/solid#4918; plain-Solid board model driven by…
claude Nov 16, 2026
2d357af
eval: repro for solidjs/solid#4926 (nested Errored keeps old error af…
claude Nov 16, 2026
cd47f41
eval: fuzzers send every asker the first accepted answer of a repeate…
claude Nov 16, 2026
192e36c
eval: repro for solidjs/solid#4929 (board seed 100)
claude Nov 16, 2026
cf2a881
eval: repros for solidjs/solid#4931 (board seed 118) and #4932 (seed …
claude Nov 16, 2026
3289544
eval: fuzz-board B4: a card's count may keep accepted toggles of an i…
claude Nov 16, 2026
a12293e
eval: freeze PREREG-15 on Solid 2.0.0-rc.23; repin ref, runtime and e…
claude Nov 16, 2026
b071e45
eval: PREREG-15 freeze notes: prompt delivery and concurrency; round …
claude Nov 16, 2026
52a0997
eval: PREREG-15: how by-design holds are excluded, naming the ones fo…
claude Nov 16, 2026
13de3c0
round 15: grades, hold probes, exclusions, scoring, Solid repros (#49…
claude Nov 17, 2026
98cb788
round 15: results write-up (provisional), descriptives, apps
claude Nov 17, 2026
4de9f01
round 15: repro for solidjs/solid#4972
claude Nov 17, 2026
9ad9edd
round 15: full failure output of the rx hidden/overlap tests
claude Nov 17, 2026
40c6531
round 15: after-page-left tests excluded in every arm (Ryan's ruling)
claude Nov 17, 2026
aac0bc3
AC-1g STALE_CAPTURE: after an await, an answer takes only what is the…
claude Nov 17, 2026
c896180
AC-1g: an answer takes only the server's, before or after the await; …
claude Nov 17, 2026
249585f
desk9 rx-one: the .rx desk9 reference with guesses on the answers (no…
claude Nov 17, 2026
5d04f92
Refuse a plain write to a question source guessed by path at compile …
claude Nov 17, 2026
c854278
desk9 hold probe: issues page reopened with a write on the list out
claude Nov 17, 2026
ee86305
desk9 rx-one: close guesses only on the open list, passed in; detail …
claude Nov 17, 2026
93cb0aa
guide: one shape for server data, guesses go on the answer
claude Nov 17, 2026
fde2b56
guide: on an accepted move re-ask every list the row can be in, not t…
claude Nov 17, 2026
3796d04
board probes 2 and 3: one-shape guide, then the every-list re-ask rule
claude Nov 17, 2026
55f0320
board probes: detail tear is solidjs/solid#4990 (plain-Solid repro)
claude Nov 17, 2026
801d8d7
board probes: regrade on Solid main; #4998 and #4999 repros
claude Nov 18, 2026
c76c966
guide: don't skip a guess because pending? reads true in the handler
claude Nov 18, 2026
dd1df9b
board probes: trace opus-1 seeds 10 and 13 on main (#5002, #5003)
claude Nov 18, 2026
90e3540
compile: a catch on an equation's await settles the rejection where i…
claude Nov 18, 2026
57a02fd
compile: one error boundary per catch site inside an equation, made once
claude Nov 18, 2026
fee49e0
catch only after an await (CATCH_NOT_ON_AWAIT); failures shown where …
claude Nov 19, 2026
c2a07ac
guide: a page's data lives in the page; a keyed store over a first-pa…
claude Nov 19, 2026
92b5b86
guide: a borrowed read's fallback shows the pane's own content, not t…
claude Nov 19, 2026
d890795
repro for solidjs/solid#5077 (board seed 12: row and memo disagree af…
claude Nov 19, 2026
f416488
Revert "guide: a borrowed read's fallback shows the pane's own content"
claude Nov 19, 2026
1b7df11
guide: drop the #5039 workaround (fixed in Solid)
claude Nov 19, 2026
e1e5e85
Effects skip a failed input (EF-2a); guide: two failure homes, a writ…
claude Nov 19, 2026
29c9365
Board oracle B5: a detail that reads every column may show its fallba…
claude Nov 19, 2026
f2dbd8b
Pin Solid main a4b402561 (2.0.3); solid-next.sh follows main, next is…
claude Nov 19, 2026
2d78a25
Pin Solid main c74567ab1 (has #5088, the #5077 fix)
claude Nov 19, 2026
c3ace8c
Repro for solidjs/solid#5090 (guess missing from a memo that reads an…
claude Nov 19, 2026
dc74228
Repro for solidjs/solid#5095 (fresh guess hidden in a For row after i…
claude Nov 20, 2026
d3cab00
Guesses over writables: signals and stores (07 decision 21)
claude Nov 20, 2026
86d0b9d
Pin Solid main 99db9bce4 (#5091, #5096, #5101)
claude Nov 20, 2026
ca85aef
Repro for solidjs/solid#5104 (heading misses a guess its list shows, …
claude Nov 20, 2026
cd6eb4f
Merge main (#65, #66, #86, #87, #88) into claude/project-thread-xp2irv
claude Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

**Changed**

- `catch` follows only an `await`: `await f(x) catch (e) => alt` makes a matching rejection the answer. A `catch` after
anything else is the new compile error `CATCH_NOT_ON_AWAIT` (R-f-4). Show a failed value with an `errored` region
where it is read; in a handler or action, read it inside `try { … } catch (e) { … }`; write validation as a value
(`""` or a message), not a thrown class.

**Fixed**

- `affects` on a keyed or structured source that takes a guess threw `INVALID_AFFECTS_TARGET` in a dev build, so the
Expand All @@ -11,6 +18,17 @@
row, so a row's readers re-run only when its own leaves change (#51).
- The guide's action example (`guide/async.md` §3) lost an error thrown before the first `await`: the `onFlush` clear
ran after the catch. The catch now writes the error through `onFlush` as well (#52).
- A `catch` expression read with no observer (a component `fn` called from a handler or an action) built a fresh error
boundary, which had no value while a `refresh` was out, so the click threw `NotReadyError` and was lost. It is now a
snapshot: the committed value, or the alternative on a matching failure (R-8, S-catch-snapshot).

**New**

- `ARGUMENT_COUNT` (AC-1f): a call of an action declared in the module with another number of arguments than its
parameters is refused.
- `props` in a component declared without props (`component C()`) is `UNBOUND` (RG-4b); it read `undefined`.
- `guide/async.md`: "One store over the server"; the `GUESS_WHILE_LOADING` advice says what holds when a selection
changes while a guess is out (05 DV-22).

## 0.3.1

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default component Profile() {
Leave out the `errored` boundary and it does not compile:

```
profile.rx:10: error UNHANDLED_FAILURE [R-f-5] a reader of user.name (in <Profile>) can fail with Error and no catch or errored boundary above it discharges Error — wrap it in `errored fallback(e) { … } { … }`, or catch it: `… catch (e) => …`
profile.rx:10: error UNHANDLED_FAILURE [R-f-5] a reader of user.name (in <Profile>) can fail with Error and no catch or errored boundary above it discharges Error — show it where it is read: `errored fallback(e) { … } { … }` around the reader (or `await … catch (e) => …` at the await, to make the rejection an answer)
```

Beyond this the language has structured stores with per-path writes
Expand Down
5 changes: 3 additions & 2 deletions compiler/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub enum Decl {
TypeDecl { name: String, line: usize, span: Span, text: String, exported: bool },
Effect { inputs: Vec<Expr>, body: Vec<Stmt>, line: usize, span: Span },
Fn { name: String, params: Vec<Param>, decls: Vec<Decl>, tail: Expr, line: usize, span: Span, ret: Option<String>, exported: bool },
Component { name: String, props: String, decls: Vec<Decl>, view: Vec<Markup>, line: usize, span: Span, props_type: Option<String>, exported: bool, is_default: bool },
Component { name: String, props: String, decls: Vec<Decl>, view: Vec<Markup>, line: usize, span: Span, props_type: Option<String>, no_props: bool, exported: bool, is_default: bool },
Action { name: String, params: Vec<String>, ptypes: Vec<Option<String>>, body: Vec<Stmt>, line: usize, span: Span, exported: bool },
Server { name: String, params: Vec<String>, ptypes: Vec<Option<String>>, ret: Option<String>, body: Vec<Stmt>, line: usize, span: Span, exported: bool },
Provide { name: String, e: Expr, line: usize, span: Span },
Expand Down Expand Up @@ -584,14 +584,15 @@ impl Decl {
("ret", os(ret)),
("exported", flag(*exported)),
]),
Decl::Component { name, props, decls, view, line, props_type, exported, is_default, .. } => obj(vec![
Decl::Component { name, props, decls, view, line, props_type, no_props, exported, is_default, .. } => obj(vec![
("k", s("component")),
("name", s(name)),
("props", s(props)),
("decls", Some(decls_json(decls))),
("view", Some(markups_json(view))),
("line", num(*line)),
("propsType", os(props_type)),
("noProps", flag(*no_props)),
("exported", flag(*exported)),
("isDefault", flag(*is_default)),
]),
Expand Down
64 changes: 64 additions & 0 deletions compiler/src/awaits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,67 @@ pub fn is_handler(name: &str) -> bool {
let b = name.as_bytes();
b.len() > 2 && b[0] == b'o' && b[1] == b'n' && (b[2].is_ascii_uppercase() || b[2] == b':')
}

/// R-f-4 inside an equation: each `x catch alt` that is not the equation's result and holds no `await` — hoisted into one
/// boundary of its own, made once beside the equation, instead of a new boundary on every run of the equation's memo.
/// Its guards are the conditions under which the equation reaches it. Closures and drafts keep theirs.
pub fn inner_catches(root: &Expr) -> Vec<Hoisted<'_>> {
let mut out = vec![];
walk_catch(Node::E(root), true, &[], &mut out);
out
}

fn walk_catch<'a>(n: Node<'a>, root: bool, g: &[Guard<'a>], out: &mut Vec<Hoisted<'a>>) {
let g0 = |e| Guard { e, neg: false, nullish: false };
if let Node::E(x) = n {
match &x.k {
ExprKind::Catch { e, alt, .. } => {
if root {
walk_catch(Node::E(e), false, g, out);
walk_catch(Node::E(alt), false, g, out);
} else if !has_await(x) {
out.push(Hoisted { node: x, guards: g.to_vec() });
}
return;
}
ExprKind::If { c, t, f } => {
walk_catch(Node::E(c), false, g, out);
walk_catch(Node::E(t), false, &with(g, g0(c)), out);
walk_catch(Node::E(f), false, &with(g, Guard { e: c, neg: true, nullish: false }), out);
return;
}
ExprKind::Bin { op, l, r } => {
walk_catch(Node::E(l), false, g, out);
match op.as_str() {
"&&" => walk_catch(Node::E(r), false, &with(g, g0(l)), out),
"||" => walk_catch(Node::E(r), false, &with(g, Guard { e: l, neg: true, nullish: false }), out),
"??" => walk_catch(Node::E(r), false, &with(g, Guard { e: l, neg: false, nullish: true }), out),
_ => walk_catch(Node::E(r), false, g, out),
}
return;
}
ExprKind::Fn { .. } | ExprKind::Draft { .. } | ExprKind::Await { .. } | ExprKind::Pre { .. } => return,
_ => {}
}
}
for c in children(n, false) {
walk_catch(c, false, g, out);
}
}

fn has_await(x: &Expr) -> bool {
let mut hit = false;
fn go(n: Node<'_>, hit: &mut bool) {
if *hit { return; }
if let Node::E(x) = n {
match &x.k {
ExprKind::Await { .. } | ExprKind::Pre { .. } => { *hit = true; return; }
ExprKind::Fn { .. } => return,
_ => {}
}
}
for c in children(n, false) { go(c, hit); }
}
go(Node::E(x), &mut hit);
hit
}
Loading
Loading