Skip to content

Add package-scoped NullAway measurement and gate proof - #1

Closed
markpollack wants to merge 1 commit into
mainfrom
nullaway-support
Closed

markpollack wants to merge 1 commit into
mainfrom
nullaway-support

Conversation

@markpollack

Copy link
Copy Markdown
Owner

A configured NullAway processor can compile green without checking any package. Add JSpecify package inventory, report-mode measurement, and falsification that plants a nullable return in an existing marked package and requires its NullAway diagnostic.

Replace the outline with a package adoption playbook, dependency/template snippets, and skill routing. NullAway uses Error Prone’s compiler integration; unrelated Error Prone findings can be triaged later. It remains an optional step outside the default gate order. Version 0.3.0 is unreleased.

Validation:

  • Real compiler fixture passes, including disabled-checker, unmarked-package, unrelated-failure, source-restoration, and existing-file controls; CI repeats this locally proven run.
  • An isolated MCP SDK schema package measured three findings, then zero after contract annotations; the plant was caught and restored clean verify passed 452 tests and existing gates.
  • All scripts compile; existing quick/measured assess fixtures pass; skills-ref and Claude plugin validation pass with existing advisory warnings.
  • Installation into a fresh scratch project succeeds; installed PMD measurement and NullAway inventory run.

Scope: Maven root-POM errorprone profile and exact JSpecify package defaults. Class/method annotation coverage and broader target rollouts are not established by this increment.

Inventory JSpecify package defaults, report unique compiler findings, and falsify an existing marked package without enabling or widening the target gate. Keep NullAway optional outside the default order and document selective use through Error Prone integration.

Proven locally with real compiler fixtures and negative controls; SDK scratch package measured 3 to 0, planted violation caught, restored verify green with 452 tests. Existing assess fixtures, skill validators, and installed-skill smoke checks pass.
@markpollack
markpollack deleted the nullaway-support branch October 28, 2026 19:24
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.

1 participant