Repository navigation
fix(typescript): do not read a quoted string value as a projects/workspace/root key (#10295) - #10316
Conversation
…space/root key (#10295) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 10 minutes. View limit details
Comment |
…0295) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP
…ffsets, harden tests (#10295) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The delegated-key scan is applied to a slice of the already transformed text, but
without_plain_inline_projectscomputes that slice using offsets from the original cleaned text.
Verification questions
- Confirm the added tests cover quoted values, quoted/computed keys, real duplicate projects, and uncertain syntax cases.
- Confirm blank_value_strings receives text after blank_comments has already removed comment text, so comment contents are not actually scanned for quote termination by this helper.
- Confirm the source route scans every quoted string followed by a comma or closing brace as a value, without distinguishing an object property value from a standalone expression string.
- Confirm the added tests cover ordinary quoted values, quoted keys, computed keys, templates, regex, and escaping, but do not cover comments containing quotes or unmatched quoted text.
Refuted
- The PR's claim that quoted values are ignored is unsupported by an ambiguous-syntax counterexample.; refuted because: Rejected for the claimed ordinary quoted-value behavior; the tests also intentionally retain Medium for template literals, regex/division-like slash input, and malformed strings, matching the documented refusal semantics.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Repository-executed validation is not yet available in the supplied evidence.
- Focused cargo-test execution is the remaining trust dependency for the reported scanner behavior.
…ll refuse (#10295) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP
|
Response to the github-actions review on this PR, against head 39bf285.
Independent reviewers (correctness, tests/spec, re-review of the exact head) found a regex quote desync, the U+2028 offset bug and the call-argument regression. All three are fixed with discriminating rows. Local Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm value normalization is applied twice in the projects-array path: once to the whole document, then again to an already normalized array slice.
- Confirm the helper is documented as blanking every quoted property value, but implementation only blanks values whose following significant token is a comma or closing brace; other property-value contexts remain visible.
- Confirm comments containing quoted delimiter text are behaviorally important but not directly covered by the new regression matrix.
Refuted
- The implementation blanks every quoted property value ending before a comma or closing brace, which is broader than only values whose content resembles a delegation key.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Executable success of the focused committed-snapshot suite remains dependent on the scheduled late cargo-test receipt.
…pses in project labels (#10295) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the implementation detects quoted property values by previous significant ':' and requires the following significant token to be ',' or '}', so property values in contexts such as arrays, parentheses, or another property's continuation remain visible to the delegation scan.
Refuted
- Any quoted string followed by a comma or closing brace is a property value and should be blanked.; refuted because: The implementation additionally requires a preceding colon, preserving dynamic-key contexts such as calls and assignments; tests cover those cases.
- The helper should be generalized into a shared parser or broader string-scanning abstraction for this fix.; refuted because: The change addresses one source-specific false positive with bounded lexical behavior; introducing a parser or shared abstraction would exceed the smallest-complete-fix boundary and increase regression risk.
- The PR body claims a new helper reads quoted strings followed by ',' or '}' as spaces, but the implementation only blanks property-value strings and deliberately retains strings in call arguments and '=' bindings.
Evidence gaps
- Focused executable proof is still pending because the ripr sensor failed and cargo-test was scheduled late; source inspection and regression coverage are positive but not a substitute for the receipt.
- Executable proof of the focused regression suite is not yet available: cargo-test is scheduled late and the ripr sensor failed with exit code 2.
- Model proof intent was rejected by deterministic validation.
|
Review of record, head 2306ed2
Generated by Claude Code |
Summary
mentions_named_keycounted a string value ending inprojects,rootorworkspace(for exampledisplayName: "projects") as a delegating key, so a snapshot test that catches the edit readweakly_exposed. A newblank_value_stringsreads the body of a quoted property value (label: "x", previous significant char:, followed by,or}) as spaces before the key scan. Quoted keys, computed keys, bracket members, and strings passed to calls or bound by=keep their text, soObject.defineProperty(c, 'root', ..)still refuses./(regex or division), and when the blanked text would differ in byte length, so those cases keep the old refusal. The...spread check in the inline-projects path runs on the blanked text.plain_inline_projects_keep_the_credit_and_every_other_spelling_refusesand a newvitest_string_values_are_not_keys_but_real_keys_still_refuse, both traced in RIPR-SPEC-0258.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: RIPR-SPEC-0258
Governing issue or accepted claim: #10295
Acceptance delta (one sentence): A string value that merely contains
projects,rootorworkspaceno longer makes a TypeScript Jest/Vitest config read as delegating.Candidate Relationships
Candidate branch: claude/ts-string-values-not-keys-10295
Stack parent or prerequisite PR (if any): none (follow-up to merged #10158)
Validation
cargo test -p ripr --lib committed_snapshot: 46 passedcargo xtask precommitandcheck-traceability: pass🤖 Generated with Claude Code
https://claude.ai/code/session_01AoapkiftDmzBaXiATmb2KP