Skip to content

pregate: safe handling of removed non-test paths and source renames (follow-up to #3529) #3535

Open

Description

@capy-ai

Follow-up to #3529 / #3534 (GSTA-137). #3534 waives only removed tests. Every other removed path still fails lanes with PREGATE_NO_LANE until a test or a dependencies entry covers it. That includes a deleted source file nothing uses and a renamed source file's old name, so dead-code cleanups and source renames still need a hand-written entry.

Why it was narrowed. Earlier cycles of #3534 waived a removed JS, TS, Python or Dart file when no remaining file imported it or mentioned its basename. Review kept finding references that check missed, and each one passed pregate while a remaining test failed after merge:

  • a computed path.join(__dirname, 'lib', 'value.js')
  • importlib.import_module("app.handlers")
  • python3 -m tools.cli
  • node lib/cli in package.json

Main refuses all four. The controller (GStack Minder) narrowed plan item D3 to removed tests only.

What a safe design needs. It needs reference detection that fails closed for extensionless, dotted-module and computed references. One option is to resolve a removed source file's old name the way an edit to it would be resolved, then run those tests instead of waiving it. It also needs the same treatment for a source rename's old name.

Evidence: GSTA-137 review outputs adversarial-native-5a1577b.txt and fix-check2.txt.

Activity

  1. added
    S3
    on Oct 31, 2026
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

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions