Changelog
All notable changes to this project are documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Scopra is pre-alpha. Until v0.1.0, breaking changes may appear in any minor version, and the wire protocol is versioned separately (see ADR-002 and ADR-009).
[Unreleased]
Added
- Cgroup preflight now matches the daemon's service context (ADR-017). The installer and
scopra doctorrunpodman infoinside a transient systemd user service requestingDelegate=cpu cpuset io memory pids; the generatedscoprad.servicerequests the same controllers. The installer no longer trusts a desktop terminal's less-delegated cgroup, and a no-service install additionally checks the current process context wherescopradwould be started. The opt-in user-manager drop-in is re-probed in the same session; an already-installed fix is not offered again, and no unverified logout/login instruction is shown. Hollow's runtime containment check remains fail-closed. - The installer can set up a missing prerequisite (ADR-017). When the preflight fails because rootless Podman is absent, the checks screen offers
fto install it with the distribution's own package manager. A confirmation screen prints every argument vector first;yruns them, Enter,n, or Escape cancels, and--yesnever provisions. The plan is derived from/etc/os-releaseand a fixed table —dnfon Fedora/RHEL and derivatives,apt-getplusuidmap,slirp4netns, andfuse-overlayfson Debian/Ubuntu,pacmanon Arch,zypperon openSUSE,apkon Alpine — and is refused outright on an unknown distribution, a missing package manager, or a non-root process withoutsudo. Commands are argument vectors, never shell strings. Before they run, the interface retires its key reader, leaves the alternate screen, and restores the terminal, sosudoprompts normally and the installer never sees the password. On success the preflight runs again and the install continues; on failure the output stays on the screen and the checks screen shows the error next to the manual fix.scopra install --yesprints the same commands but never runs them.
- One-command interactive installer (ADR-016).
curl -fsSL https://scopra-six.vercel.app/install.sh | shdownloads the release archive for the machine, verifies its SHA-256 against the release'schecksums.txt, and opensscopra install: a terminal interface that checks the host (Linux, systemd user session, a resolvable state directory, rootless Podman 4.0+ with cgroups v2), asks where to put the binaries, accepts an optional digest-pinned sandbox image, offers a systemd user service, copies both binaries atomically, and confirms the service with systemd instead of trusting the previous step.--yesruns the same install without the interface, and a run without a terminal and without--yesstops rather than installing silently. Newinternal/tui(standard library only) provides raw-mode input, ANSI key decoding, and a cell-grid renderer;internal/installerholds the state machine, preflight, and install.scripts/release.shbuildslinux/amd64andlinux/arm64archives with the version stamped into both binaries, pluschecksums.txt;--publishcopies them into the documentation site under/releases/<tag>/and rewrites/releases/latest.txt, so the script, the docs, and the verified bytes share one origin. The site build keeps/releases/when it rebuilds the rest of the site. - Documentation site (ADR-015). https://scopra-six.vercel.app publishes the README, the PRD, the ADRs, the security documents, and the community files as a static site. It is generated from the repository's Markdown by
tools/docsite(Go standard library only), committed toapps/docs-site/public, and served by Vercel with no build step, no JavaScript, and a strict content security policy. Links are rewritten at build time and an unresolvable link fails the build;TestCommittedSiteIsUpToDatefails when the committed site no longer matches the docs. - Run journal and
scopra logs(ADR-013). Mio records one bounded, metadata-only JSON line per answered run in<state-dir>/runs.jsonl— execution and workspace IDs, state, times, exit code, stdout/stderr byte counts, truncation flag, chunk count, and error code — and never the command, arguments, path, or output. The journal holds at most 1000 entries and 1 MiB, rotates atomically, is owner-only (0600), refuses symlinks, discards a torn final line, and refuses startup on any other corruption. A new read-only IPC command,execution.logs, andscopra logs [--workspace ID] [--limit N] [--json]expose it, newest first. A failed append stops later runs. - Systemd user service (ADR-012).
scopra service install/uninstall/statusmanages Mio as a systemd user service whose unit'sExecStartcarries the daemon path, the state directory, and the pinned image. Installs are atomic, refuse foreign units, and roll back when systemd rejects the change. - MIT license and no pricing model (ADR-014). The project is free and open-source under the MIT License, with no paid tiers, subscriptions, usage billing, plan limits, or feature gates.
NOTICErecords third-party material. - Community documentation. A restructured README,
CONTRIBUTING.md,CODE_OF_CONDUCT.md(Contributor Covenant 2.1), and a fullSECURITY.mdwith private reporting, disclosure timelines, scope, and safe harbor.
Changed
- The install command is the first thing on the site. The landing page leads with the one-liner and its requirements, and an "Install, every way" section near the bottom spells out the variants: scripted, pinned version, custom directory, no service, pinned image, verifying the archive by hand, and building from source. The README gained the same reference as "Detailed install commands".
- Releases are served by the documentation site.
install.shreads/releases/latest.txtand downloads from/releases/<tag>/instead ofgithub.com/.../releases/download/.... GitHub releases stay as a human-facing mirror only; nothing in the install path calls the GitHub API. localipc.WorkspaceErroris nowlocalipc.ReplyError, since the logs reply uses the same typed error. The wire format is unchanged.Daemon.EnableExecutionsnow takes the executor and the run journal, and requires both.
Fixed
- The installer looped on a cgroup delegation fix it had already applied. Alpha.7 stopped repeating the commands when the drop-in was present, but guessed that a new login was required. Diagnostics from the affected host disproved that explanation:
cpuwas available at the user-manager boundary, while the terminal'sapp.sliceexposed onlymemoryandpids. The cgroup-preflight correction above probes the actual delegated service context and removes the relogin heuristic; it also checks the current process context before accepting a no-service install. It is included inv0.1.0-alpha.8. - A scripted install printed a command that could not run.
scopra install --yesdescribed the delegation drop-in with acpfrom the state directory, but only the interactive path staged that file, so the command failed with "No such file or directory". The scripted path now stages it before printing the commands and keeps it, since the commands are for a person to run; the interactive path still stages, runs, and removes it. Shipped inv0.1.0-alpha.6. - The installer's terminal dropped every key press. Raw mode was configured with a read timeout, and a quiet tenth of a second arrives as a zero-length read that Go reports as
io.EOF; the reader treated it as the end of input, exited, and left the interface running with no keyboard. Reads now block until a byte arrives, and a separate idle timer decides when a pending escape sequence is complete, so a loneEscapestill registers and arrow keys split across reads still decode.internal/tuigained terminal event tests covering a quiet terminal, a lone escape, a split sequence, end of input, and cancellation.
[0.0.0] - 2026-10-17
First tagged checkpoint of the pre-alpha foundation.
Added
- Protocol packages. Messenger v1 envelope validation (ADR-002), strict execution request decoding (ADR-007) and its canonical form and action hash (ADR-008), and every execution lifecycle message: started, output, result, and cancel (ADR-009). Reference payloads live in
packages/test-fixtures. - Local daemon (
scoprad). Persistent per-user state directory ($XDG_STATE_HOME/scopra), exclusive state-directory lock, graceful shutdown, and strict same-UID Unix-socket IPC with bounded frames (ADR-003). - Read-only status.
scopra statusand astatusIPC command. - Workspaces. Canonical path validation and revalidation (ADR-004), owner-only registry storage with atomic writes (ADR-005), and
scopra workspace add/list/removeover IPC (ADR-006). - Diagnostics.
scopra doctorchecks the platform, state directory, workspace registry, registered workspaces, Mio's endpoint, and containment readiness, read-only. - Hollow sandbox. The exact rootless Podman argument vector, fail-closed preflight, and a runner with timeout, cancellation, and leftover cleanup (ADR-010), tested against a fake Podman.
- Local execution.
execution.runandscopra run, streaming the start notice, output, and result, with the command's own exit status and JSON output (ADR-011). - Six ADRs (001–006), a threat model, a risk register, a security architecture, a product requirements document, and an implementation plan.
[Unreleased]: https://github.com/SynergyFlowLabs/scopra/compare/v0.0.0...HEAD [0.0.0]: https://github.com/SynergyFlowLabs/scopra/releases/tag/v0.0.0