Repository navigation
refactor(command-registry): name each system command's own module as its owner - #4836
Merged
Merged
Conversation
Contributor
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Member
Author
|
The code in 9d8407c looks correct, and all 19 checks pass. No conflicts. Nothing else blocks merge. Not verified here: tests and gates were not re-run locally. One note: the test derives each system command's owner module from the command name (system/.ts). That holds today for all 13 commands. A future system command whose file name differs from its command name would need the file or the test renamed. |
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
PR #4817 split
packages/command-surface/src/system/index.tsinto one file per command and left the reviewer's follow-up undone: every system command still claimedsystem/index.tsas its owner. All 13 claims (descriptors/device-operations.ts10,descriptors/session-operations.ts2,registry.ts1) name one command each, so each now names that command's own module. No claim covers the family composition, so none stays onindex.ts.ownerFilesis tooling metadata only:explain:commandrenders it, and the bundle guard proves it stays out ofdist/. The observable change is the file list a reader gets —explain:command backnow also listssystem/back.ts.check-affectedanddepgraphdo not read the claims, so no check or live scenario selection changes.command-output-schemas-system.test.tsnow derives the expected owner path from eachSYSTEM_COMMAND_OUTPUT_SCHEMASkey (system/<command>.ts) instead of asserting one fixed path, and the reverse check scans thesystem/prefix. A new system command is covered with no test edit; a command claiming the composition file, another family's module, or none still fails. Other assertions are unchanged.Value
system/index.ts: 13 → 0.dist/: 52 → 64.Validation
Head 9d8407c, local pass: command-registry and command-surface suites, the edited test,
command-explain.test.ts,owner-files-no-leak.test.ts, eager-closure budgets,check:affected:test,depgraph:test,check:bundle-owner-files,check:gate-manifest,check:layering,check:fallow,check:production-exports,check:quick,format. No behaviour, help-text or wire change; CI is authoritative for device lanes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.