Skip to content

sync: refresh Community Edition with durable execution and unified compaction - #112

Draft
Luhaozhu wants to merge 2 commits into
mainfrom
sync/upstream-2026-08
Draft

sync: refresh Community Edition with durable execution and unified compaction#112
Luhaozhu wants to merge 2 commits into
mainfrom
sync/upstream-2026-08

Conversation

@Luhaozhu

@Luhaozhu Luhaozhu commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This refreshes the deterministic Community Edition tree from the current full upstream and reconciles it with the latest public main.

Highlights

  • Adds durable execution recovery: chat sequencing, run journals, steer queues, tool-effect ledgers, hook events, usage accounting, and fault-injection coverage.
  • Unifies pre-turn, mid-turn, and post-turn context compaction on one persistent checkpoint pipeline with watermarks, leases, and compare-and-swap publication.
  • Hardens memory writes with a durable outbox, profile revision CAS, replay receipts, and idempotent graph/procedure writers.
  • Adds interactive user questions, execution manifests, context provenance, prompt-cache correctness, and provider context probing.
  • Synchronizes the related frontend flows and adds the UOS 1070 ARM64 desktop client.

Complete tree comparison against public main

Base: 55af8fc4a328d40f930d0cf1bab24cfda7ff5a5f

  • 253 files changed: 109 added, 144 modified, 0 deleted.
  • 44,875 insertions and 2,969 deletions.
  • 201 changed files under src (173 backend, 28 frontend), 26 under desktop-uos, 17 under document, 5 under desktop, and 4 root/docs files.
  • All 2,837 files in the generated CE tree match the submitted worktree byte-for-byte (diff -qr returned no differences).
  • Private product names, deployment IPs, EE-only paths, internal documents, CE derivation tooling, secrets, and real .env files are absent.

Verification

  • Deterministic CE derivation gates: required runtime files, forbidden artifacts, binary whitelist, brand/path scan, and LICENSE.
  • CE import check and CE pytest check.
  • CE frontend production build on Node 20: i18n, dark-mode, TypeScript, Vite, and precompression.
  • Compaction/checkpoint focused backend suite: 67 passed.
  • Merge-sensitive backend suite (context IR, prompt cache, memory outbox/CAS, loop service, providers): 117 passed.

The broader FULL-tree test run completed with 2,965 passed and 17 skipped; 28 environment/setup-contract failures were outside the compaction paths (including read-only filesystem, unavailable Redis/sidecars, and stale test doubles).

…rompts

Sync the community edition with upstream. Highlights:

Background job runtime
- Add the `run_job` subsystem: `jobs` / `internal_jobs` routes, `job_service`,
  `job_runtime`, `job_wakeup`, the `job_tool` agent tool and the `jobs` /
  `job_items` / `job_calls` tables (migration `ce_0006_job_runtime`).
- Jobs now run in the background by default; the callback address is probed
  instead of hardcoded, orphaned jobs are reaped, and timestamps keep their
  timezone.
- Surface progress in chat through `JobProgressStrip`.

Agent manager and plugin manager plugins
- Add two marketplace plugins backed by new MCP servers so sub-agents and
  plugins can be searched, installed, created, edited and submitted from the
  conversation itself, each bundling an authoring skill.

Prompt and tool-description slimming
- Compress the default system and code-execution prompts and 14 MCP tool
  descriptions to cut per-request prefill, keeping every rule intact.
- Correct the stale sandbox limits and the openpyxl contradiction, and
  document `$PY_BIN` as the interpreter that carries the dependencies.

Chat and UI
- Support drag-and-drop ordering of the sidebar chat list, persisted per account.
- Adapt to mobile viewports (safe areas, iOS zoom, touch targets) and add a
  build-time dark-mode gate.
- Fix tool-state refresh and stream segment handling.
Luhaozhu pushed a commit that referenced this pull request Aug 17, 2026
sync: background job runtime, agent/plugin manager plugins, slimmer prompts (#113)

Brings the community edition up to date with upstream:

- Background job runtime, wired up on the CE side (routers, model export and the
  ce_0006 migration), with workflow mode carried through the job wake-up round.
- ce_0006 creates its tables conditionally — ce_0001 already builds them via
  ce_create_all, so an unconditional create_table failed every fresh install.
- New agent-manager and plugin-manager marketplace plugins.
- Prompt and tool-schema slimming (~3k tokens of static prefill saved per request).
- Search rate-limit revert, cross-event-loop sandbox session lock fix, sidebar
  drag-to-reorder and a mobile pass.

Supersedes #111 and #112.
Refresh the deterministic CE tree against the latest public main, including durable execution journals, unified persistent context compaction, memory outbox reliability, interactive user questions, and the UOS desktop client.
@Luhaozhu Luhaozhu changed the title sync: background job runtime, agent/plugin manager plugins, slimmer prompts sync: refresh Community Edition with durable execution and unified compaction Aug 24, 2026
@Luhaozhu
Luhaozhu marked this pull request as draft August 24, 2026 15:07
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