Skip to content

feat(ui): migrate GUI from AffineScript to Ephapax/Gossamer (#177 sca… - #179

Merged
hyperpolymath merged 2 commits into
mainfrom
claude/gossamer-ephapax-gui
Apr 22, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
claude/gossamer-ephapax-gui

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

…ffold)

Replaces the single-file AffineScript GUI at src/ui/tea/ with a Gossamer-shaped Ephapax module set under src/ui/gossamer/. Behaviour of the TEA loop is preserved; the change is in the language (dyadic Ephapax instead of affine-only AffineScript), the host framework target (Gossamer instead of bare WASM + JS), and the dashboard surface (PanLL panel instead of standalone HTML).

What this lands

  • src/ui/gossamer/hypatia_gui.eph (92 LOC) — TEA core. Direct port of hypatia_gui.affine: Model, Msg, hypatia_init/update/view/subs. Department enum → data Department; Msg enum → data Msg; struct Model → type Model = { ... }; @linear param attrs moved to the caller's let! binding per Ephapax ADR-002.

  • src/ui/gossamer/bridge.eph (100 LOC) — Gossamer host integration skeleton. Declares the window + IPC handle types we expect from Gossamer, plus a @tail_recursive TEA driver loop that consumes and re-produces (window, channel, model) on each iteration — linearity enforced by let! on every handle rebind. Burble session hooks + wire-format decoder are explicit TODO stubs pending the real APIs.

  • src/ui/gossamer/panel.manifest.toml — PanLL manifest skeleton. Field names are placeholders pending the real PanLL schema; see the file header for the caveat.

  • src/ui/gossamer/loader.js — JS-side wasm loader. Replaces src/ui/tea/hypatia_tea.js. Export surface (hypatia_init / update / view / subs) is unchanged because it's ABI-level; the wasi_snapshot_preview1 stub is flagged as "replace with Gossamer host imports" before the first real load.

  • src/ui/gossamer/README.adoc — migration status, what's not done, local build instructions for when the toolchain lands.

  • src/ui/public/index.html:88 — updated to import from ../gossamer/loader.js instead of ../tea/hypatia_tea.js.

  • .github/workflows/build-gossamer-gui.yml — scaffold workflow. Validates source presence; prints a dry-run notice because the eph compiler isn't available as a GitHub Action yet. The real eph build invocation is in a TODO comment block ready to be enabled when setup-eph exists.

What this REMOVES

  • src/ui/tea/hypatia_gui.affine — superseded by hypatia_gui.eph. Content preserved in git history (git show main:src/ui/tea/ hypatia_gui.affine).
  • src/ui/tea/hypatia_tea.js — superseded by gossamer/loader.js.

The src/ui/tea/ directory is now empty and removed from the tree.

What's EXPLICITLY NOT DONE (tracked in #177)

  • Ephapax toolchain not yet installable in CI. Until setup-eph or equivalent exists, the .wasm artifact has to be built locally per src/ui/gossamer/README.adoc.

  • Burble session integration is a stub — real burble module imports need to land in bridge.eph once burble's session API is visible to this repo.

  • Wire format for Msg decode is unchosen (JSON / Cap'n Proto / FlatBuffers). decode_msg in bridge.eph is a placeholder that always returns PopState — picking a wire format is a prerequisite to shipping.

  • PanLL manifest field names are unverified against the real schema (we don't have the panll repo in scope).

  • Nothing has been compiled. Every .eph file in this commit is UNTESTED syntactically because no Ephapax toolchain was available to the drafter. A developer with eph installed locally must eph build src/ui/gossamer/bridge.eph and fix any errors before merging or in a follow-up PR.

Rollback

If the port turns out to be wrong, git revert this commit restores the AffineScript tree exactly. The content of the old .affine and .js files is preserved in history.

Related: #177

…ffold)

Replaces the single-file AffineScript GUI at src/ui/tea/ with a
Gossamer-shaped Ephapax module set under src/ui/gossamer/. Behaviour
of the TEA loop is preserved; the change is in the language (dyadic
Ephapax instead of affine-only AffineScript), the host framework
target (Gossamer instead of bare WASM + JS), and the dashboard
surface (PanLL panel instead of standalone HTML).

## What this lands

  * src/ui/gossamer/hypatia_gui.eph (92 LOC) — TEA core. Direct port
    of hypatia_gui.affine: Model, Msg, hypatia_init/update/view/subs.
    Department enum → `data Department`; Msg enum → `data Msg`;
    struct Model → `type Model = { ... }`; `@linear` param attrs
    moved to the caller's `let!` binding per Ephapax ADR-002.

  * src/ui/gossamer/bridge.eph (100 LOC) — Gossamer host integration
    skeleton. Declares the window + IPC handle types we expect from
    Gossamer, plus a `@tail_recursive` TEA driver loop that consumes
    and re-produces (window, channel, model) on each iteration —
    linearity enforced by `let!` on every handle rebind. Burble
    session hooks + wire-format decoder are explicit TODO stubs
    pending the real APIs.

  * src/ui/gossamer/panel.manifest.toml — PanLL manifest skeleton.
    Field names are placeholders pending the real PanLL schema; see
    the file header for the caveat.

  * src/ui/gossamer/loader.js — JS-side wasm loader. Replaces
    src/ui/tea/hypatia_tea.js. Export surface (hypatia_init / update
    / view / subs) is unchanged because it's ABI-level; the
    wasi_snapshot_preview1 stub is flagged as "replace with Gossamer
    host imports" before the first real load.

  * src/ui/gossamer/README.adoc — migration status, what's not done,
    local build instructions for when the toolchain lands.

  * src/ui/public/index.html:88 — updated to import from
    ../gossamer/loader.js instead of ../tea/hypatia_tea.js.

  * .github/workflows/build-gossamer-gui.yml — scaffold workflow.
    Validates source presence; prints a dry-run notice because the
    `eph` compiler isn't available as a GitHub Action yet. The real
    `eph build` invocation is in a TODO comment block ready to be
    enabled when setup-eph exists.

## What this REMOVES

  * src/ui/tea/hypatia_gui.affine — superseded by hypatia_gui.eph.
    Content preserved in git history (git show main:src/ui/tea/
    hypatia_gui.affine).
  * src/ui/tea/hypatia_tea.js — superseded by gossamer/loader.js.

The src/ui/tea/ directory is now empty and removed from the tree.

## What's EXPLICITLY NOT DONE (tracked in #177)

  * Ephapax toolchain not yet installable in CI. Until setup-eph or
    equivalent exists, the .wasm artifact has to be built locally
    per src/ui/gossamer/README.adoc.

  * Burble session integration is a stub — real burble module
    imports need to land in bridge.eph once burble's session API is
    visible to this repo.

  * Wire format for Msg decode is unchosen (JSON / Cap'n Proto /
    FlatBuffers). `decode_msg` in bridge.eph is a placeholder that
    always returns PopState — picking a wire format is a prerequisite
    to shipping.

  * PanLL manifest field names are unverified against the real
    schema (we don't have the panll repo in scope).

  * Nothing has been compiled. Every .eph file in this commit is
    UNTESTED syntactically because no Ephapax toolchain was
    available to the drafter. A developer with `eph` installed
    locally must `eph build src/ui/gossamer/bridge.eph` and fix any
    errors before merging or in a follow-up PR.

## Rollback

If the port turns out to be wrong, `git revert` this commit restores
the AffineScript tree exactly. The content of the old .affine and
.js files is preserved in history.

Related: #177
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@hyperpolymath
hyperpolymath merged commit 3d6eb3b into main Apr 22, 2026
18 of 26 checks passed
@hyperpolymath
hyperpolymath deleted the claude/gossamer-ephapax-gui branch April 22, 2026 03:22
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