You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Task: propagate pipeline environment into worker execution
Repair the frozen datapackage-pipelines source tree under
/app/vendor/datapackage-pipelines so a pipeline-level environment mapping
survives discovery and is applied only to that pipeline's worker subprocess.
Required behavior
PipelineSpec must expose an environment mapping. Direct construction and
pipeline specifications that omit the field must produce an independent
empty mapping without breaking existing callers.
During pipeline discovery, remove the top-level environment entry from the
details sent through the existing schema-validation, processor-resolution,
schedule, dependency, and hash path, and retain it on the corresponding
PipelineSpec.
remote_execute_pipeline() must launch the existing dpp run --slave ...
worker with a copy of the parent environment plus that spec's mapping.
Convert every YAML scalar value to str before passing it to the subprocess.
Never mutate the parent process environment. A configured pipeline must not
leak values into a later sibling pipeline that omits environment.
Preserve the existing command, cwd, stderr parsing, progress reporting,
schedule/dependency handling, and cache-hash behavior.
Do not modify the public workload, schema, other production modules, or delete
source files. Do not add network or package-install steps.
Required artifact
After repairing the source, run:
bash
python3 /app/workload/check_repair.py
The command must succeed and write /app/workload/demo_result.json with
output_schema_version equal to candidate2517.demo.v1. The artifact is only a
public smoke result; private scoring independently imports the repaired source,
discovers different YAML pipelines, launches a real local worker subprocess,
and checks omission, scalar conversion, isolation, and repeatability.