Skip to content

Commit b6297be

Browse files
author
Grace Lee Rui Yue
committed
Merge remote-tracking branch 'origin/agent/fix-discrete-log-example-budget' into HEAD
2 parents 039ed7b + 64e7dbe commit b6297be

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/jacobian/domains/number_theory/discrete_logarithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _obligation(
168168
"base": 2,
169169
"target": 1,
170170
"modulus": 3,
171-
"resource_budget": {"wall_seconds": 1},
171+
"resource_budget": {"wall_seconds": 5},
172172
},
173173
),
174174
),

tests/unit/domains/number_theory/test_discrete_logarithm_protocol.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33
import pytest
44
from pydantic import ValidationError
55

6+
from jacobian.domains.number_theory.discrete_logarithm import (
7+
DISCRETE_LOGARITHM_CAPABILITY,
8+
)
69
from jacobian.domains.number_theory.discrete_logarithm_protocol import (
710
PROTOCOL,
811
DiscreteLogarithmWorkerResult,
912
)
1013

1114

15+
def test_discrete_logarithm_example_budgets_isolated_worker_startup() -> None:
16+
example = DISCRETE_LOGARITHM_CAPABILITY.invocation_examples[0]
17+
18+
assert example.input["resource_budget"]["wall_seconds"] == 5
19+
20+
1221
def test_discrete_logarithm_worker_result_rejects_unknown_fields() -> None:
1322
with pytest.raises(ValidationError, match="extra_forbidden"):
1423
DiscreteLogarithmWorkerResult.model_validate(

0 commit comments

Comments
 (0)