Label Epiphany state update notifications
This commit is contained in:
parent
cabad31b5e
commit
4c770e98dd
17 changed files with 100 additions and 22 deletions
|
|
@ -21,7 +21,7 @@ The spine exists in eleven live paths:
|
|||
- 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:4244) 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 in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4316) 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 mutates live `SessionState`, 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:4416) and [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:373).
|
||||
- live state notifications: app-server declares experimental `thread/epiphany/stateUpdated` and emits it with the updated typed state after successful direct updates and accepted promotions, but not after rejected promotions, in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:1097), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4059), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4417), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4494).
|
||||
- live state notifications: app-server declares experimental `thread/epiphany/stateUpdated` and emits it with the updated typed state plus a typed `source` after successful direct updates and accepted promotions, but not after rejected promotions, in [common.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs:1097), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4059), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4417), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4494).
|
||||
- retrieval/indexing: app-server routes `thread/epiphany/retrieve` and `thread/epiphany/index` through loaded `CodexThread` host methods into `epiphany-core` in [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4046), [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4122), [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:438), and [codex_thread.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/core/src/codex_thread.rs:456).
|
||||
|
||||
The thick Epiphany-owned implementation is mostly outside vendored Codex now:
|
||||
|
|
@ -129,7 +129,7 @@ This is the same flow in the language Epiphany is supposed to make the model car
|
|||
| Proposal | Verified observations with code refs and accepting recent evidence can produce a candidate graph frontier/churn patch without writing it. The caller can provide ids, or the proposal engine can choose a small ready path cluster, then reuse existing map nodes, focus linked context, and report pressure from the actual map delta. | The clerk overlays tracing paper on the old blueprint before drawing a new wall through the plumbing, choosing only the relevant marked pages before measuring how much load the sketch would put on the frame. |
|
||||
| Promotion | A verifier-backed gate can reject a proposal without mutation or send it through the durable update path. | The foreman stamps the pencil draft before the clerk reaches for the red pen. |
|
||||
| State updates | A loaded thread can accept explicit typed patches that append observations/evidence and replace bounded map/scratch/churn fields. | The clerk finally has the red pen, but still writes only on the ledger page the form allows. |
|
||||
| State notifications | Successful direct updates and accepted promotions publish the updated typed state to app-server clients. | The clerk rings the little counter bell only after the ledger ink is dry, not when a draft gets rejected. |
|
||||
| State notifications | Successful direct updates and accepted promotions publish the updated typed state to app-server clients, with a source label saying which control-plane door caused it. | The clerk rings the little counter bell only after the ledger ink is dry, and the bell tag says whether this was direct filing or foreman-approved promotion. |
|
||||
|
||||
## Flow 1: State Shape
|
||||
|
||||
|
|
@ -572,7 +572,7 @@ The app-server handler:
|
|||
3. maps the app-server patch DTO into `EpiphanyStateUpdate`.
|
||||
4. calls `CodexThread.epiphany_update_state`.
|
||||
5. returns the updated `EpiphanyThreadState`.
|
||||
6. emits `thread/epiphany/stateUpdated` with the same updated state.
|
||||
6. emits `thread/epiphany/stateUpdated` with `source: "update"` and the same updated state.
|
||||
7. reports empty patches and revision mismatches as invalid requests before notification.
|
||||
|
||||
`CodexThread.epiphany_update_state`:
|
||||
|
|
@ -600,7 +600,7 @@ Code refs:
|
|||
|
||||
### Output
|
||||
|
||||
The response contains the updated `epiphanyState`. The durable side effect is a rollout `EpiphanyState` snapshot. The live side effect is a `thread/epiphany/stateUpdated` notification carrying the same updated state to app-server clients.
|
||||
The response contains the updated `epiphanyState`. The durable side effect is a rollout `EpiphanyState` snapshot. The live side effect is a `thread/epiphany/stateUpdated` notification carrying `source: "update"` plus the same updated state to app-server clients.
|
||||
|
||||
### Invariant
|
||||
|
||||
|
|
@ -827,7 +827,7 @@ The app-server handler:
|
|||
6. maps the patch into `EpiphanyStateUpdate`.
|
||||
7. calls `CodexThread.epiphany_update_state`.
|
||||
8. returns the updated `EpiphanyThreadState`.
|
||||
9. emits `thread/epiphany/stateUpdated` only for the accepted path.
|
||||
9. emits `thread/epiphany/stateUpdated` with `source: "promote"` only for the accepted path.
|
||||
|
||||
`evaluate_promotion` currently enforces a deliberately small but now delta-aware policy:
|
||||
|
||||
|
|
@ -855,7 +855,7 @@ Code refs:
|
|||
|
||||
### Output
|
||||
|
||||
Rejected promotions return reasons and no state. Accepted promotions return the updated `epiphanyState` from the durable update path and emit `thread/epiphany/stateUpdated` with that state.
|
||||
Rejected promotions return reasons and no state. Accepted promotions return the updated `epiphanyState` from the durable update path and emit `thread/epiphany/stateUpdated` with `source: "promote"` plus that state.
|
||||
|
||||
### Invariant
|
||||
|
||||
|
|
@ -889,7 +889,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, and not the first state-change bell. 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, and token-matches strong verifier kinds so `contest` cannot sneak past as `test`. Successful update/promote writes now emit `thread/epiphany/stateUpdated` so clients no longer need to poll blindly after every accepted red-pen move. Richer app-server smoke coverage now exists in `tools/epiphany_phase5_smoke.py`; the remaining missing organs are watcher/freshness inputs and eventually role-scoped specialist ownership without silently auto-promoting anything.
|
||||
The current remaining missing organ is not the red pen, not the first chewing motion, and not the first state-change bell. 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, and token-matches strong verifier kinds so `contest` cannot sneak past as `test`. Successful update/promote writes now emit `thread/epiphany/stateUpdated` with `source: "update"` or `source: "promote"` so clients no longer need to poll blindly or infer the cause from timing. Richer app-server smoke coverage now exists in `tools/epiphany_phase5_smoke.py`; the remaining missing organs are watcher/freshness inputs and eventually role-scoped specialist ownership without silently auto-promoting anything.
|
||||
|
||||
```text
|
||||
model/tool observations
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ This note tracks Epiphany as a fork of Codex with an opinionated modeling archit
|
|||
- an expansion-freshness promotion hardening slice that prevents a graph-expansion patch from bypassing warning requirements by falsely claiming low `diff_pressure`
|
||||
- a token-aware verifier-kind promotion hardening slice that prevents substring accidents such as `contest` from satisfying the risky-delta `test` verifier-kind requirement
|
||||
- a reusable richer Phase 5 app-server smoke harness at `tools/epiphany_phase5_smoke.py` that verifies source-output distillation, read-only proposal, risky-delta rejection, expanded-low-pressure rejection, substring verifier-kind rejection, and accepted promotion through the loaded-thread seam
|
||||
- a first live typed-state notification slice: experimental `thread/epiphany/stateUpdated` fires after successful direct `thread/epiphany/update` and accepted `thread/epiphany/promote`, carrying the updated `epiphanyState` while rejected promotions remain silent and non-mutating
|
||||
- a first live typed-state notification slice: experimental `thread/epiphany/stateUpdated` fires after successful direct `thread/epiphany/update` and accepted `thread/epiphany/promote`, carrying the updated `epiphanyState` and a typed `source` while rejected promotions remain silent and non-mutating
|
||||
- current phase: post-Phase-5 live typed state/read-surface hardening
|
||||
|
||||
The next job is no longer to prove the retriever exists, sketch the persistent follow-up in prose, invent the first red-pen path, build the first observation proposal surface, make promotion notice broken map/churn replacements, ship the first read-only map/churn proposal surface, teach proposal to avoid duplicating already-mapped code surfaces, make proposal frontier focus follow existing graph links, make selected observations evidence-backed with non-haunted churn pressure, rescue unanchored graph nodes with strict semantic matching, let proposal choose a bounded ready observation set when ids are omitted, make proposal pressure understand match kinds, make the distiller summarize noisy source output, make source-output salience prefer final results over generic warnings, make promotion notice risky deltas, make expansion freshness resistant to low-pressure underreporting, prevent substring verifier-kind accidents, prove that richer chain over app-server by hand, or add the first live state notification after successful writes. Those parts are landed or live-smoked. The next job is to use the reusable smoke harness as a guardrail before adding the next smallest source-grounded notification/read/proposal/promotion rule, and to keep `thread/epiphany/retrieve`, `thread/epiphany/distill`, and `thread/epiphany/propose` out of the durable-writer business.
|
||||
|
|
@ -239,10 +239,10 @@ Current bounded shape of that follow-up:
|
|||
|
||||
- it is an experimental server notification, not another write path
|
||||
- it carries `threadId` plus the full updated `epiphanyState`
|
||||
- it fires after successful direct `thread/epiphany/update`
|
||||
- it fires after accepted `thread/epiphany/promote`
|
||||
- it carries `source: "update"` after successful direct `thread/epiphany/update`
|
||||
- it carries `source: "promote"` after accepted `thread/epiphany/promote`
|
||||
- it does not fire for rejected promotions, because rejection still does not mutate state
|
||||
- the richer app-server smoke now asserts direct update publishes revision `1` and accepted promotion publishes revision `2`
|
||||
- the richer app-server smoke now asserts direct update publishes source/revision `update`/`1` and accepted promotion publishes source/revision `promote`/`2`
|
||||
|
||||
Follow-up addition now landed after the update surface:
|
||||
|
||||
|
|
@ -294,7 +294,7 @@ Add tests for:
|
|||
|
||||
## Immediate Next Step
|
||||
|
||||
Treat the current retrieval baseline and explicit indexing follow-up as landed Phase 4. Treat the explicit update path, distillation proposal path, read-only map/churn proposal path, verifier-backed promotion gate, structural map/churn promotion validation, graph-node reuse, linked frontier focus, evidence-backed selection, map-delta churn pressure, selected-observation prioritization, strict unanchored-node semantic reuse, automatic bounded observation-set selection, match-kind-aware map-delta judgment, source-output-aware observation distillation, source-output salience ranking, risky-delta promotion policy, expansion-freshness promotion hardening, token-aware verifier-kind promotion hardening, reusable richer app-server smoke harness, and first `thread/epiphany/stateUpdated` notification seam as the active baseline. The next machine gap is no longer "can Epiphany retrieve code?", "can it propose one durable observation patch?", "can it draft one bounded map/churn candidate?", "can it avoid duplicating an existing graph node when an observation points at already-mapped code?", "can it focus linked graph context?", "can it reject selected observations that are not backed by accepting recent evidence?", "can it use graph language when no concrete refs exist yet?", "can it choose a proposal-ready observation set when ids are omitted?", "can it distinguish exact refinement from same-path broadening or semantic anchoring?", "can it summarize noisy tool/model output as typed evidence?", "can it rank final result/error/finished lines above generic warnings?", "can promotion policy reason over richer deltas without silently writing them?", "can expansion freshness resist low-pressure underreporting?", "can verifier kind matching avoid substring accidents?", "does the richer Phase 5 chain behave through the app-server seam?", or "can successful writes notify a client that typed state changed?" It can.
|
||||
Treat the current retrieval baseline and explicit indexing follow-up as landed Phase 4. Treat the explicit update path, distillation proposal path, read-only map/churn proposal path, verifier-backed promotion gate, structural map/churn promotion validation, graph-node reuse, linked frontier focus, evidence-backed selection, map-delta churn pressure, selected-observation prioritization, strict unanchored-node semantic reuse, automatic bounded observation-set selection, match-kind-aware map-delta judgment, source-output-aware observation distillation, source-output salience ranking, risky-delta promotion policy, expansion-freshness promotion hardening, token-aware verifier-kind promotion hardening, reusable richer app-server smoke harness, and first sourced `thread/epiphany/stateUpdated` notification seam as the active baseline. The next machine gap is no longer "can Epiphany retrieve code?", "can it propose one durable observation patch?", "can it draft one bounded map/churn candidate?", "can it avoid duplicating an existing graph node when an observation points at already-mapped code?", "can it focus linked graph context?", "can it reject selected observations that are not backed by accepting recent evidence?", "can it use graph language when no concrete refs exist yet?", "can it choose a proposal-ready observation set when ids are omitted?", "can it distinguish exact refinement from same-path broadening or semantic anchoring?", "can it summarize noisy tool/model output as typed evidence?", "can it rank final result/error/finished lines above generic warnings?", "can promotion policy reason over richer deltas without silently writing them?", "can expansion freshness resist low-pressure underreporting?", "can verifier kind matching avoid substring accidents?", "does the richer Phase 5 chain behave through the app-server seam?", or "can successful writes notify a client what changed state and why?" It can.
|
||||
|
||||
1. treat the current verified-and-landed query-time hybrid retriever as the Phase 4 slice 1 baseline
|
||||
2. treat the verified and live-smoked `thread/epiphany/index` slice as the bounded persistent-semantic follow-up
|
||||
|
|
|
|||
|
|
@ -85,14 +85,14 @@ Current verified typed state/promotion layer:
|
|||
- experimental loaded-thread-only `thread/epiphany/distill`
|
||||
- experimental loaded-thread-only `thread/epiphany/promote`
|
||||
- experimental loaded-thread-only `thread/epiphany/propose`
|
||||
- experimental `thread/epiphany/stateUpdated` notifications after successful direct updates and accepted promotions
|
||||
- experimental `thread/epiphany/stateUpdated` notifications after successful direct updates and accepted promotions, with typed `source` values of `update` or `promote`
|
||||
- typed patch shape for observations, evidence, objective, subgoals, invariants, graphs, graph frontier/checkpoint, scratch, churn, and mode
|
||||
- deterministic observation/evidence proposal generation in `epiphany-core`
|
||||
- observation distillation now keeps noisy tool/command/shell/model output bounded by selecting salient output lines, prioritizing final result/failure/error/finished lines above generic warnings, and defaulting evidence kind to `tool-output` or `model-output` when the caller did not provide one
|
||||
- deterministic map/churn proposal generation in `epiphany-core`, now with first-pass graph-node reuse by exact code-ref, same-path overlap, or deterministic path-node id before new candidate nodes are created, strict semantic reuse for unanchored architecture nodes, linked frontier focus through graph links and named incident edges, evidence-backed selected observations via accepting `recent_evidence`, selected-observation prioritization, automatic bounded observation selection when ids are omitted, and match-kind-aware churn pressure derived from exact-ref refinement, same-path broadening, deterministic-node reuse, semantic anchoring, or new candidate surfaces
|
||||
- verifier-backed promotion policy evaluation in `epiphany-core`, now rejecting risky churn deltas unless they carry explicit warning rationale and strong verifier evidence kind; graph expansion is risky even if a patch understates `diff_pressure`, and strong verifier kinds are token-matched instead of substring-matched
|
||||
- core `CodexThread.epiphany_update_state(...)` applies the patch to live `SessionState`, bumps revision, persists `RolloutItem::EpiphanyState`, and flushes rollout
|
||||
- app-server now emits `thread/epiphany/stateUpdated` after the direct update path and after accepted promotion return an updated state; rejected promotions still do not mutate state or emit an update notification
|
||||
- app-server now emits `thread/epiphany/stateUpdated` after the direct update path and after accepted promotion return an updated state; notifications identify their `source`, and rejected promotions still do not mutate state or emit an update notification
|
||||
- replay helpers in both `codex-core` and `epiphany-core` accept an out-of-band Epiphany snapshot before the first real user turn so seed/update snapshots survive resume
|
||||
- retrieval remains read-only and indexing remains the only persistent semantic write path
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ What is wired right now:
|
|||
- `thread/epiphany/promote` is the first explicit promotion gate; it rejects failed verifier evidence without mutation and applies accepted candidates through the update path
|
||||
- `thread/epiphany/promote` now has a first richer map/churn safety layer: state replacement patches must carry explicit observations and patch evidence, and subgoal/invariant/graph/frontier/checkpoint/churn structure is validated before the durable update path is called
|
||||
- `thread/epiphany/update` is the first explicit durable Epiphany state write surface; it rejects empty patches, supports optional revision matching, appends observations/evidence, replaces bounded typed fields, increments state revision, and persists immediately
|
||||
- `thread/epiphany/stateUpdated` is the first live typed-state notification surface; it fires only after successful `thread/epiphany/update` and accepted `thread/epiphany/promote`, carrying the full updated `epiphanyState`
|
||||
- `thread/epiphany/stateUpdated` is the first live typed-state notification surface; it fires only after successful `thread/epiphany/update` and accepted `thread/epiphany/promote`, carrying the full updated `epiphanyState` plus `source: "update"` or `source: "promote"`
|
||||
- live hydrated `thread.epiphanyState` reads now backfill a lightweight retrieval summary when the thread already has Epiphany state but no persisted retrieval summary yet
|
||||
- basic protocol/core/app-server unit tests were added for the new types and mapping layer
|
||||
- the current pushed baseline additionally wires:
|
||||
|
|
@ -358,14 +358,14 @@ If a future session wakes up from compaction and starts bluffing, this is the pa
|
|||
- persistent semantic indexing now exists behind explicit `thread/epiphany/index`
|
||||
- Phase 5 semantic distillation/promotion is active:
|
||||
- dedicated experimental `thread/epiphany/update`, `thread/epiphany/distill`, and `thread/epiphany/promote` exist and are live-smoked
|
||||
- experimental `thread/epiphany/stateUpdated` now exists and is live-smoked for both direct update and accepted promote paths
|
||||
- experimental `thread/epiphany/stateUpdated` now exists and is live-smoked for both direct update and accepted promote paths, including source labels
|
||||
- structural map/churn promotion validation is landed in `epiphany-core`
|
||||
- proposal selection now rejects observations without accepting `recent_evidence`, and churn pressure now reflects match-kind-aware map-delta shape
|
||||
- proposal can now omit `observationIds` and let `epiphany-core` choose a bounded coherent path cluster from existing verified, evidence-backed observations using source/evidence quality plus graph-frontier focus
|
||||
- proposal churn now distinguishes exact-ref refinements from same-path broadening, deterministic-node reuse, semantic unanchored-node reuse, and new candidate surfaces before setting graph freshness and diff pressure
|
||||
- distillation now summarizes noisy tool/command/shell/model output into salient typed evidence rather than preserving raw output sludge as the summary, and final result/failure/error/finished lines outrank generic warnings unless warning is the only central signal
|
||||
- promotion now rejects medium/high/expanded/broadening/semantic/update churn deltas that lack a warning, carry weak generic verifier evidence, or rely on substring verifier-kind accidents such as `contest`
|
||||
- richer Phase 5 app-server smoke is now reproducible through `tools/epiphany_phase5_smoke.py`; it verifies `shell-tool` distillation to `tool-output`, read-only proposal, update notification revision 1, risky-churn rejection without warning, expanded-low-pressure rejection, substring verifier-kind rejection, weak verifier-kind rejection, accepted promotion only with warning plus strong verifier evidence, and promote notification revision 2
|
||||
- richer Phase 5 app-server smoke is now reproducible through `tools/epiphany_phase5_smoke.py`; it verifies `shell-tool` distillation to `tool-output`, read-only proposal, update notification source/revision `update`/1, risky-churn rejection without warning, expanded-low-pressure rejection, substring verifier-kind rejection, weak verifier-kind rejection, accepted promotion only with warning plus strong verifier evidence, and promote notification source/revision `promote`/2
|
||||
- the Epiphany algorithmic map has been semantically audited flow-by-flow against the cited code; stale line anchors were fixed, and the current typed spine still describes a coherent machine
|
||||
- the next bounded follow-up should use the richer smoke harness as a guardrail before the next source-grounded proposal/promotion hardening slice
|
||||
- There is now a first live `thread/epiphany/stateUpdated` notification seam for successful update/promote writes; there is still no broader watcher/job/specialist event stream.
|
||||
|
|
@ -515,4 +515,4 @@ cmd /c "\"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxi
|
|||
|
||||
The repo is in a good state.
|
||||
|
||||
Phase 1, Phase 2, the minimal Phase 3 typed read surface, Phase 4 retrieval/indexing/core-extraction, and the current Phase 5 distill/propose/promote/update baseline are landed and verified. `vendor/codex` is first-class in the parent repo now, with the heavier Epiphany organs living in `epiphany-core`. Successful direct updates and accepted promotions now emit experimental `thread/epiphany/stateUpdated` notifications carrying the updated typed state. Read-only distillation now summarizes noisy tool/model output into typed evidence and ranks final result/error/finished lines above generic warnings, read-only proposal can auto-select a bounded evidence-backed observation cluster and report match-kind-aware map-delta pressure, promotion rejects risky deltas without warning plus strong verifier evidence, expansion freshness cannot bypass warning requirements by claiming low pressure, and verifier kinds are token-matched so `contest` does not pass as `test`. The current Epiphany algorithmic map has been source-audited against the code flow it describes. The richer Phase 5 chain is now live-smoked through app-server by `tools/epiphany_phase5_smoke.py`, including update notification revision 1, expanded-low-pressure and substring-verifier rejection checks, accepted promotion, and promote notification revision 2. The next clean move is the next bounded live typed-state/read-surface hardening slice, with that smoke harness as a guardrail; not GUI paint, watcher magic, or re-proving retrieval. Pre-compaction persistence is now an explicit design rule, not a lucky habit.
|
||||
Phase 1, Phase 2, the minimal Phase 3 typed read surface, Phase 4 retrieval/indexing/core-extraction, and the current Phase 5 distill/propose/promote/update baseline are landed and verified. `vendor/codex` is first-class in the parent repo now, with the heavier Epiphany organs living in `epiphany-core`. Successful direct updates and accepted promotions now emit experimental `thread/epiphany/stateUpdated` notifications carrying the updated typed state and source labels. Read-only distillation now summarizes noisy tool/model output into typed evidence and ranks final result/error/finished lines above generic warnings, read-only proposal can auto-select a bounded evidence-backed observation cluster and report match-kind-aware map-delta pressure, promotion rejects risky deltas without warning plus strong verifier evidence, expansion freshness cannot bypass warning requirements by claiming low pressure, and verifier kinds are token-matched so `contest` does not pass as `test`. The current Epiphany algorithmic map has been source-audited against the code flow it describes. The richer Phase 5 chain is now live-smoked through app-server by `tools/epiphany_phase5_smoke.py`, including update notification source/revision `update`/1, expanded-low-pressure and substring-verifier rejection checks, accepted promotion, and promote notification source/revision `promote`/2. The next clean move is the next bounded live typed-state/read-surface hardening slice, with that smoke harness as a guardrail; not GUI paint, watcher magic, or re-proving retrieval. Pre-compaction persistence is now an explicit design rule, not a lucky habit.
|
||||
|
|
|
|||
|
|
@ -134,3 +134,5 @@
|
|||
{"ts": "2026-04-25T04:03:52+00:00", "type": "verification", "status": "ok", "note": "Verified token-aware verifier-kind promotion hardening with py_compile for tools/epiphany_phase5_smoke.py, cargo fmt --manifest-path .\\epiphany-core\\Cargo.toml, cargo test --manifest-path .\\epiphany-core\\Cargo.toml promotion::tests (11 tests), full cargo test --manifest-path .\\epiphany-core\\Cargo.toml (45 tests), rebuilt codex-app-server with CARGO_TARGET_DIR=C:\\Users\\Meta\\.cargo-target-codex, and reran tools/epiphany_phase5_smoke.py. Smoke now rejects verifierEvidence.kind=contest for risky churn while preserving accepted strong verification evidence."}
|
||||
{"ts": "2026-04-25T04:31:41+00:00", "type": "verification", "status": "ok", "note": "Verified live state notification slice with py_compile for tools/epiphany_phase5_smoke.py, targeted cargo test -p codex-app-server-protocol --lib thread_epiphany (14 tests), rebuilt codex-app-server with CARGO_TARGET_DIR=C:\\Users\\Meta\\.cargo-target-codex, and reran tools/epiphany_phase5_smoke.py. Smoke observed updateNotificationRevision=1 and promoteNotificationRevision=2 while preserving read-only proposal and rejected-promotion behavior."}
|
||||
{"ts": "2026-04-25T04:32:27+00:00", "type": "implementation", "status": "ok", "note": "Landed first live Epiphany typed-state notification seam. App-server protocol now declares experimental thread/epiphany/stateUpdated, direct thread/epiphany/update emits it after successful state persistence, accepted thread/epiphany/promote emits it after the durable update path, and rejected promotions remain non-mutating and silent."}
|
||||
{"ts": "2026-04-25T04:56:41+00:00", "type": "verification", "status": "ok", "note": "Verified sourced stateUpdated notifications with py_compile for tools/epiphany_phase5_smoke.py, cargo fmt for codex-app-server-protocol/app-server, targeted cargo test -p codex-app-server-protocol --lib thread_epiphany, targeted cargo test -p codex-app-server --lib map_epiphany_, regenerated stable app-server protocol schema fixtures, full cargo test -p codex-app-server-protocol, rebuilt codex-app-server, and reran tools/epiphany_phase5_smoke.py. Smoke observed updateNotificationSource=update with revision 1 and promoteNotificationSource=promote with revision 2."}
|
||||
{"ts": "2026-04-25T04:56:56+00:00", "type": "implementation", "status": "ok", "note": "Hardened the live Epiphany state notification contract. thread/epiphany/stateUpdated now carries a typed source field: update for direct thread/epiphany/update writes and promote for accepted thread/epiphany/promote writes; rejected promotions remain non-mutating and silent."}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ accepted_design:
|
|||
- harden source-output distillation salience ranking incrementally: final test result, failure, error, exit-code, passed, and finished lines outrank generic warnings when compressing noisy tool output, while warning-only output still preserves the warning as the central signal
|
||||
- harden promotion policy incrementally: `thread/epiphany/promote` should reject risky churn deltas unless they carry explicit warning rationale and strong verifier evidence kind, treating graph expansion, broadening, semantic anchoring, updates, and medium/high pressure as risky even when a patch tries to understate pressure; strong verifier kinds are token-matched so substring accidents such as `contest` do not satisfy `test`
|
||||
- live-smoke the richer Phase 5 app-server chain with a reusable repo-local harness: source-output distillation produced `tool-output` with final result lines ahead of generic warnings, proposal stayed read-only, risky churn rejected without warning, expansion-with-low-pressure churn rejected without warning, risky churn rejected with weak or substring verifier evidence, and accepted risky churn persisted only with warning plus strong verifier evidence
|
||||
- land the first live Epiphany state notification seam: experimental `thread/epiphany/stateUpdated` publishes the updated typed state after successful direct `thread/epiphany/update` and accepted `thread/epiphany/promote`, while rejected promotions still do not mutate state or emit update notifications
|
||||
- harden the first live Epiphany state notification seam: experimental `thread/epiphany/stateUpdated` publishes the updated typed state after successful direct `thread/epiphany/update` and accepted `thread/epiphany/promote`, includes a typed `source` of `update` or `promote`, while rejected promotions still do not mutate state or emit update notifications
|
||||
|
||||
rejected_paths:
|
||||
- name: pinned_map_only
|
||||
|
|
@ -125,5 +125,5 @@ rejected_paths:
|
|||
reason: audited candidates were either terminal-only, stale/aspirational, or incoherent wrappers; the comparison clones were removed from vendor to avoid building on untrusted drift
|
||||
|
||||
current_status:
|
||||
summary: Workspace initialized with protocol files, typed state, handoff notes, architecture maps, and a rolling implementation plan against vendored Codex. Phase 1 durable state, Phase 2 prompt integration, the minimal Phase 3 typed read surface, and Phase 4 retrieval/indexing/core-extraction are landed on `main`. Phase 5 semantic distillation/promotion/proposal is now active and chewed enough for the first live typed-state stream seam: the current baseline includes explicit Qdrant indexing with BM25 fallback, typed `thread/epiphany/update`, read-only `thread/epiphany/distill`, read-only `thread/epiphany/propose`, verifier-backed `thread/epiphany/promote`, experimental `thread/epiphany/stateUpdated` notifications after successful direct updates and accepted promotions, structural map/churn promotion validation, source-output-aware distillation with result/error/finished lines prioritized over generic warnings, graph-node reuse, linked frontier focus, evidence-backed proposal selection, selected-observation prioritization, strict unanchored-node semantic reuse, automatic bounded observation selection, match-kind-aware map-delta churn pressure, risky-delta promotion policy in `epiphany-core`, expansion-freshness promotion hardening so new map surfaces cannot bypass warning requirements by claiming low pressure, token-aware verifier-kind matching so substring accidents cannot satisfy strong verifier evidence, a reusable richer Phase 5 app-server smoke harness, and thin vendored Codex host seams. The richer smoke now verifies source-output distillation, read-only proposal, update notification revision 1, risky-delta rejection, expanded-low-pressure rejection, weak-verifier rejection, substring-verifier rejection, accepted promotion, and promote notification revision 2 through the app-server seam. The Windows app-server stack-pressure regression was narrowed to test-thread stack size; repo-local Cargo config sets `RUST_MIN_STACK=67108864`, and boxed-future request-dispatch experiments were removed after config-only verification passed. The repo also has source-available/commercial licensing plus a CLA gate for external contributions.
|
||||
summary: Workspace initialized with protocol files, typed state, handoff notes, architecture maps, and a rolling implementation plan against vendored Codex. Phase 1 durable state, Phase 2 prompt integration, the minimal Phase 3 typed read surface, and Phase 4 retrieval/indexing/core-extraction are landed on `main`. Phase 5 semantic distillation/promotion/proposal is now active and chewed enough for the first live typed-state stream seam: the current baseline includes explicit Qdrant indexing with BM25 fallback, typed `thread/epiphany/update`, read-only `thread/epiphany/distill`, read-only `thread/epiphany/propose`, verifier-backed `thread/epiphany/promote`, experimental `thread/epiphany/stateUpdated` notifications after successful direct updates and accepted promotions with typed `source` values of `update` or `promote`, structural map/churn promotion validation, source-output-aware distillation with result/error/finished lines prioritized over generic warnings, graph-node reuse, linked frontier focus, evidence-backed proposal selection, selected-observation prioritization, strict unanchored-node semantic reuse, automatic bounded observation selection, match-kind-aware map-delta churn pressure, risky-delta promotion policy in `epiphany-core`, expansion-freshness promotion hardening so new map surfaces cannot bypass warning requirements by claiming low pressure, token-aware verifier-kind matching so substring accidents cannot satisfy strong verifier evidence, a reusable richer Phase 5 app-server smoke harness, and thin vendored Codex host seams. The richer smoke now verifies source-output distillation, read-only proposal, update notification source/revision `update`/1, risky-delta rejection, expanded-low-pressure rejection, weak-verifier rejection, substring-verifier rejection, accepted promotion, and promote notification source/revision `promote`/2 through the app-server seam. The Windows app-server stack-pressure regression was narrowed to test-thread stack size; repo-local Cargo config sets `RUST_MIN_STACK=67108864`, and boxed-future request-dispatch experiments were removed after config-only verification passed. The repo also has source-available/commercial licensing plus a CLA gate for external contributions.
|
||||
next_action: Continue the next bounded live typed-state/read-surface hardening slice from the now-notified update/promote seam; keep retrieval/distillation/proposal read-only, keep accepted writes routed through promotion/update, and avoid GUI, watcher, or specialist-agent machinery.
|
||||
|
|
|
|||
|
|
@ -288,6 +288,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
update_notification["params"]["threadId"] == thread_id,
|
||||
"update notification should identify the thread",
|
||||
)
|
||||
require(
|
||||
update_notification["params"]["source"] == "update",
|
||||
"update notification should identify update source",
|
||||
)
|
||||
require(
|
||||
update_notification["params"]["epiphanyState"]["revision"] == 1,
|
||||
"update notification should publish revision 1",
|
||||
|
|
@ -465,6 +469,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
promote_notification["params"]["threadId"] == thread_id,
|
||||
"promote notification should identify the thread",
|
||||
)
|
||||
require(
|
||||
promote_notification["params"]["source"] == "promote",
|
||||
"promote notification should identify promote source",
|
||||
)
|
||||
require(
|
||||
promote_notification["params"]["epiphanyState"]["revision"] == 2,
|
||||
"promote notification should publish revision 2",
|
||||
|
|
@ -489,6 +497,7 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"distillEvidenceId": evidence["id"],
|
||||
"distillEvidenceKind": evidence["kind"],
|
||||
"distillSummary": evidence["summary"],
|
||||
"updateNotificationSource": update_notification["params"]["source"],
|
||||
"updateNotificationRevision": update_notification["params"]["epiphanyState"][
|
||||
"revision"
|
||||
],
|
||||
|
|
@ -506,6 +515,7 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"substringVerifierReasons": reject_substring_verifier["reasons"],
|
||||
"accepted": accepted["accepted"],
|
||||
"finalRevision": final_state["revision"],
|
||||
"promoteNotificationSource": promote_notification["params"]["source"],
|
||||
"promoteNotificationRevision": promote_notification["params"]["epiphanyState"][
|
||||
"revision"
|
||||
],
|
||||
|
|
|
|||
11
vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json
generated
vendored
11
vendor/codex/codex-rs/app-server-protocol/schema/json/ServerNotification.json
generated
vendored
|
|
@ -3717,16 +3717,27 @@
|
|||
"epiphanyState": {
|
||||
"$ref": "#/definitions/EpiphanyThreadState"
|
||||
},
|
||||
"source": {
|
||||
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"epiphanyState",
|
||||
"source",
|
||||
"threadId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadEpiphanyStateUpdatedSource": {
|
||||
"enum": [
|
||||
"update",
|
||||
"promote"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadId": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14972,17 +14972,28 @@
|
|||
"epiphanyState": {
|
||||
"$ref": "#/definitions/v2/EpiphanyThreadState"
|
||||
},
|
||||
"source": {
|
||||
"$ref": "#/definitions/v2/ThreadEpiphanyStateUpdatedSource"
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"epiphanyState",
|
||||
"source",
|
||||
"threadId"
|
||||
],
|
||||
"title": "ThreadEpiphanyStateUpdatedNotification",
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadEpiphanyStateUpdatedSource": {
|
||||
"enum": [
|
||||
"update",
|
||||
"promote"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyUpdatePatch": {
|
||||
"properties": {
|
||||
"activeSubgoalId": {
|
||||
|
|
|
|||
|
|
@ -12859,17 +12859,28 @@
|
|||
"epiphanyState": {
|
||||
"$ref": "#/definitions/EpiphanyThreadState"
|
||||
},
|
||||
"source": {
|
||||
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"epiphanyState",
|
||||
"source",
|
||||
"threadId"
|
||||
],
|
||||
"title": "ThreadEpiphanyStateUpdatedNotification",
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadEpiphanyStateUpdatedSource": {
|
||||
"enum": [
|
||||
"update",
|
||||
"promote"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyUpdatePatch": {
|
||||
"properties": {
|
||||
"activeSubgoalId": {
|
||||
|
|
|
|||
|
|
@ -704,18 +704,29 @@
|
|||
"default"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ThreadEpiphanyStateUpdatedSource": {
|
||||
"enum": [
|
||||
"update",
|
||||
"promote"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"epiphanyState": {
|
||||
"$ref": "#/definitions/EpiphanyThreadState"
|
||||
},
|
||||
"source": {
|
||||
"$ref": "#/definitions/ThreadEpiphanyStateUpdatedSource"
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"epiphanyState",
|
||||
"source",
|
||||
"threadId"
|
||||
],
|
||||
"title": "ThreadEpiphanyStateUpdatedNotification",
|
||||
|
|
|
|||
|
|
@ -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 { EpiphanyThreadState } from "../EpiphanyThreadState";
|
||||
import type { ThreadEpiphanyStateUpdatedSource } from "./ThreadEpiphanyStateUpdatedSource";
|
||||
|
||||
export type ThreadEpiphanyStateUpdatedNotification = { threadId: string, epiphanyState: EpiphanyThreadState, };
|
||||
export type ThreadEpiphanyStateUpdatedNotification = { threadId: string, source: ThreadEpiphanyStateUpdatedSource, epiphanyState: EpiphanyThreadState, };
|
||||
|
|
|
|||
5
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedSource.ts
generated
vendored
Normal file
5
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/ThreadEpiphanyStateUpdatedSource.ts
generated
vendored
Normal 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 ThreadEpiphanyStateUpdatedSource = "update" | "promote";
|
||||
1
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts
generated
vendored
1
vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/index.ts
generated
vendored
|
|
@ -322,6 +322,7 @@ export type { ThreadEpiphanyRetrieveResult } from "./ThreadEpiphanyRetrieveResul
|
|||
export type { ThreadEpiphanyRetrieveResultKind } from "./ThreadEpiphanyRetrieveResultKind";
|
||||
export type { ThreadEpiphanyRetrieveShardSummary } from "./ThreadEpiphanyRetrieveShardSummary";
|
||||
export type { ThreadEpiphanyStateUpdatedNotification } from "./ThreadEpiphanyStateUpdatedNotification";
|
||||
export type { ThreadEpiphanyStateUpdatedSource } from "./ThreadEpiphanyStateUpdatedSource";
|
||||
export type { ThreadEpiphanyUpdatePatch } from "./ThreadEpiphanyUpdatePatch";
|
||||
export type { ThreadForkParams } from "./ThreadForkParams";
|
||||
export type { ThreadForkResponse } from "./ThreadForkResponse";
|
||||
|
|
|
|||
|
|
@ -1888,6 +1888,7 @@ mod tests {
|
|||
let notification = ServerNotification::ThreadEpiphanyStateUpdated(
|
||||
v2::ThreadEpiphanyStateUpdatedNotification {
|
||||
thread_id: "thr_123".to_string(),
|
||||
source: v2::ThreadEpiphanyStateUpdatedSource::Update,
|
||||
epiphany_state: codex_protocol::protocol::EpiphanyThreadState {
|
||||
revision: 7,
|
||||
objective: Some("Keep the map live".to_string()),
|
||||
|
|
@ -1900,6 +1901,7 @@ mod tests {
|
|||
"method": "thread/epiphany/stateUpdated",
|
||||
"params": {
|
||||
"threadId": "thr_123",
|
||||
"source": "update",
|
||||
"epiphanyState": {
|
||||
"revision": 7,
|
||||
"objective": "Keep the map live"
|
||||
|
|
@ -2512,6 +2514,7 @@ mod tests {
|
|||
let notification = ServerNotification::ThreadEpiphanyStateUpdated(
|
||||
v2::ThreadEpiphanyStateUpdatedNotification {
|
||||
thread_id: "thr_123".to_string(),
|
||||
source: v2::ThreadEpiphanyStateUpdatedSource::Promote,
|
||||
epiphany_state: codex_protocol::protocol::EpiphanyThreadState::default(),
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -4058,9 +4058,18 @@ pub struct ThreadEpiphanyUpdateResponse {
|
|||
#[ts(export_to = "v2/")]
|
||||
pub struct ThreadEpiphanyStateUpdatedNotification {
|
||||
pub thread_id: String,
|
||||
pub source: ThreadEpiphanyStateUpdatedSource,
|
||||
pub epiphany_state: CoreEpiphanyThreadState,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum ThreadEpiphanyStateUpdatedSource {
|
||||
Update,
|
||||
Promote,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
|
|||
2
vendor/codex/codex-rs/app-server/README.md
vendored
2
vendor/codex/codex-rs/app-server/README.md
vendored
|
|
@ -145,7 +145,7 @@ Experimental Epiphany retrieval:
|
|||
- `thread/epiphany/distill` is a loaded-thread-only read surface that turns one explicit observation input into a deterministic observation/evidence patch plus the current `expectedRevision`. It does not mutate thread state; callers must pass the returned patch to `thread/epiphany/update` to promote it.
|
||||
- `thread/epiphany/promote` is an explicit loaded-thread-only promotion gate. It evaluates a patch plus verifier evidence, rejects with reasons without mutating state when policy fails, and applies the patch through the durable update path when accepted.
|
||||
- `thread/epiphany/update` is the explicit loaded-thread-only control-plane write path for Epiphany state. It can append observations/evidence and replace bounded typed state fields such as objective, subgoals, graph frontier/checkpoint, scratch, churn, and mode; it bumps the Epiphany revision and persists a rollout snapshot immediately.
|
||||
- `thread/epiphany/stateUpdated` is an experimental server notification emitted after successful `thread/epiphany/update` and accepted `thread/epiphany/promote`. It carries the updated typed `epiphanyState`; rejected promotions do not emit it.
|
||||
- `thread/epiphany/stateUpdated` is an experimental server notification emitted after successful `thread/epiphany/update` and accepted `thread/epiphany/promote`. It carries the updated typed `epiphanyState` plus a `source` of `update` or `promote`; rejected promotions do not emit it.
|
||||
The request envelope is camelCase, but nested reused Epiphany core DTOs currently keep their core snake_case fields, such as `source_kind`, `understanding_status`, and `diff_pressure`.
|
||||
|
||||
- `thread/start` — create a new thread; emits `thread/started` (including the current `thread.status`) and auto-subscribes you to turn/item events for that thread. When the request includes a `cwd` and the resolved sandbox is `workspace-write` or full access, app-server also marks that project as trusted in the user `config.toml`. Pass `sessionStartSource: "clear"` when starting a replacement thread after clearing the current session so `SessionStart` hooks receive `source: "clear"` instead of the default `"startup"`. For permissions, prefer `permissionProfile`; the legacy `sandbox` shorthand is still accepted but cannot be combined with `permissionProfile`.
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ use codex_app_server_protocol::ThreadEpiphanyRetrieveResult;
|
|||
use codex_app_server_protocol::ThreadEpiphanyRetrieveResultKind;
|
||||
use codex_app_server_protocol::ThreadEpiphanyRetrieveShardSummary;
|
||||
use codex_app_server_protocol::ThreadEpiphanyStateUpdatedNotification;
|
||||
use codex_app_server_protocol::ThreadEpiphanyStateUpdatedSource;
|
||||
use codex_app_server_protocol::ThreadEpiphanyUpdateParams;
|
||||
use codex_app_server_protocol::ThreadEpiphanyUpdatePatch;
|
||||
use codex_app_server_protocol::ThreadEpiphanyUpdateResponse;
|
||||
|
|
@ -4417,6 +4418,7 @@ impl CodexMessageProcessor {
|
|||
.send_server_notification(ServerNotification::ThreadEpiphanyStateUpdated(
|
||||
ThreadEpiphanyStateUpdatedNotification {
|
||||
thread_id: thread_uuid.to_string(),
|
||||
source: ThreadEpiphanyStateUpdatedSource::Promote,
|
||||
epiphany_state,
|
||||
},
|
||||
))
|
||||
|
|
@ -4494,6 +4496,7 @@ impl CodexMessageProcessor {
|
|||
.send_server_notification(ServerNotification::ThreadEpiphanyStateUpdated(
|
||||
ThreadEpiphanyStateUpdatedNotification {
|
||||
thread_id: thread_uuid.to_string(),
|
||||
source: ThreadEpiphanyStateUpdatedSource::Update,
|
||||
epiphany_state,
|
||||
},
|
||||
))
|
||||
|
|
|
|||
Reference in a new issue