fix(registration): align dogfood pack lane strategy with config recommendation - #443
Merged
JSONbored merged 2 commits intoJun 7, 2026
Merged
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
JSONbored
approved these changes
Jun 7, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@galuis116 this is good to land.
A few notes:
directPrFirstnow follows the recommendation shown in the same pack instead of mixing in current-lane readiness state.- The tests cover both the excellent split-lane case and the degraded issue-discovery-to-direct-PR case.
- This resolves #442 cleanly.
- No code changes requested.
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
buildSelfDogfoodRegistrationPack(src/services/self-dogfood-registration-pack.ts) deriveddirectPrFirstfrom the registration readiness report's current-lane mode, but the same pack also returns the config recommendation. The two diverge, so the pack'scontributorLaneStrategytext anddirectPrFirstflag could contradict thegittensorConfigRecommendationshown beside them. Closes #442.readiness.recommendedRegistrationModereflects the repo's current lane (laneToMode(lane)), while the recommendation reflects the advised config (participationModeisdirect_prunless intake + config are excellent). So a repo currently registered for issue discovery but with degraded health getsrecommendedRegistrationMode: "issue_discovery"->directPrFirst: false-> "Issue-discovery intake is strong enough to keep a bounded issue-discovery lane", while the same pack recommendsparticipationMode: "direct_pr". The inverse also happens (an excellent direct-PR repo recommendedsplitreporteddirectPrFirst: true).Scope
src/services/self-dogfood-registration-pack.ts-- derivedirectPrFirst = recommendation.recommended.participationMode === "direct_pr"so the lane strategy text and flag always match the recommendation in the same pack (removed the now-unused readiness-based computation).test/unit/self-dogfood-registration-pack.test.ts:split, sodirectPrFirstis nowfalse(matching the recommendation) -- the old assertiontrueencoded the contradiction.direct_prmust reportdirectPrFirst: trueand direct-PR-first text (old code returnedfalse).Validation
npx tsc --noEmit-- clean.npx vitest runfor the dogfood pack + route suites -- 16/16.mcp-clitimeout that passes in isolation).Safety
directPrFirstflag andcontributorLaneStrategytext change, and only when the readiness current-lane mode diverged from the recommendation.