Repository navigation
fix(plugins): isolate config format validation - #182807
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces temporary global TypeBox format overrides with schema-local format checks shared by validation and conditional defaults. Example: A plugin property getter checks whether another validator accepts "not an email".
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a source-verifiable isolation bug still present on main; no definite introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin manifest schemas and configuration values enter the shared validation owner, which prepares cached validators, applies source-selected defaults, and returns validated values or structured diagnostics. flowchart LR
A[Manifest schema] --> B[Schema admission and cache]
B --> C[Local format refinements]
C --> D[TypeBox validator]
C --> E[Conditional defaults]
F[Configuration value] --> E
E --> D
D --> G[Value or diagnostics]
Technical reviewBest possible solution: Keep format policy on the prepared schema within the existing validation owner, preserving defaults, diagnostics, and the fresh evaluation-context fallback. Do we have a high-confidence way to reproduce the issue? The main-source registry override and synchronous value access establish the reentrant path; the PR reports a red-on-base regression in both acceleration modes, but this review executed no target code. Is this the best way to solve the issue? Schema-local refinements address the leaking owner directly, reuse the shared schema traversal, and remove the superseded global override rather than adding a competing validation path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d1c0b1c15c65. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +51, Tests +69, Docs +1. Total +121 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 24, 2026, 3:33 PM ET / 19:33 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(plugins): isolate config format validation * chore: shrink schema assertion debt baseline
What Problem This Solves
Fixes plugin config validation temporarily changing the TypeBox format rules observed by other validators during a reentrant call.
User Impact
Plugin config checks, error reporting, and conditional defaults use the same format rules without changing validation in other tools. URI validation, standard annotation formats, and already-registered custom formats are preserved.
Why This Change Was Made
The plugin validator previously installed and restored process-wide format callbacks around schema creation and every check. It now prepares schema-local refinements once, then shares that schema across validation and defaults. The compiled path and the existing fresh-state fallback remain in place.
This is a standalone correctness subset of the validator work. Profile-selected dynamic validation follows separately.
Evidence
pnpm test <files> --maxWorkers=1).No whole-app AOT build is involved. This fixes an ordinary Node/Bun ownership bug; AOT engine selection is a separate change.
Current-head CI (
976ee61e51cb, run40125921871, attempt 1) completed with 114 successful jobs and three failing tests in two jobs, plus their aggregate gate. Each failing assertion reproduces on clean main with unchanged test/owner inputs: Telegram control updates missing status/stop (137.24s total), restored requester wake limit 2 versus 3 (483.80s including the ordinary prerequisite build), and widget revision remaining 1 after a second restart (75.92s). CI remains failed; this PR uses the native pre-existing-failure route. No test, timeout, or check was weakened. Security checks passed.A bounded trace found no concrete connection between those failures and the validator change. Gateway logs held only in fixture memory were not printed at the failing assertions, so the evidence does not claim to exclude every hidden tool-side error. The original assertion-ratchet CI failure was caused by this PR and is fixed by the current one-line baseline regeneration.