Skip to content

fix(content): read a rewrite's attributions line by line, read more wordings and two-name lists, and let a banned word drop only itself (#1520 follow-ups) - #1537

Merged
gkhngyk merged 61 commits into
ansvisor:mainfrom
cihan-gyk:fix/attribution-html-lines
Oct 26, 2026
Merged

gkhngyk merged 61 commits into
ansvisor:mainfrom
cihan-gyk:fix/attribution-html-lines

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Follow-ups from the review of #1520 (item 4 and the lists). Stacked on #1526, the tip of the #1514–#1526 chain. This PR's own change is its commit after #1526's branch. Server only.

gkhngyk left these for a follow-up on #1520. All of them are here:

  1. Rewrite page reads the model's text, line by line, not its HTML.
    • guardPeopleInHtml's line reading is now its own helper, editLines($, editsFor) in content-people.js: each line's text nodes and inline tags read as one, with edits put back node by node. Its people guard uses it unchanged.
    • placeholderAttributionsInHtml uses the same helper. A name linked to its page ("According to Zapier, …") is now read, and an entity is read as its character: AT&T → "[source]", never "[source];T".
    • The rewrite (content-writer.js) uses it.
  2. More wordings read as attributions, each held to its claim's shape so an event, a thing to get or a tool's description isn't read:
    • "As Zapier notes / explains / puts it, …": a speech verb from content-people.js, then a comma or "that". "As Google adds AI Overviews to more queries" isn't one.
    • "a 2025 report by Gartner, …" or "a survey from Statista finds …": a comma or a claim verb after it. "Download the report from Gartner." isn't one.
    • "data from Statista shows that …" or a figure. "Data from GA4 shows where visitors come from" isn't one.
    • "Gartner'ın raporuna / araştırmasına / verilerine göre".
    • "laut einer (aktuellen) Studie von Gartner", with "von" only. German writes every noun with a capital: "laut der Anleitung des Herstellers".
  3. Lists.
    • "&" joins a list: "Ansvisor, Profound & Peec AI".
    • Two names are a list when one is camel-cased, as a product's or a brand's name is: "ChatGPT and Claude", "Shopify & WooCommerce". "Sales and Marketing", "SEO and AEO" and "B2B and B2C" stay terms.
    • A change tagged Banned words may now drop only the item that is a banned word. "Leverage Shopify" losing "Leverage" must keep Shopify.
    • bannedWordsOf reads the rule's words from the detail the editor sends ("aim: seamless, leverage · now: 2 found", useRuleDescriber), never the count alone, and the agent and the writer pass them on. Without the rule's words, it works as before.
    • AI traces are phrases, not names, so their exemption is unchanged.
  4. Smaller:
    • A link whose words all became "[source]" goes too, as it would still give the claim to its page.
    • A <br> ends a line, so "Gartner
      The plan" keeps its "The". The people guard reads it the same way.

Left out on purpose: "Zapier ranks / lists …" from the review's list. The brand's own product does that on its own pages ("Ansvisor lists your prompts"), and the brand isn't among the sources a claim may be given to, so it would read as a new attribution there.

Related issue

Follow-ups to #1520 (review 2026-10-26, item 4 and the lists).

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

cd server && npx vitest run src/lib/content-agent.test.js src/lib/content-people.test.js src/lib/content-writer.test.js src/lib/no-fabrication.test.js

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
  • yarn typecheck passes (run from web/): no web changes
  • yarn format:check passes (run from web/): no web changes
  • Changes are focused — one concern per PR

Server: npm run format, npm run lint (clean) and npm test (2,767 passed, 1 skipped as on main).

Tests:

  • a linked name and an entity in a rewrite's HTML, and the HTML left as it was when there's nothing to put;
  • each new wording, and "data from Shopify syncs" not read;
  • "As [source] notes";
  • two names shaped as brands, "&", and "Sales and Marketing" not read;
  • bannedWordsOf, and a banned item that may go while others may not;
  • the event, CTA, tool and German-noun wordings not read;
  • the link that goes, and the <br>;
  • the banned word beside a name;
  • the 20,000-capital speed test still passes.

A pre-push review ran; its findings are fixed in the second commit (the narrower wordings, camel-cased pairs, the link, <br>, the banned word beside a name).

🤖 Generated with Claude Code

cihan-gyk and others added 30 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]>
…editor shows them, and hold the rules chip until its count stands

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aracters as the toolbar counts them, and the run's rule count

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
…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]>
…e left open never holds the next run out of sight

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…estions 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]>
… 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]>
…, 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]>
…hich runs as a Fix, with its steps and Stop

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
…t once it's decided too, not only while it's shown

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ents say when it's read and who counts it (pre-push review)

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

@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, with follow-ups. Server only: two commits on #1526. #1520's two before-merge items (blocks read with textOf, no cap on a name's length) can go here instead; both are unchanged here (content-agent.js:722, :765, :325).

What I checked:

  • The rewrite reads text, line by line.
    • editLines is guardPeopleInHtml's line reading moved out. The people guard's edits are as before, and placeholderAttributionsInHtml uses the same helper.
    • A linked name and AT&amp;T are read whole.
    • A link left with only "[source]" goes, so the claim isn't left with its page.
    • A <br> ends a line for both guards.
    • A name that two wordings read ("As Zapier says") gets one edit (attributionEdits).
  • Wordings, each held to a claim's shape:
    • "As X notes / puts it", before a comma, a colon or "that";
    • "report / study / survey / paper / poll by or from X", before a comma or a claim verb;
    • "data from X shows", before "that" or a figure;
    • "X'ın raporuna / araştırmasına / verilerine … göre";
    • "laut einer … von X".
    • The event, CTA, tool and German-noun cases in the tests aren't read.
    • Leaving out "X ranks / lists" is right while the brand's own name isn't a known source (item 1).
  • Lists. "&" joins a list. Two names count as a list when either is camel-cased ("ChatGPT and Claude", "iOS and Android"), so "Sales and Marketing" and "SEO and AEO" stay terms.
  • Banned words.
    • bannedWordsOf reads the words from the "aim: …" part of the detail. useRuleDescriber builds that part from the rule's own list.
    • With no words (a hand-off, an older editor), any item may go, as before.
    • Fix and Start pass the words. "Leverage Shopify" losing "Leverage" keeps Shopify.
    • AI traces may still drop any name, which is right: they're phrases.
  • Merge. No migration of its own. It merges after #1520–#1526, through a temp base as the squash requires. Its own change and main's #1525 touch different hunks of content-writer.js. Nothing changes on Vercel at merge.

Low, follow-up:

  1. Some product sentences read as claims (server/src/lib/content-agent.js:351).
    • Any comma after "from X" counts. "Send a survey from Typeform, Jotform or Google Forms" and "Download the 2025 report from Gartner, then…" are read. Read the comma form only after "according to", "in" or "per" ("In a 2025 report by Gartner, …").
    • "shows" is a tool's word too. "The Performance report from Google Search Console shows clicks and impressions" is read. Hold "show(s)" to "that" or a figure, as data from does (:357). "finds", "reveals" and the others belong to a claim.
    • The brand's own product reads the same way. "A weekly report from Acme shows your top pages" is read, and so is "Acme's data shows that…" (:341, from #1520). Add the brand's name to attributableSources. That would also let "X ranks / lists" be read for other names.
    • Effect. Fix and Start drop the change. In a rewrite, the name becomes "[source]", unless the page already says it the same way.
  2. A possessive goes into the placeholder (attributionEdits, :492-501).
    • "According to Gartner's latest survey" becomes "According to [source] latest survey", and "Gartner's research shows" becomes "[source] research shows".
    • End the edit before an apostrophe ending, as knownName cuts it.
  3. Turkish and German.
    • Not read:
      • "Gartner'ın 2025 raporuna göre", "Gartner'ın son raporuna göre": a word comes between.
      • "Gartner raporuna göre", "TÜİK verilerine göre": no genitive, the commoner form.
      • German "Gartner zufolge" and "nach Angaben von Gartner".
    • Misread:
      • A "göre" name is one word, so a rewrite turns "Google Analytics'e göre" into "Google [source]'e göre".
      • "laut Hersteller", "laut Herstellerangaben" and "laut Datenblatt" are common on product pages. They read as sources (:344, from #1520) and become "laut [source]".
    • Fix:
      • Allow a year or one word before the noun.
      • Take a name's capitalised words before its suffix.
      • Read "zufolge".
      • Skip "Hersteller…" and "Datenblatt" after "laut".

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@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 and others added 2 commits October 26, 2026 14:52
…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]>
…age'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]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Done here, as you allowed (3fddfc2): #1520's two before-merge items, plus its low items 3–5.

Before merge

  1. Blocks are read line by line.
    • htmlLines uses editLines' lines: each block and <br> apart, inline tags read with their line. It reads an insert's blocks, a split replace's blocks and, in attributableSources, the page itself.
    • With htmlText a link split a name ("<a>Gartner</a>'s report" → "Gartner 's"), so I used the guards' line reader instead.
    • Tests, which fail without the change:
      • compact bullets keep their names;
      • "…according to Gartner.</p><p>Most…" isn't read as one name;
      • a Title Case heading before "Gartner says" or "According to Zapier" neither hides the claim nor runs into it;
      • a linked possessive is read whole.
  2. A name is read with 8 words at most (MAX_NAME_WORDS, in SOURCE_NAME and ITEM). A 3,000-word run of capitals is read in under 500 ms by both the attribution and the list readers; without the cap it took 1.3 s.

Low items
3. "göre" is skipped before "daha" only. The test is flipped, with "Gartner'a göre en hızlı büyüyen pazar Hindistan" added.
4. nameStart keeps a name's last word when it's an "-ly" word or a capitalised role ("Grammarly", "Coach"). It never keeps a sentence's word or "CEO" alone, so "Who says…", "Most said…" and "Our CEO said that…" stay as they are.
5. The page's language.

  • The new content-language.js reads it as the CMS send does: the Language rule while it's on (the draft's own, or My rules for an untouched draft), else the brand's. content-delivery.js now uses the same helpers, with the same result.
  • Fix and Start read it from the draft's stored rules. Fix sends only failing rules, so the request alone can't tell.
  • A fixDraftRules test covers ", per E-Mail" on the draft's own German rule and on My rules.
  • "states" and "claims" aren't read after a count: "all 50 US states that", "most US states that", "the 48 contiguous US states that", "New England states that". "reports", "found" and "estimates" are still read after a year ("In 2025 Gartner found that").

Checks: server format and lint clean; 224 test files, 2,805 passed, 3 skipped.

This PR's own follow-ups (product sentences, the possessive in the placeholder, the Turkish and German forms) will come in a follow-up PR on top of this one.

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Your three low follow-ups (product sentences, the possessive in the placeholder, the Turkish and German forms) are in #1544, stacked on this one.

@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: one fix before merge, in the reading of a dotted name. #1520 is on main now, so this should go in before the next API deploy. The rest of #1520's items are done, with small follow-ups.

What I checked:

  • Stack and merge.
    • bdd90e0 only brings #1526's branch in: re-merging its parents gives the same tree.
    • #1520–#1526 are squash-merged. Main's copies of the seven files this PR touches are #1526's head, so its own change (origin/pr/1526..origin/pr/1537) applies to main as it is.
    • Server only, with no migration. Nothing changes on Vercel at merge.
  • #1520's earlier items:
    1. Blocks read line by line. Done.
      • htmlLines uses the guards' line reader. Each block and each <br> at block level is its own line, and inline tags are read with their line.
      • It reads an insert's blocks, a split replace's blocks (for both dropsName and dropsPlaceholder) and the page in attributableSources.
      • Compact <ul><li> bullets keep their names, and dropping one is still caught.
      • "…according to Gartner.</p><p>Most…" reads "Gartner".
      • A heading before "According to Zapier" or "Zapier says" neither hides the claim nor joins it.
      • "<a>Gartner</a>'s report shows that…" is read whole, as known or unknown.
      • textOf is left only for splitReplace's check for empty words.
      • One gap is left: a <br> inside an inline tag (item 2).
    2. A cap on a name's length. Partly.
      • MAX_NAME_WORDS = 8 bounds a run of words in SOURCE_NAME and ITEM.
      • I timed every reader on 100 KB inputs: runs of capitals, of spaces, newlines and non-breaking spaces, of commas, list words and "and" pairs; one long word; possessives, "per" and "göre" runs. attributedNames and dropsName take 35 ms or less. attributableSources on a 100 KB page takes 10–90 ms and grows linearly with the page.
      • A dotted name still isn't bounded (item 1).
    3. "göre" before "en". Done. Only "daha" is skipped, and the test is flipped.
    4. nameStart and a name's last word. Done, a bit narrower than asked:
      • the last word stays when it's an "-ly" word or a capitalised role ("Grammarly", "Coach");
      • "Who says…", "Most said…" and "Our CEO said that…" are left alone.
      • "According to Grammarly" becomes "According to [source]" in a rewrite, and is known in a Fix when the page cites it.
    5. Smaller reads. Partly.
      • "per" by the page's language.
        • rulesLanguage is the CMS send's old expression, so the send reads the same language as before in every case.
        • Fix and Start call draftLanguage the same way, with rules now selected.
        • A draft's own Language rule works. My rules are read without the brand's kind of site (item 3).
      • "states" and "claims" after a count. Done mid-sentence: "all 50 US states that", "most US states that" and "the 48 contiguous US states that" aren't read. Two loose ends are in item 4.
  • #1537's own round-31 follow-ups (product sentences, the possessive in the placeholder, Turkish and German) are left for the next PR, as you said.

Before merge:

  1. Bound the work on a dotted name (server/src/lib/content-agent.js:336).
    • The two alternatives of NAME_DOT can both take the same dot: one after a single capital that is also followed by a letter, as in a run of initials.
    • When a pattern then fails, each such dot is tried both ways, so the time doubles with every dot. The cap on words doesn't help, since the run is one word.
    • This reaches SOURCE_NAME, ITEM and both "göre" names. So it reaches the page read at Fix and Start, the list check and a rewrite's placeholders.
    • Fix: let the second alternative take only a dot the first doesn't:
      const NAME_DOT = String.raw`\.(?=[\p{L}\p{N}])|(?<=(?:^|[^\p{L}\p{N}]|\.)\p{Lu})\.(?![\p{L}\p{N}])`;
      • With it, the dotted cases in the tests read the same: "U.S Census", "U.S. Census Bureau", "Node.js", "Gartner. The plan". So do "J.D. Power", "Per the U.N." and "U.S.'e göre".
      • A run of 20,000 initials reads in about 13 ms.
    • Add a speed test with a long "U.S.U.S.…" run beside the one for a run of capitals.

Low, follow-up:
2. A <br> inside a bold or a link doesn't end a line (server/src/lib/content-people.js:659-665, inlineText in editLines).

  • walk ends a line at a <br>, but inlineText steps over one. Some results:
    • <p><strong>Forecasting basics<br>According to Zapier, …</strong></p> reads "basicsAccording", and the insert is kept.
    • In <em>, "…according to Gartner.
      Most teams…" reads "Gartner.Most", and the insert is dropped on a page that cites Gartner.
    • Bullets written as <strong>ChatGPT<br>Gemini<br>Claude</strong> lose their names, and the change is dropped.
    • The page read has the same gap.
  • Fix: end the run at a <br> there too, e.g. return a break marker that walk splits the run on.
  1. My rules are read without the brand's kind of site (server/src/lib/content-language.js:39-44).
    • Since 00227, content_rule_sets is keyed by (organization_id, site_type, page_type), and 00227 copied each earlier set to all three kinds.
    • For those workspaces .maybeSingle() finds three rows and errors. Fix and Start then log a warning and read the brand's language, as before this PR.
    • A workspace with a set saved for another kind only gets that kind's Language rule.
    • The editor reads the brand's kind (getMyRuleSets: .eq('site_type', brandSiteType(brand))). The test's mock returns one row, so it passes.
    • Fix: filter by siteTypeOf({ siteType, industry, shoppingModeEnabled }) from content-page-types.js. Fix and Start already select those columns.
    • The CMS send's myRuleSets (content-delivery.js:440-447) had the same gap before this PR: it keeps whichever kind's row comes last. The same filter fixes it. brandFor would then need site_type and shopping_mode_enabled.
  2. "states" and "claims" (server/src/lib/content-agent.js:360-363).
    • At a sentence's start, the count is read as part of the name.
      • "Most US states that allow it…" reads "Most US", and a rewrite writes "Most [source] states that…".
      • "Every FDA states that…" reads the same way.
      • "Southern states that…" and "New England states that…" are still read too. The test has New England only after "all 50".
      • Fix: add the count words (All, Most, Many, Some, Several, Both, Every) to the name's negative lookahead in this pattern.
    • The lowercase words after a count let a claim through. "In some cases Gartner states that…" and "For many years Gartner claims that…" aren't read.
      • Fix: allow those words only after a number or "all" ("the 48 contiguous", "all the").

…als reads in linear time (review)

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

Copy link
Copy Markdown
Collaborator Author

Done (38dc169): NAME_DOT as you wrote it. An initial's dot is now one no letter follows, so each dot is taken one way.

  • New test: a run of 10,000 "U.S." through addsAttribution, dropsName and a placeholder. With the old pattern it didn't finish within two minutes here; now it takes well under the 500 ms limit.
  • Dotted names read as before: "U.S Census", "U.S. Census Bureau", "J.D. Power", "per the U.N." and "U.S.'e göre".

Your low follow-ups 2–4 (a <br> inside a bold or a link, My rules by the brand's kind of site, "states"/"claims") are in #1544, on this one.

Checks: server format and lint clean; 224 test files, 2,806 passed, 3 skipped.

cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Oct 26, 2026
…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 ansvisor#1537)

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

@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.

What I checked:

  • Round 32's before-merge item: done (38dc169). NAME_DOT's second alternative now takes only a dot that no letter or digit follows, so a dot is read one way only, and a run of initials is read in linear time.
  • The test runs 10,000 "U.S." through addsAttribution, dropsName and placeholderAttributions within 500 ms, and checks the dotted names read as before: "U.S Census", "U.S. Census Bureau", "J.D. Power", "per the U.N." and "U.S.'e göre".
  • Nothing else changed in the commit: content-agent.js (the pattern and its comment) and its test.
  • Merge. It goes in through a temp base on #1526's old head, as the squash needs: clean, and the combined tree with #1544, #1545 and the CE-017 chain passes server and web tests, tsc, lint, Prettier and the schema build.
  • Round 32's low follow-ups 2–4 are in #1544.

@gkhngyk
gkhngyk merged commit 64f6d9c into ansvisor:main Oct 26, 2026
4 of 5 checks passed
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