225 Commits
Author SHA1 Message Date
adminandClaude Opus 5.5 da2e774e45 License gate: check our dependencies in a fresh venv
CI / Tests (Postgres 16) (push) Successful in 4m0s
CI / Tests (Postgres 17) (push) Successful in 3m13s
CI / License gate (deny GPL/AGPL/SSPL) (push) Successful in 1m0s
CI / Managed database (shared, emulated, Postgres 17) (push) Successful in 3m48s
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>
2026-11-30 22:47:11 +01:00
adminandClaude Opus 5.5 d52c6753ed Fetch private dredd-core from the Haski Gitea, not GitHub
CI / Tests (Postgres 16) (push) Successful in 4m49s
CI / Tests (Postgres 17) (push) Successful in 4m41s
CI / License gate (deny GPL/AGPL/SSPL) (push) Failing after 33s
CI / Managed database (shared, emulated, Postgres 17) (push) Successful in 5m15s
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>
2026-11-30 22:18:19 +01:00
adminandClaude Opus 5.5 7b20554a84 Build from Gitea instead of GitHub
CI / Tests (Postgres 16) (push) Successful in 4m42s
CI / Tests (Postgres 17) (push) Successful in 3m7s
CI / Managed database (shared, emulated, Postgres 17) (push) Successful in 3m58s
CI / License gate (deny GPL/AGPL/SSPL) (push) Successful in 44s
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>
2026-11-29 17:05:19 +01:00
admin cd4dca0218 Merge pull request #91 from Alpaq92/fix/one-evaluation-per-matter-cycle
CI / Managed database (shared, emulated, Postgres 17) (push) Failing after 1m55s
CI / Tests (Postgres 17) (push) Failing after 1m55s
CI / Tests (Postgres 16) (push) Failing after 1m55s
CI / License gate (deny GPL/AGPL/SSPL) (push) Failing after 1s
Responses: one submitted evaluation per matter per review cycle
2026-11-28 10:40:14 +01:00
Piotr ChojnackiandClaude Opus 5.5 99e3584ab9 Responses: one submitted evaluation per matter per review cycle
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>
2026-11-27 23:29:03 +01:00
admin 04fc911e69 Merge pull request #88 into main 2026-11-24 20:18:56 +01:00
Piotr ChojnackiandClaude Opus 5.5 628a78d7d1 Demo build: publish the console's ui/ package with the page
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>
2026-11-21 23:15:32 +01:00
Piotr ChojnackiandClaude Opus 5.5 f304faf06f Console a11y: the sidebar, row menus and dialogs work from the keyboard
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>
2026-11-21 21:52:01 +01:00
admin ea1e8ea26c Merge pull request #84 from Alpaq92/fix/cycle-detail-handler-xss
Console: the cycle page no longer builds a handler from the address bar
2026-11-14 22:30:10 +01:00
Piotr ChojnackiandClaude Fable 5.2 3943e8a716 Console: the cycle page no longer builds a handler from the address bar
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 &#39; 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>
2026-11-14 22:24:34 +01:00
adminandClaude Opus 5.5 c6d04b1ee5 GET /stats: Counsel answers dredd-core's stats contract (M4, Panorama's tiles)
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>
2026-11-14 09:36:57 +01:00
admin 659de3bb62 Merge pull request #80 from Alpaq92/dependabot/pip/backend/alembic-1.20.1
Build(deps): Bump alembic from 1.20.0 to 1.20.1 in /backend
2026-11-13 13:14:51 +01:00
dependabot[bot] e62906582c Build(deps): Bump alembic from 1.20.0 to 1.20.1 in /backend
Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-version: 1.20.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 11:38:55 +00:00
admin b764cb3be6 Merge pull request #83 from Alpaq92/dependabot/pip/backend/pg8000-1.31.6
Build(deps): Bump pg8000 from 1.31.5 to 1.31.6 in /backend
2026-11-13 12:36:37 +01:00
admin 4f0490b202 Merge pull request #82 from Alpaq92/dependabot/pip/backend/pydantic-2.14.3
Build(deps): Bump pydantic from 2.13.5 to 2.14.3 in /backend
2026-11-13 12:36:33 +01:00
admin 6fbfb84ac0 Merge pull request #81 from Alpaq92/dependabot/pip/backend/fastapi-0.162.2
Build(deps): Bump fastapi from 0.162.0 to 0.162.2 in /backend
2026-11-13 12:36:29 +01:00
admin ea04632eb4 Merge pull request #79 from Alpaq92/dependabot/pip/backend/sqlalchemy-2.1.8
Build(deps): Bump sqlalchemy from 2.1.5 to 2.1.8 in /backend
2026-11-13 12:36:23 +01:00
dependabot[bot] 831753cf85 Build(deps): Bump pg8000 from 1.31.5 to 1.31.6 in /backend
Bumps [pg8000](https://github.com/tlocke/pg8000) from 1.31.5 to 1.31.6.
- [Commits](https://github.com/tlocke/pg8000/commits)

---
updated-dependencies:
- dependency-name: pg8000
  dependency-version: 1.31.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 07:14:35 +00:00
dependabot[bot] be55426884 Build(deps): Bump pydantic from 2.13.5 to 2.14.3 in /backend
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.13.5 to 2.14.3.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.13.5...v2.14.3)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 07:14:31 +00:00
dependabot[bot] b9d5367944 Build(deps): Bump fastapi from 0.162.0 to 0.162.2 in /backend
Bumps [fastapi](https://github.com/fastapi/fastapi) from 0.162.0 to 0.162.2.
- [Release notes](https://github.com/fastapi/fastapi/releases)
- [Commits](https://github.com/fastapi/fastapi/compare/0.162.0...0.162.2)

---
updated-dependencies:
- dependency-name: fastapi
  dependency-version: 0.162.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 07:14:26 +00:00
dependabot[bot] 33131cae2f Build(deps): Bump sqlalchemy from 2.1.5 to 2.1.8 in /backend
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.1.5 to 2.1.8.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.1.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-13 07:14:16 +00:00
admin 0733bfd94d Merge pull request #78 from Alpaq92/chore/core-0.18.1
dredd-core 0.18.1: iter_routes from core
2026-11-07 16:57:24 +01:00
adminandClaude Opus 5.5 438e18809a dredd-core 0.18.1: iter_routes from core
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>
2026-11-07 16:57:15 +01:00
admin 656713fc19 Merge pull request #77 from Alpaq92/fix/fastapi-included-router
FastAPI 0.162: walk included routers through iter_routes
2026-11-07 14:02:30 +01:00
adminandClaude Opus 5.5 668ca9a017 FastAPI 0.162: walk included routers through iter_routes
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>
2026-11-07 14:02:11 +01:00
admin 9feeeb3042 Merge pull request #71 from Alpaq92/menu-ustawienia
On the platform, roles and dictionaries open from Atrium's Ustawienia
2026-11-06 10:14:47 +01:00
admin cc3a7bda90 Merge pull request #75 from Alpaq92/dependabot/pip/backend/pydantic-settings-2.16.2
Build(deps): Bump pydantic-settings from 2.15.0 to 2.16.2 in /backend
2026-11-06 10:13:23 +01:00
adminandClaude Opus 5.5 e263610677 Bump OpenTelemetry 1.45.2 / 0.66b2 together
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>
2026-11-06 08:48:16 +01:00
dependabot[bot] 6cc9db4314 Build(deps): Bump pydantic-settings from 2.15.0 to 2.16.2 in /backend
Bumps [pydantic-settings](https://github.com/pydantic/pydantic-settings) from 2.15.0 to 2.16.2.
- [Release notes](https://github.com/pydantic/pydantic-settings/releases)
- [Commits](https://github.com/pydantic/pydantic-settings/compare/v2.15.0...v2.16.2)

---
updated-dependencies:
- dependency-name: pydantic-settings
  dependency-version: 2.16.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-06 07:14:44 +00:00
admin cb01cce22e Merge pull request #65 from Alpaq92/dependabot/pip/backend/sqlalchemy-2.1.5
Build(deps): Bump sqlalchemy from 2.0.51 to 2.1.5 in /backend
2026-11-05 23:07:22 +01:00
tobayahandClaude Opus 5.5 c1c97578e1 Console: on the platform, roles and dictionaries open from Atrium's Settings
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
2026-11-05 22:04:03 +01:00
admin 124be420b5 Merge pull request #70 from Alpaq92/toast-live
Announce the toast to screen readers
2026-11-01 17:29:15 +01:00
adminandClaude Opus 5.5 ca10f6464c Readability: AA contrast for faint text (3.2 -> 4.7:1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:16:58 +01:00
adminandClaude Opus 5.5 142a7552bb Announce the toast to screen readers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 15:48:00 +01:00
adminandClaude Opus 5.5 35bb7c90fa Repin dredd-core v0.17.0: the shared search contract
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:04:06 +02:00
adminandClaude Opus 5.5 4ab2178e19 window.applyLang: switch the console's language in place for the platform
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>
2026-10-23 09:54:55 +02:00
adminandClaude Opus 5.5 b6e93cc010 Answer the family search contract on /search?format=v1
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>
2026-10-23 09:54:39 +02:00
dependabot[bot] 44340ff097 Build(deps): Bump sqlalchemy from 2.0.51 to 2.1.5 in /backend
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.51 to 2.1.5.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.1.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 07:14:27 +00:00
adminandClaude Opus 5.5 4480d484b0 Repin dredd-core v0.16.0: charset=utf-8 on every JSON response
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:41:34 +02:00
adminandClaude Opus 5.5 c3c1ed137d Declare charset=utf-8 on every JSON response
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>
2026-10-22 23:01:53 +02:00
admin 91ea2a6f11 Merge pull request #64 from Alpaq92/core-v0.15
Repin dredd-core v0.15.0: the managed check knows the shared provider tables
2026-10-20 13:44:41 +02:00
adminandClaude Opus 5.5 32b01da698 Repin dredd-core v0.15.0: the managed check knows the shared provider tables
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>
2026-10-20 13:44:33 +02:00
admin ad005a8c80 Merge pull request #63 from Alpaq92/deps-otel-145
Bump uvicorn 0.54.0 and OpenTelemetry 1.45.0 / 0.66b0 together
2026-10-19 22:48:58 +02:00
adminandClaude Opus 5.5 ce728d3ca0 Bump uvicorn 0.54.0 and OpenTelemetry 1.45.0 / 0.66b0 together
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>
2026-10-19 22:48:51 +02:00
admin 2e6f8d8912 Merge pull request #62 from Alpaq92/core-v0.14
Repin dredd-core v0.14.0: the cross-site guard from the core
2026-10-19 20:23:11 +02:00
adminandClaude Opus 5.5 702e5abded Repin dredd-core v0.14.0: the cross-site guard (and audit reader) from the core
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>
2026-10-19 20:23:03 +02:00
admin 9d80f95d4b Merge pull request #59 from Alpaq92/legalwork-ui
Console on the family's ui/v1 look (legalwork)
2026-10-19 16:49:29 +02:00
admin 1d550ddce9 Merge pull request #61 from Alpaq92/bez-caddy-reszta
Remove the remaining Caddy references: Python is the edge
2026-10-19 15:06:06 +02:00
adminandClaude Opus 5.5 ac5ef7360d Remove the remaining Caddy references: Python is the edge
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>
2026-10-19 14:15:40 +02:00
admin ad9205910c Merge pull request #60 from Alpaq92/poprawki/drobne
Integration tests pass on a second run against the same database
2026-10-19 11:06:18 +02:00