Skip to content

feat(ai): Render the task prompts through Jinja2 with a context - #6162

Merged
dan-petty merged 2 commits into
mainfrom
feat/4633-render-the-task-prompts-through-jinja
Nov 17, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/4633-render-the-task-prompts-through-jinja

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Values enter prompts in four ways and no prompt can take a repository fact (#4633). This change renders a task prompt through one cached Jinja2 SandboxedEnvironment when the caller passes a context, and returns the stripped file text with its markers when the caller passes none, so a prompt with no variables, the call-budget prompts and a benchmark prompt with a GitHub ${{ }} expression keep their text. The implement step prompt gets its three tables through context, and fill_prompt and the three placeholders go. stage_plan_record.prompt_version hashes the raw templates and the context values. The project facts of the other four prompts are a follow-up (#5638).

Closes #4633

Change: openspec/changes/archive/2026-11-17-4633-render-the-task-prompts-through-jinja/

@dan-petty dan-petty added type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 17, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 12:15
@dan-petty
dan-petty merged commit 1812dd2 into main Nov 17, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/4633-render-the-task-prompts-through-jinja branch November 17, 2026 12:17
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.173.0](v0.172.0...v0.173.0)
(2026-11-17)


### Features

* **ai:** Render the task prompts through Jinja2 with a context
([#6162](#6162))
([1812dd2](1812dd2))
* **k8s:** Add SM activity and occupancy to the GPU row
([#6143](#6143))
([7a05312](7a05312))

---
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/ai AI review pipeline, personas, prompts, LLM client, or RAG type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): the prompt loader renders Jinja with project values

1 participant