From 7865a04c73226088d5c8097a7eb35fb6f25fb3f8 Mon Sep 17 00:00:00 2001 From: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:02:47 -0700 Subject: [PATCH 1/2] chore: drop the dead max_tokens from every bundle context-simple's `max_tokens` used to be a fallback consulted only when a provider published no context window. Orchestrators always pass a provider, so these values never reached the wire -- they were inert in every bundle here. It is now a CAP, defaulting to None (no cap). Leaving these lines in place would silently clamp every session to 300,000 tokens -- including sessions on 1M-context models -- turning a documentation fix into a 3x behavior change nobody asked for. Deleting them preserves today's behavior exactly, and leaves no fossil that looks meaningful. Files, all `session.context.config.max_tokens`: bundle.md 300000 bundles/anchors/bundle.md 300000 experiments/delegation-only/bundle.md 300000 experiments/exp-foundation.md 300000 experiments/exp-lean/behaviors/lean-foundation.yaml 300000 experiments/minimal-delegate/.../minimal-delegate-foundation.yaml 64000 anchors-amp-dev, amplifier-dev, minimal, with-anthropic and with-openai set no max_tokens of their own -- they inherit, so the root bundle.md covers them. WORTH A DECISION, deliberately not made here: minimal-delegate asked for 64,000, a tight budget matching the experiment's intent, and never got it. That intent is now expressible for the first time. Restoring it is a behavior change on an experiment, so it should be chosen, not inherited from a line that never worked. Every touched file re-parsed after the edit to prove the YAML still loads and only the intended key is gone. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> --- bundle.md | 1 - bundles/anchors/bundle.md | 1 - experiments/delegation-only/bundle.md | 1 - experiments/exp-foundation.md | 1 - experiments/exp-lean/behaviors/lean-foundation.yaml | 1 - .../minimal-delegate/behaviors/minimal-delegate-foundation.yaml | 2 -- 6 files changed, 7 deletions(-) diff --git a/bundle.md b/bundle.md index d874b993..6b9bcbd6 100644 --- a/bundle.md +++ b/bundle.md @@ -67,7 +67,6 @@ session: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main config: - max_tokens: 300000 compact_threshold: 0.8 auto_compact: true diff --git a/bundles/anchors/bundle.md b/bundles/anchors/bundle.md index 2a619d88..a8ba26dc 100644 --- a/bundles/anchors/bundle.md +++ b/bundles/anchors/bundle.md @@ -46,7 +46,6 @@ session: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main config: - max_tokens: 300000 compact_threshold: 0.8 auto_compact: true diff --git a/experiments/delegation-only/bundle.md b/experiments/delegation-only/bundle.md index fbc7ab1e..d36603b3 100644 --- a/experiments/delegation-only/bundle.md +++ b/experiments/delegation-only/bundle.md @@ -23,7 +23,6 @@ session: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main config: - max_tokens: 300000 compact_threshold: 0.8 auto_compact: true diff --git a/experiments/exp-foundation.md b/experiments/exp-foundation.md index 96351fdb..8137040a 100644 --- a/experiments/exp-foundation.md +++ b/experiments/exp-foundation.md @@ -51,7 +51,6 @@ session: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main config: - max_tokens: 300000 compact_threshold: 0.8 auto_compact: true diff --git a/experiments/exp-lean/behaviors/lean-foundation.yaml b/experiments/exp-lean/behaviors/lean-foundation.yaml index 9c483f7c..f736c799 100644 --- a/experiments/exp-lean/behaviors/lean-foundation.yaml +++ b/experiments/exp-lean/behaviors/lean-foundation.yaml @@ -19,7 +19,6 @@ session: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main config: - max_tokens: 300000 compact_threshold: 0.8 auto_compact: true diff --git a/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml b/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml index acebc64d..2aa44534 100644 --- a/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml +++ b/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml @@ -40,8 +40,6 @@ session: context: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main - config: - max_tokens: 64000 # ONLY meta-tools — these gate access to other capabilities. # CRITICAL: NO direct tools. Specifically absent: From 56b82fd417bcd69c36db25f4d96e40041f02485a Mon Sep 17 00:00:00 2001 From: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> Date: Tue, 15 Sep 2026 07:10:49 -0700 Subject: [PATCH 2/2] feat(minimal-delegate): restore the 64k budget, now that it actually applies This experiment asked for `max_tokens: 64000` -- a deliberately tight budget, the whole point of a delegate-only head -- and never got it: `max_tokens` was a fallback consulted only when a provider published no window, and the orchestrator always passes one. The previous commit deleted the line to preserve behavior. Restoring it now is a deliberate choice, not an inherited one: the cap works, nobody depends on this bundle today, and the 64k constraint is finally measurable. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> --- .../behaviors/minimal-delegate-foundation.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml b/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml index 2aa44534..8a6394e7 100644 --- a/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml +++ b/experiments/minimal-delegate/behaviors/minimal-delegate-foundation.yaml @@ -40,6 +40,17 @@ session: context: module: context-simple source: git+https://github.com/microsoft/amplifier-module-context-simple@main + config: + # A deliberately TIGHT budget -- this experiment is about how far a + # delegate-only head can get on very little context. + # + # This line existed before with the same value and never did anything: + # `max_tokens` used to be a fallback consulted only when a provider + # published no window, and the orchestrator always passes one. It is now + # a real cap, so the experiment finally runs at the size it asked for. + # Kept deliberately (nobody depends on this bundle today) so the 64k + # constraint can actually be measured. + max_tokens: 64000 # ONLY meta-tools — these gate access to other capabilities. # CRITICAL: NO direct tools. Specifically absent: