refactor: rename sealed to no-new-exports - #52
Merged
Conversation
Rename the module contract field, frontmatter key, gate, skill, fixtures, tests, and documentation. The package version is bumped for the breaking descriptor rename. Co-Authored-By: Claude <noreply@anthropic.com>
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
Renames the module descriptor key
sealedtono-new-exportsacross the entire codebase. The previous term often confused AI agents, who would interpret it as locking the file body (similar to Rust/Java'ssealed class); the new term makes the actual constraint explicit: the file's export surface is closed while the body remains editable.This is a breaking change with no backward compatibility for the old key.
Changes
Descriptor schema
sealed→no-new-exportsDomain types
ModuleContract.sealed→noNewExportsModuleFrontmatterfield updated to match the hyphenated YAML keyGate code
src/gates/sealed-gate.ts→no-new-exports-gate.tscheckSealed→checkNoNewExportsSealedCheckResult→NoNewExportsCheckResultno-new-exportsSkill
skills/module-seal-all/→skills/module-no-new-exports-all/Fixtures and tests
Documentation
MODULE.mddescriptors updated, includingsrc/gates/MODULE.mdvisible listPackage
0.22.0for the breaking descriptor renameNotes
Unrelated language-level uses of
sealed(Kotlinsealed class, Scalasealed trait, Javasealed class, TypeScript@sealeddecorator tests) are intentionally preserved.