Skip to content

Investigate + close the config-as-code gap for impactMap #4102

Description

@JSONbored

Part of #4092.

Confirmed finding (was originally filed as an open investigation — now resolved by direct code-check)

impact-map-wire.ts:30: return isImpactMapEnabled(env) && manifestImpactMapEnabled;review.impactMap IS already consulted for the real on/off decision, but only as a REQUIRED additional AND-gate alongside GITTENSORY_REVIEW_IMPACT_MAP, same pattern as inlineComments/fixHandoff (#4099) and reviewMemory (#4101) — not the fully-dead features.* pattern this epic also found elsewhere. A repo can restrict via config but can't fully replace the env var.

Fix

Same shape as #4099/#4101: apply src/review/feature-activation.ts's existing precedence so review.impactMap: true can turn the feature on for a repo even without the env var/allowlist, and false forces it off. Follow whatever namespace decision #4099 makes for consistency.

Deliverables

  • isImpactMapEnabled's real gate migrated to the resolver's full precedence
  • Regression test: unset config preserves exact current behavior
  • Tests mirroring the feature-activation pattern

Expected outcome

review.impactMap fully controls the feature per-repo, consistent with #4099/#4101.

Effort

S — confirmed, well-defined fix; no further investigation needed.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions