Give the two failable loosenings entries of their own
Cut 9's entries file recorded three weakenings as unfailable. Two of them are reachable in this Body, so they are entries now: - The `semantic` check below `Reader::new` changes the answer for a store the reader refuses -- a doubled receipt, a row that does not decode -- from the semantic refusal to the integrity one. `V8L` is that move, and the semantic test asks a semantic query of a mind whose receipts name one write twice. - `resolutions_of` comparing a subject by `id` alone is reachable because the read side validates no `PipelineRef` it is handed. `V10L` is that comparison, and the subject-history test asks for a `Ruling` ref carrying a question's id after that question has ten resolutions. `assignments_of` ignoring the instance stays recorded as unfailable, with A5 and the derivations scoped to this mind as the reason. `specs_without_report` compares the citation by exact id, but every fixture report cited `.r1`, so the test could not tell an exact id from a cut prefix. cut-9 now carries a report of the revision it superseded and cut-12 is a superseded revision no report names, so standing and citation are each still visible on their own, and `V13L` compares by cut prefix. Fork, not closed here: Soul asked that `view` and `history` validate the ref through the leaf and refuse a malformed one typed rather than answering empty. The leaf's `Bounded` is `pub(crate)` at the pinned rev d5a36c2, so `PipelineRef::validate` cannot be called from this crate and the fix is an Epiphany change. The history test pins today's empty answer and names the reason. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
8fc39b127e
commit
333e1c4314
2 changed files with 112 additions and 20 deletions
|
|
@ -15,19 +15,23 @@
|
|||
# breaks it for the views. V1L is H41's own edit, listed here as well as in
|
||||
# `eureka-cut8-mutations.psd1` -- one mutant, two suites, one owner.
|
||||
#
|
||||
# Three weakenings the spec names have no entry because they change no
|
||||
# behaviour this Body can reach, and a mutation that cannot fail is not a
|
||||
# proof:
|
||||
# One weakening the spec names has no entry because it changes no behaviour
|
||||
# this Body can reach, and a mutation that cannot fail is not a proof:
|
||||
#
|
||||
# - The `semantic` check moved below the filters. It still refuses every query
|
||||
# that carries one; only the work done before the refusal changes.
|
||||
# - `resolutions_of` comparing a subject by `id` and ignoring `kind`. A
|
||||
# pipeline id carries its own kind segment and the leaf refuses a
|
||||
# `PipelineRef` whose kind and id disagree, so no two subjects of different
|
||||
# kinds can share an id.
|
||||
# - `assignments_of` comparing the repo and ignoring the instance. A5 refuses
|
||||
# a stewardship naming another instance, so every stewardship a mind holds
|
||||
# already names that mind.
|
||||
# already names that mind, and every other caller is a sequence this mind
|
||||
# derives over its own scope.
|
||||
#
|
||||
# The two listed beside it in the spec are failable and have entries. The
|
||||
# `semantic` check below `Reader::new` changes the answer for a store the
|
||||
# reader refuses -- a doubled receipt, a row that does not decode -- from the
|
||||
# semantic refusal to the integrity one, and `V8L` is that move. And
|
||||
# `resolutions_of` comparing a subject by `id` alone is reachable because the
|
||||
# read side never validates the `PipelineRef` it is handed: the leaf's
|
||||
# validator is not public at the pinned rev, so `history(Subject(ref))` and
|
||||
# `view(ref)` take a ref whose kind and id disagree and answer over it. `V10L`
|
||||
# is that comparison.
|
||||
@{
|
||||
Mutations = @(
|
||||
@{
|
||||
|
|
@ -179,6 +183,28 @@
|
|||
'@
|
||||
New = @'
|
||||
return Ok(PipelineQueryPage { items: vec![], matched: 0 });
|
||||
'@
|
||||
}
|
||||
@{
|
||||
Id = 'V8L'
|
||||
Rule = 'The semantic refusal is decided before the image and the receipts are read, so a store the reader refuses still answers the question the caller asked.'
|
||||
Test = 'query::tests::semantic_query_refuses_typed_until_wired'
|
||||
File = 'crates/huginn-mind/src/query.rs'
|
||||
Old = @'
|
||||
if query.semantic.is_some() {
|
||||
return Err(MindRefusal::Unavailable {
|
||||
detail: "semantic query: the index is not wired (Cut 11)".into(),
|
||||
});
|
||||
}
|
||||
let reader = Reader::new(self)?;
|
||||
'@
|
||||
New = @'
|
||||
let reader = Reader::new(self)?;
|
||||
if query.semantic.is_some() {
|
||||
return Err(MindRefusal::Unavailable {
|
||||
detail: "semantic query: the index is not wired (Cut 11)".into(),
|
||||
});
|
||||
}
|
||||
'@
|
||||
}
|
||||
@{
|
||||
|
|
@ -203,6 +229,14 @@
|
|||
.map(|(key, resolution)| { let _ = subject; (resolution.sequence, key.to_string()) })
|
||||
'@
|
||||
}
|
||||
@{
|
||||
Id = 'V10L'
|
||||
Rule = 'A subject is selected by the whole ref, kind included: the read side validates no ref it is handed, so a kind that disagrees with its id selects nothing rather than that id''s records.'
|
||||
Test = 'query::tests::a_subjects_history_lists_every_resolution_with_its_status_and_receipt'
|
||||
File = 'crates/huginn-mind/src/docs.rs'
|
||||
Old = ' self.resolutions().filter(move |(_, resolution)| resolution.subject == *subject)'
|
||||
New = ' self.resolutions().filter(move |(_, resolution)| resolution.subject.id == subject.id)'
|
||||
}
|
||||
@{
|
||||
Id = 'V11'
|
||||
Rule = 'A repo''s history is selected by (this mind, this repo), so another repo''s assignments are another history.'
|
||||
|
|
@ -233,6 +267,14 @@
|
|||
Old = ' specs_without_report: in_force(PipelineKind::CutSpec)'
|
||||
New = ' specs_without_report: of_kind(PipelineKind::CutSpec).cloned().collect::<Vec<_>>()'
|
||||
}
|
||||
@{
|
||||
Id = 'V13L'
|
||||
Rule = 'A spec is reported by a report naming its exact id, not by any report of its cut: a report of the revision this one superseded is not this revision''s report.'
|
||||
Test = 'query::tests::open_items_are_derived_from_in_force_and_citation'
|
||||
File = 'crates/huginn-mind/src/query.rs'
|
||||
Old = ' .filter(|view| !reported.contains(&view.id.id.0.as_str()))'
|
||||
New = ' .filter(|view| !reported.iter().any(|cited| root_and_local(cited).1.split(''.'').next() == root_and_local(&view.id.id.0).1.split(''.'').next()))'
|
||||
}
|
||||
@{
|
||||
Id = 'V14'
|
||||
Rule = 'A report is closed by the verdict that names it; a report is not resolvable, so nothing else closes it.'
|
||||
|
|
|
|||
Loading…
Reference in a new issue