test: enforce coding standards guardrails for pure-data toolsets#519
Closed
cursor[bot] wants to merge 2 commits into
Closed
test: enforce coding standards guardrails for pure-data toolsets#519cursor[bot] wants to merge 2 commits into
cursor[bot] wants to merge 2 commits into
Conversation
Bump version to 3.2.6 across package.json, root and directory bundle manifests, and the release-metadata version contract test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> AI-Session-Id: cc0246c6-f5e1-40f2-bf1a-6d8f3c6ba701 AI-Tool: claude-code AI-Model: unknown
Remove createLogger from scs.ts remediation PR preflight — toolsets are pure data and must not log. Transient preflight list failures now fail open silently per the documented best-effort policy. Add automated guardrails: - FORBIDDEN_TOOLSET_IMPORTS blocks utils/logger imports - architecture test rejects createLogger() calls in toolsets - docs/coding-standards.md documents the logging rule Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
|
|
16 tasks
Collaborator
|
Closing: duplicate 'strengthen coding standards guardrails' draft. Superseded by merged #536/#510 on Triaged as part of an open-PR cleanup pass. If this was mis-triaged, reopen and rebase onto current |
This was referenced Jul 5, 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.
Summary
Reviewed the codebase against
docs/coding-standards.mdregistry-driven architecture rules. The project already enforces most standards viapnpm standards:check(72 automated tests in CI).This PR closes one remaining gap:
scs.tsimportedcreateLogger, which violates the pure-data toolset rule.Changes
scs.ts: RemovecreateLoggerfrom remediation PR preflight; transient list failures now fail open silently (documented best-effort policy unchanged)architecture.test.ts: Blockutils/loggerimports andcreateLogger()calls in toolset filesdocs/coding-standards.md: Document that toolsets must not importcreateLoggeror use any loggingVerification
pnpm standards:check— 72 tests passpnpm test— 2453 tests passStandards coverage (already enforced)
architecture.test.tsToolsetDefinitionexport checkconsole.login src/HarnessClienttoolset-scope.test.ts,scope-params.test.tsoperationPolicyon endpointsregistry-contract.test.tsregistry-metadata.test.ts.describe()chainingarchitecture.test.ts,input-conventions.test.tsfile-organization.test.ts