Commit 05717ed
feat(service-ai): open framework AI is query-only, declines app-building (#1803)
* chore: bump objectui to 76c38108544d
test(e2e): lookup quick-filter coverage (CRM parity) (#1682)
objectui@76c38108544dd92abf965c0e07b0e4d92264708a
* feat(service-ai): open framework AI is query-only, declines app-building
The unified `data_chat` persona (ADR-0040) advertises that it can BUILD or
CHANGE the application, but that capability is supplied entirely by the cloud
AI Studio plugin's `metadata_authoring`/`solution_design` skills and their
tools. On the open single-env framework those skills are not registered, so
the authoring tools never resolve — yet the LLM, still reading the "you can
build" persona, role-plays designing a whole system (emitting design docs it
has no tools to execute). Users saw the standalone open framework "develop"
a full 进销存 app that it could not actually create.
Fix: in buildSystemMessages, when no authoring (build-register) skill is
active, append a deployment-capability note constraining the assistant to
data/query and instructing it to decline build requests instead of pretending.
Keyed off actual skill presence, so cloud/EE (AI Studio loaded) keeps the full
build UX with zero extra wiring. Adds tests for both the absent and present
build-register cases.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent baa204c commit 05717ed
3 files changed
Lines changed: 47 additions & 1 deletion
File tree
- packages/services/service-ai/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
622 | 640 | | |
623 | 641 | | |
624 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
163 | 191 | | |
164 | 192 | | |
165 | 193 | | |
| |||
0 commit comments