Persist resumable newspaper reconciliation
This commit is contained in:
parent
dfe0926041
commit
db48befa71
9 changed files with 1452 additions and 248 deletions
|
|
@ -23,6 +23,41 @@ pub struct ModelAgentRun<Output> {
|
|||
pub receipts: Vec<ModelStageReceipt>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ModelAgentProgress<Output> {
|
||||
Accepted(ModelAgentRun<Output>),
|
||||
Exhausted(ModelAgentExhausted),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ModelAgentExhausted {
|
||||
pub stage: String,
|
||||
pub max_steps: usize,
|
||||
pub final_observation: Option<serde_json::Value>,
|
||||
pub receipts: Vec<ModelStageReceipt>,
|
||||
}
|
||||
|
||||
impl ModelAgentExhausted {
|
||||
pub fn message(&self) -> String {
|
||||
format!(
|
||||
"model agent {} exhausted {} semantic steps; final tool observation: {}",
|
||||
self.stage,
|
||||
self.max_steps,
|
||||
self.final_observation
|
||||
.as_ref()
|
||||
.map(serde_json::Value::to_string)
|
||||
.unwrap_or_else(|| "none".into()),
|
||||
)
|
||||
}
|
||||
|
||||
fn into_failure(self) -> ModelAgentFailure {
|
||||
ModelAgentFailure {
|
||||
message: self.message(),
|
||||
receipts: self.receipts,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ModelAgentFailure {
|
||||
pub message: String,
|
||||
|
|
@ -93,6 +128,17 @@ pub async fn run_model_agent<Tool: ModelAgentTool>(
|
|||
spec: &ModelAgentSpec,
|
||||
tool: &mut Tool,
|
||||
) -> std::result::Result<ModelAgentRun<Tool::Output>, ModelAgentFailure> {
|
||||
match run_model_agent_progress(port, spec, tool).await? {
|
||||
ModelAgentProgress::Accepted(run) => Ok(run),
|
||||
ModelAgentProgress::Exhausted(exhausted) => Err(exhausted.into_failure()),
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn run_model_agent_progress<Tool: ModelAgentTool>(
|
||||
port: &dyn ModelPort,
|
||||
spec: &ModelAgentSpec,
|
||||
tool: &mut Tool,
|
||||
) -> std::result::Result<ModelAgentProgress<Tool::Output>, ModelAgentFailure> {
|
||||
if spec.max_steps == 0 {
|
||||
return Err(ModelAgentFailure {
|
||||
message: format!("model agent {} has no semantic step budget", spec.stage),
|
||||
|
|
@ -236,7 +282,10 @@ pub async fn run_model_agent<Tool: ModelAgentTool>(
|
|||
} => {
|
||||
receipts.push(stage.receipt);
|
||||
receipts.extend(tool_receipts);
|
||||
return Ok(ModelAgentRun { output, receipts });
|
||||
return Ok(ModelAgentProgress::Accepted(ModelAgentRun {
|
||||
output,
|
||||
receipts,
|
||||
}));
|
||||
}
|
||||
ModelAgentToolOutcome::Rejected {
|
||||
finding,
|
||||
|
|
@ -273,17 +322,12 @@ pub async fn run_model_agent<Tool: ModelAgentTool>(
|
|||
}
|
||||
}
|
||||
|
||||
Err(ModelAgentFailure {
|
||||
message: format!(
|
||||
"model agent {} exhausted {} semantic steps; final tool observation: {}",
|
||||
spec.stage,
|
||||
spec.max_steps,
|
||||
last_observation
|
||||
.map(|observation| observation.to_string())
|
||||
.unwrap_or_else(|| "none".into()),
|
||||
),
|
||||
Ok(ModelAgentProgress::Exhausted(ModelAgentExhausted {
|
||||
stage: spec.stage.clone(),
|
||||
max_steps: spec.max_steps,
|
||||
final_observation: last_observation,
|
||||
receipts,
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
/// Builds one deterministic causal ancestry set for every model stage. This is
|
||||
|
|
@ -637,4 +681,34 @@ mod tests {
|
|||
.contains(&failure.receipts[1].storage_key().to_owned())
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn progress_api_returns_exhaustion_as_resumable_state() {
|
||||
let model = ScriptedModel {
|
||||
outputs: Mutex::new(vec![r#"{"value":"still-wrong"}"#.into()]),
|
||||
requests: Mutex::new(Vec::new()),
|
||||
};
|
||||
let spec = ModelAgentSpec {
|
||||
stage: "fixture_agent".into(),
|
||||
model: MODEL_BALANCED.into(),
|
||||
snapshot_binding: "snapshot:1".into(),
|
||||
instructions: "Use the tool.".into(),
|
||||
source_receipt_ids: vec!["source:one".into()],
|
||||
temperature: Some(0.0),
|
||||
max_output_tokens: Some(128),
|
||||
max_steps: 1,
|
||||
};
|
||||
|
||||
let progress = run_model_agent_progress(&model, &spec, &mut ExactTool)
|
||||
.await
|
||||
.unwrap();
|
||||
let ModelAgentProgress::Exhausted(exhausted) = progress else {
|
||||
panic!("one rejected action must remain resumable")
|
||||
};
|
||||
|
||||
assert_eq!(exhausted.stage, "fixture_agent");
|
||||
assert_eq!(exhausted.max_steps, 1);
|
||||
assert_eq!(exhausted.receipts.len(), 2);
|
||||
assert_eq!(exhausted.final_observation.unwrap()["kind"], "wrong_value");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,16 @@ struct FoundationCheckpoint {
|
|||
model_receipts: Vec<ghostlight_dungeon::model::ModelStageReceipt>,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct NewspaperReconciliationImportEnvelope {
|
||||
schema: String,
|
||||
wave_index: u64,
|
||||
recovery_start_wave: usize,
|
||||
world_revision: u64,
|
||||
import: ghostlight_dungeon::newspaper::WorldNewspaperReconciliationImport,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct ClockBindingProposalCheckpoint {
|
||||
|
|
@ -784,6 +794,10 @@ async fn main() -> anyhow::Result<()> {
|
|||
let initial_location_ids = campaign.locations.keys().cloned().collect::<Vec<_>>();
|
||||
(campaign, vec![], vec![], None, initial_location_ids)
|
||||
};
|
||||
let newspaper_reconciliation_import_path =
|
||||
std::env::var_os("GHOSTLIGHT_STRATEGIC_NEWSPAPER_RECONCILIATION_IMPORT")
|
||||
.map(std::path::PathBuf::from);
|
||||
let mut newspaper_reconciliation_import_consumed = false;
|
||||
if resume {
|
||||
ghostlight_dungeon::compiler::validate_campaign_runtime(&campaign)?;
|
||||
} else {
|
||||
|
|
@ -1708,8 +1722,9 @@ async fn main() -> anyhow::Result<()> {
|
|||
issue_path,
|
||||
issue_audit_path,
|
||||
newspaper_error,
|
||||
newspaper_reconciliation_checkpoint,
|
||||
) = match issue_composition {
|
||||
Ok(composition) => {
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Accepted { composition }) => {
|
||||
let issue_path = root.join(format!("newspaper-wave-{wave_index:02}.md"));
|
||||
let issue_audit_path =
|
||||
root.join(format!("newspaper-wave-{wave_index:02}.audit.md"));
|
||||
|
|
@ -1732,8 +1747,21 @@ async fn main() -> anyhow::Result<()> {
|
|||
Some(issue_path),
|
||||
Some(issue_audit_path),
|
||||
None,
|
||||
None,
|
||||
)
|
||||
}
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Pending {
|
||||
checkpoint,
|
||||
model_receipts,
|
||||
}) => (
|
||||
None,
|
||||
None,
|
||||
model_receipts,
|
||||
None::<std::path::PathBuf>,
|
||||
None::<std::path::PathBuf>,
|
||||
None,
|
||||
Some(checkpoint),
|
||||
),
|
||||
Err(error) => {
|
||||
let Some(failure) = error.downcast_ref::<
|
||||
ghostlight_dungeon::newspaper::WorldNewspaperCompositionFailure,
|
||||
|
|
@ -1747,6 +1775,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
None::<std::path::PathBuf>,
|
||||
None::<std::path::PathBuf>,
|
||||
Some(error.to_string()),
|
||||
None,
|
||||
)
|
||||
}
|
||||
};
|
||||
|
|
@ -1764,6 +1793,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
"newspaper_grounding":newspaper_grounding,
|
||||
"newspaper_model_receipts":newspaper_model_receipts,
|
||||
"newspaper_error":newspaper_error,
|
||||
"newspaper_reconciliation_checkpoint":newspaper_reconciliation_checkpoint,
|
||||
"issue_path":issue_path,
|
||||
"issue_audit_path":issue_audit_path,
|
||||
});
|
||||
|
|
@ -1808,6 +1838,30 @@ async fn main() -> anyhow::Result<()> {
|
|||
let recomposition = if recomposition_path.is_file() {
|
||||
read_checkpoint::<serde_json::Value>(&recomposition_path)?
|
||||
} else {
|
||||
if let Some(import_path) = newspaper_reconciliation_import_path.as_deref() {
|
||||
let import =
|
||||
read_checkpoint::<NewspaperReconciliationImportEnvelope>(import_path)?;
|
||||
if import.wave_index == wave_index {
|
||||
if import.schema
|
||||
!= "ghostlight.strategic_newspaper_reconciliation_import.v1"
|
||||
|| import.recovery_start_wave != newspaper_recovery_start_wave
|
||||
|| import.world_revision != issue_campaign.revision
|
||||
{
|
||||
anyhow::bail!(
|
||||
"strategic newspaper reconciliation import does not bind this missing issue"
|
||||
)
|
||||
}
|
||||
ghostlight_dungeon::newspaper::admit_world_newspaper_reconciliation_import(
|
||||
&issue_campaign,
|
||||
&issue_title,
|
||||
&newspaper_voice,
|
||||
5,
|
||||
&store,
|
||||
import.import,
|
||||
)?;
|
||||
newspaper_reconciliation_import_consumed = true;
|
||||
}
|
||||
}
|
||||
let composition = match compose_persisted_newspaper(
|
||||
model.as_ref(),
|
||||
&issue_campaign,
|
||||
|
|
@ -1818,7 +1872,40 @@ async fn main() -> anyhow::Result<()> {
|
|||
)
|
||||
.await
|
||||
{
|
||||
Ok(composition) => composition,
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Accepted {
|
||||
composition,
|
||||
}) => composition,
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Pending {
|
||||
checkpoint,
|
||||
model_receipts,
|
||||
}) => {
|
||||
let checkpoint_id = checkpoint.id().to_owned();
|
||||
let checkpoint_digest = strategic_smoke_digest(&checkpoint)?;
|
||||
let checkpoint_suffix = checkpoint_digest
|
||||
.strip_prefix("sha256:")
|
||||
.ok_or_else(|| anyhow::anyhow!("invalid checkpoint digest"))?;
|
||||
publish_immutable_checkpoint(
|
||||
&root.join(format!(
|
||||
"newspaper-wave-{wave_index:02}-recomposition-pending-{checkpoint_suffix}.json"
|
||||
)),
|
||||
&serde_json::json!({
|
||||
"schema":"ghostlight.newspaper_wave_recomposition_pending.v1",
|
||||
"wave_index":wave_index,
|
||||
"recovery_start_wave":newspaper_recovery_start_wave,
|
||||
"world_revision":issue_campaign.revision,
|
||||
"source_campaign_digest":source_campaign_digest,
|
||||
"editorial_contract_digest":editorial_contract_digest,
|
||||
"checkpoint_digest":checkpoint_digest,
|
||||
"checkpoint":checkpoint,
|
||||
"model_receipt_set_digest":strategic_smoke_digest(&model_receipts)?,
|
||||
"model_receipts":model_receipts,
|
||||
}),
|
||||
)?;
|
||||
anyhow::bail!(
|
||||
"newspaper reconciliation is pending at checkpoint {}",
|
||||
checkpoint_id
|
||||
)
|
||||
}
|
||||
Err(error) => {
|
||||
let model_receipts = error
|
||||
.downcast_ref::<
|
||||
|
|
@ -1938,6 +2025,11 @@ async fn main() -> anyhow::Result<()> {
|
|||
);
|
||||
report.insert("newspaper_error".into(), serde_json::Value::Null);
|
||||
}
|
||||
if newspaper_reconciliation_import_path.is_some()
|
||||
&& !newspaper_reconciliation_import_consumed
|
||||
{
|
||||
anyhow::bail!("configured newspaper reconciliation import was not consumed")
|
||||
}
|
||||
}
|
||||
let final_plan = final_wave_field(&wave_reports, "plan")?;
|
||||
let final_commit = final_wave_field(&wave_reports, "commit")?;
|
||||
|
|
@ -1962,7 +2054,57 @@ async fn main() -> anyhow::Result<()> {
|
|||
)
|
||||
.await
|
||||
{
|
||||
Ok(composition) => composition,
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Accepted { composition }) => {
|
||||
composition
|
||||
}
|
||||
Ok(ghostlight_dungeon::newspaper::WorldNewspaperAdvance::Pending {
|
||||
checkpoint,
|
||||
model_receipts,
|
||||
}) => {
|
||||
let checkpoint_id = checkpoint.id().to_owned();
|
||||
let pending_result = serde_json::json!({
|
||||
"schema":"ghostlight.live_strategic_smoke_pending.v1",
|
||||
"scenario_id":scenario_id,
|
||||
"pressure":pressure,
|
||||
"wave_count":wave_count,
|
||||
"newspaper_recovery_start_wave":newspaper_recovery_start_wave,
|
||||
"campaign_id":campaign.id,
|
||||
"elapsed_seconds":started.elapsed().as_secs_f64(),
|
||||
"model_runtime":model_selection.status("configured"),
|
||||
"world_compile":&world_compile,
|
||||
"model_receipt_hash":&final_model_receipt_hash,
|
||||
"model_stage_receipts":&model_stage_receipts,
|
||||
"plan":&final_plan,
|
||||
"commit":&final_commit,
|
||||
"waves":&wave_reports,
|
||||
"event_count":campaign.events.len(),
|
||||
"news_count":campaign.news.len(),
|
||||
"final_newspaper_checkpoint":checkpoint,
|
||||
"final_newspaper_model_receipts":model_receipts,
|
||||
"player_location_unchanged":true,
|
||||
"player_state_unchanged":true,
|
||||
"store":root.join("campaign.cc")
|
||||
});
|
||||
let result_path = root.join("result.json");
|
||||
std::fs::write(&result_path, serde_json::to_vec_pretty(&pending_result)?)?;
|
||||
std::fs::write(
|
||||
root.join("status.json"),
|
||||
serde_json::to_vec_pretty(&serde_json::json!({
|
||||
"schema":"ghostlight.live_strategic_smoke_status.v1",
|
||||
"state":"pending_newspaper_reconciliation",
|
||||
"waves_completed":wave_count,
|
||||
"waves_requested":wave_count,
|
||||
"newspaper_recovery_start_wave":newspaper_recovery_start_wave,
|
||||
"world_revision":campaign.revision,
|
||||
"event_count":campaign.events.len(),
|
||||
"news_count":campaign.news.len(),
|
||||
"updated_at":Utc::now(),
|
||||
"result_path":result_path,
|
||||
"newspaper_checkpoint_id":checkpoint_id,
|
||||
}))?,
|
||||
)?;
|
||||
anyhow::bail!("final newspaper reconciliation is pending at checkpoint {checkpoint_id}")
|
||||
}
|
||||
Err(error) => {
|
||||
let final_newspaper_model_receipts = error
|
||||
.downcast_ref::<ghostlight_dungeon::newspaper::WorldNewspaperCompositionFailure>()
|
||||
|
|
@ -2083,42 +2225,16 @@ async fn compose_persisted_newspaper(
|
|||
editorial_voice: &str,
|
||||
max_articles: usize,
|
||||
store: &ghostlight_dungeon::persistence::CampaignStore,
|
||||
) -> anyhow::Result<ghostlight_dungeon::newspaper::WorldNewspaperComposition> {
|
||||
let result = ghostlight_dungeon::newspaper::compose_world_newspaper(
|
||||
) -> anyhow::Result<ghostlight_dungeon::newspaper::WorldNewspaperAdvance> {
|
||||
ghostlight_dungeon::newspaper::advance_world_newspaper(
|
||||
model,
|
||||
campaign,
|
||||
title,
|
||||
editorial_voice,
|
||||
max_articles,
|
||||
store,
|
||||
)
|
||||
.await;
|
||||
let receipts = match &result {
|
||||
Ok(composition) => Some(composition.model_receipts.as_slice()),
|
||||
Err(error) => error
|
||||
.downcast_ref::<ghostlight_dungeon::newspaper::WorldNewspaperCompositionFailure>()
|
||||
.map(|failure| failure.model_receipts.as_slice()),
|
||||
};
|
||||
if let Some(receipts) = receipts {
|
||||
if let Err(persistence_error) = store.persist_model_stage_receipts(receipts) {
|
||||
if let Err(error) = &result
|
||||
&& let Some(failure) = error.downcast_ref::<
|
||||
ghostlight_dungeon::newspaper::WorldNewspaperCompositionFailure,
|
||||
>()
|
||||
{
|
||||
return Err(anyhow::Error::new(
|
||||
ghostlight_dungeon::newspaper::WorldNewspaperCompositionFailure {
|
||||
message: format!(
|
||||
"{}; model-receipt persistence failed: {persistence_error}",
|
||||
failure.message
|
||||
),
|
||||
model_receipts: failure.model_receipts.clone(),
|
||||
},
|
||||
));
|
||||
}
|
||||
return Err(persistence_error);
|
||||
}
|
||||
}
|
||||
result
|
||||
.await
|
||||
}
|
||||
|
||||
async fn compile_strategic_campaign(
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -380,7 +380,7 @@ impl CampaignRegistry {
|
|||
&self,
|
||||
request: WorldNewspaperRequest,
|
||||
model: &dyn ModelPort,
|
||||
) -> Result<crate::newspaper::WorldNewspaperIssue> {
|
||||
) -> Result<crate::newspaper::WorldNewspaperAdvance> {
|
||||
if request.schema != "ghostlight.world_newspaper_request.v2"
|
||||
|| request.max_articles == 0
|
||||
|| request.max_articles > 6
|
||||
|
|
@ -409,36 +409,15 @@ impl CampaignRegistry {
|
|||
.load::<Campaign>("campaign.v1", &request.campaign_id.to_string())?
|
||||
.ok_or_else(|| anyhow!("campaign is missing"))?
|
||||
.1;
|
||||
let composition_result = crate::newspaper::compose_world_newspaper(
|
||||
crate::newspaper::advance_world_newspaper(
|
||||
model,
|
||||
&campaign,
|
||||
request.title,
|
||||
request.editorial_voice,
|
||||
usize::from(request.max_articles),
|
||||
&runtime.store,
|
||||
)
|
||||
.await;
|
||||
if let Err(error) = &composition_result
|
||||
&& let Some(failure) =
|
||||
error.downcast_ref::<crate::newspaper::WorldNewspaperCompositionFailure>()
|
||||
&& let Err(persistence_error) = runtime
|
||||
.store
|
||||
.persist_model_stage_receipts(&failure.model_receipts)
|
||||
{
|
||||
return Err(anyhow::Error::new(
|
||||
crate::newspaper::WorldNewspaperCompositionFailure {
|
||||
message: format!(
|
||||
"{}; model-receipt persistence failed: {persistence_error}",
|
||||
failure.message
|
||||
),
|
||||
model_receipts: failure.model_receipts.clone(),
|
||||
},
|
||||
));
|
||||
}
|
||||
let composition = composition_result?;
|
||||
runtime
|
||||
.store
|
||||
.persist_model_stage_receipts(&composition.model_receipts)?;
|
||||
Ok(composition.issue)
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn acknowledge_external_proposal(
|
||||
|
|
@ -1410,7 +1389,10 @@ mod tests {
|
|||
let newspaper = registry
|
||||
.compose_world_newspaper(newspaper_request.clone(), &RegistryNewspaperModel)
|
||||
.await
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.into_accepted()
|
||||
.unwrap()
|
||||
.issue;
|
||||
assert_eq!(newspaper.source_world_revision, 0);
|
||||
assert!(newspaper.articles.is_empty());
|
||||
|
||||
|
|
@ -1627,7 +1609,10 @@ mod tests {
|
|||
let newspaper = registry
|
||||
.compose_world_newspaper(newspaper_request.clone(), &RegistryNewspaperModel)
|
||||
.await
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.into_accepted()
|
||||
.unwrap()
|
||||
.issue;
|
||||
assert_eq!(newspaper.source_world_revision, 3);
|
||||
assert_eq!(newspaper.articles.len(), 1);
|
||||
assert_eq!(
|
||||
|
|
@ -1651,7 +1636,10 @@ mod tests {
|
|||
let repeated_newspaper = registry
|
||||
.compose_world_newspaper(newspaper_request.clone(), &RegistryNewspaperModel)
|
||||
.await
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.into_accepted()
|
||||
.unwrap()
|
||||
.issue;
|
||||
assert_eq!(repeated_newspaper.id, newspaper.id);
|
||||
assert_eq!(
|
||||
runtime
|
||||
|
|
@ -1663,17 +1651,23 @@ mod tests {
|
|||
);
|
||||
|
||||
let receipt_count_before_rejection = successful_receipts.len();
|
||||
let error = registry
|
||||
.compose_world_newspaper(newspaper_request, &RejectingRegistryNewspaperModel)
|
||||
let mut rejected_request = newspaper_request;
|
||||
rejected_request.title.push_str(" Evening");
|
||||
let pending = registry
|
||||
.compose_world_newspaper(rejected_request, &RejectingRegistryNewspaperModel)
|
||||
.await
|
||||
.unwrap_err();
|
||||
let failure = error
|
||||
.downcast_ref::<crate::newspaper::WorldNewspaperCompositionFailure>()
|
||||
.expect("registry must preserve the typed terminal editorial failure");
|
||||
assert_eq!(failure.model_receipts.len(), 8);
|
||||
.unwrap();
|
||||
let crate::newspaper::WorldNewspaperAdvance::Pending {
|
||||
checkpoint,
|
||||
model_receipts,
|
||||
} = pending
|
||||
else {
|
||||
panic!("registry must preserve typed pending reconciliation state")
|
||||
};
|
||||
assert_eq!(model_receipts.len(), 8);
|
||||
assert_eq!(checkpoint.generation(), 3);
|
||||
let stored_after_rejection = runtime.store.keys("persona_stage_receipt.v1").unwrap();
|
||||
let newly_observed_failure_receipts = failure
|
||||
.model_receipts
|
||||
let newly_observed_failure_receipts = model_receipts
|
||||
.iter()
|
||||
.map(|receipt| receipt.storage_key().to_owned())
|
||||
.filter(|receipt_id| !successful_receipts.contains(receipt_id))
|
||||
|
|
@ -1683,7 +1677,7 @@ mod tests {
|
|||
receipt_count_before_rejection + newly_observed_failure_receipts.len()
|
||||
);
|
||||
assert!(
|
||||
failure.model_receipts.iter().all(|receipt| {
|
||||
model_receipts.iter().all(|receipt| {
|
||||
stored_after_rejection.contains(&receipt.storage_key().to_owned())
|
||||
})
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue