harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-hard-curriculum-hard-0050harbor download openthoughts/tasktrove-exp-rpt-curriculum-hard-curriculum-hard-0050You are tasked with implementing a de-identification package with stricter performance, concurrency, and edge-case requirements, while preserving the same core functionality expected by the tests.
What you must build
A Python package named deidentify located under /app/deidentify with:
Package wiring in /app (as a package) so tests can import deidentify.base, deidentify.util, and access the exported symbols from deidentify.init.
Functionality to implement
Annotation
Document
Function signature
Behavior
Performance considerations
Function signature
Behavior per test scenarios
Supported surrogate map
Normal surrogation (default; all tags have surrogates)
Surrogation with an invalid surrogate tag (Date) and errors='ignore'
Surrogation with an invalid surrogate tag (Date) and errors='coerce'
Error handling behavior (when no surrogate exists for a tag)
Concurrency and deterministic processing
Output expectations and compatibility
Notes
Deliverable
This enhanced task adds explicit performance concerns, concurrency, robust edge-case handling, and deterministic, order-preserving behavior while preserving the original test expectations and data model design.