All pagesScenarios

Understanding Octopus

Scenarios

Four design examples show how Octopus can acquire a capability, change what it listens for, change its own client, and tell a model what matters when you come back. They describe the intended use of the architecture, rather than tested, ready-to-use features. Each depends on a model doing the work, the necessary permissions, and checks of the resulting behavior.

Read Architecture first.

1. Adding a camera at runtime

  1. You say, out loud, “what should I wear with this?” Sound reaches a microphone interface. A World interface is not only an API client - a local script that talks to audio hardware is one too. What passes its threshold becomes an audio artifact.
  2. The artifact arrives at a checkpoint. The run uses the worker named in its record and reads only the context its bindings admit.
  3. It cannot see you. Its grant has no camera and no way to draw on your screen. Its policy does let it author a run for a coder, so it does, with a task and checkpoint requirements describing the artifacts the coder must produce and the verifiers that must check them.
  4. The contract it just authored is the plan: what must arrive, and which verifier must pass it. Planning needs no separate plan object or engine.
  5. The coder, using granted file and execution tools, writes a camera driver and registers it by creating a new interface folder. It writes a renderer for an overlay window and registers that as another. Both are World interfaces because they cross the boundary to your hardware and your screen.
  6. The coder sends the evidence its checkpoints require. A passing verifier lets the runtime record a mark for that requirement. Checking descriptor syntax alone does not prove the camera or overlay works.
  7. The new descriptors are picked up live. With the interfaces bound, their processes available, and camera access granted, a run takes a frame, passes it to a vision-capable provider interface, and sends the answer to the overlay.

Once the capability works, later runs can reuse it through their own bindings and permissions. The addition consists of interface descriptors and the code behind them; it needs no camera-specific branch in the kernel.

2. Choosing its own wake word

  1. You join a voice channel with a friend. Audio reaches a microphone interface; a speech-to-text interface turns it into a transcript artifact.
  2. A run reads the transcript and concludes you are in a conversation where an always-on assistant would be a nuisance.
  3. If policy permits, it authors a task to configure a speech interface with a wake word suited to the call. An existing driver may support this through configuration alone; a coder adds package code if new behavior is needed.
  4. The configuration and required test evidence pass their verifiers. The interface is bound to the waiting run and its listener starts.
  5. The system tells you which wake word it selected.
  6. The run waits at a checkpoint without holding a thread or a tool room. The speech interface keeps listening; that work belongs to its process.
  7. When the listener detects the wake word, it emits an artifact. The arrival resumes the run through its binding under the current policy.

Here the model chooses what should wake the run and expresses that choice through interface configuration. Whether it chooses a useful trigger and implements it reliably must be established by running and testing it.

3. Changing its own client

  1. You tell Home: “show me the free disk space on Home and keep it updated.”
  2. Home asks the running client what it can host. The answer is the client’s own description: the Extensions folder in this Home, the exact schemas this build accepts, the targets and components a widget can use, the data a widget may read, and every Extension with its review state.
  3. Nothing projects disk space yet, so Home builds the system side first: a feed - an interface folder with no process, only an address - and a small run that measures the disk and sends one artifact into the feed whenever a trigger wakes it.
  4. Home writes the widget as an Extension package: a manifest and a surface document whose data source is “the newest artifact in that feed”. The widget only reads; it never calls a model or a tool.
  5. The client sees the new package, validates it, and asks you to review it. Home tells you the same thing; it does not claim the widget is installed.
  6. You install it. The widget appears without a restart, and every admitted emission into the feed updates it, because client sources re-read when the ledger changes.
  7. If the package was refused, setup is missing, or the view fails while rendering, Home sees the exact issue the next time it inspects the client, writes a new revision, and you review that one.

The client stays a projection: presentation and the owner’s consent belong to the client, while the data crosses an interface as artifacts under policy.

4. Knowing what to check when you come back

  1. You work in a task about a client deal, then go quiet for the evening. The next morning you write in the same task again.
  2. The task’s bindings route your messages through a small interface before they reach the provider - artifact in, artifact out. Every movement in the ledger carries its time, so the interface knows when your previous message arrived without any timer.
  3. This message comes more than six hours after the last one. The interface passes it on together with a note of its own: you are back after a long pause; before answering, check the mail in the deal’s folders. With a mail interface in its grant, it can attach a digest of what arrived instead. After a short pause the note is empty.
  4. The provider’s checkpoint requires both the message and the note, so the runtime releases them as one set: the model sees your message and the note together.
  5. The threshold, the folders and the wording are that interface’s configuration. Which chats or projects it covers is decided by which runs route through it, and a model can change the rule with an ordinary JSON edit under policy.

A skill could only ask the model to notice the pause itself, and the model does not reliably see the time between messages. Here deterministic code decides, the model receives the fact, and the reason it checked the mail is a recorded movement.

For the package structure behind these examples, see Extending Octopus.

esc