Added
- An optional
mask compose profile and footer link. It runs argus-mask ghcr.io/smk762/argus-mask:${MASK_TAG:-0.2.0}, the talking-face viewer, on loopback :8109 (MASK_PUBLISH), with the faces from MASK_ASSETS_DIR mounted read-only. It isn't in full, uses no GPU (the energy driver by default; an Audio2Face server can be named with MASK_A2F_URL) and needs no database, since mask keeps its consent records as files under the assets directory. Mask is a standalone viewer, not a studio stage, so there is no new page: ARGUS_MASK_URL adds it to the footer's standalone links. compose.build.yaml builds ../argus-mask.
- The
concept target category (#175), for style and visual-concept LoRAs. /curate, /forge and the docs widget offer it as Concept / Style. Its training params and set-size guide match argus-forge 0.2.0: 2000 target steps, dim 32 / alpha 16, and 30–60 images. TargetProfile and TargetCategory are now generated from argus-cortex's taxonomy-schema.json, pinned at v0.4.7, and the forge pin moves to v0.2.0. Lens has no concept caption category, so the hand-off asks it for setting. A curator older than the one that adds concept to its schema rejects a scan that uses it.
- Every page is served with a nonce-based Content-Security-Policy (#165). A fresh nonce per request goes on Next's scripts and the layout's two inline scripts, with
'strict-dynamic' for what they load, plus object-src, base-uri and frame-ancestors set to 'none'. It doesn't restrict where the backends live. ARGUS_CSP picks enforce (the default), report-only or off; X-Frame-Options, nosniff and Referrer-Policy are sent in every mode.
- Light and dark themes (#124), from argus-safelight. A toggle in the header cycles system, light and dark. With no choice the page follows the system preference, so a light-mode system now gets the light theme. A saved choice is applied by a boot script before the first paint, and another open tab follows it. The light set darkens the accents, since they are also used as text.
- Footer links to the standalone demos (#124).
ARGUS_LIGHTBOX_URL, ARGUS_CULL_URL and ARGUS_SAFELIGHT_URL are read through the runtime config. A UI left unset gets no link, and a value that isn't http(s) or a path is dropped.
- A shared
Tooltip (#124), from argus-cull, with an Info mark for labels. It opens on hover or keyboard focus, also around a disabled button, and Escape closes it. The theme toggle, darkroom's Check and Generate, darkroom's history filter and the gallery's year range use it. The other native titles stay for #35.
- Dev mode can delete everything, on command.
/curate gets Delete rejected, because a rejected frame can't be selected and so had no way to be deleted. It needs delete_any, and the frames stay covered. With DEVMODE=1, compose now sets ARGUS_DARKROOM_DEVMODE, and /darkroom offers Delete record and Delete everything, which remove records as well as images. Each one asks first. DARKROOM_DEVMODE=0 opts out.
/darkroom, guarded generation (#125). A new stage for argus-darkroom 0.1.1, ported from argus-safelight: compose a prompt, see the pre-flight verdict, generate over SSE, read what every guard said about the output, browse the records and download the archive. When /health.read_only is true, Check, Generate and Remove image are disabled and the client refuses to send them. A darkroom compose profile runs it on loopback, with ARGUS_DARKROOM_URL for the browser. It isn't in full, because darkroom won't start without a SingGuard and none is bundled. In demo mode with no darkroom answering, the page shows a bundled read-only sample. A passed report on /proof links to it.
/curate moderation panels (#110). The detail view shows NudeNet and EraX scores and each policy's SingGuard verdict, with its rules, pass and model. The grid can sort by exposure, with unscored frames last, and carries a shield per policy. The rail filters by content rating, verdict, rule and policy, and the keep-set preview sends those filters. A scan can pick a SingGuard policy and variants from /detectors, with their wording from GET /guard/policies. Rule names always come from the verdict, since a letter means different things under different policies. A passing frame any policy judged unsafe is now blurred until revealed.
/curate reads faces, scenes and garments (#111). A scan can ask for FairFace attributes, MiVOLO ages, the set's age for frames with no face ("Set: one person"), body ages, Places365 scenes and Fashionpedia garments. The rail filters on all of them the way the curator does, and the keep-set preview sends them. Readings show as text on the card and in the detail view, with the model that made them. A frame whose face detection failed says it is unchecked rather than faceless. The keep set can be capped and spread across scenes or outfits, which the curator does as it exports. A cluster chip whose representative the page doesn't hold now stays blurred.
/curate prefilter, crops and the new export options (#112). A scan can drop exposed, faceless or ageless frames before the late checks, and they stay in the scan as prefilter:* rejects. It can also crop frames, from .crop.json sidecars or the watermark detector, and every check then sees the cropped frame. A scan that cropped anything exports by copy only, and a detector that is down gets a readable refusal. An export can write XMP sidecars with names for each identity, carry sidecars and write run_stats.json, and its result reports them. A keep-set preview asks POST /scan/{id}/select what the facets would keep and can replace the selection with it. Compose passes ARGUS_CURATOR_WATERMARK_URL. Rows are stamped manifest 2.2.
- The caption page shows each variant's token use, and any variant can be the final caption (#117). For a single image, each variant shows about how many tokens it uses against the budget from lens's
GET /profiles, and warns when it runs over. The count is lens's own word-based estimate, not a tokenizer's. Use as final swaps the final caption on the page, and copy and the JSON and CSV exports follow it, with the JSON also recording lens's pick under final_choice. Lens has no endpoint for this, so nothing is sent or saved, and a new caption or a reload clears the choice. Batch results aren't covered.
/gallery detail views read the record itself (#121). Opening a photo or archive item fetches it from GET /photos/{id} or GET /archives/{name}/items/{id}, and ?photo= and ?archive=&item= link straight to one, including a quarantined or failed photo the grid doesn't list. Provenance links open only for http(s) URLs.
/gallery says when the pool is empty or not ready (#121). The Pool view reads quarry's /ready: on its 503 it stops calling the pool routes and shows a notice with Check again and a way into Sources, instead of a raw error. Quarry gives the same 503 for a missing and an unreadable database, so the notice covers both. A quarry without /ready behaves as before.
/atlas catches up with argus-atlas 0.3.0a1 (#119). A labelled job can draw its place names over the canvas (GET /jobs/{id}/labels), and the job view shows per-stage timings. The job list badges chunks (z/x/y) and recipes. New canvas has a resampling control, marks .vrt DEMs and can fetch OSM layers through POST /osm when the server advertises osm_allowed. A collapsed panel shows GET /doctor. Compose mounts an optional ATLAS_RECIPES_DIR at /data/recipes for atlas's CLI. tiles is on the bake progress type, though POST /bake/stream doesn't send it yet.
/proof slices unsafe rejects by policy category (#120). RejectReason carries proof's category, an Unsafe reject offers proof's six policy categories, and the run header counts unsafe rejects per category. Proof's gate doesn't categorise its own unsafe rejects, so those show as Uncategorised until a reviewer files them. A category outside the six still shows, under its own slug.
/curate deletes source images (#113). Delete selected removes the chosen frames from disk after a confirm, which names any hidden by the current filters, and needs a curator started with CURATOR_ALLOW_DELETE=1 (/health.delete_any). A separate action removes frames held as under 18 with exposure, which can't be selected and which curator always lets a client delete. Compose leaves the flag commented out, like CURATOR_ALLOW_MOVE.
- The caption page explains how a caption was built (#116). A collapsed section traces the raw model output into lens's categories and then into any one variant, marking which fragments reached it. It says so when an LLM rewrite means a fragment may have been reworded rather than dropped.
- The caption page shows what lens's LLM rewrite did (#115). Rewritten variants carry an LLM badge, and a panel gives the model and attempts, lists each rejected rewrite with its problems, and says when the rewrite failed or was skipped because the endpoint was unreachable.
- Compose wires up curator's detectors (#114). A digest-pinned
nudenet service starts with the curator, forge and full profiles, and curator's NudeNet check is on by default. The FairFace, MiVOLO, Places365 and Fashionpedia model paths are set, and EraX and SingGuard are optional through .env. compose.gpu.yaml now runs curator's -gpu image and shares the card with lens through a lock file (ARGUS_GPU_COORDINATOR=lease). CURATOR_GPU=1 builds the CUDA image from source.
/curate reads its scan list from the curator (#109). Recent scans come from GET /scans, Again refills the form from that scan, and a cached scan can be deleted when the server advertises scan_delete. A move export drops the moved frames from the grid immediately, so their thumbs are not requested again. A curator without GET /scans keeps the browser's own list.
/curate fills the grid while a scan is still running (#108). Result batches land as they arrive, a frame still waiting on faces, nudity, or policy says so and stays covered until that check lands, and Stop and Purge call the curator's scan control. A curator that does not advertise scan_control leaves both inert. The watermark phase shows as "Finding watermarks".
- Bundled Ollama for lens caption refinement: an
ollama service (pinned to 0.40.11, internal only) and a one-shot ollama-pull that fetches ${ARGUS_REFINE_MODEL:-qwen3:8b} start with the lens/full profiles. Lens's ARGUS_REFINE_BASE_URL defaults to http://ollama:11434/v1, and ARGUS_REFINE=off is now passed through to opt out. Lens refines by default from smk762/argus-lens#72. GPU access for ollama is in compose.gpu.yaml, and its models live in the argus-ollama volume.
- The RAM++ checkpoint cache (
RAM_CACHE_DIR, default ~/.cache/ram_plus) is mounted into lens, so ARGUS_BACKEND=hybrid:ram+florence2 doesn't re-download 3 GB when the container is recreated. .env.example recommends RAM++ over WD14 for photo libraries.
- Unit tests and a CI gate (#64): vitest over
src/lib's pure logic (the curator export seam, capability readers, runtime config, proof review rollup, NDJSON reader, error formatting), and .github/workflows/ci.yml running lint, typecheck and the tests on every PR. npm test and npm run typecheck scripts.
Changed
- Compose defaults to each backend's current release (#126). No default image is
latest any more: curator 0.15.0 (0.15.0-gpu under compose.gpu.yaml), lens 0.11.0, quarry 0.4.0, forge 0.2.0, proof 0.2.2, atlas 0.3.1, darkroom 0.2.0, survey 0.1.1, sightline 0.1.0 and Ollama 0.40.16. Every *_TAG still overrides. Things to know when upgrading:
- Lens 0.11 allows only
http://localhost:3000 when LENS_CORS_ORIGINS is unset, and answers a write from any other origin with a 403. Set it for a LAN or public studio.
- Quarry 0.4.0's archive index schema is 4. An older index shows as not indexed on
/gallery until archives index rebuilds it, which takes about 30 s for PD12M.
- With no
ARGUS_DARKROOM_WORKFLOW set (compose doesn't set one), darkroom from 0.1.3 picks a template by the checkpoint's folder (sdxl/, flux/, flux-klein/, sd35/). A checkpoint outside those folders, or a negative prompt on a template without a $negative slot, is refused with a 400, and /darkroom shows its reason.
- argus-sightline publishes no image yet, so the
survey profile still needs compose.build.yaml for it.
- The curator wire pin moves to v0.15.0. Curator's schema now marks every field it always sends as required (argus-curator#129). Studio's curator types use a new
Sparse helper in lib/wire.ts to keep required only what they relied on before, so an older curator still type-checks as tolerated. ImageResult gains primary_face_pitch and primary_face_roll, and ScanSummary gains reference_skipped. The curator's TargetProfile now matches cortex's exactly. Studio's handoff rows are now manifest 2.3: each carries primary_face and the scan's set_age, as curator's own rows do.
- README caught up with the code (#174). It now says Next.js 16 and describes
/curate's cached-scan list, export move and source deletes with their curator flags, and the detector badges as reported. It covers lens refinement being on by default through the bundled Ollama, the pinned default image tags, and LENS_CORS_ORIGINS. It gains a /darkroom section and documents ARGUS_CSP (with a reverse-proxy note), DEVMODE and ARGUS_SIGHTLINE_URL.
- Thumbnail grids load their first row eagerly (#159).
/curate, the /gallery pool and archive browser, and the /proof board no longer lazy-load the tiles on screen at load, which are the likeliest Largest Contentful Paint; tiles after the first row stay lazy, through lib/imageLoading.ts. The /curate detail view loads its image eagerly, and /darkroom history thumbnails are now lazy, so a long history no longer fetches every image up front.
eslint-config-next matches Next at 16.4.5, which turns on the React Compiler lint rules. /forge drops two useCallbacks and auto-inspects through useEffectEvent, /curate declares its filtered list before the code that uses it and starts the sample banner set, ProofBoard resets during render rather than in an effect, and an Immich error now clears when the retry succeeds rather than when it starts. Effects that only fetch keep a commented suppression.
- Curator and darkroom read SSE through one module,
lib/sse.ts (#124). Darkroom now releases its connection when a stream fails, and both accept a last frame with no closing blank line. A last frame cut off mid-JSON now reads as "ended without a result" rather than a parse error. NDJSON streams keep their own reader.
asError throws an ApiError carrying the HTTP status, and readError returns FastAPI's detail as text (#124). The caption page's URL path uses it, so a 422 no longer renders as [object Object].
- Chips over
/curate thumbnails sit on a surface backing, and the blur veils on /curate and /darkroom are heavier, so their text reads in either theme (#124).
- The curator, forge and proof clients take their types from the services' wire schemas (#123).
src/lib/generated/*.ts is generated with json-schema-to-typescript from copies in frontend/schema/, pinned by tag and sha256 in pins.json (curator 0.14.1, forge 0.1.1, proof 0.2.2). CI fails when the output drifts from the pins (npm run wire:check). Types that deliberately tolerate more than a schema allows stay by hand, and src/lib/wire.ts fails typecheck if one stops fitting its schema. TargetCategory and TargetStyle stay by hand until argus-cortex#29. Nothing changes at runtime.
/curate and /darkroom no longer offer SingGuard policies still under evaluation. Both hide the adult-* variants, as curator asks of UIs until its evaluation picks one, and adult stays. DEVMODE=1 (or ARGUS_DEVMODE) offers them all, and compose also passes it to curator as CURATOR_DEVMODE, so /curate can delete any scanned image. CURATOR_DEVMODE=0 keeps the policies without the delete. A policy already in the form stays visible, so a refilled scan or a re-run can't use one nobody can see.
- Atlas's
POST /controls and POST /tiles are gated in the client like every other write, on GDAL rather than read_only, so a read-only host still allows them.
/curate keeps rejected and exposed frames covered (#107, #129). A rejected frame stays blurred and cannot be revealed or selected, and that decision is made before any NudeNet score is read, so a missing score is never treated as clear. An under-18 face with exposure is the same. A passing frame at or above the exposed line, or one NudeNet failed to score, is blurred until revealed. The short-side slider starts at 512, exports no longer send include_rejected, and a selection that comes back smaller names each frame's reject reason.
- Backend writes are gated in the API clients instead of per component (#75). Before sending, proof runs and reviews, curator exports (manifest major, export root, and move), writing forge configs, atlas bakes and quarry slice fetches each check the server's advertised capability, probing
/health first if the page hasn't. A refused write throws CapabilityRefused with the reason and never reaches the server, so a new caller can't reintroduce a dead button or a raw 403.
Fixed
- Captioning a
/curate export now reads the exported file (#148). Studio sent lens no export_root, so a copy export captioned the source: a cropped export got captions of the uncropped original, and the .txt files landed beside the sources. Copy and move exports now read from, and write into, the export. Symlink exports still caption the source, because lens follows the link. A lens that can't see the export folder now reports that rather than silently using the source.
ATLAS_OVERPASS_URL reaches argus-atlas (#149). Compose didn't forward it, so setting it in .env did nothing.
- A 409 from atlas's
POST /tiles shows its reason as a notice and reloads the job, and a chunk whose crop failed says so up front instead of offering a cut that can't work.
- Picking an OSM extract on
/atlas now fills the AOI. osm.json holds the bbox as text, which the form read as a list and dropped. An extract's places layer is no longer sent to POST /controls, which would have burnt it as a mask.
- Next is updated to 16.4.5 for its security advisories. 16.2.4 is affected by the critical and high advisories
npm audit lists, and sharp and postcss came in through it. Production dependencies now audit clean.
- A failed refetch after a move no longer leaves
/curate's counts wrong. Passed, rejected and duplicate counts keep the rows a paged load never fetched, the reject reasons drop the moved frames, and a near-duplicate cluster left with one frame stops counting as a cluster.
- Captions came back empty for two categories (#102). The caption page offered
camera_framing and pose_gaze, and the curate → caption handoff mapped curator's pose_composition to pose_gaze. Lens has neither category, and it captions an unknown category to an empty string, so folder mode wrote empty .txt sidecars. The page now offers lens's own categories from GET /profiles, falling back to lens 0.10's six. The handoff passes pose_composition through unchanged, and pose_composition shows as a normal variant instead of a "legacy alias".
- Lens requests match lens 0.7–0.10 (#106):
- The manifest endpoints no longer send hybrid-balance fields they ignore. They now take
xmp_overwrite and an optional export_root input, which lets manifest 2.0 rows resolve after a move export.
- The XMP toggle says it merges into an existing sidecar, and has a "Replace existing .xmp" option.
- Upload captioning shows per-image error lines (such as replay misses) instead of treating them as captions.
- Lens writes are gated in the client like every other service's (#105). Folder captioning and Immich pulls check
/health.source_root before sending.
/curate scan progress against curator ≥ 0.4 (#103). The label no longer goes blank on the newer phases (nsfw, erax, identities, prefilter, scenes, garments, guard), and a phase newer than this client gets a readable fallback. A scan stopped through POST /scan/{id}/cancel or purge (event: cancelled) now says it was stopped instead of "Scan stream ended without a result". A GPU-lease timeout shows the server's retry_after.
- Compose pins
LENS_TAG=0.10.0 and ATLAS_TAG=0.3.0a1 by default (#104). Atlas only moves latest on final releases, so latest was an image older than 0.3.0a1. Lens's next release narrows CORS to localhost:3000 and refuses cross-site writes, so it should be a deliberate bump. LENS_CORS_ORIGINS is now forwarded, ready for that release.
- A scheme-less API base such as
ARGUS_CURATOR_URL=curator:8101 now gets the startup warning it was meant to. new URL() parses curator: as a scheme, so the check passed it silently and the mistake only showed as Failed to fetch in the browser.
manifestMajor refuses a leading-zero major ("02.1") the way argus-forge does, instead of reading it as 2.
Image
docker pull ghcr.io/smk762/argus-studio:0.4.0