Part of #4092.
Problem
isSelfTuneEnabled (src/review/selftune-wire.ts) is not migrated onto the existing per-repo feature-activation mechanism (src/review/feature-activation.ts — resolveConvergedFeature/convergedFeatureActive, CONVERGED_FEATURE_KEYS, already covers rag/reputation/unifiedComment/safety; NOT a new resolver to build, see #4092's corrected state) — purely GITTENSORY_REVIEW_SELFTUNE + the shared allowlist today.
Fix
- Add
"selftune" to CONVERGED_FEATURE_KEYS + FEATURE_GLOBAL_FLAG (mapping to isSelfTuneEnabled).
- Migrate selftune's real call site(s) to
convergedFeatureActive/resolveConvergedFeature.
- Given selftune auto-applies tuning changes (shadow-soaked per existing tests), double-check whether per-repo activation has any interaction with the shadow-soak/auto-apply-hold mechanism that needs a specific test.
.gittensory.yml.example + config/examples/gittensory.full.yml document the new features.selftune key.
Deliverables
Expected outcome
An operator can turn selftune on/off per-repo purely through config, using the same mechanism as the other converged features.
Effort
S — mechanical migration onto an existing, proven mechanism.
Part of #4092.
Problem
isSelfTuneEnabled(src/review/selftune-wire.ts) is not migrated onto the existing per-repo feature-activation mechanism (src/review/feature-activation.ts—resolveConvergedFeature/convergedFeatureActive,CONVERGED_FEATURE_KEYS, already covers rag/reputation/unifiedComment/safety; NOT a new resolver to build, see #4092's corrected state) — purelyGITTENSORY_REVIEW_SELFTUNE+ the shared allowlist today.Fix
"selftune"toCONVERGED_FEATURE_KEYS+FEATURE_GLOBAL_FLAG(mapping toisSelfTuneEnabled).convergedFeatureActive/resolveConvergedFeature..gittensory.yml.example+config/examples/gittensory.full.ymldocument the newfeatures.selftunekey.Deliverables
selftuneadded toCONVERGED_FEATURE_KEYS+FEATURE_GLOBAL_FLAGExpected outcome
An operator can turn selftune on/off per-repo purely through config, using the same mechanism as the other converged features.
Effort
S — mechanical migration onto an existing, proven mechanism.