Repository navigation
Feat/2026 11 21/final merge - #95
Merged
Merged
Conversation
- Log the decoded character count instead of the CTC path and result text - Write debug and info lines to the log file only in DEBUG builds - Mark os_log message content private so release logs redact it - Delete the old monocr_logs.txt, which earlier builds filled with text - Add a test that decoding never writes its result to the log file
- Add MODEL_SHA256, the d3d9d5e model hash Android already pins - Check cached and downloaded bytes before use; never cache a mismatch - Evict a cached copy that fails and fetch it again - Refuse a bad download with ModelIntegrityError, without a second fetch - Test the refusal, eviction and cache paths and the hash parity with Android
- functions/monocr.onnx.js answered any origin and nothing called it: production loads the pinned Hugging Face URL directly. Its deletion landed in a194733 by mistake; this commit removes what pointed at it - Drop it from the CI revision checks and the eslint ignore list - Note in config.ts that the local dev model is hash-checked too
- Require Android's monocr.onnx to match the MODEL_SHA256 its engine pins - Require web's MODEL_SHA256 to equal Android's - Pin the committed iOS Core ML files, which have no hash in their source
- Read the log file's size before decoding and inspect only what follows, since the file outlives a run and an older line must not fail this one
- Use crypto/subtle.ConstantTimeCompare instead of != for X-API-Key - Add middleware tests for matching, wrong, prefix, suffixed, empty and missing keys, and for an unset API_KEY
- Limit backup_rules.xml to shared preferences, matching the Android 12+ cloud-backup rules; the database and files stay on the device - Add a test that the legacy rules include exactly what cloud backup does
- Record that capture-quality warnings reach the user on all three apps - Record that web shows its fused-block warning instead of console.warn - Add the missing row: web and the CLI do not level the page background - Replace android.md's ViewModel and screen TODO rows with the real tests - Say in the CI header that the android job runs the Kotlin fixtures
- Add xml-v28/backup_rules.xml: cloud backup takes settings only, while a device-to-device transfer also takes the app data, as on Android 12+ - Flag the transfer include with requireFlags, which API 28 is the first to honour, so it lives in xml-v28 and not in the API 24 to 27 rules - Document that Android 7 and 8 transfer settings only, since they cannot tell a transfer from a cloud backup - Extend BackupRulesTest to check both rule sets against data_extraction_rules.xml
- Bump the toolchain line from go1.26.9 to go1.26.11; on 1.26.9 govulncheck v1.8.0 reports two called standard-library vulnerabilities, GO-2026-6859 in net/http (fixed in 1.26.11) and GO-2026-6809 in crypto/x509 (fixed in 1.26.10), which fails the go job on main - Update the comment above the pin to name the two findings this bump clears - Leave the workflow and the scan unchanged
- Replace CER 0.0100 on 150 lines (2026-08-16) with the model card's current headline: CER 0.0095, 95% interval 0.0079 to 0.0111, on 1,997 synthetic Mon lines, and 0.0061 over all 3,002 lines - Replace the n = 150 limit with the card's statement that these are synthetic lines, not photographed or scanned pages - Name the held-out typeface design as Pyidaungsu, Regular and Bold
- Replace the floating golang:1.26-alpine tag with golang:1.26.11-alpine; the official image sets GOTOOLCHAIN=local, so the toolchain line in go.mod is not applied in the image build and a cached or older 1.26 tag would compile the binary with a patch that still carries GO-2026-6859 and GO-2026-6809 - Note above the FROM line that the tag and the go.mod toolchain line move together
- replace the edit-history sentence the quality job's prose check rejects - keep the rest of the paragraph, which already describes the current state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
How it was verified
pnpm --filter ./apps/web testpnpm --filter ./apps/web run lintcd services/feedback && go vet ./... && go test ./...(if Go changed)cd apps/cli && cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test(if the CLI changed; the PDF tests need Poppler and
MONOCR_PDF_FIXTURE, see apps/cli/README.md)cd apps/android && ./gradlew testDebugUnitTest(needs
JAVA_HOMEon Android Studio's JBR; see apps/android/README.md).The
androidjob runs these on every push. The instrumented tests inapp/src/androidTest/run in no CI job, so run them on a device if you touched them.MonOcrCoretests, if iOS changed:cd apps/ios && sh Scripts/swift-test.sh.The
ios-corejob runs these on every push, so this is a faster copy of agate that does exist. The app target is still not built anywhere.
Claims