Delete writerless readiness review authority

This commit is contained in:
Meta Vens 2026-07-13 01:01:29 +01:00
commit bee0c7dd09
7 changed files with 17 additions and 383 deletions

View file

@ -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<String>,
repo_work_readiness_rows: Vec<RepoWorkReadinessRow>,
repo_work_readiness_tui_rows: Vec<String>,
repo_work_readiness_review_rows: Vec<RepoWorkReadinessReviewRow>,
repo_work_readiness_review_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>,
@ -3453,7 +3438,6 @@ struct SwarmOverviewReport {
latest_repo_work_blocker: Option<String>,
latest_repo_work_next_safe_move: Option<String>,
latest_repo_work_readiness: Option<String>,
latest_repo_work_readiness_review: Option<String>,
latest_repo_work_public_proof: Option<String>,
latest_idunn_deployment_receipt: Option<String>,
latest_idunn_aftercare_audit_receipt: Option<String>,
@ -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<RepoWorkReadinessRow>,
repo_work_readiness_tui_rows: Vec<String>,
repo_work_readiness_review_count: usize,
repo_work_readiness_review_rows: Vec<RepoWorkReadinessReviewRow>,
repo_work_readiness_review_tui_rows: Vec<String>,
repo_work_public_proof_count: usize,
repo_work_public_proof_rows: Vec<RepoWorkPublicProofRow>,
repo_work_public_proof_tui_rows: Vec<String>,
@ -3851,7 +3806,6 @@ struct SwarmOverviewOutput {
latest_repo_work_blocker: Option<String>,
latest_repo_work_next_safe_move: Option<String>,
latest_repo_work_readiness: Option<String>,
latest_repo_work_readiness_review: Option<String>,
latest_repo_work_public_proof: Option<String>,
latest_idunn_deployment_receipt: Option<String>,
latest_idunn_aftercare_audit_receipt: Option<String>,
@ -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<RepoWorkReadinessRow>,
repo_work_readiness_tui_rows: Vec<String>,
repo_work_readiness_review_count: usize,
repo_work_readiness_review_rows: Vec<RepoWorkReadinessReviewRow>,
repo_work_readiness_review_tui_rows: Vec<String>,
repo_work_public_proof_count: usize,
repo_work_public_proof_rows: Vec<RepoWorkPublicProofRow>,
repo_work_public_proof_tui_rows: Vec<String>,
@ -4067,7 +4014,6 @@ struct SwarmTriageOutput {
latest_repo_work_blocker: Option<String>,
latest_repo_work_next_safe_move: Option<String>,
latest_repo_work_readiness: Option<String>,
latest_repo_work_readiness_review: Option<String>,
latest_repo_work_public_proof: Option<String>,
latest_idunn_deployment_receipt: Option<String>,
latest_idunn_aftercare_audit_receipt: Option<String>,
@ -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<String>,
latest_artifact_acceptance_receipt_id: Option<String>,
latest_metrics_receipt_id: Option<String>,
latest_readiness_review_id: Option<String>,
latest_feedback_id: Option<String>,
latest_consensus_receipt_id: Option<String>,
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<RepoWorkReadinessReviewRow>, Vec<String>) {
let rows = reviews
.iter()
.map(repo_work_readiness_review_row)
.collect::<Vec<_>>();
let tui_rows = rows
.iter()
.map(repo_work_readiness_review_tui_row)
.collect::<Vec<_>>();
(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<EpiphanyCultMeshRepoWorkReadinessReviewEntry>,
Vec<EpiphanyCultMeshRepoWorkReadinessReviewEntry>,
)> {
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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
|| 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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
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<SwarmOverviewReport> {
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<BifrostLedgerReport> {
&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<BifrostLedgerReport> {
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,

View file

@ -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<String>,
}
#[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<String>,
#[cultcache(key = 26)]
pub notes: Vec<String>,
}
#[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<Path>,
runtime_id: impl Into<String>,
) -> Result<Option<EpiphanyCultMeshRepoWorkReadinessReviewEntry>> {
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<Path>,
runtime_id: impl Into<String>,
) -> Result<Vec<EpiphanyCultMeshRepoWorkReadinessReviewEntry>> {
let node = open_epiphany_cultmesh_node(store_path, runtime_id)?;
let mut reviews = node
.get_all_with_keys::<EpiphanyCultMeshRepoWorkReadinessReviewEntry>()?
.into_iter()
.filter(|(key, _)| key != EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY)
.map(|(_, review)| review)
.collect::<Vec<_>>();
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<Path>,
map_entry: EpiphanyCultMeshRepoWorkMapEntry,

View file

@ -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;

View file

@ -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.

View file

@ -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.

Binary file not shown.

View file

@ -660,4 +660,4 @@ current_status:
- Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass.
- `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure.
last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync.
next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; operational/evidence latest mirrors are validated event-time projections; repo-work map, overview, and readiness latest keys follow Mind admission or generation time rather than mirror arrival. Continue auditing repo-work readiness-review/public-proof projections, other evidence/security mirrors, service configuration claims, adapters, and destructive path consumers for borrowed authority.
next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; operational/evidence latest mirrors are validated event-time projections; repo-work map, overview, and readiness latest keys follow owning time; the writerless readiness-review family is deleted. Continue auditing repo-work public-proof and other evidence/security mirrors, service configuration claims, adapters, and destructive path consumers for borrowed authority.