Skip to content

Switch to JSON output format, add directness guidance - #59

Merged
dwilding merged 1 commit into
mainfrom
json-output-direct-tests
Aug 25, 2026
Merged

Switch to JSON output format, add directness guidance#59
dwilding merged 1 commit into
mainfrom
json-output-direct-tests

Conversation

@dwilding

Copy link
Copy Markdown
Owner

Three changes to fix issues with PR #58:

1. JSON output format

Replace IMPLEMENTATION_REASONING (plain text where the first line became the title) with IMPLEMENTATION_RESULT (JSON with separate title and body fields). The title must be a compact phrase (max 70 chars). The body must be proper markdown with headers, bullets, and code blocks. This separates the title from the body cleanly and prevents the agent from conflating them.

2. Directness guidance

Tell the agent to prefer straightforward tests over clever workarounds. No dynamically generated config files, no subprocess pytest, no meta-tests. Configure pyproject.toml directly and write tests that use the charm's own configuration. Remind the agent that there are four charms available for differential testing.

3. Workflow

Use --title-file and --body-file instead of --reasoning-file. The title and body are written to separate files by probe_issue.py.

Verification

  • uvx ruff format — passes
  • uvx ruff check — passes
  • uvx ty check — passes
  • YAML validation — passes
  • parse_decision tested with sample JSON input — passes

Three changes to fix issues with PR #58:

1. JSON output format: Replace IMPLEMENTATION_REASONING (plain text where
   the first line became the title) with IMPLEMENTATION_RESULT (JSON with
   separate 'title' and 'body' fields). The title must be a compact phrase
   (max 70 chars). The body must be proper markdown with headers, bullets,
   and code blocks. This separates the title from the body cleanly and
   prevents the agent from conflating them.

2. Directness guidance: Tell the agent to prefer straightforward tests
   over clever workarounds. No dynamically generated config files, no
   subprocess pytest, no meta-tests. Configure pyproject.toml directly
   and write tests that use the charm's own configuration. Remind the
   agent that there are four charms available for differential testing.

3. Workflow: Use --title-file and --body-file instead of --reasoning-file.
   The title and body are written to separate files by probe_issue.py.
@dwilding
dwilding merged commit cd8318c into main Aug 25, 2026
2 checks passed
@dwilding
dwilding deleted the json-output-direct-tests branch August 25, 2026 11:17
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