|
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
2.04 kB
| 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: | |
| 1. Add one reusable internal predicate in `/app/vendor/requests/src/requests/_types.py` that recognizes an object as readable only when resolving its `read` attribute yields a callable. | |
| 2. Use that predicate consistently in `/app/vendor/requests/src/requests/models.py` for parameter encoding, multipart file-content reading, and the decision not to synthesize `application/x-www-form-urlencoded`. | |
| 3. A wrapper that hides `__iter__` but delegates `read` must remain a raw request body, and request preparation must not add a form content type. | |
| 4. The same delegated wrapper must be read correctly when supplied as a multipart file, for both byte and text streams. | |
| 5. Preserve existing behavior for strings, bytes, `None`, mappings, ordered form pairs, and objects whose `read` attribute exists but is not callable. In particular, mappings must still be form-encoded with their normal content type. | |
| 6. Modify both existing modules named above. Do not replace the Requests package, delete neighboring source/tests, disable checks, or add network/package-install steps. | |
| 7. Compile the two repaired modules and run: | |
| ```bash | |
| 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. | |