test(config): lock in review.test_generation manifest plumbing#3848
Conversation
The review.test_generation kill-switch (JSONbored#2189, config slice of the boundary-safe test-generation advisory JSONbored#1972) shipped and is documented in gittensory.full.yml, but the config-templates inventory test — which locks in the plumbing for the sibling review toggles (changed_files_summary, effort_score) — never covered it. Add a focused case asserting review.test_generation is documented in gittensory.full.yml and round-trips through parseFocusManifest + reviewConfigToJson (unset -> null, true/false preserved). test_generation gates the test-generation advisory rather than a review prompt, so it is exercised via the JSON round-trip rather than resolveReviewPromptOverrides, which does not surface it. Closes JSONbored#2189.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3848 +/- ##
=======================================
Coverage 93.47% 93.47%
=======================================
Files 332 332
Lines 33110 33110
Branches 12116 12116
=======================================
Hits 30948 30948
Misses 1530 1530
Partials 632 632 🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-06 16:30:16 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
The
review.test_generationkill-switch (#2189, the config slice of the boundary-safe test-generation advisory #1972) shipped and is documented inconfig/examples/gittensory.full.yml, but the config-templates inventory test — which locks in the plumbing for the sibling review toggles (changed_files_summary,effort_score) — never covered it. A regression that dropped itsgittensory.full.ymldocs entry or broke its manifest parse/round-trip would slip through here.This adds a focused case asserting
review.test_generation:gittensory.full.yml(# test_generation:),parseFocusManifest(unset →null,true/falsepreserved),reviewConfigToJson({ test_generation: true/false }).test_generationgates the test-generation advisory rather than a review prompt, so — unlikeeffort_score— it is exercised via the JSON round-trip rather thanresolveReviewPromptOverrides(which does not surface it). Verified against the shippedfocus-manifest(normalizeOptionalBoolean(r.test_generation, "review.test_generation", …), thetestGenerationfield, and thereviewConfigToJsontest_generationemit).Closes #2189.
Scope
test/unit/config-templates.test.ts), no source change.CONTRIBUTING.md; nosite//CNAME/lovablechanges.Validation
git diff --checknpm run typechecknpx vitest run test/unit/config-templates.test.ts— 10 passed (incl. the newtest_generationcase).src/**lines), socodecov/patchhas no diff to gate.Safety