Skip to content

Review rules: follow-up minors from #956 round-2 lenses #972

Open

Description

@scuttletoby

Follow-up minors from the round-2 lenses on #956 (state #956 (comment), code #956 (comment)). None blocks: the Python gate still decides, and each case fails closed.

  1. HTML number reference gets past the Unicode check (apps/server/src/fork/reviewRules/findings.ts:64-65): fold checks the raw text, then unescapes. Ᲊmajor: ... is a major in the Python gate but nothing in TS, so lens_start restarts the lens at the same head up to the cap. Fix: run the check on the unescaped text too; add vectors.
  2. Untested branches of the Unicode check (pyText.ts:38-49): removing the NFKC/case clause lets U+1CCD6..U+1CCEF (outlined Latin letters) through; removing \p{M} lets 93 new marks through. Add unicode vectors for both.
  3. lensStart.ts:310: said.length === 0 && !section -> !section keeps all tests green. Add a reads vector: report with a major but no blocker: line.
  4. lensStart.ts:780: the lens-key match in the restart cap has no test (comment at lensStart.test.ts:1214 claims it). Add one.
  5. lensStart.ts:806: smallest vs largest count over a batch is untested (only attempt number/request id change).
  6. lensStart.ts:775-785: head A -> B -> A (force-push) counts earlier good reads of A toward the cap and the note says they ended with no read. Rare, fails closed.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions