@tarve/core 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/PERFORMANCE.md +82 -0
  3. package/README.md +549 -0
  4. package/RELEASE.md +72 -0
  5. package/dist/npm/build.js +259 -0
  6. package/dist/npm/cli.js +285 -0
  7. package/dist/npm/embedded-assets.js +52 -0
  8. package/dist/npm/index.js +7077 -0
  9. package/dist/npm/jsx-dev-runtime.js +17 -0
  10. package/dist/npm/jsx-runtime.js +27 -0
  11. package/dist/npm/native-runtime.json +7 -0
  12. package/dist/npm/protocol.js +8 -0
  13. package/dist/npm/runtime.js +98 -0
  14. package/dist/types/core/build.d.ts +13 -0
  15. package/dist/types/core/cli.d.ts +2 -0
  16. package/dist/types/core/native-runtime.d.ts +22 -0
  17. package/dist/types/core/src/advanced-controls.d.ts +120 -0
  18. package/dist/types/core/src/app.d.ts +59 -0
  19. package/dist/types/core/src/assets.d.ts +4 -0
  20. package/dist/types/core/src/bridge/binding.d.ts +34 -0
  21. package/dist/types/core/src/bridge/index.d.ts +41 -0
  22. package/dist/types/core/src/bridge/runtime.d.ts +4 -0
  23. package/dist/types/core/src/chat-controls.d.ts +40 -0
  24. package/dist/types/core/src/component-adapter.d.ts +11 -0
  25. package/dist/types/core/src/components/button.d.ts +12 -0
  26. package/dist/types/core/src/components/icon.d.ts +13 -0
  27. package/dist/types/core/src/components/image.d.ts +43 -0
  28. package/dist/types/core/src/components/input.d.ts +22 -0
  29. package/dist/types/core/src/components/layout.d.ts +22 -0
  30. package/dist/types/core/src/components/link.d.ts +10 -0
  31. package/dist/types/core/src/components/modal.d.ts +15 -0
  32. package/dist/types/core/src/components/pressable.d.ts +19 -0
  33. package/dist/types/core/src/components/rich-content.d.ts +45 -0
  34. package/dist/types/core/src/components/scroll.d.ts +12 -0
  35. package/dist/types/core/src/components/svg.d.ts +61 -0
  36. package/dist/types/core/src/components/text.d.ts +9 -0
  37. package/dist/types/core/src/components/titlebar.d.ts +10 -0
  38. package/dist/types/core/src/components/window.d.ts +20 -0
  39. package/dist/types/core/src/components.d.ts +34 -0
  40. package/dist/types/core/src/controls.d.ts +84 -0
  41. package/dist/types/core/src/desktop-controls.d.ts +62 -0
  42. package/dist/types/core/src/dev-overlay.d.ts +9 -0
  43. package/dist/types/core/src/embedded-assets.d.ts +4 -0
  44. package/dist/types/core/src/extra-controls.d.ts +182 -0
  45. package/dist/types/core/src/form-controls.d.ts +118 -0
  46. package/dist/types/core/src/hotkeys.d.ts +3 -0
  47. package/dist/types/core/src/index.d.ts +36 -0
  48. package/dist/types/core/src/intrinsic-style.d.ts +3 -0
  49. package/dist/types/core/src/jsx-dev-runtime.d.ts +2 -0
  50. package/dist/types/core/src/jsx-runtime.d.ts +279 -0
  51. package/dist/types/core/src/list.d.ts +10 -0
  52. package/dist/types/core/src/motion.d.ts +19 -0
  53. package/dist/types/core/src/popups.d.ts +115 -0
  54. package/dist/types/core/src/reconciler.d.ts +54 -0
  55. package/dist/types/core/src/render-scope.d.ts +3 -0
  56. package/dist/types/core/src/select.d.ts +17 -0
  57. package/dist/types/core/src/style.d.ts +7 -0
  58. package/dist/types/core/src/test-renderer.d.ts +84 -0
  59. package/dist/types/core/src/text-search.d.ts +37 -0
  60. package/dist/types/core/src/theme.d.ts +91 -0
  61. package/dist/types/core/src/virtual-list.d.ts +31 -0
  62. package/dist/types/core/src/visual-testing.d.ts +24 -0
  63. package/dist/types/core/targets.d.ts +16 -0
  64. package/dist/types/protocol/src/index.d.ts +534 -0
  65. package/native/linux-x64/libtarve_native.so +0 -0
  66. package/native/linux-x64/runtime.json +10 -0
  67. package/native/win32-x64/runtime.json +10 -0
  68. package/native/win32-x64/tarve_native.dll +0 -0
  69. package/package.json +131 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/PERFORMANCE.md ADDED
@@ -0,0 +1,82 @@
1
+ # Performance measurements
2
+
3
+ Run `bun run build` followed by `bun run bench`. The benchmark uses the host Rust release library, opens a real GPU-backed window, and writes `work/benchmark.json`.
4
+
5
+ ## Current measurement
6
+
7
+ Windows x64, Bun 1.4.1, AMD Ryzen 7 9800X3D. The workload contains 2,000 rows / 6,005 native nodes; 67 nodes are visible. Each row contains text and an interactive button. The benchmark discards five warm-up samples and collects 60 samples for each operation.
8
+
9
+ | Operation | Original full-tree update | Current property patch |
10
+ | --- | ---: | ---: |
11
+ | State update, median | 35.92 ms | 11.96 ms |
12
+ | State update, p95 | 42.41 ms | 14.51 ms |
13
+ | Scroll, median | 1.13 ms | 0.92 ms |
14
+ | Scroll, p95 | 1.97 ms | 1.09 ms |
15
+ | New frames while idle | 0 | 0 |
16
+
17
+ These are input/update dispatch to native frame-notification times, including Bun/FFI and presentation scheduling. They are not photon latency, universal FPS guarantees, or results from other hardware. Recent update runs on the same machine have ranged from 11.79 to 15.37 ms median, so the current value is one run rather than a fixed performance promise. In that run, TSX tree construction took 5.78 ms median and diffing took 1.54 ms median. The first window took 562 ms. The earlier patch implementation once measured 8.57 ms median; repeatability across machines remains unverified.
18
+
19
+ A previous fixed-height `VirtualList` run with 50,000 records kept at most 97 native layout nodes during initial view, mid-list scroll and bottom-list interaction in the real-window smoke test. The current example uses 500 records and taller padded rows. Native scroll events trigger updates for virtual lists; ordinary `Scroll` elements paint directly without rebuilding the TSX tree. A virtual list waits for the updated visible rows before scheduling its next frame.
20
+
21
+ ## Memory
22
+
23
+ ### Native Windows D3D11 GPU renderer
24
+
25
+ Windows x64, Bun 1.4.2, Ryzen 7 9800X3D, Counter 620x520, usando o mesmo pacote release local para os três modos. Cada processo estabilizou por 4 s; CPU foi amostrada por mais 3 s. A linha D3D11 é o caminho normal de `renderer: "gpu"`/`"auto"` no Windows sem `WGPU_BACKEND`; a linha DX12 força o renderer legado com `WGPU_BACKEND=dx12`.
26
+
27
+ | Renderer | Working set | Private bytes | Threads | Handles | CPU idle (um core) |
28
+ | --- | ---: | ---: | ---: | ---: | ---: |
29
+ | **D3D11/DXGI nativo** | **82.2 MB** | 309.7 MB | 79 | 596 | **0.52%** |
30
+ | Vello/WGPU DX12 legado | 172.1 MB | 493.9 MB | 39 | 519 | 1.04% |
31
+ | vello_cpu + softbuffer | 48.1 MB | 139.6 MB | 26 | 270 | 0.00% |
32
+
33
+ Uma execução D3D11 imediatamente anterior mediu 85.4 MB de working set e 0.00% de um core no mesmo Counter, portanto 82.2 MB deve ser tratado como uma amostra e não como promessa fixa. No run comparativo, o processo D3D11 carregou `d3d11.dll` sem `d3d12.dll` nem `vulkan-1.dll`; ao forçar o legado DX12, `d3d12.dll` apareceu e o working set ficou ~90 MB maior.
34
+
35
+ O backend D3D11 renderiza para um target BGRA associado ao flip-model swapchain, usa buffers de vértices/índices pequenos com crescimento sob demanda, atlas R8 de glifos limitado a quatro páginas de 1024x1024, cache de imagens limitado ao display list retido e MSAA 4x quando suportado (fallback 2x/1x). Não há os grandes buffers intermediários do Vello Classic nem o custo-base do `wgpu + D3D12` no caminho padrão do Windows. O renderer legado permanece disponível como fallback se a criação D3D11 falhar e como escape hatch explícito via `WGPU_BACKEND`.
36
+
37
+ No mesmo PC, um probe separado do GPUix 0.10.0 ficou em ~94.3 MB de working set vazio e ~95.8–97.6 MB com a UI de teste. Esses números são apenas contexto local: processos, drivers e workloads diferentes não tornam isso uma garantia de que Tarve sempre usará menos memória.
38
+
39
+ ### Low-memory CPU renderer
40
+
41
+ Windows x64, Bun 1.4.2, Counter 620x520 executado a partir do pacote local no renderer CPU. O backend pode ser selecionado por `createApp(App, { renderer: "cpu" })`; `TARVE_RENDERER=cpu` continua disponível quando o app usa `renderer: "auto"`. A medição abaixo foi feita na revisão anterior do bridge, ainda com polling FFI não bloqueante de 4 ms, após o app estabilizar em idle; portanto ela é um limite histórico conservador e ainda não foi refeita após o wakeup event-driven:
42
+
43
+ | Metric | CPU renderer |
44
+ | --- | ---: |
45
+ | Working set | **46.9 MB** |
46
+ | Private bytes | 134.5 MB |
47
+ | Threads | 24 |
48
+ | CPU idle | **0.39% de um core** (~0.024% do CPU total de 16 threads) |
49
+
50
+ Esse modo mantém o Bun como runtime principal e continua suportando TypeScript/TSX, APIs Bun e pacotes npm. A redução vem de duas mudanças: o pump de eventos não cria mais um segundo Bun Worker, e o renderer `vello_cpu + softbuffer` evita inicializar `wgpu + Vello GPU`. O backend GPU continua disponível e permanece o padrão. Uma configuração explícita em `createApp` tem prioridade sobre `TARVE_RENDERER`; `"auto"` preserva o override por env para desenvolvimento/CI.
51
+
52
+ `JSCallback({ threadsafe: true })` foi retestado no Bun 1.4.2 como wake-only, inclusive com lifetime one-shot e FIFO continuando em `tarve_poll_event()`. Probes mínimos com `Bun.sleep()` não reproduziram o problema histórico, mas isso se mostrou um falso negativo: no app empacotado real, medido externamente pelo Windows (`Get-Process`/tempo de CPU do processo), o callback mantém aproximadamente um core inteiro ocupado em idle. O `Counter` ficou em ~98.9% de um core (~6.18% do CPU total de 16 threads) e o showcase `components` em ~103.7% de um core (~6.48% total). Após repackar exatamente os mesmos apps com o wakeup por named pipe, o `Counter` caiu para ~0.39% de um core (~0.024% total) e o showcase ficou em 0% na mesma janela de medição. Por isso o bridge de produção permanece no named pipe: ele só sinaliza a transição da FIFO de vazia para não vazia, enquanto o payload continua sendo drenado via FFI. Não há polling periódico nem Worker dedicado.
53
+
54
+ Os números abaixo são medições históricas do renderer GPU Vello/WGPU e usam um método diferente (executáveis standalone), portanto não devem ser tratados como comparação A/B direta com a tabela D3D11 atual.
55
+
56
+ Windows x64 measurements after 1.8 s idle, using the standalone release executables and Vulkan:
57
+
58
+ | Example | Working set | Private bytes |
59
+ | --- | ---: | ---: |
60
+ | Counter | ~203 MB | ~537 MB |
61
+ | Basic | ~207–215 MB | ~597 MB |
62
+
63
+ Before requesting wgpu's memory-oriented allocation strategy and limiting Vello shader initialization to one thread, the Counter executable measured about 266 MB working set / 842 MB private bytes. In an isolated Bun process, the old dedicated event Worker added roughly 15–16 MB working set and about 40 MB private bytes. It has since been removed: native events remain in a FIFO queue, a Windows named pipe wakes the Bun event loop only when work arrives, and the main runtime then drains the queue with non-blocking FFI calls.
64
+
65
+ ## Implemented
66
+
67
+ - Stable IDs retain Taffy nodes and layout caches across updates and resizes.
68
+ - The native tree stores each node once, with child IDs instead of recursively duplicated subtrees.
69
+ - Property-only updates send only changed nodes across the bridge. Structural changes use a full replacement while preserving IDs/state.
70
+ - Layout, text and paint invalidation remain separate; hover and scrolling do not recalculate layout.
71
+ - Paint and hit testing discard subtrees outside the current clipping region.
72
+ - Local asset extraction is cached per process. No filesystem reads are required for those assets during subsequent tree updates.
73
+ - Decoded image cache entries are released when the corresponding image nodes leave the retained tree.
74
+ - On Windows, `renderer: "gpu"` uses the native D3D11/DXGI renderer by default: flip-model BGRA swapchain, grow-on-demand geometry buffers, Lyon tessellation, nested stencil clipping, bounded Swash glyph atlases, retained image resources, MSAA and direct DXGI presentation. If D3D11 initialization/recovery fails, Tarve falls back to Vello/WGPU over DX12.
75
+ - The legacy Windows Vello/WGPU path still requests wgpu's memory-oriented allocation strategy and uses one Vello shader-initialization thread. Defining `WGPU_BACKEND` explicitly selects this path for development/diagnostics.
76
+ - `createApp(App, { renderer: "cpu" })` selects a single-threaded `vello_cpu + softbuffer` path that shares the same tree/text/control paint traversal and supports captures, images, clipping and text. `"gpu"` explicitly selects GPU; `"auto"` keeps the GPU default and honors `TARVE_RENDERER` for development/CI overrides.
77
+ - Clean software redraws reuse retained softbuffer pixels when possible, avoiding another full-frame vello_cpu rasterization and RGBA flattening pass when content did not change.
78
+ - The native event loop sleeps when idle. Native events are queued FIFO; a Windows named pipe sends one wake signal when the queue transitions from empty to non-empty, then the Bun main runtime drains it with non-blocking FFI calls. There is no periodic bridge poll, dedicated Bun event Worker or cross-thread JS callback.
79
+
80
+ ## Remaining work
81
+
82
+ Timed scrolling/transitions, complex input/overlays, sustained virtual-list interaction latency and multiple Windows/GPU configurations need their own measurements and regression gates before the overall production-readiness objective is complete.