Skip to content

Investigate + close the config-as-code gap for reviewMemory #4101

Description

@JSONbored

Part of #4092.

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

review-memory-wire.ts:27: return isReviewMemoryEnabled(env) && manifestReviewMemoryEnabled;review.reviewMemory IS already consulted for the real on/off decision, but only as a REQUIRED additional AND-gate alongside GITTENSORY_REVIEW_MEMORY, same pattern as inlineComments/fixHandoff (#4099) — 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: apply src/review/feature-activation.ts's existing precedence (env kill-switch → per-repo override → allowlist default) so review.reviewMemory: true can turn the feature on for a repo even without the env var/allowlist, and false forces it off. Resolve the same namespace question #4099 raises (migrate into features: vs. keep the existing top-level field name with upgraded resolution logic) — for consistency, whatever #4099 decides for inlineComments/fixHandoff should apply here too.

Deliverables

  • isReviewMemoryEnabled's real gate migrated to the resolver's full precedence
  • Regression test: unset config preserves EXACT current behavine for every existing repo
  • Tests mirroring the feature-activation pattern

Expected outcome

review.reviewMemory fully controls the feature per-repo, consistent with the namespace decision made in #4099.

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