githubnext/chopinPublic

Let's compose rich plans together

Run Planner through Copilot HarnessAgent

Move the hosted Planner to a disposable HarnessAgent turn backed by a
host-process Copilot SDK adapter. Keep worker-only Copilot sessions isolated
until their structured-output migration, and fail closed on unexpected tools.

Assistant-model: GPT-6 Sol, Claude Sonnet 5, GPT-6 Luna
Assistant-workflow: harness-stack (run e1e96553-487c-4e7f-acb9-9298606eb64c)
Assistant-duration: 70m converged, estimated 90m
Assistant-verification: Bun adapter contract unit passed: Copilot SDK stub, internal result tool, abort, metadata variants
Assistant-verification: Bun metadata regression passed: no-alias live shape failed before fix and passed after; builtin alias and duplicate substitution rejected
Assistant-verification: Bun ci passed: mise exec -- bun run ci (dprint, oxlint, tokens)
Assistant-verification: Bun types passed: mise exec -- bun run types (all workspaces and E2E)
Assistant-verification: Bun test passed: mise exec -- bun test (1567 pass, 2 PostgreSQL skips)
Assistant-verification: Playwright E2E failed: first parallel run 228 passed, 2 responsive-workspace fixture transition failures
Assistant-verification: Playwright E2E passed: flock /tmp/chopin-e2e.lock mise exec -- bun run e2e --workers=1 (230/230 on final checkout)
Assistant-verification: agent-browser Edge E2E passed: signed-in @chopin cited README heading and PR #189, expanded two host tools, refused foreign repository
Assistant-verification: ffmpeg video passed: 182.967s WebM showed scene changes beyond first second
Assistant-verification: oxlint negative probe passed: rejected type-only Copilot SDK import outside adapter
Assistant-verification: qlty metrics and smells passed: analyzed changed session, agent and chat sources; existing complexity reported
User-preference: Keep slice PRs draft until the whole stack is ready; upload only inspected feature-proof evidence.
User-preference: Run Edge checks on github-copilot/gpt-6-luna in the user's Edge without changing other tabs or sign-in settings.
Co-authored-by: Alex Lavaee <lavaman131@github.com>
ALAlex Lavaee authored
ab475efPatch
Parente1fe0b0
28 files changed+2028-1325
StackedSplit
.oxlintrc.json+26 −1
apps/server/package.json+1 −0
apps/server/src/agent/copilot-bridge.ts+0 −31
apps/server/src/agent/permissions.ts+0 −109
apps/server/src/agent/planner.ts+4 −42
apps/server/src/agent/repository.test.ts+131 −0
apps/server/src/agent/tools.test.ts+83 −103
apps/server/src/chat/hosted.test.ts+8 −54
apps/server/src/chat/service.test.ts+83 −265
apps/server/src/chat/service.ts+150 −350
apps/server/src/harness/agents.test.ts+137 −0
apps/server/src/harness/agents.ts+62 −0
apps/server/src/harness/copilot-sdk/adapter.test.ts+346 −0
apps/server/src/harness/copilot-sdk/adapter.ts+416 −0
apps/server/src/harness/copilot-sdk/runtime.test.ts+0 −0

No textual changes.

apps/server/src/harness/copilot-sdk/runtime.ts+0 −0

No textual changes.

apps/server/src/harness/copilot-sdk/workers.test.ts+4 −229
apps/server/src/harness/copilot-sdk/workers.ts+70 −132
apps/server/src/harness/harnesses.test.ts+22 −0
apps/server/src/harness/harnesses.ts+34 −0
apps/server/src/harness/session.test.ts+113 −0
apps/server/src/harness/session.ts+147 −0
apps/server/src/harness/tool-names.ts+18 −0
apps/server/src/jobs/document-summary.ts+2 −2
apps/server/src/jobs/research-workspace.ts+3 −3
apps/server/src/main.ts+9 −4
bun.lock+158 −0
package.json+1 −0