Add pinned Unity runtime bridge
This commit is contained in:
parent
abcdf7d991
commit
559a6b97fd
11 changed files with 731 additions and 94 deletions
|
|
@ -87,6 +87,7 @@ The landed machine now has:
|
|||
- first auditable Phase 6 fixed-lane coordinator runner through `tools/epiphany_mvp_coordinator.py`, producing coordinator summary, JSONL steps, rendered snapshots, transcript, stderr, and final next-action artifacts while keeping semantic findings review-gated by default
|
||||
- first auditable Phase 6 live-specialist runner through `tools/epiphany_mvp_live_specialist.py`, proving `roleLaunch -> agent_jobs worker -> report_agent_job_result -> roleResult` without manual backend completion
|
||||
- first Phase 6 GUI operator shell under `apps/epiphany-gui`, a Tauri v2 + React console over the existing status bridge, dogfood artifacts, and GUI action artifacts, with durable checkpoint preparation, bounded status/coordinator artifact buttons, fixed modeling/verification/reorient launch and read-back buttons, and explicit review-gated reorient acceptance
|
||||
- first Unity editor/runtime bridge through `tools/epiphany_unity_bridge.py`, `tools/epiphany_unity_bridge_smoke.py`, and the GUI Inspect Unity action, resolving exact project-pinned editors and writing runtime artifacts while refusing wrong or missing versions
|
||||
- live Phase 6 reorientation app-server smoke coverage in `tools/epiphany_phase6_reorient_smoke.py`
|
||||
- live Phase 6 reorient-launch app-server smoke coverage in `tools/epiphany_phase6_reorient_launch_smoke.py`
|
||||
- live Phase 6 MVP status smoke coverage in `tools/epiphany_mvp_status_smoke.py`
|
||||
|
|
@ -124,6 +125,7 @@ These boundaries are more important than the individual method names:
|
|||
- `thread/epiphany/roleResult` is a read-only result projection, not a promotion gate, state writer, scheduler, or hidden continuation trigger.
|
||||
- `thread/epiphany/roleAccept` is a narrow modeling/checkpoint acceptance write, not automatic specialist promotion, a verifier substitute, a broad state editor, or permission for workers to accept their own output.
|
||||
- The GUI may render and steer typed state, but it must not manufacture canonical understanding.
|
||||
- The Unity bridge may inspect and run only the project-pinned editor through explicit bridge commands; agents must not launch PATH/default/legacy Unity directly or substitute nearby Hub versions.
|
||||
- The MVP GUI target is a local Tauri v2 + React operator app over the existing app-server APIs. Tauri owns windowing and local lifecycle; app-server and typed Epiphany state remain authoritative.
|
||||
- The app-server remains a host seam; Epiphany-owned machinery should live in `epiphany-core` where practical.
|
||||
- Qdrant is the preferred persistent semantic backend; BM25 remains the bootstrap/fallback/control path.
|
||||
|
|
@ -160,7 +162,7 @@ and notify typed state. It can.
|
|||
|
||||
The next unknowns are:
|
||||
|
||||
- how to give implementation and verification lanes controlled runtime/editor access without letting workers launch random local tools
|
||||
- how much controlled runtime/editor access the first Unity bridge gives implementation and verification lanes before deeper engine probes need a richer bridge
|
||||
- how the landed watcher-backed invalidation telemetry should be consumed without turning freshness into a secret worker
|
||||
- how far the read-only CRRC recommendation should go before explicit client/operator action takes over
|
||||
- how much narrow coordination is needed so modeling, implementation, verification, and CRRC automation can hand off work without collapsing back into one context
|
||||
|
|
@ -238,14 +240,16 @@ written. The runner now always writes the prompt, reference status, comparison,
|
|||
and manifest honestly, and an explicit `--run-vanilla-reference` pass can spend
|
||||
a real vanilla Codex turn and persist its transcript for comparison.
|
||||
|
||||
The latest Aetheria dogfood pass found the next bigger blocker. The fixed lanes
|
||||
can now catch modeling, verification, stale job, no-diff, and reorientation
|
||||
failures, but the implementation lane cannot prove engine assumptions without a
|
||||
controlled editor/runtime bridge. A worker tried to launch a legacy default
|
||||
Unity editor even though Aetheria pins a Unity 6000 project version. The guard
|
||||
is now to refuse PATH/default/legacy Unity, but the real MVP organ is a bridge
|
||||
that resolves the project-pinned editor, runs explicit batch/test/probe commands,
|
||||
captures logs and artifacts, and feeds those artifacts into evidence.
|
||||
The latest Aetheria dogfood pass found the next bigger blocker, and the first
|
||||
slice is now landed. The fixed lanes can catch modeling, verification, stale
|
||||
job, no-diff, and reorientation failures, but the implementation lane cannot
|
||||
prove engine assumptions by launching random local tools. A worker tried to
|
||||
launch a legacy default Unity editor even though Aetheria pins Unity
|
||||
`6000.1.10f1`. `tools/epiphany_unity_bridge.py` now reads the project pin,
|
||||
resolves only an exact Hub editor, refuses wrong or missing editors, owns the
|
||||
batch/quit/projectPath command wrapper, and writes inspection/command/log
|
||||
artifacts. On this machine Aetheria is correctly blocked: only Unity
|
||||
`6000.4.2f1` is installed.
|
||||
|
||||
## Phase 6 Direction
|
||||
|
||||
|
|
@ -253,8 +257,8 @@ Phase 6 should grow observable harness state outward from the typed spine.
|
|||
|
||||
Useful candidates:
|
||||
|
||||
1. Build a first-class editor/runtime bridge for engine repos. For Unity, read the project-pinned editor version, refuse wrong or missing editors, run only explicit batch/test/probe commands, and write logs/probe output into auditable artifacts.
|
||||
2. Keep dogfood execution agent-run and auditable, then put the fixed-lane coordinator and pre-compaction checkpoint loop in front of the user through the smallest local GUI/operator view over the same status/artifact surfaces.
|
||||
1. Dogfood the first Unity editor/runtime bridge in the implementation lane. The bridge can inspect pins, refuse wrong/missing editors, and run exact-editor batch/probe commands; it still needs real Aetheria use before richer engine probes are justified.
|
||||
2. Keep dogfood execution agent-run and auditable through the fixed-lane coordinator and GUI/operator view over the same status/artifact surfaces.
|
||||
3. Keep accepted worker findings review-gated; do not convert acceptance into automatic promotion of arbitrary worker output.
|
||||
4. Keep pre-compaction intervention narrow: steer once at `shouldPrepareCompaction`, latch the compact handoff only after successful steering, then let explicit checkpointing, compact/resume/reorient, and review gates do their jobs.
|
||||
|
||||
|
|
@ -287,6 +291,7 @@ Initial shape:
|
|||
- refresh status
|
||||
- run status snapshot
|
||||
- run coordinator pass
|
||||
- inspect project-pinned Unity runtime through the bridge
|
||||
- prepare a durable checkpoint for a resumable operator thread
|
||||
- launch fixed modeling/checkpoint role
|
||||
- accept a completed modeling/checkpoint `statePatch` after review
|
||||
|
|
@ -305,11 +310,11 @@ Implementation slices:
|
|||
existing MVP status bridge, render the same data as
|
||||
`tools/epiphany_mvp_status.py`, and provide artifact bundle links. This
|
||||
slice is landed under `apps/epiphany-gui`.
|
||||
2. **Bounded operator actions**: status snapshot, coordinator-plan, durable
|
||||
checkpoint preparation, roleLaunch, roleResult, reorientLaunch,
|
||||
reorientResult, and explicit reorientAccept flows are landed. Review gates
|
||||
remain explicit; the GUI does not auto-promote evidence or continue
|
||||
implementation after semantic findings.
|
||||
2. **Bounded operator actions**: status snapshot, coordinator-plan, Unity
|
||||
runtime inspection, durable checkpoint preparation, roleLaunch, roleResult,
|
||||
reorientLaunch, reorientResult, and explicit reorientAccept flows are
|
||||
landed. Review gates remain explicit; the GUI does not auto-promote
|
||||
evidence or continue implementation after semantic findings.
|
||||
3. **Dogfood launcher**: wrap `tools/epiphany_mvp_dogfood.py` and
|
||||
`tools/epiphany_mvp_coordinator.py` as explicit operator actions that write
|
||||
artifact bundles and stream progress/status into the GUI.
|
||||
|
|
@ -320,6 +325,7 @@ Implementation slices:
|
|||
Verification:
|
||||
|
||||
- Keep the existing CLI smokes as backend guardrails.
|
||||
- Keep `tools/epiphany_unity_bridge_smoke.py` for Unity bridge regressions.
|
||||
- Keep `npm run smoke:visual` for browser-layout regressions and bounded
|
||||
browser-fallback action clicks.
|
||||
- For native GUI changes, run `npm run build`, `cargo fmt --check`,
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ Do not trust this file for the exact live HEAD. Always check git.
|
|||
- A later dogfood attempt exposed another supervision scar: manually launching modeling, reorientation, and verification from the supervisor is not clean dogfood. The coordinator now treats `regatherManually` as fallback only after fixed lanes cannot advance, stops at `reviewModelingResult` for completed unaccepted modeling findings, and the CLI runner's explicit test-only `--auto-review` mode can accept modeling `statePatch` findings before launching verification. Production semantic findings remain review-gated.
|
||||
- The latest dogfood pass fixed concrete harness wounds: stale completed backend jobs now project as terminal, accepted verifier non-pass findings no longer clear implementation, verification coverage accepts modeler source evidence ids as current-model coverage, implementation audits compare pre/post diff hashes instead of treating existing dirt as fresh work, the latest implementation audit status wins, blocked no-diff turns route back through CRRC, stale accepted reorient findings relaunch bounded reorientation when the checkpoint regathers, and accepted reorientation findings now bank resume-ready checkpoints.
|
||||
- The latest audited implementation artifact is `.epiphany-dogfood/aetheria-supervised/gui-actions/continueImplementation-1777548050463576300-28568`: it correctly shows `workspaceChanged: false`, `dirtyWorkspace: true`, `trackedDiffChanged: false`, wrote a no-diff audit, advanced Epiphany state to revision 57, and routed coordinator/CRRC back to `launchReorientWorker` instead of pretending old dirt was progress.
|
||||
- Aetheria dogfood also exposed the next product organ: editor/runtime integration. An implementation worker launched legacy `D:\Unity\Editor\Unity.exe -version` (Unity 5.5.0f3) even though Aetheria pins Unity `6000.1.10f1`; the stray process was killed, and `tools/epiphany_gui_action.py` now tells implementation workers not to launch PATH/default/legacy Unity when the exact pinned editor is unavailable. This is a guardrail, not the real bridge.
|
||||
- The next real MVP organ is a typed editor/runtime bridge for engine repos: resolve the project-pinned editor, refuse wrong or missing versions, run explicit batch/test/probe commands, capture logs/screenshots/probe outputs as artifacts, and feed those artifacts into Epiphany evidence for verification. Do not let implementation agents test assumptions by launching random editors from shell.
|
||||
- Aetheria dogfood exposed and then landed the first editor/runtime bridge. An implementation worker launched legacy `D:\Unity\Editor\Unity.exe -version` (Unity 5.5.0f3) even though Aetheria pins Unity `6000.1.10f1`; the stray process was killed. `tools/epiphany_unity_bridge.py` now resolves the project-pinned Unity editor, refuses wrong/missing versions, owns `-batchmode`, `-quit`, and `-projectPath`, and writes inspection/command/log artifacts. `tools/epiphany_gui_action.py` points implementation workers at that bridge, and the GUI has an Inspect Unity action.
|
||||
- The current Aetheria runtime truth is blocked but legible: the project pins Unity `6000.1.10f1`, this machine currently has Hub editor `6000.4.2f1`, and the bridge wrote `.epiphany-gui/runtime/unity-inspect-1777549218802064800-23832` proving the exact editor is missing. Treat that artifact as the evidence gap until the pinned editor exists.
|
||||
- The GUI parses `implementation-result.json` into artifact metadata, surfaces the latest implementation diff/no-diff outcome, and pauses immediate `Continue Implementation` repeats when the newest artifact is a no-diff implementation audit.
|
||||
- The repo is an Epiphany fork of Codex, not a Codex preset.
|
||||
- `vendor/codex` is tracked directly, not a submodule.
|
||||
|
|
@ -111,6 +111,7 @@ The current spine:
|
|||
- token-count pre-compaction checkpoint intervention for loaded Epiphany turns at the `shouldPrepareCompaction` threshold, with a turn-scoped compact handoff consumed after a successful steer
|
||||
- durable investigation checkpoint packet through typed state, prompt, scene, and context
|
||||
- distilled shared and config-backed specialist prompt doctrine through the base prompt, rendered Epiphany state, modeling/body, verification/soul, reorientation/life, and coordinator/Self surfaces
|
||||
- first Unity runtime bridge through `tools/epiphany_unity_bridge.py`, `tools/epiphany_unity_bridge_smoke.py`, GUI Inspect Unity, runtime artifact listing, and implementation prompt guardrails
|
||||
- live scene app-server smoke through `tools/epiphany_phase6_scene_smoke.py`
|
||||
- live jobs app-server smoke through `tools/epiphany_phase6_jobs_smoke.py`
|
||||
- live freshness app-server smoke through `tools/epiphany_phase6_freshness_smoke.py`
|
||||
|
|
@ -359,19 +360,21 @@ bounded browser-fallback controls. A live bridge probe also proved
|
|||
`prepareCheckpoint` creates a resumable thread and a later process can
|
||||
`readModelingResult` from it.
|
||||
|
||||
The next real move is not more direct Aetheria implementation. The supervised
|
||||
run proved the fixed lanes can catch failures, but engine verification needs a
|
||||
first-class editor/runtime bridge before the agent can test its assumptions.
|
||||
Build that bridge next: pinned Unity resolution, wrong-version refusal, explicit
|
||||
batch/test/probe commands, artifact capture, and evidence ingestion. Read only
|
||||
operator-safe projections; do not open raw worker transcripts, direct worker
|
||||
messages, or `rawResult` payloads unless the user explicitly asks for forensic
|
||||
debugging. Use generated function/API telemetry for call-shape visibility
|
||||
without sungazing. CRRC is not a specialist-agent persona; the reorient-worker
|
||||
it may launch is the specialist. Do not turn the coordinator into a broad hidden
|
||||
dispatcher, arbitrary marketplace, alternate job backend, automatic semantic
|
||||
acceptance path, target-repo implementation worker, direct-thought feed, random
|
||||
editor launcher, or GUI-as-source-of-truth.
|
||||
The next real move is not more direct Aetheria implementation by the supervisor.
|
||||
The first Unity bridge is landed, and it correctly blocks Aetheria runtime
|
||||
execution until Unity `6000.1.10f1` is installed. Resume dogfood through
|
||||
Epiphany's GUI/coordinator/fixed lanes with the bridge in the loop: the
|
||||
implementation lane may inspect the source and may use bridge artifacts as
|
||||
evidence, but it must not launch Unity directly or use the installed
|
||||
`6000.4.2f1` editor as a substitute. Read only operator-safe projections; do
|
||||
not open raw worker transcripts, direct worker messages, or `rawResult`
|
||||
payloads unless the user explicitly asks for forensic debugging. Use generated
|
||||
function/API telemetry for call-shape visibility without sungazing. CRRC is not
|
||||
a specialist-agent persona; the reorient-worker it may launch is the
|
||||
specialist. Do not turn the coordinator into a broad hidden dispatcher,
|
||||
arbitrary marketplace, alternate job backend, automatic semantic acceptance
|
||||
path, target-repo implementation worker, direct-thought feed, random editor
|
||||
launcher, or GUI-as-source-of-truth.
|
||||
|
||||
Live `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`,
|
||||
`thread/epiphany/freshness`, `thread/epiphany/context`,
|
||||
|
|
@ -389,7 +392,7 @@ next organs.
|
|||
- GUI-as-source-of-truth
|
||||
- broad runtime CRRC execution beyond the landed safe-boundary compact, fixed reorient-worker launch, and pre-compaction checkpoint steering actions
|
||||
- Epiphany-owned long-running job execution beyond the current runtime `agent_jobs` seam
|
||||
- first-class editor/runtime bridge for pinned Unity or other engine/tool runtimes
|
||||
- broader editor/runtime bridges beyond the first pinned Unity bridge
|
||||
- broad event stream beyond the landed state update notification
|
||||
|
||||
The machine is good enough to move outward. Do not sand the same edge until the
|
||||
|
|
|
|||
Reference in a new issue