4.1 KiB
4.1 KiB
Scratch
This file is intentionally disposable.
Current Subgoal
- Keep the new
epiphany-coreextraction honest in repo memory, then smoke the explicit indexing path against live Qdrant/Ollama without widening the machine again.
Working Notes
- The landed Phase 4 slice 1 baseline is still
360dfeaonmain. The current working tree still carries the explicitthread/epiphany/indexQdrant follow-up on top of that. - The extraction boundary is now the important truth:
epiphany-core/src/retrieval.rsowns the heavy hybrid retrieval/indexing engineepiphany-core/src/prompt.rsowns the Epiphany prompt-state rendererepiphany-core/src/rollout.rsowns the latest-Epiphany-state replay helper used for Phase 3 stored-thread hydrationepiphany-core/src/lib.rsre-exports the stable surface used by vendored Codexvendor/codex/codex-rs/core/src/epiphany_retrieval.rsis now a thin re-export wrappervendor/codex/codex-rs/core/src/epiphany_rollout.rsis now a thin wrapper that supplies the Codex-specific user-turn-boundary predicatevendor/codex/codex-rs/core/src/context/epiphany_state_instructions.rsis now a thinContextualUserFragmentadapter aroundepiphany_core::render_epiphany_state(...)vendor/codex/codex-rs/core/Cargo.tomlnow depends on the sibling crate by path
- What still must live in vendored Codex because that is where the typed host seam exists:
- protocol types in
vendor/codex/codex-rs/protocol/src/protocol.rs CodexThreadbridge methods invendor/codex/codex-rs/core/src/codex_thread.rs- the user-turn-boundary rule in
vendor/codex/codex-rs/core/src/context_manager/history.rs - app-server protocol surfaces in
vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rsandvendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs - request routing in
vendor/codex/codex-rs/app-server/src/codex_message_processor.rs
- protocol types in
- Why this shape is worth keeping:
- it shrinks the Apache-mixed surface
- it makes modified Codex alone less useful as a standalone Epiphany rebuild kit
- it preserves first-class typed integration instead of hiding the machine behind an opaque plugin blob
- Retrieval/indexing behavior is still the bounded machine we wanted:
- exact/path-ish lookup via
codex_file_search - semantic lookup via BM25 chunk search when persistent semantic state is unavailable or stale
- explicit
thread/epiphany/indexfor Qdrant-backed semantic persistence - read-only
thread/epiphany/retrieve - manifest metadata under
codex_home - local Ollama embeddings defaulting to
qwen3-embedding:0.6b
- exact/path-ish lookup via
- Corpus preflight for the tracked
vendor/codex/codex-rssource atvendor/codexHEADd45ab10:3642tracked files /31.09 MB. - Do not use raw working-tree size as the retrieval denominator here; build artifacts and other sludge lie.
- Verification is now split cleanly across the repo-owned crate and the vendored host:
cargo fmt --manifest-path .\\epiphany-core\\Cargo.tomlcargo test --manifest-path .\\epiphany-core\\Cargo.tomlcargo fmt --allcargo test -p codex-core --lib epiphanycargo test -p codex-app-server-protocol --lib thread_epiphany_cargo test -p codex-app-server --lib map_epiphany_cargo test -p codex-core -p codex-app-server-protocol -p codex-app-server --lib --no-runwithCARGO_TARGET_DIR=C:\Users\Meta\.cargo-target-codex
- Mechanical honesty still matters:
- do not widen
thread/epiphany/retrieveinto a durable Epiphany-state write without a clean out-of-band rollout/update semantic - do not let
epiphany-coresprawl into GUI or watcher machinery just because it now owns the bigger organ
- do not widen
Open Questions
- After the explicit indexing path has been live-smoked, should backend config stay env-scoped for a while or earn a cleaner first-class config surface?
- How much more can move into
epiphany-corewithout sacrificing the typed Codex host seam that makes the integration first-class?
Do not promote anything from here into the map unless it survives verification or repeated reuse without contradiction.