fix(gateway): honor minimal discovery mode for wide-area DNS-SD [AI]#80903
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. source-level reproduction is high-confidence: on current main with wide-area discovery enabled and Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Land the focused runtime change after the contributor adds real behavior proof and the remaining discovery docs are made consistent with the new wide-area TXT filtering behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-level reproduction is high-confidence: on current main with wide-area discovery enabled and Is this the best way to solve the issue? Yes, reusing the existing filtered Full review comments:
Overall correctness: patch is correct Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 842cadda260a. Re-review progress:
|
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
Re-review progress:
|
Summary
cliPathvalue already prepared by gateway discovery startup.AI-assisted: Yes
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
src/gateway/server-discovery-runtime.test.ts; execution not performed here.writeWideAreaGatewayZonenow receives the already-filteredcliPathvalue.Root Cause (if applicable)
cliPath, but the wide-area publishing branch bypassed that value and resolved the CLI path again.Regression Test Plan (if applicable)
src/gateway/server-discovery-runtime.test.tsmdnsMode: "minimal", gateway startup writes the wide-area zone without acliPathvalue and does not resolve the CLI path.User-visible / Behavior Changes
In minimal discovery mode, wide-area DNS-SD TXT records no longer include the OpenClaw CLI path. Full discovery mode behavior is unchanged.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
discovery.wideArea.enabled=true,discovery.mdns.mode=minimalSteps
Expected
cliPathwhen minimal discovery metadata is active.Actual
cliPath: undefinedin the minimal-mode regression test setup.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
cliPaththrough the existing filtered variable; minimal mode keeps it undefined.Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
cliPathvariable, which is populated only for full mode and already used for local discovery context.