mirror of
https://github.com/razzant/ouroboros.git
synced 2026-10-03 04:07:04 +00:00
test: align local transform fixture with synthesized lane
This commit is contained in:
parent
e7638119d5
commit
931515d616
1 changed files with 5 additions and 4 deletions
|
|
@ -241,6 +241,11 @@ def test_local_candidate_is_measured_after_existing_local_transform(data_root, m
|
|||
|
||||
lambda: SimpleNamespace(serving_context_evidence=lambda: {"context_window": 8192, "confirmed": True}, measure_prepared_input=lambda payload: {"supported": False}),
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
client,
|
||||
"_prepare_messages_for_local_context",
|
||||
lambda messages, ctx_len, max_tokens: [{"role": "system", "content": "post-local-compactor"}],
|
||||
)
|
||||
tools = [{
|
||||
"type": "function",
|
||||
"function": {"name": "local_tool", "parameters": {"type": "object"}},
|
||||
|
|
@ -264,10 +269,6 @@ def test_local_candidate_is_measured_after_existing_local_transform(data_root, m
|
|||
assert sent["max_tokens"] == 2048
|
||||
final = _rows(data_root)[-1]
|
||||
|
||||
assert sent["max_tokens"] == 8192 - final["call_context_fit"]["input_tokens"]
|
||||
assert sent["max_tokens"] > 2048
|
||||
assert not final["call_context_fit"]["strict_bound_proven"]
|
||||
assert "enforced_output_limit" in final["call_context_fit"]["missing_evidence"]
|
||||
raw = _canonical_candidate_bytes(sent)
|
||||
assert final["candidate_raw_sha256"] == hashlib.sha256(raw).hexdigest()
|
||||
assert final["candidate_raw_size_bytes"] == len(raw)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue