Delete aggregate role-memory authority

This commit is contained in:
Meta Vens 2026-08-23 04:02:50 +02:00
commit 39dd9fdba9
58 changed files with 294 additions and 6727 deletions

View file

@ -638,8 +638,7 @@ mod tests {
use epiphany_core::RepoFrontierHandsAuthority;
use epiphany_core::RuntimeSpineInitOptions;
use epiphany_core::bind_repository_body;
use epiphany_core::bind_runtime_to_agent_memory_swarm;
use epiphany_core::ensure_agent_memory_swarm_identity;
use epiphany_core::bind_runtime_to_swarm;
use epiphany_core::hands_action_review_for_intent;
use epiphany_core::initialize_keyed_repo_model;
use epiphany_core::initialize_runtime_spine;
@ -867,7 +866,6 @@ mod tests {
let fixture_root = store
.parent()
.ok_or_else(|| anyhow!("Hands test store has no fixture root"))?;
let agent_store = fixture_root.join("agents.cc");
let body_store = fixture_root.join("body.cc");
let repo = fixture_root.join("workspace");
fs::create_dir_all(repo.join("src"))?;
@ -879,8 +877,7 @@ mod tests {
if !git.success() {
return Err(anyhow!("Hands test fixture could not initialize Git Body"));
}
ensure_agent_memory_swarm_identity(&agent_store, "hands-action-test-swarm")?;
bind_runtime_to_agent_memory_swarm(store, &agent_store, "2026-06-02T00:00:00.100Z")?;
bind_runtime_to_swarm(store, "hands-action-test-swarm", "2026-06-02T00:00:00.100Z")?;
bind_repository_body(&repo, &body_store, store, "hands-action-test-workspace")?;
let body = observe_runtime_repository_body_basis(store)?;
let domain = EpiphanyMemoryDomain {

View file

@ -4,9 +4,8 @@ use epiphany_core::{
EpiphanyMemoryAnchor, EpiphanyMemoryDomain, EpiphanyMemoryLifecycle, EpiphanyMemoryNode,
EpiphanyMemoryNodeKind, EpiphanyMemoryProfile, EpiphanyRepoModelSeed,
EpiphanyRepoModelSeedDocuments, ObserveOutcome, RuntimeSpineInitOptions,
admit_repository_body_observation, bind_repository_body, bind_runtime_to_agent_memory_swarm,
bind_runtime_workspace_coverage_store, ensure_agent_memory_swarm_identity,
initialize_fresh_agent_memory_store, initialize_keyed_repo_model, initialize_runtime_spine,
admit_repository_body_observation, bind_repository_body, bind_runtime_to_swarm,
bind_runtime_workspace_coverage_store, initialize_keyed_repo_model, initialize_runtime_spine,
load_current_runtime_repository_body_basis, load_repository_body_status,
observe_repository_body,
};
@ -22,7 +21,6 @@ fn main() -> Result<()> {
let repo = PathBuf::from(required(&args, "--repo")?);
let store = PathBuf::from(required(&args, "--store")?);
let runtime_store = PathBuf::from(required(&args, "--runtime-store")?);
let agent_store = PathBuf::from(required(&args, "--agent-store")?);
let workspace_coverage_store =
PathBuf::from(required(&args, "--workspace-coverage-store")?);
let workspace_id = required(&args, "--workspace-id")?;
@ -37,8 +35,7 @@ fn main() -> Result<()> {
created_at: at.clone(),
},
)?;
initialize_fresh_agent_memory_store(&agent_store, swarm_id)?;
bind_runtime_to_agent_memory_swarm(&runtime_store, &agent_store, &at)?;
bind_runtime_to_swarm(&runtime_store, swarm_id, &at)?;
let binding = bind_repository_body(&repo, &store, &runtime_store, workspace_id)?;
bind_runtime_workspace_coverage_store(&runtime_store, &workspace_coverage_store, &at)?;
observe_repository_body(&repo, &store, &runtime_store)?;
@ -176,7 +173,7 @@ fn required<'a>(args: &'a [String], name: &str) -> Result<&'a str> {
}
fn usage<T>() -> Result<T> {
bail!(
"usage: epiphany-repository-body bootstrap --repo PATH --store PATH --runtime-store PATH --agent-store PATH --workspace-coverage-store PATH --workspace-id ID --runtime-id ID --swarm-id ID | bind --repo PATH --store PATH --runtime-store PATH --workspace-id ID | observe --repo PATH --store PATH --runtime-store PATH | status --store PATH | smoke"
"usage: epiphany-repository-body bootstrap --repo PATH --store PATH --runtime-store PATH --workspace-coverage-store PATH --workspace-id ID --runtime-id ID --swarm-id ID | bind --repo PATH --store PATH --runtime-store PATH --workspace-id ID | observe --repo PATH --store PATH --runtime-store PATH | status --store PATH | smoke"
)
}
fn smoke() -> Result<()> {
@ -186,7 +183,6 @@ fn smoke() -> Result<()> {
uuid::Uuid::new_v4()
));
let runtime_store = store.with_extension("runtime.cc");
let agent_store = store.with_extension("agents.cc");
let workspace_coverage_store = store.with_extension("workspace-coverage.cc");
initialize_runtime_spine(
&runtime_store,
@ -196,8 +192,11 @@ fn smoke() -> Result<()> {
created_at: "2026-07-15T00:00:00Z".into(),
},
)?;
ensure_agent_memory_swarm_identity(&agent_store, "epiphany-smoke-swarm")?;
bind_runtime_to_agent_memory_swarm(&runtime_store, &agent_store, "2026-07-15T00:00:01Z")?;
bind_runtime_to_swarm(
&runtime_store,
"epiphany-smoke-swarm",
"2026-07-15T00:00:01Z",
)?;
bind_repository_body(
&root,
&store,
@ -216,7 +215,6 @@ fn smoke() -> Result<()> {
.ok_or_else(|| anyhow::anyhow!("smoke observation missing after commit"))?;
std::fs::remove_file(&store)?;
std::fs::remove_file(&runtime_store)?;
std::fs::remove_file(&agent_store)?;
std::fs::remove_file(&workspace_coverage_store)?;
let _ = std::fs::remove_file(workspace_coverage_store.with_extension("cc.lock"));
let generation = match outcome {

View file

@ -50,7 +50,6 @@ fn main() -> Result<()> {
&args.state_store,
&args.policy.runtime_store,
&args.policy.local_verse_store,
&args.policy.agent_memory_store,
&args.policy.release_store,
],
)?;
@ -565,7 +564,6 @@ impl Args {
tool_adapter_bin: release_store.clone(),
runtime_store: path("--runtime-store")?,
local_verse_store: path("--local-verse-store")?,
agent_memory_store: path("--agent-memory-store")?,
artifact_root: path("--artifact-root")?,
codex_home: path("--codex-home")?,
mcp_config: path("--mcp-config")?,
@ -850,7 +848,6 @@ mod brake_tests {
tool_adapter_bin: shared.join("tool"),
runtime_store,
local_verse_store: verse_store,
agent_memory_store: shared.join("mind.cc"),
artifact_root: shared.join("artifacts"),
codex_home: shared.join("codex-home"),
mcp_config: shared.join("mcp.toml"),