docs: align outliers in _tools/licenses with namespace majority patterns#11820
docs: align outliers in _tools/licenses with namespace majority patterns#11820Planeshifter wants to merge 4 commits intodevelopfrom
_tools/licenses with namespace majority patterns#11820Conversation
Populated the empty `## Examples` section in the README using the existing `examples/index.js` content (a populated Examples section is present in 82% of `_tools/licenses/*` siblings). https://claude.ai/code/session_01SDghDzwtXE919uC6TaiRih
Populated the empty `## Examples` section in the README using the existing `examples/index.js` content (a populated Examples section is present in 82% of `_tools/licenses/*` siblings). https://claude.ai/code/session_01SDghDzwtXE919uC6TaiRih
|
Reverted both drift corrections after CI feedback. The two outlier packages ( Reclassifying both as Branch left in place with revert commits for the audit trail; net diff against Generated by Claude Code |
|
Follow-up: Cause: the workflow fires on any push that touches Pre-existing CI fragility, not actionable from this PR. Filed mental note for the routine: when a candidate README correction targets a package whose existing Usage-section JS already fails Generated by Claude Code |
Description
Aligning outliers in
@stdlib/_tools/licenseswith namespace majority patterns (random namespace pick, seed2026-04-28-drift).Namespace summary
@stdlib/_tools/licensespackage.jsonkeys (16 keys at 100%),directories.{example,lib,test}(test at 82%),lib/{index,main}.js(100%),examples/index.js(100%),README.md ## Usage(100%),README.md ## Examples(82%),errorConstruction = format(82%),jsdocShape.hasExample = true(100%).__stdlib__field (55%),osfield (55%),bin(64%),directories.doc(64%),## CLIREADME section (64%),## NotesREADME section (55%),returnKind(split 55/45 betweenvalueandvoid),has_etc/has_docs(64%).Per-outlier corrections
_tools/licenses/inferPackage
_tools/licenses/infer: populated empty## Examplessection in README usingexamples/index.js; 9/11 siblings (82%) in@stdlib/_tools/licenseshave a populated Examples section._tools/licenses/licensesPackage
@stdlib/_tools/licenses/licenses: populated the## ExamplesREADME section (heading and code block were HTML-commented out) usingexamples/index.js; 9/11 siblings (82%) in@stdlib/_tools/licenseshave a populated Examples section.Validation
Checked:
package.jsonshape, README headings,manifest.jsonshape, test/benchmark/example filenames).@stdlib/*dependencies).Deliberately excluded:
header-regexpandinfererrorConstruction outliers — both legitimately have nothrowstatements (delegated / private helper); not drift.test/directory ininferandlicenses— meaningful tests require fixtures and async filesystem mocking, not a mechanical stub; needs human follow-up.directories.testfield in same packages — linked to the test-dir gap; pointless to add without the directory.Related Issues
No.
Questions
No.
Other
This PR was generated by an automated cross-package API drift detection routine that selects a random eligible namespace (≥8 non-autogenerated members), extracts structural and semantic features for each member, identifies majority patterns at a 75% threshold, validates findings via three independent agents, and applies only mechanical, behavior-preserving corrections to outliers.
Each commit corresponds to one outlier package.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored end-to-end by Claude Code (Opus 4.7) running an automated namespace-drift routine: structural/semantic feature extraction across the namespace's members, majority-vote pattern detection at a 75% threshold, three-agent validation of each candidate correction, and mechanical application of only those corrections that survived all validators. The README content embedded in each Examples section is taken verbatim from the existing
examples/index.jsfiles.@stdlib-js/reviewers
Generated by Claude Code