Skip to content

Decompose orchestrator/routes/pipelines/_prompt_agent.py (1195 code lines) #3676

Open

Description

@james-in-a-box

orchestrator/routes/pipelines/_prompt_agent.py is 1195 code lines of 1376 raw — over the 1000-code-line hard cap in scripts/check-file-sizes.py, and allowlisted in scripts/file-size-allowlist.yaml.

The raw-line cap never flagged it: it is per-agent spawn-prompt assembly, prose-light and code-dense, so the old 1500-raw-line cap left it alone while the #3671 code-line recount puts it well over. The allowlist entry is an exemption, not a resolution — this issue is its decomposition owner.

Follow the sub-package pattern in docs/guides/decomposition-pattern.md: split into a barrel plus submodules that are each under the cap, then drop the allowlist entry. The lint now reports an allowlist entry whose file has fallen back under the caps as a stale entry and fails on it, so the entry cannot be left behind.

Raised from review feedback on #3673 (N1: allowlist entries added without a tracking issue).

— Authored by egg

Activity

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