Skip to content

docs(departures)!: one named section per departure, grouped by area - #7

Merged
sweepies merged 1 commit into
mainfrom
docs/departures-sections
Oct 21, 2026
Merged

sweepies merged 1 commit into
mainfrom
docs/departures-sections

Conversation

@sweepies

@sweepies sweepies commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner
  • The departures page is six sections by area (configuration, how the Count runs, extraction, which updates are proposed, lockfiles and digests, pull requests and release notes). Each departure is a named section with a stable anchor such as #minimum-release-age, opening with Renovate / Count Patchula / Why lines and then its detail.
  • The numbers and #departure-N anchors are gone. The conformance harness's rules (conformance/departures.json), triage report links and fields, and tests use the anchor names; it checks that each cited departure has a {#name} section.
  • Two paragraphs filed under the wrong entry moved back to branch and merge safety, whose text no longer says lockfiles are skipped, and a dead report link is fixed.

🤖 Generated with Claude Code


Devin Review

Each departure is a section with a stable named anchor (for example
#minimum-release-age) instead of a numbered table row. The conformance
harness cites departures by that name: its rules, triage links and checks
move from numbers to anchors. The write-safety entry no longer claims that
lockfiles are skipped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@deepsource-io

deepsource-io Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in e345380...fde65d6 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 21, 2026 10:18p.m. Review ↗
JavaScript Oct 21, 2026 10:18p.m. Review ↗
Shell Oct 21, 2026 10:18p.m. Review ↗
Secrets Oct 21, 2026 10:18p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review

Comment thread conformance/src/diff.rs
pub rule: String,
pub row: u32,
/// The departure's section anchor in docs/renovate/departures.md.
pub id: String,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Triage consumers receive incompatible version-one JSON

When a difference maps to a departure, Departure.id replaces row while Triage.schema_version remains 1. Consumers expecting version-one departure rows cannot read the new triage output.

Learn more

The conformance command serializes Triage into triage.json in run. The same report still sets schema_version: 1 in compare, even though mapped differences now serialize id instead of row. A reader using the schema version to choose the old shape will accept the file and then fail to find row.

Example: A consumer reads { "schemaVersion": 1, "differences": [{ "departure": { "id": "minimum-release-age", "link": "..." } }] }. It accepts version 1, then its departure.row lookup fails instead of yielding the former numeric row.

Recommended fix: Bump the triage output schema version for this incompatible field change, and update the CLI/test contract and any documented consumers together. Check whether the separately versioned rules JSON also needs a version bump for its numeric-to-string departure change.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread conformance/README.md
Comment on lines +142 to +149
are mapped to [explicit-defaults](../docs/renovate/departures.md#explicit-defaults). An extra pin must
keep the current value/version, add a digest to an unpinned dependency and have
no group. Release-age differences map to [departure 23](../docs/renovate/departures.md#departure-23)
no group. Release-age differences map to [minimum-release-age](../docs/renovate/departures.md#minimum-release-age)
only when timestamp evidence places a newer patchula target at least 24 and less than 96
hours old (an empirical ceiling, not Renovate's exact rule) at Renovate's own package-snapshot log timestamp, under an explicit
24-hour policy, with an older Renovate proposal in
the same class. Exact npm major range edits map narrowly to
[departure 25](../docs/renovate/departures.md#departure-25) with identical resolved targets
[npm-range-edits](../docs/renovate/departures.md#npm-range-edits) with identical resolved targets

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Conformance guidance retains retired row names

The guidance still names departures 45 and 23 and promises row IDs, although the page and triage output now use named sections.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread conformance/src/diff.rs
|| !include_str!("../../docs/renovate/departures.md")
.lines()
.any(|line| line.starts_with(&format!("| {} |", rule.departure)))
.any(|line| line.ends_with(&format!("{{#{}}}", rule.departure)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Anchor validation does not require a section

Rules::from_json accepts any line ending in {#id}, including a paragraph. A custom rule can pass validation without a named departure section.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@sweepies
sweepies merged commit 3099e6e into main Oct 21, 2026
14 checks passed
@sweepies
sweepies deleted the docs/departures-sections branch October 21, 2026 22:23
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