Skip to content

docs: correct unsubstantiated regulatory claims - #47

Merged
LKSNDRTMLKV merged 1 commit into
mainfrom
docs/regulatory-claim-corrections
Jul 25, 2026
Merged

docs: correct unsubstantiated regulatory claims#47
LKSNDRTMLKV merged 1 commit into
mainfrom
docs/regulatory-claim-corrections

Conversation

@LKSNDRTMLKV

Copy link
Copy Markdown
Member

Removes a fabricated regulatory timeline from two published schemas and corrects the CFB delegated-act status. No behaviour change; full gate green.

Detail: dpp-docs/work/sector-expansion/DOC-TRUTH-CORRECTIONS.md

Seven files asserted an "EU Electronics DPP adopted 18 March 2026" that no
instrument supports. Two of them — the electronics v1.0.0 and v1.1.0 schema
descriptions, which ship to crates.io — extended it into a fabricated
timeline naming AI servers, high-end PCBs and foldable phones with a
1 January 2027 second phase. Replaced with the real basis: Reg. (EU)
2023/1670 and 2023/1669, in force 2025-06-20, with dates left to the sector
manifest rather than restated.

cfb.rs described the battery carbon-footprint delegated act as adopted in
March 2025. It has not been adopted; it was due February 2025 and has
slipped. The module now says so and warns against mistaking (EU) 2025/606
(recycling efficiency) for it.

smartphone.rs gains a precision note only: the 2023/1669 method is in
Annex IV point 5 and the class boundaries in Annex II Table 4, and the
enacted index runs 1,00-5,00 against this heuristic's 0-10. The existing
Annex IV citations were correct and are unchanged.

No behaviour change. Full gate green.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot 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

The pull request successfully addresses the removal of speculative regulatory dates and clarifies the status of the Battery CFB methodology. Codacy analysis indicates the changes are up to standards.

However, there is an implementation gap regarding the smartphone repairability heuristic. While the core logic in smartphone.rs correctly labels the 0–10 scale as non-regulatory and distinct from the official EU index, the plugins/sector-electronics/src/lib.rs file still refers to an 'EU minimum' and uses the general 'EU Electronics DPP' mandate term. This inconsistency should be resolved to ensure the documentation aligns with the PR's goal of removing unsubstantiated regulatory claims.

About this PR

  • The removal of specific future dates (March/April 2026) is a necessary maintenance task to ensure the platform does not provide speculative or placeholder regulatory information to users.
1 comment outside of the diff
plugins/sector-electronics/src/lib.rs

line 5 🟡 MEDIUM RISK
The documentation in this file is now inconsistent with the updates made in smartphone.rs. While the header was updated, the compliance rule (line 5) still describes a score < 4.0 as 'below EU minimum', and the plugin identity (line 30) still references the generic 'EU Electronics DPP'. Since the repairability heuristic is now documented as non-regulatory and its 0–10 scale is not comparable to official indices, these references should be updated to avoid implying regulatory enforcement.

Consider the following correction for line 5:

//! - Repairability score < 4.0 → NON_COMPLIANT (below internal minimum standard).

Test suggestions

  • Verify that JSON schemas (v1.0.0 and v1.1.0) remain parseable after description updates.
  • Verify that dpp-calc and dpp-domain crates compile with updated documentation comments.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

@LKSNDRTMLKV
LKSNDRTMLKV merged commit 59263e1 into main Jul 25, 2026
11 checks passed
@LKSNDRTMLKV
LKSNDRTMLKV deleted the docs/regulatory-claim-corrections branch July 25, 2026 16:01
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