From d6af08e4be3b4d20cb13aead7fa4322a44e81a86 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 16 Nov 2026 08:42:11 +0800 Subject: [PATCH] test: name tests after the behavior they check, not a removed limit (#11618) * test: name tests after the behavior they check, not a removed limit Thirty-one test titles still said "beyond/above/after the former ..." for limits that no longer exist. They now state what the test checks (the size, count or depth it exercises, or the bound that still applies, such as max_snapshot_bytes for the managed manifest snapshot). Test bodies are unchanged. Refs #10515 * test: say "more than" where a title counts only part of its fixture --- src/application/investigation/EvidenceLedger.test.ts | 2 +- .../javascript/JavaScriptArtifactPathResolution.test.ts | 4 ++-- src/application/native/EnhancedNativeInvestigation.test.ts | 2 +- src/domain/analysisProfile.test.ts | 2 +- src/domain/browserScenario.test.ts | 2 +- src/domain/browserScenarioCapture.test.ts | 4 ++-- src/domain/javascript/javascriptAstValues.test.ts | 2 +- src/domain/javascript/javascriptFeatureSeed.test.ts | 4 ++-- src/domain/javascript/javascriptRpcEndpoints.test.ts | 2 +- src/domain/javascript/javascriptSemanticGraphQuery.test.ts | 2 +- .../javascript/javascriptSemanticGraphTraversal.test.ts | 2 +- src/domain/managed/managedReconstruction.test.ts | 2 +- src/domain/reconstructionObligationLedgerSchemas.test.ts | 2 +- src/domain/reconstructionVerification.test.ts | 2 +- src/domain/webBundleAnalyzer.test.ts | 2 +- src/domain/webInventory.test.ts | 2 +- .../browser/cdpBrowserProvider.sensitive_data.test.ts | 2 +- tests/boundary/browser/webSourceMapFetcher.test.ts | 2 +- .../javascriptModuleRelationships.test.ts | 2 +- tests/boundary/filesystem/referenceSourceReader.test.ts | 4 ++-- tests/boundary/inspector/javascriptRuntimeObservation.test.ts | 4 ++-- tests/boundary/mcp/officialTools.test.ts | 2 +- tests/boundary/process/managedManifestAdmission.test.ts | 2 +- tests/boundary/providers/ghidra/ghidraClient.test.ts | 2 +- tests/boundary/providers/hopper/hopperClient.protocol.test.ts | 2 +- tests/evaluation/moduleBoundaries.test.ts | 2 +- 26 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/application/investigation/EvidenceLedger.test.ts b/src/application/investigation/EvidenceLedger.test.ts index 9386d92f3a..4315e7a824 100644 --- a/src/application/investigation/EvidenceLedger.test.ts +++ b/src/application/investigation/EvidenceLedger.test.ts @@ -310,7 +310,7 @@ describe("evidence ledger metadata imports", () => { expect(ledger.export().records).toHaveLength(10_001); }); - it("retains inline evidence larger than the former session byte quota", () => { + it("retains an inline Evidence record above 64 MiB", () => { const ledger = new EvidenceLedger(); const record = createEvidence(TARGET, PROVIDER, { operation: "health", diff --git a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts index e96e981709..31428a145c 100644 --- a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts +++ b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts @@ -1467,7 +1467,7 @@ describe("contextual JavaScript artifact path resolution", () => { ).toMatchObject({ resolution_status: "not-found", resolved_path: null }); }); - it("resolves inventoried paths longer than the former character ceiling", () => { + it("resolves an inventoried path of more than 5,000 characters", () => { const declaredPath = `./${"a".repeat(5_000)}.js`; const expectedPath = `app/${declaredPath.slice(2)}`; const files = fileMap([ @@ -1588,7 +1588,7 @@ describe("JavaScript file URL resolution", () => { }); describe("contextual JavaScript package path resolution", () => { - it("follows package entrypoints beyond the former recursion ceiling", () => { + it("follows a long chain of package entrypoints", () => { const files = fileMap([ file("app/consumer.js", "root"), file( diff --git a/src/application/native/EnhancedNativeInvestigation.test.ts b/src/application/native/EnhancedNativeInvestigation.test.ts index 64227ce306..2ee80c1633 100644 --- a/src/application/native/EnhancedNativeInvestigation.test.ts +++ b/src/application/native/EnhancedNativeInvestigation.test.ts @@ -878,7 +878,7 @@ describe("native UI trace boundaries", () => { }); }); - it("matches handlers after the dispatch inventory's former default limit", async () => { + it("matches a handler listed after 5,000 unrelated names", async () => { const names = Array.from({ length: 5_000 }, (_, index) => ({ address: `0x${(index + 1).toString(16)}`, value: `unrelated_symbol_${index}`, diff --git a/src/domain/analysisProfile.test.ts b/src/domain/analysisProfile.test.ts index a39fb389d4..b0e82e99e3 100644 --- a/src/domain/analysisProfile.test.ts +++ b/src/domain/analysisProfile.test.ts @@ -28,7 +28,7 @@ describe("analysis profile commitments", () => { ).toBe(3); }); - it("commits parameter objects larger than the former byte ceiling", () => { + it("commits parameter objects above 64 KiB", () => { const parameters = Object.fromEntries( Array.from({ length: 5 }, (_, index) => [ `parameter-${String(index)}`, diff --git a/src/domain/browserScenario.test.ts b/src/domain/browserScenario.test.ts index a17607c6a9..4b88c40bc7 100644 --- a/src/domain/browserScenario.test.ts +++ b/src/domain/browserScenario.test.ts @@ -174,7 +174,7 @@ it("accepts caller-selected safe capture limits and rejects invalid bounds", () ).toBe(false); }); -it("accepts complete browser inputs beyond former string length caps", () => { +it("accepts browser inputs with long values, secret names and paths", () => { const longValue = "value".repeat(20_000); const longToken = "a".repeat(70_000); const longEnvironmentVariable = "SECRET_A".repeat(10_000); diff --git a/src/domain/browserScenarioCapture.test.ts b/src/domain/browserScenarioCapture.test.ts index 9dcfec0841..45eef64261 100644 --- a/src/domain/browserScenarioCapture.test.ts +++ b/src/domain/browserScenarioCapture.test.ts @@ -154,7 +154,7 @@ it("does not attach a content digest to redacted storage secrets", () => { ).toBe(false); }); -it("accepts complete storage, history, and text artifacts beyond former caps", () => { +it("accepts complete storage, history, and text artifacts above 1 MiB", () => { const text = "x".repeat(1_048_577); const fingerprint = { name: "entry", @@ -206,7 +206,7 @@ it("accepts complete storage, history, and text artifacts beyond former caps", ( expect(parsed.success).toBe(true); }); -it("accepts complete scenario output beyond former string caps", () => { +it("accepts complete scenario output with long step strings", () => { const longText = "detail".repeat(1_000); const step = (index: number) => ({ step_index: index, diff --git a/src/domain/javascript/javascriptAstValues.test.ts b/src/domain/javascript/javascriptAstValues.test.ts index 8ff1052439..b5e3446f2d 100644 --- a/src/domain/javascript/javascriptAstValues.test.ts +++ b/src/domain/javascript/javascriptAstValues.test.ts @@ -144,7 +144,7 @@ it("limits unary-plus keys to transparent numeric literals", () => { ).toBeNull(); }); -it("reads nested inline object spreads beyond the former evaluator depth cap", () => { +it("reads an inline object nested in 1,024 spreads", () => { let object = t.objectExpression([ t.objectProperty(t.identifier("stdio"), t.stringLiteral("inherit")), ]); diff --git a/src/domain/javascript/javascriptFeatureSeed.test.ts b/src/domain/javascript/javascriptFeatureSeed.test.ts index d7f69b8719..fc426c240e 100644 --- a/src/domain/javascript/javascriptFeatureSeed.test.ts +++ b/src/domain/javascript/javascriptFeatureSeed.test.ts @@ -5,7 +5,7 @@ import type { JsonValue } from "../jsonValue.js"; import { findApplicationFeatureSeeds } from "./javascriptFeatureSeed.js"; describe("application feature seed property matching", () => { - it("finds strings after the former property count ceiling", () => { + it("finds a string after 512 other property values", () => { const node = graphNodeWithProperties({ values: Array.from({ length: 513 }, (_, index) => `value-${index}`), }); @@ -27,7 +27,7 @@ describe("application feature seed property matching", () => { ]); }); - it("finds strings deeper than the former traversal cutoff", () => { + it("finds a string seven properties deep", () => { const node = graphNodeWithProperties({ one: { two: { three: { four: { five: { six: { seven: "deep-value" } } } } }, diff --git a/src/domain/javascript/javascriptRpcEndpoints.test.ts b/src/domain/javascript/javascriptRpcEndpoints.test.ts index 815fbc128e..69fe580d50 100644 --- a/src/domain/javascript/javascriptRpcEndpoints.test.ts +++ b/src/domain/javascript/javascriptRpcEndpoints.test.ts @@ -331,7 +331,7 @@ describe("tRPC binding identity and bundled syntax", () => { ]); }); - it("preserves procedure paths beyond the former nesting cutoff", () => { + it("preserves a procedure path of 64 segments", () => { const path = Array.from({ length: 64 }, (_, i) => `router${i}`).join("."); expect(rpcEndpoints(`root.${path}.useQuery();`)).toEqual([ { kind: "network", value: path, mechanism: "trpc:procedure:useQuery" }, diff --git a/src/domain/javascript/javascriptSemanticGraphQuery.test.ts b/src/domain/javascript/javascriptSemanticGraphQuery.test.ts index e2c54382f1..492da10c72 100644 --- a/src/domain/javascript/javascriptSemanticGraphQuery.test.ts +++ b/src/domain/javascript/javascriptSemanticGraphQuery.test.ts @@ -136,7 +136,7 @@ const node = ( evidenceContexts, ); -it("accepts semantic module paths longer than the former schema ceiling", () => { +it("accepts a semantic module path of more than 600 segments", () => { const modulePath = `${"segment/".repeat(600)}entry.js`; const evidenceContexts = new JavaScriptSemanticEvidenceContextRegistry(); expect( diff --git a/src/domain/javascript/javascriptSemanticGraphTraversal.test.ts b/src/domain/javascript/javascriptSemanticGraphTraversal.test.ts index 8d030b3941..8302895e4e 100644 --- a/src/domain/javascript/javascriptSemanticGraphTraversal.test.ts +++ b/src/domain/javascript/javascriptSemanticGraphTraversal.test.ts @@ -194,7 +194,7 @@ it("returns only the referenced evidence contexts with resolvable trace facts", ); }); -it("traverses paths beyond the former fixed depth ceiling", () => { +it("traverses a path of 70 relations", () => { const original = semanticFixtureGraph(); const input = constructionInput(original); const evidenceContexts = registryForGraph(original); diff --git a/src/domain/managed/managedReconstruction.test.ts b/src/domain/managed/managedReconstruction.test.ts index 5d0493cb65..45ef95d750 100644 --- a/src/domain/managed/managedReconstruction.test.ts +++ b/src/domain/managed/managedReconstruction.test.ts @@ -5,7 +5,7 @@ import { createEvidence } from "../evidence.js"; import { managedReconstructionImportInputSchema } from "./managedReconstruction.js"; describe("managed reconstruction import input", () => { - it("accepts more than the former 50-method and 100-note ceilings", () => { + it("accepts more than 50 methods and 100 notes", () => { const evidence = createEvidence( unknownTarget("not-observed"), { id: "fixture", name: "Fixture", version: "1" }, diff --git a/src/domain/reconstructionObligationLedgerSchemas.test.ts b/src/domain/reconstructionObligationLedgerSchemas.test.ts index 005758210f..a3d1eacc07 100644 --- a/src/domain/reconstructionObligationLedgerSchemas.test.ts +++ b/src/domain/reconstructionObligationLedgerSchemas.test.ts @@ -13,7 +13,7 @@ import { const digest = "a".repeat(64); describe("reconstruction obligation ledger schemas", () => { - it("accepts manifests and ledgers above the former count ceilings", () => { + it("accepts manifests and ledgers with more than 10,000 entries", () => { const binding = { obligation_id: "obligation-1", owner: { diff --git a/src/domain/reconstructionVerification.test.ts b/src/domain/reconstructionVerification.test.ts index cf9f3520ae..0c51e8f7f8 100644 --- a/src/domain/reconstructionVerification.test.ts +++ b/src/domain/reconstructionVerification.test.ts @@ -537,7 +537,7 @@ describe("reconstruction verification outcomes", () => { }); describe("reconstruction verification integrity", () => { - it("accepts evidence closures larger than the former count ceilings", () => { + it("accepts evidence closures with more than 20,000 ids", () => { const evidenceIds = Array.from( { length: 20_101 }, (_, index) => `ev_${index.toString(16).padStart(64, "0")}`, diff --git a/src/domain/webBundleAnalyzer.test.ts b/src/domain/webBundleAnalyzer.test.ts index 7625ddf9c1..a7f717c489 100644 --- a/src/domain/webBundleAnalyzer.test.ts +++ b/src/domain/webBundleAnalyzer.test.ts @@ -485,7 +485,7 @@ describe("web bundle analyzer", () => { expect(analyzed.completeness.status).toBe("complete"); }); - it("analyzes AST nodes after the former fixed node ceiling", () => { + it("analyzes every AST node of a bundle with more than 250,000 nodes", () => { const source = `${";".repeat(250_001)}fetch('/last');`; const result = analyzeWebBundleFixture(inspection(source)); diff --git a/src/domain/webInventory.test.ts b/src/domain/webInventory.test.ts index e4ef77472b..615ee1eba0 100644 --- a/src/domain/webInventory.test.ts +++ b/src/domain/webInventory.test.ts @@ -28,7 +28,7 @@ describe("web content artifacts", () => { ).toBe(false); }); - it("preserves provider media types longer than the former field ceiling", () => { + it("preserves a provider media type of more than 300 characters", () => { const mediaType = `application/${"x".repeat(300)}`; const artifact = createWebTextArtifact("content", mediaType); diff --git a/tests/boundary/browser/cdpBrowserProvider.sensitive_data.test.ts b/tests/boundary/browser/cdpBrowserProvider.sensitive_data.test.ts index f8eac03f40..299bcc1314 100644 --- a/tests/boundary/browser/cdpBrowserProvider.sensitive_data.test.ts +++ b/tests/boundary/browser/cdpBrowserProvider.sensitive_data.test.ts @@ -193,7 +193,7 @@ describe("CdpBrowserProvider: page cookie scope", () => { }); describe("CdpBrowserProvider: complete storage fingerprints", () => { - it("fingerprints cache bodies above the former byte ceiling", async () => { + it("fingerprints cache bodies above 64 KiB", async () => { const body = "x".repeat(64 * 1_024 + 1); const browser = await startFakeCdpBrowser({ cachedResponseBody: body }); trackBrowser(browser); diff --git a/tests/boundary/browser/webSourceMapFetcher.test.ts b/tests/boundary/browser/webSourceMapFetcher.test.ts index 135056de57..3e89673116 100644 --- a/tests/boundary/browser/webSourceMapFetcher.test.ts +++ b/tests/boundary/browser/webSourceMapFetcher.test.ts @@ -1675,7 +1675,7 @@ describe("web source-map collection", () => { expect(result.items).toHaveLength(requests.length); }); - it("includes source-map text above the former per-map byte budget", async () => { + it("includes source-map text above 8 MiB", async () => { const content = "x".repeat(8 * 1_024 * 1_024 + 1); const map = JSON.stringify({ version: 3, diff --git a/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts b/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts index 8441ed5f59..2f191e0cda 100644 --- a/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts +++ b/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts @@ -667,7 +667,7 @@ it("does not assign one module origin to an export with colliding path encodings }); describe("complete static application projections", () => { - it("retains exports and JSON keys beyond the former projection prefix", async () => { + it("retains all 140 exports and JSON keys", async () => { const root = await moduleFixture(); const exportNames = Array.from( { length: 140 }, diff --git a/tests/boundary/filesystem/referenceSourceReader.test.ts b/tests/boundary/filesystem/referenceSourceReader.test.ts index be46d79487..923519fa90 100644 --- a/tests/boundary/filesystem/referenceSourceReader.test.ts +++ b/tests/boundary/filesystem/referenceSourceReader.test.ts @@ -183,7 +183,7 @@ describe("readReferenceSource entries", () => { }); }); - it("reads a source file larger than the former 16 MiB ceiling", async () => { + it("reads a source file above 16 MiB", async () => { const root = await createTestTempDirectory("rea-reference-large-"); const size = 16 * 1024 * 1024 + 1; const bytes = Buffer.alloc(size, 0x61); @@ -212,7 +212,7 @@ describe("readReferenceSource entries", () => { ); }); - it("traverses source directories deeper than the former depth ceiling", async () => { + it("traverses a source directory 40 levels deep", async () => { const root = await createTestTempDirectory("rea-reference-deep-"); const segments = Array.from({ length: 40 }, (_, index) => `d${index}`); const directory = join(root, ...segments); diff --git a/tests/boundary/inspector/javascriptRuntimeObservation.test.ts b/tests/boundary/inspector/javascriptRuntimeObservation.test.ts index fd6274faa0..aeda543f51 100644 --- a/tests/boundary/inspector/javascriptRuntimeObservation.test.ts +++ b/tests/boundary/inspector/javascriptRuntimeObservation.test.ts @@ -576,7 +576,7 @@ describe("undeclared V8 runtime role", () => { }); describe("V8 Inspector script retention", () => { - test("retains authorized script locations longer than the former byte ceiling", async () => { + test("retains an authorized script location of more than 20,000 characters", async () => { const longUrl = `https://example.test/${"a".repeat(20_000)}`; const fake = await startFakeV8Inspector({ targetUrl: longUrl, @@ -599,7 +599,7 @@ describe("V8 Inspector script retention", () => { } }); - test("returns every authorized script beyond the former collection ceiling", async () => { + test("returns every authorized script of a target with 2,005 scripts", async () => { const fixture = await runtimeFixture(); const scriptUrls = [ pathToFileURL(fixture.entry).href, diff --git a/tests/boundary/mcp/officialTools.test.ts b/tests/boundary/mcp/officialTools.test.ts index 18243212f9..f1c86e38ff 100644 --- a/tests/boundary/mcp/officialTools.test.ts +++ b/tests/boundary/mcp/officialTools.test.ts @@ -75,7 +75,7 @@ it("advertises strict masked-byte arguments and bounded pages", () => { }); describe("read_bytes contract", () => { - it("accepts lengths above the former arbitrary ceiling and rejects zero", () => { + it("accepts any positive read length and rejects zero", () => { const contract = OFFICIAL_TOOL_CONTRACTS.find( ({ name }) => name === "read_bytes", ); diff --git a/tests/boundary/process/managedManifestAdmission.test.ts b/tests/boundary/process/managedManifestAdmission.test.ts index 44e8ee45c8..6a26213b00 100644 --- a/tests/boundary/process/managedManifestAdmission.test.ts +++ b/tests/boundary/process/managedManifestAdmission.test.ts @@ -239,7 +239,7 @@ it("preserves the resolver failure and retries its exact descriptor before verif }); it.each([0x7fff_ffff, 0x8000_0000])( - "preserves the former readFile admission boundary before sparse input reads (%i bytes)", + "reads a snapshot of max_snapshot_bytes and refuses one byte more before reading (%i bytes)", async (size) => { const value = await fixture(); const parsed = await parseBinaryTarget(value.path); diff --git a/tests/boundary/providers/ghidra/ghidraClient.test.ts b/tests/boundary/providers/ghidra/ghidraClient.test.ts index e7e081b4bc..96787613c5 100644 --- a/tests/boundary/providers/ghidra/ghidraClient.test.ts +++ b/tests/boundary/providers/ghidra/ghidraClient.test.ts @@ -1138,7 +1138,7 @@ describe("GhidraClient", () => { }, ); - it("accepts an owned-socket result above the former 64 MiB ceiling", async () => { + it("accepts an owned-socket result above 64 MiB", async () => { const client = clientFor(new FixtureLauncher("oversized_result")); const result = await client.callTool("list_strings", { document: null }); diff --git a/tests/boundary/providers/hopper/hopperClient.protocol.test.ts b/tests/boundary/providers/hopper/hopperClient.protocol.test.ts index b58c724e5b..f6c2f80a03 100644 --- a/tests/boundary/providers/hopper/hopperClient.protocol.test.ts +++ b/tests/boundary/providers/hopper/hopperClient.protocol.test.ts @@ -205,7 +205,7 @@ describe("HopperClient response lifecycle", () => { }); }); - it("accepts an owned-socket response above the former 10 MiB ceiling", async () => { + it("accepts an owned-socket response above 10 MiB", async () => { const client = await startClient(); const label = "x".repeat(10 * 1024 * 1024 + 1); diff --git a/tests/evaluation/moduleBoundaries.test.ts b/tests/evaluation/moduleBoundaries.test.ts index 380dd7be65..565f7d6c95 100644 --- a/tests/evaluation/moduleBoundaries.test.ts +++ b/tests/evaluation/moduleBoundaries.test.ts @@ -55,7 +55,7 @@ describe("binary production construction ownership", () => { ).toEqual([]); }); - it("rejects the former runtime composition exception", () => { + it("rejects an application module that re-exports composition", () => { expect( inspectModuleBoundaries( "src/application/runtime.ts",