Download tasks/candidate-1005-software-systems/instruction.md from FineEnvs/MiMo-V2.6-RL-harbor-terminal: direct link, hf CLI and curl.
- Browser
- Download file 2.04 kB
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal/resolve/main/tasks/candidate-1005-software-systems/instruction.md
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal/tasks/candidate-1005-software-systems/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-terminal/resolve/main/tasks/candidate-1005-software-systems/instruction.md
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.
A frozen Requests source tree is available at /app/vendor/requests.
Some file-like wrappers expose read only through __getattr__. Runtime protocol checks do not reliably recognize that delegated capability, so request preparation uses inconsistent rules in different branches.
Repair the existing implementation. Your submission must satisfy all of the following:
- Add one reusable internal predicate in
/app/vendor/requests/src/requests/_types.pythat recognizes an object as readable only when resolving itsreadattribute yields a callable. - Use that predicate consistently in
/app/vendor/requests/src/requests/models.pyfor parameter encoding, multipart file-content reading, and the decision not to synthesizeapplication/x-www-form-urlencoded. - A wrapper that hides
__iter__but delegatesreadmust remain a raw request body, and request preparation must not add a form content type. - The same delegated wrapper must be read correctly when supplied as a multipart file, for both byte and text streams.
- Preserve existing behavior for strings, bytes,
None, mappings, ordered form pairs, and objects whosereadattribute exists but is not callable. In particular, mappings must still be form-encoded with their normal content type. - Modify both existing modules named above. Do not replace the Requests package, delete neighboring source/tests, disable checks, or add network/package-install steps.
- Compile the two repaired modules and run:
PYTHONPATH=/app/vendor/requests/src python3 /app/tools/run_regression.py --output /app/repair_report.json
The required artifact is /app/repair_report.json with output_schema_version equal to requests.stream_proxy.repair.v1 and passed equal to true. The verifier also imports and exercises the repaired source independently; a forged report is insufficient.