Skip to content

fix(compose): restore db-migrate models mount dropped in #101 merge#108

Merged
omob merged 1 commit into
mainfrom
fix/db-migrate-models-mount-regression
Jul 7, 2026
Merged

fix(compose): restore db-migrate models mount dropped in #101 merge#108
omob merged 1 commit into
mainfrom
fix/db-migrate-models-mount-regression

Conversation

@omob

@omob omob commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Regression fix. #100 mounted ./models into db-migrate so the initial-model seed finds the ONNX. #101 edited the same block (adding SEED_DEMO_RULES_ACTIVE) and merged after #100 — its version of the block didn't include the mount, silently reverting F1.

Caught by a fresh-install README walkthrough (down -vup --build):

  • db-migrate logged skipping — models/fraud_model.onnx not found on disk
  • modelVersions empty, segmentThresholds empty
  • predict fell back to flat 0.65 threshold, empty registry

With the mount restored and db-migrate re-run: modelVersions = default ACTIVE, segmentThresholds = 5 rows. Verified on the live stack.

Follow-up hardening worth considering (not in this PR): a CI check that fails if db-migrate lacks the ./models mount, so this can't silently regress a third time.

🤖 Generated with Claude Code

#100 added a ./models:/app/models:ro mount to db-migrate so the
00_initial_model_version seed can find the ONNX file. #101 edited the
same db-migrate block (adding SEED_DEMO_RULES_ACTIVE) and its merge
landed after #100, silently dropping the volumes mount — regressing F1.

Caught by a fresh-install README walkthrough: db-migrate logged
'skipping — models/fraud_model.onnx not found', modelVersions was empty,
and predict fell back to the flat 0.65 threshold. With the mount
restored: model registers as default ACTIVE, 5 segment thresholds seed.
@omob
omob merged commit 4a6b4fc into main Jul 7, 2026
5 checks passed
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.

1 participant