[{"data":1,"prerenderedAt":517},["ShallowReactive",2],{"navigation_docs":3,"-decisions-0004-public-kyo-apis-only":223,"-decisions-0004-public-kyo-apis-only-surround":512},[4,26,96,105,202],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":16,"path":17,"stem":18,"icon":19},"The first app","\u002Fgetting-started\u002Ffirst-app","1.getting-started\u002F2.first-app","i-lucide-play",{"title":21,"path":22,"stem":23,"icon":24},"The first test","\u002Fgetting-started\u002Ffirst-test","1.getting-started\u002F3.first-test","i-lucide-flask-conical",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[32,37,42,47,52,57,62,67,72,77,81,86,91],{"title":33,"path":34,"stem":35,"icon":36},"Components","\u002Fguide\u002Fcomponents","2.guide\u002F01.components","i-lucide-component",{"title":38,"path":39,"stem":40,"icon":41},"Inputs and forms","\u002Fguide\u002Finputs-and-forms","2.guide\u002F02.inputs-and-forms","i-lucide-text-cursor-input",{"title":43,"path":44,"stem":45,"icon":46},"Scrolling and viewports","\u002Fguide\u002Fscrolling","2.guide\u002F03.scrolling","i-lucide-scroll-text",{"title":48,"path":49,"stem":50,"icon":51},"Overlays and layers","\u002Fguide\u002Foverlays","2.guide\u002F04.overlays","i-lucide-layers",{"title":53,"path":54,"stem":55,"icon":56},"Styles and theme","\u002Fguide\u002Fstyles","2.guide\u002F05.styles","i-lucide-palette",{"title":58,"path":59,"stem":60,"icon":61},"Composables","\u002Fguide\u002Fcomposables","2.guide\u002F06.composables","i-lucide-puzzle",{"title":63,"path":64,"stem":65,"icon":66},"Widgets","\u002Fguide\u002Fwidgets","2.guide\u002F07.widgets","i-lucide-blocks",{"title":68,"path":69,"stem":70,"icon":71},"The assistant","\u002Fguide\u002Fassistant","2.guide\u002F08.assistant","i-lucide-message-square",{"title":73,"path":74,"stem":75,"icon":76},"The same app on the web","\u002Fguide\u002Fweb","2.guide\u002F09.web","i-lucide-globe",{"title":78,"path":79,"stem":80,"icon":24},"Testing","\u002Fguide\u002Ftesting","2.guide\u002F10.testing",{"title":82,"path":83,"stem":84,"icon":85},"Running and packaging","\u002Fguide\u002Fpackaging","2.guide\u002F11.packaging","i-lucide-package",{"title":87,"path":88,"stem":89,"icon":90},"The terminal contract","\u002Fguide\u002Fterminal","2.guide\u002F12.terminal","i-lucide-square-terminal",{"title":92,"path":93,"stem":94,"icon":95},"Benchmarks","\u002Fguide\u002Fbenchmarks","2.guide\u002F13.benchmarks","i-lucide-gauge",{"title":97,"icon":98,"path":99,"stem":100,"children":101,"page":25},"AI and agents","i-lucide-bot","\u002Fai","3.ai",[102],{"title":97,"path":103,"stem":104,"icon":98},"\u002Fai\u002Fagents","3.ai\u002F1.agents",{"title":106,"icon":107,"path":108,"stem":109,"children":110},"Decisions","i-lucide-scale","\u002Fdecisions","4.decisions",[111,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198],{"title":112,"path":108,"stem":113,"icon":46},"All decisions","4.decisions\u002Findex",{"title":115,"path":116,"stem":117},"0001. kyo-ui is the DSL","\u002Fdecisions\u002F0001-kyo-ui-is-the-dsl","4.decisions\u002F0001-kyo-ui-is-the-dsl",{"title":119,"path":120,"stem":121},"0002. jatatui renders the cells","\u002Fdecisions\u002F0002-jatatui-renders-the-cells","4.decisions\u002F0002-jatatui-renders-the-cells",{"title":123,"path":124,"stem":125},"0003. Pin Kyo 1.0.0-RC7 and JDK 25","\u002Fdecisions\u002F0003-pin-kyo-rc7-and-jdk-25","4.decisions\u002F0003-pin-kyo-rc7-and-jdk-25",{"title":127,"path":128,"stem":129},"0004. Public Kyo APIs only","\u002Fdecisions\u002F0004-public-kyo-apis-only","4.decisions\u002F0004-public-kyo-apis-only",{"title":131,"path":132,"stem":133},"0005. A SOFT frame contract and an own watcher loop","\u002Fdecisions\u002F0005-soft-frame-contract-and-own-watcher-loop","4.decisions\u002F0005-soft-frame-contract-and-own-watcher-loop",{"title":135,"path":136,"stem":137},"0006. Purity: edge files, lint and a pure painter","\u002Fdecisions\u002F0006-purity-edge-files-and-lint","4.decisions\u002F0006-purity-edge-files-and-lint",{"title":139,"path":140,"stem":141},"0007. Compiler flags from sbt-tpolecat","\u002Fdecisions\u002F0007-compiler-flags-from-sbt-tpolecat","4.decisions\u002F0007-compiler-flags-from-sbt-tpolecat",{"title":143,"path":144,"stem":145},"0008. The artifact split: runner, app, testkit and core","\u002Fdecisions\u002F0008-artifact-split-runner-app-testkit-core","4.decisions\u002F0008-artifact-split-runner-app-testkit-core",{"title":147,"path":148,"stem":149},"0009. tui4s-use and tui4s-widgets, cross-built","\u002Fdecisions\u002F0009-use-and-widgets-cross-built","4.decisions\u002F0009-use-and-widgets-cross-built",{"title":151,"path":152,"stem":153},"0010. The flagship assistant is the blueprint of a real app","\u002Fdecisions\u002F0010-the-flagship-assistant-as-blueprint","4.decisions\u002F0010-the-flagship-assistant-as-blueprint",{"title":155,"path":156,"stem":157},"0011. The web target: a standalone Scala.js app and one theme","\u002Fdecisions\u002F0011-web-target-standalone-scalajs-and-one-theme","4.decisions\u002F0011-web-target-standalone-scalajs-and-one-theme",{"title":159,"path":160,"stem":161},"0012. The documentation is example-first","\u002Fdecisions\u002F0012-documentation-is-example-first","4.decisions\u002F0012-documentation-is-example-first",{"title":163,"path":164,"stem":165},"0013. Benchmarks in the repository, with their own build","\u002Fdecisions\u002F0013-benchmarks-in-repo-with-own-build","4.decisions\u002F0013-benchmarks-in-repo-with-own-build",{"title":167,"path":168,"stem":169},"0014. Release per module, by tag, as 0.1.0-RC1","\u002Fdecisions\u002F0014-release-per-module-tags-and-rc1","4.decisions\u002F0014-release-per-module-tags-and-rc1",{"title":171,"path":172,"stem":173},"0015. Packaging: the AOT cache in the start scripts, native-image as an option","\u002Fdecisions\u002F0015-packaging-aot-cache-and-native-image","4.decisions\u002F0015-packaging-aot-cache-and-native-image",{"title":175,"path":176,"stem":177},"0016. Process: lean mode and agent roles","\u002Fdecisions\u002F0016-process-lean-mode-and-agent-roles","4.decisions\u002F0016-process-lean-mode-and-agent-roles",{"title":179,"path":180,"stem":181},"0017. Deferred: templates, mouse, the kitty keyboard protocol and Windows","\u002Fdecisions\u002F0017-deferred-templates-mouse-and-kitty","4.decisions\u002F0017-deferred-templates-mouse-and-kitty",{"title":183,"path":184,"stem":185},"0018. pini4s is a vendored Git submodule","\u002Fdecisions\u002F0018-pini4s-as-a-vendored-submodule","4.decisions\u002F0018-pini4s-as-a-vendored-submodule",{"title":187,"path":188,"stem":189},"0019. Upstream issues are drafts that the user posts","\u002Fdecisions\u002F0019-upstream-kyo-issues-as-drafts","4.decisions\u002F0019-upstream-kyo-issues-as-drafts",{"title":191,"path":192,"stem":193},"0020. Release from the Actions form","\u002Fdecisions\u002F0020-release-from-the-actions-form","4.decisions\u002F0020-release-from-the-actions-form",{"title":195,"path":196,"stem":197},"0021. The rulebook is CONTRIBUTING.md","\u002Fdecisions\u002F0021-the-rulebook-is-contributing-md","4.decisions\u002F0021-the-rulebook-is-contributing-md",{"title":199,"path":200,"stem":201},"0022. The logo is text","\u002Fdecisions\u002F0022-the-logo-is-text","4.decisions\u002F0022-the-logo-is-text",{"title":203,"icon":204,"path":205,"stem":206,"children":207,"page":25},"Project","i-lucide-compass","\u002Fproject","5.project",[208,213,218],{"title":209,"path":210,"stem":211,"icon":212},"Roadmap","\u002Fproject\u002Froadmap","5.project\u002F1.roadmap","i-lucide-map",{"title":214,"path":215,"stem":216,"icon":217},"Contributing","\u002Fproject\u002Fcontributing","5.project\u002F2.contributing","i-lucide-git-pull-request",{"title":219,"path":220,"stem":221,"icon":222},"Security","\u002Fproject\u002Fsecurity","5.project\u002F3.security","i-lucide-shield",{"id":224,"title":127,"body":225,"description":505,"extension":506,"links":507,"meta":508,"navigation":509,"path":128,"seo":510,"stem":129,"__hash__":511},"docs\u002F4.decisions\u002F0004-public-kyo-apis-only.md",{"type":226,"value":227,"toc":494},"minimark",[228,233,237,241,244,248,313,317,401,405,439,443,477,481],[229,230,232],"h2",{"id":231},"status","Status",[234,235,236],"p",{},"Accepted",[229,238,240],{"id":239},"date","Date",[234,242,243],{},"2026-10-13 (the rule of C3, review item RR N9). The rule grew with L1b on 2026-10-19.",[229,245,247],{"id":246},"context","Context",[249,250,251,268,282,293,304],"ul",{},[252,253,254,255,259,260,263,264,267],"li",{},"kyo-ui keeps its own runner rules private. The key dispatch and the region walk are in ",[256,257,258],"code",{},"kyo.internal",", and the type ",[256,261,262],{},"Attrs"," of the element attributes is ",[256,265,266],{},"private[kyo]",".",[252,269,270,271,273,274,277,278,281],{},"The compiler rejects a direct call to a ",[256,272,266],{}," member from package ",[256,275,276],{},"tui4s",". Two ways around it exist: a source file in package ",[256,279,280],{},"kyo",", or reflection.",[252,283,284,285,288,289,292],{},"The prototype runner copied about 400 lines of these rules (",[256,286,287],{},"Dispatch"," 242 lines, ",[256,290,291],{},"Mount"," 181 lines at the time).",[252,294,295,296,299,300,303],{},"The kyo-ui AST is sealed, so tui4s cannot add its own node types. A component node is a kyo-ui ",[256,297,298],{},"Reactive"," whose signal is in a global weak registry (",[256,301,302],{},"internal.ComponentSpec",").",[252,305,306,309,310,312],{},[256,307,308],{},"UI.scrollIntoView"," reaches only a ",[256,311,266],{}," sink. Under tui4s it does nothing.",[229,314,316],{"id":315},"decision","Decision",[249,318,319,328,337,348,386],{},[252,320,321,322,324,325,327],{},"The runner uses only public Kyo and kyo-ui APIs. It calls no ",[256,323,266],{}," member, has no source file in package ",[256,326,280],{},", and uses no reflection.",[252,329,330,331,334,335,267],{},"It reads the attributes through the public member ",[256,332,333],{},"Element.attrs"," and never names the type ",[256,336,262],{},[252,338,339,340,343,344,347],{},"Where kyo-ui keeps a rule private, the runner copies its semantics (",[256,341,342],{},"internal.Dispatch",", ",[256,345,346],{},"internal.Mount",") and tests them.",[252,349,350,351,354,355,343,358,361,362,343,365,343,368,371,372,375,376,371,379,382,383,267],{},"The surface guard (",[256,352,353],{},"kyo-ui-surface.txt",", a tasty-query test) pins each member that the runner reads. For L1b it also pins ",[256,356,357],{},"Attrs.focusRestore",[256,359,360],{},"Attrs.cssClasses",", the cases of ",[256,363,364],{},"Position",[256,366,367],{},"Display",[256,369,370],{},"FlexWrap"," and ",[256,373,374],{},"Stylesheet.Entry",", and the CSS of ",[256,377,378],{},"position",[256,380,381],{},"display"," in kyo-ui's ",[256,384,385],{},"CssStyleRenderer",[252,387,388,389,392,393,396,397,303],{},"Where a private rule cannot be copied (",[256,390,391],{},"scrollIntoView","), tui4s implements the browser rule itself (follow-focus, ",[256,394,395],{},"aria-activedescendant",") and writes an upstream draft (",[398,399,400],"a",{"href":188},"ADR 0019",[229,402,404],{"id":403},"alternatives-considered","Alternatives considered",[249,406,407,416,429],{},[252,408,409,415],{},[410,411,412,413,267],"strong",{},"A source file in package ",[256,414,280],{}," It compiles. Rejected: \"not an option for a library that uses only public APIs\" (the scroll-into-view draft). The notes give no other reason.",[252,417,418,421,422,425,426,303],{},[410,419,420],{},"Reflection."," Rejected by the same rule. Spike S1 also measured a reflection probe for the settle. Under load (3 JVMs on 2 CPUs) it gave 5.58 split frames per 10 000 events with the Kyo scheduler values, and 8 of 10 test runs passed. The public ",[256,423,424],{},"Scheduler.status()"," probe passed 10 of 10 (",[398,427,428],{"href":132},"ADR 0005",[252,430,431,434,435,438],{},[410,432,433],{},"A runner SPI upstream first"," (the draft \"a synchronous change notice on ",[256,436,437],{},"Signal","\", 2026-10-03). Not posted. tui4s does not wait for it; the draft stays a request.",[229,440,442],{"id":441},"consequences","Consequences",[249,444,445,451,454,457,466],{},[252,446,447,448,303],{},"Good: a Kyo bump cannot break tui4s silently through a private member. The guard shows each change of a pinned member (",[398,449,450],{"href":124},"ADR 0003",[252,452,453],{},"Good: tui4s is an example of a third-party kyo-ui backend that uses only the public surface.",[252,455,456],{},"Bad: the copied rules can drift from kyo-ui. The guard reduces this risk but does not remove it.",[252,458,459,460,462,463,465],{},"Bad: ",[256,461,308],{}," is a no-op in the terminal, with no error. An app uses the focus or ",[256,464,395],{}," instead.",[252,467,468,469,472,473,476],{},"Note: ",[256,470,471],{},"experiments\u002Fui-state\u002Fframe"," has a diagnostic fixture in package ",[256,474,475],{},"kyo.framespike",". It is not part of a published module.",[229,478,480],{"id":479},"references","References",[249,482,483,486,491],{},[252,484,485],{},"Review item RR N9 (runner report); the C3 rule; L1b (2026-10-19).",[252,487,488,489,303],{},"Upstream drafts: kyo-ui scroll-into-view; kyo-ui change notice (",[398,490,400],{"href":188},[252,492,493],{},"CONTRIBUTING.md: \"UI architecture and API design\" (\"Use only Kyo's public APIs\"); \"Rules for code\" (the RR N9 item). ",{"title":495,"searchDepth":496,"depth":496,"links":497},"",2,[498,499,500,501,502,503,504],{"id":231,"depth":496,"text":232},{"id":239,"depth":496,"text":240},{"id":246,"depth":496,"text":247},{"id":315,"depth":496,"text":316},{"id":403,"depth":496,"text":404},{"id":441,"depth":496,"text":442},{"id":479,"depth":496,"text":480},"The runner calls no private[kyo] member and uses no reflection; where kyo-ui keeps a rule private, the runner copies its semantics and the surface guard pins what it reads.","md",null,{},true,{"title":127,"description":505},"Q6qzT1ufr2XSlKJLboVCXOpBksuIjGMYJdMO-b-HABc",[513,515],{"title":123,"path":124,"stem":125,"description":514,"children":-1},"Kyo and kyo-ui stay at 1.0.0-RC7 for the first release, on JDK 25 and Scala 3.9.0, and a tasty-query surface guard pins the kyo-ui members that the runner reads.",{"title":131,"path":132,"stem":133,"description":516,"children":-1},"One frame per event with all its consequences, 0 split frames with no load and at most 1 per 10 000 under load; the runner watches signals with its own loop and a repair tick because of two Kyo RC7 Signal bugs.",1792528755944]