Refresh Epiphany state after Phase 4 landing
This commit is contained in:
parent
360dfea6e4
commit
e425be0d78
5 changed files with 32 additions and 29 deletions
|
|
@ -53,3 +53,4 @@
|
|||
{"ts": "2026-04-24T02:11:38+01:00", "type": "decision", "status": "ok", "note": "Deferred durable retrieval-summary persistence beyond the verified Phase 4 slice. EpiphanyState snapshots are still persisted on real user-turn boundaries, so teaching thread/epiphany/retrieve to append durable state now would require a new out-of-band rollout semantic or a fake turn boundary; keep the current slice as the landing zone instead of widening the machine casually."}
|
||||
{"ts": "2026-04-24T02:11:38+01:00", "type": "decision", "status": "ok", "note": "Adopted Qdrant as the intended first persistent semantic retrieval backend after the verified BM25 baseline. The rationale is practical rather than fashionable: the user is already moving away from a blob-thrashing Postgres/JSON embedding store in adjacent infrastructure, so Epiphany should target a real vector DB for persistent semantic indexing while keeping exact/path search first-class and retaining BM25 as bootstrap/fallback/control rather than going vector-only."}
|
||||
{"ts": "2026-04-24T02:43:41+01:00", "type": "decision", "status": "ok", "note": "Resolved the remaining backend policy fork before shipping Phase 4 slice 1: Qdrant is the preferred later persistent semantic backend, but not a hard runtime requirement for basic Epiphany use. The verified BM25 retriever remains the no-hassle bootstrap/fallback/control path for users who do not want Qdrant or when Qdrant is unavailable."}
|
||||
{"ts": "2026-04-24T03:21:18+01:00", "type": "verification", "status": "ok", "note": "Collapsed the temporary phase branch after push so the landed Phase 4 slice now lives directly on main at 360dfea with a clean worktree. Synced map, scratch, plan, and handoff state so the persisted next action is the post-reboot Qdrant-backed persistent-semantic follow-up rather than stale push prep."}
|
||||
|
|
|
|||
|
|
@ -45,9 +45,9 @@ data_flow:
|
|||
- commit or backtrack
|
||||
|
||||
active_subgoals:
|
||||
- Clean up and ship the verified Phase 4 repo-local hybrid retrieval slice without widening scope.
|
||||
- Keep the canonical map, handoff note, evidence log, and checked-in stable schema state aligned with the verified landing zone.
|
||||
- Preserve BM25 as the no-hassle fallback while treating Qdrant as the preferred later persistent semantic backend.
|
||||
- Keep the landed Phase 4 slice as the retrieval baseline and keep the repo memory aligned with reality.
|
||||
- After reboot and Qdrant availability, design the next bounded persistent semantic follow-up without widening the current machine casually.
|
||||
- Preserve exact/path lookup and BM25 fallback while treating Qdrant as the preferred persistent semantic backend.
|
||||
|
||||
accepted_design:
|
||||
- external typed state files
|
||||
|
|
@ -96,5 +96,5 @@ rejected_paths:
|
|||
reason: audited candidates were either terminal-only, stale/aspirational, or incoherent wrappers; the comparison clones were removed from vendor to avoid building on untrusted drift
|
||||
|
||||
current_status:
|
||||
summary: Workspace initialized with protocol files, typed state, a tiny CLI, a git repo, fresh-workspace handoff notes, architecture rationale, a Codex algorithmic map note, an Epiphany core-harness surface spec, and a rolling implementation plan against vendored Codex. Phase 1 durable Epiphany state, Phase 2 prompt integration, and a minimal Phase 3 typed client read surface are all implemented and verified with a real Rust/MSVC toolchain; vendored Codex is tracked directly in the parent repo; app-server Thread payloads can now carry typed Epiphany state without scraping prompt text; pre-compaction persistence is now an explicit part of the intended Epiphany workflow; and the first bounded Phase 4 repo-local hybrid retrieval slice is now wired and verified in the working tree across protocol, core, app-server protocol, and app-server, including stable schema fixture regeneration and the Windows `CARGO_TARGET_DIR` verification path.
|
||||
next_action: Clean up and push the current verified query-time hybrid retriever as the Phase 4 slice 1 landing zone. Do not bolt durable EpiphanyState writes onto `thread/epiphany/retrieve` without a clean out-of-band rollout semantic; after the push and reboot, the next persistent semantic retrieval slice should target a Qdrant-backed store with explicit freshness/indexing semantics as the preferred semantic backend while BM25 remains the fallback when Qdrant is unavailable.
|
||||
summary: Workspace initialized with protocol files, typed state, a tiny CLI, a git repo, fresh-workspace handoff notes, architecture rationale, a Codex algorithmic map note, an Epiphany core-harness surface spec, and a rolling implementation plan against vendored Codex. Phase 1 durable Epiphany state, Phase 2 prompt integration, and a minimal Phase 3 typed client read surface are all implemented and verified with a real Rust/MSVC toolchain; vendored Codex is tracked directly in the parent repo; app-server Thread payloads can now carry typed Epiphany state without scraping prompt text; pre-compaction persistence is now an explicit part of the intended Epiphany workflow; and the first bounded Phase 4 repo-local hybrid retrieval slice is now landed on `main` at `360dfea`, including stable schema fixture regeneration and the Windows `CARGO_TARGET_DIR` verification path.
|
||||
next_action: After reboot and Qdrant availability, prototype the next bounded persistent semantic retrieval follow-up as a Qdrant-backed backend with explicit freshness/indexing semantics while keeping the landed query-time BM25 retriever as fallback and exact/path lookup first-class. Do not bolt durable EpiphanyState writes onto `thread/epiphany/retrieve` without a clean out-of-band rollout semantic.
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ This file is intentionally disposable.
|
|||
|
||||
## Current Subgoal
|
||||
|
||||
- Clean up, persist, and ship the verified first bounded Phase 4 repo-local hybrid retrieval slice in vendored Codex.
|
||||
- Rebase the repo memory onto the landed Phase 4 baseline and make the next Qdrant follow-up explicit.
|
||||
|
||||
## Working Notes
|
||||
|
||||
- The old lone-diff situation is gone. The current in-flight Phase 4 wiring now spans:
|
||||
- The first bounded Phase 4 slice is landed on `main` at `360dfea`. The landed retrieval wiring spans:
|
||||
- `vendor/codex/codex-rs/protocol/src/protocol.rs`
|
||||
- `vendor/codex/codex-rs/core/src/epiphany_retrieval.rs`
|
||||
- `vendor/codex/codex-rs/core/src/codex_thread.rs`
|
||||
|
|
@ -39,6 +39,7 @@ This file is intentionally disposable.
|
|||
- `cargo test -p codex-core -p codex-app-server-protocol -p codex-app-server --lib --no-run` passed with `CARGO_TARGET_DIR=C:\Users\Meta\.cargo-target-codex`
|
||||
- targeted Phase 4 tests passed in core, app-server protocol, and app-server
|
||||
- full `cargo test -p codex-app-server-protocol` passed after regenerating stable schema fixtures
|
||||
- the slice is now committed and pushed on `main` as `360dfea`
|
||||
- Small fallout that had to be patched:
|
||||
- `codex_message_processor.rs` had an unnecessary `live_thread.as_ref()`
|
||||
- `core/src/session/tests.rs` needed `retrieval: None` in the prompt fixture Epiphany state
|
||||
|
|
@ -50,7 +51,7 @@ This file is intentionally disposable.
|
|||
- the checked-in repo state must stay on the stable fixture generation path
|
||||
- despite the giant `git status` scream wall, the real schema content diff is small and expected:
|
||||
- `git diff --numstat` shows actual content changes in `15` generated schema files
|
||||
- plus the new untracked Epiphany TypeScript schema files
|
||||
- plus the newly tracked Epiphany TypeScript schema files
|
||||
- the broader wall is mostly line-ending/worktree noise, not extra logical surface area
|
||||
- After inspecting the live code path, do not widen `thread/epiphany/retrieve` into a durable Epiphany-state write right now:
|
||||
- durable `EpiphanyState` snapshots are currently persisted on real user-turn boundaries
|
||||
|
|
|
|||
Reference in a new issue