Skip to content

refactor: unify detection and replacement label scope#44

Merged
lipikaramaswamy merged 8 commits into
mainfrom
lipikaramaswamy/refactor/unify-detect-replace-label-scope
Mar 16, 2026
Merged

refactor: unify detection and replacement label scope#44
lipikaramaswamy merged 8 commits into
mainfrom
lipikaramaswamy/refactor/unify-detect-replace-label-scope

Conversation

@lipikaramaswamy
Copy link
Copy Markdown
Collaborator

Summary

  • Make Detect.entity_labels the single source of truth for label scope
  • Simplify detection behavior so entity_labels=None uses the built-in defaults, while a provided list limits detection to only those labels. Further, replacement automatically operates only on entity labels specified in the detection stage.
  • Remove replace-side label scoping and align replacement behavior, config docs, exports, logging, and tests with the simplified contract

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring

Testing

  • Tests pass locally
  • Added/updated tests for changes

Note

This PR is stacked on lipikaramaswamy/refactor/filtered-display-and-detection-prompts and should be merged after that branch lands. After the base PR merges, this PR can be retargeted to main.

Make Detect.entity_labels the single source of truth for label scope by using
the default built-in set when omitted and only the provided labels when set.
Remove replace-side label scoping and simplify the supporting config, workflow,
and tests around that contract.
@lipikaramaswamy lipikaramaswamy requested a review from a team as a code owner March 13, 2026 21:07
@lipikaramaswamy lipikaramaswamy changed the title Lipikaramaswamy/refactor/unify detect replace label scope refactor: unify detection and replacement label scope Mar 13, 2026
Base automatically changed from lipikaramaswamy/refactor/filtered-display-and-detection-prompts to main March 16, 2026 16:45
@lipikaramaswamy lipikaramaswamy merged commit 26ecb24 into main Mar 16, 2026
5 checks passed
@lipikaramaswamy lipikaramaswamy deleted the lipikaramaswamy/refactor/unify-detect-replace-label-scope branch March 16, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants