perf(schema): reduce retained integer validator allocations (#4360)

Construct integer formats directly while preserving bounds, refinements, metadata and current shared schema owners. Keep Incur-dependent CLI numeric coercion declarations unchanged.

Verify canonical advertisements, 126 numeric boundary cases, 974 actual CLI parser cases, broad source tests and real public-artifact SDK workflows. Record 72 normal tasks and 12 separate owned-inspector heap diagnostics with whole-family resource bounds; distinguish SDK spans and asymmetric audit overhead. Generate numerical report sections from receipts and reject stale tables through documentation conformance checks.

Closes #6236. Current-head CI and Greptile pass; actionable review findings are addressed. Codex review was unavailable due repository usage limits.
This commit is contained in:
郭立 Guo Li authored and GitHub committed 2026-10-22 05:11:08 +00:00
1 parent bd5d189a8f
commit 7590b50801
182 files changed
+9562 -1329

No files matched your search

@@ -22,8 +22,8 @@ export const javascriptModuleReferencesRequestSchema = z.strictObject({
kind: moduleKindSchema.optional(),
})
.default({}),
offset: z.number().int().nonnegative().default(0),
limit: z.number().int().positive().default(64),
offset: z.int().nonnegative().default(0),
limit: z.int().positive().default(64),
});
/** Unique support states, without promoting mixed observations to one fact. */
@@ -39,7 +39,7 @@ export const javascriptModuleReferenceSchema = z.strictObject({
kind: moduleKindSchema,
path: z.string().nullable(),
identity: applicationNodeIdentitySchema,
retained_source_range_count: z.number().int().nonnegative(),
retained_source_range_count: z.int().nonnegative(),
basis: z.array(basisSchema).min(1),
});