Skip to content

feat(alpha): warn on unfetched refs in agent exec prompts - #396

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/exec-ref-warn-1
Nov 25, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/exec-ref-warn-1

Conversation

@tbhb-dev-agent-pull-requests

@tbhb-dev-agent-pull-requests tbhb-dev-agent-pull-requests Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Why

An agent run can finish without making progress when its prompt references a ref missing from its mirror. The launch gives the operator no warning when the prompt depends on a ref omitted from the fetch list (PRB-TOOLS-EXEC-MISSING-REF-SILENT).

Behavior change

Before launch, agent exec warns on stderr for each branch ref or pull request head in the prompt that no --fetch-ref option covers. Each warning appears once in the order the prompt mentions the refs. The launch proceeds and returns its usual exit status.

Verification

Pytest passed 340 tests and covered all 48 branches in the launch rules, including the prompt ref scan.

uv run pytest tests/test_alpha_agent_driver.py tests/test_alpha_agent_driver_decisions.py tests/test_alpha_agent_fetch_refs.py --cov=tbhbdev.alpha.agent.decisions.driver --cov-branch

Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:3821e841b874aee9;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli

Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:3821e841b874aee9;surface=exec
@tbhb-agent
tbhb-agent added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit a93c7f5 Nov 25, 2026
6 checks passed
@tbhb-agent
tbhb-agent deleted the agent/exec-ref-warn-1 branch November 25, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant