mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
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:
@@ -161,15 +161,15 @@ export const applicationFeatureTraceResultSchema = z.strictObject({
|
||||
paths: z.array(tracePathSchema),
|
||||
native_handoffs: z.array(nativeHandoffSchema),
|
||||
summary: z.strictObject({
|
||||
matched_seeds: z.number().int().min(0),
|
||||
traced_nodes: z.number().int().min(0),
|
||||
traced_edges: z.number().int().min(0),
|
||||
terminal_paths: z.number().int().min(0),
|
||||
native_handoffs: z.number().int().min(0),
|
||||
observed_facts: z.number().int().min(0),
|
||||
inferred_facts: z.number().int().min(0),
|
||||
unknown_facts: z.number().int().min(0),
|
||||
unavailable_facts: z.number().int().min(0),
|
||||
matched_seeds: z.int().min(0),
|
||||
traced_nodes: z.int().min(0),
|
||||
traced_edges: z.int().min(0),
|
||||
terminal_paths: z.int().min(0),
|
||||
native_handoffs: z.int().min(0),
|
||||
observed_facts: z.int().min(0),
|
||||
inferred_facts: z.int().min(0),
|
||||
unknown_facts: z.int().min(0),
|
||||
unavailable_facts: z.int().min(0),
|
||||
}),
|
||||
coverage: z.strictObject({
|
||||
status: z.enum(["complete-within-source", "partial", "no-match"]),
|
||||
@@ -179,7 +179,7 @@ export const applicationFeatureTraceResultSchema = z.strictObject({
|
||||
"unknown",
|
||||
"unavailable",
|
||||
]),
|
||||
total_seed_matches: z.number().int().min(0),
|
||||
total_seed_matches: z.int().min(0),
|
||||
}),
|
||||
evidence_links: z.array(evidenceIdSchema).min(1),
|
||||
limitations: z.array(boundedTextSchema),
|
||||
|
||||
Reference in New Issue
Block a user