Repository navigation
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
Conversation
…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]>
… one more pass 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]>
gkhngyk
left a comment
There was a problem hiding this comment.
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 passattributabletokeepSuggestions. Rewrite page puts "[source]" in place of the name. Only the no-fabrication fixture falls back topeople. - 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:
- A name runs past the end of its sentence (
server/src/lib/content-agent.js:311and:401).SOURCE_NAMEandITEMallow "." 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:
placeholderAttributionsreplaces 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,
beforeusually 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
knownNametaking 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}]))*forSOURCE_NAME("Node.js" and "U.S" still read). Add tests with a sentence after a list and after "according to Gartner.".
- 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
wordsis read (:584).dropsPlaceholderjust 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 (
isKnownin content-people.js reads words that way). Read the passage as changed:passage.textwithbeforereplaced bywords, plustextOf(blocks). That also catches a name dropped through a shortbefore: "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
:321does for "reports". Skip "göre" when "daha" or "en" follows. Add a test for each.
- Lists (
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
personInskipsNOT_NAMES(content-people.js:394), not any leading words.
- 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
guardPeopleInHtmldoes.
- 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
bannedWordsmay drop any name, not only the banned one. Exempt only the item that is a banned word.
- Rewrite page reads the model's HTML, not its text (
- 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".
…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]>
…nows it Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks, both "before merge" items are fixed, with 3 and 5 from the low ones (935a0ac).
Left for a follow-up PR (4):
Second round, from a pre-push review:
It's merged down #1521 → #1522 → #1523 → #1524 → #1526. Server: |
|
The low follow-ups from your review (item 4 and the lists) are in #1537, stacked on #1526:
I left "X ranks / lists…" out, as the brand's own product does that on its own pages. |
gkhngyk
left a comment
There was a problem hiding this comment.
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.
- Done. In
SOURCE_NAME,ITEMand 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. - 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).
- Done.
knownNamecuts 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". - Moved to #1537.
- Done, in
ATTRIBUTION_RULEand the rewrite's line.
- Done. In
- 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
peoplefallback 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):
- An insert's and a split replace's blocks are read with their words run together (
server/src/lib/content-agent.js:617,:660).textOfis 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".\bdoesn't match there, so the attribution isn't read and the insert is kept.
- Bullets dropped. Suppose "Track ChatGPT, Gemini and Claude." becomes "Track these engines:" with
- Fix:
- Read both with a space between blocks, e.g. with
htmlText, asattributableSourcesreads the page (:374). - Add
keepSuggestionstests: one with compact bullets, one with a heading before "According to Zapier".
- Read both with a space between blocks, e.g. with
- A name has no length cap (
:323,:466).SOURCE_NAMEandITEMtake 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.attributableSourcesreads 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 inITEM. 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.
nameStartcan 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.
placeholderAttributionsthen leaves "According to Grammarly, …" in a rewrite (start >= name.length).knownNamenever knows such a name when the page cites it, so a Fix that cites it again is dropped.- Never skip the last word.
- Smaller reads.
- "per" follows the brand's language (
:1083,content-writer.js:841). A page can be in another language through its Language rule, whichcontent-delivery.js:567-576reads 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".
- "per" follows the brand's language (
# Conflicts: # server/src/lib/content-writer.js
…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]>
gkhngyk
left a comment
There was a problem hiding this comment.
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 tocleanPageHtml(:591).- Main changed
object.htmltoanswer.htmlthere, 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.jsand every other file match the re-merge. That includes #1525'sfixUnderWayrefusal (:408), #1514'slength_target,kept_charsandafter_chars(:641) and #1515'scutToLength(:665). The merge adds nothing else.
- Main changed
-
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.jsandcontent-writer.js. Main's brief changes (#1535, #1538, #1539) don't touch them.content-brief.jsnow imports fromcontent-people.js, where this PR only exportsisRoleandNOT_NAMESand changes no behaviour. -
Round 31's items.
- 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". - No cap on a name's length. Done in #1537.
SOURCE_NAMEandITEMtake eight words at most (MAX_NAME_WORDS), with a test. - 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.
- 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 (
-
Merge state. Main is in the branch, so it merges cleanly. It's server only, so nothing changes on Vercel when it merges.
…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]>
…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]>
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:
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: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_RULEgoes 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 featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Unit tests cover:
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no web changes in this PRyarn typecheckpasses (run fromweb/): no web changes in this PRyarn format:checkpasses (run fromweb/): no web changes in this PRServer: 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