Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(test): send the complete worker policy from the session-scope fixture
刘冲a45858ffb5a5
diff --git a/tests/test_worker_session_scope.sh b/tests/test_worker_session_scope.shindex ab018ba76..1f32c4682 100644--- a/tests/test_worker_session_scope.sh+++ b/tests/test_worker_session_scope.sh@@ -73,9 +73,9 @@ run_worker() {# A worker never reads the resource policy from config or environment: the# supervisor resolves it and sends it inside the request, and a request# without one is refused ("missing or incomplete trusted worker policy").-# This script plays the supervisor, so it sends what the supervisor sends ---# both limits off, the default.-policy='"_cbm_index_policy":{"index_max_files":"off","index_max_source_mb":"off"}'+# This script plays the supervisor, so it sends the same complete object+# cbm_test_index_worker_policy_json produces -- every known key, all off.+policy="$(cbm_test_index_worker_policy_json)"response="${tmpdir}/scoped.response"if ! run_worker "{\"repo_path\":\"${repo}\",\"mode\":\"fast\",${policy}}" "${response}" \