Skip to content

Commit 47ba8ec

Browse files
committed
📝 T022: Tighten IPC contract checklist
1 parent 84dbaa6 commit 47ba8ec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • openspec/changes/add-dweb-authorize

‎openspec/changes/add-dweb-authorize/tasks.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
- Candidate A: mpay-style `plaoc.initAppPlaocEventListener((eventId, url, event) => ...)`
1919
- Candidate B: `@plaoc/plugins` `dwebServiceWorker.addEventListener('fetch', (event) => ...)` (request/response IPC)
2020
- [ ] P2.2 App info contract: `getCallerAppInfo(eventId)` return shape + error semantics
21-
- [ ] P2.3 Address request payload schema (type/main|network|all + chainName + optional signMessage)
21+
- [ ] P2.3 Address request payload schema (type/main|network|all + chainName + optional signMessage + getMain semantics/safety)
2222
- [ ] P2.4 Signature request payload schema (confirm single vs batch)
2323
- mpay accepts `signaturedata` as JSON stringified array (batch-capable); confirm runtime expectation for KeyApp
24-
- [ ] P2.5 Response schema: `respondWith(eventId, path, data)` meaning of `path` + success/error payloads (confirm envelope vs raw array compatibility with mpay)
24+
- Confirm batch result semantics (index-aligned array; items may be `null` or `{ error: true, message: ... }`)
25+
- [ ] P2.5 Response schema: `respondWith(eventId, path, data)` meaning of `path` + success/error payloads (confirm wire envelope like JSON `{ data: ... }` + raw array compatibility with mpay)
2526
- [ ] P2.6 Cleanup semantics: `removeEventId(eventId)` idempotency + required call order
2627
- [ ] P2.7 Timeout/cancel semantics (deadline, user cancel, runtime disconnect, retry/replay guard)
2728

0 commit comments

Comments
 (0)