Skip to content

abap: doc regex's bare AUTHOR:/DESCRIPTION: alternative double-counts the ownership header line (doc 2x planted) #2650

Closed

Description

@squid-protocol

Found by the #2560 rosetta classification sweep (abap tracking issue #2561): abap records doc = 2 against 1 planted doc construct.

Cause

abap's doc regex is ^"!\s*@(?:parameter|raising|return)|\b(?:AUTHOR|DESCRIPTION|PURPOSE|REMARKS): — the second alternative requires no doc-block/marker context, so it independently matches the * AUTHOR: ... header line that exists purely to feed ownership (whose own regex matches the same line). One physical construct double-serves doc+ownership, inflating doc to 2x planted.

The proof a clean fix exists

assembly does not show this deviation because its doc rule is correctly scoped: ^[;#@/|]+\s*@(?:param|return|brief|author|note) requires a literal @-prefixed doc tag — the bare ; Author: ... line fails doc and only ownership catches it (doc = 1 = planted, verified).

Fix shape

Either scope abap's second alternative to require a doc-annotation marker (assembly-style), or drop the bare AUTHOR|DESCRIPTION|PURPOSE|REMARKS: alternative from doc entirely — ownership already owns AUTHOR: unambiguously. Golden-master re-bless expected (abap doc counts drop where headers carry these tags).

Related but distinct (do not batch blindly)

The same doc=2 shape in other languages has different causes, per-language verified: apex/agc_assembly's is the corpus header template planting two genuinely-doc-idiomatic lines (@author IS real ApexDoc — corpus-side fix); fortran's is a corpus over-plant (!Author: + ! Description: both real doc lines — corpus-side fix). Only abap's is an engine regex defect.

Cause-key doc-ownership-header-tag-collision; found via keyword-rosetta classification.

Activity

  1. added
    bug
    core-engine
    on Sep 2, 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-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions