Repository navigation
feat(agent): bring the Ask AI harness into Forge Agent - #67
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-starterlib/harness(engine, types, progress), moved unchanged with its 22 tests: durable runs, requestId idempotency, revision CAS, one leased writer,ask_userchoices 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 sameTaskStoreinterface).aiSdkModel(model): the harness model port on any AI SDK model; capabilities become tools withoutexecute, 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)🤖 Generated with Claude Code