Skip to content

refactor(core): isolate legacy failure-row compatibility adapters #2249

Closed as not planned

Description

@adil-a

Status

Closing as unnecessary as a separate workstream. Its responsibilities are folded into #2135 and #3180.

Why this issue is being closed

A standalone compatibility module before the canonical #2135 outcome exists risks making the legacy _ng_* row shape permanent. The original acceptance criteria also duplicate ownership:

Compatibility remains supported where required, but it is an implementation detail of those two workstreams rather than a third framework contract.

Preserved work

  • Centralize legacy constants only while migration still consumes them.
  • Make conversion from a typed no-result outcome explicit and opt-in.
  • Prevent compatibility rows from silently entering training.
  • Document the release or caller-migration condition for deletion.

No independent implementation should be opened for this issue.

Activity

  1. ting-hong-shieh commented on Aug 12, 2026

    @ting-hong-shieh

    Hi @adil-a, I’d like to take this issue.

    I checked current main and the failure-routing constants / reward-0 construction are still duplicated across the paths called out here. I’d keep the PR narrowly scoped to the existing contract:

    • add a lightweight nemo_gym/failure_routing.py with the shared NG_* keys, build_failure_result(...), and minimal_failure_response(...);
    • re-export the routing keys from rollout_collection for compatibility;
    • migrate the existing Stirrup, PinchBench, and remote-agent producers without changing their observable behavior;
    • add focused CPU unit coverage for stale reserved-key cleanup, terminal / no_persist routing flags, custom error keys / extra metadata, and minimal-response construction.

    I’d leave #2113 itself out of scope so it can consume the helper separately once this lands. Please let me know if the intended scope has changed.

  2. changed the title [-]feat(core): shared reward-0 failure-row builder for the failures-sidecar contract[/-] [+]refactor(core): isolate legacy failure-row compatibility adapters[/+] on Sep 9, 2026
  3. ananthsub commented on Sep 10, 2026

    @ananthsub
    Contributor

    Closing this as a separate workstream after the #2750 program review. The necessary compatibility behavior remains owned: #2135 now owns explicit caller-boundary conversion and its deletion condition, while #3180 owns legacy constants and producer migration. Keeping a third issue and module would duplicate ownership and risk making the temporary row shape permanent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions