Skip to content

Fix JET 0.11 QA reports - #631

Draft
ChrisRackauckas-Claude wants to merge 1 commit into
masterfrom
agent/565-x
Draft

ChrisRackauckas-Claude wants to merge 1 commit into
masterfrom
agent/565-x

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

🚧 UNREVIEWED — awaiting review by @ChrisRackauckas. Filed by an AI agent running as @ChrisRackauckas; Chris has not seen this.
Harness: Codex CLI 0.170.0 · Model: gpt-6-luna
Conversation: local session 01a21483-57af-7d41-b781-30281a3f2a2f (no session URL)

report_package under JET 0.11 exposed untyped candidate-count keywords in DYCORS and SOP ND and an untyped integer argument in the GEKPLS likelihood helper. These annotations preserve the integer contract while making the inferred types concrete; regression tests check that non-integer candidate counts fail at the API boundary. JET 0.11 is now included in the QA environment compatibility range.

Verification

  • GROUP=QA JULIA_NUM_THREADS=4 JULIA_NUM_PRECOMPILE_TASKS=4 julia --project -e 'using Pkg; Pkg.test()' — QA/qa.jl | 26 passed; Testing Surrogates tests passed.
  • test/optimization.jl — 803 assertions passed, including candidate sample counts are integers | 2 passed.
  • Failing before: the two new invalid-count checks raised MethodError from zeros(..., 1.5, ...) instead of rejecting the non-integer keyword at the method boundary. Passing after: both checks raise TypeError as expected.
  • JET 0.11.5 report_package decreased from 7 reports to 2. The two remaining reports are JET false positives: one infers (Number, AbstractVector) bounds and one infers (Number, Tuple) bounds through the variadic sampling wrapper. SectionSample accepts lb::T, ub::T with a single shared T, so both mixed-type pairs are unrepresentable at that method and cannot reach those inferred branches.
  • Runic formatter check, typos on changed files, and git diff --check passed.

What I did not verify

  • GROUP=Core JULIA_NUM_THREADS=4 JULIA_NUM_PRECOMPILE_TASKS=4 julia --project -e 'using Pkg; Pkg.test()' did not finish within 3600 seconds; no Core test summary was produced.
  • Downstream packages and GPU paths were not run.

Reviewer focus

Please check the integer keyword contract for DYCORS and SOP ND, and whether the two remaining SectionSample reports are correctly characterized by the shared-bound-type signature. The count-type checks intentionally assert early TypeErrors for floating-point counts that previously failed later during allocation.

Closes #565

Risk assessment

  • Risk: low
  • Blast radius: DYCORS and SOP ND now reject non-integer num_new_samples before entering their integer-only paths; the GEKPLS annotation is internal. No new public names or dependencies are added.
  • Evidence: local GROUP=QA passed 26 checks; the JET 0.11.5 report dropped from seven reports to two explained false positives. CI QA, docs, format, spelling, downgrade tests, and benchmarks passed. Core failed in unchanged AD compatibility coverage: Julia 1 and LTS each report seven Zygote tangent-arithmetic errors; x86 fails while Flux precompiles with a GPUCompiler unbox_int64 LLVM return-type error. I did not compare these failures against the base branch.
  • Independent review: not performed; this job is constrained to work alone. The PR remains a draft for review by @ChrisRackauckas.
  • Merge: needs human review — independent review is pending and CI has three failing Core jobs whose base-branch status is unverified.

🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6-luna
Conversation: local session 01a21483-57af-7d41-b781-30281a3f2a2f (no session URL)

Constrain inferred integer arguments in candidate-count and GEKPLS likelihood paths, add regression coverage, and allow JET 0.11 in the QA environment.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>

Co-Authored-By: Codex <noreply@openai.com>

Agent-Harness: Codex CLI 0.170.0

Agent-Model: gpt-6-luna

Agent-Job: 565-codex

Agent-Session: local session 01a21483-57af-7d41-b781-30281a3f2a2f (no session URL)

This branch has not been deployed

No deployments
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.

JET 0.11 surfaces latent errors in Surrogates (report_package)

2 participants