mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
fix(test): send the complete worker policy from the session-scope fixture
PR 2257 still named only the two discovery keys in the worker-scope script. The worker now fail-closes unless every known policy key is present, so the fixture must stand in for the supervisor with cbm_test_index_worker_policy_json. Signed-off-by: 刘冲 <mail@liuchong.dev>
This commit is contained in:
1 file changed
+3
-3
@@ -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}" \
|
||||
|
||||
Reference in new issue
Block a user