Skip to content

[Code scan] GDI loop DAG crashes on missing Machine and Resources imports #136

Open

Description

@njzjz

Source: Codex global repository scan of deepmodeling/dpti at commit b719828.
Project: DeepModeling Agent Code Scan

Problem
dpti_gdi_loop_md() calls Machine.load_from_dict() and Resources.load_from_dict(), but dpti/dags/dp_ti_gdi.py only imports Submission and Task from dpdispatcher.submission. The loop DAG will fail with NameError when it reaches MD submission.

Code references

from dpdispatcher.submission import Submission, Task

machine = Machine.load_from_dict(mdata['machine'])

resources = Resources.load_from_dict(mdata['resources'])

Reproduction
Trigger the GDI loop DAG with valid mdata, submission_dict, and two task dictionaries. The MD task should deserialize dpdispatcher objects, but currently Machine and Resources are undefined.

Expected result
The DAG module should import Machine and Resources or use a dpdispatcher API that does not require these missing names.

Activity

  1. njzjz-bot commented on Aug 23, 2026

    @njzjz-bot
    Contributor

    Resolved on the current devel branch: dpti/dags/dp_ti_gdi.py imports Machine and Resources together with Submission and Task, so the loop DAG names are defined before deserialization. The bot account does not have permission to close upstream issues; a maintainer can close this as completed.

    Coding agent: Codex
    Codex version: codex-cli 0.149.0
    Model: gpt-5.6-sol
    Reasoning effort: xhigh

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions