Skip to content

Fix/compile review followup#364

Merged
plind-junior merged 2 commits into
testfrom
fix/compile-review-followup
Jul 6, 2026
Merged

Fix/compile review followup#364
plind-junior merged 2 commits into
testfrom
fix/compile-review-followup

Conversation

@plind-junior

Copy link
Copy Markdown
Collaborator

What changed

Why

What might break

VEP

Tests

  • make check passes locally (lint + mypy + pytest)
  • New / changed behaviour has a test
  • CHANGELOG.md updated under ## [Unreleased]

a config max_pages: 0 (or --max-pages 0) made cap <= 0, so every
draft was dropped with "over max_pages=0" after the LLM run was
already spent. raise CompileError up front instead of silently
producing nothing.
the unlabeled fence trips markdownlint MD040.
Copilot AI review requested due to automatic review settings July 6, 2026 00:49
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c974c259-3cde-433f-ac7e-8b889b581370

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/compile-review-followup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@plind-junior plind-junior merged commit e6016b4 into test Jul 6, 2026
6 checks passed
@github-actions github-actions Bot added docs documentation, specs, examples, and repo guidance tests tests and fixtures size: XS less than 50 changed non-doc lines labels Jul 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens compile_kb input validation by rejecting non-positive max_pages values up front (before invoking the LLM), and adds a regression test to lock in that behavior. It also slightly improves the compile documentation’s diagram code fence formatting.

Changes:

  • Add an explicit guard in compile_kb to raise CompileError when max_pages < 1.
  • Add a unit test asserting max_pages=0 fails before any LLM execution is attempted.
  • Adjust docs/compile.md to use a typed code fence for the ASCII diagram.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/test_compile.py Adds coverage ensuring non-positive max_pages is rejected early.
src/vouch/compile.py Validates max_pages is at least 1 and raises a clear CompileError otherwise.
docs/compile.md Tweaks the diagram code fence to ````text` for clearer rendering/intent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs documentation, specs, examples, and repo guidance size: XS less than 50 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants