Repository navigation
Description
Phase 3 of #2812, next family by the mechanical audit: ownership (sheet row draft, planted, 1 open cell of 45).
The cell
solidity reads 4 against a row of 1s. The rule is //[ \t]*SPDX-License-Identifier:|(?:@author|Created by):\s+(.*): every .sol file opens with the SPDX line, so every file reads 1 and the language sums to 4 where every sibling plants one Author: line in main and reads 0 in a/b/c. The ledger (batch5-tier2-morphology-shapes, "solidity SPDX line = ownership on every file") records the shape as a morphology; it is a rule reading a license identifier as who is responsible. A second defect rides on the same alternative: it has no capture group, and detector._decode_comment_stream reads m.group(m.lastindex) — or group(0) when there is none — as the file's dominant author, so every solidity file's ghost meta is the string // SPDX-License-Identifier:.
What the 46-rule audit measures with no red cell (both Prism streams — the detector runs a comment-stream rule over the code stream too — engine main 5ff1f99, language-crucible v1.2.0)
The sheet's sentence is "Authorship metadata. Includes: @author, Created by:" and the rules disagree on what that is:
- Rights vs responsibility. c (
Copyright\s+), cpp, yacc and objective-c count the notice form, shell (Copyright:?) counts every notice (131 hits over 256 files:# Copyright 2017 The Kubernetes Authors.), and c/cpp/yacc also count the MIT/BSD license's own prose —* The above copyright notice and this permission notice,* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM(24 of c's 51, 27 of cpp's 62, 4 of yacc's 6). Twenty other rules carry a keyedCopyright:alternative that matches no real notice (notices have no colon). haskell/lua/perl/m4 countLicense:/=head1 LICENSE/AC_COPYRIGHT. java, javascript, typescript, python, go, rust and 30 more count none of it. A license identifier and a copyright notice say who holds rights and on what terms — repo-wide boilerplate — not who to ask about this file. - The word, not the tag. typescript's
Created by\s+matches vscode's prose 11 times (* created by the extension.,created by the {@link TreeDataProvider …}), javascript's 4 (created by the renderer), csharp's 1 (being created by compiling all of the code), go's colon-optionalOwner:?matches// owner as the given ReplicaSet; python's unanchoredAuthor:matches by substring inside.. moduleauthor:: Pierre(a real Sphinx directive it should count by its own form). objective-c's rule is literally\b(?:Created by|Copyright|Tim Berners-Lee)\b— a person's name as a rule — copied into abap, apex and scala. - Not authorship. kotlin counts
@since(a version tag). - The author tag has two owners in five languages (the livecode (+~14 siblings): doc rule claims 'Author:' which ownership already owns — every header author line double-counts (ada has the correct pattern) #2659/doc rules count one doc comment once per marker AND once per tag — 18 languages, 8 red rosetta cells (the #2658 shape, unswept) #2672 shape, unswept): assembly's doc rule counts
@author, cobol's counts*> @author, css's counts/* @author, dockerfile's countsLABEL maintainer=and# Author:/# Maintainer:, and haskell's doc claims-- @authorwhile its ownership rule is pinned not to. - Missing the family's own forms. haskell's
Maintainer:\s+cannot see the GHC module header's-- Maintainer : [email protected](spaces before the colon; the crucible reads 0/7); java/javascript/typescript/kotlin/scala/php have@authorbut no keyedMaintainer:/Author:line where 30 siblings do; swift has no- Author:callout; python has__author__but not the:author:docinfo field or.. moduleauthor::; csharp and objective-c corpus plants are colon-less// Created by X(Xcode's template form is// Created by X on <date>). - Capture. The detector reads the last group as the author name; solidity's SPDX alternative and m4's
AC_COPYRIGHTalternative have none.
Ask
State the contract (one sentence + corollaries: the tag not the word, anchored to the comment line and its separator; rights are not responsibility — license identifiers and copyright notices out in every form; one tag one hit and the value is the name (every alternative captures); one owner — the author tag is ownership's and doc counts the block; markdown absent), audit the 46 rules against it, add --stream to tests/tools/rule_probe.py so comment-stream rules are measured on the stream the detector reads, re-plant solidity (and the two colon-less Created by plants), retire the solidity/html clauses of batch5-tier2-morphology-shapes, land docs/ownership_rule_contract.md, flip the row to stated.
Activity