Skip to content

Join temporary preview servers through cleanup - #2683

Merged
max-sixty merged 1 commit into
mainfrom
codex/guidance-preview-producer
Oct 12, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex/guidance-preview-producer

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Temporary comparison servers could be killed after an arbitrary ten-second shutdown deadline, before their active requests and sample cleanup finished. Join the owned server after requesting termination, so a preview's scratch page is reused only after cleanup completes. Keep its separate process session so a terminal interrupt reaches the child through the launcher once.

Independent process-lifetime review checked signal forwarding and the request cleanup owner. Three existing real-server controls pass for delayed startup, an active request, and an idle connection; pinned Ruff checks pass.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit aa93cc7 into main Oct 12, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/guidance-preview-producer branch October 12, 2026 22:50
max-sixty added a commit that referenced this pull request Oct 13, 2026
A reply can carry a widget introduced after the page a reader has
pinned, or use a different meaning of an existing widget. Previously,
every pinned page had to accept that markup and one globally registered
implementation rendered all revisions. Each page and frozen message now
retains its own widget publication: declarations, constructors, private
modules, styles, initial drawings and recorded command meaning.
Decisions and asks keep their captured meaning while the reader changes
page versions.

The document still runs one current Leaf kernel and one instance of
shared runtime/vendor libraries. Publication-addressed widget resources
and scoped custom-element registries isolate their implementations.
Samples preserve those identities, including generated children; served
pages, captured exports and Worker delivery follow the same resource
ownership. Classic initial drawings remain classic scripts outside the
module graph. Shared reaction chrome follows the viewed document.

Registry-declared widgets now default-export a constructor; Leaf owns
registration. Generated child widgets use `createWidgetElement(owner,
tag, Constructor)`, and `layerFact(owner, name)` reads the owning
publication. All maintained widgets, authoring examples, public
references and callers are converted together. Removing the old
registration wrapper outdents class bodies by two spaces and accounts
for most raw changed lines; the loader and all maintained widget callers
move to this registration contract together.

Independent survey fixes landed first in
[#2672](#2672) (preview producer),
[#2673](#2673) (preparation
lifetime), [#2679](#2679)
(deferred presence),
[#2680](#2680) (annotation seats),
[#2683](#2683) (preview shutdown),
and [#2685](#2685) (native Git
evidence). This PR now contains only the publication migration and its
integration proof: 228 files, +17,248/−14,329 lines; ignoring whitespace
leaves +5,052/−2,133 (77% of raw changed lines disappear).

Validation exercises different meanings of the same tag, new reply
widgets in old pinned pages, captured actions and undo, generated sample
children, classic initial drawings, private-module/shared-runtime
identity, and historical offline exports with zero external requests.
Independent readers used desktop, keyboard and phone interactions. The
last browser-startup source caac297 served triage comparison against
maina3a139255 adds four code requests and 19,133 code bytes before
presentation; both arms have no browser errors, identical layout shifts
and byte-identical settled screenshots. The current integrated source
passes 108 framework/build checks, 410 runtime tests, the complete lint
gate and focused model/browser contrasts. Earlier source-specific proof
includes 82 Worker and eight eval-runner checks; the integrated 51310e7
build passes all 105 site pages and three public Worker startup checks
against main250595204. Its product/triage add about 4.7 KB with
unchanged code request counts, while the frozen gallery adds 94,125 code
bytes for its captured registry, scoped styles and separately addressed
constructors. Layout shifts are identical in each pair.

Integration with main3a7414145 preserves the upgraded commenting
interface while private history loads. Local comments now paint through
the canonical publication presenter in that waiting phase; existing
early-send, arrival and refusal controls pass. Sample conversation
selection captures intent when its command arrives, before waiting for
child history, and carries it through both canonical destinations. Four
held-child contrasts verify ordinary page/panel selection and
cancellation after newer child typing. Structured admission and source
refusals now preserve canonical finding codes through the
publication-specific callers; seven focused model/process controls cover
captured commands, retired captures, approval and quiet hooks. The
subsequent CLI JSON integration also passes five reply/refusal controls
and the complete-publication atomicity control; the constructor and
browser runtime source is unchanged. The newly merged late-shadow
usability fixture also uses the constructor export; its unchanged
browser assertions pass. The scoped-registry vendoring adapter forwards
native retained-move callbacks; the unchanged composer selection
assertion and five lifecycle/browser contrasts pass.

Broad CI exposed eager page-parser imports in the quiet Codex hook.
Reserved revision identities now stay lightweight, while content reads
use the unchanged canonical capture validator. Quiet/pending hook paths
and seven incomplete/obsolete/duplicate capture controls pass. Ten other
failures were outdated fixtures for complete captures, captured replies,
native Git headers, scoped child creation, split widget styles,
structured findings and the ask API; all eleven original failures pass
locally with their behavioral assertions preserved. Final exact-head
Linux CI passes the broad Python suite, complete website lifecycle
including dormant reads and wake/restore/write, all
bundle/runtime/Worker/eval assertions, pre-commit, website build and
bundled-release Chrome measurement. The fresh automated review approves
80d3708 with no findings. [Final CI
run](https://github.com/max-sixty/leaf/actions/runs/38334710468).

The main risk is a constructor-timing or generated-child caller missed
by the focused contrasts. The scoped-registry dependency and the
across-corpus API cutover are the architectural cost of removing the old
pinned-page vocabulary restriction.

> _This was written by Codex on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants