Land Epiphany planning state projection

This commit is contained in:
Meta Vens 2026-05-01 07:34:09 +01:00
commit 9d47885de2
40 changed files with 9487 additions and 225 deletions

View file

@ -11,6 +11,7 @@ use codex_protocol::protocol::EpiphanyInvestigationCheckpoint;
use codex_protocol::protocol::EpiphanyInvestigationDisposition;
use codex_protocol::protocol::EpiphanyModeState;
use codex_protocol::protocol::EpiphanyObservation;
use codex_protocol::protocol::EpiphanyPlanningState;
use codex_protocol::protocol::EpiphanyScratchPad;
use codex_protocol::protocol::EpiphanyThreadState;
use std::collections::HashSet;
@ -23,6 +24,7 @@ const EDGE_LIMIT: usize = 2;
const LINK_LIMIT: usize = 3;
const OBSERVATION_LIMIT: usize = 3;
const EVIDENCE_LIMIT: usize = 3;
const PLANNING_LIMIT: usize = 3;
const CODE_REF_LIMIT: usize = 2;
const DIRTY_PATH_LIMIT: usize = 4;
const EPIPHANY_STATE_INTRO: &str = include_str!("prompts/epiphany_state_intro.md");
@ -34,6 +36,9 @@ pub fn render_epiphany_state(state: &EpiphanyThreadState) -> String {
sections.push(render_overview(state));
sections.push(EPIPHANY_DOCTRINE_SECTION.trim_end().to_string());
if let Some(planning) = render_planning(&state.planning) {
sections.push(planning);
}
if let Some(subgoals) = render_subgoals(state) {
sections.push(subgoals);
}
@ -119,6 +124,86 @@ fn render_subgoals(state: &EpiphanyThreadState) -> Option<String> {
Some(format!("## Subgoals\n{}", lines.join("\n")))
}
fn render_planning(planning: &EpiphanyPlanningState) -> Option<String> {
if planning.is_empty() {
return None;
}
let mut lines = vec![format!(
"- Counts: {} captures, {} backlog items, {} roadmap streams, {} objective drafts",
planning.captures.len(),
planning.backlog_items.len(),
planning.roadmap_streams.len(),
planning.objective_drafts.len()
)];
lines.push(
"- Boundary: planning records are not the active objective until explicit human adoption."
.to_string(),
);
for draft in planning.objective_drafts.iter().take(PLANNING_LIMIT) {
lines.push(format!(
"- Objective draft `{}` [{}]: {}",
draft.id,
draft.status,
compact_text(&draft.title)
));
if !draft.acceptance_criteria.is_empty() {
lines.push(format!(
" acceptance: {}",
draft
.acceptance_criteria
.iter()
.take(2)
.map(|criterion| compact_text(criterion))
.collect::<Vec<_>>()
.join(" | ")
));
}
}
push_omitted_count(
&mut lines,
planning.objective_drafts.len(),
PLANNING_LIMIT,
"objective drafts",
);
for item in planning.backlog_items.iter().take(PLANNING_LIMIT) {
lines.push(format!(
"- Backlog `{}` [{} / {} / {}]: {}",
item.id,
item.status,
item.priority.value,
item.horizon,
compact_text(&item.title)
));
}
push_omitted_count(
&mut lines,
planning.backlog_items.len(),
PLANNING_LIMIT,
"backlog items",
);
for capture in planning.captures.iter().take(PLANNING_LIMIT) {
lines.push(format!(
"- Capture `{}` [{} via {}]: {}",
capture.id,
capture.status,
capture.source.kind,
compact_text(&capture.title)
));
}
push_omitted_count(
&mut lines,
planning.captures.len(),
PLANNING_LIMIT,
"captures",
);
Some(format!("## Planning\n{}", lines.join("\n")))
}
fn render_invariants(state: &EpiphanyThreadState) -> Option<String> {
if state.invariants.is_empty() {
return None;

View file

@ -35,7 +35,7 @@ The rule is:
| Surface | Kind | Status | Role |
| --- | --- | --- | --- |
| `EpiphanyThreadState` | protocol/core state | landed | Authoritative typed model of objective, subgoals, invariants, graphs, retrieval, investigation checkpoint, evidence, scratch, churn, and mode. |
| `EpiphanyThreadState` | protocol/core state | landed | Authoritative typed model of objective, subgoals, invariants, graphs, retrieval, planning, investigation checkpoint, evidence, scratch, churn, and mode. |
| `RolloutItem::EpiphanyState` | persistence | landed | Durable snapshot for resume, fork, rollback, and compaction-safe reconstruction. |
| `<epiphany_state>` prompt fragment | prompt input | landed | Bounded developer-context summary rendered from typed state, including the durable investigation packet when present. |
| `Thread.epiphanyState` | client read | landed | Typed state on hydrated thread payloads. |
@ -57,6 +57,7 @@ The rule is:
| `thread/epiphany/freshness` | read-only reflection | landed, live-smoked | Retrieval and graph freshness lens derived from retrieval summaries plus graph frontier/churn state, with watcher-backed invalidation inputs for loaded threads. |
| `thread/epiphany/context` | read-only reflection | landed, live-smoked | Targeted state shard for graph nodes/edges, active frontier, graph checkpoint, investigation checkpoint, observations, and evidence. |
| `thread/epiphany/graphQuery` | read-only reflection | landed, live-smoked | Bounded graph traversal over authoritative typed state: explicit nodes/edges, path/symbol matches, edge-kind matches, neighbor walks, and frontier neighborhoods with architecture/dataflow links. |
| `thread/epiphany/planning` | read-only reflection | landed, live-smoked | Typed planning projection over captures, backlog items, roadmap streams, Objective Drafts, GitHub source refs, and active-objective separation without adopting work. |
| `thread/epiphany/pressure` | read-only reflection | landed, live-smoked | Context-pressure gauge derived from token telemetry and recorded auto-compact/context limits. |
| `thread/epiphany/reorient` | read-only policy reflection | landed, live-smoked | Bounded CRRC reorientation verdict derived from checkpoint, freshness, watcher, and pressure signals; returns resume vs regather without acting on the decision. |
| `thread/epiphany/crrc` | read-only coordinator reflection | landed, live-smoked | Composes pressure, reorientation verdict, bound worker status/result, and available actions into one recommendation without launching, accepting, compacting, or mutating state. |
@ -86,6 +87,7 @@ The following must stay read-only:
- `thread/epiphany/freshness`
- `thread/epiphany/context`
- `thread/epiphany/graphQuery`
- `thread/epiphany/planning`
- `thread/epiphany/pressure`
- `thread/epiphany/reorient`
- `thread/epiphany/crrc`
@ -96,7 +98,7 @@ license to mutate map/evidence/churn state as a side effect.
## Reflection Authority
Scene, jobs, freshness, context, graphQuery, reorient, CRRC, and GUI surfaces may compress state for humans and
Scene, jobs, freshness, context, graphQuery, planning, reorient, CRRC, and GUI surfaces may compress state for humans and
clients. They may not invent canonical understanding.
Reflection surfaces should:
@ -122,6 +124,7 @@ The important categories are:
- architecture/dataflow graphs
- graph frontier and checkpoint
- retrieval summary
- planning captures, backlog items, roadmap streams, and Objective Drafts
- investigation checkpoint
- job bindings
- scratch
@ -146,13 +149,13 @@ Metaphor is compression after source context. It is not decoration for guesses.
These are not landed yet:
- richer evidence UI and graph steering beyond the landed context and graph traversal reads
- richer evidence UI, graph steering, planning GUI, and explicit objective adoption beyond the landed read-only projections
- automatic watcher-driven graph/retrieval/invariant invalidation policy on top of the landed freshness reflection
- automatic tool-output observation promotion
- typed turn intent before broad mutation
- hard mutation gates for stale map or violated invariants
- role-scoped specialist-agent registry and scheduling
- automatic runtime Compact-Rehydrate-Reorient-Continue execution beyond the landed read-only coordinator recommendation
- broader role-scoped specialist-agent registry and scheduling beyond the fixed lanes
- broader runtime Compact-Rehydrate-Reorient-Continue execution beyond the landed safe-boundary compact, fixed reorient-worker launch, and pre-compaction checkpoint steering actions
Do not implement these as one blob. Each needs a bounded surface, a write rule,
and a verification story.
@ -183,10 +186,11 @@ Out of scope for the MVP:
- a second job backend unless the current `agent_jobs` adapter blocks read-back
or interruption
The first read-back, acceptance, read-only coordinator, and dogfood CLI blockers
are landed. The current MVP blocker is role ownership: making implementation,
modeling/checkpoint maintenance, and verification/review visible as distinct
bounded work lanes without building an arbitrary specialist marketplace.
The first read-back, acceptance, read-only coordinator, dogfood CLI, fixed role
lanes, and read-only planning projection blockers are landed. The current MVP
blocker is making planning operational for the human: GUI Planning view,
explicit capture/objective adoption actions, and Imagination synthesis without
letting future-shape work become implementation authority by accident.
## Job And Progress Surface Direction

View file

@ -10,17 +10,17 @@ The important question for this file is not "what is Epiphany supposed to become
Current Epiphany is a forked Codex harness with a typed modeling spine.
The spine exists in twenty-five live paths:
The spine exists in more than twenty-five live paths:
- protocol state shape: `EpiphanyThreadState`, `RolloutItem::EpiphanyState`, retrieval summaries, and prompt tags live in [protocol.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/protocol/src/protocol.rs:103).
- in-memory session state: `SessionState` stores an optional `EpiphanyThreadState`, and `Session` exposes thin async accessors over it in [state/session.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/state/session.rs:36) and [session/mod.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/mod.rs:1240).
- prompt injection: `build_initial_context` reads the optional state and adds a bounded `<epiphany_state>` developer fragment; the renderer now includes a durable investigation-checkpoint section when authoritative state carries one, so a resumed agent can see whether planning/source gathering was banked or must be re-gathered in [session/mod.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/mod.rs:2434) and [prompt.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/prompt.rs:33).
- prompt injection: `build_initial_context` reads the optional state and adds a bounded `<epiphany_state>` developer fragment; the renderer now includes durable investigation-checkpoint and planning sections when authoritative state carries them, so a resumed agent can see whether source gathering was banked and what captures/backlog/drafts exist without treating them as adopted objectives in [session/mod.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/mod.rs:2434), [prompt.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/prompt.rs:33), and [prompt.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/prompt.rs:127).
- per-turn persistence: normal turn setup persists one `RolloutItem::EpiphanyState` after the `TurnContext` when state exists in [session/mod.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/mod.rs:2677).
- client read hydration: app-server thread views attach live or reconstructed `thread.epiphanyState` in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4706) and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4822).
- explicit distillation proposals: app-server routes read-only `thread/epiphany/distill` through a loaded-thread handler into `epiphany-core` so one explicit observation can become a patch candidate without mutating state; tool/command/shell/model sources now get typed evidence kinds and bounded salient-output summaries instead of dumping raw output into durable state in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4358) and [distillation.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/distillation.rs:28).
- explicit map/churn proposals: app-server routes read-only `thread/epiphany/propose` through a loaded-thread handler into `epiphany-core` so verified observations with code refs and accepting recent evidence can be selected explicitly or auto-selected as a bounded path cluster, prioritize the strongest selected observation, focus or extend architecture graph nodes, rescue unanchored graph nodes through strict semantic overlap, carry linked dataflow nodes and incident graph edges into the frontier, update churn candidates with match-kind-aware map-delta judgment and pressure, and still avoid mutation until promotion in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4429) and [proposal.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/proposal.rs:115).
- explicit promotion gates: app-server routes `thread/epiphany/promote` through a loaded-thread handler into `epiphany-core` policy evaluation, rejects failed verifier evidence without mutation, applies accepted candidates through the same durable update path, and now treats medium/high/expanded/broadening/semantic churn deltas as needing explicit rationale plus stronger verifier evidence whose kind is token-matched rather than substring-matched; the same gate also validates durable investigation-checkpoint packets, including linked evidence ids, before they can be inked into state in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4501) and [promotion.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/promotion.rs:33).
- explicit state updates: app-server routes `thread/epiphany/update` through a loaded `CodexThread` update method that rejects malformed appended observation/evidence graph records and structurally invalid replacement fields, including investigation checkpoints that cite missing evidence, mutates live `SessionState` only after validation, bumps the revision, and persists an immediate `RolloutItem::EpiphanyState` snapshot in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4620), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:376), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:552), and [promotion.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/promotion.rs:44).
- explicit state updates: app-server routes `thread/epiphany/update` through a loaded `CodexThread` update method that rejects malformed appended observation/evidence graph records and structurally invalid replacement fields, including investigation checkpoints that cite missing evidence and planning records with broken ids/source refs/backlog links/draft acceptance criteria, mutates live `SessionState` only after validation, bumps the revision, and persists an immediate `RolloutItem::EpiphanyState` snapshot in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4620), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:376), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:552), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:1294), and [promotion.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/promotion.rs:44).
- live state notifications and write responses: app-server declares experimental `thread/epiphany/stateUpdated` and emits it with the updated typed state, typed `source`, event-level `revision`, and typed `changedFields` after successful direct updates and accepted promotions, but not after rejected promotions; direct `thread/epiphany/update` and accepted `thread/epiphany/promote` responses expose the same revision/change metadata, accepted promotions always report `Evidence` because verifier evidence is appended even when the patch evidence list is empty, and successful write response/notification states now use the same client-visible live projection as `thread/read`, including retrieval-summary backfill when durable state has no persisted retrieval metadata, in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:1113), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4354), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4419), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4428), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4555), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4608), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4652), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4693), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11327), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11370).
- scene projection: app-server declares experimental read-only `thread/epiphany/scene`, reads the same live/stored Epiphany state view used by `thread/read`, and derives a compact client scene with objective, active subgoal, invariant status counts, graph focus/counts, retrieval status, investigation-checkpoint summary counts, observation/evidence summaries, churn, live/stored source, and available control-plane actions without mutating or persisting state in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:340), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:3924), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4115), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:10757).
- job/progress reflection: app-server declares experimental read-only `thread/epiphany/jobs`, reads the same thread view as scene, optionally fills retrieval state for loaded threads with no Epiphany state, and derives four non-authoritative progress slots for retrieval indexing, graph remap, invariant verification, and specialist work. Durable `job_bindings` now act as a thin Epiphany-owned launcher seam with launcher id, authority scope, backend kind, and backend job id; the current adapter can overlay those launcher bindings onto live runtime `agent_jobs` snapshots so the surface can show real owner/progress/thread information without scheduling, notifying, mutating, or persisting runtime jobs in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:347), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4142), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4176), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11998).
@ -29,6 +29,7 @@ The spine exists in twenty-five live paths:
- freshness reflection: app-server declares experimental read-only `thread/epiphany/freshness`, reads the same live/stored thread view used by scene/jobs/context, fills live retrieval state for loaded threads, and derives one bounded retrieval/graph freshness lens plus, for loaded threads, watcher-backed invalidation inputs with watched root, changed paths, mapped graph-node hits, active-frontier hits, and revision/source identity without mutating, scheduling, notifying, or performing automatic semantic invalidation in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:350), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4167), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4259), [epiphany_invalidation.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/epiphany_invalidation.rs:19), [epiphany_invalidation.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/epiphany_invalidation.rs:67), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4219), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11073).
- targeted context reflection: app-server declares experimental read-only `thread/epiphany/context`, reads the same live/stored Epiphany state view used by scene/jobs, and derives a bounded state shard containing selected graph nodes/edges, links, active frontier, checkpoint, the full durable investigation-checkpoint packet, observations, direct evidence, linked evidence, and missing requested ids without retrieval, proposal, promotion, notification, mutation, or persistence in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:355), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4253), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4261), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11152).
- graph traversal reflection: app-server declares experimental read-only `thread/epiphany/graphQuery`, reads the same live Epiphany state view used by context, and derives explicit node/edge lookup, path/symbol matches, bounded neighbors, edge-kind matches, and frontier neighborhoods with architecture/dataflow links plus frontier/checkpoint identity, matched selectors, and missing ids without retrieval, proposal, promotion, indexing, notification, mutation, or scheduling in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:379), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4720), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:5060), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:15201).
- planning reflection: app-server declares experimental read-only `thread/epiphany/planning`, reads the same live/stored Epiphany state view, and returns typed captures, backlog items, roadmap streams, Objective Drafts, GitHub source refs, count summaries, and the separate active objective without adopting drafts, launching work, notifying, mutating, or scheduling in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:385), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4681), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:5353), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:16295).
- context-pressure reflection: core token telemetry carries `model_auto_compact_token_limit` beside total/last usage and `model_context_window`; app-server declares experimental read-only `thread/epiphany/pressure`, reads live token usage or the latest stored rollout `TokenCount`, derives current context pressure from `last_token_usage` rather than cumulative thread spend, treats cumulative-only telemetry as unknown, and raises `shouldPrepareCompaction` at 80% of the active auto-compact/context limit without mutating Epiphany state or scheduling compaction in [protocol.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/protocol/src/protocol.rs:2237), [turn_context.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/turn_context.rs:103), [session/mod.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/session/mod.rs:2716), [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:360), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4361), [token_usage_replay.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor/token_usage_replay.rs:75), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4306), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11028).
- pre-compaction checkpoint intervention: app-server `TokenCount` handling now checks the same pressure mapper, and for loaded Epiphany threads crossing `shouldPrepareCompaction` it steers the active turn once with a bounded CRRC checkpoint directive to bank working context before compaction/reorientation. The per-turn dedupe bit and the pending compact handoff live in listener `ThreadState`; successful steering marks the active turn for a forced compact action at clean turn completion, while aborted turns clear the handoff. The intervention uses existing turn steering and turn-boundary automation rather than a new scheduler in [bespoke_event_handling.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/bespoke_event_handling.rs:1467), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:15405), and [thread_state.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/thread_state.rs:144).
- reorientation policy: app-server declares experimental read-only `thread/epiphany/reorient`, reuses the same live/stored thread view plus mapped pressure/freshness/watcher signals, and derives a bounded `resume`/`regather` verdict with checkpoint-path/frontier reasons without mutating, compacting, scheduling, notifying, or continuing work in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:365), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4514), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4394), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:11424).
@ -87,6 +88,8 @@ flowchart TD
QC --> Q
N --> QG["thread/epiphany/graphQuery traverses graph neighborhoods"]
QG --> Q
N --> QPLAN["thread/epiphany/planning projects captures/backlog/drafts"]
QPLAN --> Q
A --> QP["TokenUsageInfo stores usage, context window, and auto-compact limit"]
QP --> QQ["thread/epiphany/pressure derives read-only context pressure"]
QQ --> Q
@ -156,6 +159,7 @@ What this means in plain English:
- The app-server can expose a read-only freshness lens derived from retrieval summaries plus graph frontier/churn state and, for loaded threads, watcher-backed invalidation telemetry without turning file staleness into a hidden worker.
- The app-server can expose a targeted read-only context shard for clients that need graph/evidence detail without pulling the full typed state.
- The app-server can expose read-only graph traversal for clients and agents that need frontier neighborhoods, path/symbol matches, or local blast-radius walks without turning traversal into proposal or promotion.
- The app-server can expose read-only planning state for clients that need captures, backlog, roadmap streams, and Objective Drafts without turning them into active objectives.
- The app-server can expose context pressure derived from real token telemetry without starting compaction or pretending vibes are telemetry.
- A loaded thread can ask for a typed observation/evidence proposal without mutating state.
- A loaded thread can ask a verifier-backed promotion gate to reject or apply that proposal.
@ -174,7 +178,7 @@ The current landed machine is still coherent. The core shape is not ornamental:
Nothing in the current typed spine obviously deserves deletion right now. The parts that would turn this into Jenga are still correctly listed as non-flows: automatic tool-output ingestion, automatic watcher-driven invalidation, specialist scheduling, broad event streaming, and an automatic Compact-Rehydrate-Reorient-Continue coordinator. Thin GUI/client reflection is no longer forbidden as a category, provided it reflects and steers typed state rather than inventing a second source of truth.
The next Perfect Machine move is not adding another writer, not re-hardening Phase 5, and no longer the first scene, job, freshness, targeted context, pressure, watcher, investigation-checkpoint, or reorientation surface. Those organs now let clients inspect the machine Epiphany already built at summary, progress, bounded-detail, freshness, context-pressure, file-movement, durable-planning-packet, and wakeup-verdict levels. The next outward work should either give that verdict a real runtime consumer or land real long-running job owners, not invent yet another decorative sense organ.
The next Perfect Machine move is not adding another writer, not re-hardening Phase 5, and no longer the first scene, job, freshness, targeted context, graph traversal, planning, pressure, watcher, investigation-checkpoint, or reorientation surface. Those organs now let clients inspect the machine Epiphany already built at summary, progress, bounded-detail, graph-walk, planning, freshness, context-pressure, file-movement, durable-planning-packet, and wakeup-verdict levels. The next outward work should make those projections operational in the GUI and fixed lanes, not invent yet another decorative sense organ.
## Natural Language Spine
@ -193,6 +197,7 @@ This is the same flow in the language Epiphany is supposed to make the model car
| Job projection | Clients can ask which Epiphany work slots are idle, needed, blocked, running, or unavailable for indexing, remap, verification, and future specialists. The slots are derived from state and retrieval summaries; they do not start work. | A shift board listing which crews would be needed if work begins, not a foreman secretly hiring people in the back room. |
| Freshness projection | Clients can ask whether retrieval or graph understanding is stale, missing, or ready, and loaded threads now also expose watcher-observed file movement with watched root, changed paths, mapped graph-node hits, and frontier hits. The answer is still a lens over existing retrieval/frontier/churn/watcher signals; it does not remap, schedule, or invalidate anything by itself. | A clipboard listing which blueprint tabs got coffee on them and which shelf of the catalog needs rechecking, now with a door sensor showing which cabinet was opened, without sending anyone to swing a hammer. |
| Context projection | Clients can ask for one bounded slice of the typed model: selected graph nodes/edges, active frontier, graph checkpoint, full investigation checkpoint packet, observations, direct evidence, linked evidence, and missing ids. It is derived from state and does not propose or promote anything. | A librarian opens the exact ledger pages you named, adds the active bookmark by default, and says which requested tabs were not in the book. |
| Planning projection | Clients can ask for captured ideas, imported issue refs, backlog items, roadmap streams, and Objective Drafts while keeping the active objective separate. It is derived from state and does not adopt work. | A planning wall with sticky notes and candidate work orders; useful, visible, and absolutely not the signed job ticket. |
| Pressure projection | Clients can ask how close the live or stored thread is to compaction pressure using token usage, context window, and the recorded auto-compact threshold. The answer may recommend preparation, but it does not act. | A pressure gauge on the boiler; it does not grab the wrench or pretend steam is a moral failing. |
| Retrieval | A loaded thread can ask a structured question of the repo through one typed retrieval surface. | A librarian brings back marked pages instead of making the agent rummage through every shelf. |
| Indexing | Persistent semantic memory is built only through an explicit indexing path. | The librarian updates the card catalog only when asked, not while pretending to answer a question. |
@ -210,7 +215,7 @@ The protocol layer defines the object that all other Epiphany paths agree on.
### Plain-language role
This is where Epiphany stops being an instruction style and becomes a thing the program can carry. The state shape is the skeleton: objective, subgoals, graph, scratch, observations, evidence, churn, mode, and retrieval summary all get named places to live.
This is where Epiphany stops being an instruction style and becomes a thing the program can carry. The state shape is the skeleton: objective, subgoals, graph, planning, scratch, observations, evidence, churn, mode, and retrieval summary all get named places to live.
The point is not just serialization. The point is pressure. If understanding has a typed slot, later code can ask whether that slot is fresh, missing, stale, or contradictory. Without this shape, the agent has only memory soup and a little sailor hat.
@ -221,7 +226,7 @@ The point is not just serialization. The point is pressure. If understanding has
- prompt tags: `EPIPHANY_STATE_OPEN_TAG` and `EPIPHANY_STATE_CLOSE_TAG`.
- rollout storage: `RolloutItem::EpiphanyState(EpiphanyStateItem)`.
- canonical thread state: `EpiphanyThreadState`.
- map/scratch/evidence/churn/mode structs.
- map/planning/scratch/evidence/churn/mode structs.
- retrieval metadata: `EpiphanyRetrievalState`, `EpiphanyRetrievalStatus`, and `EpiphanyRetrievalShardSummary`.
Code refs:
@ -1459,7 +1464,7 @@ stored Epiphany state
-> successful writes emit thread/epiphany/stateUpdated
```
The current remaining missing organ is not the red pen, not the first chewing motion, not the first state-change bell, not the first client-shaped scene, not the first job/progress reflection, not the first live bound-job notification, not the first freshness lens, not the first watcher-backed invalidation read, not the first targeted graph/evidence context read, not the first bounded graph traversal read, not the first context-pressure gauge, not the first durable investigation checkpoint packet, not the first bounded reorientation verdict, not the first thin launcher seam, not the first explicit launch/interrupt authority surface over that seam, not the first runtime consumer that can act on the reorientation verdict without becoming a hidden tyrant, not the first read-back surface for that worker's findings, not the first explicit acceptance write for completed findings, not the first read-only CRRC coordinator recommendation, not the first role ownership board, not the first fixed role specialist launch/read-back templates, not the first review-gated modeling statePatch acceptance path, and no longer the first dogfood-facing operator view over the landed loop. Those exist. Proposal now has the first bits of map memory, focus, and selection hygiene: it can auto-select a bounded evidence-backed observation cluster when ids are omitted, requires accepting recent evidence behind selected observations, prioritizes stronger selected observations for proposal wording, reuses existing architecture nodes by concrete code-ref/path/id checks before creating new path nodes, can rescue unanchored graph nodes through strict unique semantic overlap, follows graph links and incident edges into the frontier, and reports match-kind-aware churn pressure from the actual proposal shape. Distillation now also has the first source-output-aware teeth for tool/model summaries. Promotion now notices risky deltas instead of just checking the shape of the envelope, treats graph expansion as risky even if the patch tries to mumble "low pressure" while dragging a new wall into the blueprint, token-matches strong verifier kinds so `contest` cannot sneak past as `test`, and validates investigation checkpoints against known evidence before the packet can be inked. Successful update/promote writes now emit `thread/epiphany/stateUpdated` with `source: "update"` or `source: "promote"`, event-level revision, and typed changed fields so clients no longer need to poll blindly, infer the cause from timing, or diff the whole state to know which top-level sections moved. Runtime `agent_job_progress` background events now also emit `thread/epiphany/jobsUpdated` with changed bound-job payloads so clients no longer need to poll `thread/epiphany/jobs` just to watch one real owner move, the bound jobs now reflect launcher id, authority scope, and backend kind/job id instead of treating raw runtime pointers as the architecture, `jobLaunch` / `jobInterrupt` can create or tear down those bindings without pretending reflection is authority, `reorientLaunch` can launch one fixed `reorient-worker` job from the checkpoint verdict without turning the verdict itself into a writer, `reorientResult` can read the worker's structured output back as a reviewable finding without promoting it, `reorientAccept` can explicitly bank a completed finding into typed observation/evidence plus optional scratch/checkpoint state, `roleLaunch` can launch fixed modeling/checkpoint and verification/review specialists over that same bounded seam, `roleResult` can read their structured outputs back without mutation, `roleAccept` can apply a reviewed modeling graph/checkpoint patch through the normal state validator, and `crrc` can recommend the next explicit action over that loop without doing the action itself. The scene, jobs, roles, role-result, role-accept, freshness, context, graphQuery, pressure, reorient, crrc, reorient-result, and MVP status surfaces give clients compact or bounded views without making the GUI/client authoritative. The remaining missing organs are a second backend if `agent_jobs` stops being enough, automatic scheduling if dogfood proves it is needed, and richer product ergonomics after the MVP loop has been tested by a human.
The current remaining missing organ is not the red pen, not the first chewing motion, not the first state-change bell, not the first client-shaped scene, not the first job/progress reflection, not the first live bound-job notification, not the first freshness lens, not the first watcher-backed invalidation read, not the first targeted graph/evidence context read, not the first bounded graph traversal read, not the first planning projection, not the first context-pressure gauge, not the first durable investigation checkpoint packet, not the first bounded reorientation verdict, not the first thin launcher seam, not the first explicit launch/interrupt authority surface over that seam, not the first runtime consumer that can act on the reorientation verdict without becoming a hidden tyrant, not the first read-back surface for that worker's findings, not the first explicit acceptance write for completed findings, not the first read-only CRRC coordinator recommendation, not the first role ownership board, not the first fixed role specialist launch/read-back templates, not the first review-gated modeling statePatch acceptance path, and no longer the first dogfood-facing operator view over the landed loop. Those exist. Proposal now has the first bits of map memory, focus, and selection hygiene: it can auto-select a bounded evidence-backed observation cluster when ids are omitted, requires accepting recent evidence behind selected observations, prioritizes stronger selected observations for proposal wording, reuses existing architecture nodes by concrete code-ref/path/id checks before creating new path nodes, can rescue unanchored graph nodes through strict unique semantic overlap, follows graph links and incident edges into the frontier, and reports match-kind-aware churn pressure from the actual proposal shape. Distillation now also has the first source-output-aware teeth for tool/model summaries. Promotion now notices risky deltas instead of just checking the shape of the envelope, treats graph expansion as risky even if the patch tries to mumble "low pressure" while dragging a new wall into the blueprint, token-matches strong verifier kinds so `contest` cannot sneak past as `test`, and validates investigation checkpoints against known evidence before the packet can be inked. Successful update/promote writes now emit `thread/epiphany/stateUpdated` with `source: "update"` or `source: "promote"`, event-level revision, and typed changed fields so clients no longer need to poll blindly, infer the cause from timing, or diff the whole state to know which top-level sections moved. Runtime `agent_job_progress` background events now also emit `thread/epiphany/jobsUpdated` with changed bound-job payloads so clients no longer need to poll `thread/epiphany/jobs` just to watch one real owner move, the bound jobs now reflect launcher id, authority scope, and backend kind/job id instead of treating raw runtime pointers as the architecture, `jobLaunch` / `jobInterrupt` can create or tear down those bindings without pretending reflection is authority, `reorientLaunch` can launch one fixed `reorient-worker` job from the checkpoint verdict without turning the verdict itself into a writer, `reorientResult` can read the worker's structured output back as a reviewable finding without promoting it, `reorientAccept` can explicitly bank a completed finding into typed observation/evidence plus optional scratch/checkpoint state, `roleLaunch` can launch fixed modeling/checkpoint and verification/review specialists over that same bounded seam, `roleResult` can read their structured outputs back without mutation, `roleAccept` can apply a reviewed modeling graph/checkpoint patch through the normal state validator, and `crrc` can recommend the next explicit action over that loop without doing the action itself. The scene, jobs, roles, role-result, role-accept, freshness, context, graphQuery, planning, pressure, reorient, crrc, reorient-result, and MVP status surfaces give clients compact or bounded views without making the GUI/client authoritative. The remaining missing organs are explicit planning adoption actions, Imagination synthesis, a second backend if `agent_jobs` stops being enough, automatic scheduling if dogfood proves it is needed, and richer product ergonomics after the MVP loop has been tested by a human.
```text
model/tool observations
@ -1473,7 +1478,7 @@ model/tool observations
The typed write path exists, the first deterministic observation/evidence distillation path exists, source-output-aware distillation now summarizes noisy tool/model output into typed evidence with final result/error/finished lines ahead of generic warnings, the first deterministic map/churn proposal path exists, proposal-quality hardening now auto-selects bounded observation clusters when ids are omitted, requires accepting recent evidence, reuses existing graph nodes by observed code refs, prioritizes stronger selected observations, rescues unanchored graph nodes by strict semantic overlap, focuses linked frontier context, reports match-kind-aware map-delta pressure, and the first verifier-backed promotion gate exists. The first map/churn safety layer also exists: promotion can reject state replacement patches that are not tied to explicit observations/evidence, that contain structurally broken subgoal, invariant, graph, frontier, checkpoint, investigation-checkpoint, or churn fields, that try to promote risky churn without a warning and stronger verifier evidence, that claim a graph expansion is low-pressure to dodge the warning gate, or that rely on substring verifier-kind accidents. The first live state notification layer also exists: accepted writes publish updated typed state plus event-level revision and typed changed fields; rejected promotions stay quiet.
In natural language: current Epiphany can preserve a map, show a map, project a compact scene from the map, project derived job/progress slots from the map and retrieval summary, reflect a thin launcher seam over bound work, explicitly launch or interrupt that bound work through a bounded authority surface, emit live bound-job progress notifications from runtime `agent_job_progress` events, project a read-only freshness lens over retrieval and graph staleness, layer watcher-backed invalidation telemetry onto that lens for loaded threads, project a targeted graph/evidence context shard from the map, traverse bounded graph neighborhoods and path/symbol matches from the map, project context pressure from token telemetry, bank an in-flight investigation packet in durable typed state, reflect that packet back into prompt/scene/context, turn those signals into a read-only resume-versus-regather verdict, recommend the next explicit CRRC action over the verdict and worker/result state, print that recommendation in a dogfood operator view, explicitly launch one bounded `reorient-worker` job from that verdict, read its result back for review, explicitly accept a completed finding into typed state, retrieve evidence for the map, draft one explicit observation/evidence patch, derive a bounded graph/frontier/churn candidate from verified evidence-backed observations with code refs, choose a small coherent observation set when the caller does not provide one, favor the strongest selected observation when drafting that candidate, reject or accept a verified candidate, apply explicit map/evidence/churn edits, notify clients after successful writes, and sanity-check those edits before they hit the ledger. It still does not invalidate stale graph regions automatically, execute Epiphany-owned long-running jobs beyond the borrowed runtime `agent_jobs` backend, or coordinate broad specialist ownership. Teeth are installed; chewing is supervised; the first bell rings; the first wall board exists; the first shift board exists; the first freshness clipboard exists; the first door sensor now exists too; the first binder lens exists; the first graph-walk lens exists; the first pressure gauge exists; the first ember packet exists; the first verdict slip now exists too; the first bounded launch lever and stop switch now exist too; the first explicit wakeup-hand now exists too; the first coordinator clipboard now exists too; the first operator readout exists too. The next slices are about giving real roles real ownership, not jawbones.
In natural language: current Epiphany can preserve a map, show a map, project a compact scene from the map, project derived job/progress slots from the map and retrieval summary, reflect a thin launcher seam over bound work, explicitly launch or interrupt that bound work through a bounded authority surface, emit live bound-job progress notifications from runtime `agent_job_progress` events, project a read-only freshness lens over retrieval and graph staleness, layer watcher-backed invalidation telemetry onto that lens for loaded threads, project a targeted graph/evidence context shard from the map, traverse bounded graph neighborhoods and path/symbol matches from the map, project planning captures/backlog/roadmap/objective drafts without adopting them, project context pressure from token telemetry, bank an in-flight investigation packet in durable typed state, reflect that packet back into prompt/scene/context, turn those signals into a read-only resume-versus-regather verdict, recommend the next explicit CRRC action over the verdict and worker/result state, print that recommendation in a dogfood operator view, explicitly launch one bounded `reorient-worker` job from that verdict, read its result back for review, explicitly accept a completed finding into typed state, retrieve evidence for the map, draft one explicit observation/evidence patch, derive a bounded graph/frontier/churn candidate from verified evidence-backed observations with code refs, choose a small coherent observation set when the caller does not provide one, favor the strongest selected observation when drafting that candidate, reject or accept a verified candidate, apply explicit map/evidence/churn/planning edits, notify clients after successful writes, and sanity-check those edits before they hit the ledger. It still does not invalidate stale graph regions automatically, execute Epiphany-owned long-running jobs beyond the borrowed runtime `agent_jobs` backend, adopt objective drafts without a human gate, or coordinate broad specialist ownership. Teeth are installed; chewing is supervised; the first bell rings; the first wall board exists; the first shift board exists; the first freshness clipboard exists; the first door sensor now exists too; the first binder lens exists; the first graph-walk lens exists; the first planning wall exists; the first pressure gauge exists; the first ember packet exists; the first verdict slip now exists too; the first bounded launch lever and stop switch now exist too; the first explicit wakeup-hand now exists too; the first coordinator clipboard now exists too; the first operator readout exists too. The next slices are about giving the human a planning cockpit and making Imagination useful without letting it seize the red pen.
The role board, fixed specialist templates, and first modeling accept path now exist too. Current Epiphany can project implementation, modeling/checkpoint, verification/review, and reorientation ownership through `thread/epiphany/roles`, explicitly launch fixed modeling/verification workers, read their findings back, apply reviewed modeling graph/checkpoint patches through `thread/epiphany/roleAccept`, and keep semantic acceptance review-gated. What remains is dogfooding the operator loop until real product friction, not imagined architecture guilt, tells us the next organ.
@ -1500,6 +1505,7 @@ Current tests cover the landed flows at useful seams:
- live app-server smoke for watcher-backed invalidation inputs inside the Phase 6 freshness boundary in `tools/epiphany_phase6_invalidation_smoke.py`.
- live app-server smoke for the first Phase 6 context boundary in `tools/epiphany_phase6_context_smoke.py`.
- live app-server smoke for the first Phase 6 graph traversal boundary in `tools/epiphany_phase6_graph_query_smoke.py`.
- live app-server smoke for the first Phase 6 planning boundary in `tools/epiphany_phase6_planning_smoke.py`.
- live app-server smoke for the first Phase 6 pressure boundary in `tools/epiphany_phase6_pressure_smoke.py`.
- live app-server smoke for the first Phase 6 reorientation policy boundary in `tools/epiphany_phase6_reorient_smoke.py`.
- live app-server smoke for the first bounded reorient-launch runtime consumer plus CRRC coordinator recommendations in `tools/epiphany_phase6_reorient_launch_smoke.py`.
@ -1523,6 +1529,7 @@ $env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'; cargo test -p codex-a
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_invalidation_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_context_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_graph_query_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_planning_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_pressure_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_reorient_smoke.py'
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_reorient_launch_smoke.py'

View file

@ -286,6 +286,13 @@ milestones, assignees, state, timestamps, comments, PR markers, and optional
Projects v2 metadata without letting GitHub become Epiphany's internal backlog
schema.
The first runtime slice is now landed: planning state lives in
`EpiphanyThreadState`, accepts typed captures/backlog/roadmap/objective drafts
through revision-gated `thread/epiphany/update`, renders into the prompt when
present, and exposes read-only `thread/epiphany/planning` for GUI clients. The
remaining product work is GUI presentation, explicit adoption/write actions,
Imagination synthesis, and real GitHub import.
The planning/future-shape role is **Imagination**. It works beside Eyes: Eyes
scouts outside reality and existing work, while Imagination shapes captures,
backlog, roadmap streams, and Objective Drafts ahead of the active run. That
@ -387,7 +394,7 @@ These remain later work:
- broader CRRC runtime coordination beyond the landed narrow safe-boundary compact, fixed reorient-worker launch, and pre-compaction checkpoint steering actions
- richer editor/runtime bridges beyond the first pinned Unity bridge
- richer GUI workflows for graph, evidence, job, invariant, and frontier steering after the operator console proves useful
- workspace-scoped planning substrate APIs and GUI Planning view, including conversation captures, backlog, roadmap streams, Objective Drafts, explicit objective adoption, the Imagination planning role surface, and read-only GitHub Issues import into captures
- GUI Planning view, explicit planning capture/adoption actions, the Imagination planning role surface, and real GitHub Issues import into typed captures; the first thread-state planning store and read-only projection are landed
- typed repetitive-work queues and final-answer gates, so the coordinator and GUI can see unfinished batch work before conversational closure pretends it is done
- stronger coordinator challenge loops for implementation claims, including objective-progress checks and explicit shortcut/embellishment rejection before another implementation turn is treated as successful
@ -440,6 +447,12 @@ Before modifying graph traversal behavior, run:
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_graph_query_smoke.py'
```
Before modifying planning state or projection behavior, run:
```powershell
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_planning_smoke.py'
```
For app-server protocol changes, expect to run the relevant protocol tests,
regenerate stable schema fixtures when needed, and verify the generated tree is
intentional.

View file

@ -386,16 +386,18 @@ Imagination may propose. The human adopts. The Coordinator routes.
## Implementation Slices
1. **Documented model**: this note.
2. **Local planning store**: add durable planning captures, backlog items,
roadmap streams, and objective drafts to Epiphany state or a sibling planning
store with read/write APIs.
1. **Documented model**: this note. Landed.
2. **Local planning store**: landed first inside `EpiphanyThreadState` with
typed captures, backlog items, roadmap streams, Objective Drafts, optional
workspace root, and GitHub source refs. The current write path is
revision-gated `thread/epiphany/update`; extracting a workspace-shared store
remains a later scaling choice.
3. **Imagination role surface**: add a prompt-backed planning/future-shape role
that can synthesize captures, backlog, roadmap streams, and objective drafts
alongside Eyes research without gaining adoption or implementation authority.
4. **Read-only planning projection**: add `thread/epiphany/planning` so GUI can
render captures, backlog, roadmap, objective drafts, and active objective
links without scraping files.
4. **Read-only planning projection**: landed as `thread/epiphany/planning` so
GUI can render captures, backlog, roadmap, objective drafts, and active
objective separation without scraping files or mutating state.
5. **Chat capture flow**: let the Self propose captures from conversation,
requiring human confirmation for durable planning writes.
6. **Objective draft/adoption flow**: add explicit draft creation and
@ -411,8 +413,9 @@ Imagination may propose. The human adopts. The Coordinator routes.
## Open Questions
- Does planning live inside `EpiphanyThreadState`, or should it be a workspace
planning store shared across threads?
- Planning currently lives inside `EpiphanyThreadState` for the MVP. A
workspace-shared planning store is still plausible once multiple threads need
the same backlog without copying state.
- Should GitHub import default to open issues only, or include closed issues as
historical decisions?
- How should roadmaps from repo docs be imported without turning every heading
@ -422,5 +425,7 @@ Imagination may propose. The human adopts. The Coordinator routes.
- How much priority scoring should be computed versus manually ranked by the
human?
My current bias: make planning workspace-scoped, import GitHub Issues into
captures first, and keep adoption of active objectives explicit.
My current bias after the first implementation slice: keep the MVP storage in
typed thread state with a workspace root marker, import GitHub Issues into
captures first, keep adoption explicit, and only extract a workspace planning
store when repeated cross-thread copying becomes a real wound.

View file

@ -28,7 +28,7 @@ Do not trust this file for the exact live HEAD. Always check git.
- Do not copy exact branch or HEAD from this note. Run `git status --short --branch` and `git log --oneline -5`.
- Phase 1 through Phase 5 are complete enough.
- Phase 6 has read-only `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/graphQuery`, `thread/epiphany/pressure`, `thread/epiphany/reorient`, `thread/epiphany/crrc`, `thread/epiphany/coordinator`, `thread/epiphany/reorientResult`, and `thread/epiphany/roleResult`; durable `jobBindings` now act as a thin Epiphany-owned launcher seam with launcher id, authority scope, and backend kind/job id, `thread/epiphany/jobLaunch` / `thread/epiphany/jobInterrupt` / `thread/epiphany/roleLaunch` now provide explicit bounded authority over that seam, jobs can overlay it onto live runtime `agent_jobs` progress for loaded threads, and `thread/epiphany/jobsUpdated` now translates live `agent_job_progress:{json}` background events into changed launcher-bound notifications without polling or scheduling. Freshness carries watcher-backed invalidation inputs, graphQuery traverses authoritative typed graph neighborhoods and path/symbol matches without mutation, roles project implementation/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleLaunch` can launch only fixed modeling/checkpoint or verification/review specialists, `roleResult` reads those outputs back as reviewable findings without mutation, `thread/epiphany/roleAccept` can apply a reviewed modeling/checkpoint `statePatch` through the existing state validator, reorient turns checkpoint plus freshness/pressure/watcher signals into a read-only resume-versus-regather verdict, `thread/epiphany/reorientLaunch` is the explicit runtime consumer over that verdict, `thread/epiphany/reorientResult` reads the launched worker output back as a reviewable finding without mutation or promotion, `thread/epiphany/reorientAccept` explicitly banks completed findings into accepted observation/evidence plus optional scratch/checkpoint state, `thread/epiphany/crrc` recommends the next explicit CRRC action without launching, accepting, compacting, scheduling, or mutating, and `thread/epiphany/coordinator` composes those signals into a fixed-lane MVP action recommendation without becoming a writer.
- Phase 6 has read-only `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/roles`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/graphQuery`, `thread/epiphany/planning`, `thread/epiphany/pressure`, `thread/epiphany/reorient`, `thread/epiphany/crrc`, `thread/epiphany/coordinator`, `thread/epiphany/reorientResult`, and `thread/epiphany/roleResult`; durable `jobBindings` now act as a thin Epiphany-owned launcher seam with launcher id, authority scope, and backend kind/job id, `thread/epiphany/jobLaunch` / `thread/epiphany/jobInterrupt` / `thread/epiphany/roleLaunch` now provide explicit bounded authority over that seam, jobs can overlay it onto live runtime `agent_jobs` progress for loaded threads, and `thread/epiphany/jobsUpdated` now translates live `agent_job_progress:{json}` background events into changed launcher-bound notifications without polling or scheduling. Freshness carries watcher-backed invalidation inputs, graphQuery traverses authoritative typed graph neighborhoods and path/symbol matches without mutation, planning projects typed captures/backlog/roadmap/objective drafts without adopting work, roles project implementation/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleLaunch` can launch only fixed modeling/checkpoint or verification/review specialists, `roleResult` reads those outputs back as reviewable findings without mutation, `thread/epiphany/roleAccept` can apply a reviewed modeling/checkpoint `statePatch` through the existing state validator, reorient turns checkpoint plus freshness/pressure/watcher signals into a read-only resume-versus-regather verdict, `thread/epiphany/reorientLaunch` is the explicit runtime consumer over that verdict, `thread/epiphany/reorientResult` reads the launched worker output back as a reviewable finding without mutation or promotion, `thread/epiphany/reorientAccept` explicitly banks completed findings into accepted observation/evidence plus optional scratch/checkpoint state, `thread/epiphany/crrc` recommends the next explicit CRRC action without launching, accepting, compacting, scheduling, or mutating, and `thread/epiphany/coordinator` composes those signals into a fixed-lane MVP action recommendation without becoming a writer.
- `tools/epiphany_mvp_status.py` is the first dogfood operator view. It starts or reads a thread through app-server and prints scene, pressure, reorient, jobs, roles, modeling/verification role result read-backs, reorient result, and CRRC recommendation as text or JSON.
- `tools/epiphany_mvp_coordinator.py` is the first auditable fixed-lane coordinator runner. It starts or reads a thread through app-server, follows the harness-native coordinator action, can auto-launch modeling, verification, or reorient-worker jobs, keeps semantic findings review-gated by default, and writes summary, steps, rendered snapshots, transcript, stderr, and final next-action artifacts under `.epiphany-dogfood/coordinator` or a caller-provided artifact directory.
- Native CRRC automation is now landed only at turn-complete safe boundaries. It may submit `Op::Compact` for coordinator-approved `compactRehydrateReorient` or for a successful pre-compaction checkpoint intervention's pending compact handoff, and it may launch the fixed `reorient-worker` for coordinator-approved `launchReorientWorker`. It does not auto-launch modeling/verification, accept findings, promote evidence, edit implementation code, or keep going after reviewable semantic output.
@ -50,7 +50,7 @@ Do not trust this file for the exact live HEAD. Always check git.
- 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 planning substrate is now formalized in `notes/epiphany-planning-substrate.md`. Chat is deliberation, not an objective pipe; ideas and GitHub Issues import into captures/inbox first, normalize into backlog/roadmap, then become Objective Drafts only after review. The planning/future-shape role is Imagination, working beside Eyes, and the active objective changes only through explicit human adoption.
- The planning substrate is now runtime-backed. Typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub issue source refs live in `EpiphanyThreadState`, validate through revision-gated `thread/epiphany/update`, render into prompts when present, and project read-only through `thread/epiphany/planning`. Chat is deliberation, not an objective pipe; ideas and GitHub Issues remain planning state until explicit human adoption.
- 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.
@ -97,7 +97,7 @@ The current spine:
- read-only modeling/checkpoint and verification/review specialist result read-back through `thread/epiphany/roleResult`
- review-gated modeling/checkpoint patch acceptance through `thread/epiphany/roleAccept`
- config-backed Eyes/research prompt text and active anti-Greenspun checks in base, implementation, verification, and coordinator prompts; a full launchable research lane is still a coordinator/protocol extension, not yet a landed roleLaunch lane
- planning substrate design for captures, backlog, roadmap streams, Objective Drafts, explicit adoption, the Imagination planning role, and GitHub Issues import in `notes/epiphany-planning-substrate.md`; runtime planning APIs and GUI Planning view are not landed yet
- typed planning state for captures, backlog, roadmap streams, Objective Drafts, explicit adoption boundaries, and GitHub Issues source refs; GUI Planning view, explicit adoption actions, and the Imagination synthesis lane are not landed yet
- bounded reorient-guided worker launch through `thread/epiphany/reorientLaunch`
- read-only reorient-worker result read-back through `thread/epiphany/reorientResult`
- explicit reorient-worker finding acceptance through `thread/epiphany/reorientAccept`
@ -111,6 +111,7 @@ The current spine:
- read-only retrieval/graph freshness reflection plus watcher-backed invalidation inputs through `thread/epiphany/freshness`
- read-only targeted state-shard reflection through `thread/epiphany/context`
- read-only graph traversal through `thread/epiphany/graphQuery`
- read-only planning projection through `thread/epiphany/planning`
- read-only current-context pressure reflection through `thread/epiphany/pressure`
- read-only CRRC reorientation policy through `thread/epiphany/reorient`
- read-only CRRC next-action recommendation through `thread/epiphany/crrc`
@ -126,6 +127,7 @@ The current spine:
- live watcher-backed invalidation smoke through `tools/epiphany_phase6_invalidation_smoke.py`
- live context app-server smoke through `tools/epiphany_phase6_context_smoke.py`
- live graph traversal app-server smoke through `tools/epiphany_phase6_graph_query_smoke.py`
- live planning app-server smoke through `tools/epiphany_phase6_planning_smoke.py`
- live pressure app-server smoke through `tools/epiphany_phase6_pressure_smoke.py`
- live reorientation app-server smoke through `tools/epiphany_phase6_reorient_smoke.py`
- live reorient-guided worker launch smoke through `tools/epiphany_phase6_reorient_launch_smoke.py`
@ -148,6 +150,7 @@ The exact current control flow is documented in
- `thread/epiphany/freshness` is read-only.
- `thread/epiphany/context` is read-only.
- `thread/epiphany/graphQuery` is read-only.
- `thread/epiphany/planning` is read-only.
- `thread/epiphany/pressure` is read-only.
- `thread/epiphany/reorient` is read-only.
- `thread/epiphany/crrc` is read-only.
@ -211,6 +214,12 @@ For graph traversal behavior changes, run:
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_graph_query_smoke.py'
```
For planning state/projection behavior changes, run:
```powershell
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_phase6_planning_smoke.py'
```
For context-pressure reflection behavior changes, run:
```powershell
@ -315,6 +324,13 @@ bounded neighbor traversal, and frontier-neighborhood inspection over
authoritative typed state. It returns graph records, frontier/checkpoint
identity, matched selectors, and missing ids without mutating or notifying.
The Phase 6 planning substrate runtime slice is also landed. It stores captures,
backlog items, roadmap streams, Objective Drafts, and GitHub source refs inside
typed Epiphany state, validates them through the revision-gated update path,
renders a bounded planning section into prompts, and exposes read-only
`thread/epiphany/planning` for clients. It does not adopt objectives, launch
work, or turn imported issues into implementation authority.
The bounded CRRC coordination/policy layer is now also landed as read-only
`thread/epiphany/reorient`. It consumes the landed pressure, freshness,
watcher, and investigation-checkpoint signals to decide whether a checkpoint
@ -414,11 +430,11 @@ 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`,
`thread/epiphany/graphQuery`, `thread/epiphany/pressure`, `thread/epiphany/reorient`,
`thread/epiphany/crrc`, `thread/epiphany/coordinator`,
`thread/epiphany/graphQuery`, `thread/epiphany/planning`, `thread/epiphany/pressure`,
`thread/epiphany/reorient`, `thread/epiphany/crrc`, `thread/epiphany/coordinator`,
`tools/epiphany_mvp_status.py`, `tools/epiphany_mvp_coordinator.py`, and
`tools/epiphany_phase6_graph_query_smoke.py` smokes are now guardrails, not the
next organs.
`tools/epiphany_phase6_graph_query_smoke.py` / `tools/epiphany_phase6_planning_smoke.py`
smokes are now guardrails, not the next organs.
## Not Yet

View file

@ -60,3 +60,4 @@
{"ts": "2026-05-01T04:59:59Z", "type": "implementation", "status": "ok", "note": "Prompt surfaces now preserve Codex's useful operator discipline explicitly and add an anti-Greenspun research guardrail. Research is named as the Eyes of the machine in config-backed prompts, implementation must use or perform bounded research before bespoke versions of known systems, verification treats unexamined reinvention as a risk, and the coordinator note asks whether the Hands checked known work before inventing."}
{"ts": "2026-05-01T00:00:00Z", "type": "design", "status": "ok", "note": "Planning substrate formalized in notes/epiphany-planning-substrate.md: conversation, captures/inbox, backlog, roadmap streams, Objective Drafts, and active objective adoption are distinct states. GitHub Issues import should land in captures first with source refs and metadata, not mutate active objectives or make GitHub the internal backlog model."}
{"ts": "2026-05-01T05:23:34Z", "type": "design", "status": "ok", "note": "The planner/future-shape role is named Imagination. It may synthesize captures, backlog, roadmap streams, objective drafts, and unresolved planning questions alongside Eyes research, but its outputs remain planning artifacts until explicit human adoption turns a draft into the active objective."}
{"ts": "2026-05-01T06:26:49Z", "type": "implementation", "status": "ok", "note": "The first planning substrate runtime slice landed: EpiphanyThreadState now carries typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub source refs; planning validates through revision-gated updates, renders into prompts, exposes read-only thread/epiphany/planning with generated schema types, appears in scene actions, and is covered by tools/epiphany_phase6_planning_smoke.py."}

View file

@ -12,9 +12,9 @@ objective:
explicit typed models of the codebase, active goal, evidence, and change
machinery they are working on.
current: >
Build the three-pronged Rider/Epiphany GUI/Unity development workflow so
the next Aetheria run has a code view, agent dashboard, and runtime
evidence path instead of source-only guesswork.
Make Epiphany's planning substrate real in the harness: durable captures,
backlog items, roadmap streams, Objective Drafts, and explicit human
adoption boundaries before those ideas become implementation objectives.
constraints:
- No frontier-scale training budget.
@ -57,7 +57,7 @@ data_flow:
active_subgoals:
- Treat Phase 5 update/distill/propose/promote/read/notification as complete enough unless a concrete regression appears.
- Preserve read-only boundaries for retrieve, distill, propose, scene, jobs, roles, roleResult, freshness, context, graphQuery, pressure, reorient, crrc, coordinator, and reorientResult.
- Preserve read-only boundaries for retrieve, distill, propose, scene, jobs, roles, roleResult, freshness, context, graphQuery, planning, pressure, reorient, crrc, coordinator, and reorientResult.
- Keep the landed Phase 6 coordinator, limited safe-boundary CRRC automation, and pre-compaction checkpoint intervention ready for the next bridge-equipped dogfood run.
- Preserve review gates for semantic findings; automatic CRRC may compact or launch the fixed reorient-worker, but not accept or promote.
- Keep persistent project state ruthlessly distilled so rehydration strengthens the next turn instead of bloating it.
@ -66,6 +66,7 @@ active_subgoals:
- Use `tools/epiphany_agent_telemetry.py` and generated `agent-function-telemetry.json` files to inspect behavior shape without opening sealed transcripts.
- Treat repeated no-diff implementation turns as an MVP blocker, not success. A bounded implementation pass must leave a reviewable workspace diff or an explicit reviewable failure artifact before dogfood can be called healthy.
- Build the Rider and Unity bridges before the next Aetheria implementation dogfood run: the Aetheria-side resident Unity editor package, named Unity bridge operation planner, and GUI Environment panel are now landed; next build the EpiphanyGraph-backed GUI graph dashboard, Rider context bridge, and Rider plugin MVP.
- Wire the newly landed planning state into the actual product loop: GUI Planning view, explicit capture/objective adoption actions, and Imagination planning synthesis remain the next organs after the read-only planning projection.
- Treat the target workflow as three integrated surfaces: Rider is the human code/diff view, Epiphany GUI is the agent dashboard and persisted-state graph view, and Unity is the pinned runtime/test/scene environment.
- Use `notes/epiphany-rider-unity-integration-plan.md` as the source-grounded plan for Rider-as-IDE and Unity-as-editor/runtime integration seams.
@ -73,9 +74,9 @@ accepted_design:
- Epiphany is a fork-level modeling architecture, not merely a Codex collaboration mode.
- Authoritative Epiphany state lives in Codex protocol/core session and rollout state.
- The prompt reads typed state through a bounded `<epiphany_state>` developer fragment.
- Clients read typed state through `Thread.epiphanyState`, compact reflections such as `thread/epiphany/scene`, `thread/epiphany/jobs`, and `thread/epiphany/freshness`, targeted state shards through `thread/epiphany/context`, bounded graph traversal through `thread/epiphany/graphQuery`, runtime pressure through `thread/epiphany/pressure`, bounded CRRC reorientation verdicts through `thread/epiphany/reorient`, read-only CRRC next-action recommendations through `thread/epiphany/crrc`, role ownership through `thread/epiphany/roles`, reviewable role output through `thread/epiphany/roleResult`, and live bound-job progress through `thread/epiphany/jobsUpdated`.
- Clients read typed state through `Thread.epiphanyState`, compact reflections such as `thread/epiphany/scene`, `thread/epiphany/jobs`, and `thread/epiphany/freshness`, targeted state shards through `thread/epiphany/context`, bounded graph traversal through `thread/epiphany/graphQuery`, durable planning projection through `thread/epiphany/planning`, runtime pressure through `thread/epiphany/pressure`, bounded CRRC reorientation verdicts through `thread/epiphany/reorient`, read-only CRRC next-action recommendations through `thread/epiphany/crrc`, role ownership through `thread/epiphany/roles`, reviewable role output through `thread/epiphany/roleResult`, and live bound-job progress through `thread/epiphany/jobsUpdated`.
- Durable typed state writes route through `thread/epiphany/update`, accepted `thread/epiphany/promote`, `thread/epiphany/reorientAccept`, `thread/epiphany/roleAccept`, or the bounded `thread/epiphany/jobLaunch`, `thread/epiphany/jobInterrupt`, `thread/epiphany/reorientLaunch`, and `thread/epiphany/roleLaunch` authority surfaces when they mutate state or `job_bindings`.
- `thread/epiphany/retrieve`, `thread/epiphany/distill`, `thread/epiphany/propose`, `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/graphQuery`, `thread/epiphany/pressure`, and `thread/epiphany/reorient` stay read-only.
- `thread/epiphany/retrieve`, `thread/epiphany/distill`, `thread/epiphany/propose`, `thread/epiphany/scene`, `thread/epiphany/jobs`, `thread/epiphany/freshness`, `thread/epiphany/context`, `thread/epiphany/graphQuery`, `thread/epiphany/planning`, `thread/epiphany/pressure`, and `thread/epiphany/reorient` stay read-only.
- `thread/epiphany/index` writes the retrieval catalog, not durable Epiphany understanding.
- Qdrant is the preferred persistent semantic backend; BM25 remains the bootstrap/fallback/control path.
- `epiphany-core` owns prompt rendering, rollout replay helpers, retrieval/indexing, distillation, proposal, and promotion policy where possible.
@ -134,6 +135,7 @@ accepted_design:
- Rider and Unity are environment organs, not sources of truth: Rider should expose IDE/source context, diagnostics, navigation, and changed ranges; Unity should expose pinned-editor runtime facts, compilation, tests, probes, assets, scenes, and logs; Epiphany remains the durable Self that coordinates, records, and reviews.
- The product architecture is three-pronged: Rider is the code view for human inspection of repo state, source tree, diffs, diagnostics, and code refs; Epiphany GUI is the agent dashboard for objectives, specialist lane state, logs/artifacts, persisted typed state, and graph/control-flow views; Unity is the runtime environment for pinned tests, probes, scene configuration, assets, shaders, and play/edit-mode evidence.
- Epiphany needs a workspace-scoped planning substrate separate from the active objective: conversation captures, inbox, normalized backlog, roadmap streams, objective drafts, and explicit objective adoption are distinct states. The active objective remains the bounded run contract; chat and imported issues are planning inputs until reviewed and promoted. `notes/epiphany-planning-substrate.md` defines the product model, including GitHub Issues import semantics.
- The first runtime planning slice is landed inside `EpiphanyThreadState`: typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub source refs are revision-gated through `thread/epiphany/update`, rendered into prompts when present, and reflected read-only through `thread/epiphany/planning`.
- The planning/future-shape role is Imagination: it can synthesize captures, backlog shape, roadmap streams, and Objective Drafts while Eyes scouts outside reality, but its output remains planning state until explicit human adoption.
- Unity integration must be editor-resident, not text-archeology-only: scene files, prefabs, materials, shaders, ScriptableObjects, asset GUIDs, prefab overrides, and serialized component fields should be inspected through a Unity Editor package using Unity APIs, with narrow mutation preview/apply commands and artifact receipts.
- The first resident Unity editor package now lives in the Aetheria branch `codex/epiphany-unity-editor-bridge`: `Assets/Editor/Epiphany/EpiphanyEditorBridge.cs` exposes editor-resident inspect, compilation, scene, prefab, serialized-object, and reference-search probes with JSON/Markdown artifacts. Epiphany's Unity bridge detects that package and plans named probe/test commands through `GameCult.Epiphany.Unity.EpiphanyEditorBridge.RunProbe`, while runtime execution remains blocked until the exact project-pinned Unity editor is present.
@ -150,7 +152,7 @@ landed_baseline:
- Phase 3: typed client read surface through `Thread.epiphanyState`.
- Phase 4: hybrid retrieval plus explicit Qdrant indexing with BM25 fallback.
- Phase 5: typed update/distill/propose/promote/read/notification control plane.
- Phase 6: read-only scene, job/progress, freshness with watcher-backed invalidation inputs, targeted context, graph traversal, current-context pressure, reorientation policy, and CRRC coordinator recommendation surfaces, plus durable investigation checkpointing for compaction-safe planning, live bound-job progress notifications, a thin launcher seam in durable job bindings, explicit launch/interrupt authority over that seam, and a bounded reorient-guided worker launch surface.
- Phase 6: read-only scene, job/progress, freshness with watcher-backed invalidation inputs, targeted context, graph traversal, durable planning projection, current-context pressure, reorientation policy, and CRRC coordinator recommendation surfaces, plus durable investigation checkpointing for compaction-safe planning, live bound-job progress notifications, a thin launcher seam in durable job bindings, explicit launch/interrupt authority over that seam, and a bounded reorient-guided worker launch surface.
- Phase 6 read-back: read-only reorient-worker result reflection through `thread/epiphany/reorientResult`.
- Phase 6 acceptance: explicit reorient-worker finding acceptance through `thread/epiphany/reorientAccept`.
- Phase 6 dogfood view: first CLI operator status over scene/pressure/reorient/jobs/result/CRRC.
@ -165,6 +167,7 @@ landed_baseline:
- Phase 6 GUI operator shell: Tauri v2 + React console under `apps/epiphany-gui` over the existing status bridge and artifact bundles, with visual smoke, durable checkpoint preparation, fixed lane launch/read-back controls, and explicit review-gated reorient acceptance.
- Phase 6 Unity runtime bridge: `tools/epiphany_unity_bridge.py` plus GUI Inspect Unity action resolve pinned Unity editors, reject wrong/missing versions, and write runtime artifacts before engine assumptions are treated as testable.
- Planning substrate design: `notes/epiphany-planning-substrate.md` formalizes conversation capture, inbox, backlog, roadmap streams, objective drafts, explicit adoption, the Imagination planning role, and GitHub Issues import.
- Phase 6 planning substrate runtime slice: typed planning state in `EpiphanyThreadState`, prompt rendering, revision-gated update validation, read-only `thread/epiphany/planning`, scene action reflection, generated schemas, and live planning smoke coverage.
guardrails:
- Use `tools/epiphany_phase5_smoke.py` before modifying update, distill, propose, promote, read-projection, or notification behavior.
- Use `tools/epiphany_phase6_scene_smoke.py` before modifying scene projection behavior.
@ -174,6 +177,7 @@ landed_baseline:
- Use `tools/epiphany_phase6_invalidation_smoke.py` before modifying watcher-backed invalidation behavior inside freshness reflection.
- Use `tools/epiphany_phase6_context_smoke.py` before modifying targeted context-shard behavior.
- Use `tools/epiphany_phase6_graph_query_smoke.py` before modifying graph traversal behavior.
- Use `tools/epiphany_phase6_planning_smoke.py` before modifying planning state or the read-only planning projection.
- Use `tools/epiphany_phase6_pressure_smoke.py` before modifying context-pressure reflection behavior.
- Use `tools/epiphany_phase6_reorient_smoke.py` before modifying bounded CRRC reorientation policy behavior.
- Use `tools/epiphany_phase6_reorient_launch_smoke.py` before modifying the bounded reorient-guided worker launch surface.
@ -203,5 +207,5 @@ rejected_paths:
reason: persistent state that accumulates every local truth becomes memory cruft and weakens rehydration
current_status:
summary: Phase 1 durable state through Phase 6 GUI/coordinator/specialist/CRRC MVP surfaces are landed. The Aetheria supervised run found and fixed real harness wounds in coordinator policy, no-diff audits, stale job/result projection, and reorient acceptance. The Unity incident proved the next blocker is environment access, so `notes/epiphany-rider-unity-integration-plan.md` now governs a three-pronged bridge-building pass: Rider code view, Epiphany GUI agent dashboard, and Unity runtime environment, with Unity integration treated as a resident editor package rather than text-only file inspection. The planning substrate is now formalized with Imagination as the planning/future-shape role and GitHub Issues import landing in captures before backlog or objective adoption.
next_action: Continue the three-pronged Rider/Epiphany GUI/Unity workflow before further Aetheria implementation dogfood: the Aetheria resident Unity editor package, named Unity bridge operation planner, and GUI Environment panel are landed; next build the EpiphanyGraph-backed GUI graph dashboard, Rider context bridge, then Rider plugin MVP. The next dogfood run should happen only after Epiphany can gather Rider/source context and Unity/editor runtime evidence through auditable bridges. Do not let implementation workers invoke Unity directly or refactor Unity-owned serialized scene/prefab state as raw text when an editor API path exists; use bridge artifacts as evidence of either a pinned-editor run, runtime/editor facts, or a missing-runtime blocker. Do not inspect raw worker transcripts or `rawResult` payloads unless the user explicitly requests forensic debugging.
summary: Phase 1 durable state through Phase 6 GUI/coordinator/specialist/CRRC MVP surfaces are landed. The Aetheria supervised run found and fixed real harness wounds in coordinator policy, no-diff audits, stale job/result projection, and reorient acceptance. The Unity incident proved the next blocker is environment access, so `notes/epiphany-rider-unity-integration-plan.md` governs the Rider/Epiphany GUI/Unity workflow. The planning substrate is no longer just doctrine: typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub source refs now live in Epiphany state, render into prompts, validate through revision-gated updates, and project through read-only `thread/epiphany/planning`.
next_action: Build the GUI Planning view and explicit planning write/adoption flow over the landed read-only projection, then add the Imagination planning synthesis lane. Keep active objective adoption human-gated: captures, backlog items, roadmap streams, GitHub Issues, and Objective Drafts are planning material until explicitly adopted. After the planning loop is visible, return to the EpiphanyGraph dashboard, Rider context bridge, and Rider plugin MVP before another Aetheria implementation dogfood run.

View file

@ -0,0 +1,314 @@
from __future__ import annotations
import argparse
import json
from pathlib import Path
from typing import Any
from epiphany_phase5_smoke import AppServerClient
from epiphany_phase5_smoke import DEFAULT_APP_SERVER
from epiphany_phase5_smoke import ROOT
from epiphany_phase5_smoke import require
from epiphany_phase5_smoke import reset_smoke_paths
DEFAULT_CODEX_HOME = ROOT / ".epiphany-smoke" / "phase6-planning-codex-home"
DEFAULT_RESULT = ROOT / ".epiphany-smoke" / "phase6-planning-smoke-result.json"
DEFAULT_TRANSCRIPT = ROOT / ".epiphany-smoke" / "phase6-planning-smoke-transcript.jsonl"
DEFAULT_STDERR = ROOT / ".epiphany-smoke" / "phase6-planning-smoke-server.stderr.log"
def planning_patch() -> dict[str, Any]:
github_source = {
"kind": "github_issue",
"provider": "github",
"repo": "GameCult/EpiphanyAgent",
"issue_number": 42,
"url": "https://github.com/GameCult/EpiphanyAgent/issues/42",
"state": "open",
"labels": ["planning", "mvp"],
"assignees": ["Meta"],
"author": "Meta",
"created_at": "2026-05-01T10:00:00Z",
"updated_at": "2026-05-01T10:05:00Z",
"imported_at": "2026-05-01T10:10:00Z",
}
chat_source = {
"kind": "chat",
"uri": "codex://threads/planning-smoke",
"external_id": "turn-planning-smoke",
}
return {
"objective": "Keep planning state reviewable before adopting an implementation objective.",
"planning": {
"workspace_root": str(ROOT),
"captures": [
{
"id": "capture-github-planning",
"title": "Import GitHub issue into planning inbox",
"body": "Issues should become planning captures before becoming objectives.",
"confidence": "observed",
"status": "inbox",
"speaker": "human",
"tags": ["github", "backlog"],
"source": github_source,
"created_at": "2026-05-01T10:10:00Z",
"updated_at": "2026-05-01T10:10:00Z",
},
{
"id": "capture-chat-planning",
"title": "Draft objectives from chat only after bounding them",
"body": "User discussion remains planning material until it becomes a firm artifact.",
"confidence": "medium",
"status": "triaged",
"speaker": "human",
"tags": ["chat", "objective"],
"source": chat_source,
"created_at": "2026-05-01T10:12:00Z",
"updated_at": "2026-05-01T10:12:00Z",
},
],
"backlog_items": [
{
"id": "backlog-planning-dashboard",
"title": "Expose planning state in the Epiphany dashboard",
"kind": "feature",
"summary": "Show captures, backlog, roadmap streams, and objective drafts.",
"status": "ready",
"horizon": "near",
"priority": {
"value": "high",
"rationale": "Planning needs a visible user review loop before automation.",
"impact": "user-steering",
"urgency": "soon",
"confidence": "medium",
"effort": "small",
"unblocks": ["objective-adoption"],
},
"confidence": "medium",
"product_area": "epiphany-gui",
"lane_hints": ["imagination", "hands", "soul"],
"acceptance_sketch": ["Dashboard can render typed planning records."],
"source_refs": [github_source, chat_source],
"updated_at": "2026-05-01T10:15:00Z",
}
],
"roadmap_streams": [
{
"id": "stream-user-steering",
"title": "Human-steered planning",
"purpose": "Keep future work visible and bounded before implementation starts.",
"status": "active",
"item_ids": ["backlog-planning-dashboard"],
"near_term_focus": "backlog-planning-dashboard",
"review_cadence": "per objective",
}
],
"objective_drafts": [
{
"id": "draft-planning-dashboard",
"title": "Build the planning dashboard slice",
"summary": "Render planning records and let the user adopt one bounded objective.",
"source_item_ids": ["backlog-planning-dashboard"],
"scope": {
"includes": ["read-only planning projection", "objective draft review"],
"excludes": ["automatic objective adoption"],
},
"acceptance_criteria": [
"Planning records render without changing thread state.",
"A draft objective remains review-gated.",
],
"evidence_required": ["live smoke", "GUI screenshot"],
"lane_plan": {
"imagination": "organize planning records into a bounded objective candidate",
"eyes": "check prior art and GitHub issue metadata shape",
"hands": "wire dashboard controls after the read-only surface is stable",
"soul": "verify no planning record silently becomes active objective",
},
"risks": ["accidental objective adoption"],
"review_gates": ["human adoption"],
"status": "draft",
}
],
},
}
def assert_missing_planning(response: dict[str, Any]) -> None:
require(response["source"] == "live", "missing planning should report live source")
require(response["stateStatus"] == "missing", "missing planning should report missing state")
require("stateRevision" not in response, "missing planning should not invent a revision")
require(response["planning"] == {}, "missing planning should return empty planning")
summary = response["summary"]
require(summary["captureCount"] == 0, "missing planning should not invent captures")
require(summary["backlogItemCount"] == 0, "missing planning should not invent backlog")
require("activeObjective" not in summary, "missing planning should not invent objective")
def assert_ready_planning(response: dict[str, Any]) -> None:
require(response["source"] == "live", "ready planning should report live source")
require(response["stateStatus"] == "ready", "ready planning should report ready state")
require(response["stateRevision"] == 1, "ready planning should expose current revision")
planning = response["planning"]
require(
[capture["id"] for capture in planning["captures"]]
== ["capture-github-planning", "capture-chat-planning"],
"planning should preserve captures",
)
require(
planning["captures"][0]["source"]["kind"] == "github_issue",
"planning should preserve GitHub issue source kind",
)
require(
planning["captures"][0]["source"]["issue_number"] == 42,
"planning should preserve GitHub issue number",
)
require(
[item["id"] for item in planning["backlog_items"]] == ["backlog-planning-dashboard"],
"planning should preserve backlog items",
)
require(
planning["roadmap_streams"][0]["near_term_focus"] == "backlog-planning-dashboard",
"planning should preserve roadmap near-term focus",
)
require(
planning["objective_drafts"][0]["status"] == "draft",
"planning should preserve draft objective state",
)
summary = response["summary"]
require(summary["captureCount"] == 2, "planning summary should count captures")
require(summary["pendingCaptureCount"] == 1, "planning summary should count inbox captures")
require(
summary["githubIssueCaptureCount"] == 1,
"planning summary should count GitHub captures",
)
require(summary["backlogItemCount"] == 1, "planning summary should count backlog")
require(summary["readyBacklogItemCount"] == 1, "planning summary should count ready backlog")
require(summary["roadmapStreamCount"] == 1, "planning summary should count roadmap streams")
require(summary["objectiveDraftCount"] == 1, "planning summary should count drafts")
require(summary["draftObjectiveCount"] == 1, "planning summary should count draft status")
require(
summary["activeObjective"].startswith("Keep planning state reviewable"),
"planning summary should expose the active thread objective separately",
)
require(
"human explicitly adopts an objective" in summary["note"],
"planning summary should remind clients that adoption is explicit",
)
def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
app_server = args.app_server.resolve()
if not app_server.exists():
raise FileNotFoundError(f"codex app-server binary not found: {app_server}")
codex_home = args.codex_home.resolve()
result_path = args.result.resolve()
transcript_path = args.transcript.resolve()
stderr_path = args.stderr.resolve()
reset_smoke_paths(codex_home, result_path, transcript_path, stderr_path)
with AppServerClient(app_server, codex_home, transcript_path, stderr_path) as client:
client.send(
"initialize",
{
"clientInfo": {
"name": "epiphany-phase6-planning-smoke",
"title": "Epiphany Phase 6 Planning Smoke",
"version": "0.1.0",
},
"capabilities": {"experimentalApi": True},
},
)
client.send("initialized", expect_response=False)
started = client.send(
"thread/start",
{"cwd": str(ROOT / "epiphany-core"), "ephemeral": True},
)
assert started is not None
thread_id = started["thread"]["id"]
missing_notification_start = len(client.notifications)
missing_response = client.send("thread/epiphany/planning", {"threadId": thread_id})
assert missing_response is not None
require(missing_response["threadId"] == thread_id, "planning response should echo thread id")
assert_missing_planning(missing_response)
client.require_no_notification(
"thread/epiphany/stateUpdated",
start_index=missing_notification_start,
)
update_notification_start = len(client.notifications)
update = client.send(
"thread/epiphany/update",
{"threadId": thread_id, "expectedRevision": 0, "patch": planning_patch()},
)
assert update is not None
require(update["revision"] == 1, "planning patch should advance revision to 1")
update_notification = client.wait_for_notification(
"thread/epiphany/stateUpdated",
start_index=update_notification_start,
)
require(
"planning" in update_notification["params"]["changedFields"],
"planning update should report the planning changed field",
)
planning_notification_start = len(client.notifications)
ready_response = client.send("thread/epiphany/planning", {"threadId": thread_id})
assert ready_response is not None
assert_ready_planning(ready_response)
client.require_no_notification(
"thread/epiphany/stateUpdated",
start_index=planning_notification_start,
)
final_read = client.send("thread/read", {"threadId": thread_id, "includeTurns": False})
assert final_read is not None
require(
final_read["thread"]["epiphanyState"]["revision"] == 1,
"planning reflection should not mutate state revision",
)
result = {
"threadId": thread_id,
"codexHome": str(codex_home),
"missingStateStatus": missing_response["stateStatus"],
"readyStateStatus": ready_response["stateStatus"],
"readyRevision": ready_response["stateRevision"],
"captureCount": ready_response["summary"]["captureCount"],
"githubIssueCaptureCount": ready_response["summary"]["githubIssueCaptureCount"],
"backlogItemCount": ready_response["summary"]["backlogItemCount"],
"objectiveDraftCount": ready_response["summary"]["objectiveDraftCount"],
"planningNotificationCount": client.count_notifications(
"thread/epiphany/stateUpdated",
start_index=planning_notification_start,
),
"finalReadRevision": final_read["thread"]["epiphanyState"]["revision"],
}
result_path.parent.mkdir(parents=True, exist_ok=True)
result_path.write_text(
json.dumps(result, indent=2, ensure_ascii=False) + "\n",
encoding="utf-8",
)
return result
def main() -> int:
parser = argparse.ArgumentParser(
description="Live-smoke the Phase 6 Epiphany planning substrate surface."
)
parser.add_argument("--app-server", type=Path, default=DEFAULT_APP_SERVER)
parser.add_argument("--codex-home", type=Path, default=DEFAULT_CODEX_HOME)
parser.add_argument("--result", type=Path, default=DEFAULT_RESULT)
parser.add_argument("--transcript", type=Path, default=DEFAULT_TRANSCRIPT)
parser.add_argument("--stderr", type=Path, default=DEFAULT_STDERR)
args = parser.parse_args()
result = run_smoke(args)
print(json.dumps(result, indent=2, ensure_ascii=False))
return 0
if __name__ == "__main__":
raise SystemExit(main())

View file

@ -149,6 +149,7 @@ def assert_missing_scene(scene: dict[str, Any]) -> None:
"retrieve",
"distill",
"context",
"planning",
"graphQuery",
"jobs",
"roles",
@ -246,6 +247,7 @@ def assert_ready_scene(scene: dict[str, Any], expected_revision: int) -> None:
"retrieve",
"distill",
"context",
"planning",
"graphQuery",
"jobs",
"roles",

View file

@ -742,6 +742,97 @@
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -1276,6 +1367,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -1311,6 +1527,324 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -4070,6 +4604,16 @@
},
"type": "array"
},
"planning": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyPlanningState"
},
{
"type": "null"
}
]
},
"scratch": {
"anyOf": [
{

View file

@ -1002,6 +1002,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -1536,6 +1627,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -1571,6 +1787,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1688,6 +2175,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1833,6 +2367,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"
@ -4083,7 +4620,8 @@
"observations",
"evidence",
"churn",
"mode"
"mode",
"planning"
],
"type": "string"
},
@ -4125,7 +4663,8 @@
"promote",
"jobLaunch",
"jobInterrupt",
"reorientAccept"
"reorientAccept",
"roleAccept"
],
"type": "string"
},

View file

@ -7871,6 +7871,97 @@
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/v2/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/v2/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -8405,6 +8496,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/v2/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/v2/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -8440,6 +8656,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/v2/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/v2/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/v2/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/v2/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/v2/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -8557,6 +9044,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -8702,6 +9236,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/v2/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/v2/EpiphanyEvidenceRecord"
@ -15678,6 +16215,71 @@
],
"type": "string"
},
"ThreadEpiphanyPlanningSummary": {
"properties": {
"activeObjective": {
"type": [
"string",
"null"
]
},
"backlogItemCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"captureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"draftObjectiveCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"githubIssueCaptureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"note": {
"type": "string"
},
"objectiveDraftCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"pendingCaptureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readyBacklogItemCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"roadmapStreamCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"backlogItemCount",
"captureCount",
"draftObjectiveCount",
"githubIssueCaptureCount",
"note",
"objectiveDraftCount",
"pendingCaptureCount",
"readyBacklogItemCount",
"roadmapStreamCount"
],
"type": "object"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {
@ -16184,6 +16786,12 @@
"null"
]
},
"evidenceGaps": {
"items": {
"type": "string"
},
"type": "array"
},
"evidenceIds": {
"items": {
"type": "string"
@ -16220,7 +16828,19 @@
"null"
]
},
"openQuestions": {
"items": {
"type": "string"
},
"type": "array"
},
"rawResult": true,
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"roleId": {
"$ref": "#/definitions/v2/ThreadEpiphanyRoleId"
},
@ -16230,6 +16850,16 @@
"null"
]
},
"statePatch": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanyUpdatePatch"
},
{
"type": "null"
}
]
},
"summary": {
"type": [
"string",
@ -16446,12 +17076,14 @@
"retrieve",
"distill",
"context",
"planning",
"graphQuery",
"jobs",
"roles",
"coordinator",
"roleLaunch",
"roleResult",
"roleAccept",
"jobLaunch",
"jobInterrupt",
"freshness",
@ -16816,7 +17448,8 @@
"observations",
"evidence",
"churn",
"mode"
"mode",
"planning"
],
"type": "string"
},
@ -16860,7 +17493,8 @@
"promote",
"jobLaunch",
"jobInterrupt",
"reorientAccept"
"reorientAccept",
"roleAccept"
],
"type": "string"
},
@ -16968,6 +17602,16 @@
},
"type": "array"
},
"planning": {
"anyOf": [
{
"$ref": "#/definitions/v2/EpiphanyPlanningState"
},
{
"type": "null"
}
]
},
"scratch": {
"anyOf": [
{

View file

@ -4411,6 +4411,97 @@
],
"type": "object"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -4945,6 +5036,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -4980,6 +5196,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -5097,6 +5584,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -5242,6 +5776,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"
@ -13565,6 +14102,71 @@
],
"type": "string"
},
"ThreadEpiphanyPlanningSummary": {
"properties": {
"activeObjective": {
"type": [
"string",
"null"
]
},
"backlogItemCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"captureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"draftObjectiveCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"githubIssueCaptureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"note": {
"type": "string"
},
"objectiveDraftCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"pendingCaptureCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"readyBacklogItemCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
},
"roadmapStreamCount": {
"format": "uint32",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"backlogItemCount",
"captureCount",
"draftObjectiveCount",
"githubIssueCaptureCount",
"note",
"objectiveDraftCount",
"pendingCaptureCount",
"readyBacklogItemCount",
"roadmapStreamCount"
],
"type": "object"
},
"ThreadEpiphanyPressure": {
"properties": {
"basis": {
@ -14071,6 +14673,12 @@
"null"
]
},
"evidenceGaps": {
"items": {
"type": "string"
},
"type": "array"
},
"evidenceIds": {
"items": {
"type": "string"
@ -14107,7 +14715,19 @@
"null"
]
},
"openQuestions": {
"items": {
"type": "string"
},
"type": "array"
},
"rawResult": true,
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"roleId": {
"$ref": "#/definitions/ThreadEpiphanyRoleId"
},
@ -14117,6 +14737,16 @@
"null"
]
},
"statePatch": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyUpdatePatch"
},
{
"type": "null"
}
]
},
"summary": {
"type": [
"string",
@ -14333,12 +14963,14 @@
"retrieve",
"distill",
"context",
"planning",
"graphQuery",
"jobs",
"roles",
"coordinator",
"roleLaunch",
"roleResult",
"roleAccept",
"jobLaunch",
"jobInterrupt",
"freshness",
@ -14703,7 +15335,8 @@
"observations",
"evidence",
"churn",
"mode"
"mode",
"planning"
],
"type": "string"
},
@ -14747,7 +15380,8 @@
"promote",
"jobLaunch",
"jobInterrupt",
"reorientAccept"
"reorientAccept",
"roleAccept"
],
"type": "string"
},
@ -14855,6 +15489,16 @@
},
"type": "array"
},
"planning": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyPlanningState"
},
{
"type": "null"
}
]
},
"scratch": {
"anyOf": [
{

View file

@ -1,6 +1,97 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -535,6 +626,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -570,6 +786,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -687,6 +1174,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -832,6 +1366,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"
@ -898,7 +1435,8 @@
"observations",
"evidence",
"churn",
"mode"
"mode",
"planning"
],
"type": "string"
},
@ -908,7 +1446,8 @@
"promote",
"jobLaunch",
"jobInterrupt",
"reorientAccept"
"reorientAccept",
"roleAccept"
],
"type": "string"
}

View file

@ -449,6 +449,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -983,6 +1074,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -1018,6 +1234,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1135,6 +1622,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1280,6 +1814,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -449,6 +449,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -983,6 +1074,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -1018,6 +1234,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1135,6 +1622,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1280,6 +1814,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -449,6 +449,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -983,6 +1074,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -1018,6 +1234,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1135,6 +1622,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1280,6 +1814,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -390,6 +390,97 @@
],
"type": "string"
},
"EpiphanyBacklogItem": {
"properties": {
"acceptance_sketch": {
"items": {
"type": "string"
},
"type": "array"
},
"blockers": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"duplicate_of": {
"type": [
"string",
"null"
]
},
"evidence_refs": {
"items": {
"type": "string"
},
"type": "array"
},
"horizon": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"lane_hints": {
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"$ref": "#/definitions/EpiphanyPlanningPriority"
},
"product_area": {
"type": "string"
},
"source_refs": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"horizon",
"id",
"kind",
"priority",
"product_area",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyChurnState": {
"properties": {
"diff_pressure": {
@ -924,6 +1015,131 @@
],
"type": "object"
},
"EpiphanyObjectiveDraft": {
"properties": {
"acceptance_criteria": {
"items": {
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"evidence_required": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"lane_plan": {
"$ref": "#/definitions/EpiphanyObjectiveDraftLanePlan"
},
"review_gates": {
"items": {
"type": "string"
},
"type": "array"
},
"risks": {
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"$ref": "#/definitions/EpiphanyObjectiveDraftScope"
},
"source_item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"lane_plan",
"scope",
"status",
"summary",
"title"
],
"type": "object"
},
"EpiphanyObjectiveDraftLanePlan": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"eyes": {
"type": [
"string",
"null"
]
},
"hands": {
"type": [
"string",
"null"
]
},
"imagination": {
"type": [
"string",
"null"
]
},
"life": {
"type": [
"string",
"null"
]
},
"soul": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyObjectiveDraftScope": {
"properties": {
"excludes": {
"items": {
"type": "string"
},
"type": "array"
},
"includes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"EpiphanyObservation": {
"properties": {
"code_refs": {
@ -959,6 +1175,277 @@
],
"type": "object"
},
"EpiphanyPlanningCapture": {
"properties": {
"body": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"source": {
"$ref": "#/definitions/EpiphanyPlanningSourceRef"
},
"speaker": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"updated_at": {
"type": [
"string",
"null"
]
}
},
"required": [
"confidence",
"id",
"source",
"status",
"title"
],
"type": "object"
},
"EpiphanyPlanningPriority": {
"properties": {
"blocks": {
"items": {
"type": "string"
},
"type": "array"
},
"confidence": {
"type": [
"string",
"null"
]
},
"effort": {
"type": [
"string",
"null"
]
},
"impact": {
"type": [
"string",
"null"
]
},
"rationale": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"unblocks": {
"items": {
"type": "string"
},
"type": "array"
},
"urgency": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"rationale",
"value"
],
"type": "object"
},
"EpiphanyPlanningSourceRef": {
"properties": {
"assignees": {
"items": {
"type": "string"
},
"type": "array"
},
"author": {
"type": [
"string",
"null"
]
},
"closed_at": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": [
"string",
"null"
]
},
"database_id": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"imported_at": {
"type": [
"string",
"null"
]
},
"is_pull_request": {
"type": [
"boolean",
"null"
]
},
"issue_number": {
"format": "uint64",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"kind": {
"type": "string"
},
"labels": {
"items": {
"type": "string"
},
"type": "array"
},
"milestone": {
"type": [
"string",
"null"
]
},
"node_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"repo": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": [
"string",
"null"
]
},
"uri": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind"
],
"type": "object"
},
"EpiphanyPlanningState": {
"properties": {
"backlog_items": {
"items": {
"$ref": "#/definitions/EpiphanyBacklogItem"
},
"type": "array"
},
"captures": {
"items": {
"$ref": "#/definitions/EpiphanyPlanningCapture"
},
"type": "array"
},
"objective_drafts": {
"items": {
"$ref": "#/definitions/EpiphanyObjectiveDraft"
},
"type": "array"
},
"roadmap_streams": {
"items": {
"$ref": "#/definitions/EpiphanyRoadmapStream"
},
"type": "array"
},
"workspace_root": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EpiphanyRetrievalShardSummary": {
"properties": {
"exact_available": {
@ -1076,6 +1563,53 @@
],
"type": "string"
},
"EpiphanyRoadmapStream": {
"properties": {
"blocked_by": {
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"near_term_focus": {
"type": [
"string",
"null"
]
},
"purpose": {
"type": "string"
},
"review_cadence": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"purpose",
"status",
"title"
],
"type": "object"
},
"EpiphanyScratchPad": {
"properties": {
"hypothesis": {
@ -1221,6 +1755,9 @@
},
"type": "array"
},
"planning": {
"$ref": "#/definitions/EpiphanyPlanningState"
},
"recent_evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type EpiphanyPlanningState = { workspace_root?: string | null, captures?: Array<EpiphanyPlanningCapture>, backlog_items?: Array<EpiphanyBacklogItem>, roadmap_streams?: Array<EpiphanyRoadmapStream>, objective_drafts?: Array<EpiphanyObjectiveDraft>, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type EpiphanyThreadState = { revision: bigint, objective?: string | null, active_subgoal_id?: string | null, subgoals?: Array<EpiphanySubgoal>, invariants?: Array<EpiphanyInvariant>, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array<EpiphanyJobBinding>, observations?: Array<EpiphanyObservation>, recent_evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, last_updated_turn_id?: string | null, };
export type EpiphanyThreadState = { revision: bigint, objective?: string | null, active_subgoal_id?: string | null, subgoals?: Array<EpiphanySubgoal>, invariants?: Array<EpiphanyInvariant>, graphs?: EpiphanyGraphs, graph_frontier?: EpiphanyGraphFrontier | null, graph_checkpoint?: EpiphanyGraphCheckpoint | null, retrieval?: EpiphanyRetrievalState | null, scratch?: EpiphanyScratchPad | null, investigation_checkpoint?: EpiphanyInvestigationCheckpoint | null, job_bindings?: Array<EpiphanyJobBinding>, observations?: Array<EpiphanyObservation>, recent_evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState, last_updated_turn_id?: string | null, };

View file

@ -29,6 +29,7 @@ export type { EpiphanyJobBinding } from "./EpiphanyJobBinding";
export type { EpiphanyJobKind } from "./EpiphanyJobKind";
export type { EpiphanyModeState } from "./EpiphanyModeState";
export type { EpiphanyObservation } from "./EpiphanyObservation";
export type { EpiphanyPlanningState } from "./EpiphanyPlanningState";
export type { EpiphanyRetrievalStatus } from "./EpiphanyRetrievalStatus";
export type { EpiphanyScratchPad } from "./EpiphanyScratchPad";
export type { EpiphanySubgoal } from "./EpiphanySubgoal";

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyPlanningSummary = { captureCount: number, pendingCaptureCount: number, githubIssueCaptureCount: number, backlogItemCount: number, readyBacklogItemCount: number, roadmapStreamCount: number, objectiveDraftCount: number, draftObjectiveCount: number, activeObjective?: string | null, note: string, };

View file

@ -2,5 +2,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyRoleId } from "./ThreadEpiphanyRoleId";
import type { ThreadEpiphanyUpdatePatch } from "./ThreadEpiphanyUpdatePatch";
export type ThreadEpiphanyRoleFinding = { roleId: ThreadEpiphanyRoleId, verdict?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointSummary?: string | null, scratchSummary?: string | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, jobError?: string | null, itemError?: string | null, rawResult: unknown, };
export type ThreadEpiphanyRoleFinding = { roleId: ThreadEpiphanyRoleId, verdict?: string | null, summary?: string | null, nextSafeMove?: string | null, checkpointSummary?: string | null, scratchSummary?: string | null, filesInspected?: Array<string>, frontierNodeIds?: Array<string>, evidenceIds?: Array<string>, openQuestions?: Array<string>, evidenceGaps?: Array<string>, risks?: Array<string>, statePatch?: ThreadEpiphanyUpdatePatch | null, jobError?: string | null, itemError?: string | null, rawResult: unknown, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "context" | "graphQuery" | "jobs" | "roles" | "coordinator" | "roleLaunch" | "roleResult" | "jobLaunch" | "jobInterrupt" | "freshness" | "pressure" | "reorient" | "crrc" | "reorientLaunch" | "reorientResult" | "reorientAccept" | "propose" | "promote" | "update";
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "context" | "planning" | "graphQuery" | "jobs" | "roles" | "coordinator" | "roleLaunch" | "roleResult" | "roleAccept" | "jobLaunch" | "jobInterrupt" | "freshness" | "pressure" | "reorient" | "crrc" | "reorientLaunch" | "reorientResult" | "reorientAccept" | "propose" | "promote" | "update";

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyStateUpdatedField = "objective" | "activeSubgoalId" | "subgoals" | "invariants" | "graphs" | "graphFrontier" | "graphCheckpoint" | "scratch" | "investigationCheckpoint" | "jobBindings" | "observations" | "evidence" | "churn" | "mode";
export type ThreadEpiphanyStateUpdatedField = "objective" | "activeSubgoalId" | "subgoals" | "invariants" | "graphs" | "graphFrontier" | "graphCheckpoint" | "scratch" | "investigationCheckpoint" | "jobBindings" | "observations" | "evidence" | "churn" | "mode" | "planning";

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyStateUpdatedSource = "update" | "promote" | "jobLaunch" | "jobInterrupt" | "reorientAccept";
export type ThreadEpiphanyStateUpdatedSource = "update" | "promote" | "jobLaunch" | "jobInterrupt" | "reorientAccept" | "roleAccept";

View file

@ -11,7 +11,8 @@ import type { EpiphanyInvestigationCheckpoint } from "../EpiphanyInvestigationCh
import type { EpiphanyJobBinding } from "../EpiphanyJobBinding";
import type { EpiphanyModeState } from "../EpiphanyModeState";
import type { EpiphanyObservation } from "../EpiphanyObservation";
import type { EpiphanyPlanningState } from "../EpiphanyPlanningState";
import type { EpiphanyScratchPad } from "../EpiphanyScratchPad";
import type { EpiphanySubgoal } from "../EpiphanySubgoal";
export type ThreadEpiphanyUpdatePatch = { objective?: string | null, activeSubgoalId?: string | null, subgoals?: Array<EpiphanySubgoal> | null, invariants?: Array<EpiphanyInvariant> | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array<EpiphanyJobBinding> | null, observations?: Array<EpiphanyObservation>, evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, };
export type ThreadEpiphanyUpdatePatch = { objective?: string | null, activeSubgoalId?: string | null, subgoals?: Array<EpiphanySubgoal> | null, invariants?: Array<EpiphanyInvariant> | null, graphs?: EpiphanyGraphs | null, graphFrontier?: EpiphanyGraphFrontier | null, graphCheckpoint?: EpiphanyGraphCheckpoint | null, scratch?: EpiphanyScratchPad | null, investigationCheckpoint?: EpiphanyInvestigationCheckpoint | null, jobBindings?: Array<EpiphanyJobBinding> | null, observations?: Array<EpiphanyObservation>, evidence?: Array<EpiphanyEvidenceRecord>, churn?: EpiphanyChurnState | null, mode?: EpiphanyModeState | null, planning?: EpiphanyPlanningState | null, };

View file

@ -343,6 +343,7 @@ export type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type { ThreadEpiphanyJobsSource } from "./ThreadEpiphanyJobsSource";
export type { ThreadEpiphanyJobsUpdatedNotification } from "./ThreadEpiphanyJobsUpdatedNotification";
export type { ThreadEpiphanyJobsUpdatedSource } from "./ThreadEpiphanyJobsUpdatedSource";
export type { ThreadEpiphanyPlanningSummary } from "./ThreadEpiphanyPlanningSummary";
export type { ThreadEpiphanyPressure } from "./ThreadEpiphanyPressure";
export type { ThreadEpiphanyPressureBasis } from "./ThreadEpiphanyPressureBasis";
export type { ThreadEpiphanyPressureLevel } from "./ThreadEpiphanyPressureLevel";

View file

@ -381,6 +381,11 @@ client_request_definitions! {
params: v2::ThreadEpiphanyContextParams,
response: v2::ThreadEpiphanyContextResponse,
},
#[experimental("thread/epiphany/planning")]
ThreadEpiphanyPlanning => "thread/epiphany/planning" {
params: v2::ThreadEpiphanyPlanningParams,
response: v2::ThreadEpiphanyPlanningResponse,
},
#[experimental("thread/epiphany/graphQuery")]
ThreadEpiphanyGraphQuery => "thread/epiphany/graphQuery" {
params: v2::ThreadEpiphanyGraphQueryParams,
@ -1755,6 +1760,7 @@ mod tests {
v2::ThreadEpiphanySceneAction::Retrieve,
v2::ThreadEpiphanySceneAction::Distill,
v2::ThreadEpiphanySceneAction::Context,
v2::ThreadEpiphanySceneAction::Planning,
v2::ThreadEpiphanySceneAction::Jobs,
v2::ThreadEpiphanySceneAction::Roles,
v2::ThreadEpiphanySceneAction::Coordinator,
@ -2663,6 +2669,178 @@ mod tests {
Ok(())
}
#[test]
fn serialize_thread_epiphany_planning_response() -> Result<()> {
let github_source = codex_protocol::protocol::EpiphanyPlanningSourceRef {
kind: "github_issue".to_string(),
provider: Some("github".to_string()),
repo: Some("GameCult/Epiphany".to_string()),
issue_number: Some(42),
url: Some("https://github.com/GameCult/Epiphany/issues/42".to_string()),
labels: vec!["gui".to_string()],
imported_at: Some("2026-05-01T05:00:00Z".to_string()),
..Default::default()
};
let response = ClientResponse::ThreadEpiphanyPlanning {
request_id: RequestId::Integer(9),
response: v2::ThreadEpiphanyPlanningResponse {
thread_id: "thr_123".to_string(),
source: v2::ThreadEpiphanyContextSource::Live,
state_status: v2::ThreadEpiphanyContextStateStatus::Ready,
state_revision: Some(5),
planning: codex_protocol::protocol::EpiphanyPlanningState {
captures: vec![codex_protocol::protocol::EpiphanyPlanningCapture {
id: "capture-github-42".to_string(),
title: "Import issue backlog".to_string(),
confidence: "medium".to_string(),
status: "new".to_string(),
source: github_source.clone(),
..Default::default()
}],
backlog_items: vec![codex_protocol::protocol::EpiphanyBacklogItem {
id: "backlog-planning-api".to_string(),
title: "Expose planning projection".to_string(),
kind: "feature".to_string(),
summary: "Make planning state queryable by the GUI.".to_string(),
status: "ready".to_string(),
horizon: "now".to_string(),
priority: codex_protocol::protocol::EpiphanyPlanningPriority {
value: "p1".to_string(),
rationale: "Unblocks the planning GUI.".to_string(),
..Default::default()
},
confidence: "high".to_string(),
product_area: "gui".to_string(),
lane_hints: vec!["imagination".to_string()],
source_refs: vec![github_source],
..Default::default()
}],
objective_drafts: vec![codex_protocol::protocol::EpiphanyObjectiveDraft {
id: "objdraft-planning-api".to_string(),
title: "Build planning API slice".to_string(),
summary: "Land typed planning state and read-only projection.".to_string(),
source_item_ids: vec!["backlog-planning-api".to_string()],
scope: codex_protocol::protocol::EpiphanyObjectiveDraftScope {
includes: vec!["thread/epiphany/planning".to_string()],
excludes: vec!["GUI planning table".to_string()],
},
acceptance_criteria: vec![
"Projection returns planning counts.".to_string(),
],
lane_plan: codex_protocol::protocol::EpiphanyObjectiveDraftLanePlan {
imagination: Some("Shape backlog and objective draft.".to_string()),
hands: Some("Wire protocol and app-server read.".to_string()),
..Default::default()
},
review_gates: vec!["Human adoption required".to_string()],
status: "draft".to_string(),
..Default::default()
}],
..Default::default()
},
summary: v2::ThreadEpiphanyPlanningSummary {
capture_count: 1,
pending_capture_count: 1,
github_issue_capture_count: 1,
backlog_item_count: 1,
ready_backlog_item_count: 1,
roadmap_stream_count: 0,
objective_draft_count: 1,
draft_objective_count: 1,
active_objective: Some("Current adopted work".to_string()),
note: "Planning substrate is available.".to_string(),
},
},
};
assert_eq!(response.id(), &RequestId::Integer(9));
assert_eq!(response.method(), "thread/epiphany/planning");
assert_eq!(
json!({
"method": "thread/epiphany/planning",
"id": 9,
"response": {
"threadId": "thr_123",
"source": "live",
"stateStatus": "ready",
"stateRevision": 5,
"planning": {
"captures": [{
"id": "capture-github-42",
"title": "Import issue backlog",
"confidence": "medium",
"status": "new",
"source": {
"kind": "github_issue",
"provider": "github",
"repo": "GameCult/Epiphany",
"issue_number": 42,
"url": "https://github.com/GameCult/Epiphany/issues/42",
"labels": ["gui"],
"imported_at": "2026-05-01T05:00:00Z"
}
}],
"backlog_items": [{
"id": "backlog-planning-api",
"title": "Expose planning projection",
"kind": "feature",
"summary": "Make planning state queryable by the GUI.",
"status": "ready",
"horizon": "now",
"priority": {
"value": "p1",
"rationale": "Unblocks the planning GUI."
},
"confidence": "high",
"product_area": "gui",
"lane_hints": ["imagination"],
"source_refs": [{
"kind": "github_issue",
"provider": "github",
"repo": "GameCult/Epiphany",
"issue_number": 42,
"url": "https://github.com/GameCult/Epiphany/issues/42",
"labels": ["gui"],
"imported_at": "2026-05-01T05:00:00Z"
}]
}],
"objective_drafts": [{
"id": "objdraft-planning-api",
"title": "Build planning API slice",
"summary": "Land typed planning state and read-only projection.",
"source_item_ids": ["backlog-planning-api"],
"scope": {
"includes": ["thread/epiphany/planning"],
"excludes": ["GUI planning table"]
},
"acceptance_criteria": ["Projection returns planning counts."],
"lane_plan": {
"imagination": "Shape backlog and objective draft.",
"hands": "Wire protocol and app-server read."
},
"review_gates": ["Human adoption required"],
"status": "draft"
}]
},
"summary": {
"captureCount": 1,
"pendingCaptureCount": 1,
"githubIssueCaptureCount": 1,
"backlogItemCount": 1,
"readyBacklogItemCount": 1,
"roadmapStreamCount": 0,
"objectiveDraftCount": 1,
"draftObjectiveCount": 1,
"activeObjective": "Current adopted work",
"note": "Planning substrate is available."
}
}
}),
serde_json::to_value(&response)?,
);
Ok(())
}
#[test]
fn serialize_thread_epiphany_graph_query_request_and_response() -> Result<()> {
let request = ClientRequest::ThreadEpiphanyGraphQuery {
@ -4608,6 +4786,18 @@ mod tests {
assert_eq!(reason, Some("thread/epiphany/context"));
}
#[test]
fn thread_epiphany_planning_is_marked_experimental() {
let request = ClientRequest::ThreadEpiphanyPlanning {
request_id: RequestId::Integer(1),
params: v2::ThreadEpiphanyPlanningParams {
thread_id: "thr_123".to_string(),
},
};
let reason = crate::experimental_api::ExperimentalApi::experimental_reason(&request);
assert_eq!(reason, Some("thread/epiphany/planning"));
}
#[test]
fn thread_epiphany_pressure_is_marked_experimental() {
let request = ClientRequest::ThreadEpiphanyPressure {

View file

@ -73,6 +73,7 @@ use codex_protocol::protocol::EpiphanyJobBinding as CoreEpiphanyJobBinding;
use codex_protocol::protocol::EpiphanyJobKind as CoreEpiphanyJobKind;
use codex_protocol::protocol::EpiphanyModeState as CoreEpiphanyModeState;
use codex_protocol::protocol::EpiphanyObservation as CoreEpiphanyObservation;
use codex_protocol::protocol::EpiphanyPlanningState as CoreEpiphanyPlanningState;
use codex_protocol::protocol::EpiphanyRetrievalStatus as CoreEpiphanyRetrievalStatus;
use codex_protocol::protocol::EpiphanyScratchPad as CoreEpiphanyScratchPad;
use codex_protocol::protocol::EpiphanySubgoal as CoreEpiphanySubgoal;
@ -3996,6 +3997,7 @@ pub enum ThreadEpiphanySceneAction {
Retrieve,
Distill,
Context,
Planning,
GraphQuery,
Jobs,
Roles,
@ -4673,6 +4675,45 @@ pub struct ThreadEpiphanyContextParams {
pub include_linked_evidence: Option<bool>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyPlanningParams {
pub thread_id: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyPlanningResponse {
pub thread_id: String,
pub source: ThreadEpiphanyContextSource,
pub state_status: ThreadEpiphanyContextStateStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_revision: Option<u64>,
pub planning: CoreEpiphanyPlanningState,
pub summary: ThreadEpiphanyPlanningSummary,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadEpiphanyPlanningSummary {
pub capture_count: u32,
pub pending_capture_count: u32,
pub github_issue_capture_count: u32,
pub backlog_item_count: u32,
pub ready_backlog_item_count: u32,
pub roadmap_stream_count: u32,
pub objective_draft_count: u32,
pub draft_objective_count: u32,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub active_objective: Option<String>,
pub note: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
@ -5361,6 +5402,9 @@ pub struct ThreadEpiphanyUpdatePatch {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub mode: Option<CoreEpiphanyModeState>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub planning: Option<CoreEpiphanyPlanningState>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
@ -5413,6 +5457,7 @@ pub enum ThreadEpiphanyStateUpdatedField {
Evidence,
Churn,
Mode,
Planning,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]

View file

@ -194,6 +194,9 @@ use codex_app_server_protocol::ThreadEpiphanyJobsResponse;
use codex_app_server_protocol::ThreadEpiphanyJobsSource;
use codex_app_server_protocol::ThreadEpiphanyJobsUpdatedNotification;
use codex_app_server_protocol::ThreadEpiphanyJobsUpdatedSource;
use codex_app_server_protocol::ThreadEpiphanyPlanningParams;
use codex_app_server_protocol::ThreadEpiphanyPlanningResponse;
use codex_app_server_protocol::ThreadEpiphanyPlanningSummary;
use codex_app_server_protocol::ThreadEpiphanyPressure;
use codex_app_server_protocol::ThreadEpiphanyPressureBasis;
use codex_app_server_protocol::ThreadEpiphanyPressureLevel;
@ -455,6 +458,7 @@ use codex_protocol::protocol::EpiphanyJobBackendKind as CoreEpiphanyJobBackendKi
use codex_protocol::protocol::EpiphanyJobBinding;
use codex_protocol::protocol::EpiphanyJobKind as CoreEpiphanyJobKind;
use codex_protocol::protocol::EpiphanyObservation;
use codex_protocol::protocol::EpiphanyPlanningState;
use codex_protocol::protocol::EpiphanyRetrievalState;
use codex_protocol::protocol::EpiphanyRetrievalStatus;
use codex_protocol::protocol::EpiphanyScratchPad;
@ -1140,6 +1144,10 @@ impl CodexMessageProcessor {
self.thread_epiphany_context(to_connection_request_id(request_id), params)
.await;
}
ClientRequest::ThreadEpiphanyPlanning { request_id, params } => {
self.thread_epiphany_planning(to_connection_request_id(request_id), params)
.await;
}
ClientRequest::ThreadEpiphanyGraphQuery { request_id, params } => {
self.thread_epiphany_graph_query(to_connection_request_id(request_id), params)
.await;
@ -5180,6 +5188,7 @@ impl CodexMessageProcessor {
evidence: patch.evidence,
churn: patch.churn,
mode: patch.mode,
planning: patch.planning,
})
.await
{
@ -5341,6 +5350,51 @@ impl CodexMessageProcessor {
self.outgoing.send_response(request_id, response).await;
}
async fn thread_epiphany_planning(
&self,
request_id: ConnectionRequestId,
params: ThreadEpiphanyPlanningParams,
) {
let thread_id = params.thread_id.clone();
let thread_uuid = match ThreadId::from_string(&thread_id) {
Ok(id) => id,
Err(err) => {
self.send_invalid_request_error(request_id, format!("invalid thread id: {err}"))
.await;
return;
}
};
let loaded = self.thread_manager.get_thread(thread_uuid).await.is_ok();
let thread = match self.read_thread_view(thread_uuid, false).await {
Ok(thread) => thread,
Err(ThreadReadViewError::InvalidRequest(message)) => {
self.send_invalid_request_error(request_id, message).await;
return;
}
Err(ThreadReadViewError::Internal(message)) => {
self.send_internal_error(request_id, message).await;
return;
}
};
let (state_status, state_revision, planning, summary) =
map_epiphany_planning(thread.epiphany_state.as_ref());
let response = ThreadEpiphanyPlanningResponse {
thread_id,
source: if loaded {
ThreadEpiphanyContextSource::Live
} else {
ThreadEpiphanyContextSource::Stored
},
state_status,
state_revision,
planning,
summary,
};
self.outgoing.send_response(request_id, response).await;
}
async fn thread_epiphany_graph_query(
&self,
request_id: ConnectionRequestId,
@ -6616,6 +6670,7 @@ impl CodexMessageProcessor {
evidence,
churn: patch.churn,
mode: patch.mode,
planning: patch.planning,
};
let epiphany_state = match thread.epiphany_update_state(update).await {
Ok(epiphany_state) => epiphany_state,
@ -6705,6 +6760,7 @@ impl CodexMessageProcessor {
evidence: patch.evidence,
churn: patch.churn,
mode: patch.mode,
planning: patch.planning,
};
let epiphany_state = match thread.epiphany_update_state(update).await {
Ok(epiphany_state) => epiphany_state,
@ -13051,6 +13107,7 @@ fn epiphany_scene_available_actions(
ThreadEpiphanySceneAction::Retrieve,
ThreadEpiphanySceneAction::Distill,
ThreadEpiphanySceneAction::Context,
ThreadEpiphanySceneAction::Planning,
ThreadEpiphanySceneAction::GraphQuery,
ThreadEpiphanySceneAction::Jobs,
ThreadEpiphanySceneAction::Roles,
@ -15087,6 +15144,10 @@ fn modeling_role_accept_patch_errors(patch: &ThreadEpiphanyUpdatePatch) -> Vec<S
"job binding changes are not allowed through modeling role acceptance".to_string(),
);
}
if patch.planning.is_some() {
errors
.push("planning changes are not allowed through modeling role acceptance".to_string());
}
if patch.churn.is_some() || patch.mode.is_some() {
errors.push(
"churn or mode changes are not allowed through modeling role acceptance".to_string(),
@ -16231,6 +16292,81 @@ fn map_epiphany_context(
)
}
fn map_epiphany_planning(
state: Option<&EpiphanyThreadState>,
) -> (
ThreadEpiphanyContextStateStatus,
Option<u64>,
EpiphanyPlanningState,
ThreadEpiphanyPlanningSummary,
) {
let Some(state) = state else {
return (
ThreadEpiphanyContextStateStatus::Missing,
None,
EpiphanyPlanningState::default(),
ThreadEpiphanyPlanningSummary {
capture_count: 0,
pending_capture_count: 0,
github_issue_capture_count: 0,
backlog_item_count: 0,
ready_backlog_item_count: 0,
roadmap_stream_count: 0,
objective_draft_count: 0,
draft_objective_count: 0,
active_objective: None,
note: "No authoritative Epiphany state exists for this thread.".to_string(),
},
);
};
let planning = state.planning.clone();
let pending_capture_count = planning
.captures
.iter()
.filter(|capture| capture.status == "new" || capture.status == "inbox")
.count() as u32;
let github_issue_capture_count = planning
.captures
.iter()
.filter(|capture| capture.source.kind == "github_issue")
.count() as u32;
let ready_backlog_item_count = planning
.backlog_items
.iter()
.filter(|item| item.status == "ready")
.count() as u32;
let draft_objective_count = planning
.objective_drafts
.iter()
.filter(|draft| draft.status == "draft")
.count() as u32;
let note = if planning.is_empty() {
"Planning substrate is present but empty; captures, backlog, roadmap streams, and objective drafts have not been written yet."
} else {
"Planning substrate is available. These records are planning state only until a human explicitly adopts an objective."
}
.to_string();
(
ThreadEpiphanyContextStateStatus::Ready,
Some(state.revision),
planning.clone(),
ThreadEpiphanyPlanningSummary {
capture_count: planning.captures.len() as u32,
pending_capture_count,
github_issue_capture_count,
backlog_item_count: planning.backlog_items.len() as u32,
ready_backlog_item_count,
roadmap_stream_count: planning.roadmap_streams.len() as u32,
objective_draft_count: planning.objective_drafts.len() as u32,
draft_objective_count,
active_objective: state.objective.clone(),
note,
},
)
}
fn map_epiphany_graph_query(
state: Option<&EpiphanyThreadState>,
query: &ThreadEpiphanyGraphQuery,
@ -17524,6 +17660,7 @@ fn thread_epiphany_patch_has_state_replacements(patch: &ThreadEpiphanyUpdatePatc
|| patch.job_bindings.is_some()
|| patch.churn.is_some()
|| patch.mode.is_some()
|| patch.planning.is_some()
}
fn map_epiphany_retrieve_response(
@ -17638,6 +17775,9 @@ fn epiphany_update_patch_changed_fields(
if patch.mode.is_some() {
fields.push(ThreadEpiphanyStateUpdatedField::Mode);
}
if patch.planning.is_some() {
fields.push(ThreadEpiphanyStateUpdatedField::Planning);
}
fields
}
@ -19109,6 +19249,7 @@ mod tests {
ThreadEpiphanySceneAction::Retrieve,
ThreadEpiphanySceneAction::Distill,
ThreadEpiphanySceneAction::Context,
ThreadEpiphanySceneAction::Planning,
ThreadEpiphanySceneAction::GraphQuery,
ThreadEpiphanySceneAction::Jobs,
ThreadEpiphanySceneAction::Roles,
@ -21611,6 +21752,115 @@ mod tests {
assert_eq!(missing.observation_ids, vec!["obs-1".to_string()]);
}
#[test]
fn map_epiphany_planning_projects_counts_without_mutation() {
let github_source = codex_protocol::protocol::EpiphanyPlanningSourceRef {
kind: "github_issue".to_string(),
provider: Some("github".to_string()),
repo: Some("GameCult/Epiphany".to_string()),
issue_number: Some(7),
..Default::default()
};
let state = codex_protocol::protocol::EpiphanyThreadState {
revision: 12,
objective: Some("Current adopted objective".to_string()),
planning: codex_protocol::protocol::EpiphanyPlanningState {
captures: vec![
codex_protocol::protocol::EpiphanyPlanningCapture {
id: "capture-gh-7".to_string(),
title: "GitHub issue import".to_string(),
confidence: "medium".to_string(),
status: "new".to_string(),
source: github_source.clone(),
..Default::default()
},
codex_protocol::protocol::EpiphanyPlanningCapture {
id: "capture-chat-1".to_string(),
title: "Human planning note".to_string(),
confidence: "low".to_string(),
status: "triaged".to_string(),
source: codex_protocol::protocol::EpiphanyPlanningSourceRef {
kind: "chat".to_string(),
..Default::default()
},
..Default::default()
},
],
backlog_items: vec![codex_protocol::protocol::EpiphanyBacklogItem {
id: "backlog-planning-view".to_string(),
title: "Build planning view".to_string(),
kind: "feature".to_string(),
summary: "Expose planning state to the GUI.".to_string(),
status: "ready".to_string(),
horizon: "now".to_string(),
priority: codex_protocol::protocol::EpiphanyPlanningPriority {
value: "p1".to_string(),
rationale: "Needed before planning can be operated.".to_string(),
..Default::default()
},
confidence: "high".to_string(),
product_area: "gui".to_string(),
source_refs: vec![github_source],
..Default::default()
}],
roadmap_streams: vec![codex_protocol::protocol::EpiphanyRoadmapStream {
id: "stream-gui".to_string(),
title: "GUI Operator Surface".to_string(),
purpose: "Let the human inspect and steer Epiphany.".to_string(),
status: "active".to_string(),
item_ids: vec!["backlog-planning-view".to_string()],
..Default::default()
}],
objective_drafts: vec![codex_protocol::protocol::EpiphanyObjectiveDraft {
id: "objdraft-planning-view".to_string(),
title: "Build planning view slice".to_string(),
summary: "Render typed planning state in the GUI.".to_string(),
source_item_ids: vec!["backlog-planning-view".to_string()],
acceptance_criteria: vec!["Planning counts render.".to_string()],
status: "draft".to_string(),
..Default::default()
}],
..Default::default()
},
..Default::default()
};
let (state_status, state_revision, planning, summary) = map_epiphany_planning(Some(&state));
assert_eq!(state_status, ThreadEpiphanyContextStateStatus::Ready);
assert_eq!(state_revision, Some(12));
assert_eq!(planning.captures.len(), 2);
assert_eq!(summary.capture_count, 2);
assert_eq!(summary.pending_capture_count, 1);
assert_eq!(summary.github_issue_capture_count, 1);
assert_eq!(summary.backlog_item_count, 1);
assert_eq!(summary.ready_backlog_item_count, 1);
assert_eq!(summary.roadmap_stream_count, 1);
assert_eq!(summary.objective_draft_count, 1);
assert_eq!(summary.draft_objective_count, 1);
assert_eq!(
summary.active_objective.as_deref(),
Some("Current adopted objective")
);
assert!(
summary
.note
.contains("planning state only until a human explicitly adopts")
);
}
#[test]
fn map_epiphany_planning_reports_missing_state_without_inventing_backlog() {
let (state_status, state_revision, planning, summary) = map_epiphany_planning(None);
assert_eq!(state_status, ThreadEpiphanyContextStateStatus::Missing);
assert_eq!(state_revision, None);
assert!(planning.is_empty());
assert_eq!(summary.capture_count, 0);
assert_eq!(summary.backlog_item_count, 0);
assert_eq!(summary.active_objective, None);
}
#[test]
fn map_epiphany_graph_query_returns_frontier_neighborhood() {
let state = codex_protocol::protocol::EpiphanyThreadState {

View file

@ -38,6 +38,7 @@ use codex_protocol::protocol::EpiphanyJobBinding;
use codex_protocol::protocol::EpiphanyJobKind;
use codex_protocol::protocol::EpiphanyModeState;
use codex_protocol::protocol::EpiphanyObservation;
use codex_protocol::protocol::EpiphanyPlanningState;
use codex_protocol::protocol::EpiphanyRetrievalState;
use codex_protocol::protocol::EpiphanyScratchPad;
use codex_protocol::protocol::EpiphanyStateItem;
@ -123,6 +124,7 @@ pub struct EpiphanyStateUpdate {
pub evidence: Vec<EpiphanyEvidenceRecord>,
pub churn: Option<EpiphanyChurnState>,
pub mode: Option<EpiphanyModeState>,
pub planning: Option<EpiphanyPlanningState>,
}
#[derive(Debug, Clone)]
@ -180,6 +182,7 @@ impl EpiphanyStateUpdate {
&& self.evidence.is_empty()
&& self.churn.is_none()
&& self.mode.is_none()
&& self.planning.is_none()
}
}
@ -1215,6 +1218,9 @@ fn epiphany_state_update_validation_errors(
if let Some(job_bindings) = update.job_bindings.as_ref() {
errors.extend(validate_epiphany_job_bindings(job_bindings));
}
if let Some(planning) = update.planning.as_ref() {
errors.extend(validate_epiphany_planning_state(planning));
}
errors.extend(epiphany_state_replacement_validation_errors(state, update));
errors
@ -1285,6 +1291,162 @@ fn validate_epiphany_job_bindings(job_bindings: &[EpiphanyJobBinding]) -> Vec<St
errors
}
fn validate_epiphany_planning_state(planning: &EpiphanyPlanningState) -> Vec<String> {
let mut errors = Vec::new();
let mut capture_ids = HashSet::<&str>::new();
for capture in &planning.captures {
require_nonempty_update(&capture.id, "planning.captures.id", &mut errors);
require_nonempty_update(&capture.title, "planning.captures.title", &mut errors);
require_nonempty_update(
&capture.confidence,
"planning.captures.confidence",
&mut errors,
);
require_nonempty_update(&capture.status, "planning.captures.status", &mut errors);
validate_epiphany_planning_source_ref(
&capture.source,
"planning.captures.source",
&mut errors,
);
if !capture.id.is_empty() && !capture_ids.insert(capture.id.as_str()) {
errors.push(format!("duplicate planning capture id {:?}", capture.id));
}
}
let mut backlog_ids = HashSet::<&str>::new();
for item in &planning.backlog_items {
require_nonempty_update(&item.id, "planning.backlog_items.id", &mut errors);
require_nonempty_update(&item.title, "planning.backlog_items.title", &mut errors);
require_nonempty_update(&item.kind, "planning.backlog_items.kind", &mut errors);
require_nonempty_update(&item.summary, "planning.backlog_items.summary", &mut errors);
require_nonempty_update(&item.status, "planning.backlog_items.status", &mut errors);
require_nonempty_update(&item.horizon, "planning.backlog_items.horizon", &mut errors);
require_nonempty_update(
&item.priority.value,
"planning.backlog_items.priority.value",
&mut errors,
);
require_nonempty_update(
&item.priority.rationale,
"planning.backlog_items.priority.rationale",
&mut errors,
);
require_nonempty_update(
&item.confidence,
"planning.backlog_items.confidence",
&mut errors,
);
require_nonempty_update(
&item.product_area,
"planning.backlog_items.product_area",
&mut errors,
);
for (index, source_ref) in item.source_refs.iter().enumerate() {
validate_epiphany_planning_source_ref(
source_ref,
&format!("planning.backlog_items.source_refs[{index}]"),
&mut errors,
);
}
if !item.id.is_empty() && !backlog_ids.insert(item.id.as_str()) {
errors.push(format!("duplicate planning backlog item id {:?}", item.id));
}
}
let mut stream_ids = HashSet::<&str>::new();
for stream in &planning.roadmap_streams {
require_nonempty_update(&stream.id, "planning.roadmap_streams.id", &mut errors);
require_nonempty_update(&stream.title, "planning.roadmap_streams.title", &mut errors);
require_nonempty_update(
&stream.purpose,
"planning.roadmap_streams.purpose",
&mut errors,
);
require_nonempty_update(
&stream.status,
"planning.roadmap_streams.status",
&mut errors,
);
for item_id in &stream.item_ids {
if !backlog_ids.contains(item_id.as_str()) {
errors.push(format!(
"roadmap stream {:?} references missing backlog item {:?}",
stream.id, item_id
));
}
}
if let Some(near_term_focus) = stream.near_term_focus.as_deref()
&& !near_term_focus.trim().is_empty()
&& !backlog_ids.contains(near_term_focus)
{
errors.push(format!(
"roadmap stream {:?} has missing near_term_focus {:?}",
stream.id, near_term_focus
));
}
if !stream.id.is_empty() && !stream_ids.insert(stream.id.as_str()) {
errors.push(format!(
"duplicate planning roadmap stream id {:?}",
stream.id
));
}
}
let mut objective_draft_ids = HashSet::<&str>::new();
for draft in &planning.objective_drafts {
require_nonempty_update(&draft.id, "planning.objective_drafts.id", &mut errors);
require_nonempty_update(&draft.title, "planning.objective_drafts.title", &mut errors);
require_nonempty_update(
&draft.summary,
"planning.objective_drafts.summary",
&mut errors,
);
require_nonempty_update(
&draft.status,
"planning.objective_drafts.status",
&mut errors,
);
if draft.acceptance_criteria.is_empty() {
errors.push(format!(
"objective draft {:?} must include at least one acceptance criterion",
draft.id
));
}
for item_id in &draft.source_item_ids {
if !backlog_ids.contains(item_id.as_str()) {
errors.push(format!(
"objective draft {:?} references missing source backlog item {:?}",
draft.id, item_id
));
}
}
if !draft.id.is_empty() && !objective_draft_ids.insert(draft.id.as_str()) {
errors.push(format!("duplicate objective draft id {:?}", draft.id));
}
}
errors
}
fn validate_epiphany_planning_source_ref(
source_ref: &codex_protocol::protocol::EpiphanyPlanningSourceRef,
label: &str,
errors: &mut Vec<String>,
) {
require_nonempty_update(&source_ref.kind, &format!("{label}.kind"), errors);
if source_ref.kind == "github_issue" {
match source_ref.repo.as_deref() {
Some(repo) => require_nonempty_update(repo, &format!("{label}.repo"), errors),
None => errors.push(format!("{label}.repo is required for github_issue sources")),
}
if source_ref.issue_number.is_none() {
errors.push(format!(
"{label}.issue_number is required for github_issue sources"
));
}
}
}
fn epiphany_state_replacement_validation_errors(
state: &EpiphanyThreadState,
update: &EpiphanyStateUpdate,
@ -1379,6 +1541,9 @@ fn apply_epiphany_state_update(
if let Some(mode) = update.mode {
state.mode = Some(mode);
}
if let Some(planning) = update.planning {
state.planning = planning;
}
prepend_recent(&mut state.observations, update.observations);
prepend_recent(&mut state.recent_evidence, update.evidence);
@ -1397,9 +1562,13 @@ fn prepend_recent<T>(items: &mut Vec<T>, mut new_items: Vec<T>) {
#[cfg(test)]
mod epiphany_update_tests {
use super::*;
use codex_protocol::protocol::EpiphanyBacklogItem;
use codex_protocol::protocol::EpiphanyGraph;
use codex_protocol::protocol::EpiphanyGraphNode;
use codex_protocol::protocol::EpiphanyJobKind;
use codex_protocol::protocol::EpiphanyPlanningCapture;
use codex_protocol::protocol::EpiphanyPlanningPriority;
use codex_protocol::protocol::EpiphanyPlanningSourceRef;
fn evidence(id: &str) -> EpiphanyEvidenceRecord {
EpiphanyEvidenceRecord {
@ -1540,6 +1709,146 @@ mod epiphany_update_tests {
assert_eq!(state.last_updated_turn_id.as_deref(), Some("turn-jobs"));
}
#[test]
fn validate_epiphany_state_update_accepts_planning_state() {
let update = EpiphanyStateUpdate {
planning: Some(EpiphanyPlanningState {
captures: vec![EpiphanyPlanningCapture {
id: "capture-github-42".to_string(),
title: "Import issue backlog".to_string(),
confidence: "medium".to_string(),
status: "new".to_string(),
source: EpiphanyPlanningSourceRef {
kind: "github_issue".to_string(),
provider: Some("github".to_string()),
repo: Some("GameCult/Epiphany".to_string()),
issue_number: Some(42),
..Default::default()
},
..Default::default()
}],
backlog_items: vec![EpiphanyBacklogItem {
id: "backlog-planning-api".to_string(),
title: "Expose planning projection".to_string(),
kind: "feature".to_string(),
summary: "Make planning state queryable by the GUI.".to_string(),
status: "ready".to_string(),
horizon: "now".to_string(),
priority: EpiphanyPlanningPriority {
value: "p1".to_string(),
rationale: "Unblocks planning operations.".to_string(),
..Default::default()
},
confidence: "high".to_string(),
product_area: "gui".to_string(),
lane_hints: vec!["imagination".to_string()],
..Default::default()
}],
roadmap_streams: vec![codex_protocol::protocol::EpiphanyRoadmapStream {
id: "stream-gui".to_string(),
title: "GUI Operator Surface".to_string(),
purpose: "Let the human inspect and steer planning.".to_string(),
status: "active".to_string(),
item_ids: vec!["backlog-planning-api".to_string()],
..Default::default()
}],
objective_drafts: vec![codex_protocol::protocol::EpiphanyObjectiveDraft {
id: "objdraft-planning-api".to_string(),
title: "Build planning API slice".to_string(),
summary: "Land typed planning state and read-only projection.".to_string(),
source_item_ids: vec!["backlog-planning-api".to_string()],
acceptance_criteria: vec!["Projection returns planning counts.".to_string()],
status: "draft".to_string(),
..Default::default()
}],
..Default::default()
}),
..Default::default()
};
assert!(
epiphany_state_update_validation_errors(&EpiphanyThreadState::default(), &update)
.is_empty()
);
}
#[test]
fn validate_epiphany_state_update_rejects_invalid_planning_state() {
let update = EpiphanyStateUpdate {
planning: Some(EpiphanyPlanningState {
captures: vec![EpiphanyPlanningCapture {
id: "capture-bad-github".to_string(),
title: "Missing repo issue".to_string(),
confidence: "medium".to_string(),
status: "new".to_string(),
source: EpiphanyPlanningSourceRef {
kind: "github_issue".to_string(),
issue_number: None,
..Default::default()
},
..Default::default()
}],
backlog_items: vec![EpiphanyBacklogItem {
id: "backlog-1".to_string(),
title: "Backlog without priority rationale".to_string(),
kind: "feature".to_string(),
summary: "Invalid on purpose.".to_string(),
status: "ready".to_string(),
horizon: "now".to_string(),
priority: EpiphanyPlanningPriority {
value: "p1".to_string(),
rationale: String::new(),
..Default::default()
},
confidence: "high".to_string(),
product_area: "gui".to_string(),
..Default::default()
}],
roadmap_streams: vec![codex_protocol::protocol::EpiphanyRoadmapStream {
id: "stream-gui".to_string(),
title: "GUI Operator Surface".to_string(),
purpose: "Let the human inspect and steer planning.".to_string(),
status: "active".to_string(),
item_ids: vec!["missing-backlog".to_string()],
..Default::default()
}],
objective_drafts: vec![codex_protocol::protocol::EpiphanyObjectiveDraft {
id: "objdraft-empty".to_string(),
title: "Empty acceptance draft".to_string(),
summary: "Invalid on purpose.".to_string(),
source_item_ids: vec!["missing-backlog".to_string()],
status: "draft".to_string(),
..Default::default()
}],
..Default::default()
}),
..Default::default()
};
let errors =
epiphany_state_update_validation_errors(&EpiphanyThreadState::default(), &update);
assert!(
errors
.iter()
.any(|error| error.contains("repo is required for github_issue"))
);
assert!(
errors
.iter()
.any(|error| error.contains("priority.rationale"))
);
assert!(
errors
.iter()
.any(|error| error.contains("references missing backlog item"))
);
assert!(
errors
.iter()
.any(|error| error.contains("must include at least one acceptance criterion"))
);
}
#[test]
fn validate_epiphany_state_update_accepts_observation_linked_to_existing_evidence() {
let state = EpiphanyThreadState {

View file

@ -417,6 +417,7 @@ fn sample_epiphany_state_for_prompt() -> EpiphanyThreadState {
name: "epiphany".to_string(),
kind: Some(ModeKind::Default),
}),
planning: Default::default(),
last_updated_turn_id: Some("phase2-turn".to_string()),
}
}

View file

@ -3035,6 +3035,9 @@ pub struct EpiphanyThreadState {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "EpiphanyModeState | null")]
pub mode: Option<EpiphanyModeState>,
#[serde(default, skip_serializing_if = "EpiphanyPlanningState::is_empty")]
#[ts(type = "EpiphanyPlanningState")]
pub planning: EpiphanyPlanningState,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub last_updated_turn_id: Option<String>,
@ -3396,6 +3399,262 @@ pub struct EpiphanyModeState {
pub kind: Option<ModeKind>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyPlanningState {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub workspace_root: Option<PathBuf>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<EpiphanyPlanningCapture>")]
pub captures: Vec<EpiphanyPlanningCapture>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<EpiphanyBacklogItem>")]
pub backlog_items: Vec<EpiphanyBacklogItem>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<EpiphanyRoadmapStream>")]
pub roadmap_streams: Vec<EpiphanyRoadmapStream>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<EpiphanyObjectiveDraft>")]
pub objective_drafts: Vec<EpiphanyObjectiveDraft>,
}
impl EpiphanyPlanningState {
pub fn is_empty(&self) -> bool {
self.workspace_root.is_none()
&& self.captures.is_empty()
&& self.backlog_items.is_empty()
&& self.roadmap_streams.is_empty()
&& self.objective_drafts.is_empty()
}
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyPlanningCapture {
pub id: String,
pub title: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub body: Option<String>,
pub confidence: String,
pub status: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub speaker: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub tags: Vec<String>,
pub source: EpiphanyPlanningSourceRef,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub created_at: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub updated_at: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyPlanningSourceRef {
pub kind: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub provider: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub uri: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub external_id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub repo: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "number | null")]
pub issue_number: Option<u64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub node_id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "bigint | null")]
pub database_id: Option<i64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub url: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub state: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub labels: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub milestone: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub assignees: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub author: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub created_at: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub updated_at: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub closed_at: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "boolean | null")]
pub is_pull_request: Option<bool>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub imported_at: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyBacklogItem {
pub id: String,
pub title: String,
pub kind: String,
pub summary: String,
pub status: String,
pub horizon: String,
pub priority: EpiphanyPlanningPriority,
pub confidence: String,
pub product_area: String,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub lane_hints: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub dependencies: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub blockers: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub acceptance_sketch: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub evidence_refs: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<EpiphanyPlanningSourceRef>")]
pub source_refs: Vec<EpiphanyPlanningSourceRef>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub duplicate_of: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub updated_at: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyPlanningPriority {
pub value: String,
pub rationale: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub impact: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub urgency: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub confidence: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub effort: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub unblocks: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub blocks: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub reason: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyRoadmapStream {
pub id: String,
pub title: String,
pub purpose: String,
pub status: String,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub item_ids: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub near_term_focus: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub blocked_by: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub review_cadence: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyObjectiveDraft {
pub id: String,
pub title: String,
pub summary: String,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub source_item_ids: Vec<String>,
pub scope: EpiphanyObjectiveDraftScope,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub acceptance_criteria: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub evidence_required: Vec<String>,
pub lane_plan: EpiphanyObjectiveDraftLanePlan,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub dependencies: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub risks: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub review_gates: Vec<String>,
pub status: String,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyObjectiveDraftScope {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub includes: Vec<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<string>")]
pub excludes: Vec<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
pub struct EpiphanyObjectiveDraftLanePlan {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub imagination: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub eyes: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub body: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub hands: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub soul: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "string | null")]
pub life: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, TS)]
pub struct CompactedItem {
pub message: String,