SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.25019 · 2026

EncoTESS: Age-Sensitive Encodings from Raw TESS Light Curves

Joshua Speagle, Phil Van-Lane, Ryan Cloutier, Christopher Theissen, Gwendolyn Eadie

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.25019.json · badge: /api/ran/2608.25019.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
philvanlane/encotess community
Papers with Code archive
6 ran · 2 no recorded run
FunctionStatusWhere it lives
MetadataEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("61418d2e6927b44c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MetadataEncoder: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "input_dim": 4,
    "latent_dim": 32,
    "hidden_dims": [64, 64],
    "dropout": 0.1,
    "use_mask": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MetadataEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MetadataEncoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MetadataStandardizer Ran
ran on a synthesized input · constructed an object; no result was computed
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("fb720ad5fdec8fba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MetadataStandardizer: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct a minimal but valid dataset dict for MetadataStandardizer
n_samples = 2

data = {
    'cadence_s': np.array([30.0, 120.0], dtype=np.float32),
    'Tmag': np.array([10.5, 12.3], dtype=np.float32),
    'sector': np.array([15.0, 25.0], dtype=np.float32),
    'camera': np.array([1.0, 2.0], dtype=np.float32),
    'ccd': np.array([3.0, 4.0], dtype=np.float32),
    'parallax': np.array([1.5, 2.1], dtype=np.float32),
    'parallax_error': np.array([0.1, 0.2], dtype=np.float32),
    'G0': np.array([5.2, 6.1], dtype=np.float32),
    'G0_err': np.array([0.05, 0.08], dtype=np.float32),
    'BPRP0': np.array([0.3, 0.5], dtype=np.float32),
    'BPRP0_err': np.array([0.02, 0.03], dtype=np.float32),
    'median_flux': np.array([1000.0, 2000.0], dtype=np.float32),
    'iqr_half_flux': np.array([50.0, 100.0], dtype=np.float32),
}

# Test with default fields
DEFAULT_METADATA_FIELDS = ['cadence_s', 'Tmag', 'sector', 'camera', 'ccd', 'parallax', 'parallax_error', 'G0', 'G0_err', 'BPRP0', 'BPRP0_err', 'median_flux', 'iqr_half_flux']

ARGS = {
    'fields': DEFAULT_METADATA_FIELDS,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MetadataStandardizer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MetadataStandardizer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_multiscale_features Ran
ran; our contract draft was wrong, not the code
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("5181a645637bcb52")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (48,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for h_valid and t_valid
L = 8  # sequence length
H = 4  # hidden size

# h_valid: (L, H) hidden states
h_valid = torch.randn(L, H, dtype=torch.float32)

# t_valid: (L,) monotonic physical time
t_valid = torch.linspace(0, 10, L, dtype=torch.float32)

ARGS = {
    'h_valid': h_valid,
    't_valid': t_valid,
    'n_segments': 4,
    'minmax_edge_skip': 0,
    'diff_weight_mode': 'dt',
    'minmax_quantile': 0.0,
    'subtract_temporal_mean': False,
    'glob_mode': 'uniform',
    'seg_mode': 'equal_count',
    'hidden_size': None,
    'voronoi_cap_factor': 3.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (48,) — shape (48,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
minGRUCell Ran
ran on a synthesized input · constructed an object; no result was computed
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("b89ce9c6360e6d18")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, minGRUCell: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create an instance of minGRUCell
input_size = 3
hidden_size = 4

cell = nn.Module()  # placeholder, will be replaced

# Now create the actual minGRUCell instance
class minGRUCell(nn.Module):
    """Minimal GRU cell (single-step) with a log-domain parallel scan."""

    def __init__(self, input_size: int, hidden_size: int):
        super().__init__()
        self.W_z = nn.Linear(input_size, hidden_size)
        self.W_h = nn.Linear(input_size, hidden_size)

    @staticmethod
    def g(x):
        return torch.where(x >= 0, x + 0.5, torch.sigmoid(x))

    @staticmethod
    def log_g(x):
        import torch.nn.functional as F
        return torch.where(x >= 0, (F.relu(x) + 0.5).log(), -F.softplus(-x))

    @staticmethod
    def parallel_scan_log(log_coeffs, log_values):
        import torch.nn.functional as F
        a_star = F.pad(torch.cumsum(log_coeffs, dim=1), (0, 0, 1, 0))
        log_h0_plus_b_star = torch.logcumsumexp(log_values - a_star, dim=1)
        log_h = a_star + log_h0_plus_b_star
        return torch.exp(log_h)[:, 1:]

    def step(self, x_t, h_prev=None, mask_t=None):
        if h_prev is None:
            h_prev = x_t.new_zeros(x_t.shape[0], self.W_h.out_features)
        z = torch.sigmoid(self.W_z(x_t))
        h_tilde = torch.tanh(self.W_h(x_t))
        h = (1.0 - z) * h_prev + z * h_tilde
        if mask_t is not None:
            keep = (mask_t > 0.5).unsqueeze(-1)
            h = torch.where(keep, h, h_prev)
        return h

    def step_parallel(self, x, h_0, mask=None):
        import torch.nn.functional as F
        k = self.W_z(x)
        log_z = -F.softplus(-k)
        log_coeffs = -F.softplus(k)
        if mask is not None:
            keep = (mask > 0.5).unsqueeze(-1)
            log_z = torch.where(keep, log_z, log_z.new_full((), -1000000000.0))
            log_coeffs = torch.where(keep, log_coeffs, log_coeffs.new_zeros(()))
        log_h_0 = h_0.clamp_min(torch.finfo(h_0.dtype).tiny).log()
        log_h_tilde = minGRUCell.log_g(self.W_h(x))
        return minGRUCell.parallel_scan_log(log_coeffs, torch.cat([log_h_0, log_z + log_h_tilde], dim=1))

cell = minGRUCell(input_size=3, hidden_size=4)

# Create sample inputs for step method
batch_size = 2
x_t = torch.randn(batch_size, 3)
h_prev = torch.randn(batch_size, 4)
mask_t = torch.ones(batch_size)

# Create sample inputs for step_parallel method
x_parallel = torch.randn(batch_size, 5, 3)  # (batch, seq_len, input_size)
h_0_parallel = torch.ones(batch_size, 4) * 0.5  # (batch, hidden_size)
mask_parallel = torch.ones(batch_size, 5)  # (batch, seq_len)

ARGS = {
    'input_size': 3,
    'hidden_size': 4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type minGRUCell — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a minGRUCell output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_identifiers Ran
ran; our contract draft was wrong, not the code
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("efcb7d622e65551e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import h5py
import tempfile
import os

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
h5_path = os.path.join(temp_dir, 'test_data.h5')

with h5py.File(h5_path, 'w') as f:
    # Create metadata group
    meta = f.create_group('metadata')
    
    # Create required datasets
    n_samples = 5
    
    # GaiaDR3_ID (required)
    gaia_ids = [f'Gaia{i:010d}'.encode('utf-8') for i in range(n_samples)]
    meta.create_dataset('GaiaDR3_ID', data=gaia_ids)
    
    # tic (optional)
    meta.create_dataset('tic', data=np.arange(1000, 1000 + n_samples, dtype=np.int64))
    
    # sector (optional)
    meta.create_dataset('sector', data=np.arange(1, n_samples + 1, dtype=np.int64))
    
    # Optional photometry columns
    meta.create_dataset('BPRP0', data=np.random.rand(n_samples))
    meta.create_dataset('e_BPRP0', data=np.random.rand(n_samples) * 0.1)
    meta.create_dataset('MG_quick', data=np.random.rand(n_samples) * 10)
    meta.create_dataset('MG_quick_err', data=np.random.rand(n_samples) * 0.5)
    
    # Create flux dataset (required for shape)
    f.create_dataset('flux', data=np.random.rand(n_samples, 100))
    
    # Create length dataset (required)
    f.create_dataset('length', data=np.full(n_samples, 100, dtype=np.int64))

ARGS = {
    'h5_path': h5_path,
    'indices': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_metadata_table Ran
ran; our contract draft was wrong, not the code
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("40754af1eee84164")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import h5py
import numpy as np
import tempfile
import os

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
h5_path = os.path.join(temp_dir, "test_metadata.h5")

# Create HDF5 file with metadata and flux datasets
with h5py.File(h5_path, 'w') as f:
    # Create flux dataset (required to determine n if indices is None)
    flux_data = np.random.randn(10, 100).astype(np.float32)
    f.create_dataset('flux', data=flux_data)
    
    # Create metadata group with various fields
    metadata_group = f.create_group('metadata')
    metadata_group.create_dataset('cadence_s', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('Tmag', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('sector', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('camera', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('ccd', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('parallax', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('parallax_error', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('G0', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('G0_err', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('BPRP0', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('BPRP0_err', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('median_flux', data=np.random.randn(10).astype(np.float32))
    metadata_group.create_dataset('iqr_half_flux', data=np.random.randn(10).astype(np.float32))

ARGS = {
    'h5_path': h5_path,
    'fields': None,
    'indices': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
BiDirectionalMinGRU Not yet run
unverified (harvested, no recorded run)
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("78eaadfd13fe9ef5")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
philvanlane/encotess/encotess/encode.py
code served (permissive licence) · get_code("3e43da458b564beb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Main sequence stars of spectral types late F through M exhibit systematic variability in photometric light curves, particularly when they are young. Rotational modulation of starspots manifests as quasisinusoidal variability, which enables the measurement of stellar rotation periods (P rot ). Variability can also be stochastic, as in stellar flaring. However, since measurements of stochastic processes are highly dependent on the time of observation, they are typically noisier. Considering that different manifestations of variability have unique observational nuances, models that naturally unify these different types of variability are incredibly useful for stellar characterization. Towards this goal, we have developed EncoTESS: a Time Series Foundation Model (TSFM) trained on a subset of TESS 2-min light curves. EncoTESS is specifically designed to handle the observational noise, heteroskedastic measurements, irregular sampling, and large data gaps common to TESS data. It is also ≈ 1% of the size of a typical literature TSFM, so can be run easily on a modern laptop. EncoTESS encodes light curves into a fixed-size latent parameter space, which can be used to infer physical stellar properties and recovers light curve summary statistics well. EncoTESS outperforms P rot and variability amplitude as age indicators for stars that have not converged onto the slow rotator sequence yet; broadly these include K and M stars ≲ 100 Myr, and M stars ≲ 1 Gyr. We focus on age inference as an application of EncoTESS in this work, but other downstream tasks such as stellar classification could also be explored. The architecture of EncoTESS enables its future extension to TESS light curves of all cadences, and additional surveys such as Kepler and the upcoming PLATO mission. The core EncoTESS framework and library of encodings produced for the stars used in this work are publicly available at https://github.com/philvanlane/encotess.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.25019")
get_code_for_paper("2608.25019")
have("2608.25019")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.25019.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.25019.svg)](https://syntology.ai/paper/2608.25019)

Connect an agent — have() is free.