HF RL Explorer

Goal

Goal: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Write a Python script /app/decode tlv.py that reads a binary file from the path given as the first command-line argument, parses it as a sequence of Tag-Length-Value (TLV) records using unsigned LEB128…

The task

Write a Python script `/app/decode_tlv.py` that reads a binary file from the path given as the first command-line argument, parses it as a sequence of **Tag-Length-Value (TLV) records using unsigned LEB128 variable-length integer encoding for both Tag and Length**, and outputs a single JSON object to stdout.

Part of ai-and/termgrade-environments.