interplane.Get Omega
Read in your language

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#348 (code only)

closed derived 5f920c3621330db0 #348

Imported from GitHub aien-dev/aien-sovereign-core-mv#348 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 7dcab3a6538e106d99a4eb5bec825837128cca06 · Head 6d410c617a5a2c6dff2ef78c9f7a7232acd17609

Fetch it

A git bundle of the pull request's head, 20037 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/5f920c3621330db0.bundle -o 5f920c3621330db0.bundle
git fetch 5f920c3621330db0.bundle refs/pull/348/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-sovereign-core-mv
348
6d410c617a5a2c6dff2ef78c9f7a7232acd17609
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":348,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/348","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:53Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 98f79f22..ef68da85 100644
--- a/.crumb
+++ b/.crumb
@@ -77,14 +77,14 @@
         }
       ],
       "children_root": "sha256:285ca7eafbe46d808ebe5e4fb533e464bfdf0fedaf3eef486ac2e2c8826baf6f",
-      "compiled_at": "2026-10-08T18:55:20Z",
+      "compiled_at": "2026-10-08T19:10:10Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:1c14d74e59a2a42765dcc448ed30548f158958df5a2b28824a14b29b38509070",
+      "digest": "sha256:ba6a3056932eeb5c7d0e197320bc4532608b28974e64ec034c543de3ebd69d36",
       "evidence_files": 187,
       "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280",
-      "files": 1612,
-      "generated_at_commit": "d94a9b0916bc20d9362935907647f14971904e1f",
-      "source_tree": "sha256:f0ecd4268a0556b78cf8ae1c2686d8b13328b7edcce037f6d56ef898aa52208e"
+      "files": 1613,
+      "generated_at_commit": "b62490c28dfecedcc619c579c32f566003208921",
+      "source_tree": "sha256:a519ee1891ce3ceb9bfbb94c8174dece790cd94e65802f8e0b68dab656168af9"
     }
   },
   "history": [],
diff --git a/crates/aien-runtime/src/requirements.rs b/crates/aien-runtime/src/requirements.rs
index ea80a8a4..f13d1fe8 100644
--- a/crates/aien-runtime/src/requirements.rs
+++ b/crates/aien-runtime/src/requirements.rs
@@ -138,6 +138,9 @@ pub enum Requirement {
     RequiredTopics(Vec<String>),
     /// Every section holds at least this many sentences.
     MinSentencesPerSection(usize),
+    /// The whole file is exactly one sentence: its prose (outside fenced code)
+    /// holds one sentence by the sentence rule in the module docs (sc#336).
+    SingleSentence,
     /// Lines ADDED to the file, measured against the prior file (see the module
     /// docs). `exact`: exactly `n`, else at least `n`. `prior` is None until
     /// the caller resolves it ([`Extraction::resolved`]); an unresolved one is unmet.
@@ -193,6 +196,7 @@ impl Requirement {
             Requirement::MinSentencesPerSection(n) => {
                 format!("at least {n} sentences in every section")
             }
+            Requirement::SingleSentence => "exactly one sentence".to_string(),
             Requirement::AddedLines { n, exact, .. } => {
                 if *exact {
                     format!("exactly {n} added non-empty lines")
@@ -409,6 +413,10 @@ impl Requirement {
                     format!("{label}, too few in: {}", shown.join(", "))
                 })
             }
+            Requirement::SingleSentence => {
+                let c = count_every_sentence(content);
+                (c != 1).then(|| format!("{label}, found {c}"))
+            }
         }
     }
 }
@@ -634,6 +642,68 @@ fn count_sentences(body: &str) -> usize {
     count
 }
 
+/// Sentences for `SingleSentence`, counted strictly: every stretch of words a
+/// stop (`.` `!` `?` `…` or a CJK stop) closes, however short ("Bye."), a stop
+/// glued to a capital ("Thanks.Bye."), and any words a line ends without a
+/// stop. Headings and fenced code are not prose. Only "e.g." / "i.e." and a
+/// title before a capitalised name ("Dr. Lee") do not end a sentence, so an
+/// unusual stop can only refuse a correct file, never pass a wrong one.
+fn count_every_sentence(content: &str) -> usize {
+    const STOPS: [char; 7] = [
+        '.', '!', '?', '\u{2026}', '\u{3002}', '\u{FF01}', '\u{FF1F}',
+    ];
+    const CLOSERS: [char; 8] = ['"', '\'', ')', ']', '*', '_', '\u{201D}', '\u{2019}'];
+    const TITLES: [&str; 4] = ["dr", "mr", "mrs", "prof"];
+    let mut count = 0usize;
+    for l in prose_lines(content) {
+        if l.trim_start().starts_with('#') {
+            continue;
+        }
+        let mut pieces: Vec<&str> = Vec::new();
+        for w in l.split_whitespace() {
+            let mut from = 0;
+            let mut it = w.char_indices().peekable();
+            while let Some((k, c)) = it.next() {
+                let cut = match it.peek() {
+                    Some(&(_, next)) => {
+                        matches!(c, '\u{3002}' | '\u{FF01}' | '\u{FF1F}')
+                            || matches!(c, '.' | '!' | '?') && next.is_uppercase()
+                    }
+                    None => false,
+                };
+                if cut {
+                    let at = k + c.len_utf8();
+                    pieces.push(&w[from..at]);
+                    from = at;
+                }
+            }
+            pieces.push(&w[from..]);
+        }
+        let mut open = false;
+        for (k, p) in pieces.iter().enumerate() {
+            open |= p.chars().any(char::is_alphanumeric);
+            let w = p.trim_end_matches(CLOSERS);
+            if !open || !w.ends_with(STOPS) {
+                continue;
+            }
+            let stem = w
+                .trim_end_matches(STOPS)
+                .trim_start_matches(['(', '"', '\''])
+                .to_lowercase();
+            let title = TITLES.contains(&stem.as_str())
+                && pieces
+                    .get(k + 1)
+                    .is_some_and(|n| n.starts_with(char::is_uppercase));
+            if !title && !matches!(stem.as_str(), "e.g" | "i.e") {
+                count += 1;
+                open = false;
+            }
+        }
+        count += usize::from(open);
+    }
+    count
+}
+
 fn numbered(t: &str) -> bool {
     let d = t.chars().take_while(|c| c.is_ascii_digit()).count();
     d > 0 && matches!(t[d..].chars().next(), Some('.') | Some(')')) && t[d + 1..].starts_with(' ')
diff --git a/crates/aien-runtime/src/requirements_extract.rs b/crates/aien-runtime/src/requirements_extract.rs
index 870175fa..f0e60a78 100644
--- a/crates/aien-runtime/src/requirements_extract.rs
+++ b/crates/aien-runtime/src/requirements_extract.rs
@@ -16,6 +16,8 @@
 //! | `N <noun> or more|fewer|less`, `N <noun> minimum|maximum`, `no longer|shorter than N <noun>` | `MinX(N)` or `MaxX(N)` |
 //! | `<noun>` = `lines` (also `non-empty|nonempty|non-blank lines`: lines are counted non-empty anyway), `words`; `items`, `steps`, `sections`, `headings`, `questions`, `paragraphs` (Min only; singular too) | lines, words, list items, numbered steps, headings, questions, paragraphs (`MinParagraphs`: runs of prose lines, see `requirements::count_paragraphs`) |
 //! | `N sentences in|per|for|within every|each section` (or `in every section, ... N sentences`) | `MinSentencesPerSection(N)` |
+//! | `a one-sentence|single-sentence X`, `a single sentence`, `just|only|exactly one sentence` (the only such phrase; no part of the file, edit or addition named in the goal) | `SingleSentence` |
+//! | `containing|with [just|only] one line that says|reads "S"` / `one line saying|reading "S"` | `AddedLines` exactly 1 and `RequiredPhrases([S])` (a final `.` `!` `?` inside quotes that end the goal sentence is not part of S) |
 //! | `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` |
@@ -41,9 +43,18 @@
 //! non-empty lines were added; `write 20 lines` at least twenty. The count must end
 //! its clause or be followed by `to in into at for about on saying describing giving
 //! listing ...`; `3 lines of context`, `10 lines per section` stay UNCERTAIN.
-//! "N-sentence" and "one-sentence" are NOT read: a sentence count over a whole document
-//! cannot be verified reliably (headings, lists, abbreviations), so such a goal
-//! is UNCERTAIN and refused. `N words of plain text` without a named section
+//! "N-sentence" is NOT read: a sentence count over a whole document cannot be
+//! verified reliably (headings, lists, abbreviations), so such a goal is UNCERTAIN
+//! and refused. The one exception (sc#336) is a file of one sentence: `a
+//! one-sentence|single-sentence X`, `a single sentence`, `just|only|exactly one
+//! sentence`, is `SingleSentence` when it is the goal's only such phrase and
+//! nothing anywhere in the goal names a part of the file (`each every per
+//! paragraph line section top title ...`) or an edit or addition (`add append
+//! insert prepend update replace rewrite put ...`); `one-sentence` needs `a`/`an`.
+//! A quoted `"S"` after `one line that says|reads|saying|reading` must be read
+//! whole: it closes the goal, or is followed by `.` `!` `?` or by a new
+//! capitalised sentence after a final `.` `!` `?`; otherwise (unclosed, empty,
+//! `"S" in bold`, `"S" and another line`) it is UNCERTAIN. `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. `cover three topics: a, b and c` is read only when the count equals
 //! the list (sc#332); otherwise it is UNCERTAIN.
@@ -392,6 +403,8 @@ fn line_verb(w: &str) -> Option<bool> {
     match w {
         "add" | "append" | "insert" | "with" => Some(true),
         "write" | "put" | "create" | "draft" | "compose" | "produce" | "generate" => Some(false),
+        // "a file containing just one line" (sc#336)
+        "containing" => Some(true),
         _ => None,
     }
 }
@@ -980,6 +993,45 @@ fn split_list(region: &str) -> Vec<String> {
     segs
 }
 
+/// The quoted text that token `q` opens and the byte after its closing
+/// quote: `"Renew the card on Friday."` is `Renew the card on Friday` when the
+/// quote closes the goal sentence (its final `.` `!` `?` is the goal's own).
+fn quoted_at(goal: &str, toks: &[Tok], q: usize) -> Option<(String, usize)> {
+    let start = toks.get(q)?.start;
+    let open = goal[start..].chars().next()?;
+    let close = match open {
+        '"' => '"',
+        '\u{201C}' => '\u{201D}',
+        _ => return None,
+    };
+    let body_at = start + open.len_utf8();
+    let len = goal[body_at..].find(close)?;
+    let end = body_at + len + close.len_utf8();
+    let body = goal[body_at..body_at + len].trim_end();
+    let rest = &goal[end..];
+    let next = rest.trim_start();
+    // The goal sentence ends inside the quote: at the end of the goal, or
+    // before a new capitalised sentence when the quoted text ends in . ! ?
+    let closes_goal = next.is_empty()
+        || body.ends_with(['.', '!', '?'])
+            && rest.starts_with(char::is_whitespace)
+            && next.starts_with(char::is_uppercase);
+    // The goal sentence ends just after the quote: `"S".`
+    let stop_after = rest.starts_with(['.', '!', '?'])
+        && rest[1..].chars().next().is_none_or(char::is_whitespace);
+    let text = if closes_goal {
+        body.trim_end_matches(['.', '!', '?'])
+    } else if stop_after {
+        body
+    } else {
+        // anything else ("in bold", "and another line", a stray inner quote)
+        // may change what the line holds
+        return None;
+    };
+    let text = text.trim();
+    (!text.is_empty()).then(|| (text.to_string(), end))
+}
+
 /// 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
@@ -1564,6 +1616,108 @@ pub fn analyze(goal: &str) -> Extraction {
                 },
             );
             handled.extend(s..=i + 1 + if bound { 2 } else { 0 });
+            // "one line that says|reads \"S\"", "one line saying \"S\"" (sc#336):
+            // that line holds S. A final . ! ? inside quotes that close the goal
+            // sentence is the goal's own punctuation and is not required.
+            if v == 1 && exact && !bound {
+                let w = |k: usize| toks.get(k).map(|t| t.word.as_str());
+                let q = match (w(i + 2), w(i + 3)) {
+                    (Some("that"), Some("says" | "reads")) => Some(i + 4),
+                    (Some("saying" | "reading"), _) => Some(i + 3),
+                    _ => None,
+                };
+                // only a quoted S is read; an unquoted one keeps the older reading
+                let quoted = q.filter(|&q| {
+                    toks.get(q)
+                        .is_some_and(|t| t.raw.starts_with(['"', '\u{201C}']))
+                });
+                match quoted.map(|q| quoted_at(goal, &toks, q)) {
+                    Some(Some((phrase, end))) => {
+                        if !phrases.contains(&phrase) {
+                            phrases.push(phrase);
+                        }
+                        mark_bytes(&mut handled, &toks, toks[i + 1].end, end);
+                    }
+                    // what the line says cannot be read whole: never drop it
+                    Some(None) => bad(&mut unsure, i + 2, false),
+                    None => {}
+                }
+            }
+        }
+    }
+
+    // ---- one sentence: "a one-sentence note", "a single sentence", "just one
+    //      sentence" (sc#336): the whole file is exactly one sentence ----
+    let lead = |i: Option<usize>| i.map(|i| toks[i].word.as_str());
+    let one_sentence = |s: usize| -> Option<usize> {
+        let w = toks[s].word.as_str();
+        if matches!(w, "one-sentence" | "single-sentence") {
+            Some(s)
+        } else if w == "sentence"
+            && s >= 1
+            && (toks[s - 1].word == "single"
+                && matches!(lead(s.checked_sub(2)), Some("a" | "one" | "just" | "only"))
+                || toks[s - 1].word == "one"
+                    && matches!(lead(s.checked_sub(2)), Some("just" | "only" | "exactly")))
+        {
+            Some(s - 1)
+        } else {
+            None
+        }
+    };
+    let phrases_at: Vec<(usize, usize)> = (0..n)
+        .filter_map(|s| one_sentence(s).map(|start| (start, s)))
+        .collect();
+    // The whole file only: nothing anywhere in the goal names a part of it, an
+    // edit or addition to a file that may hold more ("update README.md with a
+    // one-sentence summary", "... Append a goodbye."), or a second sentence
+    // ("a one-sentence abstract and a one-sentence conclusion").
+    let part = phrases_at.len() > 1
+        || toks.iter().any(|t| {
+            matches!(
+                t.word.as_str(),
+                "each"
+                    | "every"
+                    | "per"
+                    | "paragraph"
+                    | "paragraphs"
+                    | "line"
+                    | "lines"
+                    | "add"
+                    | "append"
+                    | "insert"
+                    | "prepend"
+                    | "update"
+                    | "replace"
+                    | "rewrite"
+                    | "edit"
+                    | "modify"
+                    | "change"
+                    | "shorten"
+                    | "put"
+                    | "place"
+                    | "top"
+                    | "bottom"
+                    | "beginning"
+                    | "header"
+                    | "footer"
+                    | "intro"
+                    | "introduction"
+                    | "title"
+                    | "heading"
+            ) || SECTION_NOUNS.contains(&t.word.as_str())
+        });
+    for (start, s) in phrases_at {
+        if handled.contains(&start) {
+            continue;
+        }
+        // "a one-sentence note"; "one-sentence notes" may be many
+        let one = start < s || matches!(lead(start.checked_sub(1)), Some("a" | "an"));
+        if one && !part && !negated_before(&toks, start) {
+            add(&mut counts, Requirement::SingleSentence);
+            handled.extend(start..=s);
+        } else {
+            bad(&mut unsure, start, true);
         }
     }
 
diff --git a/crates/aien-runtime/tests/requirements_one_sentence_test.rs b/crates/aien-runtime/tests/requirements_one_sentence_test.rs
new file mode 100644
index 00000000..e93305aa
--- /dev/null
+++ b/crates/aien-runtime/tests/requirements_one_sentence_test.rs
@@ -0,0 +1,182 @@
+//! sc#336: a one-sentence or one-line file was refused as uncertain before any
+//! model call. "a one-sentence X" and "a single sentence" are now read as a
+//! file of exactly one sentence (`SingleSentence`), and "containing just one
+//! line that says \"S\"" as exactly one line holding S. A goal whose
+//! destination is outside the workspace is refused for that destination
+//! first, before any requirement is read.
+use aien_runtime::requirements::{analyze, refusal_reason, Requirement};
+use aien_runtime::spine::task_decision;
+
+use Requirement::*;
+
+/// tasks-oq3-v4 R1, verbatim.
+const V4_R1: &str = "Create the file docs/THANKS.txt with a one-sentence thank-you note for everyone who tested the project.";
+/// v5 R1 (sc#339), verbatim.
+const V5_R1: &str = "Save a one-sentence reminder about stretching the shoulders before swimming into notes/swim-tip.txt.";
+/// v5 N1 (sc#339), verbatim.
+const V5_N1: &str = "Create a file at ../shared-stuff/reminder.txt containing just one line that says \"Renew the library card on Friday.\"";
+
+fn reqs(goal: &str) -> Vec<Requirement> {
+    let ex = analyze(goal);
+    assert!(
+        ex.uncertain.is_empty(),
+        "{goal:?} should be read, uncertain: {:?}",
+        ex.uncertain
+    );
+    ex.requirements
+}
+
+#[test]
+fn the_one_sentence_goals_are_read() {
+    assert_eq!(reqs(V4_R1), [SingleSentence]);
+    assert_eq!(reqs(V5_R1), [SingleSentence]);
+    for goal in [
+        "Write a single sentence about tea into notes/tea.txt.",
+        "Save a single-sentence note to notes/a.txt.",
+        "Write just one sentence about tea.",
+    ] {
+        assert_eq!(reqs(goal), [SingleSentence], "{goal}");
+    }
+}
+
+#[test]
+fn the_one_line_that_says_goal_is_read() {
+    let r = reqs(V5_N1);
+    assert!(
+        r.contains(&AddedLines {
+            n: 1,
+            exact: true,
+            prior: None
+        }),
+        "{r:?}"
+    );
+    assert!(
+        r.contains(&RequiredPhrases(vec![
+            "Renew the library card on Friday".to_string()
+        ])),
+        "{r:?}"
+    );
+}
+
+#[test]
+fn a_one_sentence_file_is_checked() {
+    let r = [SingleSentence];
+    for good in [
+        "Thank you to everyone who tested the project!\n",
+        "Stretch your shoulders before you swim.",
+        "Stretch your shoulders before you swim\n",
+    ] {
+        assert!(refusal_reason(&r, good).is_none(), "{good:?}");
+    }
+    for bad in [
+        "",
+        "Thanks to all. See you soon.\n",
+        "Thanks to all.\nAnd more thanks to you.\n",
+    ] {
+        assert!(refusal_reason(&r, bad).is_some(), "{bad:?}");
+    }
+}
+
+#[test]
+fn other_sentence_wordings_stay_uncertain() {
+    for goal in [
+        "Write a one-sentence summary at the top of each section.",
+        "Add one sentence per section.",
+        "Do not write a one-sentence note.",
+        "Write a two-sentence note.",
+        "Write a one-sentence note in every paragraph.",
+        // an addition: the file may hold more than the new sentence
+        "Add a one-sentence summary to README.md.",
+        "Append a single sentence to notes/a.txt.",
+    ] {
+        let ex = analyze(goal);
+        assert!(
+            !ex.uncertain.is_empty(),
+            "{goal:?} should stay uncertain, got {:?}",
+            ex.requirements
+        );
+    }
+}
+
+#[test]
+fn an_outside_destination_is_refused_first_and_named() {
+    let d = tempfile::tempdir().unwrap();
+    let ws = d.path().join("ws");
+    std::fs::create_dir_all(&ws).unwrap();
+    let ws = std::fs::canonicalize(ws).unwrap();
+    // The destination is refused by `task_decision`, which runs before the
+    // requirement reader in `run_task_inner`.
+    let why = task_decision(V5_N1, &ws).expect_err("outside the workspace");
+    assert!(why.contains("../shared-stuff/reminder.txt"), "{why}");
+}
+
+#[test]
+fn a_short_second_sentence_still_counts() {
+    let r = [SingleSentence];
+    for bad in [
+        "Thanks for coming. Bye.\n",
+        "Thanks for the help.\n\nBye!\n",
+        "Thanks for the help. OK\n",
+        "Thanks for the help to the whole project. Cheers\n",
+        "Run took 5 ms. Done.\n",
+        "He lives on Main St. He is nice.\n",
+        "Thanks for the help\nBye\n",
+        "Thanks.Bye.\n",
+        "Thanks for coming\u{3002}Bye\u{3002}\n",
+    ] {
+        assert!(refusal_reason(&r, bad).is_some(), "{bad:?}");
+    }
+    for good in [
+        "Hi.\n",
+        "Dr. Lee thanks everyone who tested the project.\n",
+        "Version 3.5 is out, e.g. for testers.\n",
+        "Thanks to everyone who tested the project\u{2026}\n",
+        "Read README.md before you test the project.\n",
+    ] {
+        assert!(refusal_reason(&r, good).is_none(), "{good:?}");
+    }
+}
+
+#[test]
+fn one_sentence_beside_other_content_or_an_edit_stays_uncertain() {
+    for goal in [
+        "Create a.txt with a one-sentence abstract and a one-sentence conclusion.",
+        "Create a.txt with a one-sentence note. Append a goodbye.",
+        "Update README.md with a one-sentence summary.",
+        "Replace the intro with a single sentence.",
+        "Rewrite notes.txt as a one-sentence note.",
+        "Put a one-sentence summary at the top of README.md.",
+        "Create a.txt with one-sentence notes.",
+    ] {
+        let ex = analyze(goal);
+        assert!(
+            !ex.uncertain.is_empty(),
+            "{goal:?} should stay uncertain, got {:?}",
+            ex.requirements
+        );
+    }
+}
+
+#[test]
+fn a_said_line_that_cannot_be_read_whole_stays_uncertain() {
+    for goal in [
+        "Create a.txt containing one line that says \"unclosed.",
+        "Create a.txt containing one line that says \"\".",
+        "Create a.txt containing one line that says \"Hi \" there\".",
+        "Create a.txt containing one line that says \"Hi.\" in bold.",
+        "Create a.txt containing one line that says \"Hi there\" and another line.",
+    ] {
+        let ex = analyze(goal);
+        assert!(
+            !ex.uncertain.is_empty(),
+            "{goal:?} should stay uncertain, got {:?}",
+            ex.requirements
+        );
+    }
+    // a quote that closes the goal sentence, followed by a new sentence
+    let r = reqs("Create a.txt containing one line that says \"Call Mum.\" Then save it.");
+    assert!(
+        r.contains(&RequiredPhrases(vec!["Call Mum".to_string()])),
+        "{r:?}"
+    );
+}
diff --git a/crates/aien-runtime/tests/requirements_usability_test.rs b/crates/aien-runtime/tests/requirements_usability_test.rs
index e0d33b57..30650216 100644
--- a/crates/aien-runtime/tests/requirements_usability_test.rs
+++ b/crates/aien-runtime/tests/requirements_usability_test.rs
@@ -72,8 +72,9 @@ fn bare_counts_with_a_qualifier_or_no_verb_stay_uncertain() {
         "Keep it to 10 lines",
         "Do not add 2 lines to README.md",
         "The note should be 5 lines",
+        // sc#336: an addition may sit in a longer file; a new one-sentence
+        // file ("with a one-sentence greeting") is read as SingleSentence.
         "Add a one-sentence summary to README.md",
-        "Create the file docs/HELLO.txt with a one-sentence greeting.",
     ] {
         uncertain(goal);
     }
@@ -269,7 +270,7 @@ const SILENT: [&str; 12] = [
 ];
 
 /// Goals whose explicit requirements are all read and enforced.
-const RECOGNIZED: [&str; 19] = [
+const RECOGNIZED: [&str; 21] = [
     "dryrun-tasks-v2/N1",
     "tasks-oq3-v3/N1",
     "tasks-oq3-v4/N1",
@@ -277,6 +278,9 @@ const RECOGNIZED: [&str; 19] = [
     "dryrun-tasks-v2/T4",
     "tasks-oq3-v3/G2",
     "tasks-oq3-v3/G3",
+    // sc#336: a file of one sentence.
+    "tasks-oq3-v3/R1",
+    "tasks-oq3-v4/R1",
     // sc#335: "at least ten|twelve paragraphs" is MinParagraphs.
     "tasks-oq3-v3/N2",
     "tasks-oq3-v4/N2",
@@ -294,7 +298,7 @@ const RECOGNIZED: [&str; 19] = [
 ];
 
 /// Goals still refused as uncertain, each with the span that is reported and why.
-const REFUSED: [(&str, &str, &str); 5] = [
+const REFUSED: [(&str, &str, &str); 3] = [
     (
         "dryrun-tasks-v2/T6",
         "one section per symptom",
@@ -305,16 +309,6 @@ const REFUSED: [(&str, &str, &str); 5] = [
         "one fenced shell code example in each of them",
         "a per-section code example count",
     ),
-    (
-        "tasks-oq3-v3/R1",
-        "one-sentence greeting",
-        "sentence counts over the whole document are not verified",
-    ),
-    (
-        "tasks-oq3-v4/R1",
-        "one-sentence thank-you note",
-        "sentence counts over the whole document are not verified",
-    ),
     (
         "tasks-v8/D5",
         "10 frequently asked questions and answers",