mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6605] [Feature]: Warn on agent imports and without a Decision model when an import uses decisions #3699
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6605
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
People are starting to share agents that use decisions. Anyone who installs one without a Decision model may think the agent is broken and report it to the author. They should find out on import, not from bug reports.
What already works (checked on staging
1bd1e1a5f, no change needed):docs/agents/custom-agents.md(Activation questions) anddocs/connections/decision-models.md.{{else}}branch is sent. That is intended and stays as it is.packages/client/src/lib/decision-import-notice.ts), shown after importing a character, persona, preset or lorebook that uses decision statements or a lorebook Decision field.What is missing from that notice:
containsDecisionStatementsfinds decision statements and lorebook Decision fields, but not an agent'sactivationQuestion, so an agent that only uses an activation question would not be flagged even once agents are covered.Proposed solution
{{else}}branch is sent;connections/decision-models.md, the same way other notices openDocsViewerModal.docs/connections/decision-models.md, next to "Presets, cards and agents should be written for a Decision model", tell authors that users without one are warned on import. Say that an agent's activation question then runs on its Trigger Cadence, so an agent that should not run every turn needs a cadence as well.docs/agents/custom-agents.md(Activation questions), say the same from the agent editor's side.Out of scope: whole-profile ZIP import, which restores a profile rather than bringing in someone else's content.
Alternatives considered
decision_choice:has no neutral option to pick. Statements keep reading as no, and authors keep a sensible{{else}}branch, asdocs/agents/custom-agents.mdalready advises.every:,sticky:orcooldown:to activation questions. Trigger Cadence already gives an agent its timing, with or without a Decision model.Additional context
containsDecisionStatementsinpackages/shared/src/utils/macro-engine.ts.createDecisionImportTrackerinpackages/client/src/lib/decision-import-notice.ts, used byImportCharacterModal,ImportPersonaModal,ImportPresetModalandImportLorebookModal.useHasDecisionModelinpackages/client/src/hooks/use-decision-model.ts.useImportAgentfromAgentsPanel.tsx. Package install:useInstallCapabilityPackagefromAgentCatalogView.tsx.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: