This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/notes/fresh-workspace-handoff.md
2026-04-25 16:37:51 +01:00

4.6 KiB

Fresh Workspace Handoff

This is the re-entry packet for E:\Projects\EpiphanyAgent.

It is intentionally short. Historical proof belongs in git and state/evidence.jsonl; exact control flow belongs in notes/epiphany-current-algorithmic-map.md; forward planning belongs in notes/epiphany-fork-implementation-plan.md.

Rehydrate

From the repo root:

& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_state.py' status
Get-Content '.\state\map.yaml'
Get-Content '.\notes\fresh-workspace-handoff.md'
Get-Content '.\notes\epiphany-current-algorithmic-map.md'
Get-Content '.\notes\epiphany-fork-implementation-plan.md'
git status --short --branch
git log --oneline -5
Get-Content '.\state\evidence.jsonl' -Tail 8

Do not trust this file for the exact live HEAD. Always check git.

Current Orientation

  • Current branch before this cleanup pass: main...origin/main [ahead 5].
  • Current HEAD before this cleanup pass: a0f030a Distill Epiphany persistent state docs.
  • Phase 1 through Phase 5 are complete enough.
  • Phase 6 has begun with read-only thread/epiphany/scene.
  • The repo is an Epiphany fork of Codex, not a Codex preset.
  • vendor/codex is tracked directly, not a submodule.
  • epiphany-core owns the heavy Epiphany organs where practical.

Landed Machine

The current spine:

  • durable EpiphanyThreadState in protocol/core session and rollout state
  • prompt injection through a bounded <epiphany_state> developer fragment
  • typed client read through Thread.epiphanyState
  • read-only hybrid retrieval through thread/epiphany/retrieve
  • explicit semantic indexing through thread/epiphany/index
  • durable state update through thread/epiphany/update
  • read-only observation distillation through thread/epiphany/distill
  • read-only map/churn proposal through thread/epiphany/propose
  • verifier-backed promotion through thread/epiphany/promote
  • successful-write notification through thread/epiphany/stateUpdated
  • read-only compact reflection through thread/epiphany/scene

The exact current control flow is documented in notes/epiphany-current-algorithmic-map.md.

Boundaries

  • thread/epiphany/retrieve is read-only.
  • thread/epiphany/distill is read-only.
  • thread/epiphany/propose is read-only.
  • thread/epiphany/scene is read-only.
  • Durable typed state writes go through thread/epiphany/update or accepted thread/epiphany/promote.
  • thread/epiphany/index writes the retrieval catalog, not durable Epiphany understanding.
  • GUI/client surfaces reflect and steer typed state; they do not become the source of truth.
  • Do not restart Phase 5 hardening without a concrete regression.

Verification Guardrails

For Phase 5 control-plane behavior changes, run:

& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase5_smoke.py'

For Codex Rust work on this Windows machine:

$env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'

Do not parallelize cargo builds or tests against the same target directory.

For protocol changes, run focused protocol tests and regenerate stable schema fixtures only when the schema actually changed.

Persistent State Hygiene

The latest cleanup pass cut persistent state cruft.

Rules now in force:

  • state/map.yaml is canonical current truth.
  • state/scratch.md is disposable scratch.
  • state/evidence.jsonl is durable event history.
  • this handoff is a compact re-entry packet.
  • notes/epiphany-fork-implementation-plan.md is the distilled forward plan.
  • notes/epiphany-core-harness-surfaces.md is the stable surface contract.
  • notes/epiphany-current-algorithmic-map.md is the source-grounded control-flow map.

Do not let any one note become all of those things. That is how the tower grows sideways and starts calling itself architecture.

Next Real Move

Do not continue implementation automatically from a rehydrate-only request.

When the user asks to continue, choose one Phase 6 organ:

  1. Live-smoke thread/epiphany/scene through app-server.
  2. Design and land a minimal read-only job/progress reflection surface for indexing, remap, and verification work.

The scene-smoke path is the tighter next step. The job/progress path is the larger missing organ.

Not Yet

  • watcher-driven semantic invalidation
  • automatic observation promotion
  • specialist-agent scheduling
  • GUI-as-source-of-truth
  • automatic runtime CRRC coordinator
  • 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 wood disappears.