Title: mcpx testing: fuzzing and property tests with one seed per run · Issue #1896 · developing-today/code · GitHub
Open Graph Title: mcpx testing: fuzzing and property tests with one seed per run · Issue #1896 · developing-today/code
X Title: mcpx testing: fuzzing and property tests with one seed per run · Issue #1896 · developing-today/code
Description: Relocated from dezren39/darwin-nix#93 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix...
Open Graph Description: Relocated from dezren39/darwin-nix#93 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue reference...
X Description: Relocated from dezren39/darwin-nix#93 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue refer...
Opengraph URL: https://github.com/developing-today/code/issues/1896
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx testing: fuzzing and property tests with one seed per run","articleBody":"Relocated from dezren39/nix#93 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).\n\nParent: #91\n\n## Purpose\n\nRandomised testing for mcpx, under one rule taken from the notes and treated as non-negotiable: **one seed per run generates every input**. A run that fails can then be replayed exactly from a single value, and a failure that cannot be replayed is a bug in this tree rather than a fact of life.\n\nThis is the branch #91 says must land **first**. Every other testing tree can be built in any order and repaired later; the mapping from a seed to the data it produces cannot. Change it after seeds exist and every recorded seed silently stops reproducing what it recorded, with nothing failing to tell you. So the format, the derivation and the engine are decided here before the first randomised test is written.\n\nStarting point, re-checked at 05c78b2: **there is nothing**. 735 `func Test*` across 64 files and not one `Fuzz*`, `Benchmark*`, `testing/quick`, `rapid`, `math/rand` or `t.Parallel()` in the tree. That is an advantage -- there is no existing randomness to migrate and no recorded seed to invalidate.\n\nTwo of these children exist because the user asked for them by name:\n\n- **#125** -- \"make a simple issue for reviewing all tests, setting up framework and policies for the fuzz.\"\n- **#126** -- \"we aren't shooting for deterministic execution to start, maybe we should but no ... separate simple issue for considering both those things.\" It is explicitly **not a plan**; it is a record of an aspiration, kept so that the option is not lost and not mistaken for a proposal.\n\nWhat this tracker does **not** own: when an agent is obliged to write a randomised test, and the rule that every bug gets a test -- those are policy, and belong to #99. The CI job graph that the seed's `init` job plugs into belongs to #95 (#135). The feature inventory those generators aim at belongs to #97.\n\n## Children\n\n- [ ] #121 mcpx testing: one seed per run -- format (UUIDv7), derivation, and how it reaches every test\n- [ ] #122 mcpx testing: seed store layout and collector (file per seed, artifact + scheduled collector)\n- [ ] #123 mcpx testing: choose the generator engine for one run-wide seed (native fuzz, testing/quick, rapid, hand-rolled)\n- [ ] #124 mcpx testing: bug-shape generators -- registry, versioning, budget, first shapes\n- [ ] #125 mcpx testing: review all tests, set up the fuzz framework and its policies\n- [ ] #126 mcpx testing: deterministic execution as a long-term aspiration (retrofit vs Rust rewrite)\n\n## Proposed order\n\n1. **#121 and #123 together.** The seed's format and derivation, and the engine that consumes it, are one decision viewed from two sides -- Go runs one test process per package, so how a single run-wide value reaches every generator depends on what the generator is. Settle both before writing any randomised test.\n2. **#125.** Audit the 735 existing tests and stand up the helper and the corpus layout the earlier two decided. This is what turns the design into something the next test can use.\n3. **#122.** The seed store and its collector. Needs #121's format, and needs #95's `init` job (#135) to exist before the artifact path is real. The collector's commits must not re-trigger `mcpx.yml` (its `push.paths` covers `pkgs/mcpx/**`; see #122 step 6).\n4. **#124.** Bug-shape generators, once there is an engine and a framework to hang them on. This is the ongoing work: each escaped bug adds a generator for its shape.\n5. **#126.** Any time, or never. It gates nothing.\n\n**Hard ordering constraint:** nothing in #95, #97 or #99 may introduce a randomised test before #121 and #123 are decided.\n\n## Children -- ease and impact\n\n| # | Title | Kind | Ease | Impact |\n| --- | --- | --- | --- | --- |\n| #121 | one seed per run -- format, derivation, delivery | design | S (~150 lines helper + wrapper; ~20 lines of CI) | **high** -- every randomised test depends on it |\n| #122 | seed store layout and collector | design | M (~80-line collector workflow, record schema, guard test) | med -- logs reproduce for 90 days without it; the store is what makes seeds durable |\n| #123 | choose the generator engine | research | S (the research is the deliverable; gates #124/#125) | **high** -- fixes the shape of every generator |\n| #124 | bug-shape generators -- registry, versioning, budget | design | M (registry + guard S; each generator S-M) | **high** -- the notes call this the primary testing method |\n| #125 | review all tests, set up the framework and policies | review + implement | S-M (inventory S, helper S, registry + first generator S-M) | **high** -- turns the design into something every later test uses |\n| #126 | deterministic execution / Rust -- **not a plan** | research | S to record; C incremental S per seam; B L-XL; A XL, not planned | low now, med long-term |\n\n## Warnings carried by this tracker\n\n- **A sixth direct Go dependency is not free.** `pkgs/mcpx/package.nix:36-53` opens with a comment headed \"Five direct Go dependencies.\" that names and defends each, and states everything else is standard library. A test-only library still lands in `go.mod`'s direct block, changes `vendorHash` (`package.nix:54`), and becomes a Renovate bump that the existing repair step in `.github/workflows/mcpx.yml` has to service. Adopting `pgregory.net/rapid` means editing \"Five\" to \"Six\" with a paragraph as good as the one sqlite got. #123 weighs this explicitly.\n- **Go's native fuzzing mutator is not seedable**, so \"one seed per run\" and `go test -fuzz` are not the same mechanism and cannot be made the same by wishing. #123 has the detail.\n- **`-shuffle` interacts with ordering, not with membership.** A shuffled run and a seeded run are different kinds of reproducibility; #130 and #139 both touch this.\n- **The seed variable is an undeclared `MCPX_*` read.** #172 (in flight) is about to ban `os.Getenv(\"MCPX_*\")` outside the settings package except for an allowlist. `MCPX_TEST_SEED` (#121) needs an entry there, or the test helpers need to be out of that guard's scope.\n- **Not every escaped bug has an input shape** (#124's escape loop, from its addendum): #65 needs a hermeticity guard and #35 an environment axis, not a generator. Classify first, so that a generator that cannot reach the bug is not counted as coverage.\n\n## Related\n\n#91 (parent), #95 (the `init` job that mints the seed; #135), #97 (what the generators aim at), #99 (when an agent must write one; #129 for bugs that need a guard, not a generator), #127 (do not run the full suite to find out; since #182 fixed #52 the reason is time), #172 (seed variable vs the undeclared-`MCPX_*` guard), #65, #35, #74/#75, #102, #106, #108 (the escaped bugs that motivate generators).\n\nSecurity/auth deferred; see tracker.\n\n## Acceptance criteria\n- A fuzz/property test suite for mcpx exists in the repo, runs in CI with exactly one recorded seed per run, and a failing seed reproduces the failure deterministically.\n- Coverage targets from the issue are met or explicitly re-scoped with the reason recorded on this issue.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:19:44Z","url":"https://github.com/developing-today/code/issues/1896"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd3be386-e361-9f66-9bb0-feb6ae3e256f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED3C:FBBFE:3536F8:45A15C:6B0617E3 |
| html-safe-nonce | 512d99794679363ffd5221b4ba688c59e13e31875fc3ba95041f403f9994e49f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDNDOkZCQkZFOjM1MzZGODo0NUExNUM6NkIwNjE3RTMiLCJ2aXNpdG9yX2lkIjoiNjA3MTEwODIzMjI5NzE5MTM5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff195ddfc2ec134642341e7d6b852e2072ed4ae57d7d24e420f9baf32aa412a5 |
| hovercard-subject-tag | issue:6088546164 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1896/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad3f5a99953cb9e874d89d8a456ce24b4658bd2858e96615508917c9ad6a7f2b/developing-today/code/issues/1896 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad3f5a99953cb9e874d89d8a456ce24b4658bd2858e96615508917c9ad6a7f2b/developing-today/code/issues/1896 |
| og:image:alt | Relocated from dezren39/darwin-nix#93 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue reference... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width