Rules: running application
Application context
- For a running-the-system task, the assistant SHOULD read
lsfusion_get_guidance(brief='operation')before choosing a mechanism. It MUST read the area rules its code triggers, temporary scripts included.
Action execution
-
The assistant MUST treat
lsfusion_evalandlsfusion_execcalls as execution on live data and MUST confirm the target, scope and effects of a change with the user before making it. Before treating a call as read-only, it MUST check the called actions for their ownAPPLYand external effects: discarding the call's session does not undo them. -
In scripts, the assistant MUST follow the area rules on non-interactive
APPLY, local events and rawr'...'literals in comparisons.
Logic changes
-
The assistant MUST distinguish executing actions, saving supported settings and changing source logic. It MUST use source editing and deployment for durable changes to source logic: eval code cannot change the project's persistent structure.
-
Where saved customization — of a form, or of the application's navigator and windows — covers the request, the assistant SHOULD prefer it and establish whether it is for one or all users. It MUST verify the result on opening the form or starting the client again and check reported customization errors. It MUST NOT treat a successful write alone as proof that the customization compiled and took effect. Before writing a fragment, it MUST read it and keep the code the change does not concern: a write replaces the whole fragment.
A call over /mcp
-
The assistant MUST NOT report
MESSAGEoutput inmessagesas shown to the user, or an empty answer as successful execution of an@@uiaction: the output only returns to the caller, and the action is queued for the interface instead of running. -
The assistant MUST obtain needed values and confirmation from the user before calling code that requires them. It MUST NOT use
ASKfor consent: it receives YES without asking anyone. -
Before user-specific work — a personal setting, a personal customization — the assistant MUST establish whose account it changes: over
/mcp,Authentication.currentUser[]is the token's account, possibly a shared integration account.
Client actions over /mcp
Client actions in a call over /mcp have no client to run on; on the page the user's own client runs them directly, and delivery is left for the rare case of another tab or client.
-
To show something to a user or open a form for them from a call over
/mcp, the assistant MUST deliver the action to that user's connection withNEWEXECUTOR ... CLIENTand a nested plainNEWTHREAD: in the call itself aMESSAGEonly returns to the caller, and a form cannot open. Before delivering, it MUST establish which user and which of the user's connections are meant. It MUST NOT assume the delivered action shares an open form's session: it runs in a separate navigator session, which matters when the task depends on an open form's pending changes. -
The assistant MUST NOT substitute
NEWTHREAD ... CLIENTwith a local property for that delivery: it only records a notification id. It MUST NOT treat a returningNOWAITdelivery as proof that the action has completed.