Steven Troxler
90d · built 2026-11-06
Performance
What Steven Troxler shipped in the selected window, measured in ETV, and how it compares with the 90 days before it.
Effective capacity
+4.0engineers
delivers like 5.0 (5.0x pre-AI)
Output (ETV)
125.2ETV
+177.9% vs 45.0 prior
Features share
39.7%
+9.1 pp vs prior window
Fixes share
15.6%
−7.4 pp vs prior window
Work mix
39.7% Features9.5% Maintenance31.6% Tests3.6% Docs15.6% Fixes
1,156 commits over 90 days, ending 2026-11-06.
Where this dev ranks
Percentile against the global top-100 leaderboard (all-time totals).
- By commits
- Top 0.1 %
- By Features share
- Top 54 %
Daily performance
Daily ETV, stacked by Features, Maintenance, Tests, Docs and Fixes.
Repository spread
Where this developer's commits land. Concentrated work (top1 > 80%) vs polymath spread (top1 < 30%).
Most impactful commits
Top 10 by ETV in the last 90 days.
- 3.1ETVAdd plumbing for literal-capturing Flag-bound type vars Summary: Pyrefly needs literal-preserving `Flag` type parameters, but adding a new restriction kind creates broad exhaustive-match fanout before source syntax should construct it. Model `Flag` as a passive `Restriction` with its small builtin domain beside `Restriction`, and mechanically teach display, simplification, solving, queries, and reporting to preserve or project that restriction. The end goal here is to allow us to pass flags to the type-level shape DSL with code that looks like this: ``` def f[B: Flag[bool]](b: B) -> Tensor[takes_a_bool(B)] ``` The stubs use this pattern extensively to avoid the need for a combinatorial number of overloads for all kinds of transforms that take flag values. This commit intentionally does not recognize `Flag` annotations or change inference; the following activation commit provides the single source construction point. Splitting passive representation from activation keeps the mechanical type-system fanout reviewable and behavior-neutral. Reviewed By: rchen152 Differential Revision: D114061238 fbshipit-source-id: c9a3acbff0ef9083a75bcadeb57fcaac1c8c1955github.com-facebook-pyrefly · 47ef3b51 · 2026-08-21
- 2.3ETVHandle overflow in dimension canonicalization Summary: Dimension canonicalization combines coefficients, distributes products, flattens division, and evaluates literal powers. Those transformations used unchecked signed arithmetic, so boundary expressions could panic instead of producing a usable gradual dimension. Keep the public `canonicalize` API unchanged while making its internal normalization fallible. Checked overflow now propagates through the complete normalization before the public boundary converts it to the gradual dimension, preventing partially canonical results. Safe boundary expressions remain exact, including unrelated maximum literals and cancellation involving `i64::MIN`. Reviewed By: rchen152 Differential Revision: D113565991 fbshipit-source-id: 4500e41ef4171bb54ab3f9b6239d7e9af38de6d1github.com-facebook-pyrefly · a3944986 · 2026-08-21
- 1.3ETVRepresent symbolic MapIntTuples parameters Summary: Concrete `MapIntTuples` sources reduce eagerly, but symbolic sources must remain until specialization. Preserve those maps in the type representation. At the root of a parameter annotation, retain the mapped member type and derive an ordinary `Sequence` view so calls can be checked before the source shapes are inferred. For example, `make[S: IntTuples](s: S) -> MapIntTuples[lambda T: Box[T], S]` maps forward from `S`. In `consume[S: IntTuples](xs: MapIntTuples[lambda T: Box[T], S]) -> S`, the map becomes a parameter pattern for call-site inference. Deferred lambdas support binder-aware substitution, traversal, and equality. Substitution always visits ordinary call arguments before the MapIntTuples-specific fields. Evaluation applies the same source rules recursively inside unions: tuple members are mapped, gradual-like members use the map fallback, `Never` is preserved, and other members are rejected. The representation and solver integration remain isolated in the dedicated `map_int_tuples` modules. Reviewed By: avikchaudhuri Differential Revision: D117994171 fbshipit-source-id: 0a5c113d44fa15ae297578f066766dedacbc4832github.com-facebook-pyrefly · 7176694b · 2026-09-01
- 1.1ETVAdd an Index type parameter restriction Summary: Add the shape-extension-specific `Index` upper bound for Python index values in ordinary annotations. Values remain normal Pyrefly types; the restriction validates the supported index grammar while preserving literals needed for shape computation. The restriction accepts integer, slice, `None`, ellipsis, and integer-sequence components, including gradual combinations. Errors that depend on applying an otherwise well-formed index—such as repeated ellipses or too many axes—remain the responsibility of the indexing operation, so overload fallback cannot hide them. Keep construction, validation, and lowering inside shape-specific modules. Generic type-system code sees only the shared shape-extension restriction boundary introduced by the preceding refactor. Reviewed By: avikchaudhuri Differential Revision: D118397695 fbshipit-source-id: fbbf010cfd4961397357c5e8d6ef9c6f54265fa8github.com-facebook-pyrefly · 6487c1ce · 2026-09-03
- 1.1ETVActivate single-source literal-preserving `Flag` parameters Summary: Shape DSL functions need literal `int`, `bool`, and `str` configuration values without changing ordinary generic inference. Activate canonical `shape_extensions.Flag[...]` bounds as a shape-owned PEP 695 restriction with exactly one direct, single-value function parameter as the authoritative binding source. The binding layer records canonical import provenance in an explicit ordinary-versus-shape bound enum, while the isolated shape-Flag solver module owns domain, scope, source, and default validation. Calls precompute Flag variables once from the final type-parameter instantiation and carry a nonempty set in `CallContext`, avoiding both allocation for ordinary calls and variable-table lookups in argument/default hot paths. Direct sources retain literals; wrapped occurrences remain compatibility bounds; runtime defaults outrank type-parameter defaults and return hints. Ordinary user classes named `Flag` remain ordinary typing, including shadows inside the `shape_extensions` module. Indirect aliases, reexports, and unsupported legacy `TypeVar` bounds are diagnosed after normal untyping. Query, constructor, subset, CinderX, hover, and Pysa projections use the exact builtin domain, with Flag-specific diagnostics for invalid values and conflicting constraints. Reviewed By: rchen152 Differential Revision: D113199434 fbshipit-source-id: feae0c87f312d66b49609a6cca72a0a385916defgithub.com-facebook-pyrefly · ef4c00b6 · 2026-08-21
- 1.0ETVBootstrap JAX shape stubs Summary: We want to work with the JAX core team on shape typing, and that conversation needs something concrete to react to: stubs they can read, and tests that show what the stubs actually guarantee. Nothing existed for JAX yet. This adds `pyrefly-jax-stubs`, a deliberately small model of JAX built on the harness from the previous commit. It follows the NumPy package rather than the Torch one, because the NumPy layout is the one we want to keep: one suite per test file, discovered by glob, with every file both type checked and executed against the real library so that a stub which is self-consistent but wrong still fails. Registering the package is a one-line addition to `run_tests.py`, so it is covered by the same single CI job as torch and numpy. The stubs cover array creation, broadcasting arithmetic, `matmul`, `reshape`, `transpose`, the axis/keepdims reductions, and the elementwise `jax.nn` activations. `transpose` and `.T` are exact at any rank, including an explicit axis permutation. Shapes are modeled; dtypes are not, matching the Torch stubs. `Array` lives in `jax/_array.pyi` rather than `jax/__init__.pyi` so that `jax.numpy` can refer to it without importing its own parent package, which is also how real JAX arranges it. The type-level DSL is still being built out, so some rules cannot be expressed yet. Where that happens the stub returns a gradual shape and carries a TODO, rather than guessing or rejecting valid code: - `reshape` is exact for an explicit shape. A `-1` placeholder is gradual, because inferring it needs the product of the dimensions, which the DSL does not expose yet; for the same reason a reshape that changes the element count is caught only at runtime. The in-flight Torch migration adds a `dsl.prod` intrinsic that makes both checkable. - `matmul` models 2-D operands, and batched calls are gradual rather than errors. Batched matmul is everywhere in JAX, so rejecting it would be worse than not checking it. The `@` operator stays stricter, because giving it a gradual fallback would also swallow the mismatched-inner-dimension error, which is the most valuable check here. One DSL workaround is called out in the package README because it is not guessable: an `int | tuple[int, ...]` parameter cannot be iterated after narrowing with `is_int_value` alone -- the function silently evaluates to `Unknown` with no diagnostic. Leading with an `is None` check makes the narrowing work, so `reshape_shape` accepts a `None` it then rejects, the same workaround `conv_shape` uses in the Torch stubs. Reviewed By: rchen152 Differential Revision: D117373822 fbshipit-source-id: b958a7eae793a60b204508f440f3dc09867d35fegithub.com-facebook-pyrefly · 622e4163 · 2026-08-25
- 1.0ETVAdd TorchScript shape annotation stripper Summary: Some Meta production paths still compile PyTorch models through TorchScript, which parses source annotations and also consults class `__annotations__`. Add a Meta-specific helper package under `facebook/torch-stubs` that erases Pyrefly shape-only annotations for those legacy TorchScript paths without making source rewriting part of the core `shape_extensions` API. NOTE: We probably should open-source this eventually because torchscript is used some in the industry at large. But it's a non-maintained framework (superseded by `torch.compile` years ago), which means it's only used in very brownfield codebases, and I don't expect any external early adopters to have that flavor. So I prefer to keep it internal for now, and only open-source when we've seen it work in production and have some confidence. We need it internally because lots of core ads and recommender systems models depend on it. Reviewed By: coursekevin Differential Revision: D110196475 fbshipit-source-id: b4f5f9e8aad25d09582d9dc5a08254130ef85d39github.com-facebook-pyrefly · b408bc1f · 2026-08-27
- 1.0ETVCapture named integer keyword arguments Summary: Shape-aware APIs need a precise, opt-in way to carry variadic keyword names and integer values through generic inference. Add a dedicated NamedInts domain and CaptureNamedInts parameter marker so only annotated **kwargs participate, while ordinary callable inference remains unchanged. ___ Differential Revision: D121700519 fbshipit-source-id: 6da0db9437303cb68b044560f6ae1f9001763ffcgithub.com-facebook-pyrefly · 364aa770 · 2026-10-01
- 0.9ETVIsolate shape-extension type parameter restrictions Summary: Hide experimental shape-extension restrictions behind one `Restriction::ShapeExtension` boundary. Generic type-system code sees only ordinary upper-bound projections and shared policies; Flag-specific construction and inspection live in the shape-extension module. The private representation remains exhaustive, so adding an `Index` restriction will require its behavior to be defined for default inference, specialization, display, and upper-bound projection. `IntVar` remains separate because it is a distinct quantified-variable kind rather than bound metadata. This is a behavior-preserving refactor that prevents the upcoming indexing work from adding Flag- and Index-specific branches throughout Pyrefly core. Reviewed By: avikchaudhuri Differential Revision: D118397692 fbshipit-source-id: ad144ec7342f424816bdf03b788cee7be92e0230github.com-facebook-pyrefly · e5f2a647 · 2026-09-03
- 0.9ETVAdd a stub coverage inspection tool (#4852) Summary: Pull Request resolved: https://github.com/facebook/pyrefly/pull/4852 Partial stub packages replace each module they provide, so omissions can hide runtime APIs without a local signal. Add a reusable inspection tool that compares Torch, NumPy, and JAX runtime exports with their shape-aware overlays, including selected class members. The report is intentionally informational for now: it records versions and supports text or JSON output without enforcing a snapshot. Reviewed By: avikchaudhuri Differential Revision: D118978820 fbshipit-source-id: 90ebe49c261ae102cefa529800407b5b816fff4agithub.com-facebook-pyrefly · 02bfecd6 · 2026-09-09