Your first decision gate
Write a record that has no routing rule yet, see Syncropel propose one as a decision request, approve it, and watch the next similar record route automatically.
What you'll learn
In about 30 minutes, you'll use the decision gate, the way your workspace learns new rules with your approval. You'll write a record that Syncropel doesn't yet know how to route, see it raise a decision request for your approval, approve it, and check that the next similar record routes without any new reasoning.
Syncropel never silently changes routing or permissions. It proposes, you decide, and your decision is saved as a record that is reused later.
A proposal is a core.work.decision_request.v1 record, and you answer it with spl decisions. Syncropel proposes, a person decides, and the decision is kept.
Before you start
splinstalled (spl --version)- A running workspace, either local (
spl serve) or hosted (<label>.syncropel.app). spl statusreturnshealthy.- A model provider key configured (
spl config set-key anthropic <key>), because Syncropel needs a model to reason about new routing. On a hosted workspace the key is already set up.
If you've never written a record before, do Working with threads first. This tutorial assumes you can read spl thread records <id> output.
1. Confirm proposals are enabled
Proposals (Syncropel reasoning about unrouted work and suggesting a rule) are off by default on local installs. Check:
spl config show | grep -i intelligenceIf you see intelligence_enabled: false (or no entry at all), enable it by giving Syncropel a model to use:
spl config set-key anthropic <your-key>
spl config model claude-sonnet-4-6The change applies right away, with no restart.
2. Write a record with no matching routing rule
Pick a kind of work the workspace hasn't seen. The simplest is a new thread with an INTEND that asks for something:
spl intend "Translate the README.md to French" --thread th_fr_translateOutput includes a record id and thread id:
✓ Record created
thread: th_fr_translate
record: rec_8a3c...
act: INTENDSyncropel checks for a matching rule or pattern and finds none. That miss is what triggers a proposal.
3. See the proposal land in the decision queue
Within a few seconds, Syncropel reasons about the unrouted intent. Because it isn't confident enough to apply the rule on its own, it raises a decision request and waits for you. List the pending decisions:
spl decisions listYou'll see something like:
◈ 72% Intelligence proposal (confidence 72%): Add a new routing rule
that matches INTENDs like "translate <doc> to <lang>" and routes
them to the translator agent.
id: e6a0f87dfc917aba...
spl decisions approve e6a0f87dfc917aba
1 pendingThe request includes the matching expression Syncropel suggests, the recommended target actor and a confidence score. To see the full body:
spl decisions list --json | jq '.[0]'Until you act, no rule exists and no future record will route differently. The pending decision also shows up in spl resume under NEEDS. The decision gate is the one place where everything waiting on you collects.
4. Approve the proposal
spl decisions approve is shorthand for choose <id> approve. Approving a routing proposal applies it:
spl decisions approve e6a0f87dfc917abaOutput:
✓ Decision answered
request: e6a0f87dfc917aba...
response: approve
result: routing_rule_added (name: routing_translator_v1)What happened: your approval is itself a record, a DO with body.fulfills pointing at the core.work.decision_request.v1. Syncropel saw the answer, recognized a routing-rule proposal, and saved a routing_rule.add.v1 LEARN on th_engine_config. The rule applies right away. It is stored as records, so it survives restarts and travels with spl export and spl import.
Verify the rule landed:
spl config list-rulesYou should see routing_translator_v1 in the list.
Three ways to answer a decision. Not every decision is yes or no. A core.work.decision_request.v1 asks for one of three kinds of answer, and the CLI has a command for each:
- CHOOSE: pick from the listed options.
spl decisions choose <id> <option-id>;approveandrejectare shortcuts for the common two-option case. - PROVIDE: supply a value of your own.
spl decisions provide <id> --value <json-or-string>. - ACKNOWLEDGE: a plain "seen it".
spl decisions ack <id>.
It is the same gate and audit trail whoever asks: Syncropel itself, a paused work loop, a spl decompose plan or a paired workspace.
5. Write a similar record and watch it route automatically
spl intend "Translate the CONTRIBUTING.md to Spanish" --thread th_es_translateThis time the new rule matches, and the work goes to the translator agent without any new reasoning. Inspect the thread:
spl thread records th_es_translateYou should see two records back-to-back: your INTEND, and a follow-on DO from Syncropel with body.dispatch_handled: true, showing the route was used.
Compare it with step 2's thread, which has only your INTEND with no follow-on. That is the difference between reasoning every time and reusing a learned rule.
6. Inspect the audit trail
The proposal, your answer and the applied rule are all records. The decision request opened on its own thread, the answer fulfills it, and the rule lands on th_engine_config. Export the security-relevant records (spl audit export writes one JSON record per line) and filter them:
spl audit export --since 1h | jq 'select(.body.kind | test("decision|routing_rule"))'Every decision is a record, so the trail is complete (see Governance).
What just happened
You used Syncropel's decision loop:
- No match is useful. When routing finds no match, Syncropel doesn't fall back to a default. It raises a
core.work.decision_request.v1and waits. - Your answer is a record. It is a DO that fulfills the request, and it stays on record through export, import and audit.
- Rules are records. Routing rules are stored as LEARN records on
th_engine_config. - Reuse closes the loop. The next similar record matches and skips reasoning, so the cost goes from one model call to checking one expression (see patterns).
Syncropel proposes, you decide, and your decision becomes a lasting record.
Where to next
- Your first pattern: what happens as the same kind of work repeats and becomes a pattern.
- Patterns concept: how patterns are matched, reused and made permanent.
- Engine concept: what keeps your workspace running, including how proposals are raised.
- Governance concept: how permissions, decisions and audit all work through records.
- Expressions guide: write your own routing rules instead of waiting for a proposal.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
spl decisions list always returns empty | Proposals are disabled, so nothing was proposed. | Confirm spl config show reports a model and provider key. Enable with spl config set-key <provider> <key> and spl config model <name>. |
| A decision stays pending forever | You're reading from a paired workspace, not the one where the record was written. Decisions belong to the workspace that raised them. | Run spl decisions list against the workspace where the original record was written. Check spl actor list to confirm which DID is the active actor. |
spl decisions approve returns 403 forbidden | Answering a decision writes a record, and your token lacks write scope. Hosted workspaces require auth by default. | Create a service account with write scope: spl service-account create --name "Decider" --scopes records:write --with-token, then spl token save <token>. |
| Approved rule didn't fire on the next similar record | The proposed rule is too narrow and matches only the exact first record. | Inspect with spl config list-rules, find the rule, and broaden its match expression. |
spl audit shows no decision records after approving | The approve command ran against a different namespace from the one you're reading. | Pass --namespace <ns> to match the namespace the original record was written into. |
Your first federation pair
Pair two workspaces with one command, write a record on one, read it on the other, and see how consent controls what is shared.
Your first pattern
Do the same kind of work three times, see Syncropel recognize the pattern, watch your trust score grow, and see how the next similar piece of work is handled.