Remove false Gjallar ownership from Epiphany
This commit is contained in:
parent
8bb170811e
commit
bf7d2ba52b
15 changed files with 239 additions and 211 deletions
|
|
@ -457,11 +457,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
map_entry.private_state_exposed
|
||||
));
|
||||
}
|
||||
let gjallar = cargo_json(
|
||||
let swarm_overview = cargo_json(
|
||||
&manifest,
|
||||
"epiphany-verse-query",
|
||||
&[
|
||||
"gjallar",
|
||||
"swarm-overview",
|
||||
"--store",
|
||||
path_str(&local_verse)?,
|
||||
"--runtime-id",
|
||||
|
|
@ -470,48 +470,48 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&root,
|
||||
)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["latestRepoWorkMapEntry"],
|
||||
"repo-work-map-repo-close-mind-adoption-guard",
|
||||
)?;
|
||||
require_bool(&gjallar, &["privateStateExposed"], false)?;
|
||||
let map_rows = value_at_path(&gjallar, &["repoWorkMapRows"])
|
||||
require_bool(&swarm_overview, &["privateStateExposed"], false)?;
|
||||
let map_rows = value_at_path(&swarm_overview, &["repoWorkMapRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapRows array"))?;
|
||||
let gjallar_map_row = map_rows
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapRows array"))?;
|
||||
let swarm_overview_map_row = map_rows
|
||||
.iter()
|
||||
.find(|row| row.get("item").and_then(Value::as_str) == Some(item))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo work map row for {item}"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo work map row for {item}"))?;
|
||||
require_eq_value(
|
||||
gjallar_map_row,
|
||||
swarm_overview_map_row,
|
||||
&["safeActionFamily"],
|
||||
"repo.markdown_planning_note",
|
||||
)?;
|
||||
require_eq_value(
|
||||
gjallar_map_row,
|
||||
swarm_overview_map_row,
|
||||
&["mindStateCommitReceiptId"],
|
||||
&map_entry.mind_state_commit_receipt_id,
|
||||
)?;
|
||||
require_bool_value(gjallar_map_row, &["privateStateExposed"], false)?;
|
||||
let map_tui_rows = value_at_path(&gjallar, &["repoWorkMapTuiRows"])
|
||||
require_bool_value(swarm_overview_map_row, &["privateStateExposed"], false)?;
|
||||
let map_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapTuiRows array"))?;
|
||||
if !map_tui_rows.iter().any(|row| {
|
||||
row.as_str()
|
||||
.is_some_and(|row| row.contains("REPO-WORK-MAP") && row.contains(item))
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose compact repo map sight"
|
||||
"Swarm overview TUI rows did not expose compact repo map sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapSemanticCount"], 1)?;
|
||||
let semantic_rows = value_at_path(&gjallar, &["repoWorkMapSemanticRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapSemanticCount"], 1)?;
|
||||
let semantic_rows = value_at_path(&swarm_overview, &["repoWorkMapSemanticRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapSemanticRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapSemanticRows array"))?;
|
||||
let semantic_row = semantic_rows
|
||||
.iter()
|
||||
.find(|row| row.get("item").and_then(Value::as_str) == Some(item))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map semantic row for {item}"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map semantic row for {item}"))?;
|
||||
require_eq_value(semantic_row, &["stage"], "imagination-planning")?;
|
||||
require_eq_value(semantic_row, &["stageOwner"], "Imagination")?;
|
||||
require_eq_value(semantic_row, &["publicationGate"], "Bifrost")?;
|
||||
|
|
@ -523,9 +523,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
)?;
|
||||
require_bool_value(semantic_row, &["sightOnly"], true)?;
|
||||
require_bool_value(semantic_row, &["privateStateExposed"], false)?;
|
||||
let semantic_tui_rows = value_at_path(&gjallar, &["repoWorkMapSemanticTuiRows"])
|
||||
let semantic_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapSemanticTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapSemanticTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapSemanticTuiRows array"))?;
|
||||
if !semantic_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-SEMANTIC")
|
||||
|
|
@ -536,20 +536,20 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map semantic sight"
|
||||
"Swarm overview TUI rows did not expose repo map semantic sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapFamilyLensCount"], 1)?;
|
||||
let family_lens_rows = value_at_path(&gjallar, &["repoWorkMapFamilyLensRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapFamilyLensCount"], 1)?;
|
||||
let family_lens_rows = value_at_path(&swarm_overview, &["repoWorkMapFamilyLensRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapFamilyLensRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapFamilyLensRows array"))?;
|
||||
let family_lens_row = family_lens_rows
|
||||
.iter()
|
||||
.find(|row| {
|
||||
row.get("safeActionFamily").and_then(Value::as_str)
|
||||
== Some("repo.markdown_planning_note")
|
||||
})
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map family lens row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map family lens row"))?;
|
||||
require_eq_value(family_lens_row, &["latestItem"], item)?;
|
||||
require_eq_value(
|
||||
family_lens_row,
|
||||
|
|
@ -557,26 +557,28 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&map_entry.mind_state_commit_receipt_id,
|
||||
)?;
|
||||
require_bool_value(family_lens_row, &["privateStateExposed"], false)?;
|
||||
let family_lens_tui_rows = value_at_path(&gjallar, &["repoWorkMapFamilyLensTuiRows"])
|
||||
let family_lens_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapFamilyLensTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapFamilyLensTuiRows array"))?;
|
||||
.ok_or_else(|| {
|
||||
anyhow!("Swarm overview output had no repoWorkMapFamilyLensTuiRows array")
|
||||
})?;
|
||||
if !family_lens_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-LENS") && row.contains("repo.markdown_planning_note")
|
||||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map family lens sight"
|
||||
"Swarm overview TUI rows did not expose repo map family lens sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapPathLensCount"], 1)?;
|
||||
let path_lens_rows = value_at_path(&gjallar, &["repoWorkMapPathLensRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapPathLensCount"], 1)?;
|
||||
let path_lens_rows = value_at_path(&swarm_overview, &["repoWorkMapPathLensRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapPathLensRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapPathLensRows array"))?;
|
||||
let path_lens_row = path_lens_rows
|
||||
.iter()
|
||||
.find(|row| row.get("path").and_then(Value::as_str) == Some(target_path))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map path lens row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map path lens row"))?;
|
||||
require_eq_value(path_lens_row, &["latestItem"], item)?;
|
||||
require_eq_value(
|
||||
path_lens_row,
|
||||
|
|
@ -584,28 +586,28 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&map_entry.mind_state_commit_receipt_id,
|
||||
)?;
|
||||
require_bool_value(path_lens_row, &["privateStateExposed"], false)?;
|
||||
let path_lens_tui_rows = value_at_path(&gjallar, &["repoWorkMapPathLensTuiRows"])
|
||||
let path_lens_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapPathLensTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapPathLensTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapPathLensTuiRows array"))?;
|
||||
if !path_lens_tui_rows.iter().any(|row| {
|
||||
row.as_str()
|
||||
.is_some_and(|row| row.contains("REPO-WORK-MAP-PATH") && row.contains(target_path))
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map path lens sight"
|
||||
"Swarm overview TUI rows did not expose repo map path lens sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapBranchLensCount"], 1)?;
|
||||
let branch_lens_rows = value_at_path(&gjallar, &["repoWorkMapBranchLensRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapBranchLensCount"], 1)?;
|
||||
let branch_lens_rows = value_at_path(&swarm_overview, &["repoWorkMapBranchLensRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapBranchLensRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapBranchLensRows array"))?;
|
||||
let branch_lens_row = branch_lens_rows
|
||||
.iter()
|
||||
.find(|row| {
|
||||
row.get("branch").and_then(Value::as_str)
|
||||
== Some("epiphany/repo-close-mind-adoption-guard")
|
||||
})
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map branch lens row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map branch lens row"))?;
|
||||
require_eq_value(branch_lens_row, &["latestItem"], item)?;
|
||||
require_eq_value(
|
||||
branch_lens_row,
|
||||
|
|
@ -613,9 +615,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&map_entry.mind_state_commit_receipt_id,
|
||||
)?;
|
||||
require_bool_value(branch_lens_row, &["privateStateExposed"], false)?;
|
||||
let branch_lens_tui_rows = value_at_path(&gjallar, &["repoWorkMapBranchLensTuiRows"])
|
||||
let branch_lens_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapBranchLensTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapBranchLensTuiRows array"))?;
|
||||
.ok_or_else(|| {
|
||||
anyhow!("Swarm overview output had no repoWorkMapBranchLensTuiRows array")
|
||||
})?;
|
||||
if !branch_lens_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-BRANCH")
|
||||
|
|
@ -623,17 +627,17 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map branch lens sight"
|
||||
"Swarm overview TUI rows did not expose repo map branch lens sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapStageLensCount"], 1)?;
|
||||
let stage_lens_rows = value_at_path(&gjallar, &["repoWorkMapStageLensRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapStageLensCount"], 1)?;
|
||||
let stage_lens_rows = value_at_path(&swarm_overview, &["repoWorkMapStageLensRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapStageLensRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapStageLensRows array"))?;
|
||||
let stage_lens_row = stage_lens_rows
|
||||
.iter()
|
||||
.find(|row| row.get("stage").and_then(Value::as_str) == Some("imagination-planning"))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map stage lens row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map stage lens row"))?;
|
||||
require_eq_value(stage_lens_row, &["owner"], "Imagination")?;
|
||||
require_eq_value(stage_lens_row, &["latestItem"], item)?;
|
||||
require_eq_value(
|
||||
|
|
@ -642,9 +646,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&map_entry.mind_state_commit_receipt_id,
|
||||
)?;
|
||||
require_bool_value(stage_lens_row, &["privateStateExposed"], false)?;
|
||||
let stage_lens_tui_rows = value_at_path(&gjallar, &["repoWorkMapStageLensTuiRows"])
|
||||
let stage_lens_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapStageLensTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapStageLensTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapStageLensTuiRows array"))?;
|
||||
if !stage_lens_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-STAGE")
|
||||
|
|
@ -653,17 +657,17 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map stage lens sight"
|
||||
"Swarm overview TUI rows did not expose repo map stage lens sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapGateLensCount"], 1)?;
|
||||
let gate_lens_rows = value_at_path(&gjallar, &["repoWorkMapGateLensRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapGateLensCount"], 1)?;
|
||||
let gate_lens_rows = value_at_path(&swarm_overview, &["repoWorkMapGateLensRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapGateLensRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapGateLensRows array"))?;
|
||||
let gate_lens_row = gate_lens_rows
|
||||
.iter()
|
||||
.find(|row| row.get("publicationGate").and_then(Value::as_str) == Some("Bifrost"))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map gate lens row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map gate lens row"))?;
|
||||
require_eq_value(gate_lens_row, &["owner"], "Bifrost")?;
|
||||
require_eq_value(gate_lens_row, &["latestItem"], item)?;
|
||||
require_eq_value(
|
||||
|
|
@ -673,9 +677,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
)?;
|
||||
require_bool_value(gate_lens_row, &["sightOnly"], true)?;
|
||||
require_bool_value(gate_lens_row, &["privateStateExposed"], false)?;
|
||||
let gate_lens_tui_rows = value_at_path(&gjallar, &["repoWorkMapGateLensTuiRows"])
|
||||
let gate_lens_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapGateLensTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapGateLensTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapGateLensTuiRows array"))?;
|
||||
if !gate_lens_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-GATE")
|
||||
|
|
@ -685,17 +689,17 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map gate lens sight"
|
||||
"Swarm overview TUI rows did not expose repo map gate lens sight"
|
||||
));
|
||||
}
|
||||
require_u64(&gjallar, &["repoWorkMapClosureCount"], 1)?;
|
||||
let closure_rows = value_at_path(&gjallar, &["repoWorkMapClosureRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapClosureCount"], 1)?;
|
||||
let closure_rows = value_at_path(&swarm_overview, &["repoWorkMapClosureRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapClosureRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapClosureRows array"))?;
|
||||
let closure_row = closure_rows
|
||||
.iter()
|
||||
.find(|row| row.get("item").and_then(Value::as_str) == Some(item))
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repo map closure row"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repo map closure row"))?;
|
||||
require_eq_value(
|
||||
closure_row,
|
||||
&["safeActionFamily"],
|
||||
|
|
@ -727,9 +731,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
require_bool_value(closure_row, &["crossRepoMutationAuthorized"], false)?;
|
||||
require_bool_value(closure_row, &["sightOnly"], true)?;
|
||||
require_bool_value(closure_row, &["privateStateExposed"], false)?;
|
||||
let closure_tui_rows = value_at_path(&gjallar, &["repoWorkMapClosureTuiRows"])
|
||||
let closure_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapClosureTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapClosureTuiRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapClosureTuiRows array"))?;
|
||||
if !closure_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-CLOSURE")
|
||||
|
|
@ -743,14 +747,14 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map closure sight"
|
||||
"Swarm overview TUI rows did not expose repo map closure sight"
|
||||
));
|
||||
}
|
||||
|
||||
require_u64(&gjallar, &["repoWorkMapAcceptanceCount"], 1)?;
|
||||
let acceptance_rows = value_at_path(&gjallar, &["repoWorkMapAcceptanceRows"])
|
||||
require_u64(&swarm_overview, &["repoWorkMapAcceptanceCount"], 1)?;
|
||||
let acceptance_rows = value_at_path(&swarm_overview, &["repoWorkMapAcceptanceRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapAcceptanceRows array"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no repoWorkMapAcceptanceRows array"))?;
|
||||
let acceptance_row = acceptance_rows
|
||||
.iter()
|
||||
.find(|row| {
|
||||
|
|
@ -758,7 +762,7 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
.and_then(Value::as_str)
|
||||
.is_some_and(|value| value == item)
|
||||
})
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no acceptance row for {item}"))?;
|
||||
.ok_or_else(|| anyhow!("Swarm overview output had no acceptance row for {item}"))?;
|
||||
require_eq_value(
|
||||
acceptance_row,
|
||||
&["safeActionFamily"],
|
||||
|
|
@ -794,9 +798,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
require_eq_value(acceptance_row, &["publicationGate"], "Bifrost")?;
|
||||
require_bool_value(acceptance_row, &["sightOnly"], true)?;
|
||||
require_bool_value(acceptance_row, &["privateStateExposed"], false)?;
|
||||
let acceptance_tui_rows = value_at_path(&gjallar, &["repoWorkMapAcceptanceTuiRows"])
|
||||
let acceptance_tui_rows = value_at_path(&swarm_overview, &["repoWorkMapAcceptanceTuiRows"])
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("Gjallar output had no repoWorkMapAcceptanceTuiRows array"))?;
|
||||
.ok_or_else(|| {
|
||||
anyhow!("Swarm overview output had no repoWorkMapAcceptanceTuiRows array")
|
||||
})?;
|
||||
if !acceptance_tui_rows.iter().any(|row| {
|
||||
row.as_str().is_some_and(|row| {
|
||||
row.contains("REPO-WORK-MAP-ACCEPTANCE")
|
||||
|
|
@ -811,7 +817,7 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
})
|
||||
}) {
|
||||
return Err(anyhow!(
|
||||
"Gjallar TUI rows did not expose repo map acceptance sight"
|
||||
"Swarm overview TUI rows did not expose repo map acceptance sight"
|
||||
));
|
||||
}
|
||||
|
||||
|
|
@ -833,16 +839,16 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"repoMapEntrySchema": map_entry.schema_version,
|
||||
"repoMapDurableStateAdmitted": map_entry.durable_state_admitted,
|
||||
"repoMapLocalVerseProjected": true,
|
||||
"gjallarLatestRepoWorkMapEntry": gjallar["latestRepoWorkMapEntry"],
|
||||
"gjallarRepoWorkMapSemanticCount": gjallar["repoWorkMapSemanticCount"],
|
||||
"gjallarRepoWorkMapFamilyLensCount": gjallar["repoWorkMapFamilyLensCount"],
|
||||
"gjallarRepoWorkMapPathLensCount": gjallar["repoWorkMapPathLensCount"],
|
||||
"gjallarRepoWorkMapBranchLensCount": gjallar["repoWorkMapBranchLensCount"],
|
||||
"gjallarRepoWorkMapStageLensCount": gjallar["repoWorkMapStageLensCount"],
|
||||
"gjallarRepoWorkMapGateLensCount": gjallar["repoWorkMapGateLensCount"],
|
||||
"gjallarRepoWorkMapClosureCount": gjallar["repoWorkMapClosureCount"],
|
||||
"gjallarRepoWorkMapAcceptanceCount": gjallar["repoWorkMapAcceptanceCount"],
|
||||
"gjallarRepoWorkMapAcceptanceStatus": acceptance_row["acceptanceStatus"],
|
||||
"swarmOverviewLatestRepoWorkMapEntry": swarm_overview["latestRepoWorkMapEntry"],
|
||||
"swarmOverviewRepoWorkMapSemanticCount": swarm_overview["repoWorkMapSemanticCount"],
|
||||
"swarmOverviewRepoWorkMapFamilyLensCount": swarm_overview["repoWorkMapFamilyLensCount"],
|
||||
"swarmOverviewRepoWorkMapPathLensCount": swarm_overview["repoWorkMapPathLensCount"],
|
||||
"swarmOverviewRepoWorkMapBranchLensCount": swarm_overview["repoWorkMapBranchLensCount"],
|
||||
"swarmOverviewRepoWorkMapStageLensCount": swarm_overview["repoWorkMapStageLensCount"],
|
||||
"swarmOverviewRepoWorkMapGateLensCount": swarm_overview["repoWorkMapGateLensCount"],
|
||||
"swarmOverviewRepoWorkMapClosureCount": swarm_overview["repoWorkMapClosureCount"],
|
||||
"swarmOverviewRepoWorkMapAcceptanceCount": swarm_overview["repoWorkMapAcceptanceCount"],
|
||||
"swarmOverviewRepoWorkMapAcceptanceStatus": acceptance_row["acceptanceStatus"],
|
||||
"publicationAuthorized": false,
|
||||
"privateStateExposed": false
|
||||
});
|
||||
|
|
|
|||
|
|
@ -291,11 +291,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
],
|
||||
&root,
|
||||
)?;
|
||||
let gjallar = cargo_json(
|
||||
let swarm_overview = cargo_json(
|
||||
&manifest,
|
||||
"epiphany-verse-query",
|
||||
&[
|
||||
"gjallar",
|
||||
"swarm-overview",
|
||||
"--store",
|
||||
path_str(&local_verse)?,
|
||||
"--runtime-id",
|
||||
|
|
@ -474,29 +474,29 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"gamecult.idunn.deployment_aftercare_audit.v0",
|
||||
)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["latestIdunnDeploymentReceipt"],
|
||||
idunn_deployment_receipt_id,
|
||||
)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["latestIdunnAftercareAuditReceipt"],
|
||||
idunn_aftercare_receipt_id,
|
||||
)?;
|
||||
require_u64(&gjallar, &["idunnDeploymentReceiptCount"], 2)?;
|
||||
require_bool(&gjallar, &["privateStateExposed"], false)?;
|
||||
require_u64(&swarm_overview, &["idunnDeploymentReceiptCount"], 2)?;
|
||||
require_bool(&swarm_overview, &["privateStateExposed"], false)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
"IDUNN-DEPLOYMENT",
|
||||
)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
idunn_deployment_receipt_id,
|
||||
)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
idunn_aftercare_receipt_id,
|
||||
)?;
|
||||
|
|
@ -529,9 +529,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"idunnAftercareAuditReceiptSource": aftercare["idunnAftercareAuditReceipt"]["source"],
|
||||
"idunnDeploymentReceiptId": aftercare["idunnDeploymentReceipt"]["receiptId"],
|
||||
"idunnAftercareAuditReceiptId": aftercare["idunnAftercareAuditReceipt"]["receiptId"],
|
||||
"gjallarIdunnDeploymentReceiptCount": gjallar["idunnDeploymentReceiptCount"],
|
||||
"gjallarLatestIdunnDeploymentReceipt": gjallar["latestIdunnDeploymentReceipt"],
|
||||
"gjallarLatestIdunnAftercareAuditReceipt": gjallar["latestIdunnAftercareAuditReceipt"],
|
||||
"swarmOverviewIdunnDeploymentReceiptCount": swarm_overview["idunnDeploymentReceiptCount"],
|
||||
"swarmOverviewLatestIdunnDeploymentReceipt": swarm_overview["latestIdunnDeploymentReceipt"],
|
||||
"swarmOverviewLatestIdunnAftercareAuditReceipt": swarm_overview["latestIdunnAftercareAuditReceipt"],
|
||||
"deploymentTrigger": "git-push-observed-by-idunn",
|
||||
"deploymentOwner": "Idunn",
|
||||
"daemonOwnsExecution": true,
|
||||
|
|
|
|||
|
|
@ -495,11 +495,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
)?;
|
||||
require_bool(&readiness_review, &["privateStateExposed"], false)?;
|
||||
|
||||
let gjallar = cargo_json(
|
||||
let swarm_overview = cargo_json(
|
||||
&manifest,
|
||||
"epiphany-verse-query",
|
||||
&[
|
||||
"gjallar",
|
||||
"swarm-overview",
|
||||
"--store",
|
||||
path_str(&local_verse)?,
|
||||
"--runtime-id",
|
||||
|
|
@ -507,32 +507,36 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
],
|
||||
&root,
|
||||
)?;
|
||||
require_u64(&gjallar, &["repoWorkReadinessCount"], 1)?;
|
||||
require_u64(&swarm_overview, &["repoWorkReadinessCount"], 1)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["latestRepoWorkReadiness"],
|
||||
"repo-work-readiness-repo-work-readiness",
|
||||
)?;
|
||||
require_bool(&gjallar, &["privateStateExposed"], false)?;
|
||||
require_bool(&swarm_overview, &["privateStateExposed"], false)?;
|
||||
require_tui_row_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["repoWorkReadinessTuiRows"],
|
||||
"REPO-WORK-READINESS",
|
||||
)?;
|
||||
require_tui_row_contains(&gjallar, &["swarmActionTuiRows"], "repo-work-readiness")?;
|
||||
require_u64(&gjallar, &["repoWorkReadinessReviewCount"], 1)?;
|
||||
require_tui_row_contains(
|
||||
&swarm_overview,
|
||||
&["swarmActionTuiRows"],
|
||||
"repo-work-readiness",
|
||||
)?;
|
||||
require_u64(&swarm_overview, &["repoWorkReadinessReviewCount"], 1)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["latestRepoWorkReadinessReview"],
|
||||
"repo-work-readiness-review-repo-work-readiness",
|
||||
)?;
|
||||
require_tui_row_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["repoWorkReadinessReviewTuiRows"],
|
||||
"REPO-WORK-READINESS-REVIEW",
|
||||
)?;
|
||||
require_tui_row_contains(
|
||||
&gjallar,
|
||||
&swarm_overview,
|
||||
&["swarmActionTuiRows"],
|
||||
"repo-work-readiness-review",
|
||||
)?;
|
||||
|
|
@ -607,10 +611,10 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"readinessReviewVerseProjection": readiness_review["verseProjection"],
|
||||
"missingRequiredCount": readiness["missingRequiredCount"],
|
||||
"readinessVerseProjection": readiness["verseProjection"],
|
||||
"gjallarRepoWorkReadinessCount": gjallar["repoWorkReadinessCount"],
|
||||
"gjallarLatestRepoWorkReadiness": gjallar["latestRepoWorkReadiness"],
|
||||
"gjallarRepoWorkReadinessReviewCount": gjallar["repoWorkReadinessReviewCount"],
|
||||
"gjallarLatestRepoWorkReadinessReview": gjallar["latestRepoWorkReadinessReview"],
|
||||
"swarmOverviewRepoWorkReadinessCount": swarm_overview["repoWorkReadinessCount"],
|
||||
"swarmOverviewLatestRepoWorkReadiness": swarm_overview["latestRepoWorkReadiness"],
|
||||
"swarmOverviewRepoWorkReadinessReviewCount": swarm_overview["repoWorkReadinessReviewCount"],
|
||||
"swarmOverviewLatestRepoWorkReadinessReview": swarm_overview["latestRepoWorkReadinessReview"],
|
||||
"receiptDirectoryRowCount": receipt_directory["rowCount"],
|
||||
"receiptDirectoryReadinessReviewRow": receipt_directory_row_value(&receipt_directory, "repo-work-readiness-review")?,
|
||||
"bifrostLedgerAccountingRowCount": bifrost_ledger["accountingRowCount"],
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&["stopClassification", "category"],
|
||||
"queue-empty",
|
||||
)?;
|
||||
require_eq(&empty_run, &["stopClassification", "owner"], "Gjallar")?;
|
||||
require_eq(&empty_run, &["stopClassification", "owner"], "Self")?;
|
||||
require_eq(
|
||||
&empty_run,
|
||||
&["stopClassification", "authorityGate"],
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ fn run_online(args: OnlineArgs) -> Result<Value> {
|
|||
"clusterTopology": topology["schemaVersion"],
|
||||
"idunnLiveness": liveness["schemaVersion"],
|
||||
"globalToolDirectory": tool_directory["schemaVersion"],
|
||||
"gjallarOverview": overview["schemaVersion"],
|
||||
"swarmOverview": overview["schemaVersion"],
|
||||
"privateStateExposed": false
|
||||
},
|
||||
"nextSafeMove": "Accept a Persona or Bifrost work item into typed Imagination/Self action pressure; the next missing command is epiphany-work accept --workspace <repo>."
|
||||
|
|
@ -613,7 +613,7 @@ fn classify_run_stop(
|
|||
),
|
||||
"blocked-or-noop" if queue_count == 0 => (
|
||||
"queue-empty",
|
||||
"Gjallar",
|
||||
"Self",
|
||||
"repo.work.overview",
|
||||
"no-repo-work-rows",
|
||||
"epiphany-work persona-intake --workspace <repo> --item <id> --message <text>",
|
||||
|
|
|
|||
|
|
@ -20,13 +20,13 @@ use epiphany_core::EpiphanyCultMeshClusterTopologyEntry;
|
|||
use epiphany_core::EpiphanyCultMeshDaemonPokeReceiptEntry;
|
||||
use epiphany_core::EpiphanyCultMeshDaemonRestartPolicyEntry;
|
||||
use epiphany_core::EpiphanyCultMeshDaemonServiceLifecycleReceiptEntry;
|
||||
use epiphany_core::EpiphanyCultMeshManagedServicePolicyEntry;
|
||||
use epiphany_core::EpiphanyCultMeshDaemonStatusEntry;
|
||||
use epiphany_core::EpiphanyCultMeshDaemonToolCapabilityEntry;
|
||||
use epiphany_core::EpiphanyCultMeshEveSurfaceStateEntry;
|
||||
use epiphany_core::EpiphanyCultMeshIdunnAftercareAuditReceiptEntry;
|
||||
use epiphany_core::EpiphanyCultMeshIdunnDeploymentReceiptEntry;
|
||||
use epiphany_core::EpiphanyCultMeshImaginationConsensusReceiptEntry;
|
||||
use epiphany_core::EpiphanyCultMeshManagedServicePolicyEntry;
|
||||
use epiphany_core::EpiphanyCultMeshOdinAdvertisementEntry;
|
||||
use epiphany_core::EpiphanyCultMeshRepoWorkMapEntry;
|
||||
use epiphany_core::EpiphanyCultMeshRepoWorkOverviewEntry;
|
||||
|
|
@ -61,9 +61,9 @@ use epiphany_core::load_epiphany_cultmesh_cluster_topology;
|
|||
use epiphany_core::load_epiphany_cultmesh_daemon_liveness;
|
||||
use epiphany_core::load_epiphany_cultmesh_daemon_restart_policy_directory;
|
||||
use epiphany_core::load_epiphany_cultmesh_daemon_service_lifecycle_receipts;
|
||||
use epiphany_core::load_epiphany_cultmesh_managed_service_policies;
|
||||
use epiphany_core::load_epiphany_cultmesh_daemon_tool_directory;
|
||||
use epiphany_core::load_epiphany_cultmesh_eve_surface_directory;
|
||||
use epiphany_core::load_epiphany_cultmesh_managed_service_policies;
|
||||
use epiphany_core::load_epiphany_cultmesh_repo_work_map_entries;
|
||||
use epiphany_core::load_epiphany_cultmesh_repo_work_overviews;
|
||||
use epiphany_core::load_epiphany_cultmesh_repo_work_public_proofs;
|
||||
|
|
@ -91,8 +91,8 @@ use epiphany_core::load_latest_epiphany_cultmesh_repo_work_overview;
|
|||
use epiphany_core::load_latest_epiphany_cultmesh_repo_work_public_proof;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_repo_work_readiness;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_repo_work_readiness_review;
|
||||
use epiphany_core::open_epiphany_cultmesh_node;
|
||||
use epiphany_core::observe_native_process;
|
||||
use epiphany_core::open_epiphany_cultmesh_node;
|
||||
use epiphany_core::query_epiphany_local_verse_context;
|
||||
use epiphany_core::seed_epiphany_local_verse_context;
|
||||
use epiphany_core::write_epiphany_cultmesh_agent_state_soa_summary;
|
||||
|
|
@ -126,7 +126,6 @@ use std::net::SocketAddr;
|
|||
use std::path::PathBuf;
|
||||
|
||||
const WRAPPER_OVERVIEW_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode swarm-overview";
|
||||
const WRAPPER_GJALLAR_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode gjallar";
|
||||
const WRAPPER_SWARM_ONLINE_RUNBOOK_COMMAND: &str =
|
||||
"tools/epiphany_local_run.ps1 -Mode swarm-online-runbook";
|
||||
const WRAPPER_POKE_NON_READY_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode swarm-poke-down";
|
||||
|
|
@ -334,9 +333,7 @@ fn run_cli() -> Result<()> {
|
|||
"artifactMissingCount": report.artifact_missing_count,
|
||||
"commands": {
|
||||
"overview": "epiphany-verse-query swarm-overview",
|
||||
"gjallar": "epiphany-verse-query gjallar",
|
||||
"wrapperOverview": WRAPPER_OVERVIEW_COMMAND,
|
||||
"wrapperGjallar": WRAPPER_GJALLAR_COMMAND,
|
||||
"wrapperSwarmOnlineRunbook": WRAPPER_SWARM_ONLINE_RUNBOOK_COMMAND,
|
||||
"tools": "epiphany-verse-query tool-directory",
|
||||
"wrapperTools": "tools/epiphany_local_run.ps1 -Mode tool-directory",
|
||||
|
|
@ -389,20 +386,22 @@ fn run_cli() -> Result<()> {
|
|||
}))?
|
||||
);
|
||||
}
|
||||
"managed-services" | "gjallar-managed-services" | "idunn-services" => {
|
||||
"managed-services" | "idunn-services" => {
|
||||
let report = managed_service_sight_report(&args.store, &args.runtime_id)?;
|
||||
println!("{}", serde_json::to_string_pretty(&json!({
|
||||
"schemaVersion": "epiphany.cultmesh.managed_service_sight.v0",
|
||||
"status": report.status,
|
||||
"owner": "Gjallar",
|
||||
"lifecycleOwner": "Idunn",
|
||||
"serviceCount": report.rows.len(),
|
||||
"aliveCount": report.alive_count,
|
||||
"attentionCount": report.attention_count,
|
||||
"rows": report.rows,
|
||||
"tuiRows": report.tui_rows,
|
||||
"privateStateExposed": false,
|
||||
}))?);
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&json!({
|
||||
"schemaVersion": "epiphany.cultmesh.managed_service_sight.v0",
|
||||
"status": report.status,
|
||||
"lifecycleOwner": "Idunn",
|
||||
"serviceCount": report.rows.len(),
|
||||
"aliveCount": report.alive_count,
|
||||
"attentionCount": report.attention_count,
|
||||
"rows": report.rows,
|
||||
"tuiRows": report.tui_rows,
|
||||
"privateStateExposed": false,
|
||||
}))?
|
||||
);
|
||||
}
|
||||
"tools" | "tool-directory" => {
|
||||
seed_epiphany_local_verse_context(
|
||||
|
|
@ -864,7 +863,7 @@ fn run_cli() -> Result<()> {
|
|||
}))?
|
||||
);
|
||||
}
|
||||
"swarm-overview" | "agent-overview" | "global-agents" | "gjallar" => {
|
||||
"swarm-overview" | "agent-overview" | "global-agents" => {
|
||||
seed_epiphany_local_verse_context(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
|
|
@ -879,12 +878,10 @@ fn run_cli() -> Result<()> {
|
|||
"receipts": "epiphany-verse-query receipt-directory",
|
||||
"restartPolicies": "epiphany-verse-query restart-policy-directory",
|
||||
"repoWorkOverview": "epiphany-work overview --workspace <repo> --item <item>",
|
||||
"repoWorkMap": "epiphany-verse-query gjallar",
|
||||
"repoWorkMap": "epiphany-verse-query swarm-overview",
|
||||
"idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND,
|
||||
"pokeNonReady": "epiphany-verse-query poke-down-daemons",
|
||||
"gjallar": "epiphany-verse-query gjallar",
|
||||
"wrapperOverview": WRAPPER_OVERVIEW_COMMAND,
|
||||
"wrapperGjallar": WRAPPER_GJALLAR_COMMAND,
|
||||
"wrapperSwarmOnlineRunbook": WRAPPER_SWARM_ONLINE_RUNBOOK_COMMAND,
|
||||
"wrapperReceipts": WRAPPER_RECEIPT_DIRECTORY_COMMAND,
|
||||
"wrapperRestartPolicies": WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND,
|
||||
|
|
@ -2146,7 +2143,6 @@ fn run_cli() -> Result<()> {
|
|||
|| !WRAPPER_CONNECT_EVE_COMMAND.contains("-Mode eve-connect")
|
||||
|| !WRAPPER_BIFROST_LEDGER_COMMAND.contains("-Mode bifrost-ledger")
|
||||
|| !WRAPPER_RECEIPT_DIRECTORY_COMMAND.contains("-Mode receipt-directory")
|
||||
|| !WRAPPER_GJALLAR_COMMAND.contains("-Mode gjallar")
|
||||
|| !WRAPPER_SWARM_ONLINE_RUNBOOK_COMMAND.contains("-Mode swarm-online-runbook")
|
||||
|| !WRAPPER_INVOKE_SWARM_ONLINE_RUNBOOK_TOOL_COMMAND.contains("-Mode tool-invoke")
|
||||
|| !WRAPPER_INVOKE_SWARM_ONLINE_RUNBOOK_TOOL_COMMAND
|
||||
|
|
@ -4077,7 +4073,7 @@ fn run_cli() -> Result<()> {
|
|||
);
|
||||
}
|
||||
other => anyhow::bail!(
|
||||
"unknown command {other:?}; use seed, query, provider-advertisements, publish-odin, tools, tool-directory, invoke-tool, restart-policy-directory, swarm-brake, swarm-status, cluster-topology, eve-surfaces, daemon-status, agent-state, agent-state-report, poke-daemon, poke-down-daemons, bifrost-publication, bifrost-public-proof, bifrost-artifact-acceptance, bifrost-metrics, bifrost-ledger, collaboration-feedback, connect-eve, or smoke"
|
||||
"unknown command {other:?}; use seed, query, provider-advertisements, publish-odin, tools, tool-directory, invoke-tool, restart-policy-directory, swarm-brake, swarm-status, swarm-overview, swarm-triage, managed-services, cluster-topology, eve-surfaces, daemon-status, agent-state, agent-state-report, poke-daemon, poke-down-daemons, bifrost-publication, bifrost-public-proof, bifrost-artifact-acceptance, bifrost-metrics, bifrost-ledger, collaboration-feedback, connect-eve, or smoke"
|
||||
),
|
||||
}
|
||||
Ok(())
|
||||
|
|
@ -4443,10 +4439,8 @@ fn managed_service_sight_report(
|
|||
runtime_id: &str,
|
||||
) -> Result<ManagedServiceSightReport> {
|
||||
let policies = load_epiphany_cultmesh_managed_service_policies(store, runtime_id.to_string())?;
|
||||
let lifecycle = load_epiphany_cultmesh_daemon_service_lifecycle_receipts(
|
||||
store,
|
||||
runtime_id.to_string(),
|
||||
)?;
|
||||
let lifecycle =
|
||||
load_epiphany_cultmesh_daemon_service_lifecycle_receipts(store, runtime_id.to_string())?;
|
||||
let mut rows = Vec::new();
|
||||
for policy in policies {
|
||||
let latest = lifecycle
|
||||
|
|
@ -4469,7 +4463,10 @@ fn managed_service_sight_report(
|
|||
process_id,
|
||||
lifecycle_receipt_id: latest.map(|receipt| receipt.receipt_id.clone()),
|
||||
lifecycle_status: latest.map(|receipt| receipt.status.clone()),
|
||||
last_pulse_status: pulse.as_ref().and_then(|value| value["status"].as_str()).map(str::to_string),
|
||||
last_pulse_status: pulse
|
||||
.as_ref()
|
||||
.and_then(|value| value["status"].as_str())
|
||||
.map(str::to_string),
|
||||
last_pulse_iteration: pulse.as_ref().and_then(|value| value["iteration"].as_u64()),
|
||||
last_pulse_artifact: pulse
|
||||
.as_ref()
|
||||
|
|
@ -4506,7 +4503,12 @@ fn managed_service_sight_report(
|
|||
})
|
||||
.collect();
|
||||
Ok(ManagedServiceSightReport {
|
||||
status: if attention_count == 0 { "ready" } else { "attention" }.to_string(),
|
||||
status: if attention_count == 0 {
|
||||
"ready"
|
||||
} else {
|
||||
"attention"
|
||||
}
|
||||
.to_string(),
|
||||
alive_count,
|
||||
attention_count,
|
||||
rows,
|
||||
|
|
@ -4514,7 +4516,9 @@ fn managed_service_sight_report(
|
|||
})
|
||||
}
|
||||
|
||||
fn compact_last_service_pulse(policy: &EpiphanyCultMeshManagedServicePolicyEntry) -> Option<serde_json::Value> {
|
||||
fn compact_last_service_pulse(
|
||||
policy: &EpiphanyCultMeshManagedServicePolicyEntry,
|
||||
) -> Option<serde_json::Value> {
|
||||
let text = fs::read_to_string(&policy.stdout_artifact).ok()?;
|
||||
text.lines()
|
||||
.rev()
|
||||
|
|
@ -5344,9 +5348,7 @@ impl SwarmTriageOutput {
|
|||
pokes,
|
||||
commands: json!({
|
||||
"overview": "epiphany-verse-query swarm-overview",
|
||||
"gjallar": "epiphany-verse-query gjallar",
|
||||
"wrapperOverview": WRAPPER_OVERVIEW_COMMAND,
|
||||
"wrapperGjallar": WRAPPER_GJALLAR_COMMAND,
|
||||
"wrapperSwarmOnlineRunbook": WRAPPER_SWARM_ONLINE_RUNBOOK_COMMAND,
|
||||
"pokeNonReady": "epiphany-verse-query poke-down-daemons",
|
||||
"wrapperPokeNonReady": WRAPPER_POKE_NON_READY_COMMAND,
|
||||
|
|
@ -5354,7 +5356,7 @@ impl SwarmTriageOutput {
|
|||
"wrapperReceipts": WRAPPER_RECEIPT_DIRECTORY_COMMAND,
|
||||
"restartPolicies": "epiphany-verse-query restart-policy-directory",
|
||||
"repoWorkOverview": "epiphany-work overview --workspace <repo> --item <item>",
|
||||
"repoWorkMap": "epiphany-verse-query gjallar",
|
||||
"repoWorkMap": "epiphany-verse-query swarm-overview",
|
||||
"idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND,
|
||||
"wrapperRestartPolicies": WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND,
|
||||
"bifrostLedger": "epiphany-verse-query bifrost-ledger",
|
||||
|
|
@ -6788,7 +6790,7 @@ fn repo_work_overview_action_row(
|
|||
priority,
|
||||
family: "repo-work-overview".to_string(),
|
||||
status,
|
||||
lifecycle_owner: "Gjallar".to_string(),
|
||||
lifecycle_owner: "none".to_string(),
|
||||
hosted_body: "repo-work".to_string(),
|
||||
action: format!(
|
||||
"Read latest repo work overview {} for item {}.",
|
||||
|
|
@ -6831,7 +6833,7 @@ fn repo_work_public_proof_action_row(
|
|||
priority,
|
||||
family: "repo-work-public-proof".to_string(),
|
||||
status: proof.current_gate.clone(),
|
||||
lifecycle_owner: "Gjallar".to_string(),
|
||||
lifecycle_owner: "none".to_string(),
|
||||
hosted_body: "repo-work".to_string(),
|
||||
action: format!(
|
||||
"Read redacted public proof {} for item {}; Bifrost owns any public publication or credit consequence.",
|
||||
|
|
@ -6880,7 +6882,7 @@ fn repo_work_readiness_action_row(
|
|||
priority,
|
||||
family: "repo-work-readiness".to_string(),
|
||||
status: readiness.status.clone(),
|
||||
lifecycle_owner: "Gjallar".to_string(),
|
||||
lifecycle_owner: "none".to_string(),
|
||||
hosted_body: "repo-work".to_string(),
|
||||
action: format!(
|
||||
"Read repo work readiness {} for item {}; Maintainer/Soul/Mind/Bifrost own readiness approval.",
|
||||
|
|
@ -6936,7 +6938,7 @@ fn repo_work_readiness_review_action_row(
|
|||
priority,
|
||||
family: "repo-work-readiness-review".to_string(),
|
||||
status: review.status.clone(),
|
||||
lifecycle_owner: "Gjallar".to_string(),
|
||||
lifecycle_owner: "none".to_string(),
|
||||
hosted_body: "repo-work".to_string(),
|
||||
action: format!(
|
||||
"Read repo work readiness review {} for item {}; Bifrost/GitHub/Idunn/Hands still own publication, sync, deployment, service lifecycle, and branch consequences.",
|
||||
|
|
|
|||
|
|
@ -10041,7 +10041,7 @@ fn project_repo_work_map_entry_to_local_verse(
|
|||
private_state_exposed: false,
|
||||
notes: vec![
|
||||
"Repo work map entry is compact local Verse sight over Mind-admitted durable state; raw worker thoughts and receipt payload bodies remain sealed.".to_string(),
|
||||
"Gjallar may project this row, but it does not own scheduling, publication, merge, service lifecycle, deployment, or cross-repo mutation.".to_string(),
|
||||
"Downstream consumers may project this row; the projection grants no scheduling, publication, merge, service lifecycle, deployment, or cross-repo mutation authority.".to_string(),
|
||||
],
|
||||
};
|
||||
write_epiphany_cultmesh_repo_work_map_entry(local_verse_store, map_entry)
|
||||
|
|
@ -12661,7 +12661,7 @@ fn run_overview(args: OverviewArgs) -> Result<Value> {
|
|||
"intakeConsensus": proof_bundle["intakeConsensus"],
|
||||
"rows": rows,
|
||||
"authority": {
|
||||
"owner": "Eyes/Gjallar",
|
||||
"owner": "Eyes",
|
||||
"sightOnly": true,
|
||||
"branchLocalOnly": false,
|
||||
"publicationAuthorized": false,
|
||||
|
|
@ -12702,7 +12702,7 @@ fn run_overview(args: OverviewArgs) -> Result<Value> {
|
|||
notes: vec![
|
||||
"Repo work overview is compact local Verse sight; raw worker thoughts and receipt payload bodies remain sealed.".to_string(),
|
||||
"Persona/public feedback and candidate-action refs are shown only as compact Imagination consensus readback; adoption still requires Mind and Bifrost gates.".to_string(),
|
||||
"Gjallar/Eve may project these rows, but they do not own scheduling, publication, merge, service lifecycle, or cross-repo mutation.".to_string(),
|
||||
"downstream Eve lowerers may project these rows, but they do not own scheduling, publication, merge, service lifecycle, or cross-repo mutation.".to_string(),
|
||||
],
|
||||
};
|
||||
let written = write_epiphany_cultmesh_repo_work_overview(store, entry)?;
|
||||
|
|
@ -12821,7 +12821,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
)?,
|
||||
readiness_path_row(
|
||||
"swarm-online",
|
||||
"Self/Gjallar",
|
||||
"Self",
|
||||
"epiphany.repo_swarm_online_receipt.v0",
|
||||
&online_receipt_path,
|
||||
online_receipt_path.exists(),
|
||||
|
|
@ -12878,7 +12878,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
safe_family_planning_readiness_row(&close_receipt_path, close_receipt.as_ref()),
|
||||
readiness_path_row(
|
||||
"public-proof",
|
||||
"Bifrost/Gjallar",
|
||||
"Bifrost",
|
||||
"epiphany.repo_work_public_proof_bundle.v0",
|
||||
&public_proof_path,
|
||||
public_proof_path.exists(),
|
||||
|
|
@ -13015,7 +13015,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
} else {
|
||||
rows.push(readiness_missing_row(
|
||||
"tool-directory",
|
||||
"Odin/Gjallar",
|
||||
"Odin",
|
||||
"epiphany.cultmesh.daemon_tool_directory.v0",
|
||||
"Supply --tool-directory-receipt or run tool-directory sight into the repo work artifact directory.",
|
||||
));
|
||||
|
|
@ -13145,7 +13145,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
notes: vec![
|
||||
"Repo work readiness is reviewable sight only; Maintainer/Soul/Mind/Bifrost own any readiness approval.".to_string(),
|
||||
"Bifrost/GitHub own publication and upstream-main sync; Idunn owns service lifecycle; Hands owns branch-local action consequences.".to_string(),
|
||||
"Gjallar may project these rows without scheduling, publication, merge, deployment, service lifecycle, cross-body mutation, or private Verse authority.".to_string(),
|
||||
"Downstream consumers may project these rows without scheduling, publication, merge, deployment, service lifecycle, cross-body mutation, or private Verse authority.".to_string(),
|
||||
],
|
||||
};
|
||||
let written = write_epiphany_cultmesh_repo_work_readiness(store, entry)?;
|
||||
|
|
@ -13332,7 +13332,7 @@ fn run_readiness_review(args: ReadinessReviewArgs) -> Result<Value> {
|
|||
tui_rows: review_tui_rows.clone(),
|
||||
notes: vec![
|
||||
"Readiness review approval is review evidence only; it does not publish, merge, deploy, sync upstream, mutate services, or grant Hands authority.".to_string(),
|
||||
"Maintainer, Soul, Mind, and Bifrost receipts remain the approval authorities; Gjallar only projects this compact row.".to_string(),
|
||||
"Maintainer, Soul, Mind, and Bifrost receipts remain the approval authorities; The provider sight projection only publishes this compact row.".to_string(),
|
||||
],
|
||||
};
|
||||
let written = write_epiphany_cultmesh_repo_work_readiness_review(&store, entry)?;
|
||||
|
|
@ -14047,7 +14047,7 @@ fn run_export_proof(args: ExportProofArgs) -> Result<Value> {
|
|||
private_state_exposed: false,
|
||||
notes: vec![
|
||||
"Repo work public proof is a redacted local Verse index for public/Bifrost transport; raw receipt bodies, local receipt paths, worker thought, and private Verse contents remain sealed.".to_string(),
|
||||
"Gjallar/Odin may discover this proof, but Bifrost still owns publication, labor ledger, credit, and public consequence.".to_string(),
|
||||
"Odin may discover this proof, but Bifrost still owns publication, labor ledger, credit, and public consequence.".to_string(),
|
||||
],
|
||||
};
|
||||
let written_public_proof =
|
||||
|
|
@ -15982,7 +15982,7 @@ fn tool_directory_readiness_row(path: &Path) -> Result<Value> {
|
|||
|
||||
Ok(json!({
|
||||
"kind": "tool-directory",
|
||||
"owner": "Odin/Gjallar",
|
||||
"owner": "Odin",
|
||||
"requiredSchema": "epiphany.cultmesh.daemon_tool_directory.v0",
|
||||
"evidenceRef": existing_path_value(path),
|
||||
"artifactStatus": if path.exists() { "present" } else { "missing" },
|
||||
|
|
@ -15998,7 +15998,7 @@ fn tool_directory_readiness_row(path: &Path) -> Result<Value> {
|
|||
"privateStateExposed": invariant_private,
|
||||
"satisfied": satisfied,
|
||||
"status": if satisfied { "satisfied" } else { "missing" },
|
||||
"note": "Odin/Gjallar tool-directory sight proves globally available daemon-hosted tools through typed intents and receipts.",
|
||||
"note": "Odin tool-directory sight proves globally available daemon-hosted tools through typed intents and receipts.",
|
||||
"toolExecutionAuthority": false,
|
||||
"serviceLifecycleAuthority": false,
|
||||
"privateVerseRummagingAuthorized": false
|
||||
|
|
@ -16231,7 +16231,7 @@ fn repo_work_public_proof_bundle(overview: &Value) -> Result<Value> {
|
|||
"privateStateExposed": false
|
||||
},
|
||||
"authority": {
|
||||
"owner": "Eyes/Gjallar",
|
||||
"owner": "Eyes",
|
||||
"sightOnly": true,
|
||||
"publicationAuthorized": false,
|
||||
"mergeAuthorized": false,
|
||||
|
|
@ -17297,8 +17297,20 @@ mod authority_tests {
|
|||
.status()?;
|
||||
assert!(git.success());
|
||||
for args in [
|
||||
["-C", workspace.to_str().unwrap(), "config", "user.name", "Epiphany Smoke"],
|
||||
["-C", workspace.to_str().unwrap(), "config", "user.email", "smoke@epiphany.invalid"],
|
||||
[
|
||||
"-C",
|
||||
workspace.to_str().unwrap(),
|
||||
"config",
|
||||
"user.name",
|
||||
"Epiphany Smoke",
|
||||
],
|
||||
[
|
||||
"-C",
|
||||
workspace.to_str().unwrap(),
|
||||
"config",
|
||||
"user.email",
|
||||
"smoke@epiphany.invalid",
|
||||
],
|
||||
] {
|
||||
assert!(Command::new("git").args(args).status()?.success());
|
||||
}
|
||||
|
|
@ -17468,8 +17480,7 @@ mod authority_tests {
|
|||
active_timeout_seconds: 900,
|
||||
dry_run: false,
|
||||
})?;
|
||||
let live_receipt =
|
||||
read_json(Path::new(live_tick["receiptPath"].as_str().unwrap()))?;
|
||||
let live_receipt = read_json(Path::new(live_tick["receiptPath"].as_str().unwrap()))?;
|
||||
assert_eq!(live_receipt["status"], "modeling-launched");
|
||||
assert_eq!(live_receipt["action"], "launch-modeling");
|
||||
assert_eq!(
|
||||
|
|
|
|||
|
|
@ -4030,9 +4030,13 @@ fn validate_daemon_restart_policy(policy: &EpiphanyCultMeshDaemonRestartPolicyEn
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn validate_managed_service_policy(policy: &EpiphanyCultMeshManagedServicePolicyEntry) -> Result<()> {
|
||||
fn validate_managed_service_policy(
|
||||
policy: &EpiphanyCultMeshManagedServicePolicyEntry,
|
||||
) -> Result<()> {
|
||||
if policy.private_state_exposed {
|
||||
return Err(anyhow!("managed service policies must not expose private state"));
|
||||
return Err(anyhow!(
|
||||
"managed service policies must not expose private state"
|
||||
));
|
||||
}
|
||||
for (label, value) in [
|
||||
("policy id", policy.policy_id.as_str()),
|
||||
|
|
@ -4048,11 +4052,18 @@ fn validate_managed_service_policy(policy: &EpiphanyCultMeshManagedServicePolicy
|
|||
return Err(anyhow!("managed service policy missing {label}"));
|
||||
}
|
||||
}
|
||||
if !matches!(policy.restart_mode.as_str(), "always" | "on-failure" | "never") {
|
||||
return Err(anyhow!("managed service policy restart_mode must be always, on-failure, or never"));
|
||||
if !matches!(
|
||||
policy.restart_mode.as_str(),
|
||||
"always" | "on-failure" | "never"
|
||||
) {
|
||||
return Err(anyhow!(
|
||||
"managed service policy restart_mode must be always, on-failure, or never"
|
||||
));
|
||||
}
|
||||
if policy.cooldown_seconds < 0 || policy.backoff_multiplier == 0 {
|
||||
return Err(anyhow!("managed service policy requires non-negative cooldown and positive backoff"));
|
||||
return Err(anyhow!(
|
||||
"managed service policy requires non-negative cooldown and positive backoff"
|
||||
));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -4587,7 +4598,7 @@ pub fn epiphany_cultmesh_bifrost_public_proof_publication_receipt_for_proof(
|
|||
notes: vec![
|
||||
"Bifrost public-proof publication receipt binds a redacted repo-work proof bundle to a public Verse room.".to_string(),
|
||||
"The receipt carries only proof refs, hashes, ledger, review, and credit ids; private worker/operator/agent state remains sealed.".to_string(),
|
||||
"Gjallar may read this closure, but Bifrost owns public publication authority.".to_string(),
|
||||
"Downstream consumers may read this closure, but Bifrost owns public publication authority.".to_string(),
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
@ -7291,7 +7302,7 @@ pub fn epiphany_cultmesh_bifrost_contracts() -> Vec<EpiphanyCultMeshBifrostContr
|
|||
"CultMesh advertises this Bifrost contract as {EPIPHANY_CULTMESH_BIFROST_CONTRACT_TYPE}."
|
||||
),
|
||||
"Repo-work public proof bundles are redacted evidence packets, not body changes; Bifrost publishes them into public Verse rooms after review and credit receipts exist.".to_string(),
|
||||
"Gjallar reads the published proof closure, but Bifrost owns public publication authority and ledger attribution.".to_string(),
|
||||
"Downstream consumers may read the published proof closure, but Bifrost owns public publication authority and ledger attribution.".to_string(),
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Reference in a new issue