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
5 changes: 4 additions & 1 deletion behaviors/work-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ session:
token_meter: actual
summarize_trigger: 0.70
summary_target_tokens: 1500
summary_timeout: 120
# Healthy model work can take many minutes. Do not add a compaction
# deadline: the former 120-second limit cancelled large summaries and
# caused repeated retries. Completion, provider errors and user
# cancellation determine when a call ends, not elapsed time.

tools:
- module: tool-transcript
Expand Down
14 changes: 14 additions & 0 deletions tests/test_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
ROOT = Path(__file__).resolve().parents[1]


@pytest.mark.asyncio
@pytest.mark.parametrize("source", ["bundle.md", "behaviors/work-local.yaml",
"bundles/work-session.yaml", "presets/anchors-work.md", "presets/work-images.md"])
async def test_composed_work_does_not_impose_compaction_deadlines(tmp_path, monkeypatch, source):
monkeypatch.setenv("AMPLIFIER_HOME", str(tmp_path / "shared"))
monkeypatch.chdir(tmp_path)
bundle = await foundation.load_bundle(str(ROOT / source), strict=True)
config = bundle.session["context"]["config"]
# A bundle-level timer previously cancelled healthy large-history requests.
# Exercise composition so includes/presets cannot silently restore it.
for key in ("summary_timeout", "summary_total_work_timeout", "native_compaction_timeout"):
assert key not in config


@pytest.mark.asyncio
async def test_root_loads_from_an_unrelated_workspace(tmp_path, monkeypatch):
monkeypatch.setenv("AMPLIFIER_HOME", str(tmp_path / "shared"))
Expand Down
Loading