• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ponder-lab / Hybridize-Functions-Refactoring / #2271
80%
main: 80%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-739-6721f597b1febe25181379bb3e6a99b1f85dd4e0
DEFAULT BRANCH: main
Ran 02 Jul 2026 05:32PM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 05:27PM UTC coverage: 79.9% (+0.6%) from 79.286%
#2271

Pull #712

github

khatchad
De-hybridize barren hybrid functions (issue 709 hybrid-to-eager direction)

The eager-to-hybrid barren block landed earlier; its hybrid-to-eager
counterpart was deferred. A hybrid function with a tensor parameter that
performs no tensor computation gains nothing from graph execution, only
tracing overhead, so it is de-hybridized — the symmetric completion of the
benefit signal and a peer of the P2/P3 de-hybridizations.

`Function.check()` gains a Table 2 precondition (new `PreconditionSuccess`
P6): a barren, side-effect-free hybrid function with no primitive parameter
converts to eager; a barren function with side-effects cannot be safely
de-hybridized and fails on `HAS_PYTHON_SIDE_EFFECTS`, mirroring the existing
de-hybridization side-effect gate. Barren takes precedence over the
reconfigure path. `computeTensorComputation` now runs for hybrid
tensor-parameter functions too (the `!isHybrid` gate is dropped), mirroring
the recursion check.

`testBarrenHybridDehybridizes` pins the new behavior. Three existing hybrid
fixtures (`testSpeculativeAnalysis`, `testSpeculativeAnalysis3`,
`testRecursion5`) were incidentally barren and now correctly de-hybridize;
they gain tensor operations so they still exercise speculative inference and
recursion, mirroring the eager-side fixture updates.

The residual false positives (#714, #716) must be resolved before this
direction runs over the corpus, since de-hybridizing a false-barren function
de-optimizes real tensor code.

Refs #709.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FuhM8SsTRB6BraLt3Ph7ZC
Pull Request #712: Add a benefit precondition for barren eager functions

118 of 124 new or added lines in 5 files covered. (95.16%)

64 existing lines in 2 files now uncovered.

1753 of 2194 relevant lines covered (79.9%)

0.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.42
3.74% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Util.java
2
94.32
-0.06% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java

Coverage Regressions

Lines Coverage ∆ File
53
70.74
0.33% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java
11
85.42
3.74% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Util.java
Jobs
ID Job ID Ran Files Coverage
1 #2271.1 02 Jul 2026 05:32PM UTC 32
79.9
Source Files on build #2271
  • Tree
  • List 32
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #712
  • PR Base - main (#)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc