From db9b5bbba04b6d7f4cdba636b294680de1d1931a Mon Sep 17 00:00:00 2001 From: "flamingo[bot]" <277372822+flamingo[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 05:08:30 +0000 Subject: [PATCH 1/3] fix(CODEWIKI-007): 3 review findings across 3 files --- test_clustering_debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_clustering_debug.py b/test_clustering_debug.py index 4b635cf6..63ee67f6 100644 --- a/test_clustering_debug.py +++ b/test_clustering_debug.py @@ -83,7 +83,7 @@ def print_summary(self): ) # Create config via factory (not direct construction) to satisfy validation/env-resolution -config = Config( +config = Config.from_args( repo_path=test_repo, output_dir="/tmp/codewiki_test", dependency_graph_dir="/tmp/codewiki_test/deps", From 9e6758189ec49671dde09753639e2c1b61117379 Mon Sep 17 00:00:00 2001 From: "flamingo[bot]" <277372822+flamingo[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 05:08:31 +0000 Subject: [PATCH 2/3] fix(CODEWIKI-007): 3 review findings across 3 files --- test_clustering_local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_clustering_local.py b/test_clustering_local.py index c59e8e31..4e4dfadf 100644 --- a/test_clustering_local.py +++ b/test_clustering_local.py @@ -59,7 +59,7 @@ def test_clustering(results): print(f"\nšŸ“‚ Test repository: {test_repo}") # Create minimal config via the required factory method - config = Config( + config = Config.from_args( repo_path=test_repo, output_dir="/tmp/codewiki_test_output", dependency_graph_dir="/tmp/codewiki_test_output/deps", From c364a8699260ed384bef91cb7a833c3623174b6e Mon Sep 17 00:00:00 2001 From: "flamingo[bot]" <277372822+flamingo[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 05:08:33 +0000 Subject: [PATCH 3/3] fix(CODEWIKI-007): 3 review findings across 3 files --- test_subdirectory_fix.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_subdirectory_fix.py b/test_subdirectory_fix.py index dfd22961..0cbc9dc8 100644 --- a/test_subdirectory_fix.py +++ b/test_subdirectory_fix.py @@ -12,8 +12,9 @@ from codewiki.src.be.documentation_generator import DocumentationGenerator from codewiki.src.config import Config -# Create minimal config -config = Config( +# Create minimal config via the from_args factory to preserve env-var +# resolution, defaulting, and validation guarantees (CODEWIKI-007). +config = Config.from_args( cluster_api_key=os.getenv("CLUSTER_API_KEY", os.getenv("OPENAI_API_KEY", "")), main_api_key=os.getenv("MAIN_API_KEY", os.getenv("OPENAI_API_KEY", "")), fallback_api_key=os.getenv("FALLBACK_API_KEY", os.getenv("ANTHROPIC_API_KEY", "")),