Repository navigation
Conversation
…r param
Synthesis of the current-year-age-scoring cluster (2026-05-18). Most of
the cluster work landed earlier today via per-author merges; this commit
adds the two remaining defensive guards that hadn't been picked up:
1. `calculate_rust_score_inline` (node/rustchain_v2_integrated_v2.2.1_rip200.py)
- Adds optional `current_year=None` parameter for deterministic testing
- Clamps age bonus with `max(0, ...)` so a future-dated `mfg_year`
(sensor error, misconfigured firmware) cannot reduce the score
below the no-age baseline
2. `collect_device_oracle` (node/hardware_fingerprint.py)
- Clamps `estimated_age_years` with `max(0, ...)` against a
future-dated release_year (NTP drift, bogus platform claim)
## Credit / cluster contributors
This is a synthesis of work from multiple contributors who independently
identified and patched hardcoded `2025` year-bounds across the codebase.
All filed the same week:
- @saim256 (#4595) — first-poster on `node/hall_of_rust.py`
`calculate_rust_score` current-year fix
- @slashdevcorpse (#4629) — extended `node/hall_of_rust.py` with
testable `current_year=None` parameter + 155-line regression suite
- @galpetame (#4938) — first-poster on `node/hardware_fingerprint.py`
`_current_utc_year()` helper + `collect_device_oracle` age update,
and `calculate_rust_score_inline` current-year fix
- @ethever (#4932, #4942) — testable `current_year=None` parameter
pattern + `max(0, ...)` defensive clamp in
`tools/validator_core_with_badge.py` and the integrated-node
rust-score helper. **This commit applies that defensive pattern to
the integrated-node scoring path that hadn't yet picked it up.**
- @junn-dev (#5659) — `cpu_architecture_detection.py` regex
negative-lookahead anti-collision (Nehalem patterns no longer match
i7-7900K-era brand strings) and additional brand-string alternates
(`Core i7-920` without `(R)/(TM)`)
The earlier merges that landed pieces of this cluster:
- The `_current_utc_year()` helpers in `hall_of_rust.py` and
`hardware_fingerprint.py`
- The `calculate_rust_score(machine, current_year=None)` signature in
`hall_of_rust.py`
- The `simulate_entropy_score` `current_year=None` parameter in
`validator_core_with_badge.py`
- The `_current_utc_year()` in `calculate_rust_score_inline`
- The `(?!\d)` Intel-generation pattern guards in
`cpu_architecture_detection.py`
This commit completes the synthesis with the two remaining defensive
guards that ethever's pattern specifically called for. Bounty credit
splits across the five contributors above per first-poster rule on
each file's distinct contribution.
Co-Authored-By: saim256 <saim256@users.noreply.github.com>
Co-Authored-By: slashdevcorpse <slashdevcorpse@users.noreply.github.com>
Co-Authored-By: galpetame <galpetame@users.noreply.github.com>
Co-Authored-By: ethever <ethever@users.noreply.github.com>
Co-Authored-By: junn-dev <junn-dev@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 18, 2026
Contributor
✅ BCOS v2 Scan Results
What does this mean?The BCOS (Beacon Certified Open Source) engine scans for:
BCOS v2 Engine - Free & Open Source (MIT) - Elyan Labs |
jaxint
approved these changes
May 18, 2026
jaxint
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Great work on this PR. 🚀
This was referenced May 18, 2026
This was referenced May 18, 2026
…detection-2026-05-18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synthesis of the current-year-age-scoring cluster (2026-05-18)
This PR adds two defensive guards that the per-author cluster work for hardcoded
2025year-bounds didn't fully apply. Most of the cluster has landed via earlier per-author merges today; this commit just completes it.What changes
calculate_rust_score_inline(integrated node) — testablecurrent_year=Noneparameter +max(0, ...)clamp on age bonuscollect_device_oracle(hardware_fingerprint) —max(0, ...)clamp onestimated_age_yearsagainst future-datedrelease_yearWhy
A future-dated
mfg_yearorrelease_year(sensor error, NTP drift, misconfigured firmware, malicious claim) must not produce a negative age that corrupts scoring downstream. ethever's #4942 introduced this defensive pattern; this PR applies it to the two scoring paths that hadn't yet picked it up.Cluster credit
node/hall_of_rust.pycurrent_year=None+ 155-line regression suitehardware_fingerprint.py_current_utc_year()helper + integrated-node rust-score current-year fixmax(0, ...)pattern + testable parametercpu_architecture_detection.pyIntel-generation pattern anti-collisionBounty credit splits across the five contributors per first-poster rule on each file's distinct contribution.