Conversation
Add specification-driven tests derived from README.md for three packages that previously had no spec_test.go coverage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
Collaborator
|
/cloclo fix lint issue |
Contributor
Author
|
🎤 Bravo! /cloclo has delivered a stunning performance! Standing ovation! 🌟 |
3 tasks
Contributor
Author
Contributor
Author
✨ Cloclo to the rescue! 🎵SummaryDiagnosed the Root CauseThe
All other spec test files ( Changes MadeOnly Next StepsReview and merge the fix PR opened from branch |
Contributor
Author
|
✅ Smoke CI completed successfully! |
Contributor
Author
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.
Specification Test Enforcement
This PR adds specification-driven tests for three packages that previously had no
spec_test.gocoverage.ttytypesworkflowTest Derivation
All tests are derived from
README.mdspecifications, not from implementation source code.pkg/tty— Tests document and verify theIsStdoutTerminal()/IsStderrTerminal()contracts: call-time evaluation (not cached), and false-return in non-TTY environments (CI, piped execution).pkg/types— Tests validate struct construction with spec examples (stdio/HTTP/container MCP servers), JSON round-trip behavior (the spec requiresjson+yamlstruct tags), and zero-value safety for all four types (BaseMCPServerConfig,MCPAuthConfig,TokenWeights,TokenClassWeights).pkg/workflow— Tests focus on two untested areas of the public API:NewPermissionsContentsWritePRWrite,NewPermissionsContentsWriteIssuesWritePRWrite,NewPermissionsContentsReadDiscussionsWrite,NewPermissionsContentsReadIssuesWriteDiscussionsWrite,NewPermissionsContentsReadPRWrite,NewPermissionsContentsReadSecurityEventsWrite,NewPermissionsContentsReadProjectsWrite— each verified to produce the exact scope/level combinations documented in the README.SafeOutputsConfigFromKeys: Verified to build aSafeOutputsConfigfrom documented key names ("add-comment","create-issue","create-pull-request", etc.) withHasSafeOutputsEnabledreturning the correct value.Spec-Implementation Mismatches
None found. All implementations match their README.md specifications.
Round-Robin State
tty,types,workflowactionpins,agentdrain,cli(or next packages in alphabetical order without recent enforcement)References:
Auto-generated by Package Specification Enforcer workflow