Repository navigation
fix(protocol): accept inherited config hint metadata - #197680
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 Summary: ✅ CompletedThis 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 changesRegenerates the compiled config lookup validator to accept existing inherited-default metadata and strengthens its regression test. Example: Validate a config lookup response with path "gateway", schema {}, hint {"inheritedDefault":true}, and children [].
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this PR provides a focused repair for a validator mismatch still present on main, with no actionable correctness or security findings and a passing exact-head CI gate. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway protocol package turns canonical TypeBox schemas into shipped predicates; config lookup responses enter its exported validator and produce a validation result and diagnostics. flowchart LR
A[Config hint producer] --> B[Config lookup response]
B --> C[Exported protocol validator]
D[Canonical schema] --> E[Validator generator]
E --> F[Compiled predicate]
F --> C
C --> G[Validation result]
Technical reviewBest possible solution: Keep the canonical schema authoritative and land this generated-predicate repair with the existing compiled-validator regression. Do we have a high-confidence way to reproduce the issue? Source inspection establishes that main rejects inheritedDefault in compiled lookup hints while the canonical schema accepts it; the PR reports an exact-base failing regression, but this review ran no target code. Is this the best way to solve the issue? This is the smallest complete repair: regenerate the existing predicate and exercise it through the existing exported validator without changing schemas, defaults, or ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ce76ed2fe039. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests 0. Total +3 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 12, 2026, 5:15 AM ET / 10:15 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes full CI failing its generated-validator gate after #167743 added inherited-default config hints without regenerating the compiled protocol validator.
User Impact
Protocol clients can validate config lookup hints carrying the existing
inheritedDefaultfield. No configuration, wire-version, or database migration is required. The Gateway's direct lookup response path was not observed to fail.Why This Change Was Made
Regenerate the predicate from the canonical schema using
pnpm gateway:validators:gen, and strengthen the existing lookup test to exercise the exported compiled validator. The generated output gains three lines for the already-declared optional boolean; authored production and test line counts are unchanged.Related: #167743. The original failure also blocks native app tests in full CI.
Evidence
The strengthened test fails on exact base
4eb318d5eea7d5014772c41a0e480f8ab2b84dd5because a valid inherited-default hint is rejected, and all 11 owner tests pass after regeneration. Generated-validator parity passes. The affected inherited-default browser tests pass (2), and bundled config enum E2E passes (1).A synthetic 2,000-child config response with 500 validation calls per sample has base A/A wall times of 122.54/122.56 ms and fixed A/A times of 120.02/120.58 ms; CPU remains about 125–128 ms and observed heap growth is comparable. This is correctness evidence, not a performance claim. The predicate performs no database or workspace I/O.
Independent Codex autoreview of the complete local change against the pinned base, through P2, is scoped-clean with no actionable findings. The changed-file check reports only seven unrelated unused exports introduced by #197615; those same findings reproduce on exact parent
4eb318d5eea7d5014772c41a0e480f8ab2b84dd5and are repaired separately in #197679. This PR does not suppress them. All other changed-file checks passed.