diff --git a/crates/huginn-mind/src/move_tests.rs b/crates/huginn-mind/src/move_tests.rs index 216edb0..f4e1c7c 100644 --- a/crates/huginn-mind/src/move_tests.rs +++ b/crates/huginn-mind/src/move_tests.rs @@ -632,6 +632,15 @@ fn an_import_never_cites_or_resolves_a_follow_up_the_receiver_wrote() { refusal(import_from_kiko(&mut recv, vec![follow_up("FU-I", native_ref.clone())])), MindRefusal::ImportOutsideCampaign { root: CAMPAIGN.into() } ); + // Nor may a closing of its own point at it: an imported follow-up superseded by her native one. + let own_fu = follow_up("FU-I2", r(K::Question, &q1)); + let own_fu_ref = r(K::FollowUp, &pipeline_key(&own_fu).unwrap()); + committed(import_from_kiko(&mut recv, vec![own_fu])); + let before = head(&recv); + assert_eq!( + refusal(import_from_kiko(&mut recv, vec![resolution(own_fu_ref, ResolutionOutcome::Superseded { by: vec![native_ref.clone()] })])), + MindRefusal::ImportOutsideCampaign { root: CAMPAIGN.into() } + ); assert_eq!(head(&recv), before); // Her follow-up still closes natively. committed(admit(&mut recv, vec![resolution(native_ref, ResolutionOutcome::Withdrawn { reason: "x".into() })])); diff --git a/schemas/cultnet/huginn.mind_response.v1.schema.json b/schemas/cultnet/huginn.mind_response.v1.schema.json index 46d5a82..fcdac91 100644 --- a/schemas/cultnet/huginn.mind_response.v1.schema.json +++ b/schemas/cultnet/huginn.mind_response.v1.schema.json @@ -1677,7 +1677,7 @@ "const": "ImportFromSelf" }, { - "description": "An import carries a document of `root`, which is no campaign this mind holds or the batch carries, or which this mind holds a native write under.", + "description": "An import carries a document of `root`, which is no campaign this mind holds or the batch carries, or under which this mind holds a native write that is not a follow-up or idea admitted after the import began, or which cites or resolves one of its own native documents.", "type": "object", "properties": { "ImportOutsideCampaign": {