Skip to content

Mixed-corpus hardening: language-tagged raw calls skip other languages' member-call resolvers #6

Closed

Description

@filipechagas

Parent

Spec: #1 (upstream: Graphify-Labs#1682)

What to build

In a corpus mixing PHP with other languages, PHP receiver data can never flow through another language's member-call resolver and mint a wrong edge. The Swift, Python, and TypeScript member-call resolvers gain a language-tag skip (the Ruby resolver was verified to need no change — it already filters by file suffix). This incidentally also closes the pre-existing leak of ObjC-tagged raw calls into those resolvers, which must be confirmed safe.

Acceptance criteria

  • Mixed-corpus test: a PHP capitalized variable receiver alongside a Python class with a matching method yields no edge through the Python resolver
  • Swift, Python, and TypeScript member-call suites pass unchanged
  • ObjC member-call suite passes, confirming the incidental leak closure is safe
  • Ruby resolver untouched; Ruby suite passes

Blocked by

Activity

  1. added
    ready-for-agent
    on Aug 5, 2026
  2. filipechagas commented on Aug 5, 2026

    @filipechagas
    CollaboratorAuthor

    Implemented in 6d33de1, merged into feat/php-member-calls-1682 at f567a36. Lang-tag skips added to exactly the Swift/Python/TS member-call resolver loops (AST-verified placement); Ruby untouched per refuted verification; ObjC suite green. Honest finding recorded: the skip is defensive — the ticket's premised leak path was not reachable (PHP receivers were never capitalized at the other resolvers' arms); the REACHABLE leak lives in the PHP/ObjC resolvers' unscoped type index and is tracked as #8, whose fix is in progress on the same branch. impl2's mixed-corpus test red-flags #8 on the merged branch exactly as designed.

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions