Repository navigation
feat(setup): mark a shared enable:false registration as a manual conflict in doctor status - #11019
Merged
Merged
Conversation
…lict in doctor status
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. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issue was found in the added status field. SummaryAdds
Reviews (1) · Last reviewed commit: "feat(setup): mark a shared enable:false ..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #10508 (Phase 6.1). When a shared registration row (
~/.agents/mcp.json, also ZCode's fallback) carriesenable: false, setup preserves the flag, so doctor's stale status for that row is a manual conflict, not something setup repairs. Only theremediationsentence said so. The status now carriesmanual_conflict: "shared_disabled_activation", and the FreeBuff and ZCode tests assert it instead of the sentence.Problem and expected behavior
ClientRegistrationStatuscomputed the conflict (activation === "disabled",enable === false,setupPreservesDisabledActivation) inline in the remediation chain and kept only the chosen text. A caller (doctor JSON, setup selection, an agent) could not tell "rerun setup" from "re-enable it in the other product" without parsing prose; tests matched "enable: false" and "will not change".Change and scope
src/application/ClientRegistrationStatus.ts: the conflict is computed once (sharedDisabledConflict), used for the existing remediation choice, and recorded as optionalmanual_conflicton any non-aligned status. Remediation text is unchanged.freebuffClientConfiguration.test.ts: the conflict test assertsmanual_conflictinstead of two remediation fragments.zcodeClientConfiguration.test.ts: the native-row test asserts the field is absent (wasnot.toContain("enable: false")); the fallback-row test asserts it (wasstringContaining("enable: false")). The native test keepsremediation: stringContaining("rea setup"), since that route is what it checks.docs/getting-started/client-configuration.md: documents the field next to the ZCodeenable: falseparagraph.Not included: other stale causes (package drift, ownership, policy) still carry only remediation text; no tests in this slice read them for routing.
Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
ClientRegistrationStatus(registration inspection); consumers: doctor JSON, setup and update maintenance via the status typemanual_conflicton doctor registration statuses; no zod schema covers this recorddocs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): noneExpected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
npm run test:focused, after): 10.7 s wall, 14.0 s user, 3.4 s sys including build; vitest 3.0 s.rea doctor --jsonregistration entries for a shared disabled row gainmanual_conflict.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/boundary/filesystem/freebuffClientConfiguration.test.ts tests/boundary/filesystem/zcodeClientConfiguration.test.ts: 48 passednpm run check:fast: passednpm run docs:check: passedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.