aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
GitHub aien-dev/aien-sovereign-core-mv#347 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/76d4390a1d38dd20.bundle -o 76d4390a1d38dd20.bundle git fetch 76d4390a1d38dd20.bundle refs/pull/347/head
Provenance
github-import 1
aien-dev/aien-sovereign-core-mv
347
1df2fa3294ccebd0828812cc559e45fed4cffc17
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":347,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/347","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:53Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 9c215f76..98f79f22 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:285ca7eafbe46d808ebe5e4fb533e464bfdf0fedaf3eef486ac2e2c8826baf6f", - "compiled_at": "2026-10-08T18:38:52Z", + "compiled_at": "2026-10-08T18:55:20Z", "compiler": "crumb-compile/1", - "digest": "sha256:d7d8e1cf3dd77ae6a53627aac4ed52c58c25317ec9cebc392f20a285f3db745d", + "digest": "sha256:1c14d74e59a2a42765dcc448ed30548f158958df5a2b28824a14b29b38509070", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", - "files": 1611, - "generated_at_commit": "bdda4408e4b41ff453846c71e4c2dc1b207f7cc2", - "source_tree": "sha256:eea94d1ed80695bb0752311ba2d5cf507cbc09a0e5c869366397c811c4d21f02" + "files": 1612, + "generated_at_commit": "d94a9b0916bc20d9362935907647f14971904e1f", + "source_tree": "sha256:f0ecd4268a0556b78cf8ae1c2686d8b13328b7edcce037f6d56ef898aa52208e" } }, "history": [], diff --git a/crates/aien-runtime/src/requirements.rs b/crates/aien-runtime/src/requirements.rs index 83503fb7..ea80a8a4 100644 --- a/crates/aien-runtime/src/requirements.rs +++ b/crates/aien-runtime/src/requirements.rs @@ -60,10 +60,19 @@ //! (`1.`, `2)`), emphasis marks and trailing `:.!?#`, trimmed, whitespace //! collapsed, compared case-insensitively. //! - word form (topics): lowercase, strip ONE suffix of `ment ing ion es ed -//! s` (only when 3 or more letters remain), then one trailing `e` (when 4 +//! s` (only when 3 or more letters remain; not the `s` of a final `ss`), then one trailing `e` (when 4 //! or more letters remain). `preparing`, `prepare` and `prepared` agree; -//! `publishing` and `public` do not. Irregular forms (`running` / `run`) -//! do not agree: the check errs on the side of refusing. +//! `publishing` and `public` do not. A word whose suffix was stripped also +//! matches with a final `i` as `y` and with a doubled final consonant +//! undoubled, so `dry`, `dried` and `drying`, `label`, `labelled` and +//! `labelling`, `run` and `running` agree (`fill` and `file`, `ski` and +//! `sky` do not). A topic word ending in `age` or `ages` also matches +//! without it when 4 letters remain, by a verb form only: the topic +//! `storage` is covered by `store` or `stored`, `postage` not by `post` +//! (sc#332). Irregular forms (`withdrew` / `withdraw`) +//! do not agree: the check errs on the side of refusing, unless the goal +//! names the form for that topic, written into the topic as `withdraw (or +//! withdrew)`. //! - sentence: a run of at least two words ended by `.`, `!` or `?` (not //! inside a number such as `3.10`); an unfinished last fragment of at //! least three words counts as one. List markers are ignored. @@ -123,7 +132,9 @@ pub enum Requirement { /// Section titles that must each appear as a heading. RequiredHeadings(Vec<String>), /// Topics (each a list of content words) that must each be covered: every - /// content word must appear in the prose as a word form. + /// content word must appear in the prose as a word form. A topic written + /// `withdraw (or withdrew, withdrawn)` is also covered by any one of the + /// forms the goal named for it. RequiredTopics(Vec<String>), /// Every section holds at least this many sentences. MinSentencesPerSection(usize), @@ -291,13 +302,18 @@ impl Requirement { Requirement::RequiredTopics(p) => { let have: HashSet<String> = words_of(&prose_lines(content).join("\n")) .iter() - .map(|w| stem(w)) - .collect(); - let missing: Vec<String> = p - .iter() - .filter(|t| !content_words(t).iter().all(|w| have.contains(&stem(w)))) - .cloned() + .flat_map(|w| word_keys(w, false)) .collect(); + let has = |w: &String| word_keys(w, true).iter().any(|k| have.contains(k)); + let covered = |t: &str| { + let (topic, forms) = topic_forms(t); + content_words(topic).iter().all(has) + || forms.iter().any(|f| { + let f = words_of(f); + !f.is_empty() && f.iter().all(|w| have.contains(&stem(w))) + }) + }; + let missing: Vec<String> = p.iter().filter(|t| !covered(t)).cloned().collect(); (!missing.is_empty()).then(|| { format!( "{label}, not covered: {} (use those words, or their word forms, in the text)", @@ -437,17 +453,72 @@ pub(crate) fn content_words(topic: &str) -> Vec<String> { /// Conservative word form (see the module docs). pub(crate) fn stem(w: &str) -> String { + stem_parts(w).0 +} + +/// The word form and whether a suffix was stripped. +fn stem_parts(w: &str) -> (String, bool) { let mut s = w.to_lowercase(); + let mut stripped = false; for suf in ["ment", "ing", "ion", "es", "ed", "s"] { - if s.len() >= suf.len() + 3 && s.ends_with(suf) { + // A final `ss` is not a plural: `dress`, `class`, `mess` (sc#332). + if s.len() >= suf.len() + 3 && s.ends_with(suf) && !(suf == "s" && s.ends_with("ss")) { s.truncate(s.len() - suf.len()); + stripped = true; break; } } if s.len() >= 4 && s.ends_with('e') { s.pop(); } - s + (s, stripped) +} + +/// The forms a word may match as (see the module docs): its word form and, +/// only when a suffix was stripped, that form with a final `i` as `y` +/// (`dried`: `dry`) or a doubled final consonant undoubled (`labelled`: +/// `label`). A topic word ending in `age` or `ages` (4 letters left) also +/// matches a document word that is a verb form of the rest, one that ended +/// in `e` or lost a suffix (`storage`: `store`, `stored`; not `post` for +/// `postage`); those keys carry an `age:` mark so nothing else meets them +/// (sc#332). `topic` is true for the topic's words, false for the document's. +pub(crate) fn word_keys(w: &str, topic: bool) -> Vec<String> { + let (s, stripped) = stem_parts(w); + let mut keys = vec![s.clone()]; + if !topic && (stripped || w.to_lowercase().ends_with('e')) { + keys.push(format!("age:{s}")); + } + if stripped { + if let Some(r) = s.strip_suffix('i') { + keys.push(format!("{r}y")); + } + let b = s.as_bytes(); + if b.len() >= 4 { + let (x, y) = (b[b.len() - 1], b[b.len() - 2]); + if x == y && x.is_ascii_alphabetic() && !b"aeiou".contains(&x) { + keys.push(s[..s.len() - 1].to_string()); + } + } + } + if topic { + let low = w.to_lowercase(); + for suf in ["ages", "age"] { + if let Some(r) = low.strip_suffix(suf).filter(|r| r.len() >= 4) { + keys.push(format!("age:{}", stem(r))); + break; + } + } + } + keys +} + +/// A topic and the extra forms the goal named for it: `withdraw (or withdrew, +/// withdrawn)` is `("withdraw", ["withdrew", "withdrawn"])`. +pub(crate) fn topic_forms(t: &str) -> (&str, Vec<&str>) { + match t.strip_suffix(')').and_then(|x| x.split_once(" (or ")) { + Some((topic, forms)) => (topic, forms.split(',').map(str::trim).collect()), + None => (t, Vec::new()), + } } /// Heading text as compared: see the module docs. diff --git a/crates/aien-runtime/src/requirements_extract.rs b/crates/aien-runtime/src/requirements_extract.rs index d4f0caac..870175fa 100644 --- a/crates/aien-runtime/src/requirements_extract.rs +++ b/crates/aien-runtime/src/requirements_extract.rs @@ -19,6 +19,7 @@ //! | `sections|headings titled|named|called A, B and C`, `sections: A, B and C`; with quoted titles also `section(s) is|are titled "A"` and `[one] section(s) must|should|will|shall|can be titled "A"` | `RequiredHeadings` (a count before the noun must equal the number of titles; `organise it under three sections titled ...` is read the same). The is/are/be forms stay UNCERTAIN after `each every all any` or with `if unless optionally optional may might when whenever perhaps maybe` in the clause | //! | `between N and M lines|words` (N <= M) | `MinX(N)` and `MaxX(M)`, inclusive. Other nouns, `from N to M`, ranges like `2-3`, `... or so`, and a range on a part of the document (a countable noun or `gap space distance` right before `between`, or `each every per` within three words) stay UNCERTAIN | //! | `covers|covering A, B and C` (and `to|should|must|will|can cover ...`) | `RequiredTopics` | +//! | `[must|...] cover|covers|covering N topics: a, b and c` (N equals the list, which ends with the item after its `and`/`or`); a later `... form ... for example X or Y for the first|second|...|last [one]` adds the named forms the word-form rule does not already accept, as `topic (or X)` | `RequiredTopics` | //! | `include|contain|use|mention the [exact|following|specific|same] word(s)|term(s) X, Y` or `"X", "Y"`, optionally followed by `somewhere|anywhere in it|in the text|file|document|list` (a place that is the whole document; any other place, a choice (`or`), or a count or scope after the list is UNCERTAIN) | `RequiredWords` | //! | `make sure|be sure|ensure|check that the word(s)|term(s) X and Y [both|all|each] appear|occur|show up|are used|are included|are present [somewhere in it]` | `RequiredWords`; a negator, another verb, a narrower place, a choice (`or`) or a count after it is UNCERTAIN | //! | `must|should|will|shall|to|also name|mention A, B and C [by name]` where every item is one capitalised word | `RequiredWords` (names); a list mixing names and other words, a choice (`or`), a count or scope after it, or a title with a period (`Dr. Smith`) is UNCERTAIN; a list without names (`the file README.md`, `2024`, `the Smith family`) stays silent | @@ -44,7 +45,8 @@ //! cannot be verified reliably (headings, lists, abbreviations), so such a goal //! is UNCERTAIN and refused. `N words of plain text` without a named section //! (`section titled "T"`, `the last section`) is a count over an unknown scope and -//! is UNCERTAIN. `three topics: a, b, c` is not mechanically checkable and is UNCERTAIN. +//! is UNCERTAIN. `cover three topics: a, b and c` is read only when the count equals +//! the list (sc#332); otherwise it is UNCERTAIN. //! "N lines at least" is a lower bound; "a single line" is exactly one. Left UNCERTAIN on //! purpose: ranges ("2-3 lines"), "a dozen lines", "three-plus sections", "line count at //! least 40", counts of shell commands or snippets, level-two headings given as a bare @@ -86,7 +88,7 @@ //! trailing `and` splits the LAST comma item (`Who to ask and Glossary`), //! so a title that itself contains `and` is only safe inside the list. -use crate::requirements::{content_words, ItemKind, Requirement}; +use crate::requirements::{content_words, topic_forms, word_keys, ItemKind, Requirement}; /// What a goal says: recognized requirements and the spans it could not read. #[derive(Debug, Clone, Default, PartialEq, Eq)] @@ -978,6 +980,70 @@ fn split_list(region: &str) -> Vec<String> { segs } +/// A list region cut after the item that follows its closing "and" or "or": +/// "interest, deposit, withdraw and balance, and the file needs" is +/// "interest, deposit, withdraw and balance". None when that last item holds +/// another "and" or "or" ("labelling and storage and disposal"). +fn closed_list(region: &str) -> Option<&str> { + let low = region.to_ascii_lowercase(); + let Some(join) = [" and ", " or "].iter().filter_map(|j| low.find(j)).min() else { + return Some(region); + }; + let end = region[join..].find(',').map_or(region.len(), |c| join + c); + let last = &low[join + 4..end]; + (!last.contains(" and ") && !last.contains(" or ")).then_some(®ion[..end]) +} + +/// `(position, forms)` for each "<form> or <form> for the first|second|...| +/// last [one|topic]" in a sentence that speaks of a word "form", for a list of +/// `len` topics. +fn positional_forms(goal: &str, len: usize) -> Vec<(usize, Vec<String>)> { + const ORDINALS: [&str; 12] = [ + "first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", + "tenth", "eleventh", "twelfth", + ]; + let mut out = Vec::new(); + for sentence in goal.split_inclusive(['.', '!', '?']) { + let low = sentence.to_ascii_lowercase(); + if !low + .split(|c: char| !c.is_ascii_alphabetic()) + .any(|w| matches!(w, "form" | "forms")) + { + continue; + } + let Some(cue) = ["for example", "for instance", "such as", "e.g."] + .iter() + .filter_map(|c| low.find(c).map(|i| i + c.len())) + .min() + else { + continue; + }; + for seg in low[cue..].split([',', ';']) { + let seg = seg.trim().trim_end_matches(['.', '!', '?']); + let seg = seg.strip_prefix("and ").unwrap_or(seg); + let Some((forms, pos)) = seg.split_once(" for the ") else { + continue; + }; + let ord = pos.split_whitespace().next().unwrap_or(""); + let at = match ORDINALS.iter().position(|o| *o == ord) { + Some(i) if i < len => i, + None if ord == "last" => len - 1, + _ => continue, + }; + let forms: Vec<String> = forms + .split(" or ") + .flat_map(|f| f.split(" and ")) + .map(|f| f.trim().to_string()) + .filter(|f| !f.is_empty() && f.split_whitespace().count() == 1) + .collect(); + if !forms.is_empty() { + out.push((at, forms)); + } + } + } + out +} + /// Words that may name the whole document as the place a word must appear: /// "somewhere", "anywhere", "in it", "in the text|file|document|list". A part /// that may be a section ("the summary", "the body", "the notes") is not one. @@ -1700,8 +1766,12 @@ pub fn analyze(goal: &str) -> Extraction { } // ---- topics: "covers A, B and C" ---- + // The topics of the last counted list, for the forms a later sentence ties + // to them by position ("withdrew ... for the third"). + let mut counted_topics: Vec<usize> = Vec::new(); for k in 0..n { let w = toks[k].word.as_str(); + let starts_sentence = k == 0 || toks[k - 1].raw.ends_with(['.', '!', '?']); let key = matches!(w, "covers" | "covering") || (w == "cover" && k >= 1 @@ -1709,6 +1779,47 @@ pub fn analyze(goal: &str) -> Extraction { toks[k - 1].word.as_str(), "to" | "should" | "must" | "will" | "can" | "also" | "shall" | "would" | "and" )); + // "cover|covers|covering N topics: a, b and c" (sc#332): the count must + // equal the list, which ends with the item after its "and" or "or". + let counted = matches!(w, "cover" | "covers" | "covering") + && (key || starts_sentence) + && matches!(toks.get(k + 2), Some(t) if matches!(t.word.as_str(), "topics" | "topic") && t.raw.ends_with(':')); + if counted { + let declared = match parse_num(&toks[k + 1].word) { + Num::Val(v) => Some(v), + _ => None, + }; + let region = closed_list(list_region(goal, toks[k + 2].end)).unwrap_or(""); + let items: Vec<String> = split_list(region).iter().map(|t| trim_title(t)).collect(); + let ok = !region.is_empty() + && declared == Some(items.len()) + && !negated_before(&toks, k) + && items.len() <= 12 + && !items.iter().any(|t| has_count_and_noun(t)) + && items + .iter() + .all(|t| (1..=4).contains(&content_words(t).len())); + if ok { + counted_topics.clear(); + for t in items { + let at = topics.iter().position(|x| *x == t).unwrap_or_else(|| { + topics.push(t); + topics.len() - 1 + }); + counted_topics.push(at); + } + handled.extend(k..=k + 2); + mark_bytes( + &mut handled, + &toks, + toks[k + 2].end, + toks[k + 2].end + region.len(), + ); + } else { + bad(&mut unsure, k, false); + } + continue; + } if !key { continue; } @@ -1736,6 +1847,33 @@ pub fn analyze(goal: &str) -> Extraction { } } + // Forms a goal ties to a counted topic by position (sc#332): "for example + // interests or interested for the first one, ..., withdrew or withdrawing + // for the third". A form the word-form rule already accepts is not added. + if !counted_topics.is_empty() { + for (at, forms) in positional_forms(goal, counted_topics.len()) { + let i = counted_topics[at]; + let (topic, _) = topic_forms(&topics[i]); + let words = content_words(topic); + // Only a form of this topic: one word, the topic one word, the same + // first three letters, and not already matched by the word-form rule. + let [word] = words.as_slice() else { + continue; + }; + let keys = word_keys(word, true); + let extra: Vec<String> = forms + .into_iter() + .filter(|f| { + f.get(..3).is_some_and(|p| word.starts_with(p)) + && !word_keys(f, false).iter().any(|k| keys.contains(k)) + }) + .collect(); + if !extra.is_empty() { + topics[i] = format!("{topic} (or {})", extra.join(", ")); + } + } + } + // ---- required words and phrases ---- // `include|contain the phrase "X"` (one quoted phrase, ending its clause). let low = goal.to_ascii_lowercase(); diff --git a/crates/aien-runtime/tests/requirements_topics_test.rs b/crates/aien-runtime/tests/requirements_topics_test.rs new file mode 100644 index 00000000..604fde42 --- /dev/null +++ b/crates/aien-runtime/tests/requirements_topics_test.rs @@ -0,0 +1,144 @@ +//! sc#332: a counted topic list ("Cover three topics: drying, labelling and +//! storage.") was refused as uncertain before any model call, and the topic +//! check refused word forms the goal itself accepts ("dried", "Label", +//! "stored", "withdrew"). The list is now read when the count matches it, the +//! word-form rule agrees on y/i, doubled consonants and -age, and a form the +//! goal ties to one topic ("withdrew ... for the third") is accepted for it. +use aien_runtime::requirements::{analyze, refusal_reason, Requirement}; + +use Requirement::*; + +/// tasks-oq3-v4 W3, verbatim. +const W3: &str = "Please put together docs/SEED-SAVING.md, a short explainer on saving vegetable seeds from your own garden. Make it at least eighteen lines long. Cover three topics: drying, labelling and storage. A topic counts as covered when its word, or another form of it such as dried, labelled or stored, appears in the file."; +/// v5 D3 (sc#339), verbatim. +const D3: &str = "Write an explainer for beginners called docs/savings-basics.md about how a savings account works. It must cover four topics: interest, deposit, withdraw and balance, and the file needs at least 18 lines. A topic counts as covered when its word or another form of that word appears, for example interests or interested for the first one, deposits or deposited for the second, withdrew or withdrawing for the third, and balances or balancing for the last."; + +fn reqs(goal: &str) -> Vec<Requirement> { + let ex = analyze(goal); + assert!( + ex.uncertain.is_empty(), + "{goal:?} should be read, uncertain: {:?}", + ex.uncertain + ); + ex.requirements +} + +fn topics(r: &[Requirement]) -> Vec<String> { + r.iter() + .find_map(|x| match x { + RequiredTopics(t) => Some(t.clone()), + _ => None, + }) + .expect("a topic requirement") +} + +#[test] +fn the_counted_topic_lists_are_read() { + let r = reqs(W3); + assert!(r.contains(&MinLines(18)), "{r:?}"); + assert_eq!(topics(&r), ["drying", "labelling", "storage"]); + let r = reqs(D3); + assert!(r.contains(&MinLines(18)), "{r:?}"); + assert_eq!( + topics(&r), + ["interest", "deposit", "withdraw (or withdrew)", "balance"] + ); +} + +#[test] +fn the_forms_the_goals_accept_cover_their_topics() { + // evidence-v5/topic-forms-probe.txt: each sentence uses a form the goal accepts. + for (topic, text) in [ + ( + "drying", + "Leave the pods until they have dried on the plant.", + ), + ("drying", "Dry the seeds on a plate."), + ("labelling", "Label each envelope with the variety."), + ("labelling", "Keep every packet labelled."), + ("storage", "Store the jars somewhere cool."), + ("storage", "The seeds are stored in a tin."), + ("withdraw (or withdrew)", "She withdrew fifty pounds."), + ("withdraw (or withdrew)", "Withdrawing money is free."), + ("interest", "The bank pays interest monthly."), + ("balance", "Check the balances each week."), + // the same rule elsewhere + ("manage", "Good management helps."), + ("running", "Run every day."), + ("addressing", "Write the address."), + ("stories", "Tell a story."), + // sc#347 review: plurals of -age words still agree + ("messages", "Read the message."), + ("message", "Read the messages."), + ("storages", "Check the storage."), + ("languages", "One language."), + ("average", "Two averages."), + ("fill", "The cup is filled."), + ("dress", "She dressed well."), + ("classes", "One class."), + ] { + let r = [RequiredTopics(vec![topic.to_string()])]; + assert!(refusal_reason(&r, text).is_none(), "{topic}: {text}"); + } +} + +#[test] +fn other_words_still_do_not_cover_a_topic() { + for (topic, text) in [ + ("drying", "Wet the seeds."), + ("storage", "Stop here."), + ("labelling", "Lab work is fun."), + ("manage", "One man went."), + // sc#347 review: unrelated words do not collide + ("file", "Fill the cup."), + ("mile", "The mill turns."), + ("tale", "A tall tree."), + ("ski", "The sky is blue."), + ("pack", "A package came."), + ("postage", "Post it today."), + ("shortage", "A short note."), + ("message", "What a mess."), + ("storage", "A story."), + // an irregular form counts only when the goal names it + ("withdraw", "She withdrew fifty pounds."), + ("withdraw (or withdrew)", "She withdrawal fifty pounds."), + ] { + let r = [RequiredTopics(vec![topic.to_string()])]; + assert!(refusal_reason(&r, text).is_some(), "{topic}: {text}"); + } +} + +#[test] +fn counted_topic_near_misses_stay_uncertain() { + for goal in [ + // the count differs from the list + "Cover three topics: drying and storage.", + "It must cover two topics: interest, deposit and balance.", + // negated + "Do not cover three topics: drying, labelling and storage.", + // a list item that is not a topic + "Cover two topics: drying and at least 3 lines.", + // sc#347 review: the last item runs on + "Cover three topics: drying, labelling and storage and disposal.", + "Cover three topics: drying, labelling and storage and write at least 20 lines.", + ] { + let ex = analyze(goal); + assert!( + !ex.uncertain.is_empty(), + "{goal:?} should stay uncertain, got {:?}", + ex.requirements + ); + } +} + +#[test] +fn forms_are_read_only_when_tied_to_their_topic() { + // A sentence that is not about word forms, or a form that is not one of + // the topic's, adds nothing. + for goal in [ + "Cover three topics: drying, labelling and storage. In the final format, for example sold or bought for the first one.", + "Cover three topics: drying, labelling and storage. Any form is fine, for example sold or bought for the first one.", + ] { + assert_eq!(topics(&reqs(goal)), ["drying", "labelling", "storage"], "{goal}"); + } +} diff --git a/crates/aien-runtime/tests/requirements_usability_test.rs b/crates/aien-runtime/tests/requirements_usability_test.rs index 9b615476..e0d33b57 100644 --- a/crates/aien-runtime/tests/requirements_usability_test.rs +++ b/crates/aien-runtime/tests/requirements_usability_test.rs @@ -117,7 +117,8 @@ fn wider_wordings_are_read() { #[test] fn unscoped_word_counts_and_topic_lists_stay_uncertain() { uncertain("Write it with at least 15 words of plain text."); - uncertain("Cover three topics: drying, labelling and storage."); + // sc#332: a counted topic list is read when the count matches the list. + uncertain("Cover two topics: drying, labelling and storage."); uncertain("Put one fenced shell code example in each of them."); uncertain("Each section has two sentences."); } @@ -268,7 +269,7 @@ const SILENT: [&str; 12] = [ ]; /// Goals whose explicit requirements are all read and enforced. -const RECOGNIZED: [&str; 18] = [ +const RECOGNIZED: [&str; 19] = [ "dryrun-tasks-v2/N1", "tasks-oq3-v3/N1", "tasks-oq3-v4/N1", @@ -283,6 +284,7 @@ const RECOGNIZED: [&str; 18] = [ "tasks-oq3-v4/RT6", "tasks-oq3-v4/W1", "tasks-oq3-v4/W2", + "tasks-oq3-v4/W3", "tasks-oq3-v4/W4", // sc#334: "at least twelve of them" after `a line starting with "- [ ]"`. "tasks-oq3-v4/W5", @@ -292,7 +294,7 @@ const RECOGNIZED: [&str; 18] = [ ]; /// Goals still refused as uncertain, each with the span that is reported and why. -const REFUSED: [(&str, &str, &str); 6] = [ +const REFUSED: [(&str, &str, &str); 5] = [ ( "dryrun-tasks-v2/T6", "one section per symptom", @@ -313,11 +315,6 @@ const REFUSED: [(&str, &str, &str); 6] = [ "one-sentence thank-you note", "sentence counts over the whole document are not verified", ), - ( - "tasks-oq3-v4/W3", - "three topics", - "a topic list after a colon cannot be checked mechanically", - ), ( "tasks-v8/D5", "10 frequently asked questions and answers",