Skip to content

Web: serve model lookup in the development stand-in - #4091

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/4090-mock-model-lookup
Nov 20, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/4090-mock-model-lookup

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The Web development stand-in now answers GET /v1/models/{id} and GET /models/{id} for the model it already lists. Both routes use the same entry as the listing and the existing API-key check. An unknown ID returns the native model_not_found error shape. The change is confined to the stand-in.

Checks on this head

  • Head commit: f610c2991803faad03eafee0dbd1d8d6fec949ed.
  • Lean checker: 168 findings on base and head, zero new. Contributor preflight, Ruff on both Python files, Zig formatting, and git diff --check passed.
  • python -m pytest -q tests/test_mock_engine.py on M5 Max: the same loopback check fails on main with HTTP 404 for the listed ID and passes on the candidate. It verifies both routes, raw and encoded IDs, listing equality, unknown-ID errors, and the existing key requirement. The built wheel also passed a list-and-retrieve check after installation outside the checkout. The OpenAI Python SDK 2.8.1 failed to retrieve the listed model on main, then passed list, retrieve, and the expected model-not-found error against the installed candidate wheel.
  • Full Web suite on Python 3.11.14 and 3.12.12: standalone was 493 passed, 1 skipped, and 1 inherited failure in each environment. The same version assertion fails on clean main (1.2.10 vs. 1.3.0), tracked in Web stand-in still reports 1.2.10 after the 1.3.0 version bump #4074. The combined tree 90ba68b54b74b260a2d40d785fce6c27dddf4f5d with Web: sync the stand-in version with native 1.3.0 #4077 and web: the loopback startup test sets the stand-in past its warm-up clock #4086 passed 494 tests with 1 skip in each environment.
  • Native on M5 Max, Zig 0.17.0: zig build test test-golden -Dcpu=apple_m1 -j8 --summary all passed on this head. All 924 steps succeeded, 15,629 tests passed, and 136 were skipped. Server golden checks reported zero unexpected differences.
  • CI: The Web UI check passed its tests and build, then failed the generated-file check because rebuilding changes native-version.json from 1.2.10 to 1.3.0. I reproduced the identical one-file drift on the pinned base and PR head with Node 22, with 35/35 UI tests passing in each case. The generated-file check is clean with Web: sync the stand-in version with native 1.3.0 #4077 applied (local composition 368f0ed5fad1fa93d28ed259730d137146598eaa), which addresses Web stand-in still reports 1.2.10 after the 1.3.0 version bump #4074.
  • Current-main replay: Web: sync the stand-in version with native 1.3.0 #4077 merged. The unchanged PR head merges cleanly with main dffe424859c47bab40ce09bfdf91d07eabff23b2 (local merge 4905dc362f0302698fadb934d42512f949c05662). Python 3.11 and 3.12 each passed 494 tests with one skip. Node 22.23.3 passed 35/35 UI tests and built the Web UI with a clean generated-file diff. The older hosted checks above used the pre-Web: sync the stand-in version with native 1.3.0 #4077 base.
  • Not run: Live-model serving or local Windows and Linux runs.

Receipt

N/A. This changes the Python development stand-in only.

Checklist

  • Title, head and receipts agree.
  • The loopback regression fails on base and passes on this head.
  • Comments and docstrings follow repository limits.
  • Public author, committer and privacy checks passed.

Igor Lessio - AIFLOW LABS

@ashhart
ashhart force-pushed the codex/4090-mock-model-lookup branch from f610c29 to 978e258 Compare November 20, 2026 08:26
@ashhart
ashhart merged commit 91c8883 into ashhart:main Nov 20, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit to AIflow-Labs/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
ashhart added a commit to AIflow-Labs/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
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.

Web stand-in cannot retrieve its listed model by ID

2 participants