Conversation
Added missing `utility` keyword to align with siblings (present in 7 of 8 `os/*` packages, i.e., 87.5% of the namespace; inserted after `utilities` to match ordering used in `os/homedir` and `os/tmpdir`). https://claude.ai/code/session_01HpagzWPKAxxr2NudhVZuZv
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
os namespace with majority conventions
kgryte
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Aligning outliers in
oswith namespace majority patterns (random namespace pick, seed3849209493).This pull request:
utilitykeyword to@stdlib/os/configdir'spackage.jsonto bring it in line with the rest of theos/*namespace.Namespace summary
osarch,byte-order,configdir,float-word-order,homedir,num-cpus,platform,tmpdir)package.jsontop-level keys / scripts / stdlib / keywords,manifest.jsonpresence, README section set + sequence,test//benchmark//examples/file names, export kind, public signature, validation prologue, error construction, JSDoc shape, dependency set.package.jsontop-level keys (19 keys, 100%),return kind == value(100%), keyword set (13 keywords at ≥75%), README sectionsUsage/Examples/CLI(100%),See Also(87.5%),Notes(75%).benchmark/benchmark.jspresence (3/8),manifest.jsonpresence (2/8),package.jsonbrowserkey (3/8), READMEC APIssubsection (2/8), exact ordered README section sequence (5/8), export kind const-vs-function (5/3), validation prologue / error construction (only 1 package validates arguments — insufficient data for a vote).Per-outlier corrections
@stdlib/os/configdirAdded missing
utilitykeyword topackage.json. The keyword is present in 7 of 8os/*packages (87.5% conformance);configdirwas the sole outlier. Inserted between"utilities"and"utils"to match the ordering inos/homedirandos/tmpdir.Related Issues
No.
Questions
No.
Other
Validation
What was checked:
package.jsonshape + keywords,manifest.jsonshape, README section headings,test//benchmark//examples/file names).lib/main.js+lib/index.js(export kind, public signature, validation prologue, error-construction style, JSDoc shape,@stdlib/*dependency set).What was deliberately excluded:
num-cpusmissing populated## See Alsocontent — the section scaffold is present but empty, and the template comment explicitly says "Do not manually edit this section, as it is automatically populated". Fix is owned by theremark-stdlib-relatedtooling, not by a manual patch.platformandtmpdirmissing## Notessection —platformhas nothing noteworthy to document (Agent 1: intentional deviation; Agent 3: no mechanical fix available).tmpdir'slib/main.jsJSDoc does contain a## Notesblock, but its content is historical trivia about Node'sos.tmpdir()introduction in io.js / Node v4 — and stdlib'stmpdirdoes not useos.tmpdir(). Porting it would propagate stale content, so dropped as not high-signal.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was prepared by Claude Code running a cross-package drift-detection routine over a randomly selected stdlib namespace (seed
3849209493→os). Claude extracted structural and semantic features across the 8os/*members, computed per-feature ≥75% majority patterns, ran three parallel validation agents (opus semantic review, opus cross-reference review, sonnet structural review) against each candidate drift, and applied only the single correction that cleared all three gates: adding"utility"to@stdlib/os/configdir's keywords. The remaining candidates (READMENotes/See Alsoabsences) were intentionally dropped because they either require autogen tooling or would propagate stale content. Leaving as a draft for a human maintainer to audit before promotion.@stdlib-js/reviewers
Generated by Claude Code