Reglas y aprobaciones
Rules that hold after the chat ends.
Write a rule once and it governs that kind of work for everyone it applies to. Test it on what it should catch and what it should let through, preview the change, and confirm.
Write a rule you can test.
Give it a recognizable name. Say what to match, by keywords or a pattern, what it inspects (a user message, a tool call or both) and the message to show when it matches. Priority decides which rule wins when several match. Real positive and negative examples matter most for a rule that matches by meaning.
The five rule actions.
| Action | Effect |
|---|---|
refuse | Declines the request and returns the deciding rule and its explanation. |
deny | Denies the matching action. A connection with pre-run checks can stop a tool call it intercepts. |
require_defer | Requires a fresh answer from your AI, which gets the rule text and the relevant sources. |
require_tool | Routes the work to a named tool. That call’s permission, inputs, result and receipt are its own. |
allow | Allows a request under a condition. A narrower, higher-priority exception can still take precedence. |
Preview, then confirm.
- PreviewAdding or removing a rule first returns a summary and a one-time confirm code. Read the exact wording, scope and effect.
- ConfirmAn authorized identity completes the same request with the code. The code belongs to that change and that identity.
- CheckReopen the rule: its standing, approver and time. A proposal that needs an administrator stays pending until approved.
- TestIn a shared scope, try one matching and one non-matching request to see the rule act where you meant it to.
A project instruction is not a team rule.
An agent that declared its environment sees its project instructions, marked declared, on later turns. A teammate’s agent does not get them automatically. To make a practice hold for every eligible agent on the team, propose an active rule at the right scope. Its status, action and approver show what has really been authorized.
Where a rule acts.
Over MCP alone, your AI receives the rules and follows them. With hooks, supported tool calls are checked before they run, so a deny can stop the action itself. Read the guarantee on the record of each action.
Instrucciones que un agente de IA sigue para sacar el máximo partido a esta parte de MatterSpace Duplex. Pégalas en las instrucciones de tu agente o dirígelo al markdown de esta página.
Listing and changing rules
- List:
duplex_rules {op: "list"}. - Change only when the user asks:
duplex_rules {op: "add", rule: {...}}or{op: "remove", rule_id}. - A rule takes
name,action(deny,refuse,require_defer,require_tool,allow),keywordsorpattern,message,tool,priority,examplesandcounterexamples.
Two-step confirmation
The first call returns a summary and a one-time confirm code. Show the user both, word for word. Send the same request with confirm only after the user agrees. Never confirm on your own.
After applying
Reopen the rule and report its standing, approver and time. If it is pending approval, say so. Suggest one matching and one non-matching test request.
Following rules
- On
refuse, decline and name the rule. - On
require_defer, answer freshly using the rule text and sources provided. - On
require_tool, call the named tool and report its receipt. - When a hooked tool call is denied, never look for another route to the same effect.
Where to find more in the MatterSpace Duplex docs:
- Reglas y aprobaciones, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txtPrompts para esta página
Todos los prompts →Copia uno, completa las partes entre corchetes angulares y dáselo a tu IA.
Draft a Duplex rule named "<name>" that <refuses / requires review of> requests to <action>. Match it on <keywords or meaning>. Add two examples it should catch and two similar requests it should let through. Show me the preview and confirm code, and wait for my OK before confirming.
Where to find more in the MatterSpace Duplex docs:
- Reglas y aprobaciones, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txtThat request was refused. Show me the Duplex rule that decided it, its exact wording, its scope and priority, who approved it, and any other rules that matched.
Where to find more in the MatterSpace Duplex docs:
- Reglas y aprobaciones, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txtList the active Duplex rules that apply to my work in this scope, grouped by action (refuse, deny, require_defer, require_tool, allow), and show any proposals waiting for approval.
Where to find more in the MatterSpace Duplex docs:
- Reglas y aprobaciones, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
