Skip to content

feat(config): add task variables for the context window - #4234

Merged
dan-petty merged 3 commits into
mainfrom
feat/4225-task-context-window-variables
Nov 9, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4225-task-context-window-variables

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The task context window and the reply limit had no environment variable, so DEVOPS_CLI_AI_TASK_STAGE_CONTEXT_WINDOW had no effect. The analysis, stage and verification tasks now declare a variable for context_window and for max_tokens. The settings already held both fields. A bad value fails at load and names the variable.

Closes #4225

Change: openspec/changes/archive/2026-11-09-4225-task-variables-for-the-context-window/

@dan-petty dan-petty added type/feature Type feature: a new function scope/config Settings, OS Keyring, environment variables, and defaults labels Nov 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4225.

  • fail-to-pass (devops ci fail-to-pass --base origin/main): 9 tests fail on the base, 18 pass on the branch.
  • Narrow checks on the final code: tests/config/test_ai_task_settings_paths.py (15 passed), tests/security/test_config_declarations.py (12 passed), devops docs generate --check, devops ci docs, ruff, mypy on settings.py.
  • Full uv run devops ci on the final code: exit 0, 25 rows. The test row took 24m15s, over the 5 minute budget, because of host load (known issue fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593). No other failure.
  • No ConfigMap change: the change adds variables and removes no key. The Settings models ignore unknown keys. AITasksConfig and AITaskOverride forbid them, but no key is added or removed.
  • No live model call.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 14:26
@dan-petty
dan-petty merged commit c034509 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the feat/4225-task-context-window-variables branch November 9, 2026 14:33
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.101.0](v0.100.2...v0.101.0)
(2026-11-09)


### Features

* **config:** add task variables for the context window
([#4234](#4234))
([c034509](c034509))


### Bug Fixes

* **ai:** price a hosted group call by the asked model
([#4231](#4231))
([7b85c91](7b85c91))
* **ai:** Refuse uv audit when project is outside workspace
([#4239](#4239))
([1700648](1700648))
* **ci:** retry the download of a release asset
([#4235](#4235))
([cf0567e](cf0567e))
* **service:** use load_settings() in GET /config
([#4233](#4233))
([230d77c](230d77c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/config Settings, OS Keyring, environment variables, and defaults type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(config): task variables for the context window

1 participant