diff --git a/epiphany-core/src/distillation.rs b/epiphany-core/src/distillation.rs index 3d2a5e17..351e094a 100644 --- a/epiphany-core/src/distillation.rs +++ b/epiphany-core/src/distillation.rs @@ -112,16 +112,23 @@ fn summarize_source_output(text: &str) -> Option { return None; } - let mut selected = Vec::new(); + let mut high_signal = Vec::new(); + let mut warnings = Vec::new(); for line in &lines { - if is_salient_output_line(line) { - selected.push(line.clone()); - } - if selected.len() >= 3 { - break; + if is_high_signal_output_line(line) { + high_signal.push(line.clone()); + } else if is_warning_output_line(line) { + warnings.push(line.clone()); } } + let mut selected = if high_signal.is_empty() { + warnings + } else { + high_signal + }; + selected.truncate(3); + if selected.is_empty() { selected.extend(lines.into_iter().take(2)); } @@ -136,7 +143,7 @@ fn normalized_lines(text: &str) -> Vec { .collect() } -fn is_salient_output_line(line: &str) -> bool { +fn is_high_signal_output_line(line: &str) -> bool { let lower = line.to_ascii_lowercase(); lower.contains("exit code") || lower.contains("test result") @@ -144,7 +151,10 @@ fn is_salient_output_line(line: &str) -> bool { || lower.contains("passed") || lower.contains("failed") || lower.contains("error") - || lower.contains("warning") +} + +fn is_warning_output_line(line: &str) -> bool { + line.to_ascii_lowercase().contains("warning") } fn fingerprint(source_kind: &str, status: &str, subject: Option<&str>, text: &str) -> String { @@ -262,6 +272,51 @@ mod tests { ); } + #[test] + fn distill_observation_prioritizes_results_over_generic_warnings() { + let proposal = distill_observation(EpiphanyDistillInput { + source_kind: "shell-tool".to_string(), + status: "ok".to_string(), + subject: Some("cargo test".to_string()), + text: r#" + warning: unused variable in unrelated fixture + running 3 tests + test result: ok. 3 passed; 0 failed; 0 ignored; finished in 0.02s + Finished `test` profile + "# + .to_string(), + ..Default::default() + }) + .expect("distill noisy tool output"); + + assert_eq!( + proposal.observation.summary, + "cargo test: test result: ok. 3 passed; 0 failed; 0 ignored; finished in 0.02s | Finished `test` profile" + ); + } + + #[test] + fn distill_observation_keeps_warning_when_it_is_the_only_signal() { + let proposal = distill_observation(EpiphanyDistillInput { + source_kind: "shell-tool".to_string(), + status: "ok".to_string(), + subject: Some("cargo check".to_string()), + text: r#" + compiling fixture + warning: suspicious configuration + generated intermediate files + "# + .to_string(), + ..Default::default() + }) + .expect("distill warning-only tool output"); + + assert_eq!( + proposal.observation.summary, + "cargo check: warning: suspicious configuration" + ); + } + #[test] fn distill_observation_types_model_output_as_model_evidence() { let proposal = distill_observation(EpiphanyDistillInput { diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 3a84313f..c0757dd8 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -619,7 +619,7 @@ Distillation is the pencil-draft path. It turns one explicit thing the client cl That restraint is the point. This surface is not "the transcript became truth." It is "here is a shaped candidate; now choose whether to promote it." The current implementation is deterministic and boring on purpose: normalize whitespace, attach code refs, choose a stable id, and return a patch. No hidden model call, no watcher magic, no tiny bureaucracy pretending it is wisdom. -For source kinds that smell like real output from a tool, command, shell, model, or assistant, the distiller now keeps the same read-only patch boundary but makes the summary less like a bucket of stdout. It extracts a few salient lines such as exit code, test result, finished, passed, failed, error, or warning, and defaults the evidence kind to `tool-output` or `model-output` when the caller did not provide one. That gives later proposal/promotion logic typed signal without making the raw transcript canonical. +For source kinds that smell like real output from a tool, command, shell, model, or assistant, the distiller now keeps the same read-only patch boundary but makes the summary less like a bucket of stdout. It extracts a few salient lines such as exit code, test result, finished, passed, failed, error, or warning; result/failure/error/finished lines outrank generic warnings, while warning-only output still preserves the warning as the central signal. It also defaults the evidence kind to `tool-output` or `model-output` when the caller did not provide one. That gives later proposal/promotion logic typed signal without making the raw transcript canonical. Protocol shape: @@ -890,7 +890,7 @@ model/tool observations -> durable evidence/map/churn mutation ``` -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, 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, or churn fields, or that try to promote risky churn without a warning and stronger verifier evidence. +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, or churn fields, or that try to promote risky churn without a warning and stronger verifier evidence. In natural language: current Epiphany can preserve a map, show a map, 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, and sanity-check those edits before they hit the ledger. It still does not ingest fresh tool/model output into richer map deltas automatically, invalidate stale graph regions, or coordinate specialist ownership. Teeth are installed; chewing is supervised; the next slices are about taste, not jawbones. diff --git a/notes/epiphany-fork-implementation-plan.md b/notes/epiphany-fork-implementation-plan.md index 2624bf0d..5b9ba390 100644 --- a/notes/epiphany-fork-implementation-plan.md +++ b/notes/epiphany-fork-implementation-plan.md @@ -23,12 +23,12 @@ This note tracks Epiphany as a fork of Codex with an opinionated modeling archit - an automatic observation-selection slice that lets read-only `thread/epiphany/propose` omit `observationIds`; `epiphany-core` then chooses a bounded coherent path cluster from existing verified, evidence-backed observations using source/evidence quality and current graph-frontier focus - a map-delta judgment slice that distinguishes exact-ref refinement, same-path broadening, deterministic-node reuse, semantic unanchored-node reuse, and new candidate surfaces before setting graph freshness and `diff_pressure` - a source-output distillation slice that keeps `thread/epiphany/distill` read-only while summarizing noisy tool/command/shell/model output into salient lines and defaulting evidence kind to `tool-output` or `model-output` +- a source-output salience-ranking slice that ranks final test result, failure, error, exit-code, passed, and finished lines above generic warnings, while still preserving warnings when warnings are the only useful signal - a risky-delta promotion policy slice that keeps `thread/epiphany/promote` as the only gate but requires medium/high/broadening/semantic/update churn deltas to carry explicit warning rationale plus strong verifier evidence kind - 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, and accepted promotion through the loaded-thread seam -- known future refinement from that smoke: source-output distillation should rank final test results, failures, errors, and finish lines above generic warnings unless the warning is itself the important evidence - current phase: Phase 5 semantic distillation/promotion/proposal machinery -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 promotion notice risky deltas, or prove that richer chain over app-server by hand. 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 proposal/promotion rule, and to keep `thread/epiphany/retrieve`, `thread/epiphany/distill`, and `thread/epiphany/propose` out of the durable-writer business. +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, or prove that richer chain over app-server by hand. 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 proposal/promotion rule, and to keep `thread/epiphany/retrieve`, `thread/epiphany/distill`, and `thread/epiphany/propose` out of the durable-writer business. ## Summary @@ -278,7 +278,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, risky-delta promotion policy, and reusable richer app-server smoke harness as the active Phase 5 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 promotion policy reason over richer deltas without silently writing them?", or "does the richer Phase 5 chain behave through the app-server seam?" 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, and reusable richer app-server smoke harness as the active Phase 5 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?", or "does the richer Phase 5 chain behave through the app-server seam?" 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 @@ -286,7 +286,6 @@ Treat the current retrieval baseline and explicit indexing follow-up as landed P 4. do not add durable retrieval-summary writes from `thread/epiphany/retrieve` without a clean out-of-band rollout/update semantic 5. continue Phase 5 by hardening the layer above the landed distill/propose/promote/update surfaces: - better proposal heuristics beyond the current exact-code-ref, same-path, deterministic-id, graph-link, accepting-evidence, semantic-unanchored-node, selected-priority, auto-selection, and match-kind-aware map-delta-pressure checks - - possible distillation refinement: improve source-output salience ranking so generic warnings do not crowd out final test/failure/finished lines - run `tools/epiphany_phase5_smoke.py` as a preflight before changing proposal or promotion policy - add the next smallest promotion/proposal rule only after a source-grounded gap appears in real use or smoke output - verifier-backed acceptance/rejection evidence diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 38821fbc..f9f443fb 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -87,7 +87,7 @@ Current verified typed state/promotion layer: - experimental loaded-thread-only `thread/epiphany/propose` - 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 and defaulting evidence kind to `tool-output` or `model-output` when the caller did not provide one +- 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 - core `CodexThread.epiphany_update_state(...)` applies the patch to live `SessionState`, bumps revision, persists `RolloutItem::EpiphanyState`, and flushes rollout @@ -359,10 +359,9 @@ If a future session wakes up from compaction and starts bluffing, this is the pa - 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 + - 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/broadening/semantic/update churn deltas that lack a warning or only carry weak generic verifier evidence - 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, risky-churn rejection without warning, risky-churn rejection with weak verifier kind, and accepted promotion only with warning plus strong verifier evidence - - the richer smoke exposed one non-urgent distillation smell: source-output salience currently keeps generic warning lines too readily; future refinement should rank final test result, failure, error, and finished lines above generic warnings unless the warning is the central signal - 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 still no live `thread/epiphany/*` notification stream. @@ -470,7 +469,6 @@ Current Phase 5 implementation move: 3. keep `thread/epiphany/retrieve`, `thread/epiphany/distill`, and `thread/epiphany/propose` read-only 4. continue Phase 5 by hardening the next layer above the distill/propose/promote/update surfaces: - run `tools/epiphany_phase5_smoke.py` before changing proposal or promotion policy - - consider source-output salience ranking as a bounded distillation hardening slice if it becomes the next real pain - add the next smallest promotion/proposal rule only after a source-grounded gap appears in real use or smoke output - verifier-backed acceptance/rejection evidence - no GUI, watcher, or specialist-agent machinery yet @@ -513,4 +511,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`. Read-only distillation now summarizes noisy tool/model output into typed evidence, 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, and 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`. The next clean move is the next source-grounded proposal/promotion 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`. 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, and 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`. The next clean move is the next source-grounded proposal/promotion 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. diff --git a/state/evidence.jsonl b/state/evidence.jsonl index f75ae7ec..cdc3c0fa 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -125,3 +125,5 @@ {"ts": "2026-04-25T03:24:38+00:00", "type": "verification", "status": "ok", "note": "Verified Compact-Rehydrate-Reorient-Continue readiness before compaction. state/map.yaml, epiphany_state.py status, fresh-workspace-handoff, implementation plan, and Epiphany algorithmic map agree that the current Phase 5 baseline includes source-output-aware distillation, match-kind-aware proposal churn pressure, and risky-delta promotion policy; git was clean/synced before this evidence record; next action is live-smoke the richer Phase 5 app-server chain while keeping retrieve/distill/propose read-only and avoiding GUI, watcher, or specialist-agent work."} {"ts": "2026-04-25T03:34:04+00:00", "type": "verification", "status": "ok", "note": "Live-smoked the richer Phase 5 app-server chain with the reusable tools/epiphany_phase5_smoke.py harness after rebuilding the app-server binary. The smoke started an isolated ephemeral loaded thread, verified source-output distillation defaults shell-tool evidence to tool-output with salient output summary, confirmed thread/epiphany/propose remains read-only at revision 1, rejected risky churn without patch.churn.warning, rejected risky churn with weak verifierEvidence.kind=observation, and accepted the same risky churn only with warning plus strong verification evidence, persisting final revision 2. Result artifact: .epiphany-smoke/phase5-rich-smoke-result.json."} {"ts": "2026-04-25T03:39:06+00:00", "type": "followup", "status": "noted", "note": "Recorded future source-output distillation salience refinement from the richer Phase 5 smoke: generic warnings currently survive summarization too readily, so a later bounded distillation slice should rank final test result, failure, error, and finished lines above generic warnings unless the warning is itself the central signal. This is noted as a future refinement, not an immediate detour."} +{"ts": "2026-04-25T03:43:45+00:00", "type": "implementation", "status": "ok", "note": "Landed bounded source-output distillation salience ranking in epiphany-core. summarize_source_output now prefers final result, failure/error, exit-code, passed, and finished lines over generic warnings, while warning-only output still keeps the warning as the central signal; the reusable Phase 5 app-server smoke now asserts the unrelated warning is omitted when final result lines are present."} +{"ts": "2026-04-25T03:43:50+00:00", "type": "verification", "status": "ok", "note": "Verified source-output salience ranking with cargo fmt --manifest-path .\\epiphany-core\\Cargo.toml, targeted cargo test --manifest-path .\\epiphany-core\\Cargo.toml distillation::tests (6 tests), full cargo test --manifest-path .\\epiphany-core\\Cargo.toml (43 tests), rebuilt codex-app-server with CARGO_TARGET_DIR=C:\\Users\\Meta\\.cargo-target-codex, and reran tools/epiphany_phase5_smoke.py. Smoke result summary now contains test result and Finished lines without the unrelated warning, while proposal remained read-only and risky promotion rejection/acceptance still behaved correctly."} diff --git a/state/map.yaml b/state/map.yaml index d82a2f8e..4e6263d1 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -105,9 +105,9 @@ accepted_design: - a full source-grounded audit of the Epiphany algorithmic map confirmed the current typed spine is coherent: protocol state, prompt rendering, rollout persistence, thread hydration, explicit retrieval/indexing, read-only distillation/proposal, verifier-backed promotion, and the single durable update writer all describe the current control flow; the Perfect Machine pressure belongs above proposal/promotion, not in another writer or shiny surface - harden proposal map-delta judgment incrementally: read-only `thread/epiphany/propose` should distinguish exact-ref refinement, same-path broadening, deterministic-node reuse, semantic unanchored-node reuse, and new candidate surfaces before setting graph freshness and `diff_pressure` - harden observation distillation incrementally: read-only `thread/epiphany/distill` should summarize noisy tool/command/shell/model output into salient bounded evidence and default evidence kind to `tool-output` or `model-output` when appropriate + - 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, while still applying accepted candidates only through the durable update path - - live-smoke the richer Phase 5 app-server chain with a reusable repo-local harness: source-output distillation produced `tool-output`, proposal stayed read-only, risky churn rejected without warning, risky churn rejected with weak verifier evidence, and accepted risky churn persisted only with warning plus strong verifier evidence - - keep source-output distillation salience ranking as a future refinement: final test result, failure, error, and finished lines should outrank generic warnings when compressing noisy tool output unless the warning itself is the central signal + - 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, risky churn rejected with weak verifier evidence, and accepted risky churn persisted only with warning plus strong verifier evidence rejected_paths: - name: pinned_map_only @@ -124,5 +124,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: 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`, structural map/churn promotion validation, source-output-aware distillation, 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`, 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, risky-delta rejection, and accepted promotion 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: 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`, 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`, 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, risky-delta rejection, and accepted promotion 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: Use the reusable richer Phase 5 app-server smoke harness as a preflight, then land the next smallest source-grounded proposal/promotion hardening slice that real use exposes; keep retrieval/distillation/proposal read-only and avoid GUI, watcher, or specialist-agent machinery. diff --git a/tools/epiphany_phase5_smoke.py b/tools/epiphany_phase5_smoke.py index 719f1334..1e4e0c5b 100644 --- a/tools/epiphany_phase5_smoke.py +++ b/tools/epiphany_phase5_smoke.py @@ -245,6 +245,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]: "test result: ok" in summary or "finished test profile" in summary, "distill summary should preserve salient tool output", ) + require( + "unrelated smoke warning" not in summary, + "distill summary should prioritize final results over generic warnings", + ) update = client.send( "thread/epiphany/update",