@moxuli/moremote 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +40 -15
  2. package/dist/cli.js +2 -1
  3. package/dist/cloud-client.d.ts +10 -1
  4. package/dist/cloud-client.js +43 -3
  5. package/dist/event-publication.d.ts +6 -0
  6. package/dist/event-publication.js +48 -0
  7. package/dist/journal.d.ts +3 -0
  8. package/dist/journal.js +7 -1
  9. package/dist/limits.d.ts +1 -0
  10. package/dist/limits.js +1 -1
  11. package/dist/live-activity.d.ts +60 -0
  12. package/dist/live-activity.js +131 -0
  13. package/dist/live-directory.d.ts +16 -0
  14. package/dist/live-directory.js +78 -0
  15. package/dist/local-enrollment.d.ts +1 -1
  16. package/dist/local-enrollment.js +1 -1
  17. package/dist/notification-preview.d.ts +29 -0
  18. package/dist/notification-preview.js +75 -0
  19. package/dist/official-client.d.ts +71 -0
  20. package/dist/official-client.js +63 -12
  21. package/dist/runtime.d.ts +2 -1
  22. package/dist/runtime.js +14 -13
  23. package/docs/STATE.md +70 -503
  24. package/docs/configuration.md +21 -1
  25. package/docs/journal/2026-11-14-state-before-0.1.6-part-1.md +400 -0
  26. package/docs/journal/2026-11-14-state-before-0.1.6-part-2.md +115 -0
  27. package/docs/journal/2026-11-15-custom-origin-release.md +35 -0
  28. package/docs/journal/2026-11-15-informative-notifications-and-settings.md +41 -0
  29. package/docs/journal/2026-11-15-remote-activity-local-acceptance.md +85 -0
  30. package/docs/plans/2026-11-10-notification-delivery.md +8 -0
  31. package/docs/plans/2026-11-14-custom-api-origin.md +69 -0
  32. package/docs/plans/2026-11-15-remote-activity-and-shared-events.md +99 -0
  33. package/docs/specs/01-architecture.md +3 -2
  34. package/docs/specs/02-encrypted-delivery.md +25 -0
  35. package/docs/specs/03-api-contract.md +47 -6
  36. package/docs/specs/05-endpoint-and-lifecycle.md +9 -1
  37. package/package.json +2 -2
  38. package/vectors/remote-activity-v2.json +30 -0
package/docs/STATE.md CHANGED
@@ -1,503 +1,70 @@
1
- # Current state — 2026-11-14
2
-
3
- ## Unreleased notification-only source — 2026-11-14
4
-
5
- Cloudflare retains only notifications and explicit notification replies/approvals.
6
- Deleted activity interests, optional surface lane, widget fingerprints and quota
7
- reads. `/state` contains verified daemon identity and exact current bound requests
8
- only. Accepted source reads retain pending requests outside bounded discovery;
9
- resolution/replacement/reconnect fences prevent stale resurrection. Publish only
10
- semantic changes, one final clear, and near-expiry pending hydration. Unknown
11
- ACK retries keep original bytes and cannot replay user actions.
12
-
13
- Fresh full `npm run check` passes237 behavioral tests, types and compilation.
14
- Real SDK and real runtime subprocess consumers verify preserved notification
15
- question/approval encoding,3s control cadence, normal/outage pause fences,
16
- immutable lost acknowledgements, drain/receipt ownership and zero idle surface or
17
- directory calls. Projection tests first exposed leaked title/host/usage fields
18
- and silently dropped oversized requests; all now pass. Read-only independent
19
- review found no remaining authority/replay blocker. No service registration,
20
- installed runtime, npm publication or production host session was changed.
21
- Published0.1.4 below remains the released artifact, not this new source.
22
-
23
- ## Released0.1.4 — 2026-11-13
24
-
25
- - Owner-authorizedv0.1.4 targets tested sourcea5615b6. Final local251/251,
26
- typecheck/build and independent source reviews pass. HostedCI43389151913 passes
27
- complete checks/identity/real upgrade and rollback on Linux, macOS and Windows.
28
- - Release43390548675 succeeds through existing-secret npm/provenance and GitHub
29
- publication. Independent public reads confirm version/latest0.1.4; downloaded
30
- npm/GitHub bytes match SHA1/SHA512, GitHubSHA256SUMS and the exact local artifact.
31
- SHA256: `c0e56b6ce596216fea6b2e546fc153c3833bafebc4c5ecf271d18b6a2d4e5151`.
32
- - No everyday service, ordinary official conversation or production cloud change.
33
- Earlier unreleased/acceptance entries below are historical checkpoints; these
34
- verified publication facts supersede their former release status.
35
-
36
- - Pending questions/approvals now use a stable current-occurrence clock, not an
37
- older task-completion clock. Actual SDK delayed-current/snapshot regressions
38
- first reproduce resolution/replacement resurrection, then the observation fence
39
- prevents journal, binding and notification renewal. Actual same-batch SDK reply
40
- consumers also reproduce caller-continuation resurrection before repair: adapter
41
- journal ownership removes duplicate synchronization, source fingerprints prevent
42
- old request text acquiring a replacement binding, and crypto rechecks currentness.
43
- Cached question/approval consumers fail before exact occurrence capture/drain
44
- binding, then notifications10/10 pass without old clocks consuming new IDs.
45
- Final unchanged-input full check passes251/251,typecheck and build. Independent
46
- Stage A closes both lifecycle blockers; final quality re-review and hosted
47
- three-platform verification remain pending before immutable publication.
48
- - Quality review catches observed in-place mutation followed by valid rename;
49
- both real regressions fail before the pre-retry guard, then resource24/24 pass.
50
- Hosted40e1b73 passes Linux/macOS but Windows rejects test-injected replacement
51
- with a live handle. Tests now verify real refusal, complete original contents
52
- and identity, then actual post-close replacement and strict unsafe-file refusal;
53
- no production error guard or platform coverage is removed. Narrow review passes.
54
-
55
- - Ordinary config rename is now distinguished from an unsafe resource: at most
56
- three reopen attempts, independent descriptor/path validation, retired handles
57
- discarded, strict no-follow/user/private-mode/link/byte/encoding checks retained.
58
- Same-inode content changes remain rejected. Real rename regressions reproduce
59
- the failure before repair, then22resource consumers and the original2runtime
60
- cases pass. Final unchanged-input full check passes235/235,typecheck and build.
61
- Stage A narrow review passes; independent quality/security review and fresh
62
- hosted three-platform verification remain in progress before publication.
63
-
64
- - Hosted1df64e0 exercises all new behaviors successfully on Windows, but its
65
- new cache fixture removes the directory before closing SQLite. Combine cleanup
66
- into one ordered close-then-remove hook; preserve all behavior assertions and
67
- rerun the full matrix on the corrected test source. Production code is unchanged.
68
-
69
- - Corrected8e4e065 Windows cleanup passes; macOS then rejects signaling an
70
- already stopped wrapper's old process group. Preserve independent lock/control/
71
- supervisor/exit assertions and skip redundant group signaling only after those
72
- shutdown proofs. All4actual local lifecycle consumers pass; narrow review agrees.
73
-
74
- - Exact tagv0.1.3 and its successful three-platform CI43380589650 are retained.
75
- Release43381419784 fails its full check before packaging/publication: concurrent
76
- normal runtime config replacement triggers FOREIGN_RESOURCE_LIMIT in a read.
77
- Publish and GitHub Release steps are skipped; no0.1.3 package is submitted.
78
- Preserve that immutable failed tag and prepare0.1.4 after a deterministic repair.
79
-
80
- - First hosted run43378427840 correctly rejects three cross-environment fixture
81
- defects: inherited config/service paths, unsupported Windows POSIX-mode equality,
82
- and an unbound synthetic Paseo home whose local mismatch check had accidentally
83
- contacted the ordinary daemon read-only. Bind the exact fixture home and require
84
- its real handshake, no cloud calls, unchanged config and private-output absence.
85
- - Stricter pending-endpoint controls return409 before activation. Runtime now
86
- activates only after official identity and original expiry/revocation checks;
87
- no command/state lane exists in that cycle, and the next cycle validates controls.
88
- Shared origin quota fences and fixed activation proof remain intact. Independent
89
- narrow review finds no blocker. Final unchanged-input full check passes221/221
90
- and build; hosted portability/packaged smoke are being rerun on this exact delta.
91
-
92
- - Integrated51942a0 and reviewed the final enrollment/setup and packaging delta.
93
- Exact public0.1.2 archive bytes now live in the test fixtures with verified npm
94
- SHA1/SHA512 and matching recorded GitHub SHA256, independent of workstation caches.
95
- - Final full check passes typecheck,221/221 tests and build. Three actual retained
96
- public0.1.2 migration consumers pass. Real packaged activation/failed-start
97
- rollback/retained frontend and clean shutdown pass; no everyday service is installed.
98
- - Release validation accepts additive capability metadata while retaining the
99
- strict1/1/1 protocol tuple and exact source/package capability equality.
100
- Constructor-scoped fixture isolation removes inherited operator credentials;
101
- the smoke retries only read-only unproven-stage probes under its live owned supervisor.
102
- - Independent Stage A and Stage B reviews find no remaining scoped blocker.
103
- Main integration, hosted checks, immutable npm/GitHub publication and independent
104
- registry receipt remain pending. The production cloud remains unchanged.
105
-
106
- ## Scope
107
-
108
- Owner-approved notification/scoped delivery; local native surfaces are app-owned; Apache-2.0. Standalone Node24 companion targeting inspected official SDK/protocol0.15.3. Existing iOS protocol-vector floor is independent and unchanged. OpenUI and broader system extensions remain outside this scope.
109
-
110
- ## Unreleased single-pairing enrollment — source0.1.3, locally accepted
111
-
112
- - Official Paseo pairing is the only normal user pairing. Explicit
113
- `setup --yes` prepares the optional owned CLI service; a connected native
114
- client exchanges the existing per-phone offer through official authenticated
115
- file APIs. No second QR, pasted invitation, terminal command or new relay
116
- configuration is required in the app.
117
- - Discovery is private and bounded; original request identity/expiry, canonical
118
- offer and cloud-create bytes are durable before network I/O. Activation and
119
- expiry remove the private handoff. Revocation, retained active phones, custom
120
- origin, daemon pinning and managed-update opt-out remain authoritative.
121
- - Confirmed review findings are fixed: duplicate runtime startup never rewrites
122
- configuration; setup prepares packages before acquiring shared runtime
123
- ownership, then holds it across load/authenticate/save. A concurrent runtime
124
- either wins before config loading or is refused. Config readers/writers share
125
- the524288-byte encoded bound; old managed0.1.2 setup selects a verified
126
- enrollment-capable current package instead of silently enabling old code.
127
- - Optional admission performs at most one cloud-create attempt per cycle with
128
- its own3-second deadline. Unknown results retain exact retry bytes. No cloud
129
- endpoint, recursive dispatch, polling budget or production deployment changes.
130
- - Node24.13.0 typecheck passes. The final six-file selection passes37/38;
131
- its remaining source-setup assertion incorrectly demanded absence of an
132
- internal managed directory. That implementation-detail assertion is removed,
133
- while actual package-manager refusal and service-entry checks remain. The
134
- corrected consumer passes independently and the compiled build passes.
135
- Both new setup/runtime interleavings failed before the ownership correction.
136
- - Actual unmodified official Paseo0.15.4 and the native transport exchange the
137
- canonical offer, verify the real native claim and unchanged activation proof,
138
- and remove exact private request/response files. One cloud-create body and
139
- zero official agents are observed. The cloud is a local in-process test
140
- double; this is not production, physical-device or APNs acceptance.
141
- - Independent-context source re-review closes the scoped native/CLI findings.
142
- The weaker same-provider route is explicit; unavailable external native
143
- reviews are not approvals. Temporary probe code/state are removed, with
144
- redacted receipts retained outside the repository.
145
- - Source0.1.3 remains unpublished. Public0.1.2, shared production and existing
146
- official data are unchanged. No npm tag, TestFlight upload or phone install
147
- is implied.
148
-
149
- ## Unreleased Share-first onboarding delta — locally verified
150
-
151
- - Approved cross-repository plan: MoRemote
152
- `docs/plans/2026-11-13-share-first-onboarding.md`; CLI ownership is source,
153
- focused consumers and public docs only. No publication or deployment.
154
- - Explicit `pair` opts in to cloud, uses the production endpoint only when no
155
- origin exists, and reuses existing official listen/credential discovery.
156
- Origin validation, daemon pinning, custom targets/origins and retained
157
- pair authority remain intact. Plain load/check/status remain passive.
158
- - Task snapshots carry genuine provider and ISO-8601 creation time alongside
159
- last-user time, through existing bounded projection and authenticated state.
160
- Widget equality includes the new meaningful metadata. No assistant-update
161
- substitution for user recency.
162
- - Added actual CLI enrollment consumers with a synthetic official WebSocket
163
- and isolated relay, passive diagnostics/custom authority/invalid-origin and
164
- daemon-pin cases; added real-SDK encrypted task metadata consumers.
165
- - Node24.13.0 typecheck, 22 focused pair-onboarding/task-projection/activity/CLI
166
- consumers, and compiled build pass. The actual SDK/HTTP boundary exercises
167
- passive diagnostics, authenticated enrollment, custom authority and encrypted
168
- metadata without production enrollment or official-file changes.
169
- - Independent read-only review `run-20261113030053-9f69faa3` approves the scoped
170
- implementation. The same-provider fallback is explicit; this is not physical
171
- acceptance or a new package release. Public0.1.2 and its cached receiver remain
172
- unchanged.
173
-
174
- ## Native service acceptance — 2026-11-12
175
-
176
- - Actual Ubuntu26.04/Node24.13.0/systemd259 user-service acceptance passes:
177
- install/start, authenticated status, QA0.1.1 → synthetic9000.0.2 activation,
178
- failed9000.0.3 startup rollback, normal stop/uninstall and independent absence
179
- of the unit, definition and live runtime. No cloud or real official daemon I/O.
180
- - Initial Windows QA exposed missing native-import BOM and current-reader BOM
181
- handling. Fresh-context specification review then found that persisting a BOM
182
- breaks unchanged public0.1.1 runtimes, despite the current/current QA success.
183
- - The current installer keeps persistent ownership XML BOM-free. Only a private
184
- transient import outside shared state has a BOM; it is removed before `/Run`
185
- and on `/Create` failure. Retained0.1.1 consumers remain usable for bootstrap
186
- and rollback without a storage migration.
187
- - Both new consumer regressions first failed. All20focused lifecycle/resource
188
- consumers, typecheck and build then pass. The frozen reader matches the
189
- independently downloaded public0.1.1 module bytes.
190
- - The new actual Windows Task Scheduler journey passes in183.86seconds:
191
- unchanged registry0.1.1 bootstrap → current synthetic9000.0.2 → deliberately
192
- failed9000.0.3 → recovered9000.0.2, then normal stop/uninstall. Task,
193
- definition, control endpoint and live supervisor/runtime are independently absent.
194
- - Fresh-context specification and quality re-review close the scoped blocker.
195
- This is the explicitly weaker same-provider fallback, not cross-vendor approval.
196
- Earlier168.23second QA acceptance and unavailable provider reviews remain
197
- historical evidence in [[2026-11-11-native-service-acceptance]].
198
- - The candidate is unpublished QA bytes, not a public-to-public release. No real
199
- official host, paid provider, cloud operation or everyday login service is used.
200
- - The shared production cloud remains persistently enabled under the owner's
201
- later decision; these isolated native tests neither use nor disable it. Older
202
- temporary-window shutdown receipts below are historical, not current policy.
203
-
204
- ## Released0.1.2 — 2026-11-12
205
-
206
- - Package and lock root identities select0.1.2; no dependency or compatibility
207
- tuple changes. Owner-approved tagv0.1.2 targets739c76008ea583fa86bfb023dafaa17a3ea9adf4.
208
- - The combined check passes typecheck and180/181 tests. Its remaining legacy-wire
209
- case incorrectly requires an extra read for an old event that may be coalesced.
210
- The test now drains the actual wire and retains the phone-visible no-new-notice
211
- and unchanged-ciphertext assertions without demanding that incidental RPC.
212
- - Both actual SDK wire variants then pass2/2. Build, real packaged activation/
213
- failed-start rollback/aliased frontend/clean stop, release identity validation
214
- and deterministic0.1.2 packaging pass. These overlapping runs are not a new
215
- single green full-suite result.
216
- - Hosted CI43227228037 passes full check/build, release validation and real
217
- packaged upgrade on Ubuntu24.04, macOS15 and Windows2025.
218
- Automatic Release43232455123 passes check/build, upgrade smoke, deterministic
219
- packaging, existing-secret npm publication/provenance and GitHub Release.
220
- - Anonymous registry reads independently confirm version/latest0.1.2 after
221
- asynchronous processing; publication is never repeated. Downloaded GitHub
222
- bytes match SHA256SUMS and npm SHA1/SHA512 integrity. Archive SHA256:
223
- `845fd98470964303a6a86dc696e64c47ac1e7b1ce90b59cd730cdec56d64f9bb`.
224
- - Actual public0.1.1 installation/retained supervisor discovers and downloads
225
- public0.1.2 through its unchanged normal background scheduler, not a custom
226
- fetcher, direct queue, altered package or fake clock. Exact authenticated
227
- status becomes0.1.2; bootstrap/previous remain0.1.1; retained frontend returns
228
- 0.1.2; normal stop exits0 and all owned processes/files are removed, in80.12s.
229
- No login service, real official connection or cloud operation occurs.
230
- An initial fixture prepopulates an unowned state directory and is correctly
231
- rejected before any process starts; initialization is corrected outside the
232
- managed state, preserving strict ownership. Its exact failed fixture is removed.
233
- - Production device reply/approval and remote activity/widget delivery still
234
- require their separate acceptance; the release does not claim those gates.
235
- - Release: https://github.com/moxuli/moremote-cli/releases/tag/v0.1.2
236
-
237
- ## Released activity/widget integration — production acceptance open
238
-
239
- - Published install identity is **`@moxuli/moremote`0.1.2**; command/runtime
240
- remains `moremote-cli`, with existing per-platform service identities.
241
- Activity/widget changes are included; physical production acceptance remains open.
242
- - Implemented locally: authenticated encrypted per-task interests and activity
243
- state, an owned optional2s host lane with250ms exact fallback reads, meaningful
244
- keyed widget fingerprints on existing snapshot publication, and normal-only
245
- quota pauses that preserve eligible terminal recovery. Commands/controls do
246
- not await activity work; shutdown/drain joins it before SDK/journal close.
247
- - Limits/expiry/error/dataflow truth lives in [[configuration]] and
248
- [[specs/03-api-contract#Opt-in task activities and widget reloads]].
249
- Interest expiry is at most8h (8 per pair); state at most600s, fresh acknowledged
250
- renewal around8min. Unknown admissions retain exact bytes. Widget registration
251
- expires24h with native renewal around12h. Missing tasks never imply finish.
252
- - Integration-owner-reported evidence: CLI typecheck and57 tests across
253
- `tests/activity.test.ts`, `tests/cloud-retry.test.ts` and
254
- `tests/runtime-receipt.test.ts` passed. This is targeted local evidence, not
255
- a newly green full suite, released artifact, or physical/device acceptance.
256
- - Next gates: independent integration review and owner verification of the final
257
- delta; authorized native Live Activity/widget rendering, stale/offline and
258
- token replacement/expiry acceptance; separately authorized live cloud/APNs
259
- delivery. APNs200 is provider admission, not delivery. Historical alert proof
260
- below does not cover either new surface.
261
- - A later owner-approved bounded physical acceptance observed all four attention
262
- kinds through the actual official mock → companion → cloud → sandbox APNs path.
263
- Duplicate completion and premature request-resolution bugs were exposed and
264
- corrected locally; this is not real paid-model or production-service evidence.
265
- - The request lifecycle and canonical terminal-identity corrections pass13focused
266
- consumers plus typecheck. A later reverse-order wire regression first failed
267
- both SDK variants, then both passed with typecheck after observation-order
268
- fencing. Independent same-provider review reports no blocker; the preferred
269
- cross-vendor provider was unavailable.
270
- - Earlier bounded sandbox windows restored disabled service and production
271
- provider secrets. The later November12 owner decision now keeps the existing
272
- production service enabled; no temporary watchdog or sandbox swap is allowed.
273
- Genuine device reply/approval receipts and remote ActivityKit/WidgetKit
274
- acceptance remain open. No real-work session or new release is implied.
275
- - Fresh local end-to-end action acceptance passes against the unchanged official
276
- development mock, production runtime, real Pages/Worker/SQLite and a compiled
277
- unchanged native Kit/CryptoKit slice. Exact send and bound plan denial each
278
- execute once and produce authenticated accepted/resolved receipts; initial and
279
- post-settlement identical retries cannot redispatch or change receipts. Both
280
- SQLite journals retain exactly two settled operations. This is not physical
281
- locked-notification UI or whole native-package acceptance. Earlier observer and
282
- incidental-prose harness failures were corrected without product exceptions.
283
-
284
- ## Native macOS service continuation — partial acceptance
285
-
286
- The current compiled source controller passed real launchd install/start/status/
287
- stop/uninstall against the published0.1.1 managed runtime in an unused, isolated
288
- per-user registration. A concurrent graceful-drain control-closure failure was
289
- reproduced and corrected with an authoritative ownership-retirement barrier.
290
- 22 focused shutdown/frontend/control/CLI regressions, typecheck and build pass.
291
- The final registration, plist and owned state were removed; cloud stayed disabled
292
- and no official connection or real-work session was used.
293
-
294
- See [native service evidence](plans/2026-11-11-native-service-acceptance.md).
295
- Independent review closed a reproduced replacement-owner race with fresh post-probe
296
- supervisor/runtime liveness checks. The November12 continuation below additionally
297
- accepts native macOS upgrade/rollback with a real published bootstrap and synthetic
298
- candidates. The November12 native Linux/Windows gates also pass as recorded above;
299
- a next immutable public release and public-to-public delivery remain open.
300
- Published0.1.1 does not contain the later source corrections.
301
-
302
- ## Packaged rollback continuation — 2026-11-12
303
-
304
- The local macOS packaged smoke now exercises production `queueUpdate` and the
305
- retained supervisor with three real npm-installed synthetic package versions:
306
- 9000.0.1→9000.0.2 succeeds; compatible9000.0.3 exits before runtime readiness,
307
- and the supervisor returns to9000.0.2. Authenticated status confirms the recovered
308
- version. Bootstrap/previous remain9000.0.1, failed9000.0.3 is recorded, and
309
- pending/activating are absent. The retained aliased frontend and final clean
310
- shutdown also pass. Only disposable failed-candidate package bytes are altered.
311
-
312
- `npm run build` passes. The first expanded smoke stops during fixture setup
313
- because its new import accidentally omitted `managedEntry`; no supervisor starts.
314
- After restoring that import, the exact smoke passes in133.54seconds, including
315
- owned-process/file cleanup. This is not a newly green full unit suite or new
316
- hosted-platform result. That smoke installs no native login service and changes no
317
- official daemon, cloud, real session or public package. The separate installed
318
- macOS journey is recorded below; Linux/Windows observations remain open.
319
-
320
- ## Installed macOS upgrade continuation — 2026-11-12
321
-
322
- An actual launchd test exposes raw-path ownership rejection after macOS resolves
323
- `/tmp` to `/private/tmp`. Canonical parent aliases now require ordinary leaves,
324
- equal device/inode and equal real paths; leaf symlinks and foreign files remain
325
- rejected. All10service-lifecycle consumers, typecheck and build pass; independent
326
- OpenCode review finds no blocker. Distinct hard links/bind mounts remain refused.
327
-
328
- The real installed-service journey passes in181.29seconds: verified public0.1.1
329
- bootstrap, current9000.0.2 synthetic activation, failed9000.0.3 startup, recovery
330
- to9000.0.2, then normal stop/uninstall with registration/plist/owned successful-run
331
- files removed. An earlier fixture missed the required client-ID prefix; that
332
- `INVALID_CONFIG` startup failure is not a product defect. First-run cleanup safely
333
- used its independently established canonical definition before the product fix.
334
- No real official connection or cloud operation occurred. Details and remaining
335
- public-release/platform limits: [native service evidence](plans/2026-11-11-native-service-acceptance.md).
336
-
337
-
338
- ## Approved identity cutover — locally verified
339
-
340
- The owner approved the complete rename to **MoRemote CLI** on 2026-11-10:
341
- repository/command `moremote-cli`, current public npm `@moxuli/moremote`, entry `bin/moremote-cli.js`,
342
- `MOREMOTE_CLI_HOME`, state `MoRemoteCLI` on macOS/Windows and `moremote-cli`
343
- on Linux, and services `com.moremote.cli` / `moremote-cli.service` / `MoRemoteCLI`.
344
- Ownership/runtime/client/managed-package identities move together.
345
- At the original rename checkpoint there was no released package or installed
346
- service to migrate: no compatibility aliases or automatic adoption of old state.
347
- The later0.1.0/0.1.1 publications are recorded below. Foreign-resource protections remain strict.
348
- The `companionHello` role, crypto salt/envelope schema, APNs categories and
349
- app/Keychain identities are unchanged.
350
-
351
- The source/documentation cutover and root-directory move are complete. Parent
352
- verified the renamed source, real compiled command, isolated local state and
353
- package contents; independent source review accepted the identity contract.
354
- Historical local acceptance below used the former `moremote-companion` identity;
355
- its execution transcript remains historically accurate.
356
-
357
- The owner also approved proceeding toward cloud/Apple activation. Exact
358
- resource, key, permission and billing-sensitive mutations still require
359
- point-of-risk interactive confirmation. No production or device acceptance is
360
- claimed by this approval; publication and everyday-host service installation
361
- remain separate gates.
362
-
363
- ## Managed updates and release — local acceptance complete
364
-
365
- The owner authorized public scoped npm identity `@moxuli/moremote`, retained
366
- private bootstrap/supervisor and cycle-safe automatic runtime activation.
367
- Native service/state/executable identities remain unchanged.
368
- See [decision](decisions/0001-managed-updates.md), [specification](specs/06-managed-updates.md),
369
- [plan](plans/2026-11-10-managed-updates.md) and [publication prerequisites](releasing.md).
370
-
371
- The parent exercised the real packaged upgrade9000.0.1→9000.0.2, retained
372
- bootstrap/previous version, frontend through a parent symlink and clean owned
373
- shutdown. No everyday service was installed. The first full126-case run had123
374
- passes and three lifecycle-readiness failures; after correction, all21focused
375
- control/initialization/frontend cases, types, build and packaged smoke passed.
376
- Do not describe those separate runs as a newly green full suite.
377
-
378
- Independent source review's four findings are closed: initialization cleanup,
379
- termination/parent-death propagation, prerelease precedence and exact scoped
380
- npm registry pinning. The final control-response/readiness delta also has no
381
- actionable P1/P2 finding. Cross-provider review timed out without a report; the
382
- completed independent-context review is not represented as cross-vendor approval.
383
-
384
- Public GitHub repository `moxuli/moremote-cli` exists. The owner authorized the
385
- first public0.1.0 release and reuse of an existing locally protected publishing
386
- token; its npm identity is verified without disclosing the credential. No new
387
- token or npm login is required. Existing organization secret `NPM_TOKEN` is
388
- restricted to this selected CLI repository; the release publish step reuses it.
389
- Workstation0.1.0 publication is independently visible through the anonymous npm
390
- registry. Published tarball SHA256 is
391
- `6bf3cab16245745f5f9d43026687cff880ca081f106f195d6abe40a169c5efd6`;
392
- registry SHA1 matches and a fresh exact public install runs version/help/
393
- configure/status with cloud off, no runtime/pairs and no installed service.
394
- Initial asynchronous404 processing was observed; publication was not repeated.
395
-
396
- Hosted CI42821005843 accepts Ubuntu24.04 and macOS15 check/build/package-upgrade;
397
- Windows2025 reports8control-transport failures (112pass/10explicit POSIX skips).
398
- The correction is patch0.1.1: generation-bound transport selection preserves the
399
- published strict runtime shape; framed peers avoid Windows half-close, while
400
- known legacy POSIX transport is selected before exactly one write, never replayed.
401
- Historical0.1.0 Windows EOF control remains explicitly unavailable/unknown;
402
- managed stop requires real supervisor/runtime retirement evidence.
403
-
404
- Final types,35focused control/lifecycle/CLI consumers, build and actual published
405
- 0.1.0 retained-bootstrap→0.1.1 archive upgrade pass. The latter verifies active/
406
- previous selection, both transport generations, selected frontend and clean
407
- shutdown without a service/cloud/official-data mutation. Independent review
408
- closes the mixed-transport finding with no remaining actionable P1/P2 issue.
409
- Hosted CI42826719991 passes all three jobs: Ubuntu24.04, macOS15 and
410
- Windows2025, including each platform's check/build, release identity validation
411
- and real packaged upgrade. Source is `dad3d964b9ab144b646316a543e5d36151f8c210`.
412
- Tagv0.1.1 targets that exact source. Automatic Release42827612987 completed
413
- successfully using the existing organization secret: check/build, packaged
414
- upgrade, deterministic artifact, signed GitHub provenance, npm submission and
415
- GitHub Release all passed. No new token, login or trusted-publisher setup.
416
-
417
- Independent anonymous npm catalog read confirms latest0.1.1; a fresh installation
418
- by exact public package name runs0.1.1. The downloaded GitHub asset matches its
419
- SHA256SUMS and npm's SHA1/SHA512 integrity. GitHub asset SHA256:
420
- `358574ca750d27c8a116743cd729d7ab830c41fc17045ddfa46ff808ff3bba3b`.
421
- The actual release asset separately runs configure/status with cloud off and
422
- no runtime/service. Both submissions initially reported asynchronous processing;
423
- the same immutable version was never republished.
424
-
425
- Release: https://github.com/moxuli/moremote-cli/releases/tag/v0.1.1
426
- Environment `npm-release` has a `v*` tag-only deployment policy; no new secret
427
- was created.
428
-
429
- ## Locally accepted implementation
430
-
431
- Real CLI configure/check/pair/run/status/service-install/unpair/cloud-disable/update/stop/uninstall; per-user ownership adapters; one-phone deadline-bounded proof activation; WebCrypto HKDF/AES-GCM; standalone02/03/04 contracts and independent envelope/bearer vectors; actual official SDK narrow observation/send/question/approval adapter; SQLite FULL-sync dispatch/control/occurrence/attention journal; bounded encrypted state. Independent-review corrections include endpoint-authenticated cancel/revoke, immutable acknowledgements, source/generation request bindings, exact question mapping, monotonic receipts, separate24h minimal audit retention and attention invalidation. No builds, tests, formatters, actual user services or real host session mutations have been run by this worker; dependency installation used --ignore-scripts.
432
-
433
- The retention wording has independent static Stage A approval. Final operation and lifecycle re-reviews report no remaining findings in their scoped corrections. Executed acceptance is recorded below; it does not replace production or cross-platform service gates.
434
-
435
- The final targeted lifecycle re-review also found no remaining findings among its original six defects and two staged-socket/XML ownership residuals. This covers the inspected source corrections and regression source, not broad security approval or executed platform/service acceptance.
436
-
437
- ## Verification journal — 2026-11-10
438
-
439
- Evidence below was reported by the integration owner; implementation workers did not run checks.
440
-
441
- - Initial combined check attempt timed out after900seconds. Both SDK-wire modes had failed after approximately13seconds each; leaked fixture resources prevented clean process exit and assertion-stack reporting. Build was not reached.
442
- - Corrected synthetic timeline ranges from start/end to the pinned protocol's startSeq/endSeq, validated complete synthetic responses with official schemas, and supplied the required subscriptionId in release responses. All behavioral assertions remain.
443
- - Fixture teardown now owns every SDK, socket, server, journal and timer; it closes the wire before SDK disposal, bounds cleanup waits, propagates fixture errors and runs on failure/timeout. It does not wait indefinitely for a release RPC.
444
- - Focused owner run: `node --import tsx --test tests/official-wire.test.ts` passed2/2 (legacy and owned subscriptions) in26.7seconds, with no hang.
445
- - Remaining selection: typecheck passed; the runner reported66passing entries and one failure caused only by a strict stderr wording assertion encountering Node's legitimate SQLite experimental warning. The incidental exact-output assertion was removed, preserving exit-failure and no-private-child-output invariants; its focused regression then passed1/1. Warnings were not suppressed. The already-passed two wire consumers were excluded from that remaining selection; one empty wire-file runner entry is not an extra behavior test.
446
- - Build then passed. Actual compiled bin help and version commands both succeeded; version is0.1.0. No single combined full-suite green run is claimed.
447
- - Actual three-party journey passed: compiled CLI configured and authenticated read-only to an isolated official0.15.3 daemon; native production Kit/CryptoKit enrolled through actual Pages→Worker→SQLite and verified the exact daemon activation proof.
448
- - Actual foreground runtime status was cloud-enabled with one active synthetic pair, no runtime error and no installed service. A native immutable command retry to a nonexistent synthetic target received an authenticated rejection, not execution; encrypted revoke obtained the companion's durable authenticated acknowledgement, followed by narrow post-revoke outcome audit.
449
- - Public-source privacy check found no private owner/account/team/production identifiers. No official agent was created, no model invoked, no real session mutated, and no public release or cloud deployment occurred.
450
- - Renamed-tree combined `npm run check` passed typecheck,100/100 behavioral tests
451
- and build. Actual compiled help/version/configure/check/status all exited0 in
452
- temporary `MOREMOTE_CLI_HOME`, cloud off and no runtime/service/official
453
- connection. Package dry-run contains54files, the canonical bin and no obsolete
454
- runtime identity in packaged bin/dist; no package was published.
455
- - Cost corrections stop active-pair GET/acknowledged state/receipt amplification
456
- and bound relay-retired recovery. HTTP quota/operator pauses preserve fixed
457
- deadlines, original immutable bytes and independent origin cadence.
458
- - Initial Retry-After selection failed11/24 before correction. Its focused29case
459
- selection passed. A later independent P1 review exposed pause expiry inside a
460
- slow official snapshot; the real-runtime regression failed with PUT preceding
461
- the required GET controls. The cycle-fence correction then passed31/31 focused
462
- cases plus typecheck/build. This delta is not a newly run combined full suite.
463
- - Independent P1 re-review closed with no new blockers. Multi-origin/multiple-pair
464
- actual runtime behavior remains unexercised beyond the scoped client/fixture
465
- checks; source review is not cross-platform or production acceptance.
466
-
467
-
468
- ## Reproduction commands
469
-
470
- 1. npm ci --ignore-scripts
471
- 2. npm run check
472
- 3. node bin/moremote-cli.js --help
473
- 4. node bin/moremote-cli.js --version
474
- 5. With a synthetic temporary MOREMOTE_CLI_HOME, run check, configure, status. Do not install services in ordinary CI.
475
- 6. Against an explicitly isolated official0.15.3 daemon: configure its exact target/home, check --connect, then run; inspect traffic for only narrow subscriptions/read RPCs and no heartbeat/read acknowledgement/push registration. Use synthetic conversations for explicit send and actual pending question/approval tests. Verify accepted admission separately from agent completion and simulate socket loss after dispatch without replay.
476
- 7. Run the independent cloud’s local SQLite-backed Worker, configure explicit loopback development at both ends, pair a synthetic endpoint using the public contract, submit an encrypted command and validate its exact encrypted receipt. No repository runtime imports are needed.
477
-
478
- ### Read-only isolated official smoke
479
-
480
- Use an already-authorized isolated0.15.3 daemon, empty isolated user home and an unused selected port. Do not point this at everyday Paseo data. The companion commands are:
481
-
482
- ```sh
483
- HOME="$SANDBOX/user" PASEO_PASSWORD= node bin/moremote-cli.js configure --data-dir "$SANDBOX/cli" --paseo-home "$SANDBOX/daemon" --target "127.0.0.1:$PASEO_TEST_PORT"
484
- HOME="$SANDBOX/user" PASEO_PASSWORD= node bin/moremote-cli.js check --connect --data-dir "$SANDBOX/cli"
485
- ```
486
-
487
- If no isolated daemon exists, an operator can explicitly authorize and run `paseo onboard --home "$SANDBOX/daemon" --listen "127.0.0.1:$PASEO_TEST_PORT" --no-relay --no-mcp --voice disable --json` with HOME set to "$SANDBOX/user"; afterward `paseo daemon stop --home "$SANDBOX/daemon"`. The owner exercised this isolated read-only setup for local acceptance. It neither created an agent nor called a provider/model. Reuse an already-authorized isolated daemon instead of starting a second one during verification.
488
-
489
- The actual SDK synthetic-wire cases are `tests/official-wire.test.ts` (waits for the real10s liveness ping; asserts no presence/read/Expo; loses admission ack then reconnects without resend) and `tests/official-permission-wire.test.ts` (real structured question response/resolution, same-ID replacement rejection and lost resolution without resend). These are not mock adapter echoes and do not call a real model.
490
-
491
- ### Upstream license evidence
492
-
493
- Official tag v0.15.3 points to commit d91ae138cb931447635e94296023414a58bedcc5. Its root LICENSE expressly grants Apache-2.0 for non-third-party Paseo code and retains third-party terms; matching client/protocol package sources are version0.15.3. Full text and immutable primary URLs are in licenses/Paseo-0.15.3.txt and NOTICE. npm package license fields are absent and were not treated as evidence; no signed npm/source attestation is claimed.
494
-
495
- ## External gates / substrate gaps
496
-
497
- - Independent specification and quality/security reviews and frozen local check results belong to the integration owner.
498
- - Hosted cross-platform CI, exactv0.1.1 tag, npm publication, signed provenance and GitHub assets are verified above. Environment deployment is `v*`-tag-only. No broader branch/tag Ruleset or trusted-publisher migration is claimed.
499
- - The native macOS/Linux/Windows managers now have the scoped acceptance recorded above. Public-to-public next-version activation and corresponding published-version rollback still require their own release evidence; synthetic QA versions are not that proof.
500
- - No everyday login service, real-work-session send/approval or paid-model task was exercised. The temporary macOS registration was removed; it is not daily-host deployment.
501
- - One authorized synthetic sandbox alert was observed on a real iPad through the independent cloud/app path. This is not genuine permission/reply execution, production TestFlight delivery or terminated-app acceptance; emulation and artifact installation do not establish those gates.
502
-
503
- Continue from this file and living specs, not private machine history. Record exercised evidence here before claiming a verified release.
1
+ # Project state
2
+
3
+ ## Remote activity delivery — 2026-11-15, unreleased
4
+
5
+ The owner-authorized v2 path shares CLI attention/activity event ingress and the
6
+ existing APNs infrastructure. Native foreground-started activities receive encrypted
7
+ remote update/end without app keepalive. Widgets remain direct Paseo clients.
8
+ No push-to-start, physical APNs delivery, deployment or release is claimed.
9
+ Local proof: CLI249complete/7final-focused, cloud202, Kit554with5explicit
10
+ skips, App83, real system journeys2and unsigned Release all pass. See
11
+ [[2026-11-15-remote-activity-local-acceptance]].
12
+
13
+ Updated: 2026-11-15
14
+
15
+ ## Informative notification previews — local and unreleased
16
+
17
+ Optional endpoint-encrypted session/host/current-content previews are implemented
18
+ on `fix/notification-content-1115`, with unchanged action/route authority, exact
19
+ retries and original expiry. No new package, Worker or physical APNs acceptance
20
+ is claimed. Final local checks and compatibility/review evidence:
21
+ [[2026-11-15-informative-notifications-and-settings]].
22
+
23
+ ## Current public release
24
+
25
+ `@moxuli/moremote@0.1.6` is independently available and installable. Source
26
+ `c38e2b07adc88e6fd5f4e18ef9c41fb87b51f9b9`, immutable tagv0.1.6,
27
+ CI43611899292 and Release43612669196 succeeded. The existing repository
28
+ environment/scoped publishing secret was reused; no credential or service
29
+ permission changed. macOS15, Ubuntu24.04 and Windows2025 each passed complete
30
+ checks and actual packaged upgrade/rollback; the release job repeated them.
31
+
32
+ New unconfigured setup/discovery and expert pairing use the verified
33
+ `https://api.moremote.moxuli.com` default. Configured Pages/custom origins,
34
+ per-phone authority and exact pending request/offer/create bytes are preserved.
35
+ Both origins are direct with valid TLS and no redirects; Alibaba DNS remains
36
+ authoritative. Widgets/Live Activities do not use this cloud service.
37
+
38
+ Anonymous registry download/install reports0.1.6. npm integrity and GitHub
39
+ archive/SHA256SUMS equality pass. Published SHA256:
40
+ `cce7ddf6d1913ba27e8e07697cc73dbaa575d76b8be7f02fb62603654b29127b`.
41
+ The actual compiled archive uses the new shared default and contains82 files,
42
+ without private paths, credentials or obsolete activity outputs. Evidence:
43
+ [[2026-11-15-custom-origin-release]].
44
+
45
+ ## Verification and preserved limits
46
+
47
+ Local full check:238 tests, zero failures, plus build/upgrade/rollback/validate/
48
+ deterministic pack. After a final test-only Windows file-URL correction, both
49
+ actual CLI fixture suites pass5/5 and final three-platform CI passes in full.
50
+ Initial236/238 failures exposed temporary-HOME service-manager leakage; the
51
+ shared fixture now intercepts exact read queries, records all calls and rejects
52
+ unknown/lifecycle requests, retaining foreign-data refusal assertions. Production
53
+ ownership behavior was not weakened. Independent-context Codex fallback review
54
+ clears the source; the cross-vendor attempt produced no report.
55
+
56
+ Node24.13.0, pinned dependencies and compatibility tuple remain unchanged.
57
+ Notification-only operation, current question/approval identity, immutable
58
+ unknown outcomes, exact retry/revocation and service ownership remain intact.
59
+ This release did not install/update a real everyday service, mutate a real
60
+ provider conversation or verify physical APNs display. Installed managed CLI
61
+ instances discover updates under their existing bounded policy; publication
62
+ does not prove every user's runtime upgraded. Never republish0.1.6 or move its tag.
63
+
64
+ ## Historical state
65
+
66
+ The complete preceding515-line STATE is preserved in order, byte-for-byte
67
+ across [[2026-11-14-state-before-0.1.6-part-1]] and [[2026-11-14-state-before-0.1.6-part-2]], each below500 lines.
68
+ Concatenated SHA256: `82ed7e1d6916da17ed3d0ee759cc5600aab6173006d19e9b7333ece8ba2af3cd`.
69
+ All prior contracts, failures, external gates and operating boundaries remain
70
+ there. Current procedures remain [[releasing]] and [[conventions]].
@@ -14,7 +14,7 @@ existing official daemon and preserve its exact identity, then enable cloud and
14
14
  local enrollment before installing/starting the existing owned service.
15
15
  Configured custom HTTPS origin/target, existing active/revoked phones and update
16
16
  policy are preserved. An absent origin selects
17
- `https://moremote-cloud-ingress.pages.dev`. Source checkout without managed state
17
+ `https://api.moremote.moxuli.com`. Source checkout without managed state
18
18
  binds its own current frontend and stays manual-update. Installed packages and
19
19
  retained managed state use capability-aware setup: if selected code predates
20
20
  enrollment, explicit setup installs/verifies the exact current version before
@@ -24,6 +24,14 @@ packages, pairs/custom origin and the independent auto-update opt-out.
24
24
  never enabled success or an older-package fallback. Nothing patches/upgrades
25
25
  official Paseo or global tools. This capability requires CLI0.1.4 or later.
26
26
 
27
+ The custom-domain default applies only when `apiOrigin` is absent. Every saved
28
+ origin remains authoritative, including the former default
29
+ `https://moremote-cloud-ingress.pages.dev`; setup, expert pairing and runtime do
30
+ not migrate it. Existing per-phone origins, original pending offers and exact
31
+ cloud-create bytes retain their original authority. Both domains must directly
32
+ serve the same notification service; redirects are not a migration mechanism.
33
+ Release the new default only after custom-domain DNS and TLS are verified.
34
+
27
35
  Optional schema-1 fields are `localEnrollment:{home:<absolute user home>}` and
28
36
  at most16 `enrollmentRequests`. Only explicit setup supplies that home; ordinary
29
37
  `run`/tests with legacy configuration never create discovery in the real HOME.
@@ -110,3 +118,15 @@ macOS: user Library/LaunchAgents/com.moremote.cli.plist. Linux: XDG_CONFIG_HOME/
110
118
  ## Update source
111
119
 
112
120
  Only exact `@moxuli/moremote` versions from https://registry.npmjs.org are installed with lifecycle scripts disabled. Immutable private prefixes retain the bootstrap and last-known-good packages. Managed installed-package run and explicit per-user service installation use a retained supervisor, six-hour persisted checks, independent opt-out and whole-cycle IPC drain before candidate activation. Source checkout run stays manual; foreign/read-only resources fail honestly. `status` reports actual runtime version plus active/pending/previous/error/deadline facts. `auto-update --disable` prevents all queued activation until re-enabled. Compatible storage/wire protocol is checked before any drain; incompatible candidates remain manual. No official daemon/global package/Node upgrade. See [full lifecycle](specs/06-managed-updates.md) and [release prerequisites](releasing.md).
121
+
122
+
123
+ ## Notification presentation bounds — unreleased
124
+
125
+ `src/notification-preview.ts` bounds UTF-8 title/host/body to256/128/960 bytes,
126
+ removes invisible controls and generated UI source, and preserves whole graphemes.
127
+ The full APNs payload remains at most4,096 bytes, including both envelopes and
128
+ localized fallback. There is no new user setting, origin rewrite, dependency or
129
+ cloud call. Current-turn canonical history reads are optional, at most30 entries,
130
+ five seconds each and two concurrent tails; expired/stale completion cannot gain
131
+ new authority. Feature support is observed on existing authenticated responses,
132
+ never by changing a failed immutable publication.