GeezerVison is showing github.com — mcpx testing: fuzzing and property tests with one seed per run · Issue #1896 · developing-today/code
mcpx testing: fuzzing and property tests with one seed per run #1896DescriptionRelocated 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 numbering).
Parent: #91
Purpose
Randomised 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.
This 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.
Starting 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.
Two of these children exist because the user asked for them by name:
What 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.
Children
- Update Rust crate sqlx to 0.8.0 [SECURITY] #121 mcpx testing: one seed per run -- format (UUIDv7), derivation, and how it reaches every test
- Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122 mcpx testing: seed store layout and collector (file per seed, artifact + scheduled collector)
- Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #123 mcpx testing: choose the generator engine for one run-wide seed (native fuzz, testing/quick, rapid, hand-rolled)
- Update Rust crate tracing-subscriber to v0.3.20 [SECURITY] - autoclosed #124 mcpx testing: bug-shape generators -- registry, versioning, budget, first shapes
- chore(deps): update dependency happy-dom to v20 [security] - autoclosed #125 mcpx testing: review all tests, set up the fuzz framework and its policies
- Update dependency @tailwindcss/typography to v0.5.20 #126 mcpx testing: deterministic execution as a long-term aspiration (retrofit vs Rust rewrite)
Proposed order
- Update Rust crate sqlx to 0.8.0 [SECURITY] #121 and Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #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.
- chore(deps): update dependency happy-dom to v20 [security] - autoclosed #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.
- Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122. The seed store and its collector. Needs Update Rust crate sqlx to 0.8.0 [SECURITY] #121's format, and needs Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /sources/launcher #95's
init job (Update Rust crate tokio to v1.38.2 [SECURITY] #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 Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122 step 6).
- Update Rust crate tracing-subscriber to v0.3.20 [SECURITY] - autoclosed #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.
- Update dependency @tailwindcss/typography to v0.5.20 #126. Any time, or never. It gates nothing.
Hard ordering constraint: nothing in #95, #97 or #99 may introduce a randomised test before #121 and #123 are decided.
Children -- ease and impact
| # |
Title |
Kind |
Ease |
Impact |
| #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 |
| #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 |
| #123 |
choose the generator engine |
research |
S (the research is the deliverable; gates #124/#125) |
high -- fixes the shape of every generator |
| #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 |
| #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 |
| #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 |
Warnings carried by this tracker
- 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. Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #123 weighs this explicitly.
- 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. Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #123 has the detail.
-shuffle interacts with ordering, not with membership. A shuffled run and a seeded run are different kinds of reproducibility; Update Rust crate actix-files to v0.6.10 [SECURITY] #130 and Update dependency hyperscript.org to v0.9.93 #139 both touch this.
- The seed variable is an undeclared
MCPX_* read. Phase 2: membership, delegation, groups, and server config #172 (in flight) is about to ban os.Getenv("MCPX_*") outside the settings package except for an allowlist. MCPX_TEST_SEED (Update Rust crate sqlx to 0.8.0 [SECURITY] #121) needs an entry there, or the test helpers need to be out of that guard's scope.
- Not every escaped bug has an input shape (Update Rust crate tracing-subscriber to v0.3.20 [SECURITY] - autoclosed #124's escape loop, from its addendum): Update Rust crate axum to 0.6.20 #65 needs a hermeticity guard and fix(deps): update rust crate axum to 0.6.20 #35 an environment axis, not a generator. Classify first, so that a generator that cannot reach the bug is not counted as coverage.
Related
#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).
Security/auth deferred; see tracker.
Acceptance criteria
- 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.
- Coverage targets from the issue are met or explicitly re-scoped with the reason recorded on this issue.
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 History carried over from dezren39/darwin-nix#93 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:19:58Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T12:03:38Z
Issues pass (2026-09-30, at 05c78b2).
- Starting point re-checked at 05c78b2: 735 tests across 64 files, still no randomness.
- Order: Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122 now names the collector self-trigger trap (its new step 6).
- Two warnings added. First,
MCPX_TEST_SEED is an undeclared MCPX_* read that Phase 2: membership, delegation, groups, and server config #172's coming guard must allow. Second, not every escaped bug has an input shape (Update Rust crate tracing-subscriber to v0.3.20 [SECURITY] - autoclosed #124's classify-first step).
- Related: chore(deps): bump build/buck/preludes/buck2-prelude from
d956689 to e7457f6 #52 (closed, fixed in Phase 5: tag event bodies must travel with the event #182) is replaced by Update Rust crate tracing to v0.1.40 [SECURITY] #127, because the reason not to run the full suite is now time. Added Phase 2: membership, delegation, groups, and server config #172 and Add omasnap upstream repository to flake inputs #129.
- The task list (no child closed) and the ease/impact table still match every leaf footer; no rating changed.
@dezren39 · 2026-10-28T21:36:32Z
🤖 Agent note · triage — verdict: CONFIRMED as a tracker, but the work no longer lives in this repo — route is re-homing to developing-today/code, not a fix here
- Agent: repo-worker-nix (task 2098, repo-health-nix-pilot)
- Issue state at triage: Bump golang.org/x/crypto from 0.10.0 to 0.17.0 in /sources/graph #93 is OPEN, labelled only
tracker + testing (no held / user/owned / do-not-merge / do-not-auto-edit). All six children are still OPEN: Update Rust crate sqlx to 0.8.0 [SECURITY] #121, Update module golang.org/x/crypto to v0.52.0 [SECURITY] #122, Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #123, Update Rust crate tracing-subscriber to v0.3.20 [SECURITY] - autoclosed #124, chore(deps): update dependency happy-dom to v20 [security] - autoclosed #125, Update dependency @tailwindcss/typography to v0.5.20 #126 — none closed, none with a merged implementation.
- Evidence at current HEAD: dezren39/nix
main is 224c7b738e88c7a8e5d406987a7d88257e229db2 (laptop clone ~/git/nix, fetched and fast-forwarded to origin/main). At that HEAD there is no pkgs/mcpx/ tree at all: it was deleted in 42b94f3 "mcpx: delete the vendored copy; build from pinned developing-today/code input (fix(lab-ops-hub): judge inet_aton IPv4 spellings in the container crawl validator #469)". planning/plans/mcpx-extraction.md records the extraction as done for the build switch and deletion (steps 4–5, lab-ops-hub container crawler accepts inet_aton IPv4 spellings (127.1, 2130706433, 0x7f.1) — loopback SSRF bypass in validate_crawl_url #468, 2026-10-19) and states developing-today/code is the only place the mcpx source lives; this repo now only builds it from the pinned mcpx-src flake input (see .github/workflows/mcpx-nixbuild.yml). So the starting point the issue describes ("735 tests, no Fuzz*/testing/quick/rapid/math/rand in pkgs/mcpx") cannot be reproduced or fixed in this repo — the tree it describes is gone.
- Cross-check in the owning repo: in developing-today/code (main
528886ebad10a4a5a0d4004cf88e0a25a1ea5258), code search finds no func Fuzz, no testing/quick, and no MCPX_TEST_SEED — the one-seed-per-run work has not landed there either, and no re-homed equivalent of Bump golang.org/x/crypto from 0.10.0 to 0.17.0 in /sources/graph #93 was found there.
- Routing — no small_fix packet enqueued for this repo, deliberately: implementing fuzz/property tests in dezren39/nix would recreate a vendored tree the extraction removed. The correct route already exists and is tracked: extraction-plan step 3 (re-home the backlog, mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309, still OPEN) and step 6 (close the mcpx source issues here once re-homed). Bump golang.org/x/crypto from 0.10.0 to 0.17.0 in /sources/graph #93 and its children belong in that re-homing pass — first items to move are Update Rust crate sqlx to 0.8.0 [SECURITY] #121 + Update Rust crate tokio to v1.38.2 [SECURITY] - autoclosed #123 together, per this tracker's own proposed order. Bump golang.org/x/crypto from 0.10.0 to 0.17.0 in /sources/graph #93 stays OPEN here as the tracker until that re-homing happens; closing it now would lose the child list and ordering constraints.
- Links: issue mcpx testing: fuzzing and property tests with one seed per run dezren39/darwin-nix#93 · re-homing mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309 · task 2098 (repo-health-nix-pilot)
added kind/testTest coverage, test infrastructure, or test-only fixes effort/lLarge: multi-day or open-ended; expect staged check-ins meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Oct 28, 2026dezren39 commented on Oct 28, 2026 Intake review
🤖 Agent note · filed
Notes: Filed in the large mcpx filing batch of 2026-10-28 21:59–22:24Z and already carries a queued triage task — it is not orphaned. Verified live at intake: no merged PR references this issue and it was filed under an hour ago, so nothing can have resolved it yet. Acceptance criteria appended to the body from the issue's own stated scope; original body preserved verbatim above it.
Risks: Tracker-level scope overlaps its sibling batch issues — the triage pass must dedupe against them before any implementation packet is written, and split rather than implement if the scope is multi-PR.
Suggested approach: Triage first (task 2790): confirm the boundary against the sibling issues, then enqueue one scoped packet per deliverable slice.
developing-today commented on Nov 8, 2026
Agent note — stand-down, displaced claim (task 13223)
- Lane code-n claimed task 13223 (small_fix, issue mcpx testing: fuzzing and property tests with one seed per run #1896), but the claim was stamped lane code-x, not code-n.
- Per the lane-displacement protocol, lane code-n stands down: no lane assignment, no work, no label changes on this task.
- Task 13223 belongs to its stamped lane (code-x); the claim lease will expire on its own if that lane does not act.
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 13, 2026 agent-note:v1
task: 13223
lane: any-c
state: done
worker: repo-worker-code
finding: Parent close-out verification for the one-seed-per-run tracker, fresh 2026-11-13. Children: issue #1949 CLOSED, issue #1960 CLOSED (PR #5127 MERGED), issue #1953 CLOSED; issue #1985 remains OPEN on its own merits (see re-scope below). Evidence on current main: (1) Exactly one seed per run — mcpx-test.yml init job mints one UUIDv7 seed (steps.seed, "Mint the run seed (#1949)") and passes it as MCPX_TEST_SEED via needs.init.outputs.seed to every test job; mcpx.yml does the same via its seed job and uploads seed.json as the test-seed artifact. (2) Reaches every randomized generator — derivation in pkgs/mcpx/internal/testsupport/gen (root = SHA-256("mcpx-test-seed/v1" || seed), per-test streams) with the lazy seed.Source transport in internal/testsupport/seed; CI fails closed when the seed is unset. (3) Recorded — the mcpx-seed-collector workflow (#1953) files test-seed artifacts into pkgs/mcpx/testdata/seeds/v1 (e.g. 2026/10/01a18b4a-e218-708e-9085-29de6dff0f9c.json, collector commit 39f6a44). (4) Replay — workflow_dispatch seed input replays a previous run exactly, re-running failed jobs reuses the original seed, and pkgs/mcpx/TESTING.md documents the one-command local replay; the wrapper regression suite test_mcpx_test_seed.py ran today: 4 tests OK. (5) Workflows trigger — mcpx-test runs were created today on push (e.g. run 43396534307 for merge 5199eb3, run 43397262778 for 89eff87); they sit queued in the current CI backlog, so no completed fresh run was observed this shift.
next: Re-scope recorded per acceptance: issue #1985 (CI workflow skeleton) stays OPEN for its own remaining design-scope disposition and fresh-run results once the CI queue drains — that is #1985's tracker scope, not the seed rule, and it does not block this tracker. Issue #1896 closes on the evidence above; task 13223 completes already_done.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|