* fix(templates): explain the radtyp choice, and give the assistant product knowledge
A user reported not knowing when to pick Kostnad vs Betalning on a
template line, and that the in-app assistant could not answer either.
UI, at the point of choice:
- The editor dropdown said "Kostnad" while the template list said
"Kostnad/Intäkt" for the same tag; both now use type_cost_revenue.
- An InfoTooltip on the Rader label explains the three radtyper: what
each one means, that the tag never changes which account is booked,
and the exactly-one-of-each rule that makes a template pickable
directly on a bank transaction.
Assistant, structurally: a new always-active 'product' atom tier for
knowledge about Accounted's own features, which no existing tier could
hold (horizontal/vertical/modifier are accounting-domain and
composer-owned). First atom: product/bokforingsmallar. The tier CHECK
migration must precede the generated seed; product atoms are
composer-invisible because every composer filter picks a specific tier.
The general-help and settings-help intents now route feature questions
to product atoms instead of guessing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(agent): widen the remaining tier unions the product tier missed
The zero-extensions build caught emitSkillLoaded pinning a literal copy of
the old SkillTier union. The same sweep found two surfaces the type system
could not flag: the mcp.skill_loaded event type, and the Vad din agent vet
overview (agent-competence + CompetenceCard), which queries the registry
with no tier filter and would have rendered product atoms as dormant.
Product atoms are always active there too, labelled with a new tier_product
string in both locales.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(agent): cover empty-slug 400 and curation-off 404; mention product knowledge in the panel help
Review follow-ups: the 404 test only covered a missing row, not a row
with mcp_exposed=false, and the empty-slug validation path was untested.
The Kunskap panel's help popover still described the library as only
Swedish accounting and tax knowledge.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* revert(agent): pull assistant product knowledge back out; ship the UI clarification only
Founder call 2026-07-31: the assistant gets no internal knowledge of
Accounted's own features yet. This removes the product atom tier, the
bokforingsmallar atom, both migrations, the discovery/MCP/panel wiring,
and the intent routing added in the earlier commits; the working
implementation stays in this branch's history (green at bb65224c) and is
tracked in a follow-up issue. What ships: the unified Kostnad/Intäkt
label and the radtyp InfoTooltip in the template editor.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Jakob Wennberg <jakob.wennberg@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>