Some bugfixes#30
Conversation
Remove --max-rounds from loop run and round artifacts, and treat round counts as audit metadata only. Continue accepting legacy round.max_rounds fields on read so old loop state can be resumed.
Refuse rfc bump when a stored amendment signature exists and no RFC or clause content changed. Keep rendered projection signatures separate from RFC amendment content signatures.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughThis PR delivers three independent features: removes ChangesRemove loop max-rounds semantics (RFC-0006 v0.5.0)
Reject empty RFC version bumps (RFC-0002 v0.10.3)
W0112 bare-reference warning enrichment
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@gov/work/2026-06-15-reject-empty-rfc-bumps.toml`:
- Line 17: The description field in this work item contains normative contract
language that specifies detailed rules about RFC version bumps and what
constitutes valid amendments. Per coding guidelines, work item descriptions must
be non-normative and should not encode contract language that belongs in RFC/ADR
text. Rewrite the description to be concise and descriptive of the
implementation scope and expected outcomes (e.g., what validation will be
implemented and tested), and add a reference to the relevant RFC clause instead
of spelling out the normative rules. Remove the detailed contract language about
content amendments, bookkeeping, and baseline bumps, keeping only a brief
description of what the work item accomplishes.
In `@gov/work/2026-06-15-remove-loop-max-rounds-semantics.toml`:
- Line 14: The `description` field on line 14 contains normative language using
"must" and "must not" statements, which should not appear in work item
descriptions according to coding guidelines. Remove the normative language
(specifically the statements about "govctl must no longer accept or persist
max-rounds" and "loop failure must not be inferred from round count alone") and
reframe the description to focus on the execution scope—what is being removed
and why (the loop rounds should function as audit checkpoints only)—while
keeping the RFC reference. Move the specific normative requirements to the
RFC/ADR text instead of embedding them in this field.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e7ca9b54-edf5-4957-9afa-7948a92e0c1a
⛔ Files ignored due to path filters (3)
tests/snapshots/test_lifecycle__bump_change_does_not_clear_pending_amendment.snapis excluded by!**/*.snaptests/snapshots/test_lifecycle__bump_rejects_changelog_only_after_signature_baseline.snapis excluded by!**/*.snaptests/snapshots/test_lifecycle__bump_rejects_empty_bump_after_signature_baseline.snapis excluded by!**/*.snap
📒 Files selected for processing (41)
CHANGELOG.mddocs/rfc/RFC-0002.mddocs/rfc/RFC-0006.mdgov/rfc/RFC-0002/clauses/C-LIFECYCLE-VERBS.tomlgov/rfc/RFC-0002/rfc.tomlgov/rfc/RFC-0006/clauses/C-LOOP-COMMAND-SURFACE.tomlgov/rfc/RFC-0006/clauses/C-LOOP-LIFECYCLE.tomlgov/rfc/RFC-0006/clauses/C-LOOP-RESUMPTION.tomlgov/rfc/RFC-0006/clauses/C-LOOP-STATE-STORAGE.tomlgov/rfc/RFC-0006/clauses/C-ROUND-EXECUTION.tomlgov/rfc/RFC-0006/rfc.tomlgov/schema/SCHEMA.mdgov/schema/loop-round.schema.jsongov/work/2026-06-15-reject-empty-rfc-bumps.tomlgov/work/2026-06-15-remove-loop-max-rounds-semantics.tomlgov/work/2026-06-15-report-bare-reference-warning-source.tomlsrc/cli/loop_cmd.rssrc/cmd/lifecycle/rfc.rssrc/cmd/loop_cmd/execution/mod.rssrc/command_router/execute/builtin.rssrc/command_router/parsed.rssrc/command_router/plan.rssrc/command_router/tests/lock_disposition.rssrc/command_router/tests/routing.rssrc/diagnostic/code/metadata.rssrc/diagnostic/code/mod.rssrc/loop_state/mod.rssrc/loop_state/tests.rssrc/loop_state/validation/round.rssrc/signature/mod.rssrc/signature/tests.rssrc/validate/bracket_refs.rstests/common/loop_helpers.rstests/error_tests/rfc_clause_cases/check.rstests/error_tests/work.rstests/lifecycle_tests/rfc_cases/bump.rstests/loop_tests/execution_cases/lifecycle.rstests/loop_tests/mod.rstests/loop_tests/scope.rstests/loop_tests/surface_cases/listing.rstests/loop_tests/surface_cases/validation.rs
💤 Files with no reviewable changes (8)
- src/command_router/parsed.rs
- src/loop_state/validation/round.rs
- tests/common/loop_helpers.rs
- src/command_router/tests/lock_disposition.rs
- src/command_router/plan.rs
- src/cli/loop_cmd.rs
- src/command_router/tests/routing.rs
- gov/schema/SCHEMA.md
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@gov/work/2026-06-15-report-bare-reference-warning-source.toml`:
- Line 17: The description field in the work item contains normative phrasing
("should identify ...") that prescribes specific behavior, which violates the
guideline that work-item descriptions must not introduce normative requirements.
Reword the description field to remove prescriptive language and instead frame
it as implementation traceability to already-defined RFC/ADR requirements that
specify this behavior. Replace the current prescriptive statements with language
that references existing requirements rather than introducing new ones.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e77d412e-4317-4c94-8f06-b3b066c367af
⛔ Files ignored due to path filters (3)
tests/snapshots/test_lifecycle__bump_change_does_not_clear_pending_amendment.snapis excluded by!**/*.snaptests/snapshots/test_lifecycle__bump_rejects_changelog_only_after_signature_baseline.snapis excluded by!**/*.snaptests/snapshots/test_lifecycle__bump_rejects_empty_bump_after_signature_baseline.snapis excluded by!**/*.snap
📒 Files selected for processing (41)
CHANGELOG.mddocs/rfc/RFC-0002.mddocs/rfc/RFC-0006.mdgov/rfc/RFC-0002/clauses/C-LIFECYCLE-VERBS.tomlgov/rfc/RFC-0002/rfc.tomlgov/rfc/RFC-0006/clauses/C-LOOP-COMMAND-SURFACE.tomlgov/rfc/RFC-0006/clauses/C-LOOP-LIFECYCLE.tomlgov/rfc/RFC-0006/clauses/C-LOOP-RESUMPTION.tomlgov/rfc/RFC-0006/clauses/C-LOOP-STATE-STORAGE.tomlgov/rfc/RFC-0006/clauses/C-ROUND-EXECUTION.tomlgov/rfc/RFC-0006/rfc.tomlgov/schema/SCHEMA.mdgov/schema/loop-round.schema.jsongov/work/2026-06-15-reject-empty-rfc-bumps.tomlgov/work/2026-06-15-remove-loop-max-rounds-semantics.tomlgov/work/2026-06-15-report-bare-reference-warning-source.tomlsrc/cli/loop_cmd.rssrc/cmd/lifecycle/rfc.rssrc/cmd/loop_cmd/execution/mod.rssrc/command_router/execute/builtin.rssrc/command_router/parsed.rssrc/command_router/plan.rssrc/command_router/tests/lock_disposition.rssrc/command_router/tests/routing.rssrc/diagnostic/code/metadata.rssrc/diagnostic/code/mod.rssrc/loop_state/mod.rssrc/loop_state/tests.rssrc/loop_state/validation/round.rssrc/signature/mod.rssrc/signature/tests.rssrc/validate/bracket_refs.rstests/common/loop_helpers.rstests/error_tests/rfc_clause_cases/check.rstests/error_tests/work.rstests/lifecycle_tests/rfc_cases/bump.rstests/loop_tests/execution_cases/lifecycle.rstests/loop_tests/mod.rstests/loop_tests/scope.rstests/loop_tests/surface_cases/listing.rstests/loop_tests/surface_cases/validation.rs
💤 Files with no reviewable changes (8)
- src/loop_state/validation/round.rs
- src/command_router/parsed.rs
- gov/schema/SCHEMA.md
- src/command_router/tests/lock_disposition.rs
- src/command_router/plan.rs
- src/command_router/tests/routing.rs
- tests/common/loop_helpers.rs
- src/cli/loop_cmd.rs
Include scanned field, field-local line, and source context in W0112 bare artifact reference warnings so users can locate offending governed prose.
Summary by CodeRabbit
Release Notes
New Features
--worktoloop runto target specific work items within an existing loop.Removed
--max-roundsfromloop run.max_roundsfrom new loop round artifacts.Changed
Bug Fixes