Expose Idunn deployment receipts in Gjallar
This commit is contained in:
parent
a0173e220c
commit
0eb45777c5
7 changed files with 349 additions and 2 deletions
|
|
@ -291,6 +291,18 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
],
|
||||
&root,
|
||||
)?;
|
||||
let gjallar = cargo_json(
|
||||
&manifest,
|
||||
"epiphany-verse-query",
|
||||
&[
|
||||
"gjallar",
|
||||
"--store",
|
||||
path_str(&local_verse)?,
|
||||
"--runtime-id",
|
||||
"repo-deployment-config-family-smoke",
|
||||
],
|
||||
&root,
|
||||
)?;
|
||||
|
||||
require_eq(
|
||||
&plan,
|
||||
|
|
@ -461,6 +473,33 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&["idunnAftercareAuditReceipt", "schemaVersion"],
|
||||
"gamecult.idunn.deployment_aftercare_audit.v0",
|
||||
)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&["latestIdunnDeploymentReceipt"],
|
||||
idunn_deployment_receipt_id,
|
||||
)?;
|
||||
require_eq(
|
||||
&gjallar,
|
||||
&["latestIdunnAftercareAuditReceipt"],
|
||||
idunn_aftercare_receipt_id,
|
||||
)?;
|
||||
require_u64(&gjallar, &["idunnDeploymentReceiptCount"], 2)?;
|
||||
require_bool(&gjallar, &["privateStateExposed"], false)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
"IDUNN-DEPLOYMENT",
|
||||
)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
idunn_deployment_receipt_id,
|
||||
)?;
|
||||
require_array_contains(
|
||||
&gjallar,
|
||||
&["idunnDeploymentReceiptTuiRows"],
|
||||
idunn_aftercare_receipt_id,
|
||||
)?;
|
||||
|
||||
let summary = json!({
|
||||
"schemaVersion": "epiphany.repo_deployment_config_family_smoke.v0",
|
||||
|
|
@ -490,6 +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"],
|
||||
"deploymentTrigger": "git-push-observed-by-idunn",
|
||||
"deploymentOwner": "Idunn",
|
||||
"daemonOwnsExecution": true,
|
||||
|
|
@ -612,6 +654,41 @@ fn require_bool(value: &Value, path: &[&str], expected: bool) -> Result<()> {
|
|||
}
|
||||
}
|
||||
|
||||
fn require_u64(value: &Value, path: &[&str], expected: u64) -> Result<()> {
|
||||
let actual = value_at_path(value, path)
|
||||
.and_then(Value::as_u64)
|
||||
.ok_or_else(|| anyhow!("missing unsigned integer at {}", path.join(".")))?;
|
||||
if actual == expected {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(anyhow!(
|
||||
"expected {} at {}, got {}",
|
||||
expected,
|
||||
path.join("."),
|
||||
actual
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn require_array_contains(value: &Value, path: &[&str], needle: &str) -> Result<()> {
|
||||
let array = value_at_path(value, path)
|
||||
.and_then(Value::as_array)
|
||||
.ok_or_else(|| anyhow!("missing array at {}", path.join(".")))?;
|
||||
if array
|
||||
.iter()
|
||||
.filter_map(Value::as_str)
|
||||
.any(|item| item.contains(needle))
|
||||
{
|
||||
Ok(())
|
||||
} else {
|
||||
Err(anyhow!(
|
||||
"expected array at {} to contain {:?}",
|
||||
path.join("."),
|
||||
needle
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn require_text(text: &str, needle: &str) -> Result<()> {
|
||||
if text.contains(needle) {
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ use epiphany_core::EpiphanyCultMeshDaemonServiceLifecycleReceiptEntry;
|
|||
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::EpiphanyCultMeshOdinAdvertisementEntry;
|
||||
use epiphany_core::EpiphanyCultMeshRepoWorkMapEntry;
|
||||
|
|
@ -67,6 +69,8 @@ use epiphany_core::load_latest_epiphany_cultmesh_daemon_tool_invocation_intent;
|
|||
use epiphany_core::load_latest_epiphany_cultmesh_daemon_tool_invocation_receipt;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_eve_connection_intent;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_eve_connection_receipt;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_idunn_aftercare_audit_receipt;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_idunn_deployment_receipt;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_imagination_consensus_receipt;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_repo_work_map_entry;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_repo_work_overview;
|
||||
|
|
@ -119,6 +123,7 @@ const WRAPPER_BIFROST_PUBLICATION_COMMAND: &str =
|
|||
const WRAPPER_BIFROST_LEDGER_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode bifrost-ledger";
|
||||
const WRAPPER_RECEIPT_DIRECTORY_COMMAND: &str =
|
||||
"tools/epiphany_local_run.ps1 -Mode receipt-directory";
|
||||
const DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND: &str = "epiphany-work deployment-aftercare-audit --workspace <repo> --local-verse-store <store> --idunn-deployment-receipt-ref latest --aftercare-audit-receipt-ref latest";
|
||||
const WRAPPER_SERVICE_TICK_COMMAND: &str = "tools/epiphany_local_run.ps1 -Mode service-tick";
|
||||
const WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND: &str =
|
||||
"tools/epiphany_local_run.ps1 -Mode service-policy-directory";
|
||||
|
|
@ -762,6 +767,7 @@ fn run_cli() -> Result<()> {
|
|||
"restartPolicies": "epiphany-verse-query restart-policy-directory",
|
||||
"repoWorkOverview": "epiphany-work overview --workspace <repo> --item <item>",
|
||||
"repoWorkMap": "epiphany-verse-query gjallar",
|
||||
"idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND,
|
||||
"pokeNonReady": "epiphany-verse-query poke-down-daemons",
|
||||
"gjallar": "epiphany-verse-query gjallar",
|
||||
"wrapperOverview": WRAPPER_OVERVIEW_COMMAND,
|
||||
|
|
@ -4079,12 +4085,16 @@ struct SwarmOverviewReport {
|
|||
repo_work_overview_tui_rows: Vec<String>,
|
||||
repo_work_public_proof_rows: Vec<RepoWorkPublicProofRow>,
|
||||
repo_work_public_proof_tui_rows: Vec<String>,
|
||||
idunn_deployment_receipt_rows: Vec<IdunnDeploymentReceiptRow>,
|
||||
idunn_deployment_receipt_tui_rows: Vec<String>,
|
||||
latest_repo_work_overview_id: Option<String>,
|
||||
latest_repo_work_map_entry: Option<String>,
|
||||
latest_repo_work_gate: Option<String>,
|
||||
latest_repo_work_blocker: Option<String>,
|
||||
latest_repo_work_next_safe_move: Option<String>,
|
||||
latest_repo_work_public_proof: Option<String>,
|
||||
latest_idunn_deployment_receipt: Option<String>,
|
||||
latest_idunn_aftercare_audit_receipt: Option<String>,
|
||||
topology_report: ClusterTopologyReport,
|
||||
daemon_report: DaemonLivenessReport,
|
||||
surface_report: EveSurfaceReport,
|
||||
|
|
@ -4193,6 +4203,24 @@ struct RepoWorkPublicProofRow {
|
|||
private_state_exposed: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct IdunnDeploymentReceiptRow {
|
||||
receipt_family: String,
|
||||
receipt_id: String,
|
||||
status: String,
|
||||
owner: String,
|
||||
authority_gate: String,
|
||||
watched_ref: String,
|
||||
checked_ref: String,
|
||||
source_commit: String,
|
||||
result_ref: String,
|
||||
deployment_receipt_id: String,
|
||||
aftercare_audit_ref: String,
|
||||
follow_up_command: String,
|
||||
private_state_exposed: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct SwarmActionRow {
|
||||
|
|
@ -4292,12 +4320,17 @@ struct SwarmOverviewOutput {
|
|||
repo_work_public_proof_count: usize,
|
||||
repo_work_public_proof_rows: Vec<RepoWorkPublicProofRow>,
|
||||
repo_work_public_proof_tui_rows: Vec<String>,
|
||||
idunn_deployment_receipt_count: usize,
|
||||
idunn_deployment_receipt_rows: Vec<IdunnDeploymentReceiptRow>,
|
||||
idunn_deployment_receipt_tui_rows: Vec<String>,
|
||||
latest_repo_work_overview: Option<String>,
|
||||
latest_repo_work_map_entry: Option<String>,
|
||||
latest_repo_work_gate: Option<String>,
|
||||
latest_repo_work_blocker: Option<String>,
|
||||
latest_repo_work_next_safe_move: Option<String>,
|
||||
latest_repo_work_public_proof: Option<String>,
|
||||
latest_idunn_deployment_receipt: Option<String>,
|
||||
latest_idunn_aftercare_audit_receipt: Option<String>,
|
||||
policy_covered_count: usize,
|
||||
policy_enabled_count: usize,
|
||||
policy_disabled_count: usize,
|
||||
|
|
@ -4376,12 +4409,17 @@ impl SwarmOverviewOutput {
|
|||
repo_work_public_proof_count: report.repo_work_public_proof_rows.len(),
|
||||
repo_work_public_proof_rows: report.repo_work_public_proof_rows,
|
||||
repo_work_public_proof_tui_rows: report.repo_work_public_proof_tui_rows,
|
||||
idunn_deployment_receipt_count: report.idunn_deployment_receipt_rows.len(),
|
||||
idunn_deployment_receipt_rows: report.idunn_deployment_receipt_rows,
|
||||
idunn_deployment_receipt_tui_rows: report.idunn_deployment_receipt_tui_rows,
|
||||
latest_repo_work_overview: report.latest_repo_work_overview_id,
|
||||
latest_repo_work_map_entry: report.latest_repo_work_map_entry,
|
||||
latest_repo_work_gate: report.latest_repo_work_gate,
|
||||
latest_repo_work_blocker: report.latest_repo_work_blocker,
|
||||
latest_repo_work_next_safe_move: report.latest_repo_work_next_safe_move,
|
||||
latest_repo_work_public_proof: report.latest_repo_work_public_proof,
|
||||
latest_idunn_deployment_receipt: report.latest_idunn_deployment_receipt,
|
||||
latest_idunn_aftercare_audit_receipt: report.latest_idunn_aftercare_audit_receipt,
|
||||
policy_covered_count: report.policy_report.covered_count,
|
||||
policy_enabled_count: report.policy_report.enabled_count,
|
||||
policy_disabled_count: report.policy_report.disabled_count,
|
||||
|
|
@ -4452,12 +4490,17 @@ struct SwarmTriageOutput {
|
|||
repo_work_public_proof_count: usize,
|
||||
repo_work_public_proof_rows: Vec<RepoWorkPublicProofRow>,
|
||||
repo_work_public_proof_tui_rows: Vec<String>,
|
||||
idunn_deployment_receipt_count: usize,
|
||||
idunn_deployment_receipt_rows: Vec<IdunnDeploymentReceiptRow>,
|
||||
idunn_deployment_receipt_tui_rows: Vec<String>,
|
||||
latest_repo_work_overview: Option<String>,
|
||||
latest_repo_work_map_entry: Option<String>,
|
||||
latest_repo_work_gate: Option<String>,
|
||||
latest_repo_work_blocker: Option<String>,
|
||||
latest_repo_work_next_safe_move: Option<String>,
|
||||
latest_repo_work_public_proof: Option<String>,
|
||||
latest_idunn_deployment_receipt: Option<String>,
|
||||
latest_idunn_aftercare_audit_receipt: Option<String>,
|
||||
poked_daemon_count: usize,
|
||||
pokes: Vec<serde_json::Value>,
|
||||
commands: serde_json::Value,
|
||||
|
|
@ -4531,12 +4574,17 @@ impl SwarmTriageOutput {
|
|||
repo_work_public_proof_count: report.repo_work_public_proof_rows.len(),
|
||||
repo_work_public_proof_rows: report.repo_work_public_proof_rows,
|
||||
repo_work_public_proof_tui_rows: report.repo_work_public_proof_tui_rows,
|
||||
idunn_deployment_receipt_count: report.idunn_deployment_receipt_rows.len(),
|
||||
idunn_deployment_receipt_rows: report.idunn_deployment_receipt_rows,
|
||||
idunn_deployment_receipt_tui_rows: report.idunn_deployment_receipt_tui_rows,
|
||||
latest_repo_work_overview: report.latest_repo_work_overview_id,
|
||||
latest_repo_work_map_entry: report.latest_repo_work_map_entry,
|
||||
latest_repo_work_gate: report.latest_repo_work_gate,
|
||||
latest_repo_work_blocker: report.latest_repo_work_blocker,
|
||||
latest_repo_work_next_safe_move: report.latest_repo_work_next_safe_move,
|
||||
latest_repo_work_public_proof: report.latest_repo_work_public_proof,
|
||||
latest_idunn_deployment_receipt: report.latest_idunn_deployment_receipt,
|
||||
latest_idunn_aftercare_audit_receipt: report.latest_idunn_aftercare_audit_receipt,
|
||||
poked_daemon_count,
|
||||
pokes,
|
||||
commands: json!({
|
||||
|
|
@ -4552,6 +4600,7 @@ impl SwarmTriageOutput {
|
|||
"restartPolicies": "epiphany-verse-query restart-policy-directory",
|
||||
"repoWorkOverview": "epiphany-work overview --workspace <repo> --item <item>",
|
||||
"repoWorkMap": "epiphany-verse-query gjallar",
|
||||
"idunnDeploymentAftercareAudit": DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND,
|
||||
"wrapperRestartPolicies": WRAPPER_SERVICE_POLICY_DIRECTORY_COMMAND,
|
||||
"bifrostLedger": "epiphany-verse-query bifrost-ledger",
|
||||
"wrapperBifrostLedger": WRAPPER_BIFROST_LEDGER_COMMAND,
|
||||
|
|
@ -5369,6 +5418,71 @@ fn repo_work_public_proof_tui_row(row: &RepoWorkPublicProofRow) -> String {
|
|||
)
|
||||
}
|
||||
|
||||
fn idunn_deployment_receipt_rows(
|
||||
deployment_receipt: Option<&EpiphanyCultMeshIdunnDeploymentReceiptEntry>,
|
||||
aftercare_receipt: Option<&EpiphanyCultMeshIdunnAftercareAuditReceiptEntry>,
|
||||
) -> (Vec<IdunnDeploymentReceiptRow>, Vec<String>) {
|
||||
let mut rows = Vec::new();
|
||||
if let Some(receipt) = deployment_receipt {
|
||||
rows.push(IdunnDeploymentReceiptRow {
|
||||
receipt_family: "deployment".to_string(),
|
||||
receipt_id: receipt.receipt_id.clone(),
|
||||
status: receipt.status.clone(),
|
||||
owner: "Idunn".to_string(),
|
||||
authority_gate: "gamecult.idunn.deployment".to_string(),
|
||||
watched_ref: receipt.watched_ref.clone(),
|
||||
checked_ref: "none".to_string(),
|
||||
source_commit: receipt.source_commit.clone(),
|
||||
result_ref: receipt.result_ref.clone(),
|
||||
deployment_receipt_id: receipt.receipt_id.clone(),
|
||||
aftercare_audit_ref: "none".to_string(),
|
||||
follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(),
|
||||
private_state_exposed: receipt.private_state_exposed,
|
||||
});
|
||||
}
|
||||
if let Some(receipt) = aftercare_receipt {
|
||||
rows.push(IdunnDeploymentReceiptRow {
|
||||
receipt_family: "aftercare-audit".to_string(),
|
||||
receipt_id: receipt.receipt_id.clone(),
|
||||
status: receipt.status.clone(),
|
||||
owner: "Idunn".to_string(),
|
||||
authority_gate: "gamecult.idunn.deployment_aftercare".to_string(),
|
||||
watched_ref: "none".to_string(),
|
||||
checked_ref: receipt.checked_ref.clone(),
|
||||
source_commit: "none".to_string(),
|
||||
result_ref: receipt.audit_ref.clone(),
|
||||
deployment_receipt_id: receipt.deployment_receipt_id.clone(),
|
||||
aftercare_audit_ref: receipt.audit_ref.clone(),
|
||||
follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(),
|
||||
private_state_exposed: receipt.private_state_exposed,
|
||||
});
|
||||
}
|
||||
let tui_rows = rows
|
||||
.iter()
|
||||
.map(idunn_deployment_receipt_tui_row)
|
||||
.collect::<Vec<_>>();
|
||||
(rows, tui_rows)
|
||||
}
|
||||
|
||||
fn idunn_deployment_receipt_tui_row(row: &IdunnDeploymentReceiptRow) -> String {
|
||||
format!(
|
||||
"IDUNN-DEPLOYMENT | family={} | receipt={} | status={} | watchedRef={} | checkedRef={} | sourceCommit={} | result={} | deploymentReceipt={} | aftercare={} | owner={} | authority={} | command={} | private={}",
|
||||
row.receipt_family,
|
||||
row.receipt_id,
|
||||
row.status,
|
||||
row.watched_ref,
|
||||
row.checked_ref,
|
||||
short_commit(&row.source_commit),
|
||||
row.result_ref,
|
||||
row.deployment_receipt_id,
|
||||
row.aftercare_audit_ref,
|
||||
row.owner,
|
||||
row.authority_gate,
|
||||
row.follow_up_command,
|
||||
row.private_state_exposed
|
||||
)
|
||||
}
|
||||
|
||||
fn short_commit(commit_sha: &str) -> String {
|
||||
commit_sha.chars().take(12).collect::<String>()
|
||||
}
|
||||
|
|
@ -5912,6 +6026,15 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
|
|||
let (latest_repo_work_map_entry, repo_work_map_entries) = load_repo_work_map_entries(args)?;
|
||||
let (latest_repo_work_public_proof, repo_work_public_proofs) =
|
||||
load_repo_work_public_proofs(args)?;
|
||||
let latest_idunn_deployment_receipt = load_latest_epiphany_cultmesh_idunn_deployment_receipt(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
)?;
|
||||
let latest_idunn_aftercare_audit_receipt =
|
||||
load_latest_epiphany_cultmesh_idunn_aftercare_audit_receipt(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
)?;
|
||||
let directory =
|
||||
load_epiphany_cultmesh_eve_surface_directory(&args.store, args.runtime_id.clone())?;
|
||||
let surface_report = eve_surface_report(&directory, &repo_work_overviews);
|
||||
|
|
@ -6133,6 +6256,11 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
|
|||
repo_work_map_branch_lens_rows(&repo_work_map_entries);
|
||||
let (repo_work_public_proof_rows, repo_work_public_proof_tui_rows) =
|
||||
repo_work_public_proof_rows(&repo_work_public_proofs);
|
||||
let (idunn_deployment_receipt_rows, idunn_deployment_receipt_tui_rows) =
|
||||
idunn_deployment_receipt_rows(
|
||||
latest_idunn_deployment_receipt.as_ref(),
|
||||
latest_idunn_aftercare_audit_receipt.as_ref(),
|
||||
);
|
||||
let (swarm_action_rows, swarm_action_tui_rows) = swarm_action_rows(
|
||||
&liveness_status,
|
||||
&tool_host_attention_rows,
|
||||
|
|
@ -6167,6 +6295,9 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
|
|||
|| repo_work_public_proofs
|
||||
.iter()
|
||||
.any(|proof| proof.private_state_exposed)
|
||||
|| idunn_deployment_receipt_rows
|
||||
.iter()
|
||||
.any(|row| row.private_state_exposed)
|
||||
|| service_execution_private_state_exposed
|
||||
|| service_lifecycle_rows
|
||||
.iter()
|
||||
|
|
@ -6189,6 +6320,12 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
|
|||
let latest_repo_work_public_proof = latest_repo_work_public_proof
|
||||
.as_ref()
|
||||
.map(|proof| proof.public_proof_id.clone());
|
||||
let latest_idunn_deployment_receipt = latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.receipt_id.clone());
|
||||
let latest_idunn_aftercare_audit_receipt = latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.receipt_id.clone());
|
||||
Ok(SwarmOverviewReport {
|
||||
status,
|
||||
liveness_status,
|
||||
|
|
@ -6223,12 +6360,16 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
|
|||
repo_work_overview_tui_rows,
|
||||
repo_work_public_proof_rows,
|
||||
repo_work_public_proof_tui_rows,
|
||||
idunn_deployment_receipt_rows,
|
||||
idunn_deployment_receipt_tui_rows,
|
||||
latest_repo_work_overview_id,
|
||||
latest_repo_work_map_entry,
|
||||
latest_repo_work_gate,
|
||||
latest_repo_work_blocker,
|
||||
latest_repo_work_next_safe_move,
|
||||
latest_repo_work_public_proof,
|
||||
latest_idunn_deployment_receipt,
|
||||
latest_idunn_aftercare_audit_receipt,
|
||||
topology_report,
|
||||
daemon_report,
|
||||
surface_report,
|
||||
|
|
@ -6660,6 +6801,114 @@ fn receipt_directory_report(
|
|||
private_state_exposed: false,
|
||||
},
|
||||
);
|
||||
push_receipt_directory_row(
|
||||
&mut rows,
|
||||
&mut tui_rows,
|
||||
ReceiptDirectoryRow {
|
||||
family: "idunn-deployment".to_string(),
|
||||
owner: "Idunn".to_string(),
|
||||
document_kind: "gamecult.idunn.deployment_receipt.v0".to_string(),
|
||||
latest_id: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.receipt_id.clone())
|
||||
.unwrap_or_else(|| "missing".to_string()),
|
||||
status: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.status.clone())
|
||||
.unwrap_or_else(|| "missing".to_string()),
|
||||
route: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.watched_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
service_id: "repo-deployment".to_string(),
|
||||
service_route: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.result_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(),
|
||||
artifact_ref: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.result_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
artifact_status: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| {
|
||||
if receipt.result_ref == "none" {
|
||||
"none".to_string()
|
||||
} else {
|
||||
"external-ref".to_string()
|
||||
}
|
||||
})
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
artifact_sha256: "none".to_string(),
|
||||
present: context.latest_idunn_deployment_receipt.is_some(),
|
||||
private_state_exposed: context
|
||||
.latest_idunn_deployment_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.private_state_exposed)
|
||||
.unwrap_or(false),
|
||||
},
|
||||
);
|
||||
push_receipt_directory_row(
|
||||
&mut rows,
|
||||
&mut tui_rows,
|
||||
ReceiptDirectoryRow {
|
||||
family: "idunn-aftercare".to_string(),
|
||||
owner: "Idunn".to_string(),
|
||||
document_kind: "gamecult.idunn.deployment_aftercare_audit.v0".to_string(),
|
||||
latest_id: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.receipt_id.clone())
|
||||
.unwrap_or_else(|| "missing".to_string()),
|
||||
status: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.status.clone())
|
||||
.unwrap_or_else(|| "missing".to_string()),
|
||||
route: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.checked_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
service_id: "repo-deployment".to_string(),
|
||||
service_route: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.audit_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
follow_up_command: DIRECT_IDUNN_DEPLOYMENT_AFTERCARE_AUDIT_COMMAND.to_string(),
|
||||
artifact_ref: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.audit_ref.clone())
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
artifact_status: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| {
|
||||
if receipt.audit_ref == "none" {
|
||||
"none".to_string()
|
||||
} else {
|
||||
"external-ref".to_string()
|
||||
}
|
||||
})
|
||||
.unwrap_or_else(|| "none".to_string()),
|
||||
artifact_sha256: "none".to_string(),
|
||||
present: context.latest_idunn_aftercare_audit_receipt.is_some(),
|
||||
private_state_exposed: context
|
||||
.latest_idunn_aftercare_audit_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.private_state_exposed)
|
||||
.unwrap_or(false),
|
||||
},
|
||||
);
|
||||
for row in service_lifecycle_receipt_directory_rows(
|
||||
lifecycle_receipts,
|
||||
context.latest_daemon_service_lifecycle_receipt.as_ref(),
|
||||
|
|
|
|||
|
|
@ -2190,6 +2190,9 @@ pub struct EpiphanyLocalVerseContext {
|
|||
pub latest_daemon_scheduler_receipt: Option<EpiphanyCultMeshDaemonSchedulerReceiptEntry>,
|
||||
pub latest_daemon_service_lifecycle_receipt:
|
||||
Option<EpiphanyCultMeshDaemonServiceLifecycleReceiptEntry>,
|
||||
pub latest_idunn_deployment_receipt: Option<EpiphanyCultMeshIdunnDeploymentReceiptEntry>,
|
||||
pub latest_idunn_aftercare_audit_receipt:
|
||||
Option<EpiphanyCultMeshIdunnAftercareAuditReceiptEntry>,
|
||||
pub swarm_brake: Option<EpiphanyCultMeshSwarmBrakeEntry>,
|
||||
pub latest_persona_speech_audit: Option<EpiphanyCultMeshPersonaSpeechAuditEntry>,
|
||||
pub daemon_tool_capabilities: Vec<EpiphanyCultMeshDaemonToolCapabilityEntry>,
|
||||
|
|
@ -5055,6 +5058,10 @@ pub fn query_epiphany_local_verse_context(
|
|||
.get(EPIPHANY_CULTMESH_DAEMON_SCHEDULER_RECEIPT_LATEST_KEY)?,
|
||||
latest_daemon_service_lifecycle_receipt: node
|
||||
.get(EPIPHANY_CULTMESH_DAEMON_SERVICE_LIFECYCLE_RECEIPT_LATEST_KEY)?,
|
||||
latest_idunn_deployment_receipt: node
|
||||
.get(EPIPHANY_CULTMESH_IDUNN_DEPLOYMENT_RECEIPT_LATEST_KEY)?,
|
||||
latest_idunn_aftercare_audit_receipt: node
|
||||
.get(EPIPHANY_CULTMESH_IDUNN_AFTERCARE_AUDIT_RECEIPT_LATEST_KEY)?,
|
||||
swarm_brake: node.get(EPIPHANY_CULTMESH_SWARM_BRAKE_KEY)?,
|
||||
latest_persona_speech_audit: node
|
||||
.get(EPIPHANY_CULTMESH_PERSONA_SPEECH_AUDIT_LATEST_KEY)?,
|
||||
|
|
|
|||
|
|
@ -822,6 +822,18 @@ CultMesh receipt-ref ingestion path with
|
|||
`idunnAftercareAuditReceiptSource=cultmesh`, `deploymentComplete=true`, and
|
||||
`privateStateExposed=false`.
|
||||
|
||||
Gjallar/Odin now expose those Idunn proof coordinates as sight, not authority.
|
||||
`epiphany-verse-query gjallar`, `swarm-overview`, `swarm-triage`, and
|
||||
`receipt-directory` publish latest Idunn deployment and aftercare receipts as
|
||||
compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows with owner
|
||||
`Idunn`, watched or checked ref, result ref, deployment/aftercare ids, a
|
||||
follow-up readback command, and `privateStateExposed=false`. Smoke
|
||||
`.epiphany-smoke\repo-deployment-config-family-20260620-223203` proved
|
||||
`gjallarIdunnDeploymentReceiptCount=2` with latest deployment receipt
|
||||
`fixture-idunn-deployment` and latest aftercare receipt
|
||||
`fixture-idunn-aftercare` while keeping deployment execution behind explicit
|
||||
operator `git push` and Idunn's watcher.
|
||||
|
||||
### Landed Work Run Gate
|
||||
|
||||
The sixth front door exists as native Rust:
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- 2026-06-20: `epiphany-work deployment-config-audit` is live as the non-mutating Idunn handoff readback for repo deployment config. It reads `.epiphany/deployment.toml`, writes `epiphany.repo_deployment_config_audit.v0`, reports `ready-for-idunn-review` only when the disabled git-push Idunn trigger, CultMesh intent/receipt/aftercare contracts, required receipts, and authority seals are present, and always keeps execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority false. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-213042` proved the audit beside the `repo.deployment_config` close path with `daemonOwnsExecution=true`, `readyForIdunnReview=true`, and `privateStateExposed=false`.
|
||||
- 2026-06-20: `epiphany-work deployment-execution-runbook` is live as the explicit operator-owned git-push handoff for Idunn deployment. It requires the deployment config audit to pass, writes `.epiphany/work/idunn-deployment/idunn-git-push-runbook.ps1`, emits `epiphany.repo_deployment_execution_runbook.v0`, reports `ready-for-operator-git-push`, includes the exact `git push origin HEAD:refs/heads/main` route, runbook SHA-256, and required Idunn deployment/aftercare receipt contracts, and marks `requiresExplicitOperatorAuthority=true` plus `mutatesRemoteWhenRun=true` while keeping execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority false for the repo agent. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-214109` proved the runbook with `deploymentExecutionRunbookStatus=ready-for-operator-git-push`, SHA-256 `57560eda912b6e5c15f97acf53500534bb3bcf739098f329add3d88e5a9cd1d3`, and `privateStateExposed=false`.
|
||||
- 2026-06-20: `epiphany-work deployment-aftercare-audit` is live as the post-operator Idunn receipt ingestion mouth, and now reads sealed Idunn receipt projections from repo-local CultMesh refs. It reads the deployment runbook receipt plus `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0` via `--local-verse-store`, `--idunn-deployment-receipt-ref`, and `--aftercare-audit-receipt-ref`, emits `epiphany.repo_deployment_aftercare_audit.v0`, reports `complete` only when both Idunn receipts have successful statuses and private-state seals, and remains non-mutating with deployment/SSH/git-push/service/Hands/publication/merge authority false. The older explicit receipt-file flags remain compatibility reliquaries. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-221205` proved the CultMesh ref path with `idunnDeploymentReceiptSource=cultmesh`, `idunnAftercareAuditReceiptSource=cultmesh`, `deploymentAftercareAuditStatus=complete`, `deploymentComplete=true`, and `privateStateExposed=false`.
|
||||
- 2026-06-20: Gjallar/Odin sight now exposes Idunn deployment proof coordinates without taking over deployment. `EpiphanyLocalVerseContext`, `receipt-directory`, `swarm-overview`, `swarm-triage`, and `gjallar` include compact `idunnDeploymentReceiptRows` / `IDUNN-DEPLOYMENT` rows for latest `gamecult.idunn.deployment_receipt.v0` and `gamecult.idunn.deployment_aftercare_audit.v0`, carrying owner `Idunn`, watched/checked refs, result refs, deployment/aftercare ids, follow-up readback command, and private-state seal. Smoke `.epiphany-smoke\repo-deployment-config-family-20260620-223203` proved the CultMesh aftercare path plus Gjallar readback with `gjallarIdunnDeploymentReceiptCount=2`, latest deployment receipt `fixture-idunn-deployment`, latest aftercare receipt `fixture-idunn-aftercare`, and `privateStateExposed=false`.
|
||||
- 2026-06-20: Deeper model-authored closure review is now live. `epiphany-work close` accepts `--closure-model-verdict passed|failed|needs-work|blocked`, `--closure-model-finding`, and `--require-closure-model-verdict`; the close review embeds `epiphany.repo_work_model_closure_review.v0` under `modelingReview.closureReview`, records reviewed inputs and gate enforcement, and Soul refuses closure when a supplied or required model verdict does not pass. Focused smoke `.epiphany-smoke\closure-model-gate-20260620-135103` created a disposable repo, ran two `repo.status_section` items through public front doors, closed one with required model verdict `passed`, and blocked one with `needs-work` while `familyAssertions.status=passed`, `pathScopeMatched=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: Mind adoption/interpreter depth now has a concrete interpretation packet. `epiphany-work adopt` writes `epiphany.repo_work_mind_adoption_decision.v0` before the main adoption receipt, embeds `epiphany.repo_work_mind_interpretation.v0` with input summary, safe-family recognition, requested-path classification, allowed branch-local Hands transition, and forbidden durable-state/publication/service/private transitions, then records Self presentation, Mind evidence review, safe-family requirement, branch-local scope, Bifrost publication gate, Soul closure requirement, and no Hands/durable-state/publication/merge/service/cross-body/private authority inside the Mind decision; the main adoption receipt cites that decision before granting branch-local Hands authority. Focused smoke `.epiphany-smoke\repo-planning-facets-20260620-175503` proves model-authored planning facets survive into Imagination, plan derivation, Mind interpretation, Mind decision, and adoption, while close still passes Soul/family/path checks with `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics beyond the first Mind interpretation packet, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: `repo-manifest` is now the next non-planning safe family. `epiphany-work derive-plan --action-family repo-manifest` lowers accepted pressure into a structured `epiphany.toml` Body manifest with safe family `repo.body_manifest`, body domain, private/local/public Verse ids, Eve surface id, receipt-required capability hints, arbitrary shell sealed false, and private-state seals. Soul closure assertions now inspect the committed manifest for schema, safe family, summary, body domain, Verse ids, Eve surface, receipt requirement, no arbitrary shell, and private-state seals. Focused smoke `.epiphany-smoke\repo-manifest-family-20260620-141552` ran a disposable repo through init -> online -> accept -> repo-manifest derive-plan -> tick run/adopt/execute/close; Hands committed only `epiphany.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, additional useful repo-owned config/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in a new issue