You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
abap: doc regex's bare AUTHOR:/DESCRIPTION: alternative double-counts the ownership header line (doc 2x planted) #2650
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
fix(core-engine): Rosetta sweep batch 2 — nine slicer/regex/DAG fixes…
fix(core-engine): Rosetta batch 3 wave 2 — doc-comment pairing, rule …