Repository navigation
Conversation
…e (T210, T212, T213, T214) - T210: an off word after at most 5 small words (please, turn it all, can go) blocks the on rule and turns autopilot off. - T212: the table form with the autopilot word, a comma and an off word asks for autopilot, so the note says the off word won. - T213: any punctuation run or a line break between the phrase and an off word counts. - T214: the off signal reads the whole text folded, so a mark or a format character joined to the phrase cannot hide it. - Whole off words after the phrase; invisible letters removed; look-alikes for every letter of the off words; a BOM is no space. - The note names the off word, a hidden character or look-alike at the phrase, "and" before autopilot, and a missing on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e new note reasons (T210) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…differential test (T210 round 1) - F-R741-1, F-R741-3: the off words soon after the phrase are main's again: no or without and any word, an off word at the start of a longer word, with a hyphen or a typo, and do then not across a line break. - F-R741-2: turn or switch, one word, then off, also after the small words. - F-R741-4: the note names an off word only by a fixed name, found in the owner's own text; otherwise it says an off word. - F-R740-1: a character that the fold removes or changes (default-ignorables, U+2800, symbols that fold into letters, control characters) joined to the phrase makes it no phrase; the off rule also reads it as a space, and a control character may come before the off word. - The off rules keep main's start and space (a BOM is a space there), and the broad off rule reads the text as it is too. - The mode tables move to module level; a differential test reads them, the repros of issue 105, the reviewers' forms and a generated set (124547 inputs) against main's rules in scripts/fixtures. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…intent words before an off word (T210 round 1) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Repair round 1 (run R743), head 0f982f0. Each finding, and what changed. The phrases are described, not quoted.
Evidence:
Behaviour changes to know about: the earlier whole-word rule of this PR is gone. A request that starts with an off-word stem right after the on phrase now blocks the on and gets the note. The round rule decided this: never narrower than main. 🤖 Generated with Claude Code |
Both rules hold after the merge: - Only the owner's own text switches sage mode or autopilot (PR 110, T215): autopilotOff is ownOff only; unreadOff, the stray path, the unread note and the frame parser stay as on main. - The owner's off is never narrower than before (PR 106): ownOff keeps the small-word window, the fold forms and the as-is form. - The unread note reads the same wider off forms at the start of any line (offAtLines, which replaces OFF_AFTER_LINE), in linear time. - The differential test against main 86e2421 applies to the owner's text. For agent text it now asserts that nothing switches, and that every off that main applied in an unreadable prompt still gives the unread note. PR 106 rows dropped or changed, with the reason: - providers.test.mjs, the F-R724-L2 row (an agent's off line turns autopilot off): replaced by main's T215 row, because agent text switches nothing now. - sage-hook.test.mjs NOTE_TEXT_CASES, the row whose note reason is an off line in an agent's text: removed, because that reason no longer exists. - sage-hook.test.mjs NOTE_CASES, the two F-R724-L2 rows (an agent's off line gives the miss note): now expect no note, as on main (T215). - sage-hook.test.mjs MODE_CASES, the agent report row with off lines: now expects autopilot to stay on, as on main (T215). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Closed by the owner's decision (2026-10-11): sage mode and autopilot switch only on an exact phrase, so the free-text off rules here are no longer needed. The replacement is task T240. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #105
The follow-ups of PR #104. Off now wins in each form that the reviews found, and the miss note names the real cause. The on rule keeps PR #104's strict phrase boundary. In this text, "the on phrase" is sage's on phrase and "the autopilot word" is the word autopilot.
Items and fixes
Tests
scripts/sage-hook.test.mjs: rows for each item in the mode table (on side and, with autopilot on before, the off side), the note table (each new reason, word for word), the noted table, and 5 new 1 MB padding rows (punctuation, small words, invisible letters, a joined mark with BOMs).scripts/providers.test.mjs: the new signals (offWord,joined,autopilotGap) in both isolated bundles, so the Codex adapter reads the same signals.Every rule stays linear (T34): a probe of each new shape at 100 KB and 1000 KB gives a time ratio of 8.7 to 12.4.
🤖 Generated with Claude Code