Skip to content

UN-4044 [FEAT] Agent-KV extraction engine — public API, schema compiler and hardened code sandbox - #2309

Open
vishnuszipstack wants to merge 86 commits into
mainfrom
Feat/agent-kv-api
Open

vishnuszipstack wants to merge 86 commits into
mainfrom
Feat/agent-kv-api

UN-4044 [FIX] Stop failed TTL cleanups from starving the backlog

cb6f7f2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Oct 1, 2026 in 53s

Annotations

Check warning on line 152 in backend/agent_kv/tests/test_dispatch.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjKrNH5HWOmWG0xN&open=AaD2pjKrNH5HWOmWG0xN&pullRequest=2309

Check warning on line 1019 in backend/backend/settings/base.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "list.extend()" instead of consecutive "append()" calls.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjQGNH5HWOmWG0xa&open=AaD2pjQGNH5HWOmWG0xa&pullRequest=2309

Check failure on line 208 in backend/agent_kv/execution_views.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjLjNH5HWOmWG0xY&open=AaD2pjLjNH5HWOmWG0xY&pullRequest=2309

Check warning on line 76 in unstract/agent-kv-schema/src/unstract/agent_kv_schema/compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge these implicitly concatenated strings; or did you forget a comma?

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2p1gJQa75rif06XGp&open=AaD2p1gJQa75rif06XGp&pullRequest=2309

Check warning on line 59 in backend/agent_kv/tests/test_auth.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjK1NH5HWOmWG0xR&open=AaD2pjK1NH5HWOmWG0xR&pullRequest=2309

Check failure on line 112 in backend/agent_kv/execution_views.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjLjNH5HWOmWG0xV&open=AaD2pjLjNH5HWOmWG0xV&pullRequest=2309

Check failure on line 173 in backend/agent_kv/execution_views.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjLjNH5HWOmWG0xW&open=AaD2pjLjNH5HWOmWG0xW&pullRequest=2309

Check failure on line 138 in unstract/agent-kv-schema/src/unstract/agent_kv_schema/constraints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2p1tKQa75rif06XGs&open=AaD2p1tKQa75rif06XGs&pullRequest=2309

Check warning on line 32 in backend/agent_kv/tests/test_auth.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjK1NH5HWOmWG0xP&open=AaD2pjK1NH5HWOmWG0xP&pullRequest=2309

Check warning on line 228 in backend/agent_kv/tests/test_storage.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjK_NH5HWOmWG0xS&open=AaD2pjK_NH5HWOmWG0xS&pullRequest=2309

Check warning on line 36 in backend/agent_kv/storage.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this comprehension with passing the iterable to the collection constructor call

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjLLNH5HWOmWG0xT&open=AaD2pjLLNH5HWOmWG0xT&pullRequest=2309

Check warning on line 57 in workers/scheduler/tasks.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Fix the syntax of this issue suppression comment.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2-MBr04BL0PJ5_RxL&open=AaD2-MBr04BL0PJ5_RxL&pullRequest=2309

Check failure on line 82 in workers/sandbox/gate.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 55 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjUDNH5HWOmWG0xd&open=AaD2pjUDNH5HWOmWG0xd&pullRequest=2309

Check warning on line 265 in tests/e2e/agent_kv/test_agent_kv_e2e.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZ6NH5HWOmWG0xr&open=AaD2pjZ6NH5HWOmWG0xr&pullRequest=2309

Check warning on line 43 in unstract/agent-kv-schema/tests/test_compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZrNH5HWOmWG0xk&open=AaD2pjZrNH5HWOmWG0xk&pullRequest=2309

Check failure on line 60 in unstract/agent-kv-schema/src/unstract/agent_kv_schema/constraints.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2p1tKQa75rif06XGr&open=AaD2p1tKQa75rif06XGr&pullRequest=2309

Check warning on line 41 in backend/agent_kv/tests/test_rate_limiter.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjEVNH5HWOmWG0xL&open=AaD2pjEVNH5HWOmWG0xL&pullRequest=2309

Check warning on line 111 in unstract/agent-kv-schema/tests/test_compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZrNH5HWOmWG0xn&open=AaD2pjZrNH5HWOmWG0xn&pullRequest=2309

Check failure on line 98 in workers/sandbox/runner.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjT5NH5HWOmWG0xc&open=AaD2pjT5NH5HWOmWG0xc&pullRequest=2309

Check warning on line 885 in workers/run-worker.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of using the literal 'sandbox' 6 times.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjV9NH5HWOmWG0xe&open=AaD2pjV9NH5HWOmWG0xe&pullRequest=2309

Check warning on line 171 in tests/e2e/agent_kv/test_agent_kv_e2e.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove empty parentheses from this decorator.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZ6NH5HWOmWG0xq&open=AaD2pjZ6NH5HWOmWG0xq&pullRequest=2309

Check warning on line 49 in unstract/agent-kv-schema/tests/test_compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZrNH5HWOmWG0xl&open=AaD2pjZrNH5HWOmWG0xl&pullRequest=2309

Check warning on line 167 in backend/agent_kv/tests/test_dispatch.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjKrNH5HWOmWG0xO&open=AaD2pjKrNH5HWOmWG0xO&pullRequest=2309

Check warning on line 100 in unstract/agent-kv-schema/tests/test_compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZrNH5HWOmWG0xm&open=AaD2pjZrNH5HWOmWG0xm&pullRequest=2309

Check warning on line 138 in unstract/agent-kv-schema/tests/test_compile.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this exception test to have only one invocation possibly throwing an exception.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AaD2pjZrNH5HWOmWG0xo&open=AaD2pjZrNH5HWOmWG0xo&pullRequest=2309