Merge the deployed Eve surface branch into main
Production has served codex/repixelizer-eve-surface at01dfab9since 2026-06-16. Idunn admits main (Q1 default, docs/idunn-deploy-cut.md Cut 1), so main must carry what runs: the Eve surface, verse_state.py, cultlib_support.py and the msgpack dependency. main's only commit off the merge base,9e8c8f6, removed bilinear_resize and lattice_source_rgba. The branch never touched io.py or metrics.py and calls neither function, so the removals survive the merge without conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
8e4f6492d0
18 changed files with 3059 additions and 31 deletions
83
docs/eve-surface-lowering.md
Normal file
83
docs/eve-surface-lowering.md
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
# Repixelizer Eve Surface Lowering
|
||||
|
||||
Repixelizer now emits a read-only `gamecult.eve.surface.v1` projection for its
|
||||
front page, single-page app workflow, runtime config, auth projection, queue
|
||||
summary, and command intents.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: `repixelizer.gui` still owns hosted config, route policy, queue state,
|
||||
job ownership, uploads, solver execution, and browser assets.
|
||||
- Inputs: `HostedDemoConfig`, `AccessController.public_payload()`, and
|
||||
`GuiJobManager.get_queue_summary()`.
|
||||
- Output: `repixelizer.eve_surface.build_repixelizer_eve_surface()` emits the
|
||||
retained Eve surface tree, style tokens, command descriptors, and renderer
|
||||
comparison notes.
|
||||
- Derived state: `/eve/surface`, `repixelize eve-surface`, and
|
||||
`docs/fixtures/repixelizer.eve-surface.json` are projections. They do not
|
||||
decide queue truth.
|
||||
- Forbidden writers: Eve renderers, Odin, Periwinkle, and fixtures must route
|
||||
commands back through `/api/jobs`, `/api/jobs/{job_id}`, or `/app/`; they do
|
||||
not mutate Repixelizer jobs directly.
|
||||
- Shared paths: browser GUI, CLI fixture export, hosted `/eve/surface`, and
|
||||
provider advertisement all name the same surface and route authority.
|
||||
- Cut line: no parallel status-card service, no renderer-owned queue summary,
|
||||
and no fake native canvas authority until Eve can lower upload and image-edit
|
||||
controls coherently.
|
||||
|
||||
## Published Surface
|
||||
|
||||
Generate the deterministic fixture:
|
||||
|
||||
```powershell
|
||||
repixelize eve-surface --out docs/fixtures/repixelizer.eve-surface.json --updated-at 2026-06-04T00:00:00Z --public-base-url https://repixelizer.gamecult.org
|
||||
```
|
||||
|
||||
The hosted GUI serves the live projection at:
|
||||
|
||||
```text
|
||||
/eve/surface
|
||||
```
|
||||
|
||||
The provider advertisement now marks `repixelizer.operator.surface` as
|
||||
`available` with an HTTP JSON lowering at `/eve/surface`.
|
||||
|
||||
## Retro Style Contract
|
||||
|
||||
The Eve style profile is `repixelizer.retro.pixel`. The tokens intentionally
|
||||
mirror the browser CSS instead of flattening the app into generic dashboard
|
||||
chrome:
|
||||
|
||||
- title font: `Press Start 2P`
|
||||
- body/mono font: `VT323`
|
||||
- dark shell gradient and blue panel surfaces
|
||||
- warm yellow/orange accent tokens
|
||||
- chunky pixel borders, lower border weight, corner accents, scanline overlay,
|
||||
dashed inner frame, and pixelated image sampling
|
||||
|
||||
The browser lowering remains the visual oracle for this pass because it already
|
||||
implements the full upload, solver inspection, comparison canvas, editor, and
|
||||
retro CSS.
|
||||
|
||||
## Periwinkle Comparison
|
||||
|
||||
Periwinkle's Android Kotlin lowerer currently has useful structural support:
|
||||
it connects to the Eve dashboard broker, traverses `surface.root`, renders
|
||||
pane/card/text hierarchies, supports basic metric progress bars, and attaches
|
||||
some command handlers.
|
||||
|
||||
The current gap is style and control parity. `MainActivity.kt` still hard-codes
|
||||
`toneColor`, `textColorFor`, and `textSizeFor`; it does not consume
|
||||
`surface.styles.tokens`, does not load Repixelizer's pixel fonts, does not
|
||||
render image assets from the surface tree, and does not lower the upload picker,
|
||||
comparison canvas, pan/zoom inspection, eyedropper, or paint controls.
|
||||
|
||||
Minimum Periwinkle parity work:
|
||||
|
||||
- map provider style tokens before applying fallback tone/text/font rules
|
||||
- package or cache `Press Start 2P` and `VT323`
|
||||
- render `assetUri` / `assetRef` as pixelated `ImageView` content
|
||||
- lower Repixelizer command controls to Android document picker and job route
|
||||
calls
|
||||
- add native canvas controls only after ownership remains routed through the
|
||||
existing Repixelizer job and editor command paths
|
||||
1249
docs/fixtures/repixelizer.eve-surface.json
Normal file
1249
docs/fixtures/repixelizer.eve-surface.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
],
|
||||
"freshness": {
|
||||
"lastSeenAt": "2026-06-03T00:00:00Z",
|
||||
"lastSeenAt": "2026-06-04T00:00:00Z",
|
||||
"maxAgeMs": 15000,
|
||||
"state": "fresh"
|
||||
},
|
||||
|
|
@ -139,6 +139,7 @@
|
|||
],
|
||||
"styleProfile": "repixelizer.product",
|
||||
"tokenGroups": [
|
||||
"repixelizer.retro.pixel",
|
||||
"repixelizer.comparisonCanvas",
|
||||
"repixelizer.cleanupTool",
|
||||
"repixelizer.queuePanel",
|
||||
|
|
@ -149,13 +150,19 @@
|
|||
"surfaces": [
|
||||
{
|
||||
"audience": "operator",
|
||||
"commands": [],
|
||||
"commands": [
|
||||
"repixelizer.web.open",
|
||||
"repixelizer.job.submit",
|
||||
"repixelizer.job.cancel_own"
|
||||
],
|
||||
"key": "cultmesh://repixelizer/surfaces/operator",
|
||||
"mode": "read-only-first-cut",
|
||||
"schema": "gamecult.eve.surface.v1",
|
||||
"status": "planned",
|
||||
"status": "available",
|
||||
"styleProfile": "repixelizer.retro.pixel",
|
||||
"surfaceId": "repixelizer.operator.surface",
|
||||
"transport": "cultmesh-document"
|
||||
"transport": "http-json",
|
||||
"url": "https://repixelizer.gamecult.org/eve/surface"
|
||||
},
|
||||
{
|
||||
"canonical": false,
|
||||
|
|
@ -167,13 +174,13 @@
|
|||
}
|
||||
],
|
||||
"title": "Repixelizer",
|
||||
"updatedAt": "2026-06-03T00:00:00Z",
|
||||
"updatedAt": "2026-06-04T00:00:00Z",
|
||||
"verseId": "gamecult.local",
|
||||
"witnesses": [
|
||||
{
|
||||
"freshness": {
|
||||
"state": "planned",
|
||||
"updatedAt": "2026-06-03T00:00:00Z"
|
||||
"updatedAt": "2026-06-04T00:00:00Z"
|
||||
},
|
||||
"id": "repixelizer.hosted.witness",
|
||||
"kind": "cc-export-path-reserved",
|
||||
|
|
|
|||
|
|
@ -67,14 +67,16 @@ The reserved witness path is `state/repixelizer.witness.cc`.
|
|||
- schema catalog entries for the witness shapes above
|
||||
- a reserved `.cc` witness entry with bulk image bytes, raw tokens, and private
|
||||
claims marked as redacted
|
||||
- a planned canonical Eve operator surface key:
|
||||
- an available canonical Eve operator surface projection at `/eve/surface`,
|
||||
retaining the canonical CultMesh surface key:
|
||||
`cultmesh://repixelizer/surfaces/operator`
|
||||
- the current browser lowering at `/app/`
|
||||
- route-owned command boundaries for job submit and own-job cancellation
|
||||
- route-owned command boundaries for web open, job submit, and own-job cancellation
|
||||
- nested Verse declarations for session and hosted-operator spaces
|
||||
- runtime projection from `HostedDemoConfig.from_env()` and
|
||||
`AccessController.from_env()`
|
||||
|
||||
This is deliberately read-only. The current queue is still in-process memory.
|
||||
The advertisement only tells discovery organs where truth lives and what shape
|
||||
future durable witnesses must take.
|
||||
The advertisement only tells discovery organs where truth lives, where the
|
||||
read-only Eve projection is served, and what shape future durable witnesses must
|
||||
take.
|
||||
|
|
|
|||
|
|
@ -59,6 +59,29 @@ The first pass should export these as a `.cc` witness from the current
|
|||
single-process manager. A later pass can decide whether the typed store becomes
|
||||
the primary queue owner.
|
||||
|
||||
The next live cut is not speculative anymore. The Python CultLib lane already
|
||||
exists in `E:\Projects\CultLib\packages\cultcache-py`, including `cultcache_py`
|
||||
for `.cc` persistence and `cultnet_py` for CultNet/RUDP transport. Repixelizer
|
||||
needs to wire that runtime into the hosted GUI process so the live owner can:
|
||||
|
||||
- write a daemon-owned `.cc` witness from `GuiJobManager`
|
||||
- publish daemon health to Idunn over CultNet/RUDP
|
||||
- advertise command-boundary and transport-profile state from the runtime
|
||||
- keep `/api/health`, `/api/config`, nginx, and systemd as compatibility
|
||||
witnesses instead of the keepalive truth
|
||||
|
||||
## Current Compatibility Boundary
|
||||
|
||||
Today Yggdrasil still verifies Repixelizer through:
|
||||
|
||||
- `repixelizer-gui.service`
|
||||
- `GET /api/health`
|
||||
- `GET /api/config`
|
||||
- nginx host-routed `/app/` and `/api/health`
|
||||
|
||||
Those checks prove deployment and public routing. They do not satisfy the daemon
|
||||
truth contract Idunn expects.
|
||||
|
||||
## Eve Surface Target
|
||||
|
||||
Repixelizer should publish an Eve GUI/TUI DSL product surface with these panels
|
||||
|
|
@ -87,7 +110,7 @@ tool palettes, and component variants. A Kotlin Android Eve runtime should be
|
|||
able to run the cleanup flow with native controls while preserving the same
|
||||
command boundary and product identity.
|
||||
|
||||
## Read-Only Witness Export
|
||||
## Read-Only Witness And Eve Surface Export
|
||||
|
||||
The first read-only provider advertisement is generated by:
|
||||
|
||||
|
|
@ -96,9 +119,20 @@ repixelize witness-advertisement --out docs/fixtures/repixelizer.provider-advert
|
|||
```
|
||||
|
||||
It names the witness schemas above, reserves `state/repixelizer.witness.cc` for
|
||||
the future CultCache export, and publishes the planned Eve operator surface key
|
||||
without changing queue ownership. The detailed authority map lives in
|
||||
`docs/repixelizer-witness-contract.md`.
|
||||
the future CultCache export, and publishes the available Eve operator surface
|
||||
HTTP projection without changing queue ownership. The detailed authority maps
|
||||
live in `docs/repixelizer-witness-contract.md` and
|
||||
`docs/eve-surface-lowering.md`.
|
||||
|
||||
The read-only Eve surface fixture is generated by:
|
||||
|
||||
```powershell
|
||||
repixelize eve-surface --out docs/fixtures/repixelizer.eve-surface.json
|
||||
```
|
||||
|
||||
The hosted GUI serves the live projection at `/eve/surface`. It reads
|
||||
`HostedDemoConfig`, `AccessController.public_payload()`, and
|
||||
`GuiJobManager.get_queue_summary()`; it does not own queue truth.
|
||||
|
||||
## Migration Order
|
||||
|
||||
|
|
@ -107,15 +141,22 @@ without changing queue ownership. The detailed authority map lives in
|
|||
2. Publish a read-only `gamecult.eve.provider_advertisement.v1` fixture/export
|
||||
that names those shapes and the reserved `.cc` witness path.
|
||||
3. Add a read-only export from the current `gui.py` queue/job manager into a
|
||||
`.cc` witness.
|
||||
4. Publish the witness through CultMesh.
|
||||
5. Add an Eve DSL provider over the witness and existing health/config routes.
|
||||
6. Translate the existing browser GUI style and tool behavior into Eve style
|
||||
daemon-owned `.cc` witness using `cultcache-py`.
|
||||
4. Publish Repixelizer daemon health to Idunn over CultNet/RUDP from the live
|
||||
GUI process using `cultnet_py`, with a dedicated Repixelizer health contract.
|
||||
5. Publish runtime-owned command-boundary and transport-profile state beside
|
||||
the witness so deploy/restart authority is typed instead of implicit ops lore.
|
||||
6. Update the Yggdrasil deploy lane to ship the required CultLib Python package
|
||||
snapshot with the app artifact and install it before the Repixelizer package.
|
||||
7. Publish the witness through CultMesh.
|
||||
8. Add an Eve DSL provider over the witness and existing health/config routes.
|
||||
First read-only HTTP projection is live at `/eve/surface`.
|
||||
9. Translate the existing browser GUI style and tool behavior into Eve style
|
||||
tokens, canvas primitives, and command descriptors.
|
||||
7. Lower the current website from the Eve surface instead of treating it as the
|
||||
10. Lower the current website from the Eve surface instead of treating it as the
|
||||
product UI owner.
|
||||
8. Register the surface with Odin.
|
||||
9. Only after the witness is stable, decide whether queue ownership should move
|
||||
11. Register the surface with Odin.
|
||||
12. Only after the witness is stable, decide whether queue ownership should move
|
||||
from in-process memory into the typed store.
|
||||
|
||||
The invariant: Heimdall owns shared auth; Repixelizer owns jobs and artifacts.
|
||||
|
|
|
|||
Loading…
Reference in a new issue