Repository navigation
feat(gateway): ComponentDescriptor v1 β C1 keystone adapter (zod, tolerant-reader, PHI-safe) - #55
Conversation
β¦+ pact-lite contract test (C1 keystone, B0) β tolerant-reader schema (looseObject), gateway-stamped pending_id/expires_at pair, vendored shared fixtures 10/10; canonical schema at monorepo contracts/component-descriptor/v1.schema.json Generated-With: Claude Code Co-Authored-By: openclaw <[email protected]> Co-Authored-By: Claude <[email protected]>
β¦v1 β SEC-1 prototype-pollution guard (stripUnsafeKeys preprocess; red-first regression x3), TEST-1..7 coverage locks (props boundary, expires_at negatives, one-directional dependency, pattern/enum tables), CODE-1 fixtures re-vendored byte-identical + oxfmt ignore, TEST-8 fixture manifest backstop, DESIGN-1 ChannelPayloadDescriptor alias, SEC-2 pending_id provenance JSDoc; 27/27 green QGR-Finding: SEC-1 Generated-With: Claude Code Co-Authored-By: openclaw <[email protected]> Co-Authored-By: Claude <[email protected]>
β¦scriptor v1 adapter Generated-With: Claude Code Co-Authored-By: openclaw <[email protected]> Co-Authored-By: Claude <[email protected]>
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: π Files selected for processing (15)
π WalkthroughWalkthroughAdds a Zod-based ComponentDescriptor schema module with prototype-pollution sanitization, pending_id/expires_at validation, and a parse helper. Includes vendored pact-lite fixture JSON files (valid/invalid) with a README, a comprehensive schema test suite, an oxfmt ignore update, and a QGR receipt document. ChangesComponent Descriptor Schema
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Test
participant parseComponentDescriptor
participant stripUnsafeKeys
participant ComponentDescriptorSchema
participant Fixture
Test->>Fixture: load JSON fixture
Test->>parseComponentDescriptor: parse(fixtureData)
parseComponentDescriptor->>ComponentDescriptorSchema: safeParse(value)
ComponentDescriptorSchema->>stripUnsafeKeys: preprocess(value)
stripUnsafeKeys-->>ComponentDescriptorSchema: sanitized value
ComponentDescriptorSchema-->>parseComponentDescriptor: success/failure
parseComponentDescriptor-->>Test: descriptor or null
Poem
π₯ Pre-merge checks | β 3 | β 2β Failed checks (2 warnings)
β Passed checks (3 passed)
β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The formal models extracted constants ( This check is informational (not blocking merges yet). If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there. |
C1 keystone (B0 scaffold, A&D openclaw-syntropy-agentic-chat). Additive-only, INERT until B3 wires emission β safe to land anytime.
QG: 4 reviewers + scorer, 15 findings / 11β₯80 all fixed. SEC-1 HIGH (verified PoC prototype-pollution via proto surviving looseObject) fixed red-first + 3 regressions. tsgo 0 Β· vitest 27/27 Β· sealed 60/60. Receipt 75a5510 verified.
π€ Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes