The runners share one tool-cache Python across jobs, so packages other
repositories' jobs left there (compass-ingestion, compass-schemas from
Arbiter) were gated as ours and failed the build at random.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Dockerfiles still rewrote credentials for github.com only, so the build
token never reached Gitea and installs worked only while dredd-core was
public. Rewrite http://77.216.148.202:3000/ instead, give every workflow
that pip-installs the same rewrite (org secret DREDD_CORE_TOKEN, the
read-only haski-reader token), and drop the GitHub PAT leftovers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Alpaq92 GitHub account is suspended, so nothing can be fetched from it.
dredd-core (and Lexicon's compass packages from Arbiter) now come from the
public Haski repositories on Gitea, so CI no longer authenticates to GitHub:
the "Authenticate to dredd-core" steps and insteadOf rewrites are gone.
The Dockerfile's dredd_core_token build secret stays; any non-empty value
works now (the Haski org secret DREDD_CORE_TOKEN provides one in CI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A response is keyed by (questionnaire, matter, respondent), so a matter owner
could submit the same matter once per usable questionnaire (drafts included)
into one cycle. The firm's snapshot counted every one of them, in its composite
and toward min_evaluations, so one evaluator could lift a firm out of
provisional or weigh its ranking twice.
create_or_update now refuses (409) a submit when the same matter already has a
submitted evaluation in that cycle under another questionnaire, and locks the
matter row so two submits cannot race past the check. Drafts, re-saves of the
same evaluation and submits into another cycle are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
index.html links ui/v1/tokens.css document-relatively, and tokens.css loads the Inter font
next to it, but build_demo.py copied only the brand assets into _site. The published demo
therefore got a 404 for both (checked against the live site on 2026-11-21) and rendered with
neither the shared tokens nor the font. It now copies frontend/ui/ into the output as well,
the font's licence included.
Checked: a build into an empty directory and a second one over it both succeed, and the
served demo answers 200 for tokens.css and InterVariable.woff2, with the body in Inter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pass against the Web Interface Guidelines. The console could not be driven from the
keyboard at all:
- Every sidebar entry was a <div onclick>, which takes no focus, so a keyboard user could
not reach a single screen. They are links now (href="#/<id>", aria-current on the
current one; go() still closes the drawer), and a group heading is a button with
aria-expanded. Same look: the links keep .nav-item's colour and no underline.
- A dialog is role=dialog + aria-modal, named by its title, starts on its first field,
makes the page behind it inert (aria-modal alone does not stop Tab) and gives focus back
to whatever opened it. The command palette does the same, and its input is labelled.
- The ⋯ row menu button is named ("Actions"/"Akcje"); opening it moves focus to its first
item, Escape or Tab-ing out closes it, and focus returns to the button — so the Edit
dialog an item opens hands focus back there as well.
- Icon-only buttons (sidebar toggle, request log, search, theme, the log's close) carry an
aria-label; the EN/PL toggle's label is its localized tooltip.
- The sign-in error is role=alert; a skip link reaches the main content (tabindex=-1);
prefers-reduced-motion switches transitions off.
New strings have I18N.pl entries (Skip to content, Close, Search). Checked in the demo
build (scripts/build_demo.py) with real key presses; test_smoke.py's frontend tripwires
re-checked by hand, and node --check on the inline script passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
viewCycleDetail took the id from the hash and, for an id it did not know,
drew a made-up open cycle with a Close button whose onclick carried that
id as '${esc(id)}'. esc() is no protection inside a quoted JS string in an
attribute: the HTML parser turns ' back into ' before the handler is
compiled. A link to #/cycles/<text> therefore ran that text as script on
one click, with the reader's session, on the platform's one origin.
- An unknown cycle is "Review cycle not found." (after one re-read of the
list, so a cycle created since this tab loaded still opens), like a firm
or a matter.
- The page uses the server's c.id from then on, also for the snapshots call.
- jsArg() (esc(JSON.stringify(v))) for every inline handler argument: the
cycle's Close button and the two Edit buttons that used the same shape.
- test_frontend_xss_tripwires pins the helper, the absence of '${esc(' in a
handler and of the fallback cycle. CLAUDE.md states the rule.
Checked without a browser: the console script parses, and the new asserts
hold against the file. pytest not run here (no dredd-core install).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two tiles, each counted for the caller by the very function its console list
calls, with the page size the console requests: matters (#/matters, GET
/matters, page 100) and evaluations (#/evaluations, GET /responses?limit=500).
To share that function the two list queries move out of their routers into
services (services/matters.list_matters, services/responses.list_responses,
with the response scope filter); the routes now call them, behaviour unchanged.
dredd-core repinned v0.18.1 -> v0.23.0 (0.19-0.22 additions are opt-in).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The local copy in edge.py moves to dredd_core.routes, where every module
can use it. Repins core from v0.17.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FastAPI 0.15x keeps each included router as one _IncludedRouter entry, so
reading app.routes no longer sees the API routes: the console wrapper
answered 404 instead of 405 + Allow, and the route sweeps found nothing.
edge.iter_routes yields (declared, effective) pairs via
fastapi.routing.iter_route_contexts, or the flat list on older FastAPI.
Supersedes #72.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Supersedes Dependabot #73, #74 and #76 (and the earlier #66-#68): each
bumped one package, and the line only resolves when all four move in
lockstep (the sqlalchemy instrumentation was never bumped at all).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New #/settings screen (Counsel roles for moderators, then dictionaries), framed by Atrium under Ustawienia; with a shared identity the ADMIN group leaves Counsel's own menu. Standalone is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqHs1WNnpJC1uZSANU9
Atrium calls frame.win.applyLang(lang) when its language changes. The hook accepts en|pl only,
is a no-op on the current value (no storage-event loop with Atrium), persists cs_lang, sets
<html lang>, re-localizes from the English source and re-renders the view through router() only
when it holds no typed or picked value. localize() now treats a node or attribute rewritten
since its last translation as a new source, so switching back never restores stale text. The
language buttons go through the same hook.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Atrium's Home asks every module GET /api/v1/search?format=v1&q=&limit= and reads one shape
(dredd_core.search_contract, 0.17.0). The palette's body already uses the key `hits` with its own
item shape, so the contract is opt-in by format=v1; without it the response and its 422s are
unchanged. Same RBAC-scoped FTS as before; links are console routes (firms/<id>, matters/<id>,
and the questions / evaluations lists, which have no per-record page). Pin stays at v0.16.0 under
TODO(search-contract).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Counsel Scorecard sent raw UTF-8 under a bare application/json and
application/problem+json (API, problem responses 401/404/405/422/500,
OpenAPI, /healthz). Windows PowerShell 5.1's Invoke-RestMethod decodes
that as Latin-1 ("Rozporządzenie" -> "RozporzÄ…dzenie"); the same fix as
Insider be065e7.
One line in edge.SecurityHeaders (the outermost middleware):
dredd_core.json_charset.ensure_json_charset_message appends the charset
to application/json and application/*+json only; HTML, event streams
and binary responses are untouched, nothing is buffered.
tests/test_json_charset.py sweeps every parameter-free GET route plus
OpenAPI, /healthz and 401/404/405/422/500 problem responses, DB-free.
TODO before merge: repin dredd-core to v0.16.0 (json_charset is new
there); requirements.txt carries the marked TODO, still on v0.15.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Atrium's 0009 grants every module SELECT on dredd.model_provider and
model_provider_policy; v0.14.0's check called that "not on the allowlist"
and failed push.sh on the box. v0.15.0's reader tier expects exactly that
(and nothing on the keys). No other change: the app does not use providers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependabot's #52-#56 as one change: the OpenTelemetry api/sdk line and the
instrumentation line move in lockstep, so they go in at once (and the
comment above them names the new lines). pip check is clean; locally the
DB-free suite gives 172 passed and the integration suite 218 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
refuse_cross_site_write now asks dredd_core.cross_site.cross_site_write_refused
and keeps only the app's own error; SAFE_METHODS and bearer_token come from
the core too. The local copies were identical to it, so behaviour is
unchanged. Where the app reads the audit log (Atrium, Compass) it uses
dredd_core.audit_log.list_entries. 0.12 -> 0.14 adds only opt-in modules:
no core table changed, no revision needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Caddy is gone from the platform and the standalone stacks; the backend is
its own edge (and Atrium's backend the platform's front door). Comments,
docstrings and current docs now describe that instead of naming Caddy;
leftover config lines (.gitattributes, CREDITS rows) go; dated records are
marked historical. Test names lose "Caddy" (CADDY_*_CSP -> PINNED_*_CSP);
no assertion changes, and the "no Caddy" guards stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>