[spec-extractor] Update package specifications for envutil, fileutil, gitutil, logger#39211
Merged
pelikhan merged 1 commit intoJun 14, 2026
Conversation
…ogger
- Add Thread Safety sections to all four packages
- Add W3C-style normative language (MUST/SHOULD/MAY) to behavioral contracts
- Fix envutil parameter name: document as 'debugLog' matching the source signature
- Expand fileutil: note CopyFile partial-file cleanup behavior
- Expand gitutil: document ReadFileFromHEAD git-subprocess requirement; add
IsValidFullSHA regex contract (^[0-9a-f]{40}$); document worktree marker
file content verification in FindGitRootFrom
- Expand logger: add formal Thread Safety section for Logger and SlogHandler
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
``
|
Closed
Contributor
Author
|
Hey One mechanical flag from the checklist:
If you'd like to explore that, here's a ready-made prompt for a coding agent:
|
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.
Package Specification Updates
This PR updates README.md specifications for the following packages:
envutildebugLog), expanded design decisionsfileutilgitutilReadFileFromHEADsubprocess requirement, addedIsValidFullSHAregex contractloggerLoggerandSlogHandlerWhat Changed
envutil: parameter name corrected todebugLogto match the Go source signature.fileutil:CopyFilenow documents that it removes the partial destination file on write error.gitutil:ReadFileFromHEADnow explicitly documents its dependency on thegitexecutable;FindGitRootFromworktree content-verification behavior documented;IsValidFullSHAregex contract (^[0-9a-f]{40}$) made explicit.logger: formal Thread Safety section distinguishesLoggermutex usage from the read-onlyEnabledpath.Extraction Method
Round-Robin State
Auto-generated by Package Specification Extractor workflow