Skip to content

feat(model): publish calibrated Reference ranges for Rust, PHP, and Dart - #143

Merged
avidianity merged 2 commits into
mainfrom
feat/calibrated-reference-ranges
Nov 22, 2026
Merged

avidianity merged 2 commits into
mainfrom
feat/calibrated-reference-ranges

Conversation

@avidianity

Copy link
Copy Markdown
Owner

Summary

Calibrate and publish 20-repository pre-2023 Reference ranges (10th to 90th percentile, matching ADR 0008) for the built-in Rust, PHP, and Dart Language plugins, record them in ADRs 0010, 0011, and 0012, and update README.md with the unified 4-language Reference ranges table.

Tier

Tier 2 from the tier check: updates reference_ranges() in codeint-lang-rust, codeint-lang-php, and codeint-lang-dart, adds shared codeint_model::scan::build_reference_ranges, adds ADRs 0010–0012, and updates conformance tests and documentation.

Task

Owner request to run calibrated 20-repo Reference range panels before cutting the next release:

  • Run 20-repository pre-2023 panels for Rust, PHP, and Dart with codeint 0.2.1 (ac42e2f)
  • Record panels, exclusions, statistics, and decisions in ADRs 0010, 0011, and 0012
  • Wire Reference ranges into codeint-lang-rust, codeint-lang-php, and codeint-lang-dart
  • Update Seam 2 conformance assertions (expect_reference_ranges: true), plugin HOW-TO.md pages, and README.md

Fail-first test

  • Test: crates/plugin-host/tests/conformance.rs (expect_reference_ranges: true for Rust, PHP, Dart) and plugin conformance tests
  • Before the change: reference_ranges() returned Vec::new() for Rust, PHP, and Dart
  • After the change: all four built-in Language plugins return calibrated Reference ranges and pass Seam 2 conformance.

Checks

Check Result
cargo test --locked --package codeint-lang-rust --package codeint-lang-php --package codeint-lang-dart --package codeint-plugin-host --test conformance passed
cargo clippy --workspace --all-targets --locked -- -D warnings passed
cargo xtask merged-result passed
./target/release/codeint diff origin/main passed
lefthook pre-commit hooks passed

Safety proof

  • Safety fact: Reference ranges are purely informational context bands with no code, fixtures, or text from panel repositories entering the codebase.
  • Proof: crates/plugin-host/tests/conformance.rs validates all four metrics' Reference ranges (0.0 <= low <= high <= 1.0) for Rust, PHP, and Dart.
  • interrogate: none run below Tier 3.

Runtime evidence

Measured 60 pre-2023 public repositories (20 Rust, 20 PHP, 20 Dart) with codeint 0.2.1 (ac42e2f); full per-repository tables and exclusions are recorded in ADRs 0010, 0011, and 0012.

Gaps

  • Deferred coverage: none
  • Pre-existing failures: none
  • Environmental failures: none

@github-actions github-actions Bot added the tier-3 Tier 3 from the tier check label Nov 22, 2026
@avidianity
avidianity merged commit e173049 into main Nov 22, 2026
9 checks passed
@avidianity
avidianity deleted the feat/calibrated-reference-ranges branch November 22, 2026 07:55
@avidianity avidianity mentioned this pull request Nov 22, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tier-3 Tier 3 from the tier check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant