Skip to content

refactor(verifiability): finish compile-fail runner cleanup - #2001

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/verify-final-1981
Jun 20, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/verify-final-1981

Conversation

@Sinity

@Sinity Sinity commented Jun 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Finishes the two #1981 closure gaps found after the replay-harness PR: the last direct trybuild runner setup now uses a shared support helper, and the verification policy now names when sampled impact audits are required instead of only mentioning impact explain output.

Problem

The #1981 false-close pass found that prior work had compressed the primitives compile-fail runner and documented selected-test evidence, but sinex-macros still owned a one-off trybuild setup and the policy did not tell future agents when to run xtask impact audit --sample-skips N. That left the verification cleanup issue almost closed but not exhausted.

Solution

  • Add crate/sinex-macros/tests/support/trybuild.rs and route the macros compile-fail test through it while keeping the individual fixtures and stderr outputs explicit.
  • Extend .github/ci-policy.md with impact explain/audit cadence for disputed test-scope claims, impact-planner changes, verification-policy changes, and false-close audits.
  • Extend xtask/docs/verification.md with an impact-plan coverage audit row and concrete command pattern.

Acceptance matrix

Verification

  • env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask test --debug --heavy --include-ignored -p sinex-macros -E 'test(compile_fail_tests)' --format human
    Passed: 1, Ignored: 0.
  • env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask check --changed-strict origin/master --allow-contended-host --format human
    Passed locally.
  • Pre-push xtask check --changed-strict origin/master --allow-contended-host
    Passed: changed-strict checked sinex-macros.

Closes #1981

Summary by CodeRabbit

  • Documentation

    • Updated CI policy requirements to include impact audit evidence recording when change scope is disputed.
    • Enhanced verification documentation with new impact audit verification step and command guidance.
  • Chores

    • Refactored test harness infrastructure to consolidate setup logic.

Problem: #1981 still had two closure gaps after the replay harness cleanup: sinex-macros kept its direct trybuild runner setup, and the verification policy named impact explain without telling agents when to use the sampled impact audit surface for closeout or policy reviews.

What changed: add a sinex-macros trybuild support helper, route the compile-fail test through it, and document impact audit cadence in the CI policy and xtask verification guide.

Verification: env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask test --debug --heavy --include-ignored -p sinex-macros -E 'test(compile_fail_tests)' --format human; env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask check --changed-strict origin/master --allow-contended-host --format human.

Ref #1981
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Free

Run ID: e74c4619-7728-4b95-8ff5-4785ca722de5

📥 Commits

Reviewing files that changed from the base of the PR and between 2ed4a9c and c4cf67a.

📒 Files selected for processing (4)
  • .github/ci-policy.md
  • crate/sinex-macros/tests/compile_fail_test.rs
  • crate/sinex-macros/tests/support/trybuild.rs
  • xtask/docs/verification.md

📝 Walkthrough

Walkthrough

Adds xtask impact audit command documentation to the CI policy and verification docs, including a new CI lane entry and a command pattern example. Separately, extracts a shared trybuild runner helper into crate/sinex-macros/tests/support/trybuild.rs and updates the compile-fail test to delegate to it.

Changes

Impact Audit Documentation

Layer / File(s) Summary
Impact audit guidance in CI policy and verification docs
.github/ci-policy.md, xtask/docs/verification.md
Adds impact explain/audit evidence requirements to the Every PR checklist, a new impact audit CI lane row with sample-size-dependent runtime, a Verification Map row for impact-plan coverage audits with xtask impact audit --sample-skips N, and a concrete --sample-skips 20 command example.

Trybuild Helper Refactor

Layer / File(s) Summary
Shared trybuild helper and compile-fail test update
crate/sinex-macros/tests/support/trybuild.rs, crate/sinex-macros/tests/compile_fail_test.rs
Introduces support/trybuild.rs with a public cases() -> trybuild::TestCases function, then updates compile_fail_test.rs to declare the module via #[path] and call trybuild_support::cases().compile_fail(...) instead of inline trybuild::TestCases::new().

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

A rabbit hops through policy lanes,
Adding audit rows and command chains.
The trybuild helper found its home,
No more inline code to roam.
🐇 cases() called, the tests compile clean,
The neatest test support you've ever seen!


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity Sinity changed the title refactor(verifiability): finish compile-fail runner cleanup (#1981) refactor(verifiability): finish compile-fail runner cleanup Jun 20, 2026
@Sinity
Sinity merged commit 533ac4d into master Jun 20, 2026
2 checks passed
@Sinity
Sinity deleted the feature/refactor/verify-final-1981 branch June 20, 2026 06:48
Sinity added a commit that referenced this pull request Jul 13, 2026
Summary

Finishes the two #1981 closure gaps found after the replay-harness PR: the last direct trybuild runner setup now uses a shared support helper, and the verification policy now names when sampled impact audits are required instead of only mentioning impact explain output.

Problem

The #1981 false-close pass found that prior work had compressed the primitives compile-fail runner and documented selected-test evidence, but sinex-macros still owned a one-off trybuild setup and the policy did not tell future agents when to run `xtask impact audit --sample-skips N`. That left the verification cleanup issue almost closed but not exhausted.

Solution

- Add `crate/sinex-macros/tests/support/trybuild.rs` and route the macros compile-fail test through it while keeping the individual fixtures and stderr outputs explicit.
- Extend `.github/ci-policy.md` with impact explain/audit cadence for disputed test-scope claims, impact-planner changes, verification-policy changes, and false-close audits.
- Extend `xtask/docs/verification.md` with an impact-plan coverage audit row and concrete command pattern.

Acceptance matrix

- Required-input-key suite compression: satisfied by #1983.
- Production-path source/common source-path laws: satisfied by #1988.
- Replay/chaos/summarizer harness compression: satisfied by #1992, #1994, #1998, and #2000.
- Compile-fail runner compression: satisfied by #1997 for `sinex-primitives` and by this PR for `sinex-macros`.
- Gate visibility/cadence: satisfied by #1988 for changed-strict guidance and by this PR for impact explain/audit cadence.

Verification

- `env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask test --debug --heavy --include-ignored -p sinex-macros -E 'test(compile_fail_tests)' --format human`  
  Passed: 1, Ignored: 0.
- `env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask check --changed-strict origin/master --allow-contended-host --format human`  
  Passed locally.
- Pre-push `xtask check --changed-strict origin/master --allow-contended-host`  
  Passed: changed-strict checked `sinex-macros`.

Closes #1981
Sinity added a commit that referenced this pull request Jul 16, 2026
Summary

Finishes the two #1981 closure gaps found after the replay-harness PR: the last direct trybuild runner setup now uses a shared support helper, and the verification policy now names when sampled impact audits are required instead of only mentioning impact explain output.

Problem

The #1981 false-close pass found that prior work had compressed the primitives compile-fail runner and documented selected-test evidence, but sinex-macros still owned a one-off trybuild setup and the policy did not tell future agents when to run `xtask impact audit --sample-skips N`. That left the verification cleanup issue almost closed but not exhausted.

Solution

- Add `crate/sinex-macros/tests/support/trybuild.rs` and route the macros compile-fail test through it while keeping the individual fixtures and stderr outputs explicit.
- Extend `.github/ci-policy.md` with impact explain/audit cadence for disputed test-scope claims, impact-planner changes, verification-policy changes, and false-close audits.
- Extend `xtask/docs/verification.md` with an impact-plan coverage audit row and concrete command pattern.

Acceptance matrix

- Required-input-key suite compression: satisfied by #1983.
- Production-path source/common source-path laws: satisfied by #1988.
- Replay/chaos/summarizer harness compression: satisfied by #1992, #1994, #1998, and #2000.
- Compile-fail runner compression: satisfied by #1997 for `sinex-primitives` and by this PR for `sinex-macros`.
- Gate visibility/cadence: satisfied by #1988 for changed-strict guidance and by this PR for impact explain/audit cadence.

Verification

- `env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask test --debug --heavy --include-ignored -p sinex-macros -E 'test(compile_fail_tests)' --format human`  
  Passed: 1, Ignored: 0.
- `env -u SINEX_ROOT nix develop /realm/tmp/worktrees/sinex-1981-final --command xtask check --changed-strict origin/master --allow-contended-host --format human`  
  Passed locally.
- Pre-push `xtask check --changed-strict origin/master --allow-contended-host`  
  Passed: changed-strict checked `sinex-macros`.

Closes #1981
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.

refactor(verifiability): streamline xtask test patterns without losing affected-test evidence

1 participant