Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
- name: Run ruff format check
run: uv run ruff format --check

- name: Run ruff check
run: uv run ruff check --output-format github

- name: Run ty type checker
run: uv run ty check --exclude "examples/**" --exclude "test/**" src/

Expand Down
4 changes: 2 additions & 2 deletions docs/control/reference/rest_api/headers/security_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ Maximum number of tool calls allowed per PLLM attempt. If `null`, no limit is en

| Type | Required | Default |
|------|----------|---------|
| `boolean` or `null` | No | `null` |
| `"none"`, `"bool"`, `"text"`, `boolean`, or `null` | No | `null` |

Whether to paraphrase RLLM output via reduced grammar before feeding back to planning LLM. When not set, the server default is `true`.
Whether to paraphrase RLLM output via reduced grammar before feeding back to planning LLM. `"none"` denotes passing original review to PLLM; `"bool"` denotes only keeping boolean flags (success/failure); `"text"` denotes applying reduced grammar to reviews. `true` is an alias for `"text"`, `false` is an alias for `"none"`. When not set, the server default is `"text"`.

#### `fsm.retry_on_policy_violation`

Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ format:

lint:
uv run ruff format --check
uv run ruff check
uv run ty check --exclude "examples/**" --exclude "test/**" src/

sync-all:
Expand Down
4 changes: 2 additions & 2 deletions src/sequrity/control/types/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ class FsmOverrides(BaseModel):
default=None,
description="Maximum number of tool calls allowed per PLLM attempt. If None, no limit is enforced.",
)
reduced_grammar_for_rllm_review: bool | None = Field(
reduced_grammar_for_rllm_review: Literal["none", "bool", "text"] | bool | None = Field(
default=None,
description="Whether to paraphrase RLLM output via reduced grammar before feeding back to planning LLM.",
description="Whether to paraphrase RLLM output via reduced grammar before feeding back to planning LLM. 'none' denotes passing original review to PLLM; 'bool' denotes only keeping boolean flags (success/failure); 'text' denotes applying reduced grammar to reviews; True is an alias for 'text', False is an alias for 'none'.",
)
retry_on_policy_violation: bool | None = Field(
default=None,
Expand Down
4 changes: 2 additions & 2 deletions test/control/test_langgraph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Literal, TypedDict
from typing import TypedDict

import pytest

Expand All @@ -9,7 +9,7 @@
from sequrity_unittest.config import get_test_config

try:
from langgraph.graph import StateGraph
from langgraph.graph import StateGraph # noqa: F401

LANGGRAPH_AVAILABLE = True
except ImportError:
Expand Down
1 change: 0 additions & 1 deletion test/control/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
ParseResult,
SqrtParseError,
check,
check_file,
parse,
validate,
)
Expand Down
3 changes: 0 additions & 3 deletions test/control/test_policy_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
which generates SQRT security policies from natural language descriptions.
"""

import pytest

from sequrity import LlmServiceProvider, SequrityClient
from sequrity.control._constants import build_policy_gen_url
from sequrity.control.types.policy_gen import (
PolicyGenRequestAnthropicMessages,
PolicyGenRequestOpenAiChatCompletion,
PolicyGenRequestOpenRouterChatCompletion,
PolicyGenRequestSequrityAzureChatCompletion,
PolicyGenRequestSequrityAzureResponses,
PolicyGenResponse,
)
from sequrity_unittest.config import get_test_config
Expand Down
2 changes: 0 additions & 2 deletions test/integrations/test_langgraph_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ async def test_session_tracking(self):

# Verify session ID was captured
assert llm.session_id is not None
first_session_id = llm.session_id

# Second request - should use the same session
response2 = await llm.ainvoke([HumanMessage(content="What did I just say?")])

Expand Down
2 changes: 0 additions & 2 deletions test/integrations/test_openai_agents_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ async def test_session_tracking(self):

# Verify session ID was captured
assert client.session_id is not None
first_session_id = client.session_id

# Second request - should use the same session
result2 = await Runner.run(
agent,
Expand Down
Loading