Split Body from Proprioception and Substrate Gate

This commit is contained in:
Meta Vens 2026-05-28 22:50:50 +01:00
commit 47c010ba13
44 changed files with 476 additions and 435 deletions

View file

@ -144,8 +144,8 @@ fn run_smoke(store: &Path) -> Result<serde_json::Value> {
}));
}
let accepted_patch: AgentSelfPatch = serde_json::from_value(serde_json::json!({
"agentId": "epiphany.body",
"reason": "The Body should remember accepted graph growth must be source-grounded and bounded.",
"agentId": "epiphany.proprioception",
"reason": "Proprioception should remember accepted graph growth must be source-grounded and bounded.",
"semanticMemories": [{
"memoryId": "mem-body-smoke-source-grounding",
"summary": "A modeling self-memory request is acceptable when it improves future graph/checkpoint judgment without smuggling project truth.",
@ -156,7 +156,7 @@ fn run_smoke(store: &Path) -> Result<serde_json::Value> {
let accepted = review_agent_self_patch_document("modeling", &accepted_patch, store);
let wrong_role = review_agent_self_patch_document("verification", &accepted_patch, store);
let forbidden_patch: AgentSelfPatch = serde_json::from_value(serde_json::json!({
"agentId": "epiphany.body",
"agentId": "epiphany.proprioception",
"reason": "This tries to put project state in lane memory, which should be refused.",
"graphs": {},
"semanticMemories": [{

View file

@ -8,7 +8,6 @@ use epiphany_core::epiphany_cultmesh_operator_snapshot_from_status_json;
use epiphany_core::load_epiphany_cultmesh_operator_status;
use epiphany_core::load_epiphany_cultmesh_status;
use epiphany_core::load_latest_epiphany_cultmesh_operator_snapshot;
use epiphany_core::write_epiphany_cultmesh_body_contracts;
use epiphany_core::write_epiphany_cultmesh_eyes_contracts;
use epiphany_core::write_epiphany_cultmesh_global_room_policies;
use epiphany_core::write_epiphany_cultmesh_hands_contracts;
@ -18,6 +17,7 @@ use epiphany_core::write_epiphany_cultmesh_operator_snapshot;
use epiphany_core::write_epiphany_cultmesh_operator_status;
use epiphany_core::write_epiphany_cultmesh_soul_contracts;
use epiphany_core::write_epiphany_cultmesh_status;
use epiphany_core::write_epiphany_cultmesh_substrate_gate_contracts;
use epiphany_core::write_epiphany_cultmesh_verse_policies;
use std::path::PathBuf;
@ -40,7 +40,7 @@ fn main() -> Result<()> {
write_epiphany_cultmesh_verse_policies(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_global_room_policies(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_mind_contracts(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_body_contracts(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_substrate_gate_contracts(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_eyes_contracts(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_hands_contracts(&store, "epiphany-cultmesh-smoke")?;
write_epiphany_cultmesh_soul_contracts(&store, "epiphany-cultmesh-smoke")?;

View file

@ -458,7 +458,7 @@ fn run_smoke() -> Result<Value> {
env::remove_var("EPIPHANY_FACE_AQUARIUM_CHANNEL_ID_TEST");
}
let draft = run_draft(
"Face notices Body and Soul disagree about evidence shape.",
"Face notices Proprioception and Soul disagree about evidence shape.",
&config,
&temp_dir,
"draft",

View file

@ -439,11 +439,11 @@ fn run_smoke() -> Result<Value> {
"confidence": 0.9,
"roleMemoryPatches": [{
"roleId": "modeling",
"roleName": "Body",
"roleName": "Proprioception",
"verdict": "ready-for-review",
"selfPatch": {
"agentId": "epiphany.body",
"reason": "Birth memory should teach Body that repo initialization memory is reviewed and typed.",
"agentId": "epiphany.proprioception",
"reason": "Birth memory should teach Proprioception that repo initialization memory is reviewed and typed.",
"semanticMemories": [{
"memoryId": "mem-body-startup-birth-memory-smoke",
"summary": "Repo memory birth packets can produce role-specific selfPatch candidates that are applied only after Self review.",
@ -452,7 +452,7 @@ fn run_smoke() -> Result<Value> {
}]
},
"sourceRefs": ["AGENTS.md"],
"whyThisBelongsInMemory": "Body needs the startup memory route to stay source-grounded.",
"whyThisBelongsInMemory": "Proprioception needs the startup memory route to stay source-grounded.",
"stalenessRisk": "smoke fixture",
"doNotStore": []
}]

View file

@ -1009,7 +1009,7 @@ fn run_trajectory_packet(args: AgentPacketArgs) -> Result<Value> {
"lifecycle": {
"mode": "birth-only",
"contract": "Run this specialist only when the repo/swarm has no accepted trajectory initialization. Later direction drift belongs to heartbeat, mood, lived work, reviewed selfPatch, and planning/evidence truth.",
"rerunPolicy": "If accepted trajectory initialization exists, do not rerun to rebrand the repo. Route contradictions through normal Eyes/Body/Imagination/Soul work and reviewed memory drift."
"rerunPolicy": "If accepted trajectory initialization exists, do not rerun to rebrand the repo. Route contradictions through normal Eyes/Proprioception/Imagination/Soul work and reviewed memory drift."
},
"prompt": REPO_TRAJECTORY_DISTILLER_PROMPT,
"input": {
@ -1118,7 +1118,7 @@ fn run_agent_packet(args: AgentPacketArgs) -> Result<Value> {
"lifecycle": {
"mode": "birth-only",
"contract": "Run this specialist only when the repo/swarm has no accepted personality initialization. Later personality movement belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed selfPatch.",
"rerunPolicy": "If an accepted initialization exists, do not rerun to refresh personality. Route major terrain surprises to Eyes/Body or Self review as normal state/model work, not personality reset."
"rerunPolicy": "If an accepted initialization exists, do not rerun to refresh personality. Route major terrain surprises to Eyes/Proprioception or Self review as normal state/model work, not personality reset."
},
"prompt": REPO_PERSONALITY_DISTILLER_PROMPT,
"input": {
@ -1223,7 +1223,7 @@ fn run_memory_packet(args: AgentPacketArgs) -> Result<Value> {
"lifecycle": {
"mode": "birth-only",
"contract": "Run this specialist only when the repo/swarm has no accepted memory initialization. Later memory growth belongs to heartbeat, work evidence, rumination, sleep consolidation, and reviewed selfPatch.",
"rerunPolicy": "If accepted memory initialization exists, do not rerun to refresh memory. Route stale or contradicted knowledge through normal Eyes/Body/Soul state, evidence, and sleep consolidation."
"rerunPolicy": "If accepted memory initialization exists, do not rerun to refresh memory. Route stale or contradicted knowledge through normal Eyes/Proprioception/Soul state, evidence, and sleep consolidation."
},
"prompt": REPO_MEMORY_DISTILLER_PROMPT,
"input": {
@ -2231,7 +2231,7 @@ fn role_id_for_agent_id(agent_id: &str) -> Option<&'static str> {
"epiphany.face" => Some("face"),
"epiphany.imagination" => Some("imagination"),
"epiphany.eyes" => Some("research"),
"epiphany.body" => Some("modeling"),
"epiphany.proprioception" => Some("modeling"),
"epiphany.hands" => Some("implementation"),
"epiphany.soul" => Some("verification"),
"epiphany.life" => Some("reorientation"),
@ -2434,7 +2434,7 @@ fn memory_role_filter(role_id: &str) -> &'static str {
"Distill known prior art, standard algorithms, vendor docs, research trails, and signals that should make Eyes search before invention."
}
"modeling" => {
"Distill architecture, control/data-flow, graph frontiers, invariants, source-map practices, and what Body must understand before Hands cuts."
"Distill architecture, control/data-flow, graph frontiers, invariants, source-map practices, and what Proprioception must understand before Hands cuts."
}
"implementation" => {
"Distill build/edit conventions, harness constraints, source-touch rules, coding style, dependency policy, and common traps for Hands."
@ -3949,7 +3949,7 @@ fn role_display(role_id: &str) -> &'static str {
"face" => "Face",
"imagination" => "Imagination",
"research" => "Eyes",
"modeling" => "Body",
"modeling" => "Proprioception",
"implementation" => "Hands",
"verification" => "Soul",
"reorientation" => "Life",