Persist typed repo work Modeling findings
This commit is contained in:
parent
8faabdbcfa
commit
5d46a9542e
10 changed files with 244 additions and 10 deletions
|
|
@ -27,6 +27,8 @@ use epiphany_core::MIND_GATEWAY_REVIEW_SCHEMA_VERSION;
|
|||
use epiphany_core::MindGatewayDecision;
|
||||
use epiphany_core::MindGatewayReview;
|
||||
use epiphany_core::PersonaMemoryCacheConfig;
|
||||
use epiphany_core::REPO_WORK_MODELING_FINDING_SCHEMA_VERSION;
|
||||
use epiphany_core::RepoWorkModelingFinding;
|
||||
use epiphany_core::RuntimeSpineInitOptions;
|
||||
use epiphany_core::SOUL_VERDICT_RECEIPT_SCHEMA_VERSION;
|
||||
use epiphany_core::SUBSTRATE_GATE_REPO_ACCESS_GRANT_RECEIPT_SCHEMA_VERSION;
|
||||
|
|
@ -63,6 +65,7 @@ use epiphany_core::put_hands_patch_receipt;
|
|||
use epiphany_core::put_hands_pr_receipt;
|
||||
use epiphany_core::put_mind_gateway_review;
|
||||
use epiphany_core::put_mind_state_commit_receipt;
|
||||
use epiphany_core::put_repo_work_modeling_finding;
|
||||
use epiphany_core::put_soul_verdict_receipt;
|
||||
use epiphany_core::put_substrate_gate_repo_access_grant_receipt;
|
||||
use epiphany_core::record_weksa_target_lowering_receipt;
|
||||
|
|
@ -71,6 +74,7 @@ use epiphany_core::runtime_hands_action_intent;
|
|||
use epiphany_core::runtime_hands_action_review;
|
||||
use epiphany_core::runtime_hands_commit_receipt;
|
||||
use epiphany_core::runtime_latest_hands_receipt_chain_after;
|
||||
use epiphany_core::runtime_repo_work_modeling_finding;
|
||||
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;
|
||||
|
|
@ -114,6 +118,7 @@ struct RepoWorkMapEntry {
|
|||
commit_sha: String,
|
||||
safe_action_family: String,
|
||||
modeling_summary: String,
|
||||
modeling_finding_receipt_id: String,
|
||||
soul_verdict_receipt_id: String,
|
||||
mind_gateway_review_id: String,
|
||||
mind_state_commit_receipt_id: String,
|
||||
|
|
@ -9911,6 +9916,7 @@ fn record_repo_work_map_admission(
|
|||
commit_sha: &str,
|
||||
closure_review: &Value,
|
||||
modeling_summary: &str,
|
||||
modeling_finding_receipt_id: &str,
|
||||
soul_verdict_receipt_id: &str,
|
||||
mind_gateway_review_id: &str,
|
||||
mind_state_commit_receipt_id: &str,
|
||||
|
|
@ -9933,6 +9939,7 @@ fn record_repo_work_map_admission(
|
|||
commit_sha: commit_sha.to_string(),
|
||||
safe_action_family,
|
||||
modeling_summary: modeling_summary.to_string(),
|
||||
modeling_finding_receipt_id: modeling_finding_receipt_id.to_string(),
|
||||
soul_verdict_receipt_id: soul_verdict_receipt_id.to_string(),
|
||||
mind_gateway_review_id: mind_gateway_review_id.to_string(),
|
||||
mind_state_commit_receipt_id: mind_state_commit_receipt_id.to_string(),
|
||||
|
|
@ -10004,6 +10011,7 @@ fn project_repo_work_map_entry_to_local_verse(
|
|||
format!("branch {}", entry.branch),
|
||||
format!("commit {}", entry.commit_sha),
|
||||
format!("family {}", entry.safe_action_family),
|
||||
format!("modeling {}", entry.modeling_finding_receipt_id),
|
||||
format!("mind {}", entry.mind_state_commit_receipt_id),
|
||||
format!("publicationGate {}", entry.publication_gate),
|
||||
"private false".to_string(),
|
||||
|
|
@ -10022,6 +10030,7 @@ fn project_repo_work_map_entry_to_local_verse(
|
|||
commit_sha: entry.commit_sha.clone(),
|
||||
safe_action_family: entry.safe_action_family.clone(),
|
||||
modeling_summary: entry.modeling_summary.clone(),
|
||||
modeling_finding_receipt_id: entry.modeling_finding_receipt_id.clone(),
|
||||
soul_verdict_receipt_id: entry.soul_verdict_receipt_id.clone(),
|
||||
mind_gateway_review_id: entry.mind_gateway_review_id.clone(),
|
||||
mind_state_commit_receipt_id: entry.mind_state_commit_receipt_id.clone(),
|
||||
|
|
@ -11508,6 +11517,44 @@ fn run_close(args: CloseArgs) -> Result<Value> {
|
|||
declared_changed_paths.join(", ")
|
||||
)
|
||||
});
|
||||
let modeling_finding_receipt_id = format!("repo-work-close-{item_slug}-modeling-finding");
|
||||
let modeling_finding = RepoWorkModelingFinding {
|
||||
schema_version: REPO_WORK_MODELING_FINDING_SCHEMA_VERSION.to_string(),
|
||||
receipt_id: modeling_finding_receipt_id.clone(),
|
||||
item: item.clone(),
|
||||
model_ref: args
|
||||
.closure_model_ref
|
||||
.clone()
|
||||
.expect("passed Modeling gate requires model ref"),
|
||||
soul_verdict_receipt_id: soul_verdict.receipt_id.clone(),
|
||||
verdict: args
|
||||
.closure_model_verdict
|
||||
.clone()
|
||||
.expect("passed Modeling gate requires verdict"),
|
||||
finding: args
|
||||
.closure_model_finding
|
||||
.clone()
|
||||
.expect("passed Modeling gate requires finding"),
|
||||
summary: modeling_summary,
|
||||
changed_paths: declared_changed_paths.clone(),
|
||||
commit_sha: commit_sha.clone(),
|
||||
emitted_at: Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
|
||||
private_state_exposed: false,
|
||||
contract: "Modeling interpretation of Soul-verified repo consequence; Mind must reread this typed receipt before map admission.".to_string(),
|
||||
};
|
||||
put_repo_work_modeling_finding(&runtime_store, &modeling_finding)?;
|
||||
let modeling_finding =
|
||||
runtime_repo_work_modeling_finding(&runtime_store, &modeling_finding_receipt_id)?
|
||||
.ok_or_else(|| anyhow!("persisted Modeling finding could not be reread"))?;
|
||||
if modeling_finding.soul_verdict_receipt_id != soul_verdict.receipt_id
|
||||
|| modeling_finding.commit_sha != commit_sha
|
||||
|| modeling_finding.changed_paths != declared_changed_paths
|
||||
|| modeling_finding.verdict.trim().to_ascii_lowercase() != "passed"
|
||||
{
|
||||
return Err(anyhow!(
|
||||
"persisted Modeling finding does not match Soul-verified consequence"
|
||||
));
|
||||
}
|
||||
let gateway_id = format!("repo-work-close-{item_slug}-mind-review");
|
||||
let mind_review = MindGatewayReview {
|
||||
schema_version: MIND_GATEWAY_REVIEW_SCHEMA_VERSION.to_string(),
|
||||
|
|
@ -11517,13 +11564,13 @@ fn run_close(args: CloseArgs) -> Result<Value> {
|
|||
decision: MindGatewayDecision::Accept,
|
||||
allowed_effects: vec![
|
||||
"repoWorkClosure".to_string(),
|
||||
"modelingSummary".to_string(),
|
||||
"modelingFinding".to_string(),
|
||||
"publicationGate".to_string(),
|
||||
],
|
||||
refused_effects: Vec::new(),
|
||||
reasons: vec![
|
||||
"Soul passed the branch-local Hands consequence.".to_string(),
|
||||
"Modeling summary is source-grounded in execute receipt, closure review, and commit proof.".to_string(),
|
||||
format!("Mind reread typed Modeling finding {}.", modeling_finding.receipt_id),
|
||||
"Mind admits closure metadata only; Bifrost still gates publication and merge.".to_string(),
|
||||
],
|
||||
contract: "Mind review for repo-work closure; admits the verified Modeling summary and publication gate without granting merge or service authority.".to_string(),
|
||||
|
|
@ -11536,7 +11583,7 @@ fn run_close(args: CloseArgs) -> Result<Value> {
|
|||
args.state_revision,
|
||||
vec![
|
||||
"repoWork.closure".to_string(),
|
||||
"repoWork.modelingSummary".to_string(),
|
||||
"repoWork.modelingFinding".to_string(),
|
||||
"repoWork.map".to_string(),
|
||||
],
|
||||
Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
|
||||
|
|
@ -11551,7 +11598,8 @@ fn run_close(args: CloseArgs) -> Result<Value> {
|
|||
declared_changed_paths.clone(),
|
||||
&commit_sha,
|
||||
&closure_review,
|
||||
&modeling_summary,
|
||||
&modeling_finding.summary,
|
||||
&modeling_finding.receipt_id,
|
||||
&soul_verdict.receipt_id,
|
||||
&mind_review.gateway_id,
|
||||
&mind_commit.receipt_id,
|
||||
|
|
@ -11616,7 +11664,8 @@ fn run_close(args: CloseArgs) -> Result<Value> {
|
|||
},
|
||||
"closureReview": closure_review,
|
||||
"modeling": {
|
||||
"summary": modeling_summary,
|
||||
"findingReceiptId": modeling_finding.receipt_id,
|
||||
"summary": modeling_finding.summary,
|
||||
"changedPaths": execute_receipt["changedPaths"],
|
||||
"commitSha": execute_receipt["handsReceipts"]["commitSha"],
|
||||
"source": "epiphany.repo_work_closure_review.v0",
|
||||
|
|
@ -16192,6 +16241,58 @@ mod authority_tests {
|
|||
assert!(tick.contains("await-modeling"));
|
||||
assert!(tick.contains("explicit model-authored Modeling finding"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn modeling_finding_round_trips_and_refuses_private_state() -> Result<()> {
|
||||
let temp = tempfile::tempdir()?;
|
||||
let store = temp.path().join("runtime.cc");
|
||||
initialize_runtime_spine(
|
||||
&store,
|
||||
RuntimeSpineInitOptions {
|
||||
runtime_id: "modeling-test".to_string(),
|
||||
display_name: "Modeling Test".to_string(),
|
||||
created_at: "2026-07-12T00:00:00Z".to_string(),
|
||||
},
|
||||
)?;
|
||||
put_soul_verdict_receipt(
|
||||
&store,
|
||||
&SoulVerdictReceipt {
|
||||
schema_version: SOUL_VERDICT_RECEIPT_SCHEMA_VERSION.to_string(),
|
||||
receipt_id: "soul-1".to_string(),
|
||||
source_result_id: "result-1".to_string(),
|
||||
source_job_id: "job-1".to_string(),
|
||||
verdict: "passed".to_string(),
|
||||
summary: "verified".to_string(),
|
||||
evidence_ids: Vec::new(),
|
||||
risks: Vec::new(),
|
||||
emitted_at: "2026-07-12T00:00:00Z".to_string(),
|
||||
contract: "test".to_string(),
|
||||
},
|
||||
)?;
|
||||
let mut finding = RepoWorkModelingFinding {
|
||||
schema_version: REPO_WORK_MODELING_FINDING_SCHEMA_VERSION.to_string(),
|
||||
receipt_id: "modeling-finding-1".to_string(),
|
||||
item: "item-1".to_string(),
|
||||
model_ref: "model-job-1".to_string(),
|
||||
soul_verdict_receipt_id: "soul-1".to_string(),
|
||||
verdict: "passed".to_string(),
|
||||
finding: "Verified consequence updates the repo map.".to_string(),
|
||||
summary: "Map updated.".to_string(),
|
||||
changed_paths: vec!["README.md".to_string()],
|
||||
commit_sha: "abc123".to_string(),
|
||||
emitted_at: "2026-07-12T00:00:01Z".to_string(),
|
||||
private_state_exposed: true,
|
||||
contract: "test".to_string(),
|
||||
};
|
||||
assert!(put_repo_work_modeling_finding(&store, &finding).is_err());
|
||||
finding.private_state_exposed = false;
|
||||
put_repo_work_modeling_finding(&store, &finding)?;
|
||||
assert_eq!(
|
||||
runtime_repo_work_modeling_finding(&store, &finding.receipt_id)?,
|
||||
Some(finding)
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn adopted_action_item_from_plan(plan: &Value) -> Value {
|
||||
|
|
|
|||
|
|
@ -963,6 +963,8 @@ pub struct EpiphanyCultMeshRepoWorkMapEntry {
|
|||
pub private_state_exposed: bool,
|
||||
#[cultcache(key = 21)]
|
||||
pub notes: Vec<String>,
|
||||
#[cultcache(key = 22)]
|
||||
pub modeling_finding_receipt_id: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)]
|
||||
|
|
@ -5567,6 +5569,11 @@ fn validate_repo_work_map_entry(entry: &EpiphanyCultMeshRepoWorkMapEntry) -> Res
|
|||
"repo work map entry requires map_entry_id and item"
|
||||
));
|
||||
}
|
||||
if entry.modeling_finding_receipt_id.trim().is_empty() {
|
||||
return Err(anyhow!(
|
||||
"repo work map entry requires a Modeling finding receipt"
|
||||
));
|
||||
}
|
||||
if !entry.durable_state_admitted {
|
||||
return Err(anyhow!(
|
||||
"repo work map entry projection requires admitted durable state"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ mod hands_gateway;
|
|||
mod heartbeat_state;
|
||||
mod memory_graph;
|
||||
mod mind_gateway;
|
||||
mod modeling_gateway;
|
||||
mod organ_dependencies;
|
||||
mod persona_memory_cache;
|
||||
mod persona_turn;
|
||||
|
|
@ -652,6 +653,9 @@ pub use mind_gateway::mind_review_allows_state;
|
|||
pub use mind_gateway::mind_review_reorient_acceptance;
|
||||
pub use mind_gateway::mind_review_role_acceptance;
|
||||
pub use mind_gateway::mind_state_commit_receipt;
|
||||
pub use modeling_gateway::REPO_WORK_MODELING_FINDING_SCHEMA_VERSION;
|
||||
pub use modeling_gateway::REPO_WORK_MODELING_FINDING_TYPE;
|
||||
pub use modeling_gateway::RepoWorkModelingFinding;
|
||||
pub use organ_dependencies::EPIPHANY_LAUNCH_ORGAN_CONTRACT_SCHEMA_VERSION;
|
||||
pub use organ_dependencies::EPIPHANY_ORGAN_DEPENDENCY_SCHEMA_VERSION;
|
||||
pub use organ_dependencies::EPIPHANY_STANDING_ORGANS;
|
||||
|
|
@ -781,6 +785,7 @@ pub use runtime_spine::put_hands_patch_receipt;
|
|||
pub use runtime_spine::put_hands_pr_receipt;
|
||||
pub use runtime_spine::put_mind_gateway_review;
|
||||
pub use runtime_spine::put_mind_state_commit_receipt;
|
||||
pub use runtime_spine::put_repo_work_modeling_finding;
|
||||
pub use runtime_spine::put_runtime_reorient_worker_result;
|
||||
pub use runtime_spine::put_runtime_role_worker_result;
|
||||
pub use runtime_spine::put_soul_verdict_receipt;
|
||||
|
|
@ -801,6 +806,7 @@ pub use runtime_spine::runtime_latest_hands_receipt_chain_after;
|
|||
pub use runtime_spine::runtime_mind_gateway_review;
|
||||
pub use runtime_spine::runtime_mind_state_commit_receipt;
|
||||
pub use runtime_spine::runtime_reorient_worker_result;
|
||||
pub use runtime_spine::runtime_repo_work_modeling_finding;
|
||||
pub use runtime_spine::runtime_role_worker_result;
|
||||
pub use runtime_spine::runtime_schema_catalog_response;
|
||||
pub use runtime_spine::runtime_soul_verdict_receipt;
|
||||
|
|
|
|||
39
epiphany-core/src/modeling_gateway.rs
Normal file
39
epiphany-core/src/modeling_gateway.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
use cultcache_rs::DatabaseEntry;
|
||||
|
||||
pub const REPO_WORK_MODELING_FINDING_TYPE: &str = "epiphany.modeling.repo_work_finding";
|
||||
pub const REPO_WORK_MODELING_FINDING_SCHEMA_VERSION: &str =
|
||||
"epiphany.modeling.repo_work_finding.v0";
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, DatabaseEntry)]
|
||||
#[cultcache(
|
||||
type = "epiphany.modeling.repo_work_finding",
|
||||
schema = "RepoWorkModelingFinding"
|
||||
)]
|
||||
pub struct RepoWorkModelingFinding {
|
||||
#[cultcache(key = 0)]
|
||||
pub schema_version: String,
|
||||
#[cultcache(key = 1)]
|
||||
pub receipt_id: String,
|
||||
#[cultcache(key = 2)]
|
||||
pub item: String,
|
||||
#[cultcache(key = 3)]
|
||||
pub model_ref: String,
|
||||
#[cultcache(key = 4)]
|
||||
pub soul_verdict_receipt_id: String,
|
||||
#[cultcache(key = 5)]
|
||||
pub verdict: String,
|
||||
#[cultcache(key = 6)]
|
||||
pub finding: String,
|
||||
#[cultcache(key = 7)]
|
||||
pub summary: String,
|
||||
#[cultcache(key = 8)]
|
||||
pub changed_paths: Vec<String>,
|
||||
#[cultcache(key = 9)]
|
||||
pub commit_sha: String,
|
||||
#[cultcache(key = 10)]
|
||||
pub emitted_at: String,
|
||||
#[cultcache(key = 11)]
|
||||
pub private_state_exposed: bool,
|
||||
#[cultcache(key = 12)]
|
||||
pub contract: String,
|
||||
}
|
||||
|
|
@ -40,6 +40,9 @@ use crate::mind_gateway::MIND_VERSE_ADOPTION_RECEIPT_SCHEMA_VERSION;
|
|||
use crate::mind_gateway::MIND_VERSE_ADOPTION_RECEIPT_TYPE;
|
||||
use crate::mind_gateway::MindGatewayReview;
|
||||
use crate::mind_gateway::MindStateCommitReceipt;
|
||||
use crate::modeling_gateway::REPO_WORK_MODELING_FINDING_SCHEMA_VERSION;
|
||||
use crate::modeling_gateway::REPO_WORK_MODELING_FINDING_TYPE;
|
||||
use crate::modeling_gateway::RepoWorkModelingFinding;
|
||||
use crate::organ_dependencies::EpiphanyLaunchOrganContract;
|
||||
use crate::soul_gateway::SoulVerdictReceipt;
|
||||
use crate::soul_gateway::*;
|
||||
|
|
@ -723,6 +726,7 @@ pub fn runtime_spine_cache(store_path: impl AsRef<Path>) -> Result<CultCache> {
|
|||
cache.register_entry_type::<EpiphanyCoordinatorRunReceipt>()?;
|
||||
cache.register_entry_type::<MindGatewayReview>()?;
|
||||
cache.register_entry_type::<MindStateCommitReceipt>()?;
|
||||
cache.register_entry_type::<RepoWorkModelingFinding>()?;
|
||||
cache.register_entry_type::<EyesEvidencePacket>()?;
|
||||
cache.register_entry_type::<SubstrateGateRepoAccessGrantReceipt>()?;
|
||||
cache.register_entry_type::<HandsActionIntent>()?;
|
||||
|
|
@ -1720,6 +1724,52 @@ pub fn runtime_soul_verdict_receipt(
|
|||
cache.get::<SoulVerdictReceipt>(receipt_id)
|
||||
}
|
||||
|
||||
pub fn put_repo_work_modeling_finding(
|
||||
store_path: impl AsRef<Path>,
|
||||
finding: &RepoWorkModelingFinding,
|
||||
) -> Result<()> {
|
||||
validate_non_empty(&finding.receipt_id, "Modeling finding receipt id")?;
|
||||
validate_non_empty(&finding.item, "Modeling finding item")?;
|
||||
validate_non_empty(&finding.model_ref, "Modeling finding model ref")?;
|
||||
validate_non_empty(
|
||||
&finding.soul_verdict_receipt_id,
|
||||
"Modeling finding Soul verdict receipt id",
|
||||
)?;
|
||||
validate_non_empty(&finding.verdict, "Modeling finding verdict")?;
|
||||
validate_non_empty(&finding.finding, "Modeling finding text")?;
|
||||
validate_non_empty(&finding.commit_sha, "Modeling finding commit sha")?;
|
||||
validate_non_empty(&finding.emitted_at, "Modeling finding timestamp")?;
|
||||
if finding.schema_version != REPO_WORK_MODELING_FINDING_SCHEMA_VERSION {
|
||||
return Err(anyhow!("unsupported Modeling finding schema"));
|
||||
}
|
||||
if finding.private_state_exposed {
|
||||
return Err(anyhow!("Modeling finding cannot expose private state"));
|
||||
}
|
||||
let mut cache = runtime_spine_cache(store_path)?;
|
||||
cache.pull_all_backing_stores()?;
|
||||
require_identity(&cache)?;
|
||||
let soul = cache
|
||||
.get::<SoulVerdictReceipt>(&finding.soul_verdict_receipt_id)?
|
||||
.ok_or_else(|| anyhow!("Modeling finding requires its Soul verdict receipt"))?;
|
||||
if soul.verdict.trim().to_ascii_lowercase() != "passed" {
|
||||
return Err(anyhow!(
|
||||
"Modeling finding requires a passing Soul verdict receipt"
|
||||
));
|
||||
}
|
||||
cache.put(&finding.receipt_id, finding)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn runtime_repo_work_modeling_finding(
|
||||
store_path: impl AsRef<Path>,
|
||||
receipt_id: &str,
|
||||
) -> Result<Option<RepoWorkModelingFinding>> {
|
||||
validate_non_empty(receipt_id, "Modeling finding receipt id")?;
|
||||
let mut cache = runtime_spine_cache(store_path)?;
|
||||
cache.pull_all_backing_stores()?;
|
||||
cache.get::<RepoWorkModelingFinding>(receipt_id)
|
||||
}
|
||||
|
||||
pub fn put_continuity_recovery_receipt(
|
||||
store_path: impl AsRef<Path>,
|
||||
receipt: &ContinuityRecoveryReceipt,
|
||||
|
|
@ -2306,6 +2356,21 @@ fn epiphany_mutation_contracts() -> Vec<CultNetDocumentMutationContract> {
|
|||
"Job results are evidence records; review and acceptance are separate typed flows.",
|
||||
],
|
||||
),
|
||||
mutation_contract(
|
||||
REPO_WORK_MODELING_FINDING_TYPE,
|
||||
REPO_WORK_MODELING_FINDING_SCHEMA_VERSION,
|
||||
vec![
|
||||
CultNetDocumentOperation::Snapshot,
|
||||
CultNetDocumentOperation::ReceiptWatch,
|
||||
],
|
||||
CultNetMutationAuthority::ReadOnly,
|
||||
vec![],
|
||||
vec![],
|
||||
vec![
|
||||
"Modeling findings interpret a Soul-verified repo consequence before Mind admits a map update.",
|
||||
"Schedulers and raw CLI fields cannot substitute for this persisted receipt.",
|
||||
],
|
||||
),
|
||||
mutation_contract(
|
||||
MIND_THOUGHT_TYPE,
|
||||
MIND_THOUGHT_SCHEMA_VERSION,
|
||||
|
|
|
|||
|
|
@ -107,7 +107,11 @@ The repo-work scheduler obeys the same order. After a branch-local execute
|
|||
receipt it stops at `await-modeling`; it cannot invoke closure or manufacture
|
||||
Modeling/Mind evidence. `epiphany-work close` requires explicit model
|
||||
authorship, model reference, verdict, and finding before it can admit a map.
|
||||
Deterministic checks remain Soul evidence, not a substitute for Modeling.
|
||||
Deterministic checks remain Soul evidence, not a substitute for Modeling. The
|
||||
accepted interpretation is persisted as
|
||||
`epiphany.modeling.repo_work_finding.v0`; it references the passing Soul verdict,
|
||||
commit, and changed paths. Mind rereads that typed receipt and the admitted repo
|
||||
map plus CultMesh projection carry its receipt ID.
|
||||
|
||||
Manual edits and programmatic actions converge at the same receipt and Mind
|
||||
admission boundaries. A later action cannot retroactively make an unrecorded
|
||||
|
|
|
|||
|
|
@ -116,9 +116,11 @@ Exit evidence:
|
|||
|
||||
Status: active. The scheduler can no longer impersonate Modeling/Mind after
|
||||
Hands execution, and closure refuses deterministic fallback or a passing
|
||||
verdict without an explicit model-authored finding. The remaining cut is to
|
||||
persist that Modeling finding as its own typed runtime document and make Mind
|
||||
admission consume it rather than accepting CLI fields directly.
|
||||
verdict without an explicit model-authored finding. That finding now persists
|
||||
as a typed runtime document backed by a passing Soul receipt; Mind rereads it,
|
||||
and repo-map/CultMesh admission carries its receipt ID. The remaining wound is
|
||||
atomicity: Mind receipts and the custom repo-map MessagePack store still commit
|
||||
through separate persistence paths.
|
||||
|
||||
- Prove Hands → Soul → Modeling → Mind → Self on a fresh repository without
|
||||
supervisor implementation or direct worker-thought inspection.
|
||||
|
|
|
|||
|
|
@ -2011,6 +2011,16 @@ detached disposable-repo smoke under
|
|||
Modeling admission and Modeling refusal paths. Next persist the Modeling
|
||||
finding as a first-class typed runtime document so Mind consumes a receipt, not
|
||||
CLI-shaped evidence.
|
||||
That typed boundary is now live. `RepoWorkModelingFinding` is a registered
|
||||
CultCache/CultNet runtime document requiring a passing Soul receipt, explicit
|
||||
model provenance, finding text, commit, changed paths, and a private-state seal.
|
||||
Closure persists and rereads it before Mind review; the repo-map entry and
|
||||
CultMesh row carry `modelingFindingReceiptId`. Three authority tests pass, all
|
||||
248 core library tests pass, and the uncontaminated detached disposable-repo
|
||||
smoke at `.epiphany-smoke/closure-model-typed-rerun/stdout.json` passed explicit
|
||||
Modeling admission and refusal. Next collapse Mind receipts plus repo-map
|
||||
admission into one typed transaction; the custom repo-map MessagePack write is
|
||||
still a second persistence authority.
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -659,4 +659,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`. Gjallar 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: Separate repo-work Modeling evidence from closure orchestration. Persist the explicit model-authored closure finding as a typed runtime document, make Mind/map admission consume that document, and prove CLI fields or scheduler code cannot fabricate or bypass it.
|
||||
next_action: Unify repo-work map admission under typed CultCache transaction ownership. Mind review/commit, the typed Modeling finding reference, and the durable repo-map entry currently cross separate runtime and custom MessagePack writes; move the map entry into the typed store and make partial admission structurally impossible before preserving its CultMesh projection.
|
||||
|
|
|
|||
Reference in a new issue