Add label-gated CI and documentation dependency map#269
Conversation
Two process improvements: 1. Label-gated CI: rust-test.yml and notebooks.yml jobs now require the `ready-for-ci` label on PRs before running. AI review still runs on every push. This eliminates wasted CI runs during the iterative AI review phase. The `unlabeled` event type ensures removing the label clears passing CI status. 2. Documentation dependency map: docs/doc-deps.yaml maps all 47 source files to their dependent documentation. New /docs-impact skill surfaces impacted docs. Wired into /pre-merge-check, /submit-pr, and /push-pr-update for automatic enforcement. /docs-check gains a `map` validation mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Overall Assessment Executive Summary
Methodology No estimator math changed in this PR. The methodology issue here is a guardrail regression, not a numerical implementation bug.
Code Quality
Performance
Maintainability
Tech Debt No mitigating entry for the P1 items exists in TODO.md, and this PR does not add one, so those findings remain unmitigated and count toward the assessment. Security No findings. Documentation/Tests
Path to Approval
|
P1: Replace job-level if: conditions with a ci-gate job that fails when the ready-for-ci label is absent. Expensive jobs depend on the gate via needs:, so they cannot run (or skip-as-passing) without the label. Resolves the skipped-satisfies-required-checks concern. P1: Restore REGISTRY.md warning coverage by always warning about type: methodology dependencies regardless of drift_risk level. Medium-drift estimators now trigger methodology doc warnings again. P3: Add ROADMAP.md to docs-impact "always check" list, narrow the doc-deps.yaml roadmap type description, and defer unrelated-label and CI-validation items to TODO.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ai-review |
|
🔁 AI review rerun (requested by @igerber) Head SHA: Overall Assessment Executive Summary
Methodology
Code Quality
Performance
Maintainability No findings. Tech Debt
Security No findings. Documentation/Tests
Path to Approval
|
Add type: methodology entries to doc-deps.yaml for linalg.py (variance/cluster-robust SE), utils.py (safe_inference NaN gating), and bootstrap_utils.py (bootstrap/survey bootstrap). These shared helpers implement REGISTRY.md-documented behavior and must trigger methodology warnings when changed. Document label-gated CI workflow in CLAUDE.md. Configure CI Gate as a required status check on main via branch protection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ai-review |
|
🔁 AI review rerun (requested by @igerber) Head SHA: Overall Assessment Executive Summary
Methodology No findings. The only methodology-sensitive part of this PR is the new documentation dependency map and the surrounding warning flow. That map now covers the previously missing shared helpers in docs/doc-deps.yaml:L450-L491, and those entries line up with the actual implementations in diff_diff/utils.py:L152-L186, diff_diff/linalg.py:L437-L513, and diff_diff/bootstrap_utils.py:L424-L457. The command docs are also now consistent about always surfacing Code Quality
Performance
Maintainability No findings. Tech Debt No additional findings. The PR correctly records its deferrable follow-ups in TODO.md:L81-L97, so those items are mitigated under the project's deferred-work policy. Security No findings. Documentation/Tests
Path to Approval
|
Summary
ready-for-cilabel gate torust-test.ymlandnotebooks.ymlso CI tests only run when the PR is ready, eliminating wasted intermediate runs during AI review iterationsdocs/doc-deps.yamlmapping all 47 source files to their dependent documentation, with a new/docs-impactskill and integration into/pre-merge-check,/submit-pr, and/push-pr-updateMethodology references (required if estimator / math changes)
Validation
Security / privacy
Generated with Claude Code