V1a: связать recheck с revision evidence - #355
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
WalkthroughPR изменяет контракты bound-evaluator, добавляет типизированный admission opacity, переводит exact alpha analog на bound evidence и вводит observation snapshot с revision-bound recheck, hold и reuse. Тесты покрывают состояния, provenance, канонический порядок и проверки контекста. ChangesBound evaluator и exact evidence
Observation и revision-bound recheck
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
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 `@crates/labcolors-core/src/analog.rs`:
- Around line 277-286: Remove both tautological debug_assert_eq! checks around
VerifiedAlphaAnalogV1 construction: the comparison of
assessment.outcome().target() with actual(), and the comparison of
verified.evidence().actual with verified.assessment.outcome().actual(). Leave
the construction and surrounding logic unchanged unless an independent invariant
source such as occurrence.visible() is already available.
In `@crates/labcolors-core/src/recheck.rs`:
- Around line 171-181: Вынесите вычисление индексов поверхностей из двойного
цикла в recheck_ready: один раз сопоставьте каждый self.occurrences с индексом
schema до перебора set.cases(), а внутри цикла используйте сохранённые индексы.
Предпочтительно передайте уже проверенные индексы из recheck в recheck_ready,
чтобы убрать повторный binary_search и unreachable!; не добавляйте
unwrap_or/expect без явной обработки гарантированно валидного результата.
🪄 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: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c7680827-36ba-4805-98a3-88cb98d0e40e
📒 Files selected for processing (13)
.cargo/mutants.tomlcrates/labcolors-core/src/analog.rscrates/labcolors-core/src/appearance.rscrates/labcolors-core/src/appearance_graph_tests.rscrates/labcolors-core/src/composition.rscrates/labcolors-core/src/constraint_tests.rscrates/labcolors-core/src/constraints/exact.rscrates/labcolors-core/src/constraints/mod.rscrates/labcolors-core/src/constraints/wcag22.rscrates/labcolors-core/src/lib.rscrates/labcolors-core/src/observation.rscrates/labcolors-core/src/recheck.rscrates/labcolors-core/src/recheck_tests.rs
|
Исправлен точный size-gate без поднятия ратчета. RCA: первая версия дублировала bytes финального occurrence в Локальный одинаковый build (Rust 1.96.0, wasm-pack 0.15.0, wasm-opt 117):
Дополнительно независимое re-review поймало и закрыло доступный unit-конструктор PASS-marker; private tuple-конструктор охраняется anti-vacuum тестом. Финальные локальные доказательства: fmt PASS; clippy -D warnings PASS; core lib 593/0/6; rustdoc -D warnings PASS; git diff check PASS; независимое review APPROVE. @coderabbitai review |
|
🐇 ✅ ✏️ Learnings added
✅ Action performedReview finished.
|
|
Последний unresolved thread исправлен в d755963: индексы поверхностей fallible-bind один раз до case×requirement и до первой композиции; |
|
✏️ Learnings added
✅ Action performedReview finished.
|
|
Canonical run 29697431855 measured the exact Linux x64 artifact at 387135 B, gzip 170555 B, SHA-256 90b174b17f5eee306c5fbd03edaab355f2807b28800ab0c3097fff1fffc07a57. The previous zero-headroom SSOT was 387276 B, so V1a reduced it by 141 B. Commit 50dcfb5 moves the same exact ratchet downward (measurement source, raw/max bytes, basis, pinned budget-document SHA); no headroom was added. Targeted canonical-budget contract is GREEN. @coderabbitai review |
|
✏️ Learnings added
✅ Action performedReview finished.
|
Что изменено
Почему
До этого exact point occurrence можно было проверить локально, но нельзя было доказуемо переиспользовать результат относительно конкретной revision наблюдений. Ручная сборка metadata также позволяла расходиться success/failure evidence.
Границы
Это private proof foundation, не terminal certificate: selection, public/wire API, Pair/WCAG production path, session/output/render identities и transactional sink намеренно не добавлены. Они появятся только вместе с настоящими владельцами.
Проверки
-D warnings, rustdoc-D warnings— green;git diff --check— green.Summary by CodeRabbit
Новые возможности
-0.0канонизируется.Исправления
Тесты