Reference
Local agent work
Prepare local drafts, inspect weekly evidence and understand the remaining shipping and recovery boundaries.
On this page
The owner can request reviewable local work through the authenticated Vane HTTP API. These routes require the current native owner session and same-origin POST requests. They add no outbound grant and make no provider claim. The existing instrumentation GitHub connection remains limited to its approved exact script diff.
POST /api/vane/agent/draftacceptssiteId, evidence datesfromandto,title,effect,guardrail,measurementandtarget. Each text field is plain text of at most 280 characters. Destinations are github, pane, webflow, mango and ads; all are draft-only. The draft records the expected effect, guardrail and measurement plan.POST /api/vane/agent/shiprefuses every draft destination. A person's approval does not invent a grant. Pane edits, general copy PRs, redirects, campaign writes and budget writes remain unavailable.GET /api/vane/agent/work?siteId=...&id=...reads saved local work. Omitidfor the newest 100 records. Links stay within the installation and require the owner session.POST /api/vane/agent/briefacceptssiteIdand optional end-exclusiveto. It analyzes seven ended local days of native observations, excluding imported history. The existing cron also produces the latest ended Monday-to-Monday week in each site time zone. Repeated production reuses the saved week. Settings shows the supported figures, source links, local drafts and dismiss controls. It returns up to five supported opportunities, with figures, report links and linked change drafts. With fewer than three supported opportunities it reports the evidence shortfall explicitly. Entry and exit opportunities require at least five entries and exits at least half the entries; a campaign requires at least five visits and conversion above the site's native visit rate; loading opportunities require five measured loads, p75 LCP above 2,500 ms and conversion below the visit-weighted conversion rate of other pages with five visits, five measured loads and p75 LCP at or below 2,500 ms; a funnel opportunity requires five entrants and fewer than half reaching the next step. These are review heuristics, not proof of causal lift. Search opportunities require finalized Search Console figures with at least 100 impressions and average position from 4 to 20 inclusive. One candidate per supported type is preferred before filling the five places.POST /api/vane/agent/dismissacceptssiteIdandtype: entry-exit, campaign, slow-page, funnel or search. The type is omitted from later briefs and from re-requesting the same brief. Saved brief reads and Settings also hide the dismissed type immediately and recalculate the evidence shortfall from the remaining opportunities. The stored historical evidence and linked drafts are preserved.POST /api/vane/agent/measureacceptssiteId,fixId,from,to,comparedFrom,comparedTo, and optionalexperimentandvariant. It requires a verified instrumentation fix deployed before the measured window. A local draft cannot stand for a shipped change. Ended windows must be non-overlapping, equal in length, match weekdays and span at most 31 days. Experiment intervals and minimum samples come from the ordinary experiment report. Observed coverage or definition changes withhold a positive verdict. Before-and-after work remains inconclusive; complete historical coverage, approved revert and positive-result acceptance proof remain unbuilt.POST /api/vane/agent/pursueacceptssiteId,itemIdand the same evidence windows as the movement investigation. It investigates first, saves the hypotheses and unknowns, and comments an evidence link on the unresolved follow-up. It sends no new message and never automatically closes the item. Existing owner-configured follow-up reminders continue normally. A person resolves through the existing follow-up form. Developer contact, verified recovery and automatic closure with intact coverage remain unbuilt.
Saved drafts contain owner-authored text; avoid entering personal details. Briefs, measurements and pursuits contain derived aggregate evidence and existing record references. These records do not create per-visitor histories. Whole-installation archives include them. History erasure removes them; retention removes work whose evidence begins before the retained window. Dismissals persist as owner preferences until site deletion. Per-site transfers exclude this work. Derived writes check the original settings version and deletion journal before committing, so an in-flight result cannot recreate erased evidence.
AGENT-003 through AGENT-006 remain partial. Their original acceptance requirements still apply. The weekly scheduler creates local drafts only; its DONE ruling remains with ct under the 23 October riders. Future shipping must carry active owner authority, explicit grant scope, revocation, approved material copy and spend, custody and evidence controls before becoming available.
Company agents
A company's own agent connects to Vane through one door at /mcp (MCP
2026-07-28, 2025-11-25 and 2025-06-18). It acts for one person in Vane, its
sponsor, and sees only the sites that person may open (TEAM-001). People
manage it on the Agents page at /agents: company policy, Pause, the audit
of every call and revoking an agent.
| Tool | What it does | Class | Clauses |
|---|---|---|---|
vane.sites.list |
The sites the sponsor may open: id, name, origin, time zone and whether the first event has arrived | standard | TEAM-001, API-004 |
vane.stats.query |
Totals and an optional breakdown for one site and range, exactly as the dashboard and the Stats API answer | standard | API-001, API-004 |
Both tools only read. A deactivated sponsor is refused. When the installation
requires single sign-on, no agent is admitted (an agent has no identity-provider
sign-in); when it requires a second step, the sponsor must have enrolled one.
Page paths, referrers and event names come back as untrusted data. Plain-English
questions (AGENT-007) stay on the dashboard and the key-authenticated
/api/v1/mcp, because the door's audit would keep the question text that Vane
promises not to store.
When the installation is set up through Run Edit Run's Business, the Business
signs its policy and team with the installation's owner-claim key ring; team
members bind to existing Vane people and the Business can stop or pause every
agent at once. Without a Business, the owner sets the policy on /agents.