Skip to content

Commit ac8fe9e

Browse files
committed
Split render gate by execution phase
Separate browser scheme lifecycle, probe readings, finding presentation, version retry policy, preview servers, and command orchestration. Point callers at their concrete owner while preserving every gate definition and binding.
1 parent 5689178 commit ac8fe9e

26 files changed

Lines changed: 943 additions & 912 deletions

‎plugins/leaf/skills/leaf/CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,7 @@ A local browser check is required after changing `leaf.js`, a widget module, the
22572257
registry, or the theme.
22582258

22592259
The named JavaScript exports in `leaf/render-checks/index.js`, invoked by
2260-
`leaf/render_checks.py` and composed by `leaf/render_gate.py`, each answer one failure
2260+
`leaf/render_checks.py` and composed by `leaf/render_gate/`, each answer one failure
22612261
class. That facade is `leaf/render-checks/index.js`; its directory groups runtime,
22622262
reachability, layout, replay, word, widget-contract, and framing probe owners. The
22632263
served graph imports the public widget API statically, so the JavaScript parser and

‎plugins/leaf/skills/leaf/scripts/CLAUDE.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The main owners are:
2828
- `vendoring`: page initialization, layer transitions, and atomic installation;
2929
- `schema`, `structure`, `styles`, and `validation/`: authored-page gates;
3030
- `passages`: the file-side text reading and anchor capture;
31-
- `render_checks`, `render_gate`, and `exporting`: browser probes, validation,
31+
- `render_checks`, `render_gate/`, and `exporting`: browser probes, validation,
3232
and standalone export;
3333
- `data`, `media`, and `publishing`: page-bound inputs and deployment outputs.
3434

@@ -69,6 +69,11 @@ The registry is the common contract with the browser. Server-side event gates,
6969
state folds, catalog output, package checks, and markup validation must consume
7070
its declarations without a widget-name list.
7171

72+
Within `render_gate/`, `scheme` owns one browser/color lifecycle, `readings`
73+
owns raw probe results, `reporting` owns human findings, `version` owns retry
74+
policy, `preview` owns ephemeral servers, and `command` owns the CLI boundary.
75+
Import the owner directly; the package initializer is only a marker.
76+
7277
Within `validation/`, `markup` owns shared document structure rules, `instances`
7378
owns registry-declared instance rules, `admission` owns incoming message markup,
7479
`compatibility` owns layer changes against the standing log, and `transitions`

‎plugins/leaf/skills/leaf/scripts/leaf/checking.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def cmd_check(
551551
for line in result.advice:
552552
print(f" · {line}")
553553
if render:
554-
from leaf.render_gate import render_check
554+
from leaf.render_gate.command import render_check
555555

556556
revisions = list_revisions(page_dir)
557557
active = revisions[-1] if revisions else 0

‎plugins/leaf/skills/leaf/scripts/leaf/exporting.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from leaf.event_log import read_events
1010
from leaf.files import published_versions, version_name
1111
from leaf.render_checks import RENDER_VIEWPORT, evaluate_probe, wait_for_probe
12-
from leaf.render_gate import preview_server
12+
from leaf.render_gate.preview import preview_server
1313
from leaf.schema import _DIR_FILES, MEDIA_DIR, MEDIA_TYPES
1414
from leaf.structure import parse_structure
1515

0 commit comments

Comments
 (0)