|
Download tasks/data/reverse/123kyle__wx-cli.7a8f881/instruction.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/123kyle__wx-cli.7a8f881/instruction.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/123kyle__wx-cli.7a8f881/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/123kyle__wx-cli.7a8f881/instruction.md
2.18 kB
| # Rebuild the reference CLI | |
| You are in a ProgramBench-style cleanroom task. Rebuild the observable behavior | |
| of `123kyle/wx-cli` at commit `7a8f881d3316022d2efd4dd2c1acd53cbe8c397a`. | |
| ## Available Materials | |
| - Execute-only reference program: `/reference/executable` | |
| - Documentation: `/reference/docs/` | |
| - Sample input assets, if present: `/reference/assets/` | |
| Use the docs and black-box experiments against the reference executable to infer | |
| the documented command-line interface, inputs, outputs, filesystem effects, error | |
| handling, and edge cases. Do not read, wrap, decompile, disassemble, or recover | |
| the reference binary or source code. | |
| ## Output Contract | |
| Create a clean implementation in `/workspace`. This task is expected to be a | |
| rust command-line program, but any implementation is acceptable if it | |
| matches the reference behavior. | |
| The reference command is named `wx-cli`. Preserve that CLI entry in | |
| your implementation (the verifier invokes the canonical | |
| `/workspace/executable` path after compilation). | |
| The verifier will extract your submitted source archive into a fresh | |
| `/workspace`, then run: | |
| ```bash | |
| bash compile.sh | |
| ``` | |
| `compile.sh` must produce an executable file at `/workspace/executable` | |
| from files included in your submitted archive. | |
| ## Install / Reconstruction Contract | |
| - **Project root**: `/workspace` (run all commands from this directory). | |
| - **Build entry**: `/workspace/compile.sh`; it must be executable and create exactly `/workspace/executable` (the source project's executable name is `wx-cli`). | |
| - **Language/build profile**: `rust` / `cargo`. C uses GCC/C11; C++ uses G++/C++17; other languages follow the repository build files. | |
| - **Test startup**: branch tests are mounted under `/tests`; the verifier applies the branch suite and runs its declared harness after `compile.sh`. | |
| - **Package/entry**: preserve the documented public package/module and CLI entry; do not substitute a different top-level package. | |
| Before finishing, package your source submission: | |
| ```bash | |
| mkdir -p /logs/artifacts | |
| tar --exclude='./executable' --exclude='./reference' -czf /logs/artifacts/submission.tar.gz -C /workspace . | |
| ``` | |
| Instance id: `123kyle__wx-cli.7a8f881`. | |