Skip to content

fix(validators): validate fixed schemas without runtime code generation - #182575

Merged
steipete merged 2 commits into
mainfrom
fix/precompiled-fixed-validators
Oct 24, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/precompiled-fixed-validators

Conversation

@steipete

@steipete steipete commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Gateway and other fixed-schema validation currently compile functions at runtime, repeating work known at build time and making validation depend on string code generation.

User Impact

Gateway messages, Codex app-server replies, model registry entries, themes, TypeSafe payloads, computer-use contracts, and participant identities keep their existing validation and diagnostics with checks generated during development/build. No protocol, configuration, or dependency changes are required.

Accepted tradeoffs: retaining the full Gateway validator namespace increases its probe bundle from 1.77 MB to 2.70 MB, while a two-check consumer shrinks from 1.11 MB to 0.81 MB. Measured total CPU through first checks rises 8.1% on Node, 5.1% on Bun, and 6.10 ms (26.1%) on default AOT. Some JIT and cold-start tail metrics also regress. I accept these bounded costs for removing runtime compilation and the measured 6.9–8.1× warmed AOT improvement; this is not a universal startup or JIT speedup claim.

Why This Change Was Made

One shared standalone emitter generates predicates from the canonical schemas. Gateway uses a tree-shakeable predicate pool; every caller of its private runtime compiler moves to generated guards and that compiler is removed. The existing owners retain prechecks, cold diagnostics, schema identity, and mutable last-error behavior. Codex also generates normalized diagnostic schema data instead of normalizing it on first use. CI checks generated freshness, and native protocol input tracking includes the generated JavaScript.

This follows the shared-emitter repair in #182373. Fixed schemas are the complete stage here; arbitrary fetched/plugin/MCP schemas remain outside this change. Zod's standalone bootstrap already configures jitless before creating schemas, so no global Node/Bun setting changes.

Evidence

  • Generator and Gateway boundary suites: 63 tests, 18.62 s; generated Control UI parity: 25 tests, 12.97 s.
  • Fixed owners (Codex, TypeSafe, model registry, theme, participant identity, computer use): 95 tests, 142.83 s.
  • Gateway and worker callers (including exec approval, presence, node contracts, web-search status): 180 tests, 174.86 s. All owning test commands use pnpm test <files> --maxWorkers=1.
  • Core types 47.38 s, scripts types 65.53 s, tooling test types 13.68 s, focused Codex/TypeSafe types 166.90 s, targeted lint/format, generated freshness, and repository ratchets pass. The interleaved generator determinism regression fails on the base and passes after resetting emitter uniqueness state.
  • Full pnpm build passes in 370.30 s, including 100 plugins and the production UI build. UI startup/chat size warnings reproduce on the exact base: gzip bytes 282,279→282,269 and 1,277,371→1,276,569. New-page gzip changes 767,138→767,249 with identical raw size, within its 797,395-byte budget. No budget was raised.
  • CI found and the repair removes an exported schema-name collision, two test-only callers of the retired compiler, and missing wrapper source-inventory entries for the new generated imports. The browser suite passes 53 tests, 10.46 s; model registry suites pass 16 tests, 156.11 s; the audit fixture accepts valid input and rejects invalid/malformed input. Both affected test-type groups, targeted lint/format, and the collision guard pass. All 12 static generated outputs remain byte-identical.
  • Wrapper import closure: 19 tests pass. Native provisioning: 14 pass, one platform skip, with the newly found fsmonitor fixture quoting failure fixed and its focused case passing (122.62 s, including worker preparation). Two unchanged multi-provisioning cases exceeded their 120-second local test limits while their synchronous subprocesses took 190/447 seconds; those failures are retained, not counted as passes. The complete two-file run took 1757.37 s. No timeouts were raised.
  • The first CI run also exposed unrelated failures. Main CI reproduces catalog loading, Goal retry, live-model utility lookup, directive replay timeout, workflow count, and Docker tar-link failures. The cron E2E reproduces on a clean main checkout at 712f7d2bfd73354de2d3cc681e7a3034a46e5689 (same timeout and cleanup error). Codex feature-flag and hook-newline mismatches have unchanged test/owner source on main. These are tracked separately from the repaired compiler, naming, and extraction failures.
  • Independent Codex review completed all five passes with no actionable findings. Author simplification preserves the complete fixed-owner cutover; the generated output accounts for +40,561/−38 lines. Excluding generated code, schema moves, and the registry split, the conservative implementation delta is +1,023/−1,279 lines; it includes mechanical caller substitutions. The private compiler and runtime normalization paths are removed.
  • 541 public Gateway guards execute under Node's string-code-generation ban. Positive/negative request, host-stats, and registered Board content/put controls pass. All before/after AOT checksums match.
  • Small emitted-JavaScript probes only, compiled with the experimental Bun AOT toolchain. Gateway compile times: before namespace 1.96 s, two-check 3.62 s; after namespace 2.70 s, two-check 1.63 s. No whole-app AOT build or interpreter tripwire was used.
  • Codex actual-owner AOT checks improve 68–869× versus the existing acceleration-off path; model/TypeSafe generated checks improve 5.3–9.6× versus runtime-generated default AOT. Plain-Bun owner medians: Codex turn +2.4%, TypeSafe result parsing +1.8%. The isolated TypeSafe result predicate costs about 21 ns more in JIT; the actual parsing owner remains near parity.

Exact-Head CI Disposition

The repaired head cd978b01cd9cad28362b47d492ae1668a7b83f61 completed CI run 40097026999: 154 jobs pass, 17 skip, eight test jobs fail, followed by the failed aggregate gate. Security and PostgreSQL conformance pass. No CI rerun was requested.

All eight failures are inherited: workflow CHECK-count expectations; Codex reasoning feature-flag expectation; directive replay timeout and catalog-loading expectation; live-only model lookup; hook newline expectation; cron timeout/cleanup; Goal retry conflicts; and the skill-worker fixture's immediate-completion assumption. Native inherited-failure admission retains each failed job, exact tested merge/base/head, unchanged causal inputs, and baseline logs or source-contract evidence. The workflow/test files have unrelated changed hunks; the two executed workflow steps and the complete failing assertion block are byte-identical, with those whole-file edits explicitly disclosed.

A clean main checkout at 8cab2fd3dfbbbcbd9a3a16239996f985fb7fca7b reproduces the concurrent Goal retry failure (38 pass / four fail, 176.33 s). The skill-worker full-flow baseline instead fails earlier waiting for test-node inventory (502.84 s, including its required normal runtime build); this is not a matching full-flow reproduction. Its unchanged authoring fixture expects ok after one wait, although the production agent.wait contract returns an immediate pending/queue result. The existing handler contract tests pass on that clean main (two pass, 70.21 s) and assert the exact response observed in CI. Neighboring fixture paths already poll that valid pending state. The retained baseline setup/cleanup failure is not counted as passing proof.

The final seven-file integration repair also completed independent Codex review without actionable findings. Local provisioning timeouts and inherited CI reds remain reported as failures; this PR requires the native inherited-failure landing exception.

Gateway workload, distributions, and accepted regressions

Exact baseline: 2a9740a251b464585d2519288143d7ba95d8f3ac. The committed scripts/bench-gateway-validators.mts workload checks positive/negative controls before timing. Five interleaved fresh-process pairs reverse order between pairs; warm checks use 20,000 warmup calls and five 100,000-call batches. Cold namespace and warm two-check consumers are separate. Acceptance requires identical validation behavior, removal of fixed runtime compilation, faster AOT checks, and investigation/disclosure of any regression above 20%.

Cold namespace measurements

Milliseconds: median / p95 [min, max]. With five processes, p95 is the maximum. Whole-process values include runtime startup before the timed owner import.

Runtime Variant Import CPU Total CPU through first checks Total wall through first checks Process launch wall
node base 75.08 / 77.32 [71.63, 77.32] 221.37 / 228.15 [213.77, 228.15] 104.95 / 107.74 [101.71, 107.74] 228.73 / 238.59 [216.87, 238.59]
node candidate 89.65 / 104.69 [83.85, 104.69] 239.21 / 262.83 [237.38, 262.83] 120.09 / 130.84 [116.67, 130.84] 242.65 / 256.83 [241.79, 256.83]
bun-jit base 64.33 / 82.66 [59.95, 82.66] 99.21 / 171.33 [90.88, 171.33] 60.55 / 202.87 [56.37, 202.87] 73.81 / 242.67 [67.65, 242.67]
bun-jit candidate 67.90 / 74.12 [64.63, 74.12] 104.23 / 148.73 [102.37, 148.73] 70.67 / 139.60 [67.35, 139.60] 80.98 / 150.02 [78.36, 150.02]
aot base 9.70 / 13.58 [8.38, 13.58] 23.41 / 39.09 [20.67, 39.09] 23.27 / 26.96 [18.01, 26.96] 36.00 / 770.63 [26.85, 770.63]
aot candidate 10.15 / 13.83 [9.00, 13.83] 29.51 / 36.61 [20.99, 36.61] 19.97 / 36.02 [15.26, 36.02] 40.44 / 843.30 [25.71, 843.30]
aot-walker base 8.88 / 10.74 [8.39, 10.74] 20.06 / 20.15 [17.57, 20.15] 15.10 / 22.80 [13.88, 22.80] 24.36 / 30.64 [22.44, 30.64]
aot-walker candidate 9.80 / 11.25 [9.08, 11.25] 19.87 / 22.04 [18.21, 22.04] 14.93 / 21.74 [13.94, 21.74] 23.82 / 30.47 [23.23, 30.47]

Warm check CPU

Nanoseconds per check: median / p95 [min, max] across 25 batches.

Runtime Check Base Candidate
node request-frame 68.49 / 126.75 [63.53, 128.39] 69.69 / 164.31 [65.76, 169.17]
node node-host-stats 101.02 / 170.94 [91.35, 171.05] 103.03 / 187.98 [94.70, 196.52]
bun-jit request-frame 73.63 / 140.93 [52.55, 150.95] 78.01 / 190.39 [62.52, 197.48]
bun-jit node-host-stats 92.90 / 174.13 [73.19, 182.63] 95.50 / 184.95 [80.50, 185.37]
aot request-frame 405.92 / 435.42 [386.55, 456.11] 58.71 / 71.41 [54.99, 81.73]
aot node-host-stats 666.72 / 695.76 [641.92, 710.20] 81.95 / 88.26 [75.55, 88.81]
aot-walker request-frame 3187.20 / 3342.98 [2969.05, 3347.67] 62.17 / 96.30 [54.07, 117.06]
aot-walker node-host-stats 3784.91 / 3972.22 [3558.33, 4466.80] 80.03 / 104.84 [74.97, 109.92]

Every median/p95 regression above 20%

The rows below retain every such cell in cold, first-check, and warm summaries. Full min/max ranges remain in the JSON summaries and tables above.

Workload Runtime Check/metric Statistic Base Candidate Change
cold node importWallMs median 64.797 78.522 +21.2%
cold node importWallMs p95 67.745 84.830 +25.2%
cold node importCpuMs p95 77.319 104.694 +35.4%
cold node readyWallMs p95 105.426 130.523 +23.8%
cold node totalWallMs p95 107.740 130.836 +21.4%
warm node request-frame cpuNs p95 126.750 164.310 +29.6%
cold bun-jit readyWallMs median 57.292 70.123 +22.4%
warm bun-jit request-frame cpuNs p95 140.930 190.390 +35.1%
cold aot readyWallMs p95 25.347 35.634 +40.6%
cold aot readyCpuMs median 22.540 29.316 +30.1%
cold aot totalWallMs p95 26.957 36.021 +33.6%
cold aot totalCpuMs median 23.410 29.509 +26.1%
cold aot-walker importWallMs p95 11.241 15.032 +33.7%
warm aot-walker request-frame firstCheckMs p95 0.821 1.085 +32.1%
warm aot-walker node-host-stats firstCheckMs p95 0.333 0.404 +21.0%

Warm default AOT CPU improves 6.91× for requests and 8.14× for host stats; acceleration-off improves 51.27× and 47.29×. Default AOT cold CPU increases 23.410→29.509 ms. Most of that shift is before owner import (11.283→15.487 ms); import CPU rises 9.698→10.153 ms while first-check medians improve. This identifies the component but does not establish noise or attribute it solely to checks. Initial AOT process launches take 770.6/843.3 ms, subsequent launches 25.7–55.7 ms; no sample was discarded. Shared-host load averaged 32–35 on 32 CPUs. The bounded cold and tail regressions above are explicitly accepted; no application startup improvement is claimed. Dynamic-RegExp warnings remain in schema/diagnostic helpers, so this does not claim entirely interpreter-free execution.

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 24, 2026 12:20
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts agents Agent runtime and tooling extensions: codex plugin: typesafe labels Oct 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T13:16:30.125146Z cd978b0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: cd978b01cd9cad28362b47d492ae1668a7b83f61
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • packages/gateway-protocol/src/compiled/protocol.generated/schema-plugin-credentials.d.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • packages/gateway-protocol/src/compiled/protocol.generated/schema-worker-exec-approval.d.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • packages/gateway-protocol/src/schema/plugin-credentials.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • packages/gateway-protocol/src/schema/worker-exec-approval-schemas.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • packages/gateway-protocol/src/schema/worker-exec-approval.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces runtime compilation of fixed schemas with generated JavaScript predicates while retaining canonical schemas and validation diagnostics.

Example: Validate {"type":"req","id":"request-1","method":"health"}.

  • Before: The first validation lazily compiles the request schema at runtime.
  • After: A generated predicate validates the request without compiling source at runtime.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The accepted design and owner-level measurements are useful, but confirmed consumer, extraction, and source-contract failures require repair.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body supplies interleaved validator-owner measurements and emitted-JavaScript AOT probe results, without a shipped Gateway or Codex session trace.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Fixed validation repeats compilation work at runtime and performs substantially worse in the measured AOT workloads.
Reason: The maintainer-authored direction removes runtime compilation across a coherent fixed-schema stage, preserves existing contracts, and explicitly accepts the measured regressions.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: the maintainer-approved precompilation change is useful, but incomplete caller and extraction cutovers break tests and maintainer tooling, and a new schema export breaks the source-contract check.

Priority: P2
Reviewed head: 520315685e255d0c4c18c97623d6003da57b76fa

Before merge

  • Migrate the remaining consumers before removing lazyCompile (P2) - Removing this export leaves ui/src/api/gateway.node.test.ts:10,40 and test/e2e/qa-lab/runtime/autonomous-task-lifecycle-receipts.fixtures.ts:10,59 importing and calling it. The UI CI job already fails with 'lazyCompile is not a function', and the QA fixture likewise cannot load through a valid ESM import. Migrate both to existing generated guards or the canonical schema Check path rather than restoring the runtime compiler.
  • Include the new runtime imports in the PR wrapper inventory (P2) - This import adds generated validators to a module already extracted by scripts/pr, but scripts/pr-lib/wrapper-components.txt remains unchanged. The extracted wrapper consequently lacks predicates.js, schema-presence.js, schema-worker-exec-approval.js, schema-worker-gateway-tool.js, presence-activity.ts, validation-invariants.ts, and worker-exec-approval-schemas.ts. Exact-head closure and provisioning tests report missing modules, so maintainer operations using a materialized wrapper fail before proceeding. Update the existing inventory with the complete transitive closure.
  • Give the registry schema a distinct exported binding (P2) - The formerly private ModelsConfigSchema becomes a second exported value with the same name as src/config/zod-schema.core.ts:411. scripts/check-export-name-collisions.mts scans both src definitions and rejects this pair; exact-head check-source-contracts reports that guard failing. Use a registry-specific exported name and update its generator and validation imports without changing either schema’s accepted values.

Findings

  • [P2] Migrate the remaining consumers before removing lazyCompile — packages/gateway-protocol/src/protocol-validator.ts:15-19
  • [P2] Include the new runtime imports in the PR wrapper inventory — packages/gateway-protocol/src/schema/presence.ts:2-5
  • [P2] Give the registry schema a distinct exported binding — src/agents/sessions/model-registry-schema-definition.ts:165-168

Tests

  • Missing end-to-end proof: The supplied measurements exercise validator owners and emitted probes rather than a shipped Gateway or Codex session; reported red-on-base proof specifically covers emitter determinism.
Agent review details

How this fits together

Gateway, worker, Codex, and other fixed-schema owners receive untrusted values and return typed values or diagnostics; build-time generators now supply their predicates.

flowchart LR
A[Canonical schemas] --> B[Build-time generators]
B --> C[Shared standalone emitter]
C --> D[Generated predicates]
D --> E[Existing validation owners]
A --> E
E --> F[Typed values or diagnostics]
Loading

Technical review

Best possible solution:

Keep the shared emitter and existing validation owners, complete both remaining compiler-consumer migrations, ship the wrapper’s full import closure, and distinguish the registry schema export.

Do we have a high-confidence way to reproduce the issue?

Current main visibly compiles fixed schemas at first use; exact-head CI independently reproduces the introduced missing-helper and extracted-wrapper failures, while this review ran no target code.

Is this the best way to solve the issue?

Generating predicates through the existing shared emitter is a coherent complete stage, and the owner accepted its measured performance costs; the remaining defects are missed consumers and packaging dependencies rather than a reason to redesign it.

Full review comments:

  • [P2] Migrate the remaining consumers before removing lazyCompile — packages/gateway-protocol/src/protocol-validator.ts:15-19
    Removing this export leaves ui/src/api/gateway.node.test.ts:10,40 and test/e2e/qa-lab/runtime/autonomous-task-lifecycle-receipts.fixtures.ts:10,59 importing and calling it. The UI CI job already fails with 'lazyCompile is not a function', and the QA fixture likewise cannot load through a valid ESM import. Migrate both to existing generated guards or the canonical schema Check path rather than restoring the runtime compiler.
    Confidence: 1
  • [P2] Include the new runtime imports in the PR wrapper inventory — packages/gateway-protocol/src/schema/presence.ts:2-5
    This import adds generated validators to a module already extracted by scripts/pr, but scripts/pr-lib/wrapper-components.txt remains unchanged. The extracted wrapper consequently lacks predicates.js, schema-presence.js, schema-worker-exec-approval.js, schema-worker-gateway-tool.js, presence-activity.ts, validation-invariants.ts, and worker-exec-approval-schemas.ts. Exact-head closure and provisioning tests report missing modules, so maintainer operations using a materialized wrapper fail before proceeding. Update the existing inventory with the complete transitive closure.
    Confidence: 1
  • [P2] Give the registry schema a distinct exported binding — src/agents/sessions/model-registry-schema-definition.ts:165-168
    The formerly private ModelsConfigSchema becomes a second exported value with the same name as src/config/zod-schema.core.ts:411. scripts/check-export-name-collisions.mts scans both src definitions and rejects this pair; exact-head check-source-contracts reports that guard failing. Use a registry-specific exported name and update its generator and validation imports without changing either schema’s accepted values.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1f67a66bbead.

Provenance checked

  • Gateway lazy validation and startup cost changes intended behavior with a stated reason ([Fix] Lazy compile protocol validators #82064: Avoid eager compilation of unused protocol validators while preserving errors; the later compiler-import narrowing in perf(cli): speed up gateway call cold starts #166722 further reduced CLI startup work.)
  • Gateway registry inventory and exports keeps the original intent (88e5880: Use canonical schema namespace bindings without duplicating inventories while preserving named exports, schemas, prechecks, and authored types.)
  • Standalone capture emission keeps the original intent (ae88121: Preserve canonical literals and static captures through one syntax-aware emitter; resetting uniqueness state extends that deterministic generation contract.)
  • Codex validation resources changes intended behavior with a stated reason (cc83172: Consolidate response validation around normalized generated protocol resources; this PR retains those resources and moves normalization and compilation to generation.)
  • Model registry and TypeSafe validation keeps the original intent (0a7f649: Keep registry validation separate from persisted catalog migration; the TypeSafe schemas introduced in fbb6624 retain their bounds and additive response metadata.)
  • Computer-use contracts keeps the original intent (d19c755: Keep the canonical capability-filtered wire contract and bounded result envelopes in their existing owner; schema extraction retains those contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/api/gateway.node.test.ts --maxWorkers=1
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.e2e.json --incremental
  • pnpm test test/scripts/eager-import-closure.test.ts test/scripts/pr-worktree-provision.test.ts --maxWorkers=1
  • pnpm lint:tmp:export-name-collisions
  • pnpm test packages/gateway-protocol/src/index.test.ts test/scripts-typebox-standalone.test.ts --maxWorkers=1

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2626e97 adds packages/gateway-protocol/src/protocol-validator.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2626e97b4c7b; files: packages/gateway-protocol/src/protocol-validator.ts)
  • Josh Avant: Raw commit 8e4c7a0 adds packages/gateway-protocol/src/protocol-validator.ts:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8e4c7a0f23d0; files: packages/gateway-protocol/src/protocol-validator.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

  • add P2: This is a bounded validation implementation improvement with concrete, focused integration repairs; no deployed user outage is established.
  • add merge-risk: 🚨 automation: Missing transitive files break extracted PR tooling, and remaining imports of the removed helper break validation suites.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a bounded validation implementation improvement with concrete, focused integration repairs; no deployed user outage is established.
  • merge-risk: 🚨 automation: Missing transitive files break extracted PR tooling, and remaining imports of the removed helper break validation suites.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 24, 2026, 8:39 AM ET / 12:39 UTC.

@steipete
steipete merged commit f52fb07 into main Oct 24, 2026
248 of 260 checks passed
@steipete
steipete deleted the fix/precompiled-fixed-validators branch October 24, 2026 13:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation extensions: codex gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. plugin: typesafe rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant