Skip to content

fix(typescript): masker keeps code after a JSX closing tag and a backtick in a regex literal (#9936) - #9983

Merged
EffortlessSteven merged 10 commits into
mainfrom
claude/fix-9936-ts-masker
Oct 24, 2026
Merged

EffortlessSteven merged 10 commits into
mainfrom
claude/fix-9936-ts-masker

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Current delivery state — post-landing repair required

Implementation landed: head 8a08732aec28888de77fec4bb6ab2fb687df7802 was squashed as 0f7e3142f0be3e339b978412bd7f0e4c628611c7. Required40055354667/producer120757156616/Result120767425002 succeeded on actual1b76a152 (3779+8a), with20,393passed/five skipped and doctests2passed/1ignored. Candidate, executed merge and squash have identical tree4467975fdd31593bab474a4749a0328fd1975e2a. The old shared MCP/duplicate-field compilation hold below is resolved by consumed #10027/#10036; do not repeat its repair or qualification.

Current blocker: source review5637876832, REPAIR_REQUIRED. The new literal-plan parser invokes OXC directly from later classifier/mocking paths, bypassing the existing #4101/#4111 nesting/large-stack execution owner. The affected helper remains unchanged on inspected descendant main. This is a verified source-route/safety-contract finding, not a claimed newly executed native abort. The successful hosted controls retain their actual scope and do not cover this later deep-input route. Source-kind/fallback and bounded-attempt advisory dispositions are in the review.

Existing canonical writer custody remains. Next: consume an accepted guarded-parser repair with a discriminating process-level test for this later entry, independent exact-successor review and only the justified normal qualification. No competing patch, new CI, rollback or closure of separate #9970 findings is implied. Fresh runtime reproduction and final independent repair review remain outstanding.


Historical implementation and qualification continuation (original evidence preserved)

Proposal: none (bug fix governed by #9936).
Spec: #9936 acceptance: a fixture and negative control for JSX closing tags and backtick-bearing regex literals.
ADR: none (reuse the existing OXC parser and existing lexical mask; no new architecture decision).
Plan item: #9936.
Governing issue or accepted claim: #9936; canonical owner claude/fix-9936-ts-masker.
Acceptance delta (one sentence): Preserve real writes after JSX closing tags and backtick-bearing regex literals while keeping regex/JSX literal text from becoming a write.
Candidate branch (GitHub PR head is authoritative after publication): claude/fix-9936-ts-masker.
Stack parent or prerequisite PR (if any): #10019 landed at 37dc4ae; no open prerequisite. Reviewed contribution 017df5f and equivalent a3b0e245 test correction are adopted.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none (same canonical PR).
Accepted winner and losing candidate disposition (when decided): #9983 remains canonical; d6/bdd0 lexical guesses superseded by the adopted 017df parser-span repair.

The TypeScript masker could hide a real assignment after a JSX closing tag or a backtick-bearing regex, allowing a mutable runner binding to be credited. This candidate derives regex and JSX spans from OXC, preserves executable containers and the existing Unicode byte adapter, and supplies the file's TS/TSX source kind to strong binding, spy and pruning scans. Main's independent division-only lexical scan remains separate.

Current candidate: 1842d4f, the canonical owner's plain merge of reviewed b960c7d and landed main37dc4aee04ae2ad8985ccebcb88a170d5633a012; tree c48ee59e83c9b73cc26dc3e193668a47beb7bff2. TypeScript source/tests and Cargo inputs remain byte-identical to b960, on top of e04f482 (adopted 017df plus tests). Delta over e04: the parser-known regex's closing / is now blanked so /a/*2; test = null; /* c */ keeps the write visible (new test review_9936_parser_known_regex_followed_by_star_or_slash_keeps_the_write_visible, red before the fix); the angle-shape test strings are native-valid (.ts glued n</a/.source.length, .tsx n < /a/.source.length, as in the reviewed contribution a3b0e245); a changelog line records that kind-less mask sites intentionally keep the lexical fallback; oxc_ast_visit is listed in RIPR-SPEC-0085.

Acceptance / control Evidence and result
A real write after JSX closing text or a backtick-bearing regex remains visible Adopted parser spans; real-write / no-write fixtures; 28 further adversarial shapes pass in fresh review.
Genuine division interpolation, private calls and TS assertions retain real writes Independent typed/normal controls pass.
Regex followed by * or / does not hide a write New F1 test, discriminating (fails at case 0 with the pre-fix behavior).
Regex/JSX text does not manufacture a write; Unicode offsets remain correct Paired controls and byte-adapter assertions pass.
Division-only compatibility route remains lexical Independent controls pass.
Angle-shape test tails are valid native TypeScript Corrected; focused product test passes.

The new optional dependency oxc_ast_visit=0.130.0 is enabled only by lang-typescript. Context-free TS/TSX ambiguity and parse failure retain the existing lexical fallback. The change can move credit in either direction when correcting literal boundaries. No-lang-rust feature builds fail identically on base and main (explicit compile_error), so they are inherited, not a regression.

Validation on the unchanged b960 TypeScript source (canonical author reports; not relabeled as fresh whole-tree1842 execution): cargo test -p ripr --lib typescript 1732 passed (fresh independent run), cargo fmt --check, clippy -D warnings and cargo xtask precommit exit 0; goldens, fixtures, verdict-corpus and check-dependencies exit 0 before the final test-only edit. Independent exact-head source/oracle review: no material findings.

Rollback boundary: revert this PR's parser-span/source-kind integration, optional visitor dependency and matching fixtures/changelog together; keep main's independent division-only scan intact.

🤖 Generated with Claude Code

https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt

Current integration continuation: REVIEW_INCOMPLETE / WAITING_SHARED_REPAIR after required 40037924331 attempt1 failed. Canonical head remains1842d4f759a783ebb3f6ee2a632139c797f00db3; actual producer120702339718 checks out8aa4e662470eb8f85eee4b74773e47bf31acb09d (parents37dc4aee +1842, tree c48ee59e83c9b73cc26dc3e193668a47beb7bff2). The landed #10019 repair is correctly included; this is a different failure.

Retained successes on that actual checkout: candidate admission, policy/traceability, workspace/all-target and all-feature compilation, strict workspace Clippy. Required native nextest runs11,189/20,364 planned tests:11,187 passed,2failed,5skipped; independent parsing verifies11,187 distinct PASS identities plus2distinct FAIL identities with complete executed ordinals1..11189. Fail-fast leaves9,175 not run. Doctests, goldens, fixtures, verdict corpora, PR evidence and schema sweep are skipped and unavailable, never passed. Final required Result120708407412 fails.

The two failures are durable_selected_awaiting_mcp_projects_portable_continue_root and durable_selected_restart_failed_cli_binds_root_mcp_projects_portable, both at repair_freshness_tests.rs:599, “CLI restart display must bind the selected repository.” Companion Rust-only 40037924252/job120701939460, also actual8aa, fails those two plus the open-gap root sibling at the same assertion (library11,142pass/3fail/1ignored). It is not TypeScript masking evidence or an infrastructure timeout.

Source attribution: the expectation uses shell_arg(display_path(root)), which normalizes a literal Unix backslash, while actual CLI shell-quoted commands retain the native fixture path. Freshness test blob9741e838912758fb4feab182616f455f7a187df1, root-test blobfa6faa36b95209f04dcc340c1e3aab074a3444f1, root-rendering agent source, agent_status and the entire MCP directory are byte-identical between frozen main37dc4aee and actual8aa. This supports inherited test-oracle attribution; exact-main native reproduction is still pending the existing owning driver and is not inferred from source equality alone.

An existing bounded repair already owns this exact residual: #10011 comment6376744690, branch codex/mcp-native-root-oracle, base37dc4aee. It proposes native-root CLI expectations plus real shell argv/device-inode controls and retains MCP privacy checks, with no product-rendering/validator/retained-route change. Its admitted native base/candidate driver is reused; no competing writer, duplicate test campaign or unchanged CI retry is started. Consumer handoff6376932771 supplies this exact failure/log/source evidence. The #10009 policy decision remains separate.

Accepted TS source/oracle review5634742581 and exact adopted composition review5635382649 remain scoped valid evidence: native-valid positive/no-write controls, correct Unicode offsets, unchanged TS/Cargo blobs, and main37dc's corrected golden/ledger/303-record traceability. Whole-tree qualification is failed. #10019 remains landed at37dc with its own completed qualification, not a substitute for this consumer.

Raw2,668,169-byte required log and terminal/source/ordinal receipts are retained under /workspace/9936-golden-failure, SHA256eddf27fa37584297dbf68027ae8e014167bc60749f698a51ff93d6eb0c2970f1. All observed1842 workflows are terminal before readiness/request cleanup. Keep the candidate unqualified until the owning oracle repair has exact base/candidate proof, independent revision review and normal landing/adoption; inspect actual successor/combined tree, refresh only affected proof/review, then make one justified new qualification. Canonical owner retains eventual expected-head protected squash and main/acceptance verification. Prior upload/archive/protection/deletion denials and other downstream owners remain preserved.

…tick in a regex literal (#9936)

A '/' glued to a '<' closes a JSX element and is not a regex start; a
division-position '/' that opens a backtick-bearing regex literal on the
same line is read as a regex, not a template string. A write after either
shape is again seen by the var/let runner write scan.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 141 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 64a8fab3-4ab2-47cf-b378-6c7b4a5e0437
Commits

Reviewing files that changed from the base of the PR and between 3779c15 and 8a08732.

Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 11
  • changelog.d/9936-masker-context.md
  • crates/ripr/Cargo.toml
  • crates/ripr/src/analysis/language/typescript/admission.rs
  • crates/ripr/src/analysis/language/typescript/classifier.rs
  • crates/ripr/src/analysis/language/typescript/literal_mask.rs
  • crates/ripr/src/analysis/language/typescript/mock_payload_guard.rs
  • crates/ripr/src/analysis/language/typescript/mock_payload_guard/spy.rs
  • crates/ripr/src/analysis/language/typescript/mod.rs
  • crates/ripr/src/analysis/language/typescript/tests/var_runner_binding_tests.rs
  • crates/ripr/src/analysis/language/typescript/tests_extract.rs
  • docs/specs/RIPR-SPEC-0085-typescript-evidence-adapter-contract.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REPAIR_REQUIRED — exact-head independent inspection of d6a932f (parent aea8941).

[P1] Regex lookahead masks executable division operands. const n: number = 4; const q = n /[+${(test = null, 2)}][0] / 2; is valid native TypeScript (5.9.3 tsc --noEmit, exit 0). Native Node executes the interpolation and sets test to null. The parent's mask preserves that write; this head's new regex_with_backtick_follows branch blanks it through the next slash. The same regression occurs after postfix n++. BindingScan::of_source consumes byte_preserving_code_mask and strict_identifier_writes, so this creates false immutable-runner admission. The PR's statement that both rules can only withdraw credit is false. Fix by distinguishing statement-regex context from division before entering Regex; do not use a future backtick/slash pair as sufficient evidence.

[P1] < adjacency alone does not establish JSX. const n: any = 4; const s = ''; const b = n<//.test(s); test = null; also passes native TypeScript. On the parent the operand-position regex is masked correctly and the trailing write stays visible. On this head, the new glued-<` rule leaves the slash as code and the regex backtick opens Template, hiding the real write. This is a correctness regression, not merely conservative refusal. Track/establish JSX closing-tag context before overriding the regex rule.

[P1] The requested regex shape remains incomplete: if (n) /a/.test(s);\ntest = null;still hides the write because the lookahead only accepts backtick or[` immediately after slash. Escaped backticks in character classes also need coverage. These are inherited but falsify the claimed general repair for backtick-bearing regex literals.

Inspected surfaces: complete 2-file diff, masker state/character contract, BindingScan, byte_preserving_code_mask, strict write scan, related identifier-scan consumers, issue acceptance/owner claim, all-state #9936 PR search, Conversation, submitted reviews and all returned inline threads. Native TypeScript positive/no-write controls and extracted current/parent production functions were exercised independently by two review contexts. Unicode source offsets are handled by the existing byte-preserving adapter; the raw character-preserving mask's shorter byte length is not itself a defect.

Hosted state observed: required Ripr Rust Small Result absent; no PR workflow runs; only Graphite/security checks passed; automated review providers quota-limited; zero submitted reviews/threads before this record. Current GitHub mergeability reports dirty. Main branch metadata names the required result; active main ruleset 18845973 requires resolved review threads and zero ordinary approvals. Classic review-protection GET was denied 403 Resource not accessible by integration (not retried), so that policy dimension remains unestablished.

Owner / governing claim: claude/fix-9936-ts-masker / #9936; canonical custody retained.
Candidate: #9983 / d6a932f; live base main was d5a4942; source parent aea8941.
Review: REPAIR_REQUIRED for the three findings above; no merge clearance.
Validation: native tsc 5.9.3 and Node controls passed; current-vs-parent extracted masker controls observed; focused adapter regression build is still running locally and is not claimed passed.
Dependency: canonical owner adoption and joined repair, then conflict/integration judgment, current-head review, required CI and normal expected-head squash.
Next: return this candidate to Draft; review-owned regression contribution will be linked here after its terminal execution receipt. No competing canonical PR or qualification request.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 16:24
Review-owned regression contribution for canonical PR #9983. Deliberately
exposes two candidate regressions and an incomplete backtick-regex repair;
no production change or competing delivery PR. Canonical owner must adopt
and repair before normal required qualification and protected merge.

Native TypeScript 5.9.3 syntax/type controls and extracted production
masker/byte-adapter/write-consumer controls reproduced independently.
Full adapter regression execution receipt is pending; no green claim.

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Current status: Draft / WAITING_SHARED_REPAIR, unchanged canonical1842d4f759a783ebb3f6ee2a632139c797f00db3. All observed1842 workflows are terminal; merge-ready was removed after terminal failure, and no new qualification is requested.

I inspected the complete required producer120702339718 log for run40037924331/attempt1: actual8aa4e662470eb8f85eee4b74773e47bf31acb09d (37dc +1842, treec48) correctly includes landed #10019. Admission/policies/traceability, all-target/all-feature checks and strict Clippy pass. Native summary and independent parsing establish11,187 distinct PASS plus2FAIL identities, complete executed ordinals1..11189 of20,364 planned;5skipped and9,175notrun. Doctests/goldens/fixtures/corpora/PR-evidence/schema are skipped; aggregate120708407412 fails. This pipeline is incomplete and failed.

Both failures are MCP selected restart/awaiting root tests at repair_freshness_tests.rs:599. Companion Rust-only40037924252/job120701939460 also checks out8aa and adds the open-gap sibling failure at the same oracle (library11,142pass/3fail/1ignored). The oracle shell_arg(display_path(root)) normalizes a Unix literal backslash, while actual CLI commands preserve native spelling and shell-escaped quotes. Both test blobs and all relevant MCP/agent/agent_status source equal frozen main37dc exactly. This supports inherited test-oracle attribution; exact-main native red/repair-green proof remains pending the already-admitted owning driver, not claimed from source equality.

The existing repair owner is codex/mcp-native-root-oracle / #10011 comment6376744690. Exact consumer handoff6376932771 supplies actual failure/source evidence and requests the one driver's receipts/follow-up PR. No competing repair, new Cargo build, label or CI retry was started. The #10009 policy decision is separate.

Accepted TS source/oracle/composition evidence remains scoped: actual1842/8aa treeexactc48 preserves all TS/Cargo bytes, native-valid positive/no-write controls and Unicode offsets. Whole-tree qualification is failed. Updated current body passes unchanged exact-source contract; SHA256f6e8237007c93d7b58a0ace8072a83b9320f607c0867e953eb48a5bf23081f17. Raw2,668,169-byte required log SHA256eddf27fa37584297dbf68027ae8e014167bc60749f698a51ff93d6eb0c2970f1 and exact ordinal/source/terminal receipts are retained under /workspace/9936-golden-failure.

Additional observed native success on actual8aa:1,556 distinct PASS identities in namespace analysis::language::typescript::, including all21 named review_9936 controls for real/fake writes, syntax kind and Unicode offsets. Their raw-log ordinals are4141..5701, interleaved with other tests. This is a bounded observed subset of the failed pipeline, not the author's separate1,732-test claim or a successful full qualification. Exact identity receipt SHA2564ae00ab3e811ee125fa56936c5d81d844ac83ac2cd9944264dfc917141a456ef is retained.

Next canonical action: consume the existing owner's independently reviewed bounded correction and native base/candidate proof, verify its normal landing/adoption, bind actual successor/combined source to affected proof/review, then request one justified qualification. Preserve native-root positive/device-inode and wrong-root negative controls plus MCP privacy checks. Final review, ordinary protected expected-head owner squash and main verification remain pending. Other consumer owners and all stopped publication/archive/protection/deletion routes stay preserved.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REPAIR_REQUIRED — terminal executable supplement to the existing exact-head review, on unchanged d6a932f. The PR is already Draft. This adds full-adapter discrimination evidence to the existing findings, without duplicate finding threads or another full-suite request.

The real adapter confirms seven introduced regressions, including five false promotions and two lost no-write positives. Using the existing var test = require('tape'), imported triple, and t.equal(triple(2), 6) fixture, with const n = 8, s = 'sample';, the bounded controls produce:

Tail Exact author-base production Submitted-head production Expected
const q = n /`2`.length; test = null; const r = 8 / 2; NoStaticPath Exposed NoStaticPath
const q = n /`2`.length; test = null; // done NoStaticPath Exposed NoStaticPath
const q = n /[+`2`][0]; test = null; const r = 8 / 2; NoStaticPath Exposed NoStaticPath
const q = n /`${(test = null, 2)}`.length; const r = 8 / 2; NoStaticPath Exposed NoStaticPath
const q = n /`x/ test = null`.length; (no write) Exposed NoStaticPath Exposed
const q = n</`/.source.length; test = null; NoStaticPath Exposed NoStaticPath
const q = n</x test = null/.source.length; (no write) Exposed NoStaticPath Exposed

The ordinary no-write const q = n /`test = null`.length; remains Exposed on both. Two additional escaped/prefixed backtick regex controls still hide writes on both base and head; they are inherited incomplete coverage, separately confirming the earlier review's third concern. All 16 syntax controls pass TypeScript 5.9.3 tsc --noEmit --skipLibCheck --jsx preserve --target es2022 (native exit 0), and all 14 non-JSX controls execute in Node with the expected real-write/no-write effects. The division examples have numeric divisors, so they do not depend on invalid string arithmetic.

Observed executable receipts:

  • Command on each frozen production variant: cargo test --locked -p ripr --lib var_runner_binding_tests -- --nocapture, Rust 1.95.0, Linux x86_64, locked default features, isolated review target. Only one review-only test was added; no production changes were made for the head experiment.
  • Head d6a932f, submitted tree 341bb2acaeba5b3ca738d8a77c1f994b132ab407, experimental tree 10555600910e3361a29da75d32abb6059d22053f: 17 passed, 1 failed, native exit 101. All 17 existing candidate runner tests pass, including both new acceptance tests and their no-write controls. The review-only test observes 9 mismatches in 10 cases: 7 introduced, 2 inherited.
  • Author base aea8941, base tree 905e7afca930703d018e9078b26bb2ca878b1277, experimental tree 3009b33abc3649f51063733d726680e2f6de6a96: 15 passed, 3 failed, native exit 101. That experimental tree differs from the exact base only in the test file, carrying the same candidate/review controls. The two original acceptance tests fail on the old behavior; the review-only test now fails only its 2 inherited regex cases. Every introduced regression in the table disappears when the production change is removed.
  • Frozen test executable SHA-256: head 0a7ac95aae35b4ec4f6b9f2b394887788541180ff5eaae5e6d93fb3caf86f4c9; base a1ddeb483e13ab13a6dd1a1a5a9a5372b425e4fa8e8d2193c9e49666d8b83f98. Logs, row-by-row outcomes, input snippets, source patches, and both executables are retained in the review environment for handoff. These red runs are observed behavioral failures after successful compilation, not setup failures or hosted qualification.

Reconciliation: the existing 1,672-test/precommit/verdict evidence was not duplicated or relabeled as an independently observed full-suite pass. The selector_swap_try_error_arm_control human-full golden blob is identical on author base and head; merged #9968 (0abe9d41f9e7dcdf439d020db793d5b202b704fa) repairs its old observation_unverified marker on main. That inherited golden repair is separate from these candidate failures. Local composition against observed main d5a4942faaf272e41ac6f31dc3c0e8eab9836407 reports the classifier.rs conflict; no remote PR merge ref was advertised. No integration or hosted-required-check clearance is claimed.

Owner / governing claim: existing canonical claude/fix-9936-ts-masker owner / #9936; branch and authorship preserved.
Candidate: #9983 / unchanged d6a932f / Draft.
Review: REPAIR_REQUIRED; this terminal adapter receipt supports the earlier review's blocking findings.
Validation: bounded positive/negative and production-removal controls above; the full 1,672 suite remains within its existing reported scope.
Dependency: same-candidate semantic repair and classifier integration; selector golden repair already landed separately.
Next: canonical owner repairs the lexical/context distinction, retains these genuine-division/comparison and no-write controls alongside the original JSX/regex tests, then refreshes affected exact-head review and integration before requesting required qualification. Current head is ineligible for merge.

claude and others added 3 commits October 23, 2026 16:51
… context-based shapes

Replace the backtick lookahead with statement-regex context (a / right after
an if/while/for/with header is a regex) and gate the </ rule on an open JSX
element; adopt the independent review counterexamples.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 19:16
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REPAIR_REQUIRED — exact successor bdd0d8f, tree 801c43e562b2cbfc33bc242976691f9995ba7632 (parents d6a932f + main basis 97df16c). This is a fresh source review; prior 017df5f results do not qualify this changed lexer.

[P1, introduced] Private keyword method calls are not control headers. Valid native TypeScript:
class C { #if(x: number) { return x; } f() { return this.#if(8) /(+${(test = null, 2)}) / 2; } } new C().f();
The new paren_headers rule sees word=if after the private # and sets header_close. It then opens Regex at genuine division and blanks the executable interpolation through the next slash. The exact production byte-preserving adapter and strict_identifier_writes consumer lose the real test assignment. The same producer/consumer with exact author main basis 97df16c preserves it. Native TypeScript 5.9.3 syntax and native execution confirm a real write; the no-write template-text control remains negative. This again falsifies the body's claim that both rules can only withdraw credit.

[P1, introduced] JSX text is not JavaScript control-header context. const node = <div>if (n) /a {test = null}</div>; is valid native TSX and its expression container executes the assignment. The new header_close state treats text's if(n) as a statement header and starts a regex across the container, hiding the write. Exact base97df producer/consumer keeps it visible; bdd0 loses it. Backticks, quotes and comment markers in JSX text also remain inherited hiding cases, separately classified.

[Introduced valid-positive regression] Identical bytes have different native TS/TSX meanings. With const a = 8, g = 2, x: any = 0; type div = any;, the tail const v = <div>x</div>; test = null; const y = a /g; contains the apparent assignment in a regex in native .ts and a real assignment in .tsx. New jsx_depth guesses JSX even in the native .ts source, exposing a fake write; exact base correctly masks that native .ts regex. The masker has no source-kind path, so this cannot be judged from preceding characters alone.

[Inherited, still claim-falsifying] Generic JSX declare function Component<T>(props: any): any; const node = <Component<number> />; test = null; still hides the real trailing write, as do the earlier nested/JSX-expression examples. JSX attribute/text fake writes remain lost no-write positives. These are not mislabeled as newly introduced.

Observed proof: exact bdd0 masker + exact bdd0 production byte adapter/strict-write helper compile and execute with Rust1.95.0, 79/98 controls pass;19 mismatch, native exit101. Exact 97df source substitution yields67/98 pass;31 mismatch; the two P1 cases and native .ts positive above pass on base and fail on bdd0. All98 unchanged syntax/runtime controls previously passed native TypeScript5.9.3/Node; their inputs are retained. A separate independent reviewer compiled its own exact bdd0 pipeline and independently reproduced these cases (20 failures in its distinct41-case suite). Raw root receipts: /workspace/9936-successor-review/{consumer.rs,consumer.log,base-consumer.rs,base-consumer.log}. This is bounded producer-consumer evidence; no full-product bdd0 pass or failure is claimed, and no duplicate Cargo build or CI was launched.

The already-published isolated parser-span contribution remains available for adoption: exact source017df5f1 bundle/patch and terminal proof. That contribution passed1,729 product tests, check-fast and precommit on its own exact revision; it preserves main's independent division-only path. The canonical owner is now actively repairing, so no competing writer will be started.

Next: return this known-defective successor to Draft, repair through the canonical owner (adopt the portable source or an independently reviewed equivalent), retain these native positive/negative distinctions, then review/prove the new exact head and actual merge subject before required qualification. Active advisory jobs are not source clearance; required Ripr Rust Small Result was absent at this read. No merge clearance.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 19:22

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correction and executable addendum to review5633394173 on exact bdd0d8f: the first posted private-method snippet accidentally contained a backslash before the interpolation marker. The actual compiled/native-tested input contains the unescaped interpolation shown below. The executable evidence used the correct bytes throughout.

class C { #if(x: number) { return x; } f() { return this.#if(8) /(+`${(test = null, 2)}`) / 2; } } new C().f();

The no-write control is:

class C { #if(x: number) { return x; } f() { return this.#if(8) /(+`test = null`) / 2; } } new C().f();

Independent comparison against actual main parent97df16cb also confirms this introduced TypeScript type-assertion regression:

type T = number; const n = 8; const typed = <T>n; const b = n</T>`/.source.length; test = null;

Base97's production masker/byte adapter/strict scanner returns the write at source byte83; bdd0 returns none. Its paired no-write regex-text control returns no write on base97 and a false write at byte65 on bdd0:

type T = number; const n = 8; const typed = <T>n; const b = n</T>test = null/.source.length;

Both .ts witnesses and the JSX/private witnesses passed independent native TypeScript5.9.3 syntax checks. Independent receipt SHA-2564e792bdb4bce54d8695c22cbadf41caa663b08afe292d2fa37112fd7ab143552; inputs/raw offsets retained under /workspace/9936-canonical-bdd0. This supplements the prior exact-head REPAIR_REQUIRED finding, without claiming a full bdd0 product run. PR reread confirms Draft; active canonical repair retains custody. The published017df parser-span contribution remains available for owner adoption with joined exact-head proof.

…ontrols

Merge the independent review contribution (OXC-derived regex/JSX span masks,
native source kind on strong-credit scans, byte-width adapter retained) in
place of the lexical jsx_depth approach, which could hide a write after
`<any>x`, `1<<n`, `<Foo a={1} />` or `return <p>x</p>;`. Adds a control test
covering those shapes and `for await (...) /a`/.test(s)`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt

@github-actions github-actions Bot 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.

Verification questions

  • Confirm the diff routes module-source masking using the owner file's source type, which matches the changed helper contract but requires owner and module paths to share syntax semantics.
  • Confirm source-type-aware masking reaches admission, verified imports, reach-body analysis, and spy guards, but masked_owner_body still calls the generic TS/TSX-agnostic masker.
  • Confirm the earlier private-method and JSX-text false-masking findings appear addressed by parser syntax rather than keyword/depth heuristics.
  • Confirm the source-type-specific masking helper is used by admission, mock-spy checks, and unused-function reachability, but the context-free helper remains public within the module and is still used for owner masking.
  • Confirm parser-plan fallback silently reuses the legacy lexical masker when the source cannot be parsed, so the new source-kind-specific guarantees are conditional on parser success.
  • Confirm the source-type-unaware public masker remains a compatibility route that parses TS and TSX and accepts only a plan when both agree.
  • Confirm parser-plan fallback is behaviorally important but lacks a direct oracle for parse failures across all candidate prefixes.

Refuted

  • A parser-backed active view could be invalidated by a resize, detach, transfer, or stale length snapshot.; refuted because: No such operation or abstraction appears in the reviewed diff. The implementation uses immutable source strings, AST spans, and byte indexes; it neither exposes nor mutates a backing buffer.
  • The new parser integration introduces an out-of-bounds or memory-safety hazard through span offsets.; refuted because: Plan::set uses get_mut for bounded slice assignment; parse_plan rejects parser errors; plan slices are bounded by the parsed source; no unchecked indexing appears in the added security-relevant code.
  • The PR's assertion that the changes can only withdraw credit is safe without considering parser ambiguity.; refuted because: The diff now deliberately distinguishes TS from TSX and parser-recognized regex/JSX spans, eliminating the specific ambiguity that made the earlier claim false; no new false-promotion path was substantiated from the changed right side.
  • The source-route change has no sibling callers using the old generic mask.; refuted because: That absolute claim is not supported: masked_owner_body remains a generic source-type-unaware helper, so the route is only partially migrated rather than fully proven absent.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-successor review: e04f482 (tree 7a31224bc4687bceb2059ba61a579104141940b7), parents bdd0d8f + reviewed contribution 017df5f. Adoption verified: the entire tree differs from 017df only by 39 test lines. Production, source-kind wiring, division-only path, Cargo.toml/lock are byte-identical. Fresh independent 41 typed/normal + 8 division controls pass; prior 98 native controls retain their original source/input scope. The private-method, JSX-expression and TS-assertion findings are resolved by the adopted parser spans.

REVIEW_INCOMPLETE for the new test oracle: the common n</a/.test(s)compares number with boolean (TS2365); the two .tsx variants also produce native TypeScript 5.9.3 parse errors at glued</`. Please make this bounded test-only correction in the canonical branch:

  • .ts cases: retain glued n</a/but use.source.length`.
  • .tsx cases: use n < /a/.source.length` (separate the JSX closing token).
  • Keep the for-await case unchanged.
    Independently checked corrected five cases: native tsc --noEmit succeeds with ordinary ambient test/Foo/JSX declarations; all five still detect the real write on adopted production and reject bdd0. Do not globally add the space in .ts cases, since their glued shape is part of the regression oracle.

Independent receipt SHA256 02c4acd22a2fa6bed33ad8909c0fb9bd541face11ec4337b26e9ec62533f6c15; exact inputs and native diagnostics retained in /workspace/9936-canonical-e04. No canonical source mutation or duplicate Cargo/CI performed by this review. Root is independently classifying the author-reported feature-only ra_ap_syntax compile failures against the exact base/current main; they are not yet called inherited. Please retain Draft until the test correction, joined review and normal required qualification.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact e04 follow-up / REVIEW_INCOMPLETE pending canonical adoption of the test-only correction.

The production findings remain resolved by actual adoption of 017df. Source-kind wiring, parser spans, dependencies and the separate division-only lexical path are byte-identical to the reviewed integration. Fresh independent 41 typed/normal + 8 division controls pass; Unicode byte offsets remain preserved.

A complete, reviewed correction is now executable: a3b0e245646a41e183d0db6e7ee3e23f9c683c38 (tree 03d0ff4e4d6b3c088865d8df258a3a7373e3b279, parent exact e04). It changes only the intended test strings (4 additions / 3 deletions). Native TypeScript 5.9.3 accepts all five full tape fixtures; actual producer -> byte wrapper -> strict-write controls detect each real write and reject bdd0. The actual TypeScriptAdapter product test also passes: cargo test --locked --offline -p ripr --lib review_9936_comparison_regex_after_angle_shapes_keeps_the_write_visible -> 1 passed, 0 failed, all five cases exercised. Changed-file rustfmt check passes. This is focused contribution proof, not a full canonical successor qualification.

Independent test/source review accepts a3; receipt SHA256 32022f0b70ccf2eeb211171746a6f1512782c0ac8ec561434bae0ff6a5440270. Eight direct fallback/context controls pass. Selected Cargo test executable frozen once, SHA256 c532ec0323b03cd6986ca065de9b5b547d84bda959937d1d68bc87ed7f2d7730; relocated /tmp execution passes the same single test. Driver49499 is consumed terminal0.

Exact bundle, portable patch, native fixtures, independent source/harness receipts and product log. The bundle imports the exact tested a3 commit with e04 prerequisite; bundle SHA256 62944c98a6b7b8fcc33931cb252840afc815e3fc25de2dd692d2cc3d638d92c7, patch SHA256 7cf73ec1c43357ba3e4361a50a496afd55b8d18a10aca744668338f330d4164e. Publication readback verified. No competing product PR or canonical push.

Automated review disposition:

  • module-spy reads owner.file itself, so source_type_for(owner.file) matches that module and owner snippet. Admission/extended registration use Program.source_type; whole-file extraction rejects parser errors. Selected spy and pruning paths preserve their actual file syntax.
  • masked_owner_body deliberately remains a context-free compatibility caller; no all-consumer syntax guarantee is claimed.
  • plan_for accepts equal plans when both TS/TSX parses succeed, or the unique successful parse; two failures try the next wrapper, while disagreeing successful plans stop with fallback. Preparation is trigger- and parser-success-dependent. Fresh malformed Unicode/backtick and ambiguity controls verify unchanged text/empty markers/regex_known=false, byte width and final legacy-mask equality. No universal parser-success guarantee or new material defect is established by those questions.

Feature-only build classification is complete: TS-only and Python-only no-lang-rust profiles fail on e04, exact basef63 and current main5950 with the identical lib.rs blob and explicit compile_error requiring lang-rust. These are inherited unsupported profiles, not a candidate masker regression. Six raw logs/receipts are retained and indexed.

Current canonical head remains e04 / Draft / unmerged. Smallest next owner action: adopt the exact test correction, then bind the review to that actual successor, perform offline PR-body shape admission, request normal required Rust qualification once, and merge only if eligible through protected expected-head squash. Current main5950 has no changed-path overlap with this candidate since f63 and merge-tree planning is clean; actual remote qualification/combined-tree subject must still be observed. Required Ripr Rust Small Result is absent; no merge clearance, qualification, release/deploy or protection bypass requested.

…rols (#9936)

A closing `/` left in place followed by `*` or `/` was read by the
division-only lexer as a comment start and hid a later write. Blank it and
add red-first controls for `/a/*2`, `/a/ /* c */` and a trailing `//`
comment. Correct the angle-shape test to type-valid sources (.source.length,
spaced `<` for .tsx). Add oxc_ast_visit to the SPEC-0085 crate list and note
the kind-less lexical fallback sites in the changelog.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 21:23
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Head b960c7d adopts the reviewed test correction (equivalent to a3b0e245) and fixes the F1 regex-then-* case (discriminating test, red before the fix). Fresh independent exact-head source/oracle review: no material findings; 28 adversarial shapes plus cargo test -p ripr --lib typescript (1732 passed). PR body updated, un-drafted for admission and labeled merge-ready once; will squash with expected head b960c7d once the required Ripr Rust Small Result is green on this exact head.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY for the exact published source/oracle subject b960c7d (tree ca3894fce024e97408b855a2798a417a9084ec1a, parent e04). Delivery remains WAITING_REQUIRED_CHECKS; this is not merge clearance while the required run is active.

Composition verified against accepted a3/017df: the angle-control correction is adopted with equivalent strings; only the local variable was renamed. The additional production delta blanks the parser-known regex closing slash (close..end instead of close+1..end), preventing a following multiplication/division token from manufacturing a comment boundary. Other production helpers, explicit source-kind wiring, division-only compatibility route and Cargo dependencies are unchanged. The complete four-path successor delta also adds F1 fixtures, changelog scope and the SPEC-0085 visitor entry.

Fresh independent changed-source execution: actual b960 literal_mask compiled with the production masker, byte adapter and strict-write consumer. All 41 prior controls, 27 new typed controls, 27 context-free repeats and five adopted-angle fixtures pass. The new 27 pass native TypeScript5.9.3 --noEmit and native-transpiled runtime checks; ten valid positives distinguish old017df's hidden writes from b960. Paired regex/comment no-write controls and exact Unicode source offsets pass. Independent receipt SHA256 c612a51a7022a5fdc015a7a41b61e2989c1b419bc8cbd5810f5c1c160a5df89d, retained at /workspace/9936-b960-review/independent-receipt.txt with source, inputs, compiler command and raw results. No full Cargo/CI duplication or relabeling of old source proof.

Non-blocking fixture scope: F1 cases0/1 are valid JavaScript/OXC syntax and discriminate the old mask, but RegExp multiplication fails native TS2362. Case3 is regex division by unresolved c, not a line comment, and is non-discriminating at the raw layer. Independent native-valid +/a/*2 and declared-c division cases prove the same repaired boundary, together with genuine comments and paired negatives. No claim that every F1 fixture passes TypeScript type checking.

Offline body contract passes using the exact current b960 validator functions from xtask main blob d9c0288a0e46d2491f82a24c691e18f6a377efd7: all 11 fields valid; all 11 missing-field negatives and TBD acceptance reject correctly. Captured body SHA256 95c6cc8aa2b05a724ef2c132d05fdd371f87a0da5eef79c23d5b07f2fe8f0b79. A pre-existing xtask executable ignored body arguments and was rejected as an instrument; no fresh full cargo xtask/advisory diff-shape pass is claimed. Current-source harness and receipts are retained locally.

Integration judgment: observed main ad1e3bb and candidate have no changed-path overlap since f63; merge-tree is clean b3110dac14176997866b8e8c89597551b1db360c. Remote merge bdf1792 has d562ff6 + b960 parents. Main's subsequent #8990 agent-stub change has no material TS prerequisite change identified; no restack requested. Actual hosted checkout/combined-tree receipt remains to be consumed.

Existing required run40026436475, job120663988314, belongs to exact event head b960. Admission, policy, workspace/all-target and all-feature checks passed; strict Clippy is active at the latest read. Author-reported 1732 TypeScript tests/local gates retain their reported scope. Required Ripr Rust Small Result is not yet successful. Inline threads are empty; active ruleset18845973 requires their resolution and has no bypass actors. The previously denied classic review-protection read remains a visibility gap and was not retried.

No material source finding remains. Next: consume the existing required result and actual checkout receipt, refresh exact head/reviews/threads/holds, then normal protected expected-head squash only if eligible and verify main ancestry. Canonical owner claude/fix-9936-ts-masker retains custody; no competing writer, duplicate CI, auto-merge, release/deploy or access change.

@github-actions github-actions Bot 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.

Verification questions

  • Confirm the parser-failure fallback path is not directly covered by a changed test.
  • Confirm context-free masking intentionally retains lexical fallback, but the diff does not show a direct oracle for parse failures across all such callers.
  • Confirm the new adversarial tests cover JSX text, nested attributes, regex backticks, division interpolation, type assertions, private methods, and Unicode byte preservation, but no focused test directly asserts parse-error fallback behavior.
  • Confirm owner-body masking still calls the context-free lexical masker rather than the parser-backed source-type helper.

Refuted

  • This change could disclose secrets or directly compromise runtime memory.; refuted because: The diff only influences static TypeScript evidence admission and masking; it does not emit file contents, access credentials, or execute newly privileged operations.
  • Parser fallback can silently manufacture a mismatch between parser-known spans and the lexical adapter.; refuted because: Fallback is explicit and conservative: prepare returns the original text plus empty operand metadata when no parser plan is available; the principal residual issue is missing direct fallback oracle coverage, not a demonstrated wrong write.
  • The parser integration would create a new architectural dependency or duplicate the existing lexer broadly.; refuted because: Rejected: the new dependency is feature-gated with the existing OXC stack, and the new plan is isolated in literal_mask.rs while the legacy lexer remains available as a fallback.
  • A parser-failure fallback defect is proven by the current diff.; refuted because: The diff shows the fallback behavior and the seeded thread records it as an oracle question, but no executable witness establishes incorrect behavior; this lane therefore reports a bounded test gap rather than a correctness finding.
  • A source-kind or parser-span change could create a stale length snapshot or detach-like mismatch between the active mask and the backing source.; refuted because: The changed code constructs a new string mask, validates character-count preservation, and performs no mutable buffer, resize, detach, or transfer operation; the relevant risk is syntax masking correctness rather than active-view lifetime safety.
  • Parser-derived mask spans are guarded against OOB and invalid UTF-8 slicing.

Evidence gaps

  • Parser-failure fallback is a behavioral risk worth verifying on the exact composed head.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Terminal result handoff: the new-head required run 40037924331 failed after the baseline was correctly consumed. Producer 120702339718 actually checked out 8aa4e66 (37dc + 1842); policies/traceability, all-target/all-feature compilation and strict Clippy passed. Required Rust tests exited 100: durable_selected_awaiting_mcp_projects_portable_continue_root and durable_selected_restart_failed_cli_binds_root_mcp_projects_portable both panic at repair_freshness_tests.rs:599, 'CLI restart display must bind the selected repository'. Native summary: 11,187 passed, two failed, five skipped, 9,175 not run after fail-fast; later docs/goldens/corpora/evidence/schema skipped.

This is distinct from the repaired baseline failure. Exact-main reproduction and candidate-versus-inherited attribution remain unverified. Please have the existing owner classify this narrow actual CLI/root-display boundary against the frozen main and candidate before changing code or requesting qualification again. Preserve the failed run and valid TS source/composition evidence; no broad golden refresh or duplicate writer is indicated. The #9934 owner has been notified for applicability only, not told its candidate failed.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_INCOMPLETE / WAITING_SHARED_REPAIR. Exact canonical1842d4f759a783ebb3f6ee2a632139c797f00db3 and actual hosted8aa4e662470eb8f85eee4b74773e47bf31acb09d remain treec48. Source/oracle review5634742581 and adopted composition review5635382649 remain scoped valid; full required qualification40037924331 is FAILED.

Complete producer120702339718 log confirms actual8aa and successful admission, policy/traceability, all-target/all-feature checks and strict Clippy. Independent complete log parsing establishes11,187 distinct PASS identities and2distinct FAIL identities, with ordinals1..11189 complete out of20,364 planned; native5skipped/9,175notrun. Doctests/goldens/fixtures/corpora/PR-evidence/schema were skipped. Aggregate120708407412 fails; no incomplete pipeline is called green.

Both required failures hit the shared CLI-native-root expectation at repair_freshness_tests.rs:599; Rust-only companion40037924252 actual8aa fails these plus the open-gap sibling. Relevant test blobs and all MCP/agent/agent_status code are identical to frozen main37dc. The oracle calls shell_arg(display_path(root)), normalizing the literal Unix backslash that actual CLI commands preserve. Existing bounded repair codex/mcp-native-root-oracle is already active under #10011comment6376744690 with one admitted exact-base/candidate driver. I supplied the actual consumer failure in comment6376932771 and start no competing repair/build/CI. Native full-base attribution is still pending that driver; source equality alone is not relabeled as executable main proof.

After all observed1842 workflows became terminal, PR returned to Draft and the spent request label was removed. No unchanged rerun. Current body exact-source contract passes (hashf6e8237007c93d7b58a0ace8072a83b9320f607c0867e953eb48a5bf23081f17). Raw log hash eddf27fa37584297dbf68027ae8e014167bc60749f698a51ff93d6eb0c2970f1 and terminal/source/ordinal receipts are retained locally.

No new TS source defect is established. Consume the existing independently reviewed oracle correction with genuine native-root positive/device-inode and wrong-root negative controls; verify normal landing/adoption and actual successor/subject, refresh affected review/proof, then request one justified qualification. Final complete gates/current-head review must precede protected expected-head owner merge/main verification. #10009 policy, other consumers, source/resource/publication holds and all stopped denied routes remain separate/preserved.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Follow-up to advisory5635502196 and failed qualification attribution, exact1842/actual8aa. Final merge remains REVIEW_INCOMPLETE for the shared native-root oracle repair and missing successful complete qualification.

Independent shell proof now confirms both exact logged failing CLI commands deliver the native --root argument byte-for-byte through real POSIX sh with a printf-only ripr function. Separate prefix-translated local fixtures prove selected-device/inode identity and reject the distinct slash-normalized decoy; no remote CI inode or product invocation is claimed. This independently supports the normalized test-oracle mismatch, while the existing codex/mcp-native-root-oracle owner still owns exact full-base red / repair-green product proof. Independent receipt SHA2561e0414bdcdaca5b5429efba41881c17dcde234e9a3e1d409ab34aafd345e00c7 is retained at /workspace/9936-root-oracle-independent/independent-receipt.txt. Do not change native production root rendering to satisfy the wrong oracle.

Advisory disposition: no dedicated changed product test covers every parse-error fallback caller/prefix, and no such universal coverage is claimed. Retained direct8-control evidence on a3 includes malformed Unicode/backtick inputs rejected under both TS and TSX across all three candidate wrappers, verifying unchanged prepared text, empty operand metadata, regex_known=false and final legacy-mask equality. Exact parse_plan, plan_for and prepare function bodies are byte-identical to1842; the later successful-regex visitor change is unreachable when parse_plan rejects errors. This preserves bounded same-path control applicability, without relabeling old source/input execution as a new composed-head run or committed all-caller coverage.

masked_owner_body intentionally uses the generic ts_mask_literals_and_comments route, which first calls prepare(None); it can accept an unambiguous parser plan and falls back only when unavailable/disagreeing. Describing it as always purely lexical is inaccurate. Two failed syntax parses try later wrappers; disagreeing successful plans retain fallback. No universal parser success, all-consumer migration or ambiguity-resolution guarantee is added. Rejected model proof intent remains missing advisory instrument proof. No executable new wrong-write defect is established by these questions; optional committed fallback coverage need not create a competing source writer.

Useful new exact-checkout product evidence: the failed8aa run contains1,556 distinct PASS identities in the TypeScript namespace, including21 review_9936 controls for positive/no-write/source-kind/Unicode-offset cases. This is a bounded observed subset of the failed run, not a full-matrix or author's1,732-test claim. Raw failure remains11,187pass/2fail/5skipped/9,175notrun, with later gates skipped. Draft/no request label is read back; no new Cargo build, competing repair, qualification request or stopped-route retry. Existing owner handoff6376932771 governs the pending canonical repair/adoption.

Copy link
Copy Markdown
Member Author

Canonical prerequisite #10027 is now verified landed as 6e162bd. The landed tree exactly equals the reviewed/tested joined tree; required40046079325 passed20,349 tests, all three root cases and all later gates, with final independent REVIEW_READY5636196140 before squash. Please resume your existing consumer from1842: verify actual composition includes6e, preserve prior TS proof and failed runs, validate affected integration and obtain independent new-head review before one normal qualification. Prerequisite success is not consumer qualification.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 24, 2026 01:41
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

#10027 landed (6e162bd). Merged current main into the canonical branch: new head 84a0e7c (plain merge of 1842d4f + main; no TS/Cargo change, so the earlier source/oracle and composition reviews apply to the unchanged TS bytes). Marked Ready and applied merge-ready once for this head; the previous failures (1842d4f: the three MCP root-oracle tests) are inherited main-health, now fixed on main. Will squash with expected head 84a0e7c only after the required result is green on this exact head.


Generated by Claude Code

@github-actions github-actions Bot 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.

Verification questions

  • Confirm the changed changelog documents the intentional lexical fallback for kind-less callers, but the public context-free masker remains used by owner-body and other compatibility paths.
  • Confirm no dedicated changed test exercises parser-failure fallback for every source-kind-aware caller, leaving behavioral fallback coverage non-universal.
  • Confirm source-kind wiring reaches admission, verified imports, reach-body, and spy guards, while context-free owner masking retains lexical fallback.
  • Confirm the parser plan is intentionally best-effort: parse errors return no plan, while source-kind-less callers select a plan only when TS/TSX parsing agrees or one parses uniquely.
  • Confirm parser-backed masking is implemented as a dedicated plan layer, with source-kind selection and lexical fallback separated from the scanner.
  • Confirm parser-failure fallback is implicit and has no focused changed-test oracle for each caller.

Refuted

  • This TypeScript masking change may create a worker/async/GC handoff memory-safety defect.; refuted because: The diff contains no worker, asynchronous runtime, GC, detach, transfer, unsafe, or lifetime-crossing operation; it only parses and masks static source text for admission analysis.
  • The PR changes an unsafe/native active-view or buffer-lifetime mechanism.; refuted because: The changed Rust paths contain static string masking and parser-span computation only; the diff introduces no unsafe block, ArrayBuffer, TypedArray, slice backing store, resizing, detachment, or transfer operation.
  • The dependency addition or byte-mask conversion introduces an independent unsafe/native correctness issue.; refuted because: The added oxc_ast_visit dependency is feature-gated and pinned; unsafe-review reports no new gaps, and the adapter explicitly preserves character counts and Unicode byte widths.

Evidence gaps

  • Whole-tree qualification remains incomplete because the required cargo-test phase is late and the ripr sensor failed.
  • Model proof intent was rejected by deterministic validation.
  • Parser-failure fallback is not directly covered by a changed test across all callers, so fallback guarantees remain conditional on parser success.

Copy link
Copy Markdown
Member Author

#10036 landed (3779c15) fixing main's duplicate-field compile error. Merged current main into the canonical branch: head 8a08732 (plain merge; no TS/Cargo change from 84a0e7c, which already carried b960's TS bytes). Applied merge-ready once for this head. Will squash with expected head 8a08732 only after the required result is green on this exact head and the checkout shows #10036 included.


Generated by Claude Code

@github-actions github-actions Bot 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.

Confirmed findings

  • Repeated parser attempts can increase analysis cost for adversarial TypeScript input; no input-size or parse-time bound is visible in the changed parser-plan path.

Verification questions

  • Confirm masked_owner_body still intentionally uses context-free masking, unlike the source-aware module and spy routes.
  • Confirm parser failure silently falls back to the legacy lexical masker for source-type-aware callers, but the diff adds no direct parse-error oracle for those routes.
  • Confirm parser-failure fallback behavior lacks direct changed-test coverage for all source-kind-aware callers.
  • Confirm parser-failure fallback and parser-work bounds lack a dedicated changed-test oracle across all source-kind-aware callers.
  • Confirm parser-failure fallback is implemented through prepare(), but the changed tests do not directly assert that every source-kind-aware caller retains lexical behavior when OXC parsing fails.

Refuted

  • The parser-failure fallback gap makes the claimed runtime correctness unproven.; refuted because: The implementation deliberately returns the original text and empty operand metadata when no parser plan exists, and prior thread evidence marks universal fallback coverage as residual rather than a material source defect. No changed production path demonstrates a failing fallback behavior.
  • A parse-failure fallback regression would be detected by the changed suite.; refuted because: No changed test directly forces OXC parse failure and checks each source-kind-aware admission, reach-body, and spy-guard caller; this remains a residual test gap rather than evidence that fallback is wrong.
  • A changed mask could retain a stale length or alias a backing buffer that is resized or detached later.; refuted because: No buffer-like mutable storage is introduced; masks are freshly allocated owned Strings, and lengths are recomputed from source bytes. There is no resize, detach, transfer, or aliasing path in the changed surface.

Evidence gaps

  • Required ripr evidence failed with exit code 2, so source correctness is not equivalent to a green integration qualification.
  • The required exact-head cargo-test evidence is scheduled late and the ripr sensor itself failed; these are verification dependencies rather than demonstrated lifetime defects.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 0f7e314 into main Oct 24, 2026
49 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/fix-9936-ts-masker branch October 24, 2026 03:33

EffortlessSteven commented Oct 24, 2026 •

Copy link
Copy Markdown
Member Author

Qualification and landing closeout, 2026-10-24 UTC:

Verified final head 8a08732aec28888de77fec4bb6ab2fb687df7802 merged at 03:33:20 as 0f7e3142f0be3e339b978412bd7f0e4c628611c7, also observed as current main. Required run 40055354667, attempt 1, producer 120757156616 and Result 120767425002 all succeeded. The producer's actual checkout log names 1b76a15295fae3387c924eba1b815f8f37eba9e6, parents 3779c151 + final head. Candidate, executed merge subject and landed squash have the identical whole tree 4467975fdd31593bab474a4749a0328fd1975e2a; the shared native-root and duplicate-field repairs are therefore included, not inferred from a sibling green.

The complete native log contains 20,393 distinct PASS identities with every ordinal 1–20393, across 163 reported binaries; five skipped. All 21 review_9936 controls, the three selected MCP root cases and the repaired stub witness passed. Doctests: two passed, one ignored. Mandatory policy, compilation, strict Clippy, goldens, fixtures, corpora, PR evidence and schema gates succeeded. This replaces the old failed consumer qualification, not its historical receipts.

Source-applicability correction to the earlier 'no TS change' shorthand: comparison of the complete 136-entry TypeScript subtrees at reviewed b960 and final 8a finds only inherited owners.rs changed, by the separately landed #10023 optimization (blob 8a8a3dfdcaf05171f19eca1f8809daf4c5dd8c16). Masker/source-kind/tests are unchanged; Cargo manifests, lockfile and toolchain pin are identical. This does not indicate a masker regression or relabel prior focused executions as new runs.

Remaining review-record gap: source review 5634742581 and the later 1842 composition review are older subjects; no substantive final exact 8a REVIEW_READY is visible. The 03:07 automated parser-cost/fallback advisory remains an undisposed review lead, not a proven defect or a concern resolved by CI alone. Please reconcile that final applicability/disposition in the existing owner history. This closeout is not self-approval; no build, CI request, source edit or competing merge was performed.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REPAIR_REQUIRED — post-landing source finding on exact head8a08732aec28888de77fec4bb6ab2fb687df7802, retained in squash0f7e3142f0be3e339b978412bd7f0e4c628611c7.

[P1] The new literal-plan parser bypasses the adapter’s guarded OXC execution route. At crates/ripr/src/analysis/language/typescript/literal_mask.rs:90–94 (blob9fd8f627632896efd2d9da9cfa6afa5bcb85e1b8), parse_plan constructs an allocator and invokes Parser::new(...).parse() directly. It applies neither the existing expression-nesting admission nor parse_on_worker’s explicit large stack. A parse error fallback happens only after parsing returns; it cannot provide the worker/budget protection.

This is reachable after initial guarded extraction, rather than merely a hypothetical standalone helper call. On exact8a, TypeScriptAdapter’s ordinary Phase2 classification calls classify_change_with_alias_state outside the extraction worker. A SideEffect/CallDeletion with a related mock-payload assertion sets reads_mock_payload (classifier.rs5801–5816), then MockCallFacts::read reaches runs_changed_line_once (mock_payload_guard.rs987), masked_owner_body (959), ts_mask_literals_and_comments (classifier.rs856), prepare(None) and the direct parser. This occurs before the subsequent owner-shape/once-run refusal checks. The source-marker trigger can occur in otherwise valid owner text; successfully passing the earlier guarded whole-file parse does not establish safety of this later reparse.

Present applicability was checked separately: main literal_mask remains exact blob9fd8f627 and mock_payload_guard remains55ad72c84e351357c1b8ff1308c725758dce13a0. The inspected descendant6f5b6437cda0c752c28c64b69a71e1510f283e13/current-source mod blobbe436419 now calls classify_resolved_owner from its ordinary Phase2 added-line path; classifier blobf7fff027 still reaches the same mock path at5914/5929. The later owner/context caches do not supply a large-stack execution wrapper.

The controlling safety contract is already established by #4101 and its accepted #4111 route: every OXC parse/AST-consumption site must preserve guarded execution, nesting admission and typed failures. Current parse.rs (blob2d2627db586c8833235026a34d36c4fe346feb99) documents why an earlier parse is insufficient: in-budget deep input can be safe on its dedicated stack while aborting on a smaller caller stack. This finding establishes the newly unguarded source route and conflict with that accepted contract. It does NOT claim a newly executed Windows/native process abort; that discriminator remains to be run through the admitted owner route.

Smallest accepted-owner next step: repair the new plan parsing through the existing guarded semantic owner (or consume an already guarded plan), preserving syntax-kind selection, owned span/offset data, nesting/worker failure behavior and cached-source boundaries. Add a process-isolated discriminator that exercises this later masker/classifier route, with an admitted deep-source positive and a pre-parse over-budget refusal; the existing guarded-extraction-only tests do not exercise this new entry. Preserve ordinary JSX/regex/division/Unicode controls and fallback behavior. No competing patch, implementation owner, build, diagnostic workflow or qualification was created here. Existing claude/fix-9936-ts-masker custody remains; an accepted repair source/handoff is still needed before follow-up publication.

Disposition of the03:07 advisory5636536869:

  • plan_for has three fixed contexts: at most3 parser attempts with a known source kind, or6 when checking TS/TSX. There is no unbounded retry loop. The absence of a per-input time/byte bound remains a distinct resource observation, not executed performance-regression evidence.
  • Source-kind-less masking is context-free, not unconditionally lexical-only: compatible or uniquely valid parser plans can be used; ambiguity/parse failure restores the legacy lexical path. masked_owner_body intentionally lacks a file kind; the admission/reach/module/spy routes carry their known kind.
  • Non-universal parse-failure caller coverage is a retained test limitation, not by itself a demonstrated incorrect fallback. It does not refute the separate guarded-execution finding above.

Valid qualification is preserved. I independently read required40055354667/producer120757156616: actual checkout1b76a15295fae3387c924eba1b815f8f37eba9e6 (3779c15+8a),20,393 distinct PASS identities with all ordinals1–20393, all21 review_9936 controls, five skips, doctests2passed/1ignored. All mandatory producer stages and Result120767425002 succeeded. Local Git-object inspection confirms candidate, executed merge and landed squash all have tree4467975fdd31593bab474a4749a0328fd1975e2a. The complete12-file PR patch also equals the landed patch. Earlier b960 source/oracle evidence remains unchanged except inherited #10023 owners.rs; no dependency/toolchain delta was found. These results prove their executed claims, not the missing later-parser depth/stack case. No rerun or rollback is requested here.

This is a post-landing root source disposition, not retroactive pre-merge approval. Fresh runtime reproduction and final independent repair review remain outstanding; no completed new independent-review report is claimed. #10036’s compilation hold is resolved and is not the blocker. Preserve the separate #9970 envelope/docs findings and all other ownership/access holds.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants