Skip to content

refactor(cloud): share task contracts and model policy#3616

Draft
richardsolomou wants to merge 2 commits into
mainfrom
posthog-code/share-cloud-task-foundations
Draft

refactor(cloud): share task contracts and model policy#3616
richardsolomou wants to merge 2 commits into
mainfrom
posthog-code/share-cloud-task-foundations

Conversation

@richardsolomou

@richardsolomou richardsolomou commented Jul 21, 2026

Copy link
Copy Markdown
Member

Problem

Desktop and mobile defined overlapping task, run, automation, model, reasoning, and session contracts. Those copies could drift before either host reached shared orchestration.

Refs #2416

Changes

I made @posthog/shared the canonical contract and model-policy layer, then moved the agent, workspace server, and mobile consumers onto it in the same PR. Mobile imports shared contracts directly rather than keeping compatibility re-export files.

Follow-up: #3622

How did you test this?

  • Ran 690 shared tests and 435 mobile tests.
  • Built the required workspace packages and ran agent and workspace-server typechecks.
  • Ran Biome and diff checks.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

@trunk-io

trunk-io Bot commented Jul 21, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit f08bac5.

Generated-By: PostHog Code
Task-Id: 40c57a59-b4e1-4760-8e56-ecd03e9c2f0f
@richardsolomou
richardsolomou force-pushed the posthog-code/share-cloud-task-foundations branch from 8c39d0e to f08bac5 Compare July 21, 2026 12:30
@richardsolomou richardsolomou changed the title refactor(cloud): share portable task foundations refactor(cloud): share task contracts and model policy Jul 21, 2026
Generated-By: PostHog Code
Task-Id: 40c57a59-b4e1-4760-8e56-ecd03e9c2f0f
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