Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

7.8 KB
Raw Blame

Organization-to-Master Conservative Execution Gate

Status: Approved for the org to master integration release on 2026-08-04.

Background

PR #1162 carries Organization principals into the local Workbench and Resource ACL model. The Agent runtimes are intentionally shell-capable and can mutate their own environment, so Agent environment variables cannot authenticate a remote caller or turn persisted identity into durable execution authority.

The existing Organization-aware Harness plan already defines stored principal data as provenance, not bearer authority, and requires an authoritative local entitlement mirror before remote recurring execution can be enabled.

Approved Release Boundary

  • Keep Organization management, Project and Resource ACL management, and authorized Project, Session, message, and history reads.
  • Keep trusted-local Workbench, CLI, Task, Watch, Agent, terminal, and file behavior unchanged.
  • Keep IM-triggered Agent behavior unchanged.
  • This phase provides no remote authorization for Harness execution or definition writes, Vault secret-bearing operations, IM ingress configuration or bind-code inventory, Project archiving, native Agent session forks, or private Show Runtime API writes; these capabilities remain trusted-local. Signed private Show human annotations and mark-read receipts remain available only when they cannot dispatch an Agent turn. Public /p/<share_id>/... flows are a separate sharing surface, not remote Workbench authorization.
  • Make every remote Workbench capability read-only with respect to local Agent, terminal, file, and Harness execution.
  • The sole remote Cloud service exception is subject-bound Cloud ASR for a current remote editor or owner. It mints only a short-lived asr token for direct browser-to-Cloud audio transfer; it never authorizes a local Agent turn or the local ASR relay. Viewers and stale authorization claims are denied.
  • Reject remote Task and Watch creation or update at the definition service boundary when an explicit remote AuthorizationContext is present.
  • Suspend previously persisted remote-origin Tasks and Watches before any Agent, command, or waiter process starts.
  • Retire previously queued remote Workbench Deliveries before they can be claimed by a durable Agent turn.
  • Treat persisted resource_user_context only as provenance indicating remote origin. It is never sufficient authority for autonomous execution.

Enforcement Points

  1. The signed HTTP session projects remote can_chat, terminal, file, and system execution capabilities as false.
  2. The central HTTP authorization policy defaults every unclassified remote API route to trusted-local access. It explicitly permits approved remote reads and management routes, and rejects remote message dispatch, Show-event Agent dispatch, Agent-definition and instruction mutations, model/backend mutations and runtime operations, service control, local installers, terminal sockets, file operations including Show Page icon uploads, and Harness definition mutations before invoking their underlying services. Local logs and Doctor reports/diagnostics are also trusted-local because they expose machine paths, process state, prompts, command output, and potentially credentials. The same policy payload-filters routes that persist future execution choices with explicit safe-field allowlists: Session Agent/model overrides, Project creation/workdir/default Agent, and Agent/platform/runtime config sections. IM channel/thread settings, bind-code inventory, Project archiving, native Agent session forks, and private Show Runtime API writes are explicitly trusted-local because they expose credentials, change local availability, or invoke local runtime code. Generic configuration responses use a remote positive projection rather than owner-role based redaction, so local paths, executables, and future local settings are absent by default. The separate server-owned Show human-event endpoint may record a signed annotation or mark-read receipt, but rejects remote requests that would reserve or dispatch an Agent turn before event persistence. Unknown fields fail closed. Complete config round-trips may preserve protected values but cannot change them, and protected fields are stripped before persistence so a concurrent local update cannot be overwritten by a stale remote round-trip. Explicit Session/Project display fields and explicit UI/config preferences remain available. The same remote projection is used after a config save, and all remote Project reads redact local paths and arbitrary metadata regardless of Instance role. Live Agent process snapshots and graph diagnostics remain trusted-local rather than receiving a partial remote projection.
  3. The durable Delivery owner retires remote-origin queue entries before the FIFO claim that starts an Agent turn.
  4. Task and Watch stores reject explicit remote definition writes.
  5. Task and Watch executors detect persisted remote provenance and atomically disable the definition with remote_autonomous_harness_disabled before any process spawn or Agent dispatch.

Deferred Phase 2

Remote Agent and autonomous Harness execution stay disabled until both are available:

  • server-mediated Agent tools whose caller identity cannot be removed or forged by the Agent process; and
  • an authoritative local entitlement mirror that revalidates current Instance revision, membership, role, groups, Project access, and Resource ACLs at every launch and resume boundary.

No opaque token passed through the current Agent environment is considered a substitute for either dependency.

Validation

  • Remote Workbench message and Show dispatch do not reserve or start a turn.
  • Remote terminal and file requests fail closed; trusted-local requests retain existing behavior.
  • Remote Vault secret/grant/sign mutations, IM user and bind-code operations, Project archiving, and Skill source previews fail before reaching local stores or tooling. Remote config reads omit local runtime and executable paths.
  • Remote service control, installers, Agent-definition mutations, model/backend mutations and probes, and Show Page icon writes fail before reaching their local runtime or filesystem services.
  • Remote logs, Doctor reads/runs, UI reloads, and legacy OpenCode helpers fail before any file read, diagnostic, process spawn, service exit, or config write.
  • Remote Cloud ASR tokens mint only for current editors/owners and only with the asr scope; viewers, stale sessions, and other scopes never reach the broker.
  • Remote config saves and every Project read surface omit local configuration, filesystem paths, arbitrary metadata, and local runtime diagnostics.
  • An unknown owner-only API route is trusted-local by default; remote exposure requires an exact method/path policy entry and regression evidence. A new path under an already approved namespace does not inherit remote access.
  • Remote execution-setting writes through Session, Project, IM channel/thread, user, and config routes fail before any store save, runtime reconciliation, or restart scheduling. Remote native Agent forks and private Show Runtime writes fail before session persistence or runtime invocation; Session titles, Project display names, and explicitly allowlisted UI preferences remain writable.
  • Paired Project synchronization never forwards the device secret through an HTTP redirect.
  • Remote Task and Watch add/update calls produce no definition write.
  • Existing remote-origin Tasks and Watches are disabled before command, waiter, or Agent dispatch.
  • Existing queued remote Workbench Deliveries are retired before FIFO claim; later local queue entries remain runnable.
  • Focused backend tests, frontend build, Ruff, lock validation, and diff checks pass before the PR is pushed for a new current-head review.