Merkl subsidy campaigns

This page says what a deployment needs before the first Merkl Subsidy Campaign run, which of the process map's automations (A1–A12) run where, and what the platform cannot do for this process yet.

The process map is the ops document "Merkl campaign - incentives - process mapping": one Merkl Token holding campaign (campaignType 18, MAX_APR, capped APR) per Skybase Morpho vault per week, funded by the Skybase USDS Demand Subsidies Safe 0x3F32bC09d41eE699844F8296e806417D6bf61Bba. Merkl Topup (the Sky Savings Rate FIX_APR campaign) is a separate template and is unchanged.

Two templates per vault-week

TemplateKeyCovers
Merkl Subsidy Campaignmerkl-subsidySkybase confirmation (A11, ✅ only), USDT balance (A10), payload (A7, A6), contract identity (A9), proposer signature, queued-transaction check (A4), second signer (A2), signature watch (A12 gate, A8, A5)
Merkl Subsidy Campaign: executionmerkl-subsidy-executionBot execution (A12), live campaign check (A4), OEA Payments Tracker row (A3), last-amount history, Skybase summary

The campaign run starts the execution run with its values once the Safe transaction has its signatures. The Safe executor alone is over half of the platform's program size limit, so the two parts cannot be one program. The execution run does nothing when started by hand.

Before the first run

  • Document collections. Create two collections under /database (needs database:write): merkl-subsidy-settings and merkl-subsidy-amounts. Without them a run still works: it uses the template defaults and has no "last week" amount to propose. The run says which source it used.
  • Settings document. In merkl-subsidy-settings, a document with id settings. Both fields are optional; an unusable value falls back to the template default.
{ "skybaseConfirmers": ["U0AKKA6E6BS", "U0BALQ2BZTQ"], "aprCapPercent": "10" }

skybaseConfirmers are the Slack user ids tagged on every request; a ✅ from any one of them confirms the amount. The template default is Kacper (U0AKKA6E6BS) first and Kuba (U0BALQ2BZTQ) as backup, tagged in that order. Add or remove a Skybase person here, no release needed. aprCapPercent changes only on an explicit Skybase decision.

  • Slack. The bot posts by channel id to #ozone-skybase-general (C0ALAHCKUN5) and #soterlabs-signers (C0AKV749160) and must be a member of both. Reading the confirmation (A11) needs one more bot scope, reactions:read. It reads the reactions on the request message only: no channel history, no replies. Without it the confirmation watch stops at once with Slack's answer, including the scope it needs, and the proposer enters the confirmed amount and link by hand.
  • Ethereum and Safe. As for Curve Topup: ETH_RPC_URL, SAFE_API_KEY, SAFE_EXECUTOR_PRIVATE_KEY and the two PROCESS_EFFECT_* keys (see deployment). The contract identity check, the USDT balance check and the queued-transaction check read through the same Ethereum RPC and Safe Transaction Service endpoints as the Safe executor; without them those checks fail closed and the run waits there.

How Skybase confirms the amount

The proposer picks the vault and, by default, lets ProcessOS ask Skybase. ProcessOS posts one request per run in #ozone-skybase-general: one vault, one amount (the one entered, or last week's for the vault), one week, mentioning the confirmers and tagging the proposer:

USDS Flagship Merkl campaign, week starting 2026-10-27 16:00 UTC (7 days, APR cap 10%): 7500 USDS React ✅ to confirm. To change the amount, reply here and tag @proposer.

It then checks the request's reactions every five minutes:

  • The only confirmation is a ✅ (white_check_mark) reaction on the current request from an allowlisted confirmer. ✔️, 👍 and every other emoji, a ✅ from anyone else (the bot included) and a ✅ on an earlier request do not count. The run shows what it saw and did not count.
  • Replies are never read, so a reply never changes the amount by itself. This is a deliberate departure from the process map's A11 wording ("a reply with a different number replaces the amount"): parsing amounts out of free text is where a confirmation becomes ambiguous. To change the amount, Skybase replies and tags the proposer; the proposer chooses Ask Skybase again with a revised amount in the run. ProcessOS posts a new request, which needs its own ✅, and replies in the earlier request's thread that it was replaced.
  • On a ✅ the amount is locked. ProcessOS replies in the request's thread with what it recorded ("Recorded: 7500 USDS for USDS Flagship, confirmed by @Kacper (seen 14:02 UTC)"), stores the request link, the confirmer and the time on the run, and tells the proposer. A different amount needs a new request: the run refuses another amount against a Slack confirmation.
  • No campaign this week is the proposer's explicit Skip this week, with the reason and the link to Skybase's message; it is recorded as entered by hand.

The proposer can end the wait by hand and enter the amount and a confirmation link. The run records the path: slack, manual, or manual-override (Slack was asked but the values were entered or changed by hand). Without a confirmation link the proposal cannot be submitted, so nobody signs.

Starting on schedule (A1, and A5/A8 for runs stuck early)

The two weekly runs can start themselves: a document in the platform's schedules collection (see scheduled starts) starts one run per vault every Monday 08:00 UTC, with the vault preset on "Start the run" (the template's startValuesStepKey). It is disabled until you enable it:

{
  "name": "Merkl subsidy",
  "templateKey": "merkl-subsidy",
  "enabled": false,
  "cadence": { "every": "week", "weekday": "monday", "time": "08:00" },
  "cutoff": { "weekday": "tuesday", "time": "16:00" },
  "runs": [
    { "key": "usds-flagship", "label": "USDS Flagship", "values": { "vault": "USDS Flagship" } },
    { "key": "usdt-savings", "label": "USDT Savings", "values": { "vault": "USDT Savings" } }
  ],
  "noticeChannel": "C0AKV749160",
  "owner": { "email": "<the person responsible, e.g. erwe@soterlabs.com>" },
  "sharing": { "defaultVisibility": "none", "editors": ["<proposer and signer emails, e.g. erwe@soterlabs.com>", "<e.g. adam@soterlabs.com>"] }
}

To turn it on: insert it under /database as document merkl-subsidy-weekly in schedules, fill in the owner and the editors (the people who may propose and sign: they get editor access to each run), and set "enabled": true. The template allows scheduled starts (its start permissions name processes:start-scheduled), so the ProcessOS account needs nothing more. A run that is not started by the cutoff (the campaign start) is skipped and the skip is posted; it is never started late.

The template also declares three deadlines. The attention sweep posts them to #soterlabs-signers when due, then repeats them at most every 30 minutes while unresolved. Compatible notices from the same campaign are grouped into one message, with a row per vault naming its Safe nonce and process link. Pickup (A1), signing (A8), and not-ready (A5) notices all use this format. A8 says "awaiting a second signature" only for runs at cosign_review; earlier stages say "awaiting signing".

The signature-watch reminders and escalations remain transaction-specific workflow effects (and already name the vault). Skybase amount-confirmation requests also stay separate: a reaction on each request confirms that vault's amount and must not acknowledge another vault.

Deadlines:

DeadlineDueWhile the run waits at
A1, not picked up3 hours after the run reached "Start the run" (11:00 for a Monday 08:00 start)Start the run
A8, not signed3 hours before the first Tuesday 16:00 after the run startedany step before the signature watch
A5, not ready1 hour before that Tuesday 16:00any step before the signature watch

Inside the signature watch the run posts its own A8/A5 pings (with the owners who have not signed), so a run there is never pinged twice.


Known gaps

  • A8, people for owners. The run lists the Safe owner addresses that have not signed. Mapping them to people and Slack ids needs the Skybase Wallet Tracker sheet; the platform can append to a sheet but not read one. Mentions use the signers chosen in the run.
  • A2, who ticked the box. Template logic cannot see which signed-in person completed a step, so the proposer and second signer are the people chosen in the run. The Safe itself enforces two different owner signatures.
  • A12, executor failure. As in Curve Topup, a failure of the Safe executor fails the execution run; the second signer then executes in the Safe, and the tracker row and Skybase summary are written by hand.
  • Undistributed rewards. Not reclaimed, as in Merkl Topup. The run records the budget after the Merkl fee and the Merkl metrics link (per-day distribution); the campaigns API has no distributed-to-date total.
  • Endpoint names. The checks address the default deployment's endpoint and credential names (safe-rpc, safe-service-mainnet, slack). An explicit PROCESS_APP_CONFIG must provide the same names.

Before A8/A5 deadline warnings, deployment attention infrastructure reads the linked transaction from the mainnet Safe Transaction Service. A matching transaction in the Demand Subsidies Safe with confirmed successful execution is omitted from the warning. A bounded worker-local cache remembers validated successful hashes, so a later service outage cannot revive their warnings during that worker's lifetime. Changing the linked hash, a restart, or cache eviction requires a fresh read. Unsigned notices include live signature counts rather than inferring them from the saved review step. Fully signed but unexecuted transactions are labelled “signed, awaiting execution”; failed executions are reported as failures. Failed reads, unexpected response shapes, or mismatched transaction/Safe identities produce a status-unavailable notice rather than a claim that signatures are missing. The Safe API key, when configured, stays in the HTTP Authorization header. These reads have a five-second timeout and never follow redirects.

Missing transaction hashes leave a proposal/review reminder. This reconciliation never advances a run or marks a human control point complete: signing directly in Safe does not submit cosign_review. The checklist remains pending in ProcessOS even after execution. Completed transactions stop generating signing/execution deadline warnings while that review is outstanding.

The October 27 false positives came from the backup deadlines introduced in #253: they inferred transaction readiness from the current ProcessOS step. Earlier signature-watch checks read Safe but only ran after manual review. Frequency/grouping changes (#261/#262) retained that inference.