Skip to content

Publish to Otto with native reports and installation lifecycle telemetry - #21

Merged
rafaelaugustos merged 3 commits into
mainfrom
feat/otto-publish
Dec 3, 2026
Merged

rafaelaugustos merged 3 commits into
mainfrom
feat/otto-publish

Conversation

@rafaelaugustos

@rafaelaugustos rafaelaugustos commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Add ota-ns publish to send a packed, signed release to Otto using an app-scoped OTTO_TOKEN. Publication validates local bytes, app-defined channels and optional native fingerprints before transmission. Manifest/directive signing remains unchanged and private keys stay with the publisher.

Initialize remote reporting when a cold launch calls markReady() before the first check. Carry an optional persistent app-scoped installId on lifecycle events and checks; include precise check timestamps, confirmed/prepared release references and the original native recovery time. Older anonymous payloads remain valid. Encode asset path segments to preserve reserved filename characters. EN/PT docs now describe Otto operations and actual lifecycle event names, replacing obsolete Orbit integration guidance and canonical documentation links.

Validation: npm run check passed with 54 tests and documentation builds passed. CI is green on the current head. Tests cover publication/fingerprint validation, request/event compatibility, identified cold-launch reporting and recovery timestamps. Against a local Otto server, a signed R8 Android build on a physical Android 16 device and an iOS 26.2 Simulator Release build completed real CLI publication, signed OTA activation, file reuse, intentional startup crashes, offline recovery, delayed recovery telemetry and signed rollback to embedded. The Console retained two stable installation references. The acceptance details are recorded in the bilingual validation guide.

Related to #20. Console integration: https://github.com/getcortexlabs/otto/pull/6. npm release and real hosted DNS/SMTP acceptance remain separate; this PR does not claim physical iPhone validation or production deployment.

@rafaelaugustos rafaelaugustos changed the title Publish signed OTA bundles and report startup before the first check Publish signed OTA releases with channels, native reports and startup telemetry Dec 3, 2026
@rafaelaugustos rafaelaugustos changed the title Publish signed OTA releases with channels, native reports and startup telemetry Publish to Otto with native reports and installation lifecycle telemetry Dec 3, 2026
@rafaelaugustos
rafaelaugustos merged commit 1ee1c6f into main Dec 3, 2026
1 check 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