Skip to content

fix(content): keep no agent change that gives a claim to a source it wasn't given or drops a name from a list - #1520

Merged
gkhngyk merged 21 commits into
ansvisor:mainfrom
cihan-gyk:fix/agent-source-fit
Oct 26, 2026
Merged

gkhngyk merged 21 commits into
ansvisor:mainfrom
cihan-gyk:fix/agent-source-fit

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #1519. The PR's own changes are its last commits (server only).

In the live editor test (2026-10-25), an accepted Fix suggestion did two things the page didn't support:

  • It rewrote an AI Overview's claim as "According to Zapier, Ansvisor, Profound and LLM Pulse…". Apparently this was to satisfy the outbound-links rule; the agent never sees what a cited page says.
  • It dropped Claude from the list of engines.

What isn't kept now (content-agent.js, keepSuggestions):

  • A change that gives a claim to a source the agent wasn't given (addsAttribution), in a replace or an insert. That covers:

    • "According to (the / a 2025) X" and "as reported by X";
    • "per X", "laut X" and "X'e göre";
    • "X says / said / claims / states" and "X reports / notes / finds / estimates that";
    • "X('s) report / study / research shows".

    It counts only when the change adds one. A source the agent was given may be named (attributableSources): one the page already gives claims to, Brief › Your input (an expert, the person's data) or an author. Being listed somewhere on the page isn't enough: a competitor named in a list is no source for a claim. In "As Zapier says", the name read is Zapier.

  • A change that drops a name from a list (dropsName): two or more capitalised items with commas and an "and" (und, ve, et, y…), or three with commas, e.g. "ChatGPT, Gemini and Claude". Only names in a list count, because a capitalised word alone may be any German noun, an acronym or a month. Headings and changes made to take out a banned word or an AI trace are left alone.

A page rewritten whole isn't dropped for one of these: a claim given to a source it wasn't given becomes "[source]" (placeholderAttributions), a placeholder the person fills, as numbers already do.

Prompts. ATTRIBUTION_RULE goes in the Fix and Start (suggestions) prompts: never give a claim to a source the page doesn't already, a link goes on the words it explains, and keep every name a list has. A line saying the same goes in the rewrite prompt.

Related issue

Editor test findings 2026-10-25 (group C, part 2).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Run Fix open rules on a page with an Outbound links rule open and a list of names in a paragraph.
  2. No suggestion says "According to {a site the page doesn't name}". None leaves a name out of the list.
  3. A change that keeps every name, or quotes an expert from Brief › Your input, is still suggested.

Unit tests cover:

  • the user's case (attribution and the dropped name, in a replace and in an insert);
  • a reworded list that keeps every name;
  • a banned word taken out;
  • attributions in English, German and Turkish, with an article or a year;
  • "As Zapier says" and "The report says…";
  • known sources: the page's own, Your input, an author;
  • a listed competitor not counting as one;
  • German nouns, acronyms and a lone brand not counting as a list;
  • the rewrite's "[source]".

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): no web changes in this PR
  • yarn typecheck passes (run from web/): no web changes in this PR
  • yarn format:check passes (run from web/): no web changes in this PR
  • Changes are focused — one concern per PR

Server: format, lint, npm test (2,752 passed), the no-fabrication set included. A pre-push review ran; its findings are the last commit.

🤖 Generated with Claude Code

cihan-gyk and others added 17 commits October 25, 2026 21:35
…adings' answers and what the last rewrite came to, and offer a Length it can reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… for, keep its numbers on the row (00285), and read the floor's sections closer (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and count the last rewrite only within its Length's band and the same kept text (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er to rewrite the cited passages too when they hold the Length out of reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e back, release an unused hold, keep a cited-too miss as evidence, and offer it only when cited passages hold the Length (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he agent and Next step move on, and count open rules as the Rules tab does

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es read the page, keep the Length's own words, and wait for the passages before dropping skips (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion, not the next step, and say how many placeholders it leaves to fill

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aphs, and read a rewrite's once, not on every key (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y why a run left nothing, and show a failed last run on the card

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… id and kind, not by clocks, and clear a failed last run once another starts (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e rules before they're accepted, and say which rule met now one would break

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age as it is now, and count a rewrite's Length as its own line reads it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wasn't given or drops a name a passage has

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…give claims only to sources the page or its input names, and put a rewrite's as a placeholder (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 25, 2026

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes: two fixes before merge. As written, the guards drop common good changes, and a rewrite's placeholder can cut words out of the page.

What I checked:

  • Where they apply. Fix open rules (Quality's hand-off too, through fixWithRun) and Start's suggestions pass attributable to keepSuggestions. Rewrite page puts "[source]" in place of the name. Only the no-fabrication fixture falls back to people.
  • Who may be named. The sources the page already gives claims to, Brief › Your input, and the authors. Cited pages are listed by address only (SOURCES_RULE), so the premise holds: the agent can't know what they say. A name the page only lists isn't a source. Ansvisor data's line names Ansvisor, so "According to Ansvisor data" stays.
  • Counting. A change counts only the attributions it adds over its before, so one kept or reworded passes. An insert's HTML and a split replace's blocks are read as text.
  • Lists. Headings are left alone, and a change for banned words or AI traces may drop a name.
  • Cost. No new model call, and the authors are still read once a run.
  • Merge. Server only: two commits on #1519. With the stack, it merges cleanly on main. Nothing changes on Vercel at merge; it takes effect with the next API deploy.

Before merge:

  1. A name runs past the end of its sentence (server/src/lib/content-agent.js:311 and :401).
    • SOURCE_NAME and ITEM allow "." anywhere in a word, then take every capitalised word after a space. So a name that ends a sentence takes the period and the next sentence's first word:
      • "…, according to Gartner. The plan…" reads the name "Gartner. The".
      • "…tracks ChatGPT, Gemini and Claude. Each…" reads the item "Claude. Each".
    • Rewrite page: placeholderAttributions replaces the whole name, so the page reads "…, according to [source] plan…". The period and "The" are gone. A sentence's end is the most common place for an attribution.
    • Fix and Start:
      • Say the page cites Gartner, and a change moves the source to the end: "Teams forecast weekly, according to Gartner. Most plan monthly." The name reads "Gartner. Most", which isn't known, so the change is dropped.
      • When a list ends its sentence, before usually has the period. A change that keeps every name but goes on after the last one ("…WooCommerce and Magento in five minutes.", "…and Claude, so you see…") no longer has "Magento." or "Claude.", so it's dropped.
    • The page's own attributions are read the same way, so the known words pick up "the", "most" and so on. With knownName taking a last word alone (item 3), an unknown "…according to Zapier. The…" then passes.
    • Fix: in both character classes, take "." out and allow it only before a letter or digit, e.g. (?:[\p{L}\p{N}&'’-]|\.(?=[\p{L}\p{N}]))* for SOURCE_NAME ("Node.js" and "U.S" still read). Add tests with a sentence after a list and after "according to Gartner.".
  2. Other good changes read as dropping a name or giving a claim.
    • Lists (dropsName, :416-425). Items are compared as written, case and all:
      • "Ask ChatGPT, Gemini or Claude…" has the item "Ask ChatGPT", so "When you ask ChatGPT, Gemini or Claude…" is dropped.
      • "…Gemini and Claude's answers" turned into "answers from …Gemini and Claude" is dropped. So is Turkish "Claude'u" turned into "Claude'da".
      • German capitalises every noun and "Sie": "Entdecken Sie Hosen, Jacken und Schuhe" is a list whose first name is "Entdecken Sie Hosen", so any change to the verb drops it.
      • A list turned into bullets is dropped: the names move to the blocks, and only words is read (:584). dropsPlaceholder just above (:574) reads the blocks too.
      • Fix: an item is kept when the passage as changed has its last word, without an apostrophe ending, whole and in any case (isKnown in content-people.js reads words that way). Read the passage as changed: passage.text with before replaced by words, plus textOf(blocks). That also catches a name dropped through a short before: "Gemini and Claude" → "Gemini" has no comma, so it isn't read as a list today. A German noun swapped for another in a list still drops the change; if that's not intended, skip German drafts here.
    • Attributions (:316, :319, :329). A Fix or Start change that adds one of these is dropped, and in a rewrite the word becomes "[source]":
      • "per" before a capital reads as a source: German "per E-Mail", "per Knopfdruck", "per App", and English "per SKU" or "per API call" ("Kontaktieren Sie uns per [source]").
      • Nouns read as verbs: "all 50 US states" and "Warranty claims are…" ("all 50 [source] states").
      • Turkish "-e göre" also means "compared to": "Gemini, ChatGPT'ye göre daha hızlı" becomes "Gemini, [source]'ye göre daha hızlı".
      • Fix: read "per" only with a comma or "'s" after the name ("Per Gartner, …", "per Gartner's survey"). Read "claims" and "states" only before "that", as :321 does for "reports". Skip "göre" when "daha" or "en" follows. Add a test for each.

Low, follow-up:
3. Known sources (knownName, :363-366).

  • A possessive isn't known. On a page that cites Gartner, "according to Gartner's latest survey" reads "Gartner's" and is dropped. So is "Ansvisor's data shows…" from Your input. Cut an apostrophe ending before the lookup.
  • Any last word alone counts. "According to Forrester Research" passes when Your input or an author's bio has the word "research", and both are free text. Skip only the words a sentence starts with ("As", "Like", "While"…), as personIn skips NOT_NAMES (content-people.js:394), not any leading words.
  1. What still gets through.
    • Rewrite page reads the model's HTML, not its text (server/src/lib/content-writer.js:571).
      • The rewrite may link listed sources. So "According to Zapier, …", the editor test's case with its link, isn't read: the name would start at "<".
      • A match can also take part of an entity: "AT&T" becomes "[source];T".
      • Run it over each line's text, as guardPeopleInHtml does.
    • Wordings it doesn't read. "As Zapier notes / explains / puts it, …", "according to a 2025 report by Gartner", "data from Statista shows", "Zapier ranks / lists…", "Gartner'ın raporuna göre", "laut einer Studie von Gartner". Most of the verbs are in SPEECH (content-people.js:243): read them after "As X" and before "that".
    • Lists.
      • Two names ("ChatGPT and Claude") and lists with "&" aren't read.
      • A change tagged bannedWords may drop any name, not only the banned one. Exempt only the item that is a banned word.
  2. Prompt. ATTRIBUTION_RULE (content-agent.js:85) and the rewrite's line (content-rewrite.js:65) say "never give a claim to a source the page doesn't already". INPUT_RULE (content-sources.js:90) asks to quote Your input's experts with their name and title, and to cite Ansvisor data. With Quality's phase 2 on, the model may now leave Your input out. Say so in both, e.g. "never give a claim to a source that neither the page nor Your input gives".

cihan-gyk and others added 3 commits October 26, 2026 10:11
…ead "per" only as an attribution, "claims" and "states" only before "that", and "göre" not as a comparison; keep a change that keeps every name worded or cased another way, or as bullets; know a source by its possessive, never its last word alone; let the prompts name Your input as a source (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e Doe", "Recently Gartner"), keep a sentence's first word out of a placeholder, read "per" on English pages only, read "U.S." as one name, and start a name only at a word's start (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Thanks, both "before merge" items are fixed, with 3 and 5 from the low ones (935a0ac).

  1. A name ends at its sentence.
    • SOURCE_NAME and ITEM allow a dot only before a letter or digit: (?:[\p{L}\p{N}&'’-]|\.(?=[\p{L}\p{N}]))*. "Node.js" and "U.S" still read. The Turkish "göre" name takes the same rule.
    • Tests:
      • "…, according to Gartner. The plan…" reads "Gartner";
      • a known Gartner moved to the end of a sentence passes;
      • the rewrite placeholder keeps ". The";
      • a list that ends its sentence, then goes on after its last name, passes.
  2. Good changes are no longer dropped.
    • Lists: dropsName(passageText, before, words, rules, blocksText) reads the lists in the passage. For each item the replace touches, it looks for the item's last word in the passage as changed, plus the blocks it adds. The word is matched whole, in any case, without a possessive or case ending (isKnown). That covers:
      • "Ask ChatGPT" → "ask ChatGPT";
      • "Claude's answers" → "answers from … Claude";
      • "Claude'u" → "Claude'da";
      • a list turned into bullets;
      • a short before ("Gemini and Claude" → "Gemini"), which is now caught.
      • I left German as it is: a German noun swapped inside a list still drops the change.
    • Attributions:
      • "per" reads only as "Per X, …", "per X's …" or ", per X." at a clause's end. So "per E-Mail", "per SKU, or per API call" and "per API call" don't read.
      • "claims" and "states" (and "reports" and the rest) read only before "that".
      • "göre" doesn't read when "daha" or "en" follows.
      • There's a test for each, plus that the real attributions still read.
  3. knownName cuts a possessive ("Gartner's latest survey" is known), and skips only the words a sentence starts with (NOT_NAMES, now exported from content-people.js). "Forrester Research" isn't known for a bio's "research".
  4. ATTRIBUTION_RULE and the rewrite's line now say "a source that neither the page nor Your input gives".

Left for a follow-up PR (4):

  • reading the rewrite's HTML line by line, like guardPeopleInHtml (the linked name, AT&amp;T);
  • the wordings it doesn't read yet;
  • two-name and "&" lists;
  • exempting only the banned item.

Second round, from a pre-push review:

  • Known sources keep being known after a role or an adverb. knownName now reads a name past the words a sentence starts with, a role and an adverb (nameStart, as personIn does), whole or by its end of two words at least. So "Acme CEO Jane Doe says that…", "CEO Jane Doe says…" and "Recently Gartner said that…" are known when Jane Doe and Gartner are. "Forrester Research" still isn't, for a bio's "research".
  • The placeholder takes the name only: "As [source] says, …" and "While [source] says that…".
  • "per" on English pages only. German writes "per E-Mail" and "per App", so attributableSources takes the brand's language, and a non-English page reads no "per". On an English page, "Per SKU, you pay…" still reads as an attribution, since an acronym may be a source too ("Per IDC, …"); a test says so.
  • "U.S." reads as one name: "According to the U.S. Census Bureau" → "the [source]".
  • Speed. A name starts only at a word's start (a lookbehind). A 20,000-letter run of capitals went from about 0.7 s to 1–16 ms. The Turkish "göre" pattern had the quadratic case; a test pins this.

It's merged down #1521 → #1522 → #1523 → #1524 → #1526. Server: npm test 2,757 passed (1 skipped); the chain's tip passes too.

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

The low follow-ups from your review (item 4 and the lists) are in #1537, stacked on #1526:

  • the rewrite's attributions are read line by line in its text (a linked name, AT&amp;T);
  • more wordings, each held to its claim's shape;
  • two camel-cased names and "&" read as a list;
  • a change for a banned word may drop only that item.

I left "X ranks / lists…" out, as the brand's own product does that on its own pages.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes: two fixes, here or in #1537, before the next API deploy. Round 30's items are done, except one part of item 2.

What I checked:

  • Round 30's items.
    1. Done. In SOURCE_NAME, ITEM and the "göre" name, a dot stays only before a letter or digit, or after an initial ("U.S."), and a name starts only at a word's start. "…according to Gartner. The plan" reads "Gartner", the placeholder keeps ". The", and a list that ends its sentence passes when the change goes on after it. Each has a test.
    2. Partly.
      • Attributions: done. "per" reads only as "Per X, …", "per X's …" or ", per X.", and only on English pages. "claims" and "states" read only before "that". "göre" isn't read before "daha" or "en" (see item 3).
      • Lists: done for a change worded or cased another way, a possessive or a Turkish ending, and a short before. Each item the replace touches is read by its last word in the passage as changed. A list turned into bullets is still dropped when the model writes compact HTML (item 1).
    3. Done. knownName cuts a possessive and reads the name past a sentence's first word, a role or an adverb (nameStart), whole or by its last two words or more. "Acme CEO Jane Doe" and "Recently Gartner" are known; "Forrester Research" isn't known for a bio's "research".
    4. Moved to #1537.
    5. Done, in ATTRIBUTION_RULE and the rewrite's line.
  • The placeholder goes on the name's own words: "As [source] says", "CEO [source] says", and "the [source]" for "the U.S. Census Bureau".
  • Language. Fix (Quality's hand-off too) and Start pass the brand's language. The people fallback reads "per" as an English page does.
  • Merge. #1514–#1519 are squash-merged now, so #1520 conflicts with main as text in content-writer.js. Its own change and main's #1525 touch different hunks of that file, so it goes in cleanly through #1519's head as a temp base. Server only: nothing changes on Vercel at merge.

Before merge (or in #1537):

  1. An insert's and a split replace's blocks are read with their words run together (server/src/lib/content-agent.js:617, :660).
    • textOf is cheerio's .text(), which puts nothing between text nodes. The model often writes compact HTML, as the tests do (<ul><li>…</li></ul>):
      • Bullets dropped. Suppose "Track ChatGPT, Gemini and Claude." becomes "Track these engines:" with <ul><li>ChatGPT</li><li>Gemini</li><li>Claude</li></ul>. The blocks read "ChatGPTGeminiClaude", so no name is found whole and the change is dropped. The unit test passes the blocks as "ChatGPT Gemini Claude", so it doesn't catch this.
      • Inserts dropped. <p>…, according to Gartner.</p><p>Most teams…</p> reads the name "Gartner.Most", because a dot before a letter stays in a name. So the insert is dropped on a page that cites Gartner.
      • Inserts kept. <h2>Forecasting basics</h2><p>According to Zapier, …</p> reads "basicsAccording". \b doesn't match there, so the attribution isn't read and the insert is kept.
    • Fix:
      • Read both with a space between blocks, e.g. with htmlText, as attributableSources reads the page (:374).
      • Add keepSuggestions tests: one with compact bullets, one with a heading before "According to Zapier".
  2. A name has no length cap (:323, :466).
    • SOURCE_NAME and ITEM take any number of capitalised words, and the patterns that start with a name (… says, … claims that, …'s report shows) are tried from every word. A long run of capitalised words is slow to read. attributableSources reads the whole page.
    • The speed test has one long word, not many.
    • Fix: cap a name, e.g. (?:\s+${NAME_WORD}){0,7}, and the same in ITEM. Add a test with a long run of capitalised words.

Low, follow-up:
3. "göre" before "en" (:344-347).

  • After "göre", "en" starts a superlative claim made by the source. "Gartner'a göre en hızlı büyüyen pazar Hindistan" means "according to Gartner, the fastest-growing market is India", and it's no longer read.
  • The test's "ChatGPT'ye göre en iyisi Gemini" is also a claim given to ChatGPT ("according to ChatGPT, the best one is Gemini").
  • Skip "daha" only, and flip that test.
  1. nameStart can skip a whole name (:401-407).
    • It skips any word ending in "-ly", a role or a sentence's first word, even the last word. So "Grammarly", "Calendly", "Optimizely" or "Coach" have no words of their own.
    • placeholderAttributions then leaves "According to Grammarly, …" in a rewrite (start >= name.length).
    • knownName never knows such a name when the page cites it, so a Fix that cites it again is dropped.
    • Never skip the last word.
  2. Smaller reads.
    • "per" follows the brand's language (:1083, content-writer.js:841). A page can be in another language through its Language rule, which content-delivery.js:567-576 reads first. An English brand's German page reads "per E-Mail" as a source. Pass the page's language, read the same way.
    • A relative "that" still reads. "We ship to all 50 US states that allow wine delivery" reads "US" as a source, and a rewrite writes "all 50 [source] states". For "states" and "claims", skip a name after a number or "all".

# Conflicts:
#	server/src/lib/content-writer.js
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged main forward (bf7742b) now that #1514–#1519 are in. One conflict, in content-writer.js: this PR wraps the rewrite's guardPeopleInHtml(…) line in placeholderAttributions(…), and main has that line from #1519, so I kept this PR's side. Its diff against main is now its own five server files.

Checks after the merge:

@github-actions github-actions Bot removed the needs-migration Adds or edits a migration — apply it to the hosted database label Oct 26, 2026
cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 26, 2026
…ace between them, cap a source's name at eight words, read "en" after "göre" as the source's claim, never skip a name's last word, and read "per" and "states" as the page's language and grammar have them (review of ansvisor#1520)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Both before-merge items are done in #1537, as you allowed, together with your low items 3–5; the details are there. #1520 itself is unchanged, so it can merge as it is, with #1537 going in before the next API deploy.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

The new head, bf7742b, only merges main (4efa150, with #1514–#1519, #1535, #1538 and #1539) into the branch.

What I checked:

  • The merge. Re-merging its parents (935a0ac and 4efa150) gives one conflict, in one hunk of server/src/lib/content-writer.js: the rewrite's input to cleanPageHtml (:591).

    • Main changed object.html to answer.html there, for #1515's cut pass.
    • This PR wraps the same call in placeholderAttributions(…, attributable).
    • The resolution keeps this PR's line, which already reads answer.html, so both changes stand.
    • The rest of content-writer.js and every other file match the re-merge. That includes #1525's fixUnderWay refusal (:408), #1514's length_target, kept_chars and after_chars (:641) and #1515's cutToLength (:665). The merge adds nothing else.
  • Its own change. Against main, its diff is the five server files reviewed in round 31, line for line: content-agent.js, its tests, content-people.js, content-rewrite.js and content-writer.js. Main's brief changes (#1535, #1538, #1539) don't touch them. content-brief.js now imports from content-people.js, where this PR only exports isRole and NOT_NAMES and changes no behaviour.

  • Round 31's items.

    1. Blocks read with their words run together. Done in #1537 (3fddfc2). An insert's and a split replace's blocks are read line by line (htmlLines). There are tests for compact bullets and for a heading before "According to Zapier".
    2. No cap on a name's length. Done in #1537. SOURCE_NAME and ITEM take eight words at most (MAX_NAME_WORDS), with a test.
    3. to 5. Also done in #1537.

    #1537 merges right after this chain. The API is deployed by hand only after both are in, so no API deploy carries this PR without these fixes.

  • Merge state. Main is in the branch, so it merges cleanly. It's server only, so nothing changes on Vercel when it merges.

@gkhngyk
gkhngyk merged commit 9f8b880 into ansvisor:main Oct 26, 2026
5 checks passed
gkhngyk added a commit that referenced this pull request Oct 26, 2026
…ordings and two-name lists, and let a banned word drop only itself (#1520 follow-ups) (#1537)

* fix(content): read a Length's reach from what a rewrite keeps, the headings' answers and what the last rewrite came to, and offer a Length it can reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count the last rewrite only for the Length it was asked for, keep its numbers on the row (00285), and read the floor's sections closer (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): name kept blocks only when they alone miss the Length, and count the last rewrite only within its Length's band and the same kept text (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): cut a page rewrite that came well past its Length with one more pass

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): say when a shortening rewrite came out longer, and offer to rewrite the cited passages too when they hold the Length out of reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take a cut only when restoreKept can put every kept line back, release an unused hold, keep a cited-too miss as evidence, and offer it only when cited passages hold the Length (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave rules held by quoted passages to the person, so the agent and Next step move on, and count open rules as the Rules tab does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence rule held by quoted passages as the rules read the page, keep the Length's own words, and wait for the passages before dropping skips (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): head the agent card with the result waiting for a decision, not the next step, and say how many placeholders it leaves to fill

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count placeholders in list items written without paragraphs, and read a rewrite's once, not on every key (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read how an agent run ended when its answer is lost, say why a run left nothing, and show a failed last run on the card

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep why a run left nothing on its row, read its row by id and kind, not by clocks, and clear a failed last run once another starts (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): check the agent's changes and a page rewrite against the rules before they're accepted, and say which rule met now one would break

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): check Accept all as it takes the changes, against the page as it is now, and count a rewrite's Length as its own line reads it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep no agent change that gives a claim to a source it wasn't given or drops a name a passage has

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a dropped name only in a list, check inserts too, give claims only to sources the page or its input names, and put a rewrite's as a placeholder (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count the rules and a rewrite's characters the way the editor shows them, and hold the rules chip until its count stands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): cover the rules chip holding its count, a rewrite's characters as the toolbar counts them, and the run's rule count

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): show the rewrite's toolbar counts in Compare too, wait for the brief and catalog before the rules' count, hold the panel's counts with it, and read the shown rewrite's Length by the editor's count (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): restore once for two quick clicks, set aside the agent's open suggestions for the page before, and drop a batch's card once the page no longer has it

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep the agent's card while a suggestion is open, so one left open never holds the next run out of sight

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): close the agent's card on a restore, keep its open suggestions when they can't be set aside, and hold History while the agent works or a decision saves (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): move the agent's waiting page while it works: its tile, a sweep on the step under way, a line on what it does, and the page drawn in

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep the waiting page's lines short enough for one line, true without an outline, and silent on rules or sources read none of; even step spacing; steadier tests (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): show a live page's Start on the agent's waiting page, which runs as a Fix, with its steps and Stop

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): test that a new page's rewrite still shows its run and a Start's write doesn't stand in for it; the rewrite prop says what it reads (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read what the last rewrite came to by the editor's count once it's decided too, not only while it's shown

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): the last rewrite's action tests read its page too; comments say when it's read and who counts it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): end a source's or a list item's name at its sentence; read "per" only as an attribution, "claims" and "states" only before "that", and "göre" not as a comparison; keep a change that keeps every name worded or cased another way, or as bullets; know a source by its possessive, never its last word alone; let the prompts name Your input as a source (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): know a source named after a role or an adverb ("CEO Jane Doe", "Recently Gartner"), keep a sentence's first word out of a placeholder, read "per" on English pages only, read "U.S." as one name, and start a name only at a word's start (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): time the long run of capitals with Date.now, as lint knows it

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a rewrite's attributions line by line in its text (a linked name, an entity), read more wordings ("As X notes", "a report by X", "data from X shows", "X'ın raporuna göre", "laut einer Studie von X"), read two names shaped as brands and "&" as a list, and let a change for a banned word drop only that item (#1520 review follow-ups)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read "As X notes," only before a comma or "that", "a report by X" only as a claim's source, "data from X shows" only before "that" or a figure, "laut … von X" only with "von", two names as a list only when one is camel-cased; drop a link that became the placeholder, end a line at a <br>, and let a banned word go without the name beside it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read an insert's and a split replace's blocks with a space between them, cap a source's name at eight words, read "en" after "göre" as the source's claim, never skip a name's last word, and read "per" and "states" as the page's language and grammar have them (review of #1520)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a change line by line as the guards do, read the page's language from its rules or My rules as the CMS send does, keep a name's last word only for an -ly word or a capitalised role, and read "states"/"claims" as nouns after a count but a year before a source (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take each dot of a name one way only, so a run of initials reads in linear time (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk pushed a commit that referenced this pull request Oct 26, 2026
…wn name, keep the possessive out of the placeholder, and read more Turkish and German forms (review follow-ups of #1537) (#1544)

* fix(content): read a Length's reach from what a rewrite keeps, the headings' answers and what the last rewrite came to, and offer a Length it can reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count the last rewrite only for the Length it was asked for, keep its numbers on the row (00285), and read the floor's sections closer (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): name kept blocks only when they alone miss the Length, and count the last rewrite only within its Length's band and the same kept text (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): cut a page rewrite that came well past its Length with one more pass

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(content): say when a shortening rewrite came out longer, and offer to rewrite the cited passages too when they hold the Length out of reach

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take a cut only when restoreKept can put every kept line back, release an unused hold, keep a cited-too miss as evidence, and offer it only when cited passages hold the Length (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): leave rules held by quoted passages to the person, so the agent and Next step move on, and count open rules as the Rules tab does

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a sentence rule held by quoted passages as the rules read the page, keep the Length's own words, and wait for the passages before dropping skips (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): head the agent card with the result waiting for a decision, not the next step, and say how many placeholders it leaves to fill

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count placeholders in list items written without paragraphs, and read a rewrite's once, not on every key (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read how an agent run ended when its answer is lost, say why a run left nothing, and show a failed last run on the card

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep why a run left nothing on its row, read its row by id and kind, not by clocks, and clear a failed last run once another starts (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): check the agent's changes and a page rewrite against the rules before they're accepted, and say which rule met now one would break

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): check Accept all as it takes the changes, against the page as it is now, and count a rewrite's Length as its own line reads it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep no agent change that gives a claim to a source it wasn't given or drops a name a passage has

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a dropped name only in a list, check inserts too, give claims only to sources the page or its input names, and put a rewrite's as a placeholder (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): count the rules and a rewrite's characters the way the editor shows them, and hold the rules chip until its count stands

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): cover the rules chip holding its count, a rewrite's characters as the toolbar counts them, and the run's rule count

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): show the rewrite's toolbar counts in Compare too, wait for the brief and catalog before the rules' count, hold the panel's counts with it, and read the shown rewrite's Length by the editor's count (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): restore once for two quick clicks, set aside the agent's open suggestions for the page before, and drop a batch's card once the page no longer has it

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep the agent's card while a suggestion is open, so one left open never holds the next run out of sight

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): close the agent's card on a restore, keep its open suggestions when they can't be set aside, and hold History while the agent works or a decision saves (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): move the agent's waiting page while it works: its tile, a sweep on the step under way, a line on what it does, and the page drawn in

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): keep the waiting page's lines short enough for one line, true without an outline, and silent on rules or sources read none of; even step spacing; steadier tests (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): show a live page's Start on the agent's waiting page, which runs as a Fix, with its steps and Stop

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): test that a new page's rewrite still shows its run and a Start's write doesn't stand in for it; the rewrite prop says what it reads (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read what the last rewrite came to by the editor's count once it's decided too, not only while it's shown

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): the last rewrite's action tests read its page too; comments say when it's read and who counts it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): end a source's or a list item's name at its sentence; read "per" only as an attribution, "claims" and "states" only before "that", and "göre" not as a comparison; keep a change that keeps every name worded or cased another way, or as bullets; know a source by its possessive, never its last word alone; let the prompts name Your input as a source (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): know a source named after a role or an adverb ("CEO Jane Doe", "Recently Gartner"), keep a sentence's first word out of a placeholder, read "per" on English pages only, read "U.S." as one name, and start a name only at a word's start (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): time the long run of capitals with Date.now, as lint knows it

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a rewrite's attributions line by line in its text (a linked name, an entity), read more wordings ("As X notes", "a report by X", "data from X shows", "X'ın raporuna göre", "laut einer Studie von X"), read two names shaped as brands and "&" as a list, and let a change for a banned word drop only that item (#1520 review follow-ups)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read "As X notes," only before a comma or "that", "a report by X" only as a claim's source, "data from X shows" only before "that" or a figure, "laut … von X" only with "von", two names as a list only when one is camel-cased; drop a link that became the placeholder, end a line at a <br>, and let a banned word go without the name beside it (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read an insert's and a split replace's blocks with a space between them, cap a source's name at eight words, read "en" after "göre" as the source's claim, never skip a name's last word, and read "per" and "states" as the page's language and grammar have them (review of #1520)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a change line by line as the guards do, read the page's language from its rules or My rules as the CMS send does, keep a name's last word only for an -ly word or a capitalised role, and read "states"/"claims" as nouns after a count but a year before a source (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read no product sentence as a claim (a comma after "from X" only after "according to", "in" or "per"; a tool's report "shows" only before "that" or a figure), know the brand's own name, keep the possessive out of the placeholder, and read more Turkish and German forms (review follow-ups of #1537)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a Turkish report without its ending only mid-sentence or for a name-shaped one, skip German nouns before "zufolge", keep acronyms and the people guard as they were, cut only a lowercase possessive, and hold the comma form to a sentence's "In" (pre-push review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): take each dot of a name one way only, so a run of initials reads in linear time (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): end a line at a break inside a bold or a link, read My rules by the brand's kind of site (Fix, Start and the CMS send), and read "states"/"claims" after a count at a sentence's start as nouns but small words before a source as a claim (review follow-ups of #1537)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(content): read a long run of spaces in linear time, and a claim with a short aside after "a report by X" (review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(content): time the long runs with Date.now, as the server's lint knows no performance global

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants