Novior.MentorAgent.Declarative
1.5.0
Prefix Reserved
dotnet add package Novior.MentorAgent.Declarative --version 1.5.0
NuGet\Install-Package Novior.MentorAgent.Declarative -Version 1.5.0
<PackageReference Include="Novior.MentorAgent.Declarative" Version="1.5.0" />
<PackageVersion Include="Novior.MentorAgent.Declarative" Version="1.5.0" />
<PackageReference Include="Novior.MentorAgent.Declarative" />
paket add Novior.MentorAgent.Declarative --version 1.5.0
#r "nuget: Novior.MentorAgent.Declarative, 1.5.0"
#:package Novior.MentorAgent.Declarative@1.5.0
#addin nuget:?package=Novior.MentorAgent.Declarative&version=1.5.0
#tool nuget:?package=Novior.MentorAgent.Declarative&version=1.5.0
Novior.MentorAgent.Declarative
New package IDs. From 1.0.0 the packages, their namespaces and their assemblies are
Novior.MentorAgent.*; up to 1.0.0-rc.15 they wereMentorAgent.*. See Migrating from the MentorAgent.* packages in the Novior.MentorAgent README.
Optional package. Install it only if you want to define specialist agents in YAML files instead of C# classes. Everything MentorAgent does works without it.
Define a Level-2 specialist in a text file, drop it next to your application, and the assistant can hand off to it — no new class, no [MentorAgent] attribute, no recompile of the agent's behaviour.
Built on the Agent Framework's declarative agent factory (Microsoft.Agents.AI.Declarative).
Package Family
| Package | Install when |
|---|---|
| Novior.MentorAgent | Blazor Server app |
| Novior.MentorAgent.Server | Web API / headless backend, or Blazor Auto server-side project |
| Novior.MentorAgent.Blazor | Blazor WASM / Blazor Auto client project |
| Novior.MentorAgent.Abstractions | Never directly — it arrives with any of the above |
| Novior.MentorAgent.Declarative ← you are here | You want YAML-defined agents. Add it alongside Novior.MentorAgent or Novior.MentorAgent.Server |
Table of Contents
- What it does
- Getting started
- The YAML format
- Tools: named, not defined
- Security — a definition file is code
- When to use YAML and when to use C#
- Loading definitions from somewhere else
- Teams in YAML —
*.team.yaml - Configuration options
- How to test it
- Why a separate package
- Requirements
- Related Packages
- License
What it does
MentorAgent's three-level agent model has a coordinator (L1) that can hand off to specialists (L2). Normally a specialist is a C# class:
[MentorAgent(Name = "ShippingAgent", Description = "Answers questions about deliveries")]
public class ShippingAgent // register it: builder.Services.AddScoped<ShippingAgent>();
{
[MentorAction(Description = "Looks up a tracking number")] // tool name: get_tracking
public string GetTracking(int orderId) => /* … */;
}
This package adds a second way to declare the agent — its name, its instructions, its model settings and which tools it may use — as a file:
kind: Prompt
name: ShippingAgent
description: Answers questions about deliveries and shipping costs
instructions: |
You handle shipping questions only. Use the available tools to look up real orders;
never invent a tracking number. If the question is not about shipping, say so and stop.
model:
options:
temperature: 0.2
tools:
- kind: function
name: get_order_status
- kind: function
name: get_all_orders
Both kinds end up in the same handoff graph, so route_to_specialist reaches them identically and the user cannot tell which is which.
Getting started
Installation
dotnet add package Novior.MentorAgent.Declarative
Registration
using Novior.MentorAgent.Declarative; // AddMentorAgentDeclarative
using Novior.MentorAgent.Extensions; // AddMentorAgent
builder.Services.AddMentorAgentDeclarative(o => o.Directory = "Agents");
builder.Services.AddMentorAgent(o =>
{
o.ChatClient = chatClient;
o.AppName = "ShopFlow";
o.ScanAssemblies = [typeof(Program).Assembly];
});
Order does not matter — MentorAgent asks every registered agent source while it builds a coordinator. A coordinator is built lazily for each session scope (each Blazor circuit, each SignalR connection to Novior.MentorAgent.Server, each SSE request), on its first message, or once at startup when WarmUpAtStartup is on. So the definitions are read again for every new scope. An edited file reaches new sessions without a restart, existing sessions keep the agents they were built with, and the log lines shown under How to test it appear then, not when the application starts.
Make sure the files reach the output folder
A definition that is not copied is the most common way this feature appears not to work. In your .csproj:
<ItemGroup>
<Content Include="Agents\**\*.agent.yaml" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
If the directory is missing you get a warning naming the resolved path, [MentorAgent:Declarative] Directory '…' does not exist., when a coordinator is built: on a session's first message, or at startup with WarmUpAtStartup. That message exists because the failure is otherwise silent.
The YAML format
The schema comes from the Agent Framework, not from MentorAgent. The fields that matter in practice:
| Field | Meaning |
|---|---|
kind |
Prompt for a prompt-based agent. Required |
name |
The specialist's name. This is what appears in handoff logs — keep it stable |
description |
What this specialist is for. The coordinator reads it to decide when to route here |
instructions |
The agent's system prompt, used exactly as written. Use a \| block for multiple lines. MentorAgent adds nothing to it, including the grounding rule its generated specialist prompts carry, so write your own: state only facts a tool returned; if nothing provides what is asked, say so, and never estimate or invent a number, a name, a date or a status. Without it, a specialist asked for a figure its tools cannot return may make one up |
model.options |
temperature, topP, and other per-agent model settings |
tools |
Names of tools this agent may call — each entry needs kind and name, see below |
outputSchema |
Optional JSON-schema-style shape for a typed answer |
description is worth care: it is the coordinator's only basis for choosing this agent over another. "Handles orders" competes badly with "Handles orders, shipping and returns for existing customers".
Two format details that cost an afternoon
Neither is in the Agent Framework guide, and both fail in a way that points somewhere else.
Every tools entry needs kind. The reader accepts codeInterpreter, fileSearch,
function, webSearch and mcp, but function is the only one MentorAgent keeps: it binds to a
tool of your application. Omit kind and the agent is not loaded, invalid-definition, with the
reason. From 1.5.0 kind may be anywhere in the entry, and an agent never loads with fewer tools
than its tools lists, apart from those MentorAgent takes away and reports (below). Up to 1.4.0
the Agent Framework's reader found kind only as the entry's first key, and with a list at its
key's indentation it dropped an entry without kind and said nothing: the agent loaded without
the tool (BUG-244).
The other four are not names of your tools, and they do not add anything. The Agent Framework would turn them into provider-hosted tools (web search, code interpreter, file search, or a remote MCP server at whatever endpoint the file gives), configured by the file alone. MentorAgent removes them from the agent when it loads and logs a warning naming them:
[MentorAgent:Declarative] 'shipping.agent.yaml': removed web_search. A definition file can only use the application's own tools (`kind: function`); web search, code interpreter, file search and MCP servers are configured by the host, through MentorOptions.HostedTools and McpServers.
The agent still loads, with its function tools only, and an IMentorAgentSourceObserver receives
each tool removed as hosted-tool-removed, with Tool set. If those tools cannot be taken out, the
whole agent is skipped with an error instead, and reported as foreign-tools. To give the assistant these capabilities, configure
them in the host (MentorOptions.HostedTools, McpServers), where the host's own controls apply.
Three forms of valid YAML the reader refuses are rewritten for it (from 1.5.0). A folded scalar
(>), a list at its key's indentation (tools:, then - kind: function on the next line, the form
YamlDotNet writes by default) and an explicit end of the document (...): the Agent Framework's
reader refuses each, with an error that names the end of the file. MentorAgent gives the reader
each definition as it is written first. Only when the reader refuses it, and the text is YAML, is
it given again rewritten: lists indented, no end marker, folded scalars written literal with the
same value. A definition the reader takes is never rewritten, and one that fails both ways is
reported with the error of the text as written, whose line numbers are the file's (BUG-243). Up to
1.4.0, write | or a single line, indent a list under its key, and leave out ...:
description: > # ✗ up to 1.4.0: parse error, blamed on the last line of the file
Handles shipping and delivery.
description: | # ✓
Handles shipping and delivery.
description: Handles shipping. # ✓
tools: # ✗ up to 1.4.0: InvalidIndent, blamed on the end of the file
- kind: function
name: get_order_status
tools: # ✓
- kind: function
name: get_order_status
Tools: named, not defined
A tools: entry names a tool; it does not create one. The name must match one of your application's Level-1 methods: a public instance method with [MentorAction] or [Description] on a class in ScanAssemblies that is registered in DI, including a [MentorSkill] class. That is the whole list the factory is given. The methods of a C# [MentorAgent] specialist, MCP client tools, [MentorTeam] tools and the built-in tools (navigation, memory, UI actions) are not in it, so an entry naming one of them is taken away (see below).
tools:
- kind: function # required — see below
name: get_order_status # must match exactly; a name that matches no action is taken away, with a warning
The tool name is the snake_case of the C# member, with a trailing Async dropped:
GetOrderStatusAsync() → get_order_status, matched exactly and case-sensitively. For a name that
matches none of the tools it is given, the Agent Framework creates a declaration-only function of
that name, with no code behind it. MentorAgent takes it away from the agent with a warning, and the
agent loads without it:
[MentorAgent:Declarative] 'shipping.agent.yaml': removed get_order_statu. No action of this application has that name in this session — unknown, or off for this session — so nothing would run behind it. A `kind: function` entry must name one of the application's actions exactly.
The tools a definition is given are the session's: an action that is off for the session
([MentorAction(Enabled = false)], or turned off by an IMentorActionGovernor) is taken away the same
way, so its name reaches no model. An IMentorAgentSourceObserver receives either as tool-not-found,
with Tool set. The specialist still loads, but without the tool it has no data to answer with: check
every name against your [MentorAction] / [Description] methods.
This is the design point of the whole package. MentorAgent hands the factory the application's real tool list, already wrapped in its gate, so a YAML agent calling create_order still hits:
RequiredRoles— the role check, exactly as a C# specialist does: the tool is offered to the agent's model only in a turn whose user holds one of its roles- human approval — the confirmation banner, if the tool requires one
- action feedback, per-tool metrics and tracing
An agent defined in a file therefore has no capability your application did not already have, and no shortcut around the controls on it. That holds for the other kind values too: webSearch, codeInterpreter, fileSearch and mcp entries would add provider-hosted tools outside your list, so MentorAgent removes them with a warning (see Two format details that cost an afternoon).
Security — a definition file is code
Read this before pointing Directory anywhere.
A definition chooses the model, writes the system instructions, and names the tools the agent may call. Anyone who can write that file can rewrite the assistant's persona and widen which tools it reaches for. That makes it code, whatever its file extension says.
- Load only from deploy-time locations. An application directory or an embedded resource. Never an upload folder, never a user-writable path, never a path built from request input.
- Review definitions like source. Put them in version control and through the same review as a
.csfile. - The gate still holds. A file cannot invent a tool or bypass a role check — that is enforced, not advisory. A
kind: functionentry resolves only against your own, gated tools, and awebSearch,codeInterpreter,fileSearchormcpentry is removed with a warning, so a file cannot add web search, a code interpreter or an MCP server of its own choosing. But it can instruct the agent to try things, so the controls on your tools remain the thing that actually stops it.
The second point is the one people skip: YAML feels like configuration, and configuration feels safe to let more people edit.
When to use YAML and when to use C#
| YAML | C# [MentorAgent] |
|
|---|---|---|
| Change an agent's instructions | Edit a file | Recompile |
| New tool / new logic | Not possible — tools stay in C# | Where it belongs |
| Compile-time checking | None at compile time; a tool name the session does not have is taken away with a warning when the agent loads | Full |
| Who can author it | Anyone who can edit a reviewed file | Developers |
| Fits when | Wording and routing get tuned often | The agent has real behaviour |
A good rule: behaviour in C#, phrasing in YAML. If you find yourself wanting a loop or a branch in a definition file, that agent wants to be a class.
You can mix freely — both kinds coexist in the same handoff graph.
Loading definitions from somewhere else
Definitions do not have to be files. Pass them as strings for agents stored in a database, a configuration service, or a test:
builder.Services.AddMentorAgentDeclarative(o =>
{
o.Definitions.Add("""
kind: Prompt
name: FaqAgent
description: Answers frequently asked questions about the shop
instructions: Answer briefly, in the user's language. Say so when you do not know.
""");
});
To ship definitions inside the assembly, the safest deploy-time location, embed them and pass their text as inline definitions:
<ItemGroup>
<EmbeddedResource Include="Agents\**\*.agent.yaml" />
</ItemGroup>
builder.Services.AddMentorAgentDeclarative(o =>
{
var asm = typeof(Program).Assembly;
foreach (var name in asm.GetManifestResourceNames()
.Where(n => n.EndsWith(".agent.yaml", StringComparison.Ordinal))
.Order(StringComparer.Ordinal))
{
using var reader = new StreamReader(asm.GetManifestResourceStream(name)!);
o.Definitions.Add(reader.ReadToEnd());
}
});
For a fully custom source — one that hits your own store, or refreshes on a schedule — implement IMentorAgentSource from the Novior.MentorAgent package directly and register it. AddMentorAgentDeclarative is one implementation of that interface, not a privileged path:
using Novior.MentorAgent.Core; // IMentorAgentSource, MentorAgentSourceContext
using Microsoft.Agents.AI; // AIAgent
public sealed class DatabaseAgentSource : IMentorAgentSource
{
// Called once per coordinator build, i.e. once per session, not once per process.
// Cache here if reading your store is expensive.
public async Task<IReadOnlyList<AIAgent>> GetAgentsAsync(
MentorAgentSourceContext context, CancellationToken ct = default)
{
// context.ChatClient — your MentorOptions.ChatClient wrapped for the agents under the coordinator:
// one id per call (BUG-225), the token meter and metrics, the role filter on the
// tools (BUG-205). Not the coordinator's pipeline: no routing, no safety checks
// context.Tools — the Level-1 tools, already gated
…
}
}
builder.Services.AddSingleton<IMentorAgentSource, DatabaseAgentSource>();
Teams in YAML — *.team.yaml
A team of agents that discuss a task and reach a verdict can be written in a file too, next to the agents: every
*.team.yaml file of Directory, and every entry of TeamDefinitions, gives one team. It is the team an
IMentorTeamSource gives in code (see the core README, Teams from a source), checked the same way, and it works as
a [MentorTeam] class does: the coordinator gets a tool named after it in snake_case, and the members discuss until
a verdict.
kind: Team # optional
name: Order Review
description: Reviews an order before anything is done with it.
approver: Approver # the member whose verdict ends the discussion
maxIterations: 6 # optional, 10 by default
triggerOn: [review, check] # optional
handoffTo: [ShippingAgent] # optional
members:
- role: Clerk
instructions: |
Look at the order and say what you see.
tools: [get_order] # the session's actions, by name
- role: Approver
instructions: Decide, with [TEAM:APPROVED] or [TEAM:REJECTED].
A member's tools are names of the actions the session already has, as in an agent's definition: a name it does not
have, or one that is off, is taken away and reported, and each tool runs through the gate with its roles and its
confirmation. A file cannot add a capability.
A file that does not hold is left out, never half-read. The YAML is read with YamlDotNet's node model, and every key
is checked: YAML the parser refuses, a key written twice, an unknown key (a misspelt membres), a list where a text
goes, two documents in one file. The team is left out with invalid-definition and where the fault is — line 2, column 1: unknown key 'membres' in a team — in the log and in IMentorAgentSourceObserver.OnTeamsLoaded. A team whose
name the code already uses, or without members, is left out by the core with its own reason. The rule is
team.from-yaml in ACTION-RULES.md.
The files come from the same Directory as the agents, with a pattern of their own; teams that live elsewhere, in a
database say, are given inline:
builder.Services.AddMentorAgentDeclarative(o =>
{
o.Directory = "Agents"; // Agents/*.agent.yaml and Agents/*.team.yaml
o.TeamSearchPattern = "*.team.yaml"; // the default
o.TeamDefinitions.Add(teamYamlFromStore); // one team each, in addition to the files
});
A file the teams' pattern matches is never read as an agent, even when SearchPattern is widened to *.yaml.
Configuration options
| Option | Type | Default | Description |
|---|---|---|---|
Directory |
string? |
null |
Folder to scan, absolute or relative to the app base directory. Deploy-time paths only |
SearchPattern |
string |
"*.agent.yaml" |
File pattern inside Directory |
Recursive |
bool |
false |
Scan subdirectories too |
Definitions |
IList<string> |
empty | YAML supplied inline, loaded in addition to Directory |
TeamSearchPattern |
string |
"*.team.yaml" |
File pattern of the team definitions inside Directory. A file it matches is never read as an agent |
TeamDefinitions |
IList<string> |
empty | Team definitions supplied inline, one team each, loaded in addition to Directory |
ConfigurationSection |
string? |
null |
Name of the configuration section the YAML may reference. null exposes nothing |
SearchPattern and Recursive — what the scan is allowed to reach
Both defaults are deliberately narrow, and widening them is a decision worth making on purpose rather than by accident:
builder.Services.AddMentorAgentDeclarative(o =>
{
o.Directory = "Agents";
// Default "*.agent.yaml", not "*.yaml". A deployment folder holds other YAML — a CI file,
// a Helm values file — and reading one of those as an agent definition would at best fail
// loudly. Widen it only if your definitions genuinely do not carry the suffix.
o.SearchPattern = "*.agent.yaml";
// Default false. A nested folder is exactly where a definition gets added without review,
// and a definition file is code: it picks the model, writes the instructions and names the
// callable tools. Turn it on when your layout needs it, not "just in case".
o.Recursive = true; // now Agents/support/*.agent.yaml is loaded too
});
Inline Definitions are loaded first (named inline[0], inline[1], … in the log and as the Name of what an IMentorAgentSourceObserver is told was left out; a file is named by its file name), then files in a stable order (sorted by path), so two definitions declaring the same agent
name resolve identically on every machine rather than depending on the file system's enumeration
order. A missing Directory is warned about — almost always a CopyToOutputDirectory miss, where
the assistant otherwise starts fine and is simply missing a specialist nobody thinks to look for.
ConfigurationSection — exposing configuration to a definition
Default null: no configuration reaches the YAML at all, and the definitions are self-contained.
Set it to expose one section, so a definition can reference values instead of hardcoding them:
// appsettings.json
{
"AgentSettings": {
"SupportEmail": "help@contoso.com",
"MaxRefund": "250"
}
}
builder.Services.AddMentorAgentDeclarative(o =>
{
o.Directory = "Agents";
o.ConfigurationSection = "AgentSettings"; // only AgentSettings:* reaches the YAML
});
The values arrive as Power Fx variables, one per key, named by the key's full configuration path: AgentSettings:SupportEmail, AgentSettings:MaxRefund, plus one for the section AgentSettings itself. MentorAgent enumerates the section with AsEnumerable(), which does not make paths relative, and loads the values into the engine it hands the Agent Framework's factory: from Agent Framework 1.23 the factory itself loads only keys a definition names through Env and the host lists as allowed.
How a definition references them is part of the Agent Framework's declarative schema, not something
MentorAgent defines, so check the framework's documentation for the expression syntax before
relying on it.
Every value arrives as text, as configuration keeps it. Power Fx reads a number written as text with the
culture of the process: with the Italian culture, Value("0.3") gives 3.
Name a section. Never hand over the whole IConfiguration. MentorAgent loads the section into
the Power Fx engine as variables — one per key — before the factory is built. A single key that
Power Fx rejects as a name (in the version this package uses, an empty or whitespace-only key)
takes every definition down before any is read. The
exception does not say which key it was: Power Fx's message is the fixed text Invalid name: ${name}.
The placeholder is never filled in, so do not look for a key literally named ${name}. This is not
hypothetical: a key contributed by an unrelated configuration provider produced
ArgumentException: Invalid name: ${name}
and no agents loaded at all. Naming one section bounds the blast radius to keys you control.
MentorAgent catches that failure and logs the cause rather than letting it surface as a generic
startup error, then returns no agents; an IMentorAgentSourceObserver receives every definition as
invalid-configuration:
[MentorAgent:Declarative] The agent factory rejected the configuration exposed to YAML
(AgentSettings). Every key in it becomes a Power Fx variable and must be a valid identifier.
Narrow MentorDeclarativeOptions.ConfigurationSection, or leave it null.
If you see it, the fix is a narrower section — or null, which is the right setting unless you
actually need substitution.
How to test it
- Put
shipping.agent.yamlin anAgentsfolder, withCopyToOutputDirectory. - Start the app and send a first message (or set
WarmUpAtStartup = true, which builds a coordinator at startup). The log should then show, at Information level (the tool count is every Level-1 tool handed to the factory, not the number the file names):[MentorAgent:Declarative] Agent 'ShippingAgent' loaded from shipping.agent.yaml (12 tool(s) available to it). [MentorAgent] Handoff: declarative agent 'ShippingAgent' added to workflow. - Ask something in that agent's area — "where is order 1001?". The answer should come back through it.
- Negative check — a bad file does not take the app down. Break the YAML deliberately: you get
'shipping.agent.yaml' could not be loaded — skipped, and everything else still starts. The log also writes[MentorAgent] Agent source Novior.MentorAgent.Declarative.DeclarativeAgentSource left out: shipping.agent.yaml (invalid-definition)., and anIMentorAgentSourceObserverreceives it asinvalid-definition, with the factory's message inDetail. - Negative check — the gate holds. Name a tool carrying
RequiredRolesin the YAML and ask the agent to use it while unauthenticated. The agent's model is not offered the tool and says it cannot do it here, the same way a C# specialist does, and no action is taken; a call made anyway is refused.
Why a separate package
Microsoft.Agents.AI.Declarative brings the Power Fx interpreter (YAML expressions are Power Fx), the Agents object model in three assemblies, Microsoft.ML.Tokenizers and several more.
That is a fair price for file-based authoring and pure overhead for everyone else, so it stays out of the Novior.MentorAgent core package. Installing this one is an explicit decision to pay it.
The team files are read with YamlDotNet 18.1.0 (MIT), its node model only, which brings no dependency of its own. An application that references an older YamlDotNet itself gets NuGet's downgrade error (NU1605) until it references 18.1.0 or later.
The reference is Microsoft.Agents.AI.Declarative 1.28.0-rc1, on the same 1.28 line as Microsoft.Agents.AI 1.28.0 in the core package, so adding it does not move the rest of the library onto a different Agent Framework version. The declarative package is still a prerelease upstream.
Requirements
- .NET 10
Novior.MentorAgent(orNovior.MentorAgent.Server) configured with aChatClient— declarative agents need one, and are skipped with a warning without it- A provider supporting the model options you use in the definitions
Related Packages
| Package | Purpose |
|---|---|
| Novior.MentorAgent | Blazor Server — full AI assistant |
| Novior.MentorAgent.Server | Any ASP.NET Core app — headless AI backend |
| Novior.MentorAgent.Blazor | Blazor WASM — SignalR client |
| Novior.MentorAgent.Abstractions | Shared contracts and UI components |
License
Apache License 2.0 — the full text is in the LICENSE file inside this package, with the copyright notice in NOTICE. Versions up to and including 1.0.0-rc.14 were released under the MIT License, which still applies to them.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Agents.AI.Declarative (>= 1.28.0-rc1)
- Novior.MentorAgent (= 1.5.0)
- YamlDotNet (>= 18.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.5.0 - 2026-11-26
### Added
- The AutoMentor knows the pages of a Blazor application from its routes, with no attribute: with
`options.AutoMentor.Enabled`, the components that carry `@page` in the entry assembly, in the assemblies it
references that use the components, and in the new `AutoMentor.PageAssemblies`, read once. The WebAssembly client of
Novior.MentorAgent.Blazor sends its own pages to the server at every connection, with the new hub method
`ReportPages` (`PageRouteInfo`); `MentorAgentBlazorOptions.PageAssemblies` adds an assembly. Structure only: a route
and the component that serves it. New rules in ACTION-RULES.md: `page.from-routes`, `page.client-routes`,
`page.route-shape`, `page.route-limit`, `page.read`. README: «Pages from your routes».
- The AutoMentor reads the manifest of the pages a scan writes, `mentor-ui-manifest.json` in the project: the targets
of Novior.MentorAgent, in `buildTransitive`, embed it in the application, also one that references only
Novior.MentorAgent.Server, and the host reads it once with the pages. A page it has is scanned, with the elements
the scan read; the others are to scan. It is read as untrusted: a password field, card data (`autocomplete="cc-*"`),
a hidden, disabled or `data-mentor-exclude` element never comes out, and a value has no place in it. New rules in
ACTION-RULES.md: `page.manifest`, `page.manifest-read`, `page.manifest-version`, `page.manifest-excluded`,
`page.manifest-shape`.
- `IMentorActionCatalog.GetPages()` lists the pages the AutoMentor knows, each a `MentorPageInfo` with its route, its
component, its `MentorPageCoverage` (`ToScan` or `Scanned`), when the scan read it and its elements
(`MentorPageElement`: tag, role, label, type, option labels, form, a stable selector, the roles it was seen with).
A catalogue written before the member lists none. New rule in ACTION-RULES.md: `page.catalog`.
- **Novior.MentorAgent:** the package now carries `buildTransitive/Novior.MentorAgent.targets`. When the project has
`mentor-ui-manifest.json` (or the file its `MentorUiManifest` property names), it embeds the file in the application
and takes it out of `Content` and `None`; without the file it does nothing. It holds no target and no check, so it
cannot stop a build.
- `MentorActionInfo.ParametersSchema`: the JSON schema of an action's arguments, the one the model reads in the
action's tool, for every origin. An endpoint declared as an action has the schema of its route, its query and its
body; a command or a query, its type's properties. `null` when there is no tool to read it from, such as an endpoint
in a host without Novior.MentorAgent.Server. New rule in ACTION-RULES.md: `describe.parameters-schema`.
- **Novior.MentorAgent.Scanner**, a new package for development: `AddMentorUiScanner()` scans the pages of a Blazor
application once it has started, in `Development` only, with the Edge or Chrome already installed (it downloads
none), and writes `mentor-ui-manifest.json` in the project for the AutoMentor. Structure only, never a value.
Reference it in Debug only. With `MentorAgent:Scanner:Roles` it also reads the pages as a user of its own with each
role, signed in with a one-time token, in `Development` and from this machine only; it clicks only what opens a tab,
a menu or a collapsed section, never a submit or a delete. MentorAgent's own chat widget, and what the page does not
show, stay out of the manifest; the rows of a table are read once per column, with the column's header. Its browser closes with the application, on Windows also
when the application is killed; elsewhere the next scan closes it. A page with route parameters is opened with the
values of `MentorAgent:Scanner:RouteParameters`. A scan reads again only the pages whose code, or whose layout's,
changed (`MentorAgent:Scanner:Full` reads them all), and writes the manifest only when it changes. In a .NET MAUI
Blazor Hybrid app on Windows, `StartMentorUiScan()` reads the pages in the app's own WebView2, in a Debug build only,
as the app's user. New rules in ACTION-RULES.md: `page.scan`, `page.scan-development`, `page.scan-browser`,
`page.scan-user`, `page.scan-clicks`, `page.scan-parameters`, `page.scan-changed`, `page.scan-webview`.
- **Novior.MentorAgent.Cli**, a new .NET tool: `novior-mentor scan` runs the same scan from outside the app, for a CI
pipeline or a WebAssembly standalone app. The pages come from the app's built dll, the app runs at `--url`, and the
browser runs on the machine that runs the command. `--account <role>=<variable>` reads as an account of the team,
its session cookie taken from an environment variable and never logged; `--fail-on-change` writes nothing and exits
with 3 when the manifest would change. New rules in ACTION-RULES.md: `page.scan-tool`, `page.scan-ci`.
- **Observation of the pages in production** (`MentorAutoMentorOptions.ObservePages`, on by default, with the
AutoMentor, which is off by default): the widget reads what the users open, dialogs, tabs and panels included, with
the scan's own reader, and sends the structure, never a value, no option of a select, no text of a row, a list or a
card. An observed element's selector is its `data-mentor-id`, or a path of tags and positions from the nearest
ancestor with one, or from the body: never an id, a class, a name or a `data-testid`, which may be a record's; give
the elements a `data-mentor-id` for stable selectors. An element reaches `IMentorActionCatalog.GetPages()` only once two users saw it the same (one is enough in a
MAUI Hybrid app, on the user's own device), marked with the new `MentorPageElement.Coverage` (`Observed`), and with
no label and no form: what a user saw stays in the application's process. A page only observed has the new
coverage `MentorPageCoverage.Observed`. Kept in memory, within limits, never in the log. A WebAssembly client of
**Novior.MentorAgent.Blazor** sends it to the hub's new `ReportObservedPage` (**Novior.MentorAgent.Server**), with
the new `PageObservedElement`, once the widget connects to the hub, usually at the first message; until then it
waits in the browser, at most 200 messages. New rules in
ACTION-RULES.md: `page.observe`, `page.observe-private`, `page.observe-values`, `page.observe-repeated`,
`page.observe-shared`, `page.observe-route`, `page.observe-limit`, `page.observe-off`.
- **Recipes of the pages, from a source**: a recipe is a sequence of steps on one page that the widget runs in the
user's browser, with the new `MentorRecipeRunner.js` of **Novior.MentorAgent.Abstractions**, offered to the model as
one of the page's UI actions with its own roles and its own confirmation. An application gets its recipes from an
`IMentorRecipeSource` (`AddMentorRecipeSource<T>()`), typically the bridge of a console where they are approved:
asked once for a session, which keeps them, it gives `MentorRecipeDefinition`s, known by their route and their name.
A recipe that breaks a rule (`MentorRecipeLimits`) is left out with a code of the closed list
`MentorRecipeRejectionReasons`, reported to the new `IMentorAgentSourceObserver.OnRecipesLoaded` (with a default
body), and is never a tool. A recipe is governed as a UI action of its page: the policies answer for it by page and
name when it is offered and when it is called. With the name of a UI action the page registers in code, the source
says who wins (`MentorRecipeSourceResult.Precedence`: `MentorRecipePrecedence.Code`, the default, or `Source`); any
other tool always wins over a recipe. A recipe turned off stays off in its version: a new version is on. A step whose element is gone, hidden, disabled or excluded stops
the recipe and turns it off. New reason code of `Failed`: `MentorActionReasons.ElementMissing` (`element-missing`).
A row step finds the row of a table or a grid by the text of a key cell, compared in the browser, with the page's
filter or scrolling, a virtualized `QuickGrid` included, and clicks an action in it; after writing the page's
filter it waits for the page's answer, up to 5 seconds, so that a server slower than a quiet while (Blazor Server
under load) is not read before it answered, and a render that leaves the rows as they were, as Blazor Server makes
at the first await of the event's handler, is not taken for the answer; nothing inside
`data-mentor-exclude` is read, rows, key cells or filters. The steps of a run weigh at most 16 KB. On a WebAssembly
client the hub asks the client to run the recipe (`RecipeRequested`, with a run id of the server's, answered once),
and the client answers with the new `POST /mentor/recipe-result` of **Novior.MentorAgent.Server**, owner-checked
like `/mentor/cancel`, with done, the step and the reason only; **Novior.MentorAgent.Blazor** sends the path of the
page shown, without its query or fragment, with the page context. New rules in ACTION-RULES.md:
`recipe.shape`, `recipe.offer`, `recipe.gated`, `recipe.run`, `recipe.row`, `recipe.row-excluded`,
`recipe.element-missing`, `recipe.from-source`, `recipe.precedence`, `recipe.session`, `recipe.rejected-with-reason`, `recipe.governed`,
`recipe.hub`, `recipe.hub-result`.
- **Recipes in React, Angular and other front ends**: **Novior.MentorAgent.Server** serves `/mentor/agent.js`, a
JavaScript module with the recipes' runner that a front end that is not Blazor loads with `<script type="module">`
and ties to its own `@microsoft/signalr` connection with `attach(connection, options)`: the recipes the hub asks for
run in the page, the answer goes back with `POST /mentor/recipe-result`, and the front end's routes reach the server,
from `options.routes` (`/orders/:id`) or from the links of the page. A field is written so that React's controlled
fields keep the value in their state and Angular's forms read it, and is then left (`blur`), as `updateOn: 'blur'`
needs. The script has the hub's CORS, never its authorization, and is cached for a year at the address with the
package's version (`?v=`). React and Angular do not observe the pages yet. New rules in ACTION-RULES.md:
`recipe.front-end`, `recipe.front-end-cors`, `page.front-end-routes`. README of Novior.MentorAgent.Server: «Recipes
in React, Angular and other front ends».
- **Angular's own routes for `/mentor/agent.js`**: `attach`'s `routes` also takes the router's configuration, Angular's
`Routes` or React Router's route objects, with their `children`; a redirect is not a page, and a class component is
named by its route. A recipe is tested on an Angular 22 reactive form, built ahead of time and zoneless: the values
stay in the form, `updateOn: 'blur'` included, and the Send it enables is clicked.
- **The scan of a React or Angular front end**: in the .NET backend, **Novior.MentorAgent.Scanner** reads the pages of
a front end it does not serve, at the new `MentorUiScannerOptions.FrontEndUrl` (the development server of Vite or of
the Angular CLI): the routes of the new `FrontEndRoutes` (`/orders/:id`, with the values of `RouteParameters`), or the
pages its links reach from its first page. With no user, each page at every scan. New rule in ACTION-RULES.md:
`page.scan-front-end`.
- **Novior.MentorAgent.Abstractions:** `IMentorAssistantStatus`, for an application that turns its assistant off from
somewhere else, a switch of its own or a console. While its `IsOn` is false, the chat widget disables the input and
the send button, offers no suggestion to send, shows *off* in its header where it shows *online*, and says, right
above the input and before anyone writes, that the assistant was turned off by the administrator, in the ten
languages of the widget. `Changed` may come on a
background thread. Without a service registered nothing changes. README: «Showing that the assistant is off».
- **Novior.MentorAgent.Server, Novior.MentorAgent.Blazor:** the assistant turned off reaches the hub's clients. The hub
method `GetAssistantStatus` answers whether it is on, and the event `AssistantStatus(bool)` goes to every connection
when it is turned off or on, only with an `IMentorAssistantStatus` registered in the server. The WebAssembly widget
reads it when it connects and follows each change, as the widget in the server does; its client now opens the hub
connection when the widget is created, not at the first message, and sends no message while the assistant is off.
Two openings at once now make one connection: the second waits for the first. `/mentor/agent.js` gives a
React or Angular page `assistantIsOn()` and `onAssistantStatus(callback)`.
- **Novior.MentorAgent.Abstractions:** the cost per agent and per user. `IMentorActionObserver.OnModelCallAsync`
receives a `MentorModelCall` for each call to a model: its tokens (cached and reasoning ones included, when the
provider says so), the model, how it ended, the agent that made it, and the session, the turn, the user and the
tenant, never the text. Each agent has its calls: the coordinator, the router of the handoff (`MentorAgentKind.Router`,
new), the specialists, the team members and the agents of an `IMentorAgentSource`. MentorAgent's own calls come
too, with no agent and what they were for (`MentorModelCallPurpose`): the input, output and scope checks, the
request and announced-action checks, the refusal and grounding checks, the memory's extraction, the routing
classifier and the warm-up, the one call outside any session. It has a default that does nothing, so an existing
observer is unchanged and is not called for them. The calls come on a queue of their own: a full one drops calls,
never a decision, and the order between a call and a decision is not kept. README: «The calls to the models».
- **A page's form as a UI action** (**Novior.MentorAgent.Abstractions**): `IMentorPageContext.RegisterForm<TModel>(name,
description, js, configure)` registers the form whose model is `TModel` as one UI action, `fill_<name>`, whose
parameter is the fields to fill. The fields are the model's simple properties with a setter, found in the page by
their `data-mentor-id` (`"<name>.<field>"`), or by a selector of the application's (`MentorFormOptions`); each value
is checked against its field's type, and the fields are written in the browser with the recipes' runner, through the
page's `IJSRuntime`, on Blazor Server, WebAssembly and MAUI Hybrid. The action fills and never submits the form:
sending it stays an action of the application's, with its confirmation if it writes. It goes through the gate as any
UI action. Sensitive fields (passwords, secrets, tokens, PINs, cards, IBANs, one-time codes) are never offered unless
the application lets them in (`IncludeSensitive`), and the runner never writes a password field, for a form or a
recipe, unless its field was let in. New rules in ACTION-RULES.md: `form.fill`, `form.sensitive`.
- **A page's grid as UI actions** (**Novior.MentorAgent.Abstractions**): `IMentorPageContext.RegisterGrid<TRow>(name,
description, js, key, configure)` registers a table of rows, written by hand or a `QuickGrid`, as
`open_<name>_row({ key })`, `sort_<name>({ column, descending? })` and `filter_<name>(text)`, each offered only when
the grid can do it (`MentorGridOptions`: `Filter`, `Sortable`). The parts are found by their `data-mentor-id`, or by
selectors of the application's, which a `QuickGrid` needs. A row is found by its key, after the grid's filter or
scrolling, and opened; a sort clicks the header until its `aria-sort` reads the order asked. Nothing of the rows
goes back to the model. A sensitive column is not sorted by unless the application lets it in, and is never the
key. The steps run with the recipes' runner through the page's `IJSRuntime`, and the actions go through the gate as
any UI action. New rules in ACTION-RULES.md: `grid.open`, `grid.filter`, `grid.sort`, `grid.sensitive`.
- **Novior.MentorAgent.Abstractions:** `MentorActionRequest` and `MentorActionDecision` say who provides the tool, with `Provenance`
(`MentorActionProvenance`: `Application`, `McpServer`, `Library`) and `ProvenanceName`, the MCP server's `Name`. A
policy can be stricter with the tools of an MCP server the application consumes. `Unknown`, the default of a
request built by hand, is never what MentorAgent sends: treat it as not trusted. New rule in ACTION-RULES.md:
`policy.provenance`.
### Changed
- **The widget meets WCAG 2.1 A and AA in what we tested**: axe-core finds no violation in any state and theme, the
keyboard and the focus are checked against EN 301 549, and it was used with Narrator on Windows; `ACCESSIBILITY.md`
says what was tested and what was not (**Novior.MentorAgent.Abstractions**):
- the panel is nearly opaque by default, `--bm-bg-panel: rgba(10,14,26,.96)`, so that the contrast of its text no
longer depends on the page behind it; it was glass at 55%, which that variable brings back, the contrast then
being the page's to keep. `MentorTheme.Dark` is at 96% too;
- `--bm-text-muted` is lighter (`#7d8bb3`; `#5b6b82` in `Minimal`), and the primary button white on the darker accent,
4.5:1 or more on every surface. `Minimal` sets a darker `--bm-accent-bright` (`#1d4ed8`) and the new
`--bm-status-online` (`#047857`): its status, links and connecting pills were pale blue and green on white;
- the conversation is a log a screen reader announces (`role="log"`, `aria-live`), busy while a reply streams so
that it is read once whole, and the keyboard reaches it;
- Esc closes the tour, the image URL's field or a detail first, then the panel, and never answers a confirmation:
the banner is there again when the panel opens; opened by the user, the focus is in the field, and closed, back
on the button;
- the launcher says whether the panel is open (`aria-expanded`); a confirmation is an alert dialog that takes the
focus itself, never on its Confirm button, whose name says the action, also when the panel opens again with it
waiting; after a reply, or a confirmation answered, the focus is back in the field; the tour takes the focus when
it opens; the message field has a name of its own, not only a placeholder; the image button is reached with the
keyboard; the widget says its language (`lang`), also on a page in another;
- a visitor who asks for less motion (`prefers-reduced-motion`) gets none.
- **Behavior change — Novior.MentorAgent.Declarative:** a declarative agent whose file lists a tool the Agent
Framework's factory did not make is no longer loaded without it (BUG-244). Up to 1.4.0 an entry of `tools` without
`kind`, in a list at its key's indentation, was dropped without a word and the agent started without the tool; from
1.5.0 that agent is not loaded, `invalid-definition`, and the reason names the entry, its number and its name, and
says it has no `kind`. What to do: write `kind: function` in every entry of `tools`.
- **Behavior change — Novior.MentorAgent:** with `EnableObservability`, the model calls of the agents under the
coordinator — the router of the handoff, the specialists, the team members, the agents of an `IMentorAgentSource` —
have their own spans, as the coordinator's do. A delegated turn or a team emits more spans than before, and the
GenAI token metrics (`gen_ai.client.token.usage`) now count those calls, which they missed: a threshold or a chart
on them sees a jump. Each call is counted once, and the dashboard's totals do not change. The span of each call
carries `gen_ai.agent.name`, `mentoragent.agent.kind` and `mentoragent.model.purpose`, never the user.
- **Behavior change — Novior.MentorAgent:** with `EnableObservability`, MentorAgent's own calls around a reply — the
checks on `ClassifierChatClient`, the routing classifier, the warm-up — have their spans too, each with its
`mentoragent.model.purpose`, so a turn emits more spans than before. A client the host already traces (one with
`UseOpenTelemetry()` in its chain, as the README told hosts to do) is not traced again: its span stays the host's,
one for each call, and nothing needs to change on the host's side.
- **Behavior change — Novior.MentorAgent:** with `WarmUpChatModel`, the warm-up request is counted on the dashboard
under its model, in no session: one request per client more on each start, which the provider bills.
- The family moves onto the Microsoft Agent Framework 1.28.0 line (`Microsoft.Agents.AI` and
`Microsoft.Agents.AI.Workflows` 1.28.0). **Novior.MentorAgent.Declarative:** `Microsoft.Agents.AI.Declarative` moves
to 1.28.0-rc1, on the same line. The breaking changes of Agent Framework 1.28 are in parts MentorAgent does not
use: its own A2A hosting and `A2AAgent` (MentorAgent uses the A2A SDK directly), the HTTP and MCP handlers and the
Foundry provider of its declarative workflows, CodeAct and GitHub Copilot. One is visible to a host that collects
Agent Framework's telemetry: its workflow spans are renamed.
- The family moves onto Microsoft.Extensions.AI 11.0.0 (`Novior.MentorAgent.Abstractions` and `Novior.MentorAgent`).
It declares no breaking change to the AI API, but it requires the 11.0.0 packages of
`Microsoft.Extensions.DependencyInjection.Abstractions`, `Microsoft.Extensions.Logging.Abstractions`,
`Microsoft.Extensions.Caching.Abstractions`, `Microsoft.Extensions.Primitives`, `System.Diagnostics.DiagnosticSource`
and `System.Numerics.Tensors`, so a .NET 10 application that uses MentorAgent now gets those at 11.0.0, above the
ones of the shared framework. Agent Framework 1.28, built on Microsoft.Extensions.AI 10.11, runs on 11.0.0.
`Microsoft.Extensions.AI.OpenAI` 11.0.0 requires `OpenAI` 2.14.0 or later.
The README's hold for Azure OpenAI with the Responses API (`Microsoft.Extensions.AI.OpenAI` `[10.6.0]`, which keeps
`OpenAI` at 2.10) still works on 11.0.0: verified with turns on the Responses API, with and without a tool.
- The A2A SDK moves to 1.0.0-preview4: `A2A` in Novior.MentorAgent and `A2A.AspNetCore` in
**Novior.MentorAgent.Server**. MentorAgent's own API does not change, and its A2A agent and client behave as before.
- **Breaking — Novior.MentorAgent, .Server:** an application that implements the A2A SDK's `IA2ARequestHandler`
itself, or calls the handler's methods of `A2AServer` directly, no longer compiles: with this version it gets
A2A 1.0.0-preview4, where each of the eleven operations takes an `A2ARequestContext?` before the cancellation
token. Add the argument, and hand it on to an inner handler as it came (null when the request negotiated no
extension). `IAgentHandler` and `IA2AClient` do not change.
### Fixed
- **BUG-265 (S3, present from 1.3.0):** over A2A, a turn that got the second request of `CheckAnnouncedActions`
returned its two replies joined in one text. The caller now gets the second reply alone, or the first when the second
fails or writes nothing (**Novior.MentorAgent**).
- **BUG-263 (S3, present from 1.0.0):** in the onboarding tour, a screen reader said nothing of the step Next or Back
moved to, as the focus stays on the button. The tour now announces the new step, its number, title and text; back
to the first step, the focus goes to Next (**Novior.MentorAgent.Abstractions**).
- **BUG-262 (S3, present from 1.0.0):** Tab could leave the onboarding tour, a modal dialog, for controls of the panel
a screen reader no longer showed. While the tour is open the rest of the panel is now inert, and Tab and Shift+Tab
go round the tour's buttons (**Novior.MentorAgent.Abstractions**).
- **BUG-261 (S3, present from 1.0.0):** on a page rendered without a prerender, the widget's voice output and its
`PrimaryColor` could stay off for the whole visit: the widget asked its script for them before the browser had run
it, and said nothing. The widget now waits for its script, for 10 seconds at most, and then logs a Warning that says
what to check (**Novior.MentorAgent.Abstractions**).
- **BUG-260 (S3, present from 1.0.0):** with `EnableVoiceOutput`, the widget's voice started on at every visit, also
for a visitor who had turned it off: someone with a screen reader, which reads the reply too, heard both at once
and had to turn it off each time. The visitor's choice is now remembered in their browser; with none, the voice
starts on as before (**Novior.MentorAgent.Abstractions**).
- **BUG-257 (S3, present from 1.0.0):** a screen reader read the widget's decorative images and icons: the
assistant's avatar, named beside the name written on the launcher, in the header, in the welcome and before every
reply; the welcome suggestions' emoji; icons not hidden from it. The avatars now have an empty `alt`, every icon is
`aria-hidden`, a suggestion is named by its words and sends them without its icon, and each message in the
conversation starts with who speaks, in the widget's language, for a screen reader only. The close buttons of the
MCP and A2A details are named in the widget's language; they said "Chiudi" in every one
(**Novior.MentorAgent.Abstractions**).
- **BUG-254 (S4, present from 1.0.0):** a request to `/mentor/approve`, `/mentor/cancel` or `/mentor/session` that met
the close of its connection could answer 500 instead of 404; nothing ran. The request now keeps the connection's
scope for the work it does, and once the connection is closing the answer is a 404.
- **BUG-253 (S3, present from 1.0.0):** on a screen narrower than 480 px the widget's panel kept its place and its
height cap instead of taking the whole screen, as the rule of its position won. The panel now takes the whole screen
there, and the launcher is hidden while it is open.
- **The closed panel's controls could be reached with Tab and were read by a screen reader**, invisible (present from
1.0.0). The closed panel is now `inert`.
- **BUG-251 (S2, present from 1.0.0):** with `RequireActionForChangeRequests` on and semantic tool filtering, a request
for what one of the page's own actions does could be taken for a complete request for one of the application's
confirmation-gated actions, and the first call of the turn was then required to be that action: the user was asked
to confirm an action they had not asked for. The request classifier is now shown the page's actions with the actions
too, and a request for one of them is not forced; a complete request for one of the actions still is, page or not.
- **BUG-250 (S3, present from 1.2.0):** the A2A agent card listed an action an action policy turns off for every
caller: it was built once, at startup, without asking the policies. **Novior.MentorAgent.Abstractions:** a new stage,
`MentorActionStage.Card`: the card asks `IsAllowedAsync` with nobody and leaves out what a policy does not allow; a
policy answers no there only for an action off for every caller. The card is built again when it is older than 30
seconds, so a rule changed at run time reaches it. New rule in ACTION-RULES.md: `policy.card`.
- **BUG-248 (S3, present from 1.2.0):** a call an action policy did not allow was refused with the words of a refusal of
the user's own ("you are not allowed to use this action"), where the application has a rule. It now says that a rule
of the application does not offer the action here, in the application's language; a `Stop` keeps its reason.
- **BUG-249 (S4, present from 1.2.0):** on the MCP server, the refusal of a call a policy wanted confirmed, which nobody
can confirm there, was in English. It now follows the application's language, as the other refusals of a policy.
- **BUG-247 (S2, present from 1.0.0):** with `RequireLookupForRecordQuestions` on, a request for what one of the
page's own actions does (a UI action or a recipe) could be taken for a question about the records, and the first
call of the turn was then required to be one of the application's reads, which the page's actions cannot satisfy:
the reply missed what was asked. The request classifier is now shown the page's actions offered on the turn, and a
request for one of them is not forced; a question about a value the records hold still is, page or not. Without page
actions nothing changes.
- **BUG-238 (S3, present from 1.3.0):** `CheckAnnouncedActions` did nothing with `UseServiceManagedHistory`, which the
Responses client requires: a reply that announced an action, or reported one as done, when no tool ran was not
checked. The second request is now sent from the response the turn started from, with the user's message again and
the instruction in its instructions, so nothing of the check is stored; the conversation goes on from its answer,
and the first reply stays on the service, on a branch nobody follows. Only a turn of one request is checked there.
The Warning at startup now says the check is not made only with an `IMentorSessionManager` of the application.
- **BUG-245 (S3, present from 1.3.0):** with routing on, the second request of the announced-action check was routed
again, on MentorAgent's instruction instead of the user's message, and could go to the other model in the middle of
the turn. It is now served by the turn's model.
- **BUG-244 (S3, present from 1.0.0):** a declarative agent whose `tools` list, at its key's indentation, had an entry
without `kind` loaded without that tool, and nothing said so; an entry with `kind` after `name` was refused. The
definition is now given to the Agent Framework's factory again rewritten, `kind` first, and an agent the factory
still makes with fewer tools than its file lists is not loaded: `invalid-definition`, with the reason.
- **BUG-243 (S3, present from 1.0.0):** a declarative agent (`Novior.MentorAgent.Declarative`) written in valid YAML the
Agent Framework's reader refuses was not loaded, `invalid-definition`, with an error naming the end of the file: a
list at its key's indentation (the form YamlDotNet writes by default), an explicit end of the document (`...`), or a
folded scalar (`>`). A definition the reader refuses is now given to it again rewritten, lists indented, no end
marker, folded scalars literal with the same value; one it takes is never rewritten, and the error of one that fails
both ways is the one of the text as written.
- **BUG-242 (S4, present from 1.0.0):** the parameter hint a typed UI action generates told the model to send a
`DateOnly`, a `TimeOnly`, a `TimeSpan` or a `Uri` as an object of its properties, which the handler could not read,
and named `uint`, `ulong`, `ushort`, `sbyte` and `char` by their .NET names. Each is now described by the text or the
number JSON writes it as: `string (ISO 8601 date)`, `string (time, HH:mm:ss)`, `string (duration, d.hh:mm:ss)`,
`string (URI)`, `integer`, `string (one character)`.
- **BUG-241 (S3, present from 1.4.0):** a UI action of the page whose handler threw, or `invoke_ui_action` on Path B,
reached the `IMentorActionObserver`s as `Executed`, while the model was told it had failed. It is now `Failed`, with
the type of the handler's exception, and the model gets the message of `OnException` when the application set it,
as for any other action.
With `OnException` set, the model now gets the application's message for a UI action too, where it got the
exception's.
- **BUG-240 (S3, present from 1.0.0):** with `RoutingStrategy` `Classifier` or `Cascade`, the routing classifier's
call — one a turn: a turn streams, so `Cascade` asks the same question before the answer — was billed by the
provider and counted nowhere: not on the dashboard, not in `MentorTokenUsage`, not on the session's counter, while
the README said so. It is now counted, under the classifier's model, once, and with `EnableObservability` it has its
span.
- **BUG-235:** a call of the model of a specialist, a team member or an agent of an `IMentorAgentSource` to an action
of the application its agent does not hold (one an `IMentorActionGovernor` or `EnabledByDefault = false` left out,
or another agent's) ran nothing, but had no decision, so an audit of the actions did not see it. It now has one,
`Denied`, `not-offered`, with the agent's `AgentKind` and `AgentName`, as the coordinator's has. Nothing more starts.
New rule in ACTION-RULES.md: `agent.not-offered-call`.
- The scan of the pages (Novior.MentorAgent.Scanner, new in this release) read the label of a field from a `<label>`
that holds the field with all its text: a select's options, or what a text area held, went into the label in the
manifest. A label is now read without the fields it holds, in the scan and in the observation.
### Known issues
- **Novior.MentorAgent:** BUG-264 (S3, present from 1.4.0). With `RequireLookupForRecordQuestions`, when
`CheckAnnouncedActions` takes the reply to a record question for a reported action, its second request is required
again to call a read, with only the reads among its tools; the README says that request keeps the tool mode it had.
The reply the user gets is right, as the second request reads again. It is fixed in a later version, together with
the check's judgement of a reply that only states what a read returned.
The full history is in CHANGELOG.md, inside this package.