Open source under Apache 2.0, with a new README
- LICENSE (Apache 2.0), NOTICE with credits (Needle 2, LiteRT-LM, Thinai), LICENSES/Thinai-MIT.txt, SPDX headers on every source file - CONTRIBUTING (fork, branch from develop, PR into develop, maintainer merges), CODE_OF_CONDUCT (Contributor Covenant 2.1), SECURITY, Gitea issue and pull-request templates - README rewritten with screenshots; the detailed guide moved to docs/USER_GUIDE.md - Personal details removed: made-up contact names in examples and tests, a placeholder for the Tailscale address, made-up web-search fixtures in place of saved third-party pages - B-43: the emulator reports Needle as unavailable instead of "init failed" - B-44: chat previews show plain text, not Markdown symbols
This commit is contained in:
1 parent
0bd9888335
commit
917d4632c2
109 files changed
+1080
-179
No files matched your search
+10
-3
@@ -253,6 +253,10 @@ All times IST.
|
||||
| 28 Sep, ~12:0x | Owner saved the signing key in Bitwarden, then asked for a proper branch structure. Explained that alpha, beta and staging are usually stages marked by tags, not branches; owner chose the standard model (`main`, `develop`, `feature/*`, `release/<version>`, `hotfix/*`; alpha/beta/final as tags) and renaming `master` → `main`. Done here and on Gitea, where `main` is now the default |
|
||||
| 28 Sep, ~12:1x | **A branch, tag and Gitea release for every version from 0.1.0.** `dist/` checked first: 17 APKs, versionCodes 1–17 with none missing. The 15 versions before git (0.1.0–0.4.2) got archive branches that hold only their release notes and the APK's SHA-256, since their source no longer exists; their APKs are attached to their releases. All 17 uploaded APKs downloaded back and checked: all identical to `dist/`. Also fixed in this document: 0.3.9's build time (23:42, not 00:05, per the APK) and its place in the release table |
|
||||
| 28 Sep, ~12:3x | Owner: make 0.4.4 the latest working release. Its Gitea release changed from pre-release to **release**; Gitea now shows it as Latest. This is ahead of the usual rule (a full release after phone use), by the owner's choice; the release notes say the phone checklist hasn't been run on it yet |
|
||||
| 28 Sep, ~12:4x | Owner decided to **open-source Stitch**: anyone may use, modify, fork and sell it, with contributions merged only by the owner, and credit appreciated. Chose the **Apache License 2.0** (permissive, commercial use allowed, a NOTICE file that carries the credit, a patent grant, and the same license as every library Stitch uses) over MIT. Copyright: Mohammed Khalid |
|
||||
| 28 Sep, ~12:5x | Pre-publication check of every tracked file and the whole history. Found: possibly real contact names from the owner's bug reports ("Maria Daniya", "Rahul"), the build machine's Tailscale address, the owner's email on every commit, and a saved Bing results page (third-party content) as a test fixture. Owner chose to clean the history as well as the current files |
|
||||
| 28 Sep, ~13:0x | Added `LICENSE` (official Apache 2.0 text), `NOTICE` (owner's credit; Needle 2, LiteRT-LM and Thinai attributions), `LICENSES/Thinai-MIT.txt`, SPDX headers on 93 source files, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md` (Contributor Covenant 2.1), `SECURITY.md`, Gitea issue and pull-request templates. Contact names replaced with made-up ones ("Maria Daniya", "Rahul"), the Tailscale address with a placeholder, and the Bing and DuckDuckGo fixtures with made-up pages in the same structure. 125 tests pass |
|
||||
| 28 Sep, ~13:2x | New README with screenshots taken in the emulator against a demo AI (tools kept in scratch, not the repo); the old README's detail moved to `docs/USER_GUIDE.md`. Two small bugs found while taking them: B-43, B-44 |
|
||||
|
||||
---
|
||||
|
||||
@@ -323,6 +327,8 @@ Every significant failure, in four groups:
|
||||
| B-40 | *(security, found comparing with Thinai)* A web page or message could step outside the "this is other people's text" wrapper | The wrapper was a fixed `<untrusted_content>` tag, so text containing `</untrusted_content>` appeared to end it. Small on-phone models also see chat-template tokens (`<\|im_end\|>`, `<start_of_turn>`) raw, which let text fake a new turn | Ported from Thinai: a fresh random id per wrap, forged markers stripped, control tokens broken with an invisible character, inline images defused | 0.4.4 |
|
||||
| B-41 | *(found in the emulator before release)* A reloaded chat sent the AI questions whose answers had failed, back to back | Error replies were rightly excluded from what the AI sees, but their questions were kept | A failed or stopped exchange is dropped whole, the way the live conversation already did | 0.4.4 |
|
||||
| B-42 | *(found in the emulator)* The model guide said "4 cores up to 0.0 GHz" | The emulator reports its CPU speed as "2" | Speeds under 0.5 GHz are treated as unknown | 0.4.4 |
|
||||
| B-43 | *(found in the emulator, since 0.3.0)* The top bar said "Needle init failed (error -1)" on the x86_64 emulator | x86_64 emulators also list ARM among their supported CPU types, so Stitch assumed the real engine was installed, when the emulator build installs a stand-in that always fails | Stitch checks which native-library folder Android actually installed; the emulator now says "Not available on this CPU (x86_64)". Phones are unaffected | next release |
|
||||
| B-44 | *(found in the emulator)* The chats panel previews showed Markdown symbols ("\*\*Subject:\*\*") | The preview was the raw reply text | Previews go through `MarkdownParser.toPlainText`; a test covers it | next release |
|
||||
|
||||
### C. Mistakes in Claude's own process
|
||||
|
||||
@@ -391,7 +397,7 @@ These are recorded plainly, since they cost the owner time.
|
||||
| `ClockScreenTest` | Reading alarm rows off a Clock app's screen: several time formats, and rows without a time ignored (the B-22/B-30 path) |
|
||||
| `BackupTest` | Backup encryption and the SharedPreferences round-trip: seal/open, wrong passphrase refused, a single flipped character detected, two backups of the same data differ, unicode survives, a non-backup file is rejected, a newer-version backup is refused, the header reads without the passphrase, every preference type returns as the type it was (a Long does not collapse to an Int, a Float does not become a Double), wake-phrase fingerprints survive byte-identical, an unknown type is skipped rather than crashing |
|
||||
| `ChatStoreTest` | Saved chats (Robolectric): titles from the first question, new chat keeps the old one and reuses an empty one, deleting the current chat moves to the newest other, rename, search by text, delete all, the one-time move from the old single chat, failed exchanges dropped whole from what the AI sees, only the last ~40 lines sent |
|
||||
| `WebSearchTest` | DuckDuckGo HTML and Lite parsing (adverts dropped, redirects unwrapped, lookalike hosts refused), a **real saved Bing page** with its tracking links decoded, the real DuckDuckGo challenge page recognised, off-topic results dropped, Tamil words kept whole, question → keywords, the fall-through to Bing with 10-minute resting, "blocked" and "unreachable" reported honestly. Plus a live test (`STITCH_LIVE=1`) against the real engines |
|
||||
| `WebSearchTest` | DuckDuckGo HTML and Lite parsing (adverts dropped, redirects unwrapped, lookalike hosts refused), a Bing-shaped results page (made up, in the real page's structure) with its tracking links decoded, the DuckDuckGo challenge page recognised, off-topic results dropped, Tamil words kept whole, question → keywords, the fall-through to Bing with 10-minute resting, "blocked" and "unreachable" reported honestly. Plus a live test (`STITCH_LIVE=1`) against the real engines |
|
||||
| `UntrustedTest` | Other people's text can't close its wrapper early (random id, forged and old-style markers removed), split forged markers, chat-template tokens broken, inline images defused, ordinary text (including Tamil) unchanged |
|
||||
| `ModelGuideTest` | Catalogue entries unique and well-formed, phone classes, fit on 4 GB vs 12 GB, "not enough storage" unless installed, Tamil strictness (Gemma 3 1B is English-only), untried models capped for phone commands, Gemma 4 recommended on a mid-range phone, a 3 GB phone only offered models that fit, a 32-bit phone told why, speed in plain words, servers on 127.0.0.1 counted as on-phone |
|
||||
|
||||
@@ -569,12 +575,13 @@ No system packages were installed. Nothing outside the home folder and the proje
|
||||
|
||||
| Metric | Value (at 0.4.4, measured 28 Sep unless noted) |
|
||||
|---|---|
|
||||
| Kotlin source files | 67 / 12,908 lines at 0.4.4 (measured 28 Sep; 62 / 11,244 at 0.4.3; 59 / 10,102 at 0.4.1) |
|
||||
| Kotlin source files | 67 / 13,118 lines on `develop` after 0.4.4, license headers included (12,908 at 0.4.4; 62 / 11,244 at 0.4.3; 59 / 10,102 at 0.4.1) |
|
||||
| Native code | `needle_jni.cpp` + x86_64 stub |
|
||||
| Test files / tests | 18 / 124 at 0.4.4 (0 failed, 1 live test skipped by default; 87 at 0.4.3, 80 at 0.4.2, 53 at 0.4.1, 50 at 0.4.0) |
|
||||
| Test files / tests | 18 / 125 on `develop` after 0.4.4 (0 failed, 1 live test skipped by default; 124 at 0.4.4, 87 at 0.4.3, 80 at 0.4.2, 53 at 0.4.1, 50 at 0.4.0) |
|
||||
| Needle eval (64 phrases, threshold 0.4) | tool 48 · tool+args 47 · on-device 24 · **wrong 0** (re-run 28 Sep at 0.4.4: identical) |
|
||||
| Version control | git, since 25 Sep. Tags `v0.4.3` and `v0.4.4` (committed 28 Sep on `release/0.4.4`, merged into `main`, formerly `master`). `dist/` and build outputs excluded. **Online copy since 28 Sep:** private repository `thekhalidsha/stitch` on the owner's Gitea server (`git.mohammedkhalid.in`): `main` (default) and `develop`, a `release/<version>` branch and `v<version>` tag for **every version 0.1.0–0.4.4** (0.1.0–0.4.2 as archive entries: notes and APK fingerprint only, since their source was never kept), and a Gitea release per version with its APK attached, all 17 checked against `dist/` |
|
||||
| On-phone model catalogue | 20 `.litertlm` models from litert-community (sizes from the Hugging Face API, 28 Sep); 8 use cases |
|
||||
| License | Apache 2.0 since 28 Sep 2026 (open source); `NOTICE` carries the credits |
|
||||
| Tools available to the AI | 70 |
|
||||
| Tools available to Needle on-device | 32 |
|
||||
| Deterministic quick commands | flashlight, play X on Y, alarm set/remove/list, timer set/cancel, reminder set |
|
||||
|
||||
Reference in new issue
Block a user