From bee0c7dd095834a16aa1ad2b6ea8b4315925aa3b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 01:01:29 +0100 Subject: [PATCH] Delete writerless readiness review authority --- epiphany-core/src/bin/epiphany-verse-query.rs | 282 +----------------- epiphany-core/src/cultmesh_integration.rs | 96 ------ epiphany-core/src/lib.rs | 6 - ...onceptual-substitution-audit-2026-07-12.md | 11 + notes/fresh-workspace-handoff.md | 3 + state/ledgers.msgpack | Bin 452979 -> 453314 bytes state/map.yaml | 2 +- 7 files changed, 17 insertions(+), 383 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index e496fb4d..69cbfeb5 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -30,7 +30,6 @@ use epiphany_core::EpiphanyCultMeshRepoWorkMapEntry; use epiphany_core::EpiphanyCultMeshRepoWorkOverviewEntry; use epiphany_core::EpiphanyCultMeshRepoWorkPublicProofEntry; use epiphany_core::EpiphanyCultMeshRepoWorkReadinessEntry; -use epiphany_core::EpiphanyCultMeshRepoWorkReadinessReviewEntry; use epiphany_core::EpiphanyCultMeshSwarmBrakeEntry; use epiphany_core::EpiphanyCultMeshWorkLoopTelemetryEntry; use epiphany_core::EpiphanyLocalVerseContext; @@ -57,7 +56,6 @@ 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; use epiphany_core::load_epiphany_cultmesh_repo_work_readiness_reports; -use epiphany_core::load_epiphany_cultmesh_repo_work_readiness_reviews; 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; @@ -79,7 +77,6 @@ use epiphany_core::load_latest_epiphany_cultmesh_repo_work_map_entry; 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::observe_native_process; use epiphany_core::open_epiphany_cultmesh_node; use epiphany_core::publish_epiphany_cultmesh_provider_state; @@ -266,16 +263,7 @@ fn run_cli() -> Result<()> { &args.store, args.runtime_id.clone(), )?; - let latest_repo_work_readiness_review = - load_latest_epiphany_cultmesh_repo_work_readiness_review( - &args.store, - args.runtime_id.clone(), - )?; - let report = receipt_directory_report( - &context, - &lifecycle_receipts, - latest_repo_work_readiness_review.as_ref(), - ); + let report = receipt_directory_report(&context, &lifecycle_receipts); println!( "{}", serde_json::to_string_pretty(&json!({ @@ -1125,7 +1113,6 @@ fn run_cli() -> Result<()> { "latestBifrostPublicProofPublicationReceipt": report.latest_public_proof_publication_receipt_id, "latestBifrostArtifactAcceptanceReceipt": report.latest_artifact_acceptance_receipt_id, "latestBifrostMetricsReceipt": report.latest_metrics_receipt_id, - "latestRepoWorkReadinessReview": report.latest_readiness_review_id, "latestBifrostCollaborationFeedback": report.latest_feedback_id, "latestImaginationConsensusReceipt": report.latest_consensus_receipt_id, "accountingTuiRows": report.accounting_tui_rows, @@ -2652,7 +2639,7 @@ fn run_cli() -> Result<()> { &args.store, args.runtime_id.clone(), )?; - let receipt_directory = receipt_directory_report(&context, &lifecycle_receipts, None); + let receipt_directory = receipt_directory_report(&context, &lifecycle_receipts); if receipt_directory.private_state_exposed || !receipt_directory.attention_route_rows.is_empty() || receipt_directory.artifact_none_count != receipt_directory.rows.len() @@ -3441,8 +3428,6 @@ struct SwarmOverviewReport { repo_work_overview_tui_rows: Vec, repo_work_readiness_rows: Vec, repo_work_readiness_tui_rows: Vec, - repo_work_readiness_review_rows: Vec, - repo_work_readiness_review_tui_rows: Vec, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, idunn_deployment_receipt_rows: Vec, @@ -3453,7 +3438,6 @@ struct SwarmOverviewReport { latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_readiness: Option, - latest_repo_work_readiness_review: Option, latest_repo_work_public_proof: Option, latest_idunn_deployment_receipt: Option, latest_idunn_aftercare_audit_receipt: Option, @@ -3678,32 +3662,6 @@ struct RepoWorkReadinessRow { private_state_exposed: bool, } -#[derive(Clone, Serialize)] -#[serde(rename_all = "camelCase")] -struct RepoWorkReadinessReviewRow { - review_id: String, - workspace: String, - item: String, - status: String, - readiness_receipt_ref: String, - readiness_review_receipt_ref: String, - missing_required_count: u32, - satisfied_row_count: u32, - maintainer_review_receipt: String, - soul_review_receipt: String, - mind_review_receipt: String, - bifrost_review_receipt: String, - readiness_approval_authorized: bool, - durable_state_commit_authorized: bool, - publication_authorized: bool, - merge_authorized: bool, - upstream_sync_authorized: bool, - deployment_authority: bool, - service_lifecycle_authority: bool, - hands_action_authorized: bool, - private_state_exposed: bool, -} - #[derive(Clone, Serialize)] #[serde(rename_all = "camelCase")] struct IdunnDeploymentReceiptRow { @@ -3836,9 +3794,6 @@ struct SwarmOverviewOutput { repo_work_readiness_count: usize, repo_work_readiness_rows: Vec, repo_work_readiness_tui_rows: Vec, - repo_work_readiness_review_count: usize, - repo_work_readiness_review_rows: Vec, - repo_work_readiness_review_tui_rows: Vec, repo_work_public_proof_count: usize, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, @@ -3851,7 +3806,6 @@ struct SwarmOverviewOutput { latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_readiness: Option, - latest_repo_work_readiness_review: Option, latest_repo_work_public_proof: Option, latest_idunn_deployment_receipt: Option, latest_idunn_aftercare_audit_receipt: Option, @@ -3948,9 +3902,6 @@ impl SwarmOverviewOutput { repo_work_readiness_count: report.repo_work_readiness_rows.len(), repo_work_readiness_rows: report.repo_work_readiness_rows, repo_work_readiness_tui_rows: report.repo_work_readiness_tui_rows, - repo_work_readiness_review_count: report.repo_work_readiness_review_rows.len(), - repo_work_readiness_review_rows: report.repo_work_readiness_review_rows, - repo_work_readiness_review_tui_rows: report.repo_work_readiness_review_tui_rows, 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, @@ -3963,7 +3914,6 @@ impl SwarmOverviewOutput { 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_readiness: report.latest_repo_work_readiness, - latest_repo_work_readiness_review: report.latest_repo_work_readiness_review, 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, @@ -4052,9 +4002,6 @@ struct SwarmTriageOutput { repo_work_readiness_count: usize, repo_work_readiness_rows: Vec, repo_work_readiness_tui_rows: Vec, - repo_work_readiness_review_count: usize, - repo_work_readiness_review_rows: Vec, - repo_work_readiness_review_tui_rows: Vec, repo_work_public_proof_count: usize, repo_work_public_proof_rows: Vec, repo_work_public_proof_tui_rows: Vec, @@ -4067,7 +4014,6 @@ struct SwarmTriageOutput { latest_repo_work_blocker: Option, latest_repo_work_next_safe_move: Option, latest_repo_work_readiness: Option, - latest_repo_work_readiness_review: Option, latest_repo_work_public_proof: Option, latest_idunn_deployment_receipt: Option, latest_idunn_aftercare_audit_receipt: Option, @@ -4159,9 +4105,6 @@ impl SwarmTriageOutput { repo_work_readiness_count: report.repo_work_readiness_rows.len(), repo_work_readiness_rows: report.repo_work_readiness_rows, repo_work_readiness_tui_rows: report.repo_work_readiness_tui_rows, - repo_work_readiness_review_count: report.repo_work_readiness_review_rows.len(), - repo_work_readiness_review_rows: report.repo_work_readiness_review_rows, - repo_work_readiness_review_tui_rows: report.repo_work_readiness_review_tui_rows, 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, @@ -4174,7 +4117,6 @@ impl SwarmTriageOutput { 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_readiness: report.latest_repo_work_readiness, - latest_repo_work_readiness_review: report.latest_repo_work_readiness_review, 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, @@ -4225,7 +4167,6 @@ struct BifrostLedgerReport { latest_public_proof_publication_receipt_id: Option, latest_artifact_acceptance_receipt_id: Option, latest_metrics_receipt_id: Option, - latest_readiness_review_id: Option, latest_feedback_id: Option, latest_consensus_receipt_id: Option, repo_work_accounting_request_count: usize, @@ -5472,69 +5413,6 @@ fn repo_work_readiness_tui_row(row: &RepoWorkReadinessRow) -> String { ) } -fn repo_work_readiness_review_rows( - reviews: &[EpiphanyCultMeshRepoWorkReadinessReviewEntry], -) -> (Vec, Vec) { - let rows = reviews - .iter() - .map(repo_work_readiness_review_row) - .collect::>(); - let tui_rows = rows - .iter() - .map(repo_work_readiness_review_tui_row) - .collect::>(); - (rows, tui_rows) -} - -fn repo_work_readiness_review_row( - review: &EpiphanyCultMeshRepoWorkReadinessReviewEntry, -) -> RepoWorkReadinessReviewRow { - RepoWorkReadinessReviewRow { - review_id: review.review_id.clone(), - workspace: review.workspace.clone(), - item: review.item.clone(), - status: review.status.clone(), - readiness_receipt_ref: review.readiness_receipt_ref.clone(), - readiness_review_receipt_ref: review.readiness_review_receipt_ref.clone(), - missing_required_count: review.missing_required_count, - satisfied_row_count: review.satisfied_row_count, - maintainer_review_receipt: review.maintainer_review_receipt.clone(), - soul_review_receipt: review.soul_review_receipt.clone(), - mind_review_receipt: review.mind_review_receipt.clone(), - bifrost_review_receipt: review.bifrost_review_receipt.clone(), - readiness_approval_authorized: review.readiness_approval_authorized, - durable_state_commit_authorized: review.durable_state_commit_authorized, - publication_authorized: review.publication_authorized, - merge_authorized: review.merge_authorized, - upstream_sync_authorized: review.upstream_sync_authorized, - deployment_authority: review.deployment_authority, - service_lifecycle_authority: review.service_lifecycle_authority, - hands_action_authorized: review.hands_action_authorized, - private_state_exposed: review.private_state_exposed, - } -} - -fn repo_work_readiness_review_tui_row(row: &RepoWorkReadinessReviewRow) -> String { - format!( - "REPO-WORK-READINESS-REVIEW | item={} | status={} | missing={} | satisfied={} | review={} | readiness={} | approvalAuth={} | durableStateAuth={} | publicationAuth={} | mergeAuth={} | upstreamSyncAuth={} | deploymentAuth={} | serviceAuth={} | handsAuth={} | private={}", - row.item, - row.status, - row.missing_required_count, - row.satisfied_row_count, - row.readiness_review_receipt_ref, - row.readiness_receipt_ref, - row.readiness_approval_authorized, - row.durable_state_commit_authorized, - row.publication_authorized, - row.merge_authorized, - row.upstream_sync_authorized, - row.deployment_authority, - row.service_lifecycle_authority, - row.hands_action_authorized, - row.private_state_exposed - ) -} - fn idunn_deployment_receipt_rows( deployment_receipt: Option<&EpiphanyCultMeshIdunnDeploymentReceiptEntry>, aftercare_receipt: Option<&EpiphanyCultMeshIdunnAftercareAuditReceiptEntry>, @@ -6233,34 +6111,6 @@ fn load_repo_work_readiness_reports( Ok((latest_readiness, reports)) } -fn load_repo_work_readiness_reviews( - args: &Args, -) -> Result<( - Option, - Vec, -)> { - let latest_review = load_latest_epiphany_cultmesh_repo_work_readiness_review( - &args.store, - args.runtime_id.clone(), - )?; - let mut reviews = - load_epiphany_cultmesh_repo_work_readiness_reviews(&args.store, args.runtime_id.clone())?; - if let Some(latest) = latest_review.as_ref() { - if !reviews - .iter() - .any(|review| review.review_id == latest.review_id) - { - reviews.push(latest.clone()); - reviews.sort_by(|a, b| { - b.generated_at - .cmp(&a.generated_at) - .then_with(|| a.review_id.cmp(&b.review_id)) - }); - } - } - Ok((latest_review, reviews)) -} - fn load_swarm_overview_report(args: &Args) -> Result { let topology = load_epiphany_cultmesh_cluster_topology(&args.store, args.runtime_id.clone())?; let topology_report = cluster_topology_report(&topology); @@ -6272,8 +6122,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { load_repo_work_public_proofs(args)?; let (latest_repo_work_readiness, repo_work_readiness_reports) = load_repo_work_readiness_reports(args)?; - let (latest_repo_work_readiness_review, repo_work_readiness_reviews) = - load_repo_work_readiness_reviews(args)?; let latest_idunn_deployment_receipt = load_latest_epiphany_cultmesh_idunn_deployment_receipt( &args.store, args.runtime_id.clone(), @@ -6527,8 +6375,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { repo_work_public_proof_rows(&repo_work_public_proofs); let (repo_work_readiness_rows, repo_work_readiness_tui_rows) = repo_work_readiness_rows(&repo_work_readiness_reports); - let (repo_work_readiness_review_rows, repo_work_readiness_review_tui_rows) = - repo_work_readiness_review_rows(&repo_work_readiness_reviews); let (idunn_deployment_receipt_rows, idunn_deployment_receipt_tui_rows) = idunn_deployment_receipt_rows( latest_idunn_deployment_receipt.as_ref(), @@ -6587,9 +6433,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { || repo_work_readiness_reports .iter() .any(|report| report.private_state_exposed) - || repo_work_readiness_reviews - .iter() - .any(|review| review.private_state_exposed) || idunn_deployment_receipt_rows .iter() .any(|row| row.private_state_exposed) @@ -6618,9 +6461,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { let latest_repo_work_readiness = latest_repo_work_readiness .as_ref() .map(|report| report.readiness_id.clone()); - let latest_repo_work_readiness_review = latest_repo_work_readiness_review - .as_ref() - .map(|review| review.review_id.clone()); let latest_idunn_deployment_receipt = latest_idunn_deployment_receipt .as_ref() .map(|receipt| receipt.receipt_id.clone()); @@ -6671,8 +6511,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { repo_work_overview_tui_rows, repo_work_readiness_rows, repo_work_readiness_tui_rows, - repo_work_readiness_review_rows, - repo_work_readiness_review_tui_rows, repo_work_public_proof_rows, repo_work_public_proof_tui_rows, idunn_deployment_receipt_rows, @@ -6683,7 +6521,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { latest_repo_work_blocker, latest_repo_work_next_safe_move, latest_repo_work_readiness, - latest_repo_work_readiness_review, latest_repo_work_public_proof, latest_idunn_deployment_receipt, latest_idunn_aftercare_audit_receipt, @@ -6699,7 +6536,6 @@ fn load_swarm_overview_report(args: &Args) -> Result { fn receipt_directory_report( context: &EpiphanyLocalVerseContext, lifecycle_receipts: &[EpiphanyCultMeshDaemonServiceLifecycleReceiptEntry], - latest_repo_work_readiness_review: Option<&EpiphanyCultMeshRepoWorkReadinessReviewEntry>, ) -> ReceiptDirectoryReport { let mut rows = Vec::new(); let mut tui_rows = Vec::new(); @@ -7279,42 +7115,6 @@ fn receipt_directory_report( .unwrap_or(false), }, ); - let readiness_review_artifact_ref = latest_repo_work_readiness_review - .map(|review| review.readiness_review_receipt_ref.clone()) - .unwrap_or_else(|| "none".to_string()); - let readiness_review_artifact_status = - operator_artifact_status(&readiness_review_artifact_ref).to_string(); - push_receipt_directory_row( - &mut rows, - &mut tui_rows, - ReceiptDirectoryRow { - family: "repo-work-readiness-review".to_string(), - owner: "Maintainer/Soul/Mind/Bifrost".to_string(), - document_kind: "epiphany.cultmesh.repo_work_readiness_review.v0".to_string(), - latest_id: latest_repo_work_readiness_review - .map(|review| review.review_id.clone()) - .unwrap_or_else(|| "missing".to_string()), - status: latest_repo_work_readiness_review - .map(|review| review.status.clone()) - .unwrap_or_else(|| "missing".to_string()), - route: latest_repo_work_readiness_review - .map(|review| review.readiness_receipt_ref.clone()) - .unwrap_or_else(|| "none".to_string()), - service_id: "none".to_string(), - service_route: "none".to_string(), - follow_up_command: WRAPPER_RECEIPT_DIRECTORY_COMMAND.to_string(), - artifact_ref: readiness_review_artifact_ref.clone(), - artifact_status: readiness_review_artifact_status.clone(), - artifact_sha256: operator_artifact_sha256( - &readiness_review_artifact_ref, - &readiness_review_artifact_status, - ), - present: latest_repo_work_readiness_review.is_some(), - private_state_exposed: latest_repo_work_readiness_review - .map(|review| review.private_state_exposed) - .unwrap_or(false), - }, - ); for row in service_lifecycle_receipt_directory_rows( lifecycle_receipts, context.latest_daemon_service_lifecycle_receipt.as_ref(), @@ -7833,10 +7633,6 @@ fn load_bifrost_ledger_report(args: &Args) -> Result { &args.store, args.runtime_id.clone(), )?; - let latest_readiness_review = load_latest_epiphany_cultmesh_repo_work_readiness_review( - &args.store, - args.runtime_id.clone(), - )?; let latest_feedback = load_latest_epiphany_cultmesh_bifrost_collaboration_feedback( &args.store, args.runtime_id.clone(), @@ -7854,7 +7650,6 @@ fn load_bifrost_ledger_report(args: &Args) -> Result { latest_public_proof_publication.as_ref(), latest_artifact_acceptance.as_ref(), latest_metrics.as_ref(), - latest_readiness_review.as_ref(), latest_feedback.as_ref(), latest_consensus.as_ref(), &repo_work_map_entries, @@ -7870,7 +7665,6 @@ fn bifrost_ledger_report( >, latest_artifact_acceptance: Option<&EpiphanyCultMeshBifrostArtifactAcceptanceReceiptEntry>, latest_metrics: Option<&EpiphanyCultMeshBifrostMetricsReceiptEntry>, - latest_readiness_review: Option<&EpiphanyCultMeshRepoWorkReadinessReviewEntry>, latest_feedback: Option<&EpiphanyCultMeshBifrostCollaborationFeedbackEntry>, latest_consensus: Option<&EpiphanyCultMeshImaginationConsensusReceiptEntry>, repo_work_map_entries: &[EpiphanyCultMeshRepoWorkMapEntry], @@ -8035,7 +7829,6 @@ fn bifrost_ledger_report( latest_public_proof_publication, latest_artifact_acceptance, latest_metrics, - latest_readiness_review, latest_feedback, latest_consensus, repo_work_map_entries, @@ -8080,7 +7873,6 @@ fn bifrost_ledger_report( latest_artifact_acceptance_receipt_id: latest_artifact_acceptance .map(|receipt| receipt.receipt_id.clone()), latest_metrics_receipt_id: latest_metrics.map(|receipt| receipt.receipt_id.clone()), - latest_readiness_review_id: latest_readiness_review.map(|review| review.review_id.clone()), latest_feedback_id: latest_feedback.map(|feedback| feedback.feedback_id.clone()), latest_consensus_receipt_id: latest_consensus.map(|receipt| receipt.receipt_id.clone()), repo_work_accounting_request_count: repo_work_map_entries @@ -8125,7 +7917,6 @@ fn bifrost_accounting_rows( >, latest_artifact_acceptance: Option<&EpiphanyCultMeshBifrostArtifactAcceptanceReceiptEntry>, latest_metrics: Option<&EpiphanyCultMeshBifrostMetricsReceiptEntry>, - latest_readiness_review: Option<&EpiphanyCultMeshRepoWorkReadinessReviewEntry>, latest_feedback: Option<&EpiphanyCultMeshBifrostCollaborationFeedbackEntry>, latest_consensus: Option<&EpiphanyCultMeshImaginationConsensusReceiptEntry>, repo_work_map_entries: &[EpiphanyCultMeshRepoWorkMapEntry], @@ -8243,75 +8034,6 @@ fn bifrost_accounting_rows( }, ); - let readiness_private = latest_readiness_review - .map(|review| review.private_state_exposed) - .unwrap_or(false); - let readiness_review_count = latest_readiness_review - .map(|review| { - [ - &review.maintainer_review_receipt, - &review.soul_review_receipt, - &review.mind_review_receipt, - &review.bifrost_review_receipt, - ] - .iter() - .filter(|receipt| !receipt.trim().is_empty() && receipt.as_str() != "none") - .count() - }) - .unwrap_or(0); - let readiness_artifact_present = latest_readiness_review - .map(|review| operator_artifact_status(&review.readiness_review_receipt_ref) == "present") - .unwrap_or(false); - let readiness_closed = latest_readiness_review - .map(|review| { - review.status == "readiness-approved" - && review.missing_required_count == 0 - && review.readiness_approval_authorized - && !review.durable_state_commit_authorized - && !review.publication_authorized - && !review.merge_authorized - && !review.upstream_sync_authorized - && !review.deployment_authority - && !review.service_lifecycle_authority - && !review.hands_action_authorized - && readiness_review_count == 4 - && readiness_artifact_present - && !readiness_private - }) - .unwrap_or(false); - push_bifrost_accounting_row( - &mut rows, - &mut tui_rows, - BifrostAccountingRow { - lane: "repo-work-readiness-review".to_string(), - owner: "Maintainer/Soul/Mind/Bifrost".to_string(), - status: bifrost_accounting_status( - readiness_closed, - latest_readiness_review.is_some(), - readiness_private, - ), - closure: format!( - "review={} approval={} artifact={}", - readiness_review_count, - latest_readiness_review - .map(|review| review.status.as_str()) - .unwrap_or("missing"), - present_word(readiness_artifact_present) - ), - ledger_entry_id: "none".to_string(), - latest_receipt_id: latest_readiness_review - .map(|review| review.review_id.clone()) - .unwrap_or_else(|| "none".to_string()), - public_ref: latest_readiness_review - .map(|review| review.readiness_review_receipt_ref.clone()) - .unwrap_or_else(|| "none".to_string()), - review_receipt_count: readiness_review_count, - credit_receipt_count: 0, - public_artifact_count: usize::from(readiness_artifact_present), - private_state_exposed: readiness_private, - }, - ); - push_artifact_acceptance_accounting_row( &mut rows, &mut tui_rows, diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index ad1457dc..752232ff 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -80,12 +80,6 @@ pub const EPIPHANY_CULTMESH_REPO_WORK_READINESS_SCHEMA_VERSION: &str = "epiphany.cultmesh.repo_work_readiness.v0"; pub const EPIPHANY_CULTMESH_REPO_WORK_READINESS_LATEST_KEY: &str = "gamecult-local/repo-work-readiness/latest"; -pub const EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_TYPE: &str = - "epiphany.cultmesh.repo_work_readiness_review"; -pub const EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION: &str = - "epiphany.cultmesh.repo_work_readiness_review.v0"; -pub const EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY: &str = - "gamecult-local/repo-work-readiness-review/latest"; pub const EPIPHANY_CULTMESH_REPO_WORK_MAP_ENTRY_TYPE: &str = "epiphany.cultmesh.repo_work_map_entry"; pub const EPIPHANY_CULTMESH_REPO_WORK_MAP_ENTRY_SCHEMA_VERSION: &str = @@ -817,68 +811,6 @@ pub struct EpiphanyCultMeshRepoWorkReadinessEntry { pub notes: Vec, } -#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] -#[cultcache( - type = "epiphany.cultmesh.repo_work_readiness_review", - schema = "EpiphanyCultMeshRepoWorkReadinessReviewEntry" -)] -pub struct EpiphanyCultMeshRepoWorkReadinessReviewEntry { - #[cultcache(key = 0)] - pub schema_version: String, - #[cultcache(key = 1)] - pub runtime_id: String, - #[cultcache(key = 2)] - pub verse_id: String, - #[cultcache(key = 3)] - pub review_id: String, - #[cultcache(key = 4)] - pub generated_at: String, - #[cultcache(key = 5)] - pub workspace: String, - #[cultcache(key = 6)] - pub item: String, - #[cultcache(key = 7)] - pub status: String, - #[cultcache(key = 8)] - pub readiness_receipt_ref: String, - #[cultcache(key = 9)] - pub readiness_review_receipt_ref: String, - #[cultcache(key = 10)] - pub missing_required_count: u32, - #[cultcache(key = 11)] - pub satisfied_row_count: u32, - #[cultcache(key = 12)] - pub maintainer_review_receipt: String, - #[cultcache(key = 13)] - pub soul_review_receipt: String, - #[cultcache(key = 14)] - pub mind_review_receipt: String, - #[cultcache(key = 15)] - pub bifrost_review_receipt: String, - #[cultcache(key = 16)] - pub readiness_approval_authorized: bool, - #[cultcache(key = 17)] - pub durable_state_commit_authorized: bool, - #[cultcache(key = 18)] - pub publication_authorized: bool, - #[cultcache(key = 19)] - pub merge_authorized: bool, - #[cultcache(key = 20)] - pub upstream_sync_authorized: bool, - #[cultcache(key = 21)] - pub deployment_authority: bool, - #[cultcache(key = 22)] - pub service_lifecycle_authority: bool, - #[cultcache(key = 23)] - pub hands_action_authorized: bool, - #[cultcache(key = 24)] - pub private_state_exposed: bool, - #[cultcache(key = 25)] - pub tui_rows: Vec, - #[cultcache(key = 26)] - pub notes: Vec, -} - #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] #[cultcache( type = "epiphany.cultmesh.repo_work_map_entry", @@ -2567,7 +2499,6 @@ cultmesh_documents!(EpiphanyCultMeshDocuments { EpiphanyCultMeshAgentStateSoaSummaryEntry => EPIPHANY_CULTMESH_AGENT_STATE_SOA_SUMMARY_SCHEMA_VERSION, EpiphanyCultMeshRepoWorkOverviewEntry => EPIPHANY_CULTMESH_REPO_WORK_OVERVIEW_SCHEMA_VERSION, EpiphanyCultMeshRepoWorkReadinessEntry => EPIPHANY_CULTMESH_REPO_WORK_READINESS_SCHEMA_VERSION, - EpiphanyCultMeshRepoWorkReadinessReviewEntry => EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION, EpiphanyCultMeshRepoWorkMapEntry => EPIPHANY_CULTMESH_REPO_WORK_MAP_ENTRY_SCHEMA_VERSION, EpiphanyCultMeshRepoWorkPublicProofEntry => EPIPHANY_CULTMESH_REPO_WORK_PUBLIC_PROOF_SCHEMA_VERSION, EpiphanyCultMeshVersePolicyEntry => EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION, @@ -5507,33 +5438,6 @@ pub fn load_epiphany_cultmesh_repo_work_readiness_reports( Ok(reports) } -pub fn load_latest_epiphany_cultmesh_repo_work_readiness_review( - store_path: impl AsRef, - runtime_id: impl Into, -) -> Result> { - let node = open_epiphany_cultmesh_node(store_path, runtime_id)?; - node.get(EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY) -} - -pub fn load_epiphany_cultmesh_repo_work_readiness_reviews( - store_path: impl AsRef, - runtime_id: impl Into, -) -> Result> { - let node = open_epiphany_cultmesh_node(store_path, runtime_id)?; - let mut reviews = node - .get_all_with_keys::()? - .into_iter() - .filter(|(key, _)| key != EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY) - .map(|(_, review)| review) - .collect::>(); - reviews.sort_by(|a, b| { - b.generated_at - .cmp(&a.generated_at) - .then_with(|| a.review_id.cmp(&b.review_id)) - }); - Ok(reviews) -} - pub fn write_epiphany_cultmesh_repo_work_map_entry( store_path: impl AsRef, map_entry: EpiphanyCultMeshRepoWorkMapEntry, diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 1c554595..961cdfc2 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -283,9 +283,6 @@ pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_PUBLIC_PROOF_LATEST_KE pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_PUBLIC_PROOF_SCHEMA_VERSION; pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_PUBLIC_PROOF_TYPE; pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_LATEST_KEY; -pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY; -pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION; -pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_TYPE; pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_SCHEMA_VERSION; pub use cultmesh_integration::EPIPHANY_CULTMESH_REPO_WORK_READINESS_TYPE; pub use cultmesh_integration::EPIPHANY_CULTMESH_ROLE_REVIEW_EVENT_LATEST_KEY; @@ -352,7 +349,6 @@ pub use cultmesh_integration::EpiphanyCultMeshRepoWorkMapEntry; pub use cultmesh_integration::EpiphanyCultMeshRepoWorkOverviewEntry; pub use cultmesh_integration::EpiphanyCultMeshRepoWorkPublicProofEntry; pub use cultmesh_integration::EpiphanyCultMeshRepoWorkReadinessEntry; -pub use cultmesh_integration::EpiphanyCultMeshRepoWorkReadinessReviewEntry; pub use cultmesh_integration::EpiphanyCultMeshRoleReviewEventEntry; pub use cultmesh_integration::EpiphanyCultMeshSoulContractEntry; pub use cultmesh_integration::EpiphanyCultMeshStatusEntry; @@ -434,7 +430,6 @@ pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_map_entries; pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_overviews; pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_public_proofs; pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_readiness_reports; -pub use cultmesh_integration::load_epiphany_cultmesh_repo_work_readiness_reviews; 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; @@ -466,7 +461,6 @@ pub use cultmesh_integration::load_latest_epiphany_cultmesh_repo_work_map_entry; pub use cultmesh_integration::load_latest_epiphany_cultmesh_repo_work_overview; pub use cultmesh_integration::load_latest_epiphany_cultmesh_repo_work_public_proof; pub use cultmesh_integration::load_latest_epiphany_cultmesh_repo_work_readiness; -pub use cultmesh_integration::load_latest_epiphany_cultmesh_repo_work_readiness_review; pub use cultmesh_integration::load_latest_epiphany_cultmesh_role_review_event; pub use cultmesh_integration::load_latest_epiphany_cultmesh_weksa_lowering_receipt; pub use cultmesh_integration::load_latest_epiphany_cultmesh_work_loop_telemetry; diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 94f9a25e..7eef8796 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -592,3 +592,14 @@ missing-proof pressure in operator and Persona readback. Readiness writes now require valid RFC3339 generation time and advance `latest` by `(generation time, readiness ID)`. The authority denials remain intact: this projection still cannot approve readiness, publish, run Hands, or own service lifecycle. + +## Writerless readiness-review family presented as authority + +`epiphany.cultmesh.repo_work_readiness_review.v0` had a schema, public exports, +latest/history loaders, receipt-directory row, swarm overview/TUI surfaces, and +Bifrost accounting closure logic—but no constructor, validator, or writer +anywhere in the body. It was a control-panel organ with no nerve, satisfiable +only by generic store injection. The entire family and every downstream +projection are deleted. Maintainer, Soul, Mind, and Bifrost review receipts +remain in their owning contract families; no composite counterfeit review is +manufactured to summarize them. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 08a594b6..cd53ddab 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -149,6 +149,9 @@ The confirmed conceptual substitutions have been cut: transport cannot make an obsolete queue gate or next move current. - Repo-work readiness global `latest` is generation-time-owned. Delayed sight-only reports cannot replace current proof visibility. +- The writerless `repo_work_readiness_review` document family is deleted from + schema registration, exports, loaders, receipt directory, swarm overview, + TUI, and Bifrost accounting. Real review receipts retain their owners. The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index e4411a443e03c47d5b4a6df63f4f1a6df6e0aacf..73789f6ea6ea386ce282d25c92beb0948ec4bee3 100644 GIT binary patch delta 316 zcmX|)u}Z{15I{}z0wRbYf||lXYu%`go|R%_aWpfzf10OZG&4QkY+hD_cyZ+rB|7BbGK9(qheo2c(9Aw|mT!P- zR_3T2q%;?D090|HQi5d}=9J)dp^YO_Q;vohWGD)^&V@Ip&4Ad7nw<1ckH~>YjkXRb zW4csMs0%2JzVw~Y%5K212BtZJ!4wTD)>^(#g|d6zsDz$(=kb3|bSX(sC_cXW|JnMq UZ9rGPvzaKG+hMfSoR6Y~KkQK=?%h+0!AT5##W}rRwkxV#~9dN1Z-AjEM#OfZ=TB3K9z|Ph(R-MQkZ1