Skip to content

Tweak .PR.md format and prioritize charm-dev tools - #64

Merged
dwilding merged 1 commit into
mainfrom
description-tweaks-and-tool-priority
Aug 25, 2026
Merged

Tweak .PR.md format and prioritize charm-dev tools#64
dwilding merged 1 commit into
mainfrom
description-tweaks-and-tool-priority

Conversation

@dwilding

Copy link
Copy Markdown
Owner

Three changes to the prompt:

  1. No hard-wrapping: instruct the agent to write each paragraph as a single long line. The markdown renderer handles wrapping. Hard-wrapped lines break rendering and make editing harder.

  2. No Changes section: instruct the agent not to include a 'Changes' or 'Files changed' section. The reviewer can see the diff in GitHub. Focus on reasoning, not a file listing.

  3. Prioritize charm-dev tools over standard tools: the claim is usually about how a charm-dev tool (Jubilant, ops, pytest-jubilant) behaves, not about how pytest or Python logging works in general. The agent should understand the charm-dev tool first (release notes, source, recent PRs) then dig into standard tools only if the mechanism still isn't clear.

This would have helped the agent discover that Jubilant 1.12.0 (PR #351) moved verbose gron diffs to DEBUG and status changes to INFO — which is exactly what makes log_level=INFO meaningful. The agent instead said "This is a claim about pytest's logging plugin behaviour, not Jubilant's" and missed the Jubilant version change entirely.

Three changes to the prompt:

1. No hard-wrapping: instruct the agent to write each paragraph as a
   single long line. The markdown renderer handles wrapping. Hard-wrapped
   lines break rendering and make editing harder.

2. No Changes section: instruct the agent not to include a 'Changes' or
   'Files changed' section. The reviewer can see the diff in GitHub.
   Focus on reasoning, not a file listing.

3. Prioritize charm-dev tools over standard tools: the claim is usually
   about how a charm-dev tool (Jubilant, ops, pytest-jubilant) behaves,
   not about how pytest or Python logging works in general. The agent
   should understand the charm-dev tool first (release notes, source,
   recent PRs) then dig into standard tools only if the mechanism still
   isn't clear. This would have helped the agent discover that Jubilant
   1.12.0 moved verbose gron diffs to DEBUG and status changes to INFO
   (PR #351) — which is exactly what makes log_level=INFO meaningful.
@dwilding
dwilding merged commit 65e8054 into main Aug 25, 2026
2 checks passed
@dwilding
dwilding deleted the description-tweaks-and-tool-priority branch August 25, 2026 13:44
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