Scopra Product Requirements Document
Status: Draft v1.0
Product: Scopra
Category: Controlled execution infrastructure for AI agents
Initial target: Linux private alpha
Last updated: 2026-10-17
License: MIT, free for everyone, with no pricing model (ADR-014)
Executive Summary
Scopra is a secure execution gateway that lets AI agents interact with approved developer environments without unrestricted machine access. Scopra Mariner provides CLI/TUI onboarding and machine enrollment. Scopra Mio, the local daemon, registers workspaces and connects outbound to Scopra Caloris, the cloud control plane, over Scopra Goldstone, the machine relay, using the Scopra Messenger Protocol. Scopra Resolution evaluates policy and Scopra Rupes is the local enforcement boundary; authorized operations run in Scopra Hollow, a rootless isolated environment, and attributable events are recorded in Scopra Catena. Scopra Facula is the planned security-signal and anomaly-detection layer.
Give agents enough access to complete the task, never unlimited access to the machine.
Problem
Developers repeatedly copy commands from browser AI tools into terminals and paste output back. This causes context switching, weak execution continuity, error-prone transfer, and pressure to grant unsafe broad access.
Vision
Scopra becomes the trusted execution layer between AI agents and real computing environments: local machines, development servers, containers, Git, tests, databases, cloud systems, deployments, browsers, and internal tools.
Goals
- Eliminate manual command/output relay loops.
- Provide machine-, workspace-, capability-, and time-scoped access.
- Keep local policy as final authority.
- Require exact-action approval for sensitive operations.
- Return structured execution results.
- Produce attributable audit records.
- Support MCP and future integration methods.
- Reach first successful execution in under five minutes.
Alpha Non-Goals
- Unrestricted shell or remote desktop
- Root or administrator execution
- Production infrastructure administration
- Interactive PTY
- Browser extension
- Windows
- Multi-agent delegation
- Secret injection
- Team RBAC, SSO, or self-hosting
- Pricing, paid plans, billing, usage charges, and feature gating
Users
AI-assisted developer
Runs tests, builds, linting, debugging, and project commands while controlling writes, network use, and sensitive actions.
Technical founder
Operates multiple products and machines and needs resource selection, approvals, revocation, and auditability.
Future administrator
Governs shared machines, agents, policies, approvals, identity lifecycle, and retention.
Product Principles
- Least authority by default.
- Local enforcement is authoritative.
- Structured execution before shell strings or PTY.
- Approval binds to exact effect.
- Repository and process output are untrusted.
- Security remains usable.
- Auditability is part of execution.
- Escalation is narrow and explicit.
- Free and open source, with no pricing model: every capability is released under the MIT License, and there are no paid tiers, usage-based charges, plan limits, or feature gates.
Alpha Scope
- Linux x86_64
- Go Scopra Mio local daemon and Scopra Mariner CLI/TUI
- Short-lived device enrollment
- Authenticated outbound machine channel
- Workspace registration
- Rootless Podman execution
- Structured command execution
- Process status, streaming, and cancellation
- Scoped grants
- Exact-action approvals
- Minimal environment
- Network disabled by default
- Cloud and local policy
- Remote MCP
- Dashboard and audit timeline
- Grant and machine revocation
Domain Model
- User
- Machine
- Workspace
- Agent
- Client
- Grant
- Session
- Execution
- Approval
- Policy and PolicyVersion
- Artifact
- AuditEvent
- Revocation
Functional Requirements
Installation and lifecycle
- Signed packages and checksums
- Guided TUI onboarding
- Device-generated asymmetric key
- Single-use browser activation code
- Machine inspection, rotation, and revocation
- Signed updates with rollback protection
Workspaces
- Register and remove an existing directory
- Canonical path and repository fingerprint
- Read-only and authorized read-write modes
- Local maximum policy
- Removing authorization never deletes source files
Grants
- Scope by user, agent, client, machine, workspace, capability, constraints, and expiration
- Short-lived access tokens
- Prompt revocation for online machines
- Mandatory cloud and local authorization
- Default deny for unknown operations and fields
Execution
- Executable plus typed argument array
- Workspace-relative working directory
- Runtime, CPU, memory, PID, output, artifact, and concurrency limits
- Structured stdout, stderr, status, exit code, timing, truncation, and artifacts
- Cursor-based output reads
- Cancellation terminates descendants
Approvals
- Freeze canonical request
- Bind approval to action hash, principals, resources, policy versions, expiry, and use count
- Display exact command and independent risk explanation
- Support Reject and Allow once
- Invalidate after material changes or revocation
Environment and network
- Start from an empty environment
- No inherited SSH, GPG, browser, cloud, Docker, or Kubernetes credentials
- Network disabled by default and represented as a separate capability
- Block cloud metadata and sensitive link-local endpoints
MCP tools
list_machineslist_workspacesget_workspaceexecute_commandget_executionread_execution_outputcancel_executionrequest_capabilityget_approval_status
Dashboard
- Overview
- Machines and workspaces
- Grants
- Approvals
- Sessions and executions
- Integrations
- Account and security
Audit
- Attributable security events
- Append-only history
- Local buffering and reconciliation
- Separate retention for metadata, output, and artifacts
- No bearer tokens or raw secrets in audit metadata
Non-Functional Requirements
Security
- Rootless containment
- No privilege elevation
- No host Docker socket
- No permanent master terminal credential
- Signed installer and update chain
- Encryption in transit and at rest
- Negative authorization tests for every resource
Performance Targets
- Local policy p95 below 50 ms
- Cloud authorization p95 below 150 ms excluding network latency
- Request-to-local-start overhead p95 below 500 ms for online daemon
- Output streaming p95 below 500 ms
- Approval propagation p95 below 2 seconds
Reliability
- Idempotent creation
- Reconnection without duplicate execution
- Every accepted execution reaches a terminal state
- Audit gap detection and reconciliation
Security Invariants
- No anonymous execution.
- Every action is attributable.
- Cloud cannot broaden local authority.
- Agents cannot approve themselves.
- Material changes invalidate approval.
- Output cannot modify authorization.
- Revocation has a defined objective.
- Workers cannot modify Scopra security components.
- Unknown capabilities are denied.
- High-risk operations fail closed when required auditability is unavailable.
Success Metrics
North star: Successful agent execution loops completed without manual terminal copy-paste.
Track installation, activation, workspace creation, integration connection, first execution, approval outcomes, revocation latency, resource-limit events, duplicate or lost executions, and audit gaps.
Alpha Acceptance Criteria
A new user can install Scopra, activate a machine, register a workspace, connect an MCP client, issue a scoped grant, run a bounded command in rootless isolation, receive structured output, approve a sensitive action, cancel a process, inspect the timeline, and revoke access without exposing the home directory, host credentials, network, or Docker socket.