O-4a: O-3 doesn't follow a closure stored through an action argument, and a registration widget to price the fix
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 28/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- compilers
调研方向
Start with O-3 and O-3b in spec/03-regions.md, then read MO-3 and S-region-7 to trace how action arguments and retained closures are represented. Review the proposed widget port and scenario in examples/lib/, comparing REGION_ESCAPE results before and after the O-3 change. Done means the retained closure gap is closed and the scenarios record correctness, restructuring, and capability movement.
由索引模型根据 Issue 内容生成。
描述
Follow-up to #15. That issue's two soundness holes were fixed in #16 (O-3a/O-3b in spec/03-regions.md). Its main over-rejection example was registering through a source context (use fields := …). That shape went away when RG-7c was withdrawn on 2026-10-31: registration now goes through actions in the context's value (provide fields = { add, remove }, S-region-7).
That leaves the opposite problem, recorded in the spec as O-4a (known gap):
O-3 does not yet follow a closure handed to an action as an argument and stored by it (
register(() => v)whereregisterstores its parameter in an outer source). The same gap exists for anon*handler prop that stores its argument.
So a row-local closure registered through a provided add is accepted today, even when no cleanup removes it.
To do
- Close the gap. Have O-3 follow an action's parameter into a store, the way O-3b follows a prop: the closure passed for that argument must not capture a name that ends before the place the action stores it. Across modules this belongs in the signature (MO-3
retains(...)). - Price it with the widget port #15 proposed. Port one headless widget built on child→parent registration (a listbox/combobox in the shape of Kobalte's, or field registration in the shape of TanStack Form) into
examples/lib/with its scenario. For eachREGION_ESCAPE, record whether the program was correct, the restructuring, and whether the restructuring moved a capability out of the region it belongs to. Do this both before and after step 1.
The #15 point still stands for 08: say what O-3 is sound over (closures capturing reactive names, stored through .rx writes and actions) and what it leaves to the runtime (JS sinks, values that retain resources, CN-3b).
- 主要语言
- TypeScript
- 星标
- 127
- 派生
- 7
- 平均合并
- 15 小时 42 分钟
- 30 天内合并 PR
- 63
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solidjs/reactivescript 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
solidjs/reactivescript#96 ·
维护者通常 1 天内回复
-
Vite front end keeps serving a failed build after the missing/broken imported module is fixed可能已有人在做 @cgaaf 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
solidjs/reactivescript#84 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
solidjs/reactivescript#77 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
solidjs/reactivescript#74 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 62/100
solidjs/reactivescript#97 ·
维护者通常 1 天内回复
查看 solidjs/reactivescript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
GetStream/stream-chat-react#3467 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
vercel-labs/ui#1139 ·
维护者通常 1 天内回复
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bot:ai-assisted component:platform-js status:untriaged
难度 2/5 1-3 小时 新手友好度 82/100
midnightntwrk/platform-js#93 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100