Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
c3ed30e
feat(java): port laya.lang's script and language detection
keemsisi Oct 4, 2026
ee5ba8a
feat(java): the preset question sets, generated and gated word for word
keemsisi Oct 4, 2026
d1ccb91
feat(java): CPython's repr and %.0f, which the router's reasons are b…
keemsisi Oct 4, 2026
62d18cf
feat(java): the routing decision, with its reason strings
keemsisi Oct 4, 2026
f86dc03
feat(java): the Router's load-and-evict lifecycle
keemsisi Oct 4, 2026
e48195a
feat(java): the embedding shortlist, and a Predictor seam for it
keemsisi Oct 4, 2026
553de64
fix(java): what four adversarial reviews found
keemsisi Oct 4, 2026
e5cba4a
fix(java): what the review of the merged runtime found
keemsisi Oct 4, 2026
0b4ebca
fix(java): the pre-tokenizer classified 9,917 code points by the JDK'…
keemsisi Oct 4, 2026
ace0bae
fix(java): a list state was truncated from the wrong end
keemsisi Oct 4, 2026
527e74d
docs(java): document routing, detection, presets and shortlisting
keemsisi Oct 5, 2026
7dc3754
fix(java): the pre-tokenizer's letter class was probed by an unsound …
keemsisi Oct 5, 2026
86593a8
ci(java): a JDK matrix, and split the parity lane along what it costs
keemsisi Oct 5, 2026
2266acf
ci(java): what the review of the new lanes found
keemsisi Oct 5, 2026
fe77867
feat(java): the two Unicode tables laya.email needs
keemsisi Oct 5, 2026
cc8be4a
feat(java): port laya.email, and the measurement that made it usable
keemsisi Oct 5, 2026
7c3764c
ci(java): raise the model-free floors to match the suite the email po…
keemsisi Oct 5, 2026
a57f3c1
fix(java): four defects the email port had outside the BMP
keemsisi Oct 5, 2026
c6fbc97
fix(java): what the adversarial review of the email port found
keemsisi Oct 5, 2026
d732a78
fix(java): negative max_chars, and an extra that shadows a parameter
keemsisi Oct 5, 2026
a61dc8c
docs(java): MODELS.md, a CHANGELOG, and three samples that are run be…
keemsisi Oct 5, 2026
69398f9
fix(java): a test asserted the JDK disagrees with CPython, and on JDK…
keemsisi Oct 5, 2026
3af49cd
fix(java): the shortlist fixture recorded floats at a precision BLAS …
keemsisi Oct 5, 2026
4f0bb2f
fix(java): the drifting scores were never rounded at all
keemsisi Oct 5, 2026
7c308f9
Update release-java.yml
keemsisi Oct 5, 2026
1bd271c
Update release-java.yml
keemsisi Oct 5, 2026
1ee828d
feat(java): Tokenizer.decode, and the four rules the slices found
keemsisi Oct 5, 2026
07e9851
chore(java): validate the Gradle wrapper in every job that runs it, p…
keemsisi Oct 5, 2026
a020bd4
feat(java): WindowPlan, how a long-state scan is sized
keemsisi Oct 5, 2026
271d071
fix(java): the release gate's own comment was disabling it
keemsisi Oct 5, 2026
a72e849
fix(java): keep a1edd45's empty-logit behaviour, keep the single-colu…
keemsisi Oct 5, 2026
228076b
ci(java): one blocking security job, and the first static analysis th…
keemsisi Oct 5, 2026
ce3e3e2
ci: CodeQL over java-kotlin as well as python
keemsisi Oct 5, 2026
26c5f94
ci: CodeQL over the TypeScript SDK as well
keemsisi Oct 5, 2026
a058241
fix(java): a throw from finish() stranded Router's lock
keemsisi Oct 5, 2026
521c553
fix(java): what CodeQL found once it was run locally, and the three f…
keemsisi Oct 5, 2026
4164afc
feat(java): predictLong, and the rules a model cannot be asked to dem…
keemsisi Oct 5, 2026
c3e0f85
chore(java): retrigger CI after a transient Windows failure
keemsisi Oct 5, 2026
3e683fd
feat(java): ConfidenceGate, and the state a boolean cannot express
keemsisi Oct 5, 2026
ba02870
feat(java): typed-decisions end to end, and the pairing that answers …
keemsisi Oct 6, 2026
40a5260
feat(java): decide against a JSON schema, and the values a label is not
keemsisi Oct 6, 2026
cca9970
feat(java): hooks, and the one scan that must not run them
keemsisi Oct 6, 2026
b02761d
fix(java): a non-finite score, CPython's float spelling, and anyOf's …
keemsisi Oct 6, 2026
6b4cac5
fix(java): the typed-decisions identity check now gates the forward pass
keemsisi Oct 6, 2026
e6571d8
fix(java): twelve hook defects, and the measurement behind each fix
keemsisi Oct 6, 2026
28cb344
merge: typed-decisions, structured decide, and hooks into the routing…
keemsisi Oct 6, 2026
bab9fbd
fix(java): the lock CodeQL found once the database had any code in it
keemsisi Oct 7, 2026
e2ed365
ci(java): the floor comments outlived their numbers across the merge
keemsisi Oct 7, 2026
0e91bb4
ci(java): one parity cell at a time, because this change added HF dow…
keemsisi Oct 7, 2026
e82399c
fix(ci): refuse an incomplete Hugging Face snapshot at the fetch
keemsisi Oct 7, 2026
0d0c73e
docs(ci): the safetensors floor is a boundary, not an unclosed gap
keemsisi Oct 7, 2026
23d2734
merge: bring upstream/main in, and the two failures main is already c…
keemsisi Oct 7, 2026
ae63cf6
fix(java): port the shouted-acronym bar, which the fixture already ex…
keemsisi Oct 7, 2026
9979414
fix(java): a per-bucket threshold key must name a bucket an answer ca…
keemsisi Oct 7, 2026
b7cc4da
ci: two parity cells at a time, not one; the guard is the half that m…
keemsisi Oct 7, 2026
253b5c2
fix(java): refuse a criteria map whose iteration order is not defined
keemsisi Oct 7, 2026
669ed84
Merge remote-tracking branch 'upstream/main' into feat/laya-java-routing
keemsisi Oct 7, 2026
c0bcb17
fix(ci): regenerate router.json, and bring the Java and .NET ports to…
keemsisi Oct 7, 2026
be49ba9
fix(dotnet): regenerate the routing goldens for the new default check…
keemsisi Oct 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,17 @@ jobs:
python-version: "3.11"
- run: pip install ruff
- name: Ruff
run: ruff check laya/ --select=E9,F63,F7,F82,F401,F811 --line-length=120
# Two invocations, because the SDK script directories carry pre-existing F401/F811
# import debt that is not worth churning in an unrelated change. They DO get `F82`,
# the undefined-name group, which is a real bug class rather than style: a
# `verify_snapshot(..., name)` whose enclosing parameter was `name_or_path` reached
# review in this repository, and it would have raised `NameError` on every Hugging
# Face download and failed all four .NET parity cells. ruff finds it in under a
# second. Widen the second list to the first's rule set once that debt is paid.
run: |
ruff check laya/ --select=E9,F63,F7,F82,F401,F811 --line-length=120
ruff check laya-java/scripts/ laya-dotnet/tools/ laya-ts/scripts/ \
--select=E9,F63,F7,F82 --line-length=120
- name: Byte-compile every module
run: python -m compileall -q laya/ tests/

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ jobs:
- name: Test regeneration cache and skip guard
run: python laya-dotnet/tools/test_ci_tools.py
- name: Regenerate the routing goldens from Python
env:
# Scoped to this step, not the workflow: a workflow-level `env` reaches every step of
# every job, including `pip`, `gradle`, `semgrep` and third-party actions that have no
# business holding a credential. Only the steps that fetch from the hub get it.
#
# Unauthenticated requests are rate-limited, and a throttled fetch is what arrived
# TRUNCATED here. Unset expands to "", which the implicit token path treats as
# anonymous -- the explicit `token=` call sites normalise "" to None themselves,
# because an empty Bearer header makes httpx refuse the request outright.
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: python laya-dotnet/tools/regen_golden.py --checkpoint routing
- name: Golden drift vs. committed (informational)
run: |
Expand Down Expand Up @@ -101,6 +111,21 @@ jobs:
timeout-minutes: 60
strategy:
fail-fast: false
# One cell at a time. Every cell that needs weights fetches them from the same Hugging
# Face repo, and four in parallel -- alongside `java.yml`'s parity matrix against the same
# repo in the same run -- is what provoked the throttle. `regen_golden.py` now refuses an
# incomplete snapshot at the fetch, so this is no longer the only thing between a
# truncated download and a confusing failure; not provoking the throttle is simply
# cheaper than diagnosing it, and this lane is advisory.
#
# TWO, not one. One was the first attempt and it cost too much: measured from this PR's own
# cells, serialising takes the parity critical path from 10:56 to 30:08. Two keeps the peak
# well below the seven concurrent fetches that provoked the throttle while costing roughly
# half of that. And serialising is no longer the load-bearing half of the fix -- the
# download sites now refuse an incomplete snapshot AT THE FETCH, naming the file, so a
# throttled fetch fails immediately and legibly instead of three minutes later inside a
# tokenizer constructor. This only reduces how often that path is taken.
max-parallel: 2
matrix:
include:
- name: english
Expand Down Expand Up @@ -169,6 +194,16 @@ jobs:
key: laya-onnx-${{ runner.os }}-typed-decisions-${{ hashFiles('laya-dotnet/tools/regen_golden.py', 'laya-dotnet/tools/export_onnx.py', 'laya-ts/scripts/export_onnx.py', 'laya-dotnet/tools/requirements-regen.txt', 'laya/common.py') }}

- name: Export the checkpoints and regenerate their goldens from Python
env:
# Scoped to this step, not the workflow: a workflow-level `env` reaches every step of
# every job, including `pip`, `gradle`, `semgrep` and third-party actions that have no
# business holding a credential. Only the steps that fetch from the hub get it.
#
# Unauthenticated requests are rate-limited, and a throttled fetch is what arrived
# TRUNCATED here. Unset expands to "", which the implicit token path treats as
# anonymous -- the explicit `token=` call sites normalise "" to None themselves,
# because an empty Bearer header makes httpx refuse the request outright.
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
args=()
for c in ${{ matrix.checkpoints }}; do args+=(--checkpoint "$c"); done
Expand Down
Loading
Loading