GeezerVison is showing github.com — mcpx: generator registry core — gen.All, manifest, budget, first generators (#1958) by dezren39 · Pull Request #2661 · developing-today/code
Conversation
dezren39
commented
Oct 30, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements the #1958 registry core — queue task 3256, on the generator core merged in #2636 (task 3251). This PR does not close #1958: the four remaining first shapes stay on it as named follow-on work.
What
gen.All registry (internal/testsupport/gen/registry.go): {Name, Version, Origin, Draw} entries, substream key name@version; Lookup. A guard test pins the typed generators to the registered set, so an unregistered generator cannot exist silently.
- Manifest hash: sha256 over the sorted
name@version entries — the manifest for stored seed records (Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122). Tested: changes iff a name or version changes; entry order does not matter.
- Budget knob:
MCPX_TEST_FUZZ=off|quick|ci|soak parses loudly (invalid value is an error, never a silent default); budgets are counts, not time — pure 1/200/2,000/20,000, e2e 1/2/10/100 (starting counts per mcpx testing: bug-shape generators -- registry, versioning, budget, first shapes #1958; Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /sources/launcher #95 owns the finals).
- First generators, each registered with its Origin and a property test drawing at the budget count from the run-seed stream:
- Golden-output guard over all of
gen.All: each generator's canonical draw at a fixed seed/size is sha256-pinned; a changed output must land as a new version, never a silent edit.
Verification
Laptop: go test ./internal/testsupport/gen/ passes (0.6s at the quick budget — 200 draws per property), internal/config and internal/launcher pass, go vet clean. No new go.mod dependencies. Full pkgs/mcpx suite runs in CI on this PR.
Refs #1958
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… generators (#1958)
Implements queue task 3256 (registry core of #1958, on the gen core merged in #2636):
- gen.All registry in internal/testsupport/gen: {Name, Version, Origin, Draw} entries, substream key name@version; Lookup; a guard test pins the typed generators to the registered set so an unregistered generator cannot exist silently.
- ManifestHash: sha256 over sorted name@version entries (the manifest for stored seed records, #122); changes iff a name or version changes, order-independent.
- MCPX_TEST_FUZZ=off|quick|ci|soak budget knob: ParseBudget fails loudly on invalid values; budgets are counts (pure 1/200/2000/20000, e2e 1/2/10/100), never time.
- First generators, each with a property test drawing at the budget count from the run-seed stream: config.layers (nearest wins per server, unrelated far layer changes nothing near, StripJSONC identity on comment-free JSON — origins #5/#78) and launcher.template (filling every Used placeholder never errors, none survives, literals preserved byte-for-byte — origin #7). A golden-output guard pins every registered generator's canonical draw at a fixed seed.
- The four remaining first shapes (exec.flagset, codegen.jsonschema, api.v1request, settings.precedence) stay named follow-on work on #1958 — not implemented, not dropped.
Laptop: go test ./internal/testsupport/gen/ pass (0.6s at quick), internal/config and internal/launcher pass, go vet clean. Full pkgs/mcpx suite via CI on the PR. No new go.mod dependencies.
Important
Review skipped
Review was skipped due to path filters
⛔ Files ignored due to path filters: 3
-
pkgs/mcpx/internal/testsupport/gen/generators.go is excluded by !**/gen/**
pkgs/mcpx/internal/testsupport/gen/registry.go is excluded by !**/gen/**
pkgs/mcpx/internal/testsupport/gen/registry_test.go is excluded by !**/gen/**
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
cbfe0988-7486-461c-9e01-2f7e45edbd98
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-10-30T09:26:24.193312Z |
c718a95 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c718a9523e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
// (farthest outermost) under an isolated HOME and loads it.
|
|
|
func loadStack(t *testing.T, stack gen.ConfigLayers) map[string]string {
|
|
|
t.Helper()
|
|
|
root := t.TempDir()
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isolate the generated config chain from ambient files
When TMPDIR is under the real home directory, or /etc/mcpx/config.json defines an additional server, this property test can fail despite correct merging. config.SearchPathFrom walks every ancestor of the generated directory and includes the system config; changing HOME and XDG_CONFIG_HOME does not exclude those files. Any ambient server outside the generated alphabet then breaks assertWinners' exact server-count assertion. Bound the fixture's discovery chain to its generated files, for example with a terminating paths.config declaration, rather than relying only on environment overrides.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex P2 disposition (queue task 3256, post-merge): valid, tracked as follow-up.
Verified against the code: SearchPathFrom (internal/config/config.go) walks every ancestor of the fixture dir to /, and /etc/mcpx/config.json is always appended — so on a machine with a system config, or a home-nested TMPDIR with ambient configs in the walked path, extra servers leak into the merge and break assertWinners exact-count check. Hermetic on this laptop and standard CI runners (no /etc config, TMPDIR under /tmp), which is why the suite is green here.
Fix (not applied — this lane is filesystem read-only): bound the fixture chain in loadStack by injecting a terminating paths.config (no null entry) into the nearest generated layer, naming the generated layer files nearest-first per the two-pass rules in internal/config/chain.go. Flagged for the #1958 follow-on work.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 8, 2026
This was referenced Nov 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|