fold-in-laya #19

Merged
james merged 5 commits from fold-in-laya into main 2026-10-27 15:37:29 +00:00
Owner

Adding laya directly to the centinela project

Adding laya directly to the centinela project
The image runs laya.serve with one local checkpoint, baked in at build
time from the org's generic package registry and verified by SHA-256.
CI builds and pushes the image, runs the security scan, and checks the
wrapper and checkpoint settings.
model.safetensors is written with mode 0600, and COPY made it
root-owned, so the server (UID 10001) could not open it and exited with
'No such file or directory: /models/laya-centinela-r2/model.safetensors'.
Copy the checkpoint with --chown instead.
laya-serve serves the fine-tuned checkpoint that centinela's laya backend
calls, and is trained on centinela's own question battery, so the two change
together. This imports its history as of b920186.

git-subtree-dir: laya
git-subtree-mainline: d818084c27
git-subtree-split: b9201863e6
Build the Laya model server from laya/ as centinela-laya
All checks were successful
security-scan / security-scan (pull_request) Successful in 22s
test / laya (pull_request) Successful in 4s
test / go (pull_request) Successful in 3m11s
96ef7b6f0d
laya-serve now lives in laya/, so its CI moves into this repository's
workflows:

- laya.yml builds the image as colibrisec/centinela-laya and runs only for
  changes under laya/. It tags laya-vX.Y.Z, carrying on from laya-serve's
  v0.0.2, so its tags never mix with centinela's v* releases.
- build.yml skips changes that only touch laya/, so a model change never
  cuts a centinela release.
- test.yml gains the laya checks laya-serve ran (serve.py compiles,
  checkpoint.env is complete).
- A .dockerignore keeps laya/, and any checkpoint downloaded into it, out
  of the centinela image's build context.

The Dockerfile gains the HEALTHCHECK that was in progress in laya-serve,
and the READMEs point at the new location.

🔎 ojo scan results

No findings.

<!-- ojo-scan-summary --> ### 🔎 ojo scan results No findings.
Pin the Laya base image in the FROM lines and set tokenizers in serve.py
All checks were successful
security-scan / security-scan (pull_request) Successful in 27s
test / laya (pull_request) Successful in 4s
test / go (pull_request) Successful in 1m33s
83eabcdc99
OJO flagged three things in laya/Dockerfile:

- dockerfile-latest-tag on both FROM lines. The base was pinned by digest
  in an ARG, but the scanner reads the FROM line alone and sees
  ${PYTHON_IMAGE}. Both FROM lines now name the digest themselves, and the
  test workflow checks that they agree, which is what the shared ARG was
  for.
- dockerfile-secret-env on the ENV block, a false positive: the scanner
  matches TOKEN anywhere in the text, here in TOKENIZERS_PARALLELISM.
  serve.py now sets it before laya imports tokenizers, so the image behaves
  the same and nothing needs suppressing.
james merged commit 5b9810adc4 into main 2026-10-27 15:37:29 +00:00
james deleted branch fold-in-laya 2026-10-27 15:37:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/centinela!19
No description provided.