- POST /refresh-runs accepts undo_of: restores the safety copy of a completed restore back onto the same
target through the normal run engine (checks, countdown, progress, and a new safety copy so the undo can be
undone); refused when something was restored after it or the copy is gone
- a safety copy is accepted as a source only for the target it was taken from (hub and agent both check)
- run views carry undo and undo_available; audited as refresh.undo_started
- the modal offers Undo last restore and, after a restore, Undo this restore
- proven with a real agent and PostgreSQL: restore, undo back to the original contents, undo of the undo
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- MBU parity map, cutover runbook and the tasks/ planning notes move outside the repo
- tests/mbu becomes tests/fixtures with generic application names and no placement inventory
- test fixtures in Rust and web use neutral names
- scripts/export-public.sh checks an external list of private terms instead of naming them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Backend: grants accept a list of permissions; PUT /access/grants edits or renews a set atomically; refusals carry a reason; the grant list includes refresh grants per relation and the administrator-only permissions; users keep their last groups and admin flag; the emergency operator cannot hold grants.
Frontend: the Access screen shows the grantable permissions as a checkbox tree with dependencies, rows grouped by person or group, orbit and end date, expiry and no-effect states, and what each person can do right now.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- POST /refresh-runs accepts snapshot_id: restore a snapshot somebody picked (a restorable capture of the
relation's own source, never a safety copy or another orbit's) through the same run engine
- refresh-relations carries source_orbit_id; snapshots carry kind (capture|safety), and the UI hides safety copies
- snapshot detail: Restore replaces Export file on hub (disabled with No restore point without a relation);
modal with a restore point selector, a ten second countdown with Abort, and a four step progress view
- administrators keep Other registered target; the Refresh menu and refresh-only screen are removed
- proven with a real agent and PostgreSQL in the browser: capture, restore to Development, abort, no relation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- PUT /api/v1/restore-targets/:id changes only the display name (admin, validated, audited); ids,
identity, relations and jobs are untouched
- Relations console: Application column, inline rename, application in the target pickers
- Refresh screen: the application on each card
- registering a target suggests '<application> · <database>'
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- web: Refresh console (relation cards, overwrite confirmation, progress,
cancel, distinct failure messages), rail item, and a single-screen view
for people who may only refresh
- hub: refresh-only users are authorized; /me exposes refresh_relations
- docs and auth plan record the real rehearsal (Postgres, agent, Keycloak,
browser) and what was not verified
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- environment (production/staging/development) on source orbits and on restore targets;
an unlabelled target fails closed and a production target is refused
- directed, versioned relations from a managed source orbit to a restore target: one
active relation per pair, retargeting makes a new id and ends the old one
- refusals name the rule: unknown or unlabelled source/target, not a managed capture
profile, not restore-ready, application or engine mismatch, inactive Outpost, and a
target whose identity matches a database captured as production in any snapshot
- relations end in the same transaction when their target is relabelled production or an
Outpost is revoked; usability is re-read live
- refresh.run is granted per relation id in its own table (user or group, expiry), never
global, never carried to a new version, and never accepted by the orbit gate
- admin API under /api/v1/relations plus environment endpoints; people holding only a
relation grant see names and environments, never identity, host, Outpost or application
- Relations console; sign-in form without SSO no longer shows a stray "Details" label
Tests extend the access matrix with relation fixtures and a caller that holds only a
relation grant.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- the download format follows the file's first bytes and manifest hints: plain SQL ->
.sql.gz, tar -> .tar.gz, SQLite -> .sqlite.gz, hub filesystem archive -> .tessera-fs.gz,
unknown -> .dump.gz; pg_dump -Fc stays .dump; gzip/zstd/xz/bzip2/zip pass through
- gzip is streamed (async-compression) in 64 KiB frames; no Content-Encoding, no
Content-Length on compressed bodies, application/gzip, nosniff, no-store; HEAD is 405
- order: authenticate, find, permission, then admission (export slots and free disk), so a
caller without permission cannot use up the slots
- the export directory, the slot and the audit end-of-download row live with the response
body: finished, client disconnect, and a sweep of tessera-export-* at start after a crash
- audit export.requested / ready / finished / disconnected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dragging the map walks the camera round the black hole (yaw) and raises or
lowers it (lift); clicking the hole springs back to the default view. The
shader takes an azimuth and an elevation, and the orbit overlay is projected
through the same view (orbitPose, trailAngle and project take a View), so rings,
stars, trails and rockets turn with the disk. A star behind the hole's shadow is
hidden by it. Labels and moons wait until the camera rests. A camera at rest
costs nothing, and the still quality tier still draws while it turns.
Big-screen map labels sit on dark glass chips so the radar grid cannot swallow
them, and the picked label and its status read as one chip.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The map fills the viewport and every control is light: thin mint lines and
glowing text over a vignette, a faint scan, corner brackets and a glass edge.
Brand and mode sit top left, telemetry top right, the legend bottom left, the
systems as text tabs bottom centre, and view, motion, search and sign out as
outlined keys bottom right with the hub's state above them.
Each piece springs between the workspace and the big screen with
useScreenTransition. Every orbit is labelled on the big screen, and the picked
orbit's label stands off its star on an elbowed leader line with its status.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Inside the shadow a rocket's velocity now turns toward the centre, so it falls to the
singularity instead of swinging round it, and the trail of a rocket that reaches the
core lingers and fades briefly.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Authorization
- one gate for every human endpoint: authenticate, resolve the resource, then
admin_only / scoped / visible; require_admin* removed so each handler must choose
- grants (user or IdP group; global or one orbit; optional end date) read live on
every request; only orbit.read, snapshot.read, capture.run and snapshot.download
can be granted, everything else stays with configured administrators
- an orbit without orbit.read is 404, a visible one without the permission is 403,
a caller with nothing to see gets 403 on lists; job history is filtered before LIMIT
- jobs and audit record the stable principal id, not the IdP display name
- restore targets and restore history are admin-only until self-service (M6)
- sessions keep the groups verified at sign-in
Administration
- /api/v1/access grants and users (enable, disable, sign out everywhere), validated
and audited by id; admins cannot disable themselves or the emergency operator
- Access console with the shared Select and a themed DatePicker; non-administrators
only see Vault and Activity and never call administrator endpoints
- the Window/Radar view is stored per account (/api/v1/me/preferences)
- UI tolerates older hubs and mocks (missing admin/grants) and a console that fails
to render no longer blanks the app
Tests: a matrix generated from the endpoint contract exercises every human route
against real resources in two orbits for each kind of caller.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sessions and users (M2)
- users and sessions tables in SQLite; only a digest of the session ID is stored
- idle 30 min / absolute 8 h deadlines, UPDATE-only touch, per-user revoke by generation
- emergency operator is a users row (issuer local:emergency); its sessions are
bound to the operator hash fingerprint, so unsetting or rotating it ends them
- CSRF derived from the session ID; GET /api/v1/me
OIDC login (M3)
- openidconnect 4.1: authorization code + PKCE S256, static redirect URI, no redirects
- one-time login transactions bound to the browser by a Lax correlation cookie
- identity is (issuer, subject); admin only from configured subjects/groups;
a signed-in user without a grant gets 403 on management APIs
- OIDC sessions are bound to the OIDC configuration fingerprint
- SSO button, no-access page and fixed error codes in the web UI
- tests against a mock IdP with signed and malformed tokens; rehearsed against
Keycloak 26.1 in a real browser
- rsa 0.9 advisory (RUSTSEC-2023-0071) excepted with a written reason: runtime
code only verifies signatures with public keys
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The map is a canopy with a bezel, an inset window and a sill carrying a
Window | Radar view switch. Consoles open as centered screens; Orbits,
Outposts, Activity and the snapshot sheet follow one vocabulary of recessed
fields, bevelled keys and lamps that stay distinct by shape.
- Activity replaces the Restore tab with one log of backups and restores.
Rows lead to a snapshot or an orbit; restores and exports start from the
snapshot. The model is a pure function with tests.
- Restore opens from a snapshot as a two column screen: choose and confirm on
the left, job progress or countdown on the right.
- Add Segmented and a themed Select (portal list, keyboard and form support).
- Add a spotlight-style search panel.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the single-shot meteor with a per-orbit activity system. A backup's state
is read from how a small glowing triangle moves, not from a drawing of a rocket.
- Events come from status changes between polls, so scheduled backups animate
too. A click shows its own verdict until a poll that began after it has landed,
which keeps one backup from being animated twice or flipping through a stale
status. Loading the page only sets a baseline and never replays history.
- Queued waits on its star. Running circles it, climbing and spinning up.
- Success waits for a launch window, where the light's own motion already carries
it round the black hole, then departs with that velocity. It falls under a
pseudo-Newtonian pull after a burn that trims angular momentum to just under
the capture limit, so the path spirals with the orbits, always arrives, and
never slows on the way in. Near the shadow it reddens, dims and stretches, and
the disk spins up as it feeds.
- Failure explodes in place or, when the hub says the transfer failed, launches,
loses power and falls back. The star keeps its busy look until the outcome and
then turns red. Rehearsal is a faint dashed light that lands on its star.
- Position and velocity are integrated and a mode change only swaps forces, so
every transition is continuous and interruptible. Parameters use the shared
spring tokens. Trails follow the path actually flown.
- At most ten lights are drawn; reduced motion draws none and shows outcomes at once.
- Pure modules with tests for activity, physics and trails. The Playwright capture
script now checks lights by data-orbit. The animation guideline in docs/UI.md
describes the simulation approach in place of the old single progress value.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The orbit overlay fit the radar look but read as a diagram laid over the
realistic one. Give each look its own grammar over the same data.
- Realistic look: each orbit is a star with a bright core, a status-tinted
glow and four tapered diffraction spikes, which the sky's own stars never
have. Status still shows by shape as well as colour. Tracks recede to a faint
trace, hovering a marker reveals its shell, and the selected orbit keeps its
dashed ring. Moving markers trail a tapered comet tail along their orbit.
- Stars shimmer out of phase on the scene loop that already runs, more for
working and failed ones. A stopped map is still, and reduced motion turns it
off. Hovering a star enlarges it with the shared spring.
- Radar look: plain instrument dots and full-strength tracks, as before.
- The overlay takes the look at each marker's and ring's own distance from the
hole, so it changes as the radar wave front passes. The renderer exposes this
as signal.lookAt and calls signal.onLook while the wave runs.
- Slow the wave spring so the front takes about 0.4 s to cross the orbit area
instead of 0.2 s, and end it at 99.5% progress.
- Test that a marker's trail points back along its motion.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the SVG core and backdrop with one shader that traces each pixel
through Schwarzschild spacetime. The shadow, the arch of the far side of the
disk, the second image and the Einstein ring come from the physics rather than
artwork. The disk is a thin disk seen from a low angle, about five times the
shadow's radius, with Doppler beaming and a filtered, cloud-like texture.
- Sky: a procedural galaxy baked once into a cubemap. Point sources are small,
few and brightness-capped so they never rival the orbit markers, which now
carry a dark backing disc and outline.
- Quality: tiers from high to still, a startup calibration cached per canvas
size, an fps cap, and an idle sleep. A locked realistic map draws nothing.
- Integration: the canvas follows the galaxy frame through Big Screen, draws in
Motion's post-render step, takes the disk clock and capture absorption from
the galaxy loop, and falls back to the SVG core without WebGL2.
- Radar view: a toolbar toggle switches to a radar look that spreads outward
from the hole as a wave, with a sweep on its own clock. The choice is
remembered per browser; reduced motion switches at once and holds the sweep.
- Tests for the geodesics, quality governor, look spring and layout, plus a
standalone preview page (web/blackhole-proto.html) for tuning the look.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed.
Co-authored-by: Cursor <cursoragent@cursor.com>
Require a private passphrase and loopback-or-token admin auth. New vaults use Argon2id; existing PBKDF2 vaults still open, and new snapshot metadata is encrypted. Wormhole tokens survive restart, offset uploads seal into the vault, and client-certificate uploads are real. Reject the command provider and keep Postgres passwords off the process arguments. Keep the interruptible canvas motion.