Skip to content

Function Intent extraction picks up a PL/I %PROCESS compiler directive #3115

Closed

Description

@squid-protocol

Found by the real-repo plausibility audit of a galaxyscope scan of IBM's zopeneditor-sample, engine main just after REXX #2504 / PR #3107.

In section 8 of the brief (Core Function Hitlist), PSAM2 (@ PLI/PSAM2.pli) rendered:

* *Intent:* %PROCESS SOURCE RULES(LAXIF);

The file's first line is a %PROCESS compiler-option directive, and the intent extractor took it as the function's purpose. Cosmetic, but it is front-and-centre in the heaviest-functions list — exactly where a demo reader looks.

%PROCESS / *PROCESS directive lines should be ineligible as intent text. pli.py already classifies the shape as decorators — a pragma line, not prose:

# gitgalaxy/standards/language_standards/languages/pli.py:379-382
# decorators: the `*PROCESS` / `%PROCESS` compiler-option directive (a pragma line)
"decorators": re.compile(
    r"^[ \t]*[*%][ \t]*PROCESS\b|" + _L + r"OPTIONS[ \t]*\(",

The underlying question worth deciding here: should intent extraction prefer a doc-comment/prose source generally, rather than the first available line?

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: low
    on Sep 17, 2026
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

    bugcore-enginelegacy-modernizationpriority: low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions