Plan Phase 2 prompt integration

This commit is contained in:
Meta Vens 2026-04-23 23:28:10 +01:00
commit c823815811
4 changed files with 254 additions and 156 deletions

View file

@ -45,7 +45,7 @@ data_flow:
- commit or backtrack
active_subgoals:
- Start planning the next post-Phase-1 slice now that vendored Codex is part of the parent repo.
- Implement the Phase 2 prompt-integration slice in vendored Codex: render a compact Epiphany summary from SessionState and inject it into build_initial_context when epiphany_state is present.
- Use the tiny CLI and typed state files on a small real task.
- Decide whether the next executable artifact should be a patch runner or a verifier helper.
- Run the protocol on a small real task.
@ -72,6 +72,7 @@ accepted_design:
- keep a durable repository-level algorithmic map of vendored Codex so GUI and Epiphany changes hook into the existing app-server/core boundary instead of reimplementing the turn loop
- keep the Codex algorithmic map honest about auxiliary side channels and limitations: file watching, unified diffs, compaction, subagent messaging, and memory summarization are real substrate, but they do not by themselves amount to semantic repo understanding
- vendor Codex directly into the parent repo instead of keeping it as a gitlink/submodule so Epiphany harness changes can be reviewed and committed atomically with the surrounding project state
- for Phase 2, treat the presence of SessionState.epiphany_state as the internal activation signal and inject a bounded Epiphany summary into the developer-context path during build_initial_context rather than inventing a public operator surface early
rejected_paths:
- name: pinned_map_only
@ -88,5 +89,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 an actionable Phase 1 implementation plan against vendored Codex. The Phase 1 internal/dev-usable Epiphany core state slice is implemented and verified with a real Rust/MSVC toolchain, and vendored Codex has been flattened into the parent repo as ordinary tracked files instead of a gitlink/submodule.
next_action: Decide the next post-Phase-1 slice now that vendored Codex is first-class in the parent repo: either expose a minimal operator path for the internal state seam or keep it dark and continue with the next structural slice before touching prompts, presets, or GUI surfaces.
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 an actionable prompt-integration plan against vendored Codex. The Phase 1 internal/dev-usable Epiphany core state slice is implemented and verified with a real Rust/MSVC toolchain, vendored Codex is tracked directly in the parent repo, and the next slice is now pinned down as Phase 2 prompt integration rather than more architectural wandering.
next_action: Implement Phase 2 in vendored Codex: add a dedicated EpiphanyStateInstructions renderer, inject its bounded summary from Session::build_initial_context when epiphany_state exists, and add prompt-facing omission/inclusion coverage plus one snapshot before touching GUI, retrieval, or public operator surfaces.