Skip to content

feat(agent): bring the Ask AI harness into Forge Agent - #67

Merged
forge-ui merged 1 commit into
mainfrom
feat/agent-harness
Nov 16, 2026
Merged

forge-ui merged 1 commit into
mainfrom
feat/agent-harness

Conversation

@forge-ui

Copy link
Copy Markdown
Owner

Summary

Step 2 of the Forge Agent 2.0 plan (Feishu, section 15): Forge Agent is the next Ask AI, so it takes over the Ask AI harness instead of re-implementing it.

  • @forge-ui-official/agent/harness: the framework-free engine from forge-starter lib/harness (engine, types, progress), moved unchanged with its 22 tests: durable runs, requestId idempotency, revision CAS, one leased writer, ask_user choices only from registered candidates, proposals that complete only through a verified external receipt, cancellation retiring old operations.
  • MemoryTaskStore: in-process store with the same JSON boundary and CAS rule as Starter's Postgres store (which stays in Starter, behind the same TaskStore interface).
  • aiSdkModel(model): the harness model port on any AI SDK model; capabilities become tools without execute, so the model only proposes calls.

Nothing on forgeui.org changes. Next: the HTTP handler and panel on top of this, then Starter migration.

Test plan

  • pnpm check; agent tests 44 (22 harness tests moved from Starter, 2 new)
  • Real qwen3.8-flash end to end: list tickets → choose one → close proposal (waiting-external) → page receipt → completed answer citing the receipt

🤖 Generated with Claude Code

First step of Forge Agent as the next Ask AI. The framework-free run engine from forge-starter
(lib/harness: engine, types, progress) moves into @forge-ui-official/agent/harness unchanged,
with its tests: durable runs, requestId idempotency, revision compare-and-swap, choices only from
registered candidates, and writes that complete only through a verified external receipt.

New in the package: MemoryTaskStore (same JSON boundary and CAS rule as the Postgres store) and
aiSdkModel, the model port on any AI SDK model. Checked end to end with qwen3.8-flash: query,
choose a ticket, close proposal, page receipt, answer from the receipt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
forge Ready Ready Preview Nov 16, 2026 2:24am UTC

@forge-ui
forge-ui merged commit 2de95ee into main Nov 16, 2026
3 checks passed
@forge-ui
forge-ui deleted the feat/agent-harness branch November 16, 2026 02:38

This branch was successfully deployed

1 active deployment
Preview — fdd9022d Deployed Nov 16, 2026 by vercel[bot]
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