Skip to content

Define local-first universal chat foundation - #2

Merged
Peyton-Spencer merged 1 commit into
ditto-harness-providerfrom
feat/local-chat-foundation
Aug 30, 2026
Merged

Define local-first universal chat foundation#2
Peyton-Spencer merged 1 commit into
ditto-harness-providerfrom
feat/local-chat-foundation

Conversation

@Peyton-Spencer

@Peyton-Spencer Peyton-Spencer commented Aug 28, 2026

Copy link
Copy Markdown

What changed

  • rewrites the V2 plan around the actual product goal: agent tasks and human chats in one desktop app
  • makes local/no-account operation the default and Ditto sign-in an optional cloud-continuity upgrade
  • defines hosted and device transports as separate capabilities for each service
  • adds normalized channel/account/conversation/message/capability contracts shared by desktop, server, web, and future hosted workers

Important boundary

Discrawl is the fast local Discord archive/index. Its device-cache mode is read-only, partial, and never extracts a user token or runs a selfbot. Discord bot transport is modeled separately for official bot-identity sending.

Why

The UI must render from a live capability snapshot instead of promising fake platform parity. This contract supports device and hosted transports side by side while keeping DMs local-only unless the user explicitly enables cloud mirroring.

Validation

  • vp check (passes; repository has pre-existing warnings)
  • vp run typecheck

Stack

Depends on #1. The Discord/iMessage adapter layer is #3.

Note

Add channels.ts contracts module and Ditto Desktop V2 plan doc

  • Introduces channels.ts defining runtime-decodable effect/Schema schemas and types for chat channels: capabilities, conversations, messages, send inputs/results, and ChannelOperationError.
  • Re-exports the new module from the contracts barrel in index.ts so all channel symbols are available via the top-level import path.
  • Adds ditto-desktop-v2-plan.md outlining workstreams, sequencing, decisions, and the release pipeline for Ditto Desktop V2.

Macroscope summarized 9965f94.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Aug 28, 2026
@Peyton-Spencer Peyton-Spencer changed the title Plan local-first universal chat foundation Define local-first universal chat foundation Aug 28, 2026
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.3 KiB 15.1 KiB
Codex Thread snapshot wire 6.9 KiB 7.3 KiB
Codex Live turn WebSocket wire 6.4 KiB 7.8 KiB
Codex Live turn WebSocket decoded 55.6 KiB 66.4 KiB
Codex Live turn messages 11 21
Claude Total thread wire 13.4 KiB 15.1 KiB
Claude Thread snapshot wire 6.9 KiB 7.3 KiB
Claude Live turn WebSocket wire 6.5 KiB 7.8 KiB
Claude Live turn WebSocket decoded 56.4 KiB 66.4 KiB
Claude Live turn messages 11 21

Baseline: unavailable · PR result: 9965f94 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 109.4 KiB
  • Claude decoded thread snapshot: 110.1 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@Peyton-Spencer
Peyton-Spencer force-pushed the feat/local-chat-foundation branch from 04cb6d7 to f51a1b4 Compare August 28, 2026 22:17
@Peyton-Spencer
Peyton-Spencer force-pushed the feat/local-chat-foundation branch from f51a1b4 to 9965f94 Compare August 28, 2026 22:21
@Peyton-Spencer
Peyton-Spencer marked this pull request as ready for review August 30, 2026 20:19
@Peyton-Spencer
Peyton-Spencer merged commit 6de367a into main Aug 30, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant