Repository navigation
Xray Core DevKit: Codex skills for developing and reviewing Xray-core #7515
Replies: 4 comments 1 reply
|
@RPRX, when you have a moment, could you look at the overall design guidance and the review skill based on your work? Reading your architecture comment alongside the Finalmask discussion, I took the lesson to be: before removing a layer, identify the work it still does for a real caller and what keeping it blocks. Have I turned any case-specific advice into too broad a rule? The authoring and PR review guides use that distinction too. I also used 4RH1T3CT0R7’s TUN and geodata work in the performance notes. Your recommendation in the XDRIVE discussion is what led me to those examples. Does the way I’ve used them make sense to you? Even one sentence you’d change would help. |
|
@Fangliding, could you take a look at the review skill based on your work and the code examples behind it? I used your UDP cleanup fix to explain why a test with a single connection misses a bug: a late cleanup can remove the replacement entry for the same key. Is that a fair reading? I’d also be interested if there’s something the guide misses about how you review changes outside networking, or a conclusion you’d limit to its original PR. |
|
@patterniha, I used two of your changes in the section on buffer and outbound ownership. From the Trojan and DNS buffer fix, I took the point that a reviewer should follow an allocation to the code responsible for releasing it. From the dialerProxy change, I took the point that the intermediate outbound and the final outbound have different responsibilities for resolution and policy. Did I capture those reasons accurately? I’d appreciate a correction if either summary misses the important part of your fix. |
|
@Meo597, I added a DevKit skill for designing and reviewing changes across DNS, routing, and Lua. If you have a moment, could you check whether I understood the reasoning behind your changes? The main example comes from your explanation of parallel DNS queries. Queries can start together, but a fast answer from a fallback group should wait while the preferred group can still produce a suitable answer. Within the same group, an eligible answer can be used as soon as it arrives. That distinction is what the reviewer now checks. I also drew on your explanation of why Lua connects DNS and routing decisions and your change to prevent outbounds from re-entering an unfinished DNS lookup. Is there anything in the guide that I’ve generalized too far, or a condition that matters in a real configuration that I missed? Even one correction would help. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I’ve updated Xray Core DevKit, the Codex setup I use for development and review across Xray-core. You install it once and point it at the upstream checkout, PR or fork you’re working on.
The DevKit now includes 24 skills and 21 agent roles. The six new skills cover Core design direction, writing a change, working on an upstream PR, and three review perspectives based on the public work of RPRX, Fangliding, and Meow (Meo597). The guides link specific decisions to code and tests. The wording is my interpretation.
Setup and examples are available in English, Русский and 简体中文.
All reactions