Expose readiness review sight

This commit is contained in:
Meta Vens 2026-06-21 12:41:58 +01:00
commit 2e0f5ead11
10 changed files with 534 additions and 19 deletions

View file

@ -478,6 +478,21 @@ fn run_smoke(args: Args) -> Result<Value> {
&["authority", "handsActionAuthorized"],
false,
)?;
require_eq(
&readiness_review,
&["verseProjection", "documentType"],
"epiphany.cultmesh.repo_work_readiness_review",
)?;
require_eq(
&readiness_review,
&["verseProjection", "reviewId"],
"repo-work-readiness-review-repo-work-readiness",
)?;
require_bool(
&readiness_review,
&["verseProjection", "privateStateExposed"],
false,
)?;
require_bool(&readiness_review, &["privateStateExposed"], false)?;
let gjallar = cargo_json(
@ -505,6 +520,22 @@ fn run_smoke(args: Args) -> Result<Value> {
"REPO-WORK-READINESS",
)?;
require_tui_row_contains(&gjallar, &["swarmActionTuiRows"], "repo-work-readiness")?;
require_u64(&gjallar, &["repoWorkReadinessReviewCount"], 1)?;
require_eq(
&gjallar,
&["latestRepoWorkReadinessReview"],
"repo-work-readiness-review-repo-work-readiness",
)?;
require_tui_row_contains(
&gjallar,
&["repoWorkReadinessReviewTuiRows"],
"REPO-WORK-READINESS-REVIEW",
)?;
require_tui_row_contains(
&gjallar,
&["swarmActionTuiRows"],
"repo-work-readiness-review",
)?;
let summary = json!({
"schemaVersion": "epiphany.repo_work_readiness_smoke.v0",
@ -520,10 +551,13 @@ fn run_smoke(args: Args) -> Result<Value> {
"readinessStatus": readiness["status"],
"readinessReviewStatus": readiness_review["status"],
"readinessReviewReceiptPath": readiness_review["receiptPath"],
"readinessReviewVerseProjection": readiness_review["verseProjection"],
"missingRequiredCount": readiness["missingRequiredCount"],
"readinessVerseProjection": readiness["verseProjection"],
"gjallarRepoWorkReadinessCount": gjallar["repoWorkReadinessCount"],
"gjallarLatestRepoWorkReadiness": gjallar["latestRepoWorkReadiness"],
"gjallarRepoWorkReadinessReviewCount": gjallar["repoWorkReadinessReviewCount"],
"gjallarLatestRepoWorkReadinessReview": gjallar["latestRepoWorkReadinessReview"],
"sightOnly": readiness["authority"]["sightOnly"],
"readinessApprovalAuthorized": readiness["authority"]["readinessApprovalAuthorized"],
"publicationAuthorized": readiness["authority"]["publicationAuthorized"],

View file

@ -28,6 +28,7 @@ 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;
@ -59,6 +60,7 @@ 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_swarm_brake;
use epiphany_core::load_latest_epiphany_cultmesh_agent_state_soa_summary;
use epiphany_core::load_latest_epiphany_cultmesh_bifrost_body_change_publication_intent;
@ -78,6 +80,7 @@ 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::open_epiphany_cultmesh_node;
use epiphany_core::query_epiphany_local_verse_context;
use epiphany_core::seed_epiphany_local_verse_context;
@ -3603,6 +3606,7 @@ fn run_cli() -> Result<()> {
&[],
&[],
&[],
&[],
);
if !missing_artifact_rows.iter().any(|row| {
row.priority == 50
@ -3654,6 +3658,7 @@ fn run_cli() -> Result<()> {
&[],
&[],
&[],
&[],
);
if !synthetic_artifact_rows.iter().any(|row| {
row.priority == 50
@ -4128,6 +4133,8 @@ 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>,
@ -4138,6 +4145,7 @@ 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>,
@ -4362,6 +4370,32 @@ 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 {
@ -4494,6 +4528,9 @@ 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>,
@ -4506,6 +4543,7 @@ 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>,
@ -4602,6 +4640,9 @@ 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,
@ -4614,6 +4655,7 @@ 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,
@ -4702,6 +4744,9 @@ 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>,
@ -4714,6 +4759,7 @@ 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>,
@ -4805,6 +4851,9 @@ 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,
@ -4817,6 +4866,7 @@ 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,
@ -5045,6 +5095,7 @@ fn swarm_action_rows(
repo_work_overviews: &[EpiphanyCultMeshRepoWorkOverviewEntry],
repo_work_public_proofs: &[EpiphanyCultMeshRepoWorkPublicProofEntry],
repo_work_readiness_reports: &[EpiphanyCultMeshRepoWorkReadinessEntry],
repo_work_readiness_reviews: &[EpiphanyCultMeshRepoWorkReadinessReviewEntry],
) -> (Vec<SwarmActionRow>, Vec<String>) {
let mut rows = Vec::new();
let mut service_execution_check_counts = BTreeMap::<String, (usize, usize)>::new();
@ -5301,6 +5352,12 @@ fn swarm_action_rows(
for (index, readiness) in repo_work_readiness_reports.iter().take(5).enumerate() {
rows.push(repo_work_readiness_action_row(readiness, 70 + index as u32));
}
for (index, review) in repo_work_readiness_reviews.iter().take(5).enumerate() {
rows.push(repo_work_readiness_review_action_row(
review,
75 + index as u32,
));
}
if rows.is_empty() {
rows.push(SwarmActionRow {
priority: 100,
@ -6110,6 +6167,69 @@ 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>,
@ -6332,6 +6452,60 @@ fn repo_work_readiness_action_row(
}
}
fn repo_work_readiness_review_action_row(
review: &EpiphanyCultMeshRepoWorkReadinessReviewEntry,
priority: u32,
) -> SwarmActionRow {
SwarmActionRow {
priority,
family: "repo-work-readiness-review".to_string(),
status: review.status.clone(),
lifecycle_owner: "Gjallar".to_string(),
hosted_body: "repo-work".to_string(),
action: format!(
"Read repo work readiness review {} for item {}; Bifrost/GitHub/Idunn/Hands still own publication, sync, deployment, service lifecycle, and branch consequences.",
review.review_id, review.item
),
wrapper_mode: "repo-work-readiness-review".to_string(),
wrapper_command: format!(
"epiphany-work readiness-review --workspace \"{}\" --item \"{}\" --readiness-receipt \"{}\" --maintainer-review-receipt <ref> --soul-review-receipt <ref> --mind-review-receipt <ref> --bifrost-review-receipt <ref>",
review.workspace, review.item, review.readiness_receipt_ref
),
operator_artifact_ref: review.readiness_review_receipt_ref.clone(),
operator_artifact_status: if review.readiness_review_receipt_ref == "none" {
"none".to_string()
} else {
"external-ref".to_string()
},
operator_artifact_sha256: "none".to_string(),
operator_artifact_execution_command: "none".to_string(),
operator_aftercare_command: "none".to_string(),
completion_audit_wrapper_mode: "none".to_string(),
completion_audit_wrapper_command: "none".to_string(),
authority_gate: "repo.work.readiness_review_readback".to_string(),
effect_class: "repo-work-readiness-review-readback".to_string(),
mutates_state: false,
requires_elevated_authority: false,
service_execution_failed_check_count: 0,
service_execution_missing_check_count: 0,
service_id: "none".to_string(),
service_route: "none".to_string(),
reason: format!(
"Readiness review status={} approval={}, durableState={}, publication={}, merge={}, sync={}, deployment={}, service={}, hands={}",
review.status,
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
),
private_state_exposed: review.private_state_exposed,
}
}
fn swarm_action_tui_row(row: &SwarmActionRow) -> String {
format!(
"{:03} | {} | {} | {} | {} | owner={} | hostedBody={} | service={} | route={} | command={} | mutates={} | elevated={} | failedChecks={} | missingChecks={} | artifact={} | sha256={} | exec={} | audit={} | aftercare={}",
@ -6791,6 +6965,34 @@ 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);
@ -6802,6 +7004,8 @@ 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(),
@ -7044,6 +7248,8 @@ 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(),
@ -7059,6 +7265,7 @@ fn load_swarm_overview_report(args: &Args) -> Result<SwarmOverviewReport> {
&repo_work_overviews,
&repo_work_public_proofs,
&repo_work_readiness_reports,
&repo_work_readiness_reviews,
);
let private_state_exposed = daemon_report
.rows
@ -7102,6 +7309,9 @@ 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)
@ -7130,6 +7340,9 @@ 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());
@ -7180,6 +7393,8 @@ 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,
@ -7190,6 +7405,7 @@ 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,

View file

@ -8,11 +8,13 @@ use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_MAP_ENTRY_LATEST_KEY;
use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_MAP_ENTRY_SCHEMA_VERSION;
use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_OVERVIEW_SCHEMA_VERSION;
use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_PUBLIC_PROOF_SCHEMA_VERSION;
use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION;
use epiphany_core::EPIPHANY_CULTMESH_REPO_WORK_READINESS_SCHEMA_VERSION;
use epiphany_core::EpiphanyCultMeshRepoWorkMapEntry;
use epiphany_core::EpiphanyCultMeshRepoWorkOverviewEntry;
use epiphany_core::EpiphanyCultMeshRepoWorkPublicProofEntry;
use epiphany_core::EpiphanyCultMeshRepoWorkReadinessEntry;
use epiphany_core::EpiphanyCultMeshRepoWorkReadinessReviewEntry;
use epiphany_core::HANDS_ACTION_INTENT_SCHEMA_VERSION;
use epiphany_core::HANDS_COMMAND_RECEIPT_TYPE;
use epiphany_core::HANDS_COMMIT_RECEIPT_TYPE;
@ -61,6 +63,7 @@ use epiphany_core::write_epiphany_cultmesh_repo_work_map_entry;
use epiphany_core::write_epiphany_cultmesh_repo_work_overview;
use epiphany_core::write_epiphany_cultmesh_repo_work_public_proof;
use epiphany_core::write_epiphany_cultmesh_repo_work_readiness;
use epiphany_core::write_epiphany_cultmesh_repo_work_readiness_review;
use serde::Deserialize;
use serde::Serialize;
use serde_json::Value;
@ -1230,9 +1233,7 @@ fn parse_readiness_args(args: impl Iterator<Item = String>) -> Result<ReadinessA
})
}
fn parse_readiness_review_args(
args: impl Iterator<Item = String>,
) -> Result<ReadinessReviewArgs> {
fn parse_readiness_review_args(args: impl Iterator<Item = String>) -> Result<ReadinessReviewArgs> {
let mut workspace = None;
let mut item = None;
let mut readiness_receipt = None;
@ -1263,8 +1264,7 @@ fn parse_readiness_review_args(
mind_review_receipt = Some(take_string(&mut args, "--mind-review-receipt")?);
}
"--bifrost-review-receipt" | "--bifrost-review" => {
bifrost_review_receipt =
Some(take_string(&mut args, "--bifrost-review-receipt")?);
bifrost_review_receipt = Some(take_string(&mut args, "--bifrost-review-receipt")?);
}
"--review-summary" | "--summary" => {
review_summary = Some(take_string(&mut args, "--review-summary")?);
@ -12579,11 +12579,10 @@ fn run_readiness_review(args: ReadinessReviewArgs) -> Result<Value> {
]
.iter()
.all(|key| authority.get(*key).and_then(Value::as_bool) == Some(false));
let private_sealed =
readiness_receipt
.get("privateStateExposed")
.and_then(Value::as_bool)
== Some(false);
let private_sealed = readiness_receipt
.get("privateStateExposed")
.and_then(Value::as_bool)
== Some(false);
let review_refs = vec![
args.maintainer_review_receipt.clone(),
args.soul_review_receipt.clone(),
@ -12610,10 +12609,85 @@ fn run_readiness_review(args: ReadinessReviewArgs) -> Result<Value> {
let now = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true);
let review_id = format!("repo-work-readiness-review-{readiness_item_slug}");
let receipt_path = artifact_dir.join(format!("work-readiness-review-{readiness_item_slug}.json"));
let receipt_path =
artifact_dir.join(format!("work-readiness-review-{readiness_item_slug}.json"));
let review_summary = args.review_summary.unwrap_or_else(|| {
"Maintainer/Soul/Mind/Bifrost reviewed a ready repo-work readiness sight receipt.".to_string()
"Maintainer/Soul/Mind/Bifrost reviewed a ready repo-work readiness sight receipt."
.to_string()
});
let readiness_receipt_ref = readiness_receipt_path.display().to_string();
let review_receipt_ref = receipt_path.display().to_string();
let review_tui_rows = vec![
format!(
"REPO-WORK-READINESS-REVIEW | item={} | status=readiness-approved | missing={} | satisfied={} | readiness={} | review={} | approvalAuth=true | publicationAuth=false | serviceAuth=false | handsAuth=false | private=false",
readiness_item,
missing_required_count,
row_count,
readiness_receipt_ref,
review_receipt_ref
),
format!(
"REPO-WORK-READINESS-REVIEW-REFS | item={} | maintainer={} | soul={} | mind={} | bifrost={} | private=false",
readiness_item,
args.maintainer_review_receipt,
args.soul_review_receipt,
args.mind_review_receipt,
args.bifrost_review_receipt
),
];
let mut verse_projection = Value::Null;
let accept_receipt_path = work_receipt_path(&workspace, "accept", &readiness_item);
if let Some(accept_receipt) = read_json_if_exists(&accept_receipt_path)? {
if let Some(store) = path_from_json(&accept_receipt, &["localVerseStore"])
.or_else(|| path_from_json(&accept_receipt, &["localVerseStorePath"]))
{
let runtime_id = string_from_json(&accept_receipt, &["runtimeId"])
.unwrap_or_else(|| "repo-swarm-local".to_string());
let entry = EpiphanyCultMeshRepoWorkReadinessReviewEntry {
schema_version: EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION
.to_string(),
runtime_id: runtime_id.clone(),
verse_id: EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID.to_string(),
review_id: review_id.clone(),
generated_at: now.clone(),
workspace: workspace.display().to_string(),
item: readiness_item.clone(),
status: "readiness-approved".to_string(),
readiness_receipt_ref: readiness_receipt_ref.clone(),
readiness_review_receipt_ref: review_receipt_ref.clone(),
missing_required_count: missing_required_count as u32,
satisfied_row_count: row_count as u32,
maintainer_review_receipt: args.maintainer_review_receipt.clone(),
soul_review_receipt: args.soul_review_receipt.clone(),
mind_review_receipt: args.mind_review_receipt.clone(),
bifrost_review_receipt: args.bifrost_review_receipt.clone(),
readiness_approval_authorized: true,
durable_state_commit_authorized: false,
publication_authorized: false,
merge_authorized: false,
upstream_sync_authorized: false,
deployment_authority: false,
service_lifecycle_authority: false,
hands_action_authorized: false,
private_state_exposed: false,
tui_rows: review_tui_rows.clone(),
notes: vec![
"Readiness review approval is review evidence only; it does not publish, merge, deploy, sync upstream, mutate services, or grant Hands authority.".to_string(),
"Maintainer, Soul, Mind, and Bifrost receipts remain the approval authorities; Gjallar only projects this compact row.".to_string(),
],
};
let written = write_epiphany_cultmesh_repo_work_readiness_review(&store, entry)?;
verse_projection = json!({
"localVerseStore": store,
"runtimeId": runtime_id,
"documentType": "epiphany.cultmesh.repo_work_readiness_review",
"reviewId": written.review_id,
"latestKey": "gamecult-local/repo-work-readiness-review/latest",
"tuiRows": written.tui_rows,
"privateStateExposed": written.private_state_exposed
});
}
}
let receipt = json!({
"schemaVersion": "epiphany.repo_work_readiness_review_receipt.v0",
"createdAt": now,
@ -12656,6 +12730,8 @@ fn run_readiness_review(args: ReadinessReviewArgs) -> Result<Value> {
"privateVerseRummaging": false,
"privateStateExposed": false
},
"tuiRows": review_tui_rows,
"verseProjection": verse_projection,
"privateStateExposed": false,
"nextSafeMove": "Use this readiness approval as review evidence for operator release decisions; do not treat it as publication, deployment, service lifecycle, Hands, merge, or cross-body authority."
});
@ -12670,6 +12746,7 @@ fn run_readiness_review(args: ReadinessReviewArgs) -> Result<Value> {
"readinessReceiptPath": receipt["readinessReceiptPath"],
"missingRequiredCount": receipt["missingRequiredCount"],
"satisfiedRowCount": receipt["satisfiedRowCount"],
"verseProjection": receipt["verseProjection"],
"authority": receipt["authority"],
"privateStateExposed": false,
"nextSafeMove": receipt["nextSafeMove"]
@ -14562,9 +14639,9 @@ fn upstream_main_sync_readiness_row(
== Some("epiphany.repo_work_sync_receipt.v0");
let status_synced =
string_from_json(receipt, &["status"]).as_deref() == Some("upstream-main-synced");
let upstream_main_synced =
bool_from_json(receipt, &["authority", "upstreamMainSynced"]) == Some(true)
|| bool_from_json(receipt, &["upstreamMainSynced"]) == Some(true);
let upstream_main_synced = bool_from_json(receipt, &["authority", "upstreamMainSynced"])
== Some(true)
|| bool_from_json(receipt, &["upstreamMainSynced"]) == Some(true);
let publication_authorized =
bool_from_json(receipt, &["authority", "publicationAuthorized"]) == Some(true);
let merge_authorized = bool_from_json(receipt, &["authority", "mergeAuthorized"]) == Some(true);

View file

@ -82,6 +82,12 @@ 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 =
@ -824,6 +830,68 @@ 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",
@ -2333,6 +2401,7 @@ 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,
@ -4773,6 +4842,48 @@ pub fn load_epiphany_cultmesh_repo_work_readiness_reports(
Ok(reports)
}
pub fn write_epiphany_cultmesh_repo_work_readiness_review(
store_path: impl AsRef<Path>,
review: EpiphanyCultMeshRepoWorkReadinessReviewEntry,
) -> Result<EpiphanyCultMeshRepoWorkReadinessReviewEntry> {
validate_repo_work_readiness_review(&review)?;
let mut node = open_epiphany_cultmesh_node(&store_path, review.runtime_id.clone())?;
let written = node.put(review.review_id.clone(), &review)?;
node.put(
EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_LATEST_KEY,
&written,
)?;
node.flush()?;
Ok(written)
}
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,
@ -4933,6 +5044,60 @@ fn validate_repo_work_readiness(readiness: &EpiphanyCultMeshRepoWorkReadinessEnt
Ok(())
}
fn validate_repo_work_readiness_review(
review: &EpiphanyCultMeshRepoWorkReadinessReviewEntry,
) -> Result<()> {
if review.private_state_exposed {
return Err(anyhow!(
"repo work readiness review must not expose private state"
));
}
if review.schema_version != EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION {
return Err(anyhow!(
"repo work readiness review schema_version must be {:?}",
EPIPHANY_CULTMESH_REPO_WORK_READINESS_REVIEW_SCHEMA_VERSION
));
}
if review.verse_id != EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID {
return Err(anyhow!(
"repo work readiness review belongs in local-area Verse {:?}",
EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID
));
}
if review.review_id.trim().is_empty() || review.item.trim().is_empty() {
return Err(anyhow!(
"repo work readiness review requires review_id and item"
));
}
if !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
{
return Err(anyhow!(
"repo work readiness review may grant readiness approval only; it must deny durable-state, publication, merge, sync, deployment, service, and Hands authority"
));
}
if review.tui_rows.is_empty() {
return Err(anyhow!(
"repo work readiness review requires compact TUI rows"
));
}
if review.tui_rows.iter().any(|row| {
let lower = row.to_ascii_lowercase();
lower.contains("rawresult") || lower.contains("receipt body") || lower.contains("thought")
}) {
return Err(anyhow!(
"repo work readiness review rows must not expose raw worker payload names"
));
}
Ok(())
}
fn validate_repo_work_map_entry(entry: &EpiphanyCultMeshRepoWorkMapEntry) -> Result<()> {
if entry.private_state_exposed {
return Err(anyhow!("repo work map entry must not expose private state"));

View file

@ -213,6 +213,9 @@ 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;
@ -274,6 +277,7 @@ 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;
@ -336,6 +340,7 @@ 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;
@ -365,6 +370,7 @@ 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_work_loop_telemetry;
pub use cultmesh_integration::open_epiphany_cultmesh_node;
@ -409,6 +415,7 @@ pub use cultmesh_integration::write_epiphany_cultmesh_repo_work_map_entry;
pub use cultmesh_integration::write_epiphany_cultmesh_repo_work_overview;
pub use cultmesh_integration::write_epiphany_cultmesh_repo_work_public_proof;
pub use cultmesh_integration::write_epiphany_cultmesh_repo_work_readiness;
pub use cultmesh_integration::write_epiphany_cultmesh_repo_work_readiness_review;
pub use cultmesh_integration::write_epiphany_cultmesh_role_review_event;
pub use cultmesh_integration::write_epiphany_cultmesh_soul_contracts;
pub use cultmesh_integration::write_epiphany_cultmesh_status;

View file

@ -2751,6 +2751,10 @@ Required cuts:
work, publication status, and upstream sync.
- Make Gjallar announce the repo swarm's operator-safe status through Odin's
discovery map without giving Gjallar lifecycle or mutation authority.
- Project readiness-review approval receipts as typed local Verse sight
(`epiphany.cultmesh.repo_work_readiness_review.v0`) and compact Gjallar rows,
while preserving Bifrost/GitHub/Idunn/Hands ownership for publication, sync,
deployment, service lifecycle, and branch consequences.
- Keep Bifrost ledger and credit receipts as the public labor trail.
MVP exit proof:

View file

@ -1611,6 +1611,16 @@ first dependency-body repair is landed: the missing
CultCache/CultNet/CultMesh crates, and the `epiphany-core` library tests pass
against that body.
The repo-swarm readiness-review sight cut is now sealed. `epiphany-work
readiness-review` mirrors approved readiness review receipts into local Verse as
`epiphany.cultmesh.repo_work_readiness_review.v0`; Gjallar/swarm-overview/triage
project `REPO-WORK-READINESS-REVIEW` rows and non-mutating action rows with
readiness approval true but durable-state, publication, merge, upstream-sync,
deployment, service lifecycle, Hands, and private-state authority false. Native
proof `.epiphany-smoke\repo-work-readiness-20260621-113714` and wrapper proof
`local-20260621-123904-738-cc48a47c` show one review row and
`privateStateExposed=false`.
## Not Yet
- automatic watcher-driven semantic invalidation

Binary file not shown.

View file

@ -649,5 +649,5 @@ current_status:
- `tools/epiphany_local_run.ps1 -Mode swarm-online-runbook` now emits an explicit Idunn preflight summary before the operator elevation boundary. Its JSON and one-line summary report `preflightStatus`, child artifact present/hash-verified/mismatch/missing counts, aggregate service execution failed/missing check counts, child preflight rows with expected/actual SHA-256s, and private-state exposure. Live proof `local-20260619-025627-410-9724e2f6` generated the non-mutating parent artifact with `preflightStatus=ready-for-elevated-operator`, two child runbooks present, two hashes verified, zero mismatches, zero missing artifacts, eleven failed sealed service checks, zero missing checks, explicit aftercare audits, and `privateStateExposed=false`. The remaining scar is still explicit elevated operator execution followed by complete Idunn audits, not missing parent/child artifact readiness.
- 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: Repo-work readiness review/adoption now has an explicit typed gate after ready sight. `epiphany-work readiness-review` consumes a ready `epiphany.repo_work_readiness_report.v0`, requires Maintainer, Soul, Mind, and Bifrost review receipt refs, refuses unless `missingRequiredCount=0` and every readiness row is satisfied, and writes `epiphany.repo_work_readiness_review_receipt.v0` with `status=readiness-approved`, `readinessApprovalAuthorized=true`, `readinessAdopted=true`, and durable-state/publication/PR/merge/upstream-sync/deployment/service/Hands/cross-body/private-state authority all false. Native smoke `.epiphany-smoke\repo-work-readiness-20260621-111411` proves the full ready chain plus review receipt with sixteen satisfied rows; wrapper proof `local-20260621-121829-442-d011af09` proves `tools/epiphany_local_run.ps1 -Mode repo-work-readiness-review` prints the same approval boundary at the operator mouth.
next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. The next useful cuts are exposing readiness review receipts through Gjallar/receipt-directory/public proof surfaces if operator sight needs them, deeper Bifrost-first external-work accounting if ledger/publication readback needs more cargo, another useful repo-owned safe action family if the review loop needs more cargo, or explicit elevated/operator Idunn execution proof only when the human grants that authority. Persona-to-Imagination consensus readback, Mind-owned interpreter brief cargo, safe-family planning depth, Gjallar closure/readiness map rows, Bifrost ledger accounting rows, readiness wrapper mouth, repo deployment handoff/readback wrappers, readiness deployment-aftercare closure, readiness safe-family planning closure, readiness Idunn/tool-directory receipt validation, readiness Bifrost/GitHub publication-chain validation, readiness upstream-main sync validation, and readiness review/adoption receipt validation are sealed; preserve Idunn service lifecycle ownership, Bifrost publication/upstream-main ownership, Mind durable-state admission, and existing CultMesh/Odin/Eve tool directories. Windows service install/start/deployment execution still requires explicit elevated operator authority.
last_completed_repo_swarm_cut: Repo-work readiness review sight is now typed and visible. `epiphany-work readiness-review` still consumes a ready `epiphany.repo_work_readiness_report.v0` and requires Maintainer, Soul, Mind, and Bifrost review refs before writing `epiphany.repo_work_readiness_review_receipt.v0`; it now also mirrors approved review receipts into local Verse as `epiphany.cultmesh.repo_work_readiness_review.v0`. Gjallar/swarm-overview/triage project `REPO-WORK-READINESS-REVIEW` rows and a non-mutating `repo-work-readiness-review` action row with readiness approval true and durable-state, publication, merge, upstream-sync, deployment, service lifecycle, Hands, and private-state authority false. Native proof `.epiphany-smoke\repo-work-readiness-20260621-113714` shows `gjallarRepoWorkReadinessReviewCount=1`; wrapper proof `local-20260621-123904-738-cc48a47c` prints `repoWorkReadinessReviewRows` with `privateStateExposed=False`.
next_action: Continue repo-swarm MVP work from `notes/epiphany-repo-swarm-mvp-contract.md`. Useful next cuts are either a receipt-directory/public-proof projection for readiness-review if operator/public proof needs that index, deeper Bifrost-first external-work accounting if ledger/publication readback needs more cargo, another useful repo-owned safe action family if the review loop needs more cargo, or explicit elevated/operator Idunn execution proof only when the human grants that authority. Persona-to-Imagination consensus readback, Mind-owned interpreter brief cargo, safe-family planning depth and closure, Gjallar closure/readiness/readiness-review rows, Bifrost ledger accounting rows, readiness wrapper mouth, repo deployment handoff/readback wrappers, readiness deployment-aftercare closure, readiness Idunn/tool-directory receipt validation, readiness Bifrost/GitHub publication-chain validation, readiness upstream-main sync validation, and readiness review/adoption receipt validation are sealed; preserve Idunn service lifecycle ownership, Bifrost publication/upstream-main ownership, Mind durable-state admission, and existing CultMesh/Odin/Eve tool directories. Windows service install/start/deployment execution still requires explicit elevated operator authority.

View file

@ -2641,6 +2641,7 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
$repoWorkOverviewRows = Format-TuiRows $result.repoWorkOverviewTuiRows
$repoWorkPublicProofRows = Format-TuiRows $result.repoWorkPublicProofTuiRows
$repoWorkReadinessRows = Format-TuiRows $result.repoWorkReadinessTuiRows
$repoWorkReadinessReviewRows = Format-TuiRows $result.repoWorkReadinessReviewTuiRows
$swarmOnlineTool = "none"
if ($null -ne $result.commands -and $null -ne $result.commands.wrapperInvokeSwarmOnlineRunbookTool) {
$swarmOnlineTool = $result.commands.wrapperInvokeSwarmOnlineRunbookTool
@ -2649,7 +2650,7 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
if ($Mode -eq "gjallar") {
$overviewLabel = "Gjallar"
}
Write-Host "${overviewLabel}: status=$($result.status), liveness=$($result.livenessStatus), recovery=$($result.recoveryStatus), agents=$($result.agentCount), clusters=$($result.clusterCount), privateVerses=$($result.privateVerseCount), surfaces=$($result.surfaceCount), tools=$($result.toolCount), nonReady=$($result.nonReadyDaemonCount), policyMissing=$($result.policyMissingCount), recommended=$($result.recommendedWrapperMode), serviceRecommended=$($result.serviceLifecycleRecommendedWrapperMode), swarmOnlineTool=$swarmOnlineTool, actionQueue=$actionQueue, actionRows=$actionRows, attention=$attention, daemonRows=$daemonRows, toolRows=$toolRows, policyRows=$policyRows, repoWorkMapRows=$repoWorkMapRows, repoWorkSemanticRows=$repoWorkSemanticRows, repoWorkFamilyLensRows=$repoWorkFamilyLensRows, repoWorkPathLensRows=$repoWorkPathLensRows, repoWorkBranchLensRows=$repoWorkBranchLensRows, repoWorkStageLensRows=$repoWorkStageLensRows, repoWorkGateLensRows=$repoWorkGateLensRows, repoWorkClosureRows=$repoWorkClosureRows, repoWorkAcceptanceRows=$repoWorkAcceptanceRows, repoWorkOverviewRows=$repoWorkOverviewRows, repoWorkPublicProofRows=$repoWorkPublicProofRows, repoWorkReadinessRows=$repoWorkReadinessRows, toolHostAttention=$toolHostAttention, toolAttentionRows=$toolAttentionRows, serviceLifecycleAttention=$serviceLifecycleAttention, serviceAttentionRows=$serviceAttentionRows, serviceExecutionFailedChecks=$serviceExecutionFailedChecks, serviceFailedCheckRows=$serviceFailedCheckRows, privateStateExposed=$($result.privateStateExposed)"
Write-Host "${overviewLabel}: status=$($result.status), liveness=$($result.livenessStatus), recovery=$($result.recoveryStatus), agents=$($result.agentCount), clusters=$($result.clusterCount), privateVerses=$($result.privateVerseCount), surfaces=$($result.surfaceCount), tools=$($result.toolCount), nonReady=$($result.nonReadyDaemonCount), policyMissing=$($result.policyMissingCount), recommended=$($result.recommendedWrapperMode), serviceRecommended=$($result.serviceLifecycleRecommendedWrapperMode), swarmOnlineTool=$swarmOnlineTool, actionQueue=$actionQueue, actionRows=$actionRows, attention=$attention, daemonRows=$daemonRows, toolRows=$toolRows, policyRows=$policyRows, repoWorkMapRows=$repoWorkMapRows, repoWorkSemanticRows=$repoWorkSemanticRows, repoWorkFamilyLensRows=$repoWorkFamilyLensRows, repoWorkPathLensRows=$repoWorkPathLensRows, repoWorkBranchLensRows=$repoWorkBranchLensRows, repoWorkStageLensRows=$repoWorkStageLensRows, repoWorkGateLensRows=$repoWorkGateLensRows, repoWorkClosureRows=$repoWorkClosureRows, repoWorkAcceptanceRows=$repoWorkAcceptanceRows, repoWorkOverviewRows=$repoWorkOverviewRows, repoWorkPublicProofRows=$repoWorkPublicProofRows, repoWorkReadinessRows=$repoWorkReadinessRows, repoWorkReadinessReviewRows=$repoWorkReadinessReviewRows, toolHostAttention=$toolHostAttention, toolAttentionRows=$toolAttentionRows, serviceLifecycleAttention=$serviceLifecycleAttention, serviceAttentionRows=$serviceAttentionRows, serviceExecutionFailedChecks=$serviceExecutionFailedChecks, serviceFailedCheckRows=$serviceFailedCheckRows, privateStateExposed=$($result.privateStateExposed)"
} elseif ($Mode -eq "repo-persona-intake") {
$feedbackId = "none"
$consensusReceiptId = "none"
@ -2906,7 +2907,8 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
$repoWorkOverviewRows = Format-TuiRows $result.repoWorkOverviewTuiRows
$repoWorkPublicProofRows = Format-TuiRows $result.repoWorkPublicProofTuiRows
$repoWorkReadinessRows = Format-TuiRows $result.repoWorkReadinessTuiRows
Write-Host "Swarm triage: status=$($result.status), overview=$($result.overviewStatus), liveness=$($result.livenessStatus), recovery=$($result.recoveryStatus), clusters=$($result.clusterCount), privateVerses=$($result.privateVerseCount), recommended=$($result.recommendedWrapperMode), serviceRecommended=$($result.serviceLifecycleRecommendedWrapperMode), actionQueue=$actionQueue, actionRows=$actionRows, attention=$attention, daemonRows=$daemonRows, repoWorkMapRows=$repoWorkMapRows, repoWorkSemanticRows=$repoWorkSemanticRows, repoWorkFamilyLensRows=$repoWorkFamilyLensRows, repoWorkPathLensRows=$repoWorkPathLensRows, repoWorkBranchLensRows=$repoWorkBranchLensRows, repoWorkStageLensRows=$repoWorkStageLensRows, repoWorkGateLensRows=$repoWorkGateLensRows, repoWorkClosureRows=$repoWorkClosureRows, repoWorkAcceptanceRows=$repoWorkAcceptanceRows, repoWorkOverviewRows=$repoWorkOverviewRows, repoWorkPublicProofRows=$repoWorkPublicProofRows, repoWorkReadinessRows=$repoWorkReadinessRows, toolHostAttention=$toolHostAttention, toolAttentionRows=$toolAttentionRows, serviceLifecycleAttention=$serviceLifecycleAttention, serviceAttentionRows=$serviceAttentionRows, serviceExecutionFailedChecks=$serviceExecutionFailedChecks, serviceFailedCheckRows=$serviceFailedCheckRows, poked=$($result.pokedDaemonCount), privateStateExposed=$($result.privateStateExposed)"
$repoWorkReadinessReviewRows = Format-TuiRows $result.repoWorkReadinessReviewTuiRows
Write-Host "Swarm triage: status=$($result.status), overview=$($result.overviewStatus), liveness=$($result.livenessStatus), recovery=$($result.recoveryStatus), clusters=$($result.clusterCount), privateVerses=$($result.privateVerseCount), recommended=$($result.recommendedWrapperMode), serviceRecommended=$($result.serviceLifecycleRecommendedWrapperMode), actionQueue=$actionQueue, actionRows=$actionRows, attention=$attention, daemonRows=$daemonRows, repoWorkMapRows=$repoWorkMapRows, repoWorkSemanticRows=$repoWorkSemanticRows, repoWorkFamilyLensRows=$repoWorkFamilyLensRows, repoWorkPathLensRows=$repoWorkPathLensRows, repoWorkBranchLensRows=$repoWorkBranchLensRows, repoWorkStageLensRows=$repoWorkStageLensRows, repoWorkGateLensRows=$repoWorkGateLensRows, repoWorkClosureRows=$repoWorkClosureRows, repoWorkAcceptanceRows=$repoWorkAcceptanceRows, repoWorkOverviewRows=$repoWorkOverviewRows, repoWorkPublicProofRows=$repoWorkPublicProofRows, repoWorkReadinessRows=$repoWorkReadinessRows, repoWorkReadinessReviewRows=$repoWorkReadinessReviewRows, toolHostAttention=$toolHostAttention, toolAttentionRows=$toolAttentionRows, serviceLifecycleAttention=$serviceLifecycleAttention, serviceAttentionRows=$serviceAttentionRows, serviceExecutionFailedChecks=$serviceExecutionFailedChecks, serviceFailedCheckRows=$serviceFailedCheckRows, poked=$($result.pokedDaemonCount), privateStateExposed=$($result.privateStateExposed)"
} elseif ($Mode -eq "service-runbook") {
$artifactSha256 = Get-LocalArtifactSha256 $result.runbookPath
Write-Host "Service runbook: service=$($result.serviceId), receipt=$($result.receiptId), artifactSha256=$artifactSha256, followUp=tools/epiphany_local_run.ps1 -Mode service-launch, aftercare=tools/epiphany_local_run.ps1 -Mode service-status, path=$($result.runbookPath)"