Systems

A system is something outside viff that viff reads or acts on: a repository, its issue tracker, a forge, Linear, Slack. The viff system is viff itself, acted on by a task as the person it runs for would. Viff meets each system in two places (basic concepts):

  • An iod connects the system to the store. It writes what the system holds into the store, where a charter reads it. It also carries what a charter writes back out to the system: a comment, a tag, a message.
  • A runner performs the system’s verbs for a task. The task calls a verb, and the runner makes the call with its own credential.

Viff keeps one document for each system, at mirror.systems.<name>. The document names the system’s verbs and the params of each verb:

sh
viff d mirror systems git-issue

A verb is written three ways, one for each reader:

Spelling Example Who reads it
the tool, <system>-<verb> git-issue-push the task that calls it: an agent, or a script with viff-call-tool
the step, <system>.<verb> git-issue.push the task’s environment, which gives it, and its autonomy, whose rows match it by its params
the row, {system, verb, <params>} {system: git-issue, verb: push, repo: github.com/acme/app} the author of a spawn, and the operator who writes the runner’s ceiling

A task’s events and its questions name the step and its params. So you can see what the task called, which row decided it, and what happened.

A block gives verbs

A spawn’s environment.systems gives a task what it may do, one block per system (or per repository, for the systems that name one). A block names the verbs it gives, each with its shapes: git: {repo: acme/app, fetch: {}, push: {ref: !regexp "^refs/heads/viff/"}}.

A block that names no verb gives every verb of its system, any call: files: {}, question: {}, git-issue: {repo: acme/app}. Once one verb is written, only the verbs written are given: git-issue: {repo: acme/app, pull: {}} gives pull alone. The network is apart: network: {mode: open} is its mode, and under allow its tcp-client shapes name the hosts.

A runner’s ceiling is written the same way, and an empty ceiling block allows every verb of its system. A git block can be written empty too, and then gives every push, forced or deleting, of any branch; a charter that ships writes its git push shapes instead.

The table below is generated from the system documents in pkg/systems — the same ones viff serves at mirror.systems.<name> — so the verbs are always what the code honours, not a second copy that can fall behind it. Each system’s page says which iod backs it, or why it has none.

SystemVerbs
agentcall-sub-agent
commandsrun
fileswrite
gitfetch, push
git-issueclose, comment, create, pull, push
githubclose-pr, comment-pr, create-pr, list-prs, read-pr, reply-comment, update-pr
github-issueclose, comment, create, list, read, update
linear-issueclose, comment, create, list, read, update
mcpcall
networktcp-client
pkginstall
questionask
secretexec
slackpost, react, read, reply
viffask-create, ask-get, ask-list, charter-check, charter-get, charter-install, charter-remove, data-get, data-put, data-rm

The iods ship for git, git-issue, github, github-issue, linear-issue and slack; secret, mcp, pkg, viff, question, files, commands and agent are performed by the runner itself, and network is the connections a run opens through its runner’s proxy. The runner uses its own credential, and stays within the ceiling its configuration puts over each system (the viff runner).

What a task lacks

Three of the systems exist for what a task’s image and its own hands do not give it, and they are one design read three ways. A tool the image does not carry is pkg’s: the runner installs it into the task’s read-only prefix, and the tool then runs inside the task, as the task’s own. A command that needs a credential is secret’s: the runner runs it once, in a sandbox of its own, with one secret of its store, which the task never holds. A remote service’s tools are mcp’s: the runner calls them with the server’s credential, and the task never reaches the server. In each the task only asks; the same environment, autonomy and ceiling grammar decides; and the trust is the runner’s, never the task’s — the secret store under secret and mcp, and for pkg the signed index of the repositories the operator names, so that system holds no credential at all. None has an iod: these are what a task does, decided as it is done, not something viff watches.

Edit on GitHub · viff is a shared runtime for a team's software delivery work.