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>
A push of many branches at once (the migration pushed 100 of Atrium's) started
a run per branch and flooded the runners. Every pull request is still tested.
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>
- Correspondence: the inbox's undated list held items already filed in a
matter and showed and counted them for everyone. It is now filtered to
the reader (correspondence.undated_for), including the dashboard card.
assign is authorized on the matter an item leaves as well as the one it
enters, and an item with derived deadlines no longer moves. The undated
reminder goes only to recipients who may read the item's matter.
- Conflict hits: the search still looks across every wall, but a hit in a
matter the reader cannot open no longer names it (conflicts.visible_hits,
matter_hidden). conflict_out requires the reader's hits.
- AML: deleting a matter cascaded to its assessments, and the runtime
role's missing DELETE did not stop it (a cascade runs as the table's
owner). nodes.delete refuses in words; revision 0007 drops the cascade.
- Opening a matter: the conflict check must cover the client (the engine's
name match against name and aliases) and the lead named on the request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pass against the Web Interface Guidelines (and Atrium's console, which already does most
of this):
- The ten clickable tables — deadlines, matters, parties, conflict checks (three places),
enquiries, invoices (two) and profitability — were mouse-only: the <tr> had the click and
nothing in the row could take focus, so a keyboard or screen-reader user could not open a
matter, a party or an invoice from any list. The first cell now holds the way in: a link
(rowLink) for a row that navigates, a button (rowBtn, .rowbtn) for one that opens a dialog.
The row keeps its click; both look exactly as before until focused. An invoice without a
number yet is named "Faktura bez numeru" instead of a bare dash.
- The account avatar was a <span> with a click handler, so the account sheet — sign-out, and
on a phone every .js-tool — could not be opened from the keyboard. It is a button now, as
in Atrium and Parafa (aria-label "Konto", aria-haspopup="dialog"); the shared .avatar rule
already styles a button identically.
- A dialog makes the page behind it inert (aria-modal alone does not stop Tab), focuses its
first field or else its first RENDERED control (the account sheet's .m-only rows are
display:none on a desktop and cannot take focus), and closeModal() gives focus back to
whatever opened it instead of dropping it on <body>. The opener is remembered before the
page goes inert. The search palette does the same, and its input is labelled.
- The sign-in and dialog error banners are role=alert, so errors are announced.
Checked in the demo console (demo.js) with real key presses: Enter on a list link opens the
matter; the record-time dialog keeps focus through 30 Tabs and Escape returns it to the
button; the account sheet opens from the avatar with focus on "Zamknij" and Escape returns
it; Ctrl+K / Escape returns focus too. node --check frontend/app.js passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The English console still showed Polish wherever the text comes from the API
rather than from app.js: the AML risk factors and their legal bases, the fee
calculator's proceedings, stages, sources and note, the built-in document
templates and their bases, how a rate was resolved ("cennik kancelarii „X”
(stopień: partner)") and the basis of a deadline counted from a service date.
These are closed sets defined in aml.py, fees.py, documents.py, rates.py and
deadlines.py, so they get keys like any other label; the ones framed by numbers
or a card name get anchored patterns that carry the number or the name through.
The new frame patterns (an option's fraction or percentage, a multiplier, a dash
before a basis) answer null unless the label inside is a known key, so user data
in the same shape is left alone. Bare statutory references in the fee basis
lines ("art. 13 ust. 1 pkt 2 u.k.s.c.") stay as cited.
The "preview only for built-in templates" message is written into a <pre>, which
localize() skips as raw content, so it is now passed through _tr by hand.
demo.js's login note and its two refusals get keys too: the demo is the deploy
an English visitor is most likely to see.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A static scan of app.js plus a crawl of the demo console in English found the
console's own text that never reached I18N: the matter search placeholder, the
"Billable time" tile, the party-link and remove-party messages, the declined
engagement toast, the first AML assessment heading, the notification "In the app"
switch, the unpaid-invoice cap note and the "Basis:" line of a document preview.
The AML "replace the current assessment" confirm had its key but called confirm()
without _tr, so it stayed Polish. The register lookup's pattern only took a
one-word source, so "Biała lista" (the VAT White List) fell through it.
Restoring a backup asked an English reader to type PRZYWRÓĆ. The word is now
translated with the page (RESTORE) and either spelling unlocks the restore.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two tiles, each counted for the caller by the very function its console list
calls, with the same arguments: open matters (matters.list_matters with
status=open; #/matters?status=open) and deadlines (deadlines.upcoming with the
Terminy screen's 60-day horizon, overdue included; #/deadlines). Behind the
session like every route, so Panorama's call with the person's own token sees
exactly that person's numbers.
dredd-core repinned v0.21.0 -> v0.23.0 (0.22.0 is opt-in, no change here).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every repin from v0.17.0 to v0.21.0 left SHARED.md's quoted version behind and
failed "Deploy pre-flight". The quote existed so the page would not mislead;
checking that it matched only moved the failure to CI. requirements.txt is now
the one place the version is written. deploy_check.py fails if SHARED.md quotes
one again, and if it stops saying where the pin lives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The K2 repin moved requirements.txt to v0.21.0 and left SHARED.md on v0.19.0,
so deploy_check.py fails "Deploy pre-flight" again, for the fourth repin in a
row. This commit only catches up; the next one stops it recurring.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
party.counterparty_id; create/update sync an organisation through core's
link_or_create when Sygna may write the register (natural persons never).
Revision 0006 links existing organisations, through the hub's import door
on the platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SHARED.md still quoted v0.15.0, so deploy_check.py has failed the backend
jobs' "Deploy pre-flight" step on every run since the v0.17.0 repin.
- compose-smoke piped `curl -fsS` into `grep -q` under pipefail. grep -q quits
at its first match and curl, still writing, dies of SIGPIPE: the step fails
silently although the page is right ("no SPA fallback", 2026-11-08). The page
is now read into a variable first. A real uvicorn at 13d7851 serves the deep
link with the console's <title>, so this was the test, not the edge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repin dredd-core to v0.19.0. The four Galena calls go through
dredd_core.module_client (the acting person's token, no redirects, one
time budget). Sygna keeps retrying idempotent reads itself (429/5xx,
timeout, unreachable; back-off 0.5 s, 2 s; one shared budget); writes are
never retried. Errors stay Sygna's UpstreamError with the same messages:
a Galena 401/403 is not turned into Sygna's own. ENDPOINTS and its
contract test are unchanged; httpx stays for the KRS/VAT registers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The conflict was the dictionary's head: main had grown a short EN block of
its own. Both are kept as one; where they disagreed this branch's wording
stays (it was already the later key, so the console read it that way).
#11 reworded about thirty sentences after this translation was written, and
localize() matches by exact text, so each of those would have stayed Polish
without a conflict to say so. They have keys now, plus three patterns for
text built around a number or a date (the dashboard's deadline tile, the
reports' period line, the receivables total).
From #10, closed in favour of this: on the platform the module's own menu
leaves out its settings entry, because Atrium's Ustawienia opens it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqGUzevJUNi45tARDzL
- JSON.stringify inside onclick="..." cut the handler short at its first quote,
so "Otwórz sprawę" died on a syntax error and no matter could be opened from
the console. Older than this branch. All six sites now go through jsArg.
- The default rate is checked before saving: "1.500,00" parsed as 1,50 zł.
- A pending check is never cut off GET /conflicts: the new badge points at it.
- A second matter no longer takes an enquiry off its first.
- A rejected 401 opens the sign-in screen, and a quick tab switch cannot replace
the page with an error.
- Copy that said something untrue: the art. 115 k.c. note, "do przypisania" on
a form that also files outgoing post, "w rejestrze" on the AML prompt.
- "kierownik" stays in the role's label, Polish plurals on the list counts.
- Two operator notes still named Administracja.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "Zapytania i konflikty" names what the screen holds. Unassigned post is "do
przypisania" everywhere, and Korespondencja says where assigned post went.
- "Należności przeterminowane" also summed invoices not yet due: it is now
"wg terminu płatności". "Do rozliczenia" is "Czas rozliczalny".
- Raporty says it counts the reader's matters, and a non-moderator no longer
sees colleagues at 0,0 % whose work is only out of their sight.
- Raw codes (high, viewer, manager) read in Polish.
- Roadmap talk, PLAN.md references and environment variables leave lawyers'
screens; configuration hints stay for moderators.
- In-house: "Strony" and "Dział prawny" instead of the firm's words.
- Letters on a matter gain "Szczegóły", and only incoming ones show red.
- tests/test_console_nav.py pins the addresses and the chrome Atrium relies on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Menu sections: "Codzienna praca" and the firm's own (or "Dział prawny"),
emitted as flat .nav-sep siblings so Atrium's mirror carries them.
- "Zapytania i konflikty" gets a badge. Badges load at sign-in and on a timer
instead of only after somebody opens Pulpit, and redraw only on a change.
- Pulpit's figures link to their lists, as Atrium's already do.
- "Administracja" becomes "Ustawienia Sygny": inside Atrium two different
screens carried that word. Five tabs instead of one 3178 px page, each
fetching only its own data. Bare #/admin still opens the first.
- On the platform the read-only copy of Atrium's accounts is gone, with one
line saying who manages them. Standalone keeps the table and "Dodaj".
- The default rate is typed in zł, not grosze: 450 used to mean 4,50 zł/h.
- The top-bar clock preselects the open matter, so the matter header's button
that only repeated it is gone. The Akta tab shows only when it embeds.
- One SMTP check instead of two on the same tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fmtDays was declared twice, so deadline tables printed "-2 po terminie".
- openInvoice used an undefined id: no invoice dialog could open.
- "do potwierdzenia" now means statute or court, and shows on Terminy too.
- Service-date forms no longer pre-fill today (legal_service_date is never
inferred) and refuse an empty date.
- A check opened from a list keeps its lead when the matter is opened.
- The deadline's creator is not offered a confirmation the server refuses.
- "Przypisz" is not offered on a letter that is already assigned.
- In-house: #/reports and ?tab=billing no longer render by direct address.
- AML: saving replaces the current assessment at once, so the form stays
folded and asks first.
- Rejected promises with no catch now show a toast instead of nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FastAPI 0.15x keeps each included router as one _IncludedRouter entry, so
the console wrapper (404 instead of 405 + Allow) and the route sweeps would
see no API route. Repins core from v0.17.0; FastAPI itself stays 0.115.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared ui/v1 pass Atrium got: icon-only buttons named, the toast a
live region, dialogs labelled, the page title an h1, a skip link, 44px
targets on touch, contained overscroll, theme-color.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The link was a .nav-item inside a div.nav-item, so its padding counted
twice and the icon sat 12px right of every other entry (and in Atrium's
mirrored module nav). It also lights up now on the admin screens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dictionary plus patterns for strings with numbers and dates, applied
only in EN, now riding on window.applyLang: the language still changes in
place, from each node's Polish source, and the MutationObserver that
catches screens written after load is installed in both languages
(localize() stays a no-op until the page has shown EN). The tab title
follows the language too.
Data, legal texts from Sygna's backend and the pl-PL number/date format
stay Polish on purpose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011DXFYDzg1AAJGH56afAFAo
The bare-input focus ring (zero-specificity :where rule) also matched the palette's query field and drew a rectangle inside the capsule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SMnEzCfhURcxL2ZZTLa3YY
(cherry picked from commit 4a88e8e10f2047d0343271ea46b50a9b6ce69206)
The applyLang change made localize() walk every tree even in Polish, so that switching back could
restore the source text. Until the page has once shown English there is nothing to restore: keep
the early return for that case (as before), which also keeps the console tests' minimal DOM, with
no NodeFilter, working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Atrium calls frame.win.applyLang(lang) when its language changes; the language button used to
reload the page and lose whatever was open. The hook accepts pl|en only, is a no-op on the
current value (no storage-event loop with Atrium), persists sygna_lang, sets <html lang> and
re-localizes from the Polish source: localize() now remembers each node's original text, so
EN -> PL works without a reload. The view is re-rendered through router() only when it holds no
typed or picked value; open modals are never touched. The language buttons use the same path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/v1/search now also carries version, q, hits and truncated (dredd_core.search_contract,
0.17.0), ranked by score across every kind. The console's grouped body has no hits key, so both
shapes ride in one response and the console is untouched; format=v1 is accepted as a no-op.
Links are the console's own routes; a deadline or invoice without its matter is dropped and
unfiled correspondence links to the inbox. limit no longer 422s: it is clamped, per group (1-25)
for groups and over all kinds (1-50, default 10) for hits. Pin stays at v0.16.0 under
TODO(search-contract).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sygna 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>
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>
With a wrong content-type, pydantic puts the raw body bytes into the
validation error's `input`; the RequestValidationError handler passed
exc.errors() straight to JSONResponse, which cannot serialize bytes, so
the 422 handler itself crashed into a 500. _plain_errors() drops `input`
and `url` and stringifies `ctx`; the problem+json shape is unchanged, and a
submitted value (a password) is no longer echoed back.
tests/test_request_body_problems.py: invalid JSON and three wrong
content-types are 422 problem+json; a valid body still passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The backend serves the console itself now (no Caddy), so ../atrium/ui/v1/ only resolves behind the platform's front door. Sygna gets a byte-identical copy of Atrium's package, like the other modules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SMnEzCfhURcxL2ZZTLa3YY