Skip to content

[NVBug 6847506] Fix Calendar data-gen scripts' broken imports and README agent name #4536

Open

Description

@qiaochuz-nv

Queue rank 47/48 · Difficulty 4/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6847506 · NVBug priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found (origin PRs: #297, #1468)

Summary

The published Calendar data-generation pipeline cannot run. Step 1 (create_synth_conversations.py) imports sibling prompts/utils modules that do not exist beside the environments/calendar/scripts/ entrypoint. Step 2 (generate_rollouts.py) imports SYSTEM_PROMPT_EASY, SYSTEM_PROMPT_HARD, generate_assistant_response — none defined anywhere in the tree. Step 3 and the resources README agent name are also wrong. All reproduce at HEAD 75bb53e.

Reproduction

From a clean checkout run the documented step 1:
python environments/calendar/scripts/create_synth_conversations.py --n-samples 2000 ... --output ./data/train.json
→ ModuleNotFoundError: No module named 'prompts' (line 24). Fixing the path, step 2 raises ImportError: cannot import name 'SYSTEM_PROMPT_EASY'.

Root cause

environments/calendar/scripts/ (and calendar_v2/scripts/) ship the three scripts with NO prompts.py/utils.py beside them; script-path invocation puts only the script dir on sys.path. resources_servers/calendar/prompts.py defines only GENERATE_EVENTS_PROMPT/USER_AGENT_PROMPT/SYSTEM_PROMPT (no EASY/HARD); utils.py lacks generate_assistant_response — these symbols were never committed (git grep finds only import sites). dataset_preprocess.py:38 tests "reasoning_content" in m["content"] (string substring) instead of in m. resources_servers/calendar/README.md:30 says --agent calendar_agent; config defines only calendar_simple_agent (calendar.yaml:9).

Proposed fix

  1. Step 1: use package-qualified imports (resources_servers.calendar.prompts/.utils) OR repoint both env READMEs at resources_servers/calendar/*.py and delete the helper-less duplicate scripts under environments/calendar{,_v2}/scripts/.
  2. Step 2: author SYSTEM_PROMPT_EASY/SYSTEM_PROMPT_HARD in prompts.py and generate_assistant_response in utils.py (per generate_rollouts.py:34,50,53), or rewrite the script — needs maintainer input on intended prompts.
  3. Step 3: change check to "reasoning_content" in m.
  4. Issue 2: README.md:30 → --agent calendar_simple_agent.
    Mirror across calendar_v2. Add a unit test importing each script plus an offline --help smoke.

Validation

Re-run QA case testcases/environments/calendar.py — "the complete documented calendar generation pipeline produces train and validation data" and "the canonical resource README agent and input selectors execute unchanged" (currently FAIL). Full E2E needs a local gpt-oss-120b and Qwen3-8B server.

Triage

Difficulty 4/5 — localized root causes but spans 3 dirs x 3 scripts plus READMEs, requires authoring never-committed symbols and maintainer agreement on deduplication; full E2E needs GPU. Effort ~12 h. Needs GPU/model: yes (full pipeline). External dependency: none.

Reviewer notes

Verifier confirmed not_fixed and difficulty 4 (high confidence); git grep found no definition of SYSTEM_PROMPT_EASY/HARD or generate_assistant_response. Corrections applied: Reproduction from prompts import line fixed to line 24; dataset_preprocess.py reasoning_content check corrected to line 38; added the exact QA case titles. (Estimate 4 stored as the team's nearest point, L.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions