Name provider mirrors by arrival order

This commit is contained in:
Meta Vens 2026-07-13 02:54:24 +01:00
commit a9a8a00367
7 changed files with 62 additions and 45 deletions

View file

@ -45,6 +45,13 @@ use epiphany_core::epiphany_cultmesh_daemon_tool_invocation_intent_from_capabili
use epiphany_core::epiphany_cultmesh_eve_connection_intent_from_advertisement;
use epiphany_core::epiphany_service_execution_audit_report;
use epiphany_core::load_agent_state_soa_entry;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_github_publication_receipt;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_metrics_receipt;
use epiphany_core::load_arrival_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt;
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;
@ -59,13 +66,6 @@ use epiphany_core::load_epiphany_cultmesh_repo_work_readiness_reports;
use epiphany_core::load_epiphany_cultmesh_status;
use epiphany_core::load_epiphany_cultmesh_swarm_brake;
use epiphany_core::load_latest_epiphany_cultmesh_agent_state_soa_summary;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_collaboration_feedback;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_github_publication_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_metrics_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt;
use epiphany_core::load_latest_epiphany_cultmesh_daemon_tool_invocation_intent;
use epiphany_core::load_latest_epiphany_cultmesh_eve_connection_intent;
@ -921,7 +921,7 @@ fn run_cli() -> Result<()> {
intent.clone(),
)?;
let latest_intent =
load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
&args.store,
args.runtime_id.clone(),
)?;
@ -1240,10 +1240,11 @@ fn run_cli() -> Result<()> {
args.runtime_id.clone(),
feedback.clone(),
)?;
let latest_feedback = load_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
&args.store,
args.runtime_id.clone(),
)?;
let latest_feedback =
load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
&args.store,
args.runtime_id.clone(),
)?;
if latest_feedback
.as_ref()
.map(|feedback| feedback.feedback_id.as_str())
@ -7627,33 +7628,35 @@ fn service_lifecycle_receipt_sort_key(
}
fn load_bifrost_ledger_report(args: &Args) -> Result<BifrostLedgerReport> {
let latest_intent = load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
&args.store,
args.runtime_id.clone(),
)?;
let latest_publication = load_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_github = load_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
let latest_intent =
load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
&args.store,
args.runtime_id.clone(),
)?;
let latest_publication =
load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_github = load_arrival_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_public_proof_publication =
load_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
load_arrival_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_artifact_acceptance =
load_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt(
load_arrival_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_metrics = load_latest_epiphany_cultmesh_bifrost_metrics_receipt(
let latest_metrics = load_arrival_latest_epiphany_cultmesh_bifrost_metrics_receipt(
&args.store,
args.runtime_id.clone(),
)?;
let latest_feedback = load_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
let latest_feedback = load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
&args.store,
args.runtime_id.clone(),
)?;

View file

@ -4505,7 +4505,7 @@ pub fn write_epiphany_cultmesh_bifrost_body_change_publication_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostBodyChangePublicationIntentEntry>> {
@ -4513,7 +4513,7 @@ pub fn load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
node.get(EPIPHANY_CULTMESH_BIFROST_BODY_CHANGE_PUBLICATION_INTENT_LATEST_KEY)
}
pub fn load_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostBodyChangePublicationReceiptEntry>> {
@ -4576,7 +4576,7 @@ pub fn write_epiphany_cultmesh_bifrost_github_publication_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostGithubPublicationReceiptEntry>> {
@ -4642,7 +4642,7 @@ pub fn write_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostPublicProofPublicationReceiptEntry>> {
@ -4705,7 +4705,7 @@ pub fn write_epiphany_cultmesh_bifrost_artifact_acceptance_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostArtifactAcceptanceReceiptEntry>> {
@ -4766,7 +4766,7 @@ pub fn write_epiphany_cultmesh_bifrost_metrics_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_metrics_receipt(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_metrics_receipt(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostMetricsReceiptEntry>> {
@ -4870,7 +4870,7 @@ pub fn write_epiphany_cultmesh_imagination_consensus_receipt(
Ok(written)
}
pub fn load_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
pub fn load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
store_path: impl AsRef<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshBifrostCollaborationFeedbackEntry>> {
@ -9461,14 +9461,14 @@ mod tests {
)?;
assert_eq!(
load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent(
&store,
"epiphany-test"
)?,
Some(intent.clone())
);
assert_eq!(
load_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt(
&store,
"epiphany-test"
)?,
@ -9599,7 +9599,7 @@ mod tests {
)?;
assert_eq!(
load_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
load_arrival_latest_epiphany_cultmesh_bifrost_github_publication_receipt(
&store,
"epiphany-test"
)?,
@ -9744,7 +9744,7 @@ mod tests {
)?;
assert_eq!(
load_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
load_arrival_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt(
&store,
"epiphany-test"
)?,
@ -9870,7 +9870,10 @@ mod tests {
)?;
assert_eq!(
load_latest_epiphany_cultmesh_bifrost_collaboration_feedback(&store, "epiphany-test")?,
load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback(
&store,
"epiphany-test"
)?,
Some(feedback)
);
assert_eq!(

View file

@ -406,6 +406,13 @@ pub use cultmesh_integration::epiphany_cultmesh_substrate_gate_contracts;
pub use cultmesh_integration::epiphany_cultmesh_verse_policies;
pub use cultmesh_integration::epiphany_local_verse_work_loop_summary;
pub use cultmesh_integration::epiphany_service_execution_audit_report;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_intent;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_github_publication_receipt;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_metrics_receipt;
pub use cultmesh_integration::load_arrival_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt;
pub use cultmesh_integration::load_epiphany_cultmesh_cluster_topology;
pub use cultmesh_integration::load_epiphany_cultmesh_daemon_liveness;
pub use cultmesh_integration::load_epiphany_cultmesh_daemon_restart_policy;
@ -426,13 +433,6 @@ pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_readiness_reports
pub use cultmesh_integration::load_epiphany_cultmesh_status;
pub use cultmesh_integration::load_epiphany_cultmesh_swarm_brake;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_agent_state_soa_summary;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_artifact_acceptance_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_body_change_publication_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_collaboration_feedback;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_github_publication_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_metrics_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_bifrost_public_proof_publication_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_coordinator_run_receipt;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_daemon_poke_intent;
pub use cultmesh_integration::load_latest_epiphany_cultmesh_daemon_poke_receipt;