INNER CODE UNIT · Python

_cmd_render_scenario_prompt

hadriansecurity/OpenHack · src/openhack/cli.py:126

def _cmd_render_scenario_prompt(args: argparse.Namespace) -> None:
    prompt = render_prompt(args.target, args.run_id, args.scenario_id)
    print(format_checkpoint(
        "Render Expert Prompt",
        f"Rendered the expert prompt for {args.scenario_id}.",
        artifacts=[prompt],
        review="Confirm the scenario is in scope before asking the assigned expert to answer.",
        next_note="Save the expert answer as result JSON after review.",
        next_command=(
            f"openhack record-scenario-result {args.target} {args.run_id} "
            f"{args.scenario_id} result.json"
        ),
    ))


def _cmd_record_scenario_result(args: argparse.Namespace) -> None:
    path = run_path(args.target, args.run_id)
    if args.result_json:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…