Expose memory graph patch candidate commands
This commit is contained in:
parent
cef55e34f8
commit
74483a0728
8 changed files with 160 additions and 6 deletions
|
|
@ -12,9 +12,11 @@ use epiphany_core::EpiphanyMemoryGraphSnapshot;
|
|||
use epiphany_core::EpiphanyMemoryLifecycle;
|
||||
use epiphany_core::EpiphanyMemoryNode;
|
||||
use epiphany_core::EpiphanyMemoryNodeKind;
|
||||
use epiphany_core::EpiphanyMemoryPatchCandidate;
|
||||
use epiphany_core::EpiphanyMemoryProfile;
|
||||
use epiphany_core::EpiphanyMemorySummary;
|
||||
use epiphany_core::agent_memory_role_ids;
|
||||
use epiphany_core::apply_memory_patch_candidate;
|
||||
use epiphany_core::compose_memory_graph_snapshots;
|
||||
use epiphany_core::derive_memory_graph_freshness;
|
||||
use epiphany_core::load_agent_memory_entry_for_role;
|
||||
|
|
@ -32,9 +34,11 @@ use epiphany_core::memory_graph_node_id;
|
|||
use epiphany_core::plan_memory_graph_context_cut;
|
||||
use epiphany_core::plan_memory_graph_context_cut_with_semantic_cache;
|
||||
use epiphany_core::rebuild_memory_graph_embedding_cache;
|
||||
use epiphany_core::review_memory_patch_candidate;
|
||||
use epiphany_core::validate_memory_graph_snapshot;
|
||||
use epiphany_core::write_memory_graph_snapshot;
|
||||
use std::env;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
|
|
@ -104,6 +108,16 @@ fn main() -> Result<()> {
|
|||
let output = rebuild_memory_graph_qdrant_cache(index)?;
|
||||
print_json(&output)?;
|
||||
}
|
||||
"review-candidate" => {
|
||||
let candidate = read_candidate_args(args, false)?;
|
||||
let output = review_memory_graph_candidate(candidate)?;
|
||||
print_json(&output)?;
|
||||
}
|
||||
"apply-candidate" => {
|
||||
let candidate = read_candidate_args(args, true)?;
|
||||
let output = apply_memory_graph_candidate(candidate)?;
|
||||
print_json(&output)?;
|
||||
}
|
||||
"smoke" => {
|
||||
let store = optional_path_arg(&mut args, "--store")?
|
||||
.unwrap_or_else(|| scoped_temp_store("epiphany-memory-graph-smoke"));
|
||||
|
|
@ -210,6 +224,12 @@ struct IndexArgs {
|
|||
embedding_model: Option<String>,
|
||||
}
|
||||
|
||||
struct CandidateArgs {
|
||||
store: PathBuf,
|
||||
candidate: PathBuf,
|
||||
accepted_at: Option<String>,
|
||||
}
|
||||
|
||||
fn read_compose_args(args: impl Iterator<Item = String>) -> Result<ComposeArgs> {
|
||||
let mut store = None;
|
||||
let mut graph_id = "epiphany-memory-graph".to_string();
|
||||
|
|
@ -378,6 +398,32 @@ fn read_index_args(args: impl Iterator<Item = String>) -> Result<IndexArgs> {
|
|||
})
|
||||
}
|
||||
|
||||
fn read_candidate_args(
|
||||
args: impl Iterator<Item = String>,
|
||||
allow_acceptance: bool,
|
||||
) -> Result<CandidateArgs> {
|
||||
let mut store = None;
|
||||
let mut candidate = None;
|
||||
let mut accepted_at = None;
|
||||
let mut args = args.peekable();
|
||||
while let Some(flag) = args.next() {
|
||||
match flag.as_str() {
|
||||
"--store" => store = Some(PathBuf::from(next_value(&mut args, "--store")?)),
|
||||
"--candidate" => candidate = Some(PathBuf::from(next_value(&mut args, "--candidate")?)),
|
||||
"--accepted-at" if allow_acceptance => {
|
||||
accepted_at = Some(next_value(&mut args, "--accepted-at")?)
|
||||
}
|
||||
_ => return Err(anyhow!("unexpected candidate argument {flag:?}")),
|
||||
}
|
||||
}
|
||||
Ok(CandidateArgs {
|
||||
store: store.ok_or_else(|| anyhow!("candidate command requires --store <path>"))?,
|
||||
candidate: candidate
|
||||
.ok_or_else(|| anyhow!("candidate command requires --candidate <json-path>"))?,
|
||||
accepted_at,
|
||||
})
|
||||
}
|
||||
|
||||
fn refresh_memory_graph_store(args: RefreshArgs) -> Result<serde_json::Value> {
|
||||
let mut snapshots = Vec::new();
|
||||
let mut source_status = Vec::new();
|
||||
|
|
@ -487,6 +533,49 @@ fn refresh_memory_graph_store(args: RefreshArgs) -> Result<serde_json::Value> {
|
|||
}))
|
||||
}
|
||||
|
||||
fn review_memory_graph_candidate(args: CandidateArgs) -> Result<serde_json::Value> {
|
||||
let snapshot = load_memory_graph_snapshot(&args.store)?
|
||||
.ok_or_else(|| anyhow!("memory graph store {} is missing", args.store.display()))?;
|
||||
let candidate = load_memory_patch_candidate(&args.candidate)?;
|
||||
let review = review_memory_patch_candidate(&snapshot, &candidate);
|
||||
Ok(serde_json::json!({
|
||||
"ok": review.errors.is_empty(),
|
||||
"store": args.store,
|
||||
"candidate": args.candidate,
|
||||
"graphId": snapshot.graph_id,
|
||||
"review": review,
|
||||
}))
|
||||
}
|
||||
|
||||
fn apply_memory_graph_candidate(args: CandidateArgs) -> Result<serde_json::Value> {
|
||||
let snapshot = load_memory_graph_snapshot(&args.store)?
|
||||
.ok_or_else(|| anyhow!("memory graph store {} is missing", args.store.display()))?;
|
||||
let candidate = load_memory_patch_candidate(&args.candidate)?;
|
||||
let (updated, review) = apply_memory_patch_candidate(&snapshot, &candidate, args.accepted_at);
|
||||
if review.errors.is_empty() {
|
||||
write_memory_graph_snapshot(&args.store, &updated)?;
|
||||
}
|
||||
Ok(serde_json::json!({
|
||||
"ok": review.errors.is_empty(),
|
||||
"applied": review.errors.is_empty(),
|
||||
"store": args.store,
|
||||
"candidate": args.candidate,
|
||||
"graphId": updated.graph_id,
|
||||
"review": review,
|
||||
"domains": updated.domains.len(),
|
||||
"nodes": updated.nodes.len(),
|
||||
"edges": updated.edges.len(),
|
||||
"summaries": updated.summaries.len(),
|
||||
}))
|
||||
}
|
||||
|
||||
fn load_memory_patch_candidate(path: &PathBuf) -> Result<EpiphanyMemoryPatchCandidate> {
|
||||
let text = fs::read_to_string(path)
|
||||
.with_context(|| format!("failed to read memory patch candidate {}", path.display()))?;
|
||||
serde_json::from_str(text.trim_start_matches('\u{feff}'))
|
||||
.with_context(|| format!("failed to parse memory patch candidate {}", path.display()))
|
||||
}
|
||||
|
||||
fn write_memory_graph_embedding_manifest(args: ManifestArgs) -> Result<serde_json::Value> {
|
||||
let mut snapshot = load_memory_graph_snapshot(&args.store)?
|
||||
.ok_or_else(|| anyhow!("memory graph store {} is missing", args.store.display()))?;
|
||||
|
|
@ -599,7 +688,7 @@ fn print_json<T: serde::Serialize>(value: &T) -> Result<()> {
|
|||
|
||||
fn print_usage() {
|
||||
eprintln!(
|
||||
"usage: epiphany-memory-graph <status|validate|context|semantic-context|compose|refresh|manifest|index|smoke> --store <path> ..."
|
||||
"usage: epiphany-memory-graph <status|validate|context|semantic-context|compose|refresh|manifest|index|review-candidate|apply-candidate|smoke> --store <path> ..."
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -497,3 +497,41 @@ fn memory_patch_candidate_review_rejects_duplicate_or_orphan_growth() {
|
|||
.any(|error| error.contains("missing domain"))
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn memory_patch_candidate_deserializes_camel_case_edge_json() {
|
||||
let candidate: EpiphanyMemoryPatchCandidate = serde_json::from_str(
|
||||
r#"{
|
||||
"id":"candidate-camel",
|
||||
"profile":"repo_architecture",
|
||||
"status":"proposed",
|
||||
"proposedDomains":[{"id":"memdom-camel","profile":"repo_architecture","title":"Camel","lifecycle":"proposed"}],
|
||||
"proposedNodes":[{
|
||||
"id":"memnode-camel",
|
||||
"domainId":"memdom-camel",
|
||||
"profile":"repo_architecture",
|
||||
"kind":"module",
|
||||
"title":"Camel node",
|
||||
"claim":"Camel JSON can cross the model edge without losing typed fields.",
|
||||
"question":"Which edge fields still need aliases?",
|
||||
"tension":"",
|
||||
"actionImplication":"Reject silent field loss at the JSON edge.",
|
||||
"sourceHashes":["anchor:missing"],
|
||||
"lifecycle":"proposed"
|
||||
}]
|
||||
}"#,
|
||||
)
|
||||
.expect("camel-case model edge candidate should parse");
|
||||
|
||||
assert_eq!(candidate.proposed_domains.len(), 1);
|
||||
assert_eq!(candidate.proposed_nodes.len(), 1);
|
||||
assert_eq!(candidate.proposed_nodes[0].domain_id, "memdom-camel");
|
||||
assert_eq!(
|
||||
candidate.proposed_nodes[0].action_implication,
|
||||
"Reject silent field loss at the JSON edge."
|
||||
);
|
||||
assert_eq!(
|
||||
candidate.proposed_nodes[0].source_hashes,
|
||||
vec!["anchor:missing".to_string()]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -976,6 +976,11 @@ mod tests {
|
|||
let memory_candidates = typed_result.memory_patch_candidates()?;
|
||||
assert_eq!(memory_candidates.len(), 1);
|
||||
assert_eq!(memory_candidates[0].id, "mempatch-auth-spine");
|
||||
assert_eq!(memory_candidates[0].proposed_nodes.len(), 1);
|
||||
assert_eq!(
|
||||
memory_candidates[0].proposed_nodes[0].domain_id,
|
||||
"memdom-repo"
|
||||
);
|
||||
assert!(
|
||||
runtime_job_snapshot(&store, "worker-job-1")?
|
||||
.expect("snapshot")
|
||||
|
|
|
|||
|
|
@ -840,6 +840,7 @@ pub enum EpiphanyMemoryNodeKind {
|
|||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyMemoryNode {
|
||||
pub id: String,
|
||||
#[serde(alias = "domainId")]
|
||||
pub domain_id: String,
|
||||
pub profile: EpiphanyMemoryProfile,
|
||||
pub kind: EpiphanyMemoryNodeKind,
|
||||
|
|
@ -847,12 +848,14 @@ pub struct EpiphanyMemoryNode {
|
|||
pub claim: String,
|
||||
pub question: String,
|
||||
pub tension: String,
|
||||
#[serde(alias = "actionImplication")]
|
||||
pub action_implication: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemoryAnchor>")]
|
||||
pub anchors: Vec<EpiphanyMemoryAnchor>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "sourceHashes")]
|
||||
pub source_hashes: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub lifecycle: EpiphanyMemoryLifecycle,
|
||||
|
|
@ -901,7 +904,9 @@ pub enum EpiphanyMemoryEdgeKind {
|
|||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS, Default)]
|
||||
pub struct EpiphanyMemoryEdge {
|
||||
pub id: String,
|
||||
#[serde(alias = "sourceId")]
|
||||
pub source_id: String,
|
||||
#[serde(alias = "targetId")]
|
||||
pub target_id: String,
|
||||
pub kind: EpiphanyMemoryEdgeKind,
|
||||
pub profile: EpiphanyMemoryProfile,
|
||||
|
|
@ -922,12 +927,15 @@ pub struct EpiphanyMemoryAnchor {
|
|||
pub target: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "EpiphanyCodeRef | null")]
|
||||
#[serde(alias = "codeRef")]
|
||||
pub code_ref: Option<EpiphanyCodeRef>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[serde(alias = "evidenceId")]
|
||||
pub evidence_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[serde(alias = "sourceHash")]
|
||||
pub source_hash: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
|
|
@ -940,19 +948,24 @@ pub struct EpiphanyMemorySummary {
|
|||
pub domain_id: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "coversNodeIds")]
|
||||
pub covers_node_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "coversEdgeIds")]
|
||||
pub covers_edge_ids: Vec<String>,
|
||||
pub target: String,
|
||||
pub claim: String,
|
||||
pub question: String,
|
||||
pub tension: String,
|
||||
#[serde(alias = "actionImplication")]
|
||||
pub action_implication: String,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
#[serde(alias = "anchorCount")]
|
||||
pub anchor_count: u32,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "sourceHashes")]
|
||||
pub source_hashes: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub freshness: EpiphanyMemoryFreshnessStatus,
|
||||
|
|
@ -960,6 +973,7 @@ pub struct EpiphanyMemorySummary {
|
|||
pub confidence: u32,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "knownOmissions")]
|
||||
pub known_omissions: Vec<String>,
|
||||
}
|
||||
|
||||
|
|
@ -1094,12 +1108,15 @@ pub struct EpiphanyMemoryPatchCandidate {
|
|||
pub status: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemoryDomain>")]
|
||||
#[serde(alias = "proposedDomains")]
|
||||
pub proposed_domains: Vec<EpiphanyMemoryDomain>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemoryNode>")]
|
||||
#[serde(alias = "proposedNodes")]
|
||||
pub proposed_nodes: Vec<EpiphanyMemoryNode>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<EpiphanyMemoryEdge>")]
|
||||
#[serde(alias = "proposedEdges")]
|
||||
pub proposed_edges: Vec<EpiphanyMemoryEdge>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
|
|
@ -1112,12 +1129,15 @@ pub struct EpiphanyMemoryPatchReview {
|
|||
pub status: EpiphanyMemoryPatchReviewStatus,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "acceptedDomainIds")]
|
||||
pub accepted_domain_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "acceptedNodeIds")]
|
||||
pub accepted_node_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
#[serde(alias = "acceptedEdgeIds")]
|
||||
pub accepted_edge_ids: Vec<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
#[ts(type = "Array<string>")]
|
||||
|
|
|
|||
|
|
@ -391,9 +391,11 @@ the accepted graph through the memory graph substrate and no longer carry full
|
|||
`graphs` cargo. Runtime role results can persist typed
|
||||
`memoryPatchCandidates`. The core graph substrate now owns append-only review
|
||||
and application for those candidates: proposed domains/nodes/edges are checked
|
||||
against the typed graph before they can be applied with lifecycle receipts. The
|
||||
next cleanup is adding the command/bridge acceptance path so Modeling stops
|
||||
using full graph replacement patches for ordinary graph growth.
|
||||
against the typed graph before they can be applied with lifecycle receipts.
|
||||
`epiphany-memory-graph review-candidate` and `apply-candidate` expose that law
|
||||
for typed candidate files. The next cleanup is wiring bridge role acceptance to
|
||||
that path so Modeling stops using full graph replacement patches for ordinary
|
||||
graph growth.
|
||||
|
||||
### Phase 7: Sleep And Repo Refresh
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.msgpack` tracks Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life as Ghostlight-style initiative participants with arena, participant kind, speed, next-ready time, reaction bias, interrupt threshold, load, status, constraints, personality cooldown, mood cooldown, effective cooldown, adaptive pacing, history, and pending turns through `epiphany-core::EpiphanyHeartbeatStateEntry` and the native `epiphany-heartbeat-store` binary. Role dossiers set baseline timing; appraisal mood/anxiety bends it through urgency, arousal, thought pressure, guardedness, and reaction intensity, so Hands-like work pressure and high-need anxious lanes recover sooner without being heartbeaten while a prior turn is running. `epiphany-heartbeat-store pump` computes pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load, then chooses tempo plus target concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. Idle turns are for rumination: light thought shuffling, role-quality attention, and candidate selfPatch pressure. Sleep/dream cycle passes are the intended distillation window for durable self-memory and doctrine. JSON heartbeat state and Python wrapper state are gone; general CultCache schema sync, polyglot domain loading, and debug display tools belong in CultLib. This is a callable scheduler seam, not yet an always-on daemon; a heart valve, not a whole circulatory god.
|
||||
- The first Ghostlight-derived timing slice is landed in Epiphany, but Ghostlight is reference lineage rather than a sibling runtime to preserve. `epiphany-heartbeat-store init --profile ghostlight-scene --scene-id <id> --scene-participant <id|name|speed|reaction|threshold|constraints>` creates a typed CultCache MessagePack scene heartbeat store whose participants are `arena=scene`, `participantKind=character`; `tick` emits `ghostlight.initiative_schedule.v0` receipts with `scene_turn` actions and local-affordance basis. The generic Epiphany maintenance lanes are not auto-patched into scene stores.
|
||||
- The first Void-derived routine slice is landed in Epiphany, but VoidBot is reference lineage rather than a runtime dependency. `epiphany-heartbeat-store routine --store .\state\agent-heartbeats.msgpack --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.msgpack` reads typed role dossiers, computes bounded memory resonance, maintains incubation themes, runs analytic and associative cognition lanes, writes bridge syntheses/saturation/tension, projects the active thought cluster through each role's Ghostlight-shaped personality vectors, derives participant-local reactions, applies personality/mood timing, advances the sleep/dream cycle, updates the typed heartbeat store, and emits an auditable `epiphany.void_routine.v0` receipt. The routine now also carries anti-loop physiology imported from Void's calmer brain: `noveltyToSelf`, `noveltyToRoom`, source coverage, saturation pressure, refractory cooling, and explicit permission to let a live unsaturated thought deepen without forcing novelty theater every pass. This mutates only heartbeat physiology fields: project truth and role memory mutation remain on their reviewed surfaces.
|
||||
- The next memory foundation must not build separate engines for repo graph and agent mind. Heartbeat cognition, role self-memory, repo architecture/dataflow, evidence scars, incubation, agency pressure, and context packets should converge through `EpiphanyMemoryGraph` profiles so one typed graph owns anchors, lifecycle, summaries, freshness, context cuts, and Qdrant embedding manifests. Repo, agent, and heartbeat profile producers now map accepted graph truth, reviewed role dossier memories/goals/values, and provisional heartbeat short-term/incubation/agency/candidate pressure into memory graph documents without scanner/model work. Heartbeat import deliberately does not mark durable promotion. Compose now merges profile snapshots into one validated graph and rejects duplicate authority; `epiphany-memory-graph compose` writes a composed typed CultCache graph from typed source graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory plus heartbeat-cognition producers from their typed stores into one graph store; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.msgpack`; CultNet advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts; memory graph nodes/edges/summaries project into deterministic typed embedding documents; `epiphany-memory-graph manifest` writes the embedding manifest back to the typed graph store; `epiphany-memory-graph index` fully rebuilds a Qdrant cache collection through the shared semantic cache transport; `epiphany-memory-graph semantic-context` uses ordered Qdrant IDs to seed typed graph context while falling back to graph traversal when the cache is absent; native role worker launch documents now carry typed `memoryContext` instead of full `graphs`; typed runtime role results can persist `memoryPatchCandidates` for graph/memory growth proposals; and `epiphany-core` now reviews/appends candidate domains/nodes/edges against the typed graph with lifecycle receipts. The next clean slice is adding the command/bridge acceptance path so accepted candidates become graph state without asking Modeling for full graph replacement patches.
|
||||
- The next memory foundation must not build separate engines for repo graph and agent mind. Heartbeat cognition, role self-memory, repo architecture/dataflow, evidence scars, incubation, agency pressure, and context packets should converge through `EpiphanyMemoryGraph` profiles so one typed graph owns anchors, lifecycle, summaries, freshness, context cuts, and Qdrant embedding manifests. Repo, agent, and heartbeat profile producers now map accepted graph truth, reviewed role dossier memories/goals/values, and provisional heartbeat short-term/incubation/agency/candidate pressure into memory graph documents without scanner/model work. Heartbeat import deliberately does not mark durable promotion. Compose now merges profile snapshots into one validated graph and rejects duplicate authority; `epiphany-memory-graph compose` writes a composed typed CultCache graph from typed source graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory plus heartbeat-cognition producers from their typed stores into one graph store; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.msgpack`; CultNet advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts; memory graph nodes/edges/summaries project into deterministic typed embedding documents; `epiphany-memory-graph manifest` writes the embedding manifest back to the typed graph store; `epiphany-memory-graph index` fully rebuilds a Qdrant cache collection through the shared semantic cache transport; `epiphany-memory-graph semantic-context` uses ordered Qdrant IDs to seed typed graph context while falling back to graph traversal when the cache is absent; native role worker launch documents now carry typed `memoryContext` instead of full `graphs`; typed runtime role results can persist `memoryPatchCandidates` for graph/memory growth proposals; `epiphany-core` reviews/appends candidate domains/nodes/edges against the typed graph with lifecycle receipts; and `epiphany-memory-graph review-candidate` / `apply-candidate` expose that law for typed candidate files. The next clean slice is wiring bridge role acceptance to candidate review/application so accepted candidates become graph state without asking Modeling for full graph replacement patches.
|
||||
- Manual Codex-run rumination still has an explicit aftercare rule until Epiphany owns the full sleep consolidator. In the intended Epiphany cycle, sub-agents ruminate when idle and distill when they sleep; in this supervising Codex thread, a heartbeat/routine vigil is only physiology until a separate closing pass reviews the receipts and decides whether map, handoff, evidence, or role self-memory should change.
|
||||
- The Face public-surface pass is landed as a bounded lane. Face's role dossier lives in `state/agents.msgpack`; `epiphany_specialists.toml` gives it a VoidBot-heartbeat-derived prompt stripped of moderation authority; `state/face-discord.toml` and the native `epiphany-face-discord` binary enforce that Face may interact only through #aquarium. Missing channel id or token writes candidate chat artifacts instead of posting elsewhere. If a Face has a persona name/avatar, `post` uses the shared Discord webhook pipe so each Epiphany can speak with its own nickname and avatar without a separate bot identity.
|
||||
- The Void memory bridge is now native enough to keep the useful organs attached. `state/void-memory.toml` and `epiphany-void-memory` can check Void's Docker Postgres state spine, query Qdrant Discord-history and source/lore collections with the configured Ollama embedding model, and fetch raw archive context windows from Void's file-backed Discord archive. Native `epiphany-mvp-status` includes a `voidMemory` block so Aquarium/backend clients can inspect whether the mouth and memory are actually wired.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -297,4 +297,4 @@ current_status:
|
|||
freshness propagation, summary-versus-child context cuts, and a validated
|
||||
CultCache store entry; the native `epiphany-memory-graph` binary can
|
||||
status/validate/query/smoke the store without Qdrant.
|
||||
next_action: Continue the memory graph build unless a more urgent Codex starvation regression appears. Repo, agent, and heartbeat profile producers now map accepted architecture/dataflow graph truth, reviewed role dossier memory/goals/values, and heartbeat cognition pressure into `EpiphanyMemoryGraph` documents; compose merges profile snapshots into one validated graph; `epiphany-memory-graph compose` writes from typed graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory and heartbeat-cognition producers from their typed stores; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.msgpack`; CultNet advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts; memory graph nodes/edges/summaries project into deterministic typed embedding documents; `epiphany-memory-graph manifest` writes the embedding manifest back to the typed graph store; `epiphany-core::semantic_cache` owns shared Qdrant/Ollama transport; `epiphany-memory-graph index` fully rebuilds Qdrant from typed graph documents while keeping the manifest in the graph store; `epiphany-memory-graph semantic-context` asks Qdrant for graph IDs only, preserves hit order, then resolves context from typed graph state with a no-cache fallback; native role worker launches now carry typed `memoryContext` instead of full `graphs`; typed runtime role results can persist `memoryPatchCandidates`; and `epiphany-core` can review/apply append-only candidate graph growth with lifecycle receipts. The next clean slice is adding the command/bridge acceptance path so reviewed memory patch candidates become unified graph state without asking Modeling for full graph replacement patches.
|
||||
next_action: Continue the memory graph build unless a more urgent Codex starvation regression appears. Repo, agent, and heartbeat profile producers now map accepted architecture/dataflow graph truth, reviewed role dossier memory/goals/values, and heartbeat cognition pressure into `EpiphanyMemoryGraph` documents; compose merges profile snapshots into one validated graph; `epiphany-memory-graph compose` writes from typed graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory and heartbeat-cognition producers from their typed stores; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.msgpack`; CultNet advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts; memory graph nodes/edges/summaries project into deterministic typed embedding documents; `epiphany-memory-graph manifest` writes the embedding manifest back to the typed graph store; `epiphany-core::semantic_cache` owns shared Qdrant/Ollama transport; `epiphany-memory-graph index` fully rebuilds Qdrant from typed graph documents while keeping the manifest in the graph store; `epiphany-memory-graph semantic-context` asks Qdrant for graph IDs only, preserves hit order, then resolves context from typed graph state with a no-cache fallback; native role worker launches now carry typed `memoryContext` instead of full `graphs`; typed runtime role results can persist `memoryPatchCandidates`; `epiphany-core` can review/apply append-only candidate graph growth with lifecycle receipts; and `epiphany-memory-graph review-candidate` / `apply-candidate` expose that law for typed candidate files. The next clean slice is wiring bridge role acceptance to candidate review/application so reviewed memory patch candidates become unified graph state without asking Modeling for full graph replacement patches.
|
||||
|
|
|
|||
Reference in a new issue