Skip to content

docs(hooks): align calibration input and fixture requirements - #1348

Merged
NandhaKishorM merged 1 commit into
NandhaKishorM:mainfrom
xinpingzh:docs/reliability-calibration-inputs
Oct 24, 2026
Merged

NandhaKishorM merged 1 commit into
NandhaKishorM:mainfrom
xinpingzh:docs/reliability-calibration-inputs

Conversation

@xinpingzh

Copy link
Copy Markdown
Contributor

What

Document the current calibrate_reliability contract: finite numbers.Real inputs, Python/NumPy boolean labels, sized sequences, and plain Python float cutoffs. Correct the fixture generator's NumPy requirement and describe its committed provenance in the past tense.

Why

The follow-up to #1314 added NumPy support, but docs/hooks/api.md still excludes those inputs and the generator still claims to need only the standard library. This brings both descriptions in line with the shipped implementation. Runtime behavior and fixture data are unchanged.

How it was verified

On Python 3.11, from the repository root:

python -B tests/test_option_stability.py
python -B tests/test_hooks_api.py
python -B laya-ts/scripts/option_stability_fixtures.py --python-root . --check
ruff check laya/ laya-ts/scripts/option_stability_fixtures.py --select=E9,F63,F7,F82,F401,F811 --line-length=120
python -m compileall -q laya/ tests/ laya-ts/scripts/option_stability_fixtures.py
python -m zensical build --strict --clean
git diff --check

The stability suite passed 200 checks; the hook API suite passed 645. All committed stability fixtures matched the Python reference. The strict docs build used the versions pinned in requirements-docs.txt and emitted no griffe: diagnostics.

Model inference and the full TypeScript suite were not run for these documentation-only edits.

Checklist

  • Focused on one change (split unrelated work into another PR)
  • Rebased on the latest main
  • Tests pass locally
  • Docs or examples updated when the public API changed

Related to #1314.

@NandhaKishorM
NandhaKishorM merged commit 7871264 into NandhaKishorM:main Oct 24, 2026
48 of 52 checks passed
NandhaKishorM added a commit that referenced this pull request Oct 24, 2026
33 PRs. Server hardening (#1331, #1332, #1333), TypeScript parity
(#1330, #1336, #1337, #1338, #1339, #1340, #1341, #1342, #1343),
fail-closed input handling in evals and the integrations (#1317, #1318,
#1319, #1320, #1321, #1322, #1326, #1335), exact and faster script
detection (#1334, #1349), JVM and .NET resource handling (#1327, #1328,
#1329, #1346), port goldens and clipping (#1324 excluded, #1325, #1344,
#1345), CI (#1323, #1347, #1348).

Verified before tagging: all 92 suites pass, 610 tests. ruff clean on
both lists. laya-ts 1247 tests across 44 files, tsc --noEmit clean.
Version agrees across pyproject.toml, laya.__version__ and nix/package.nix.
README carries 0.4.15 only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants