629 Commits
Author SHA1 Message Date
adminandClaude Opus 5.5 ea7b0748d4 Keep CRLF line endings in arbiter-kontrakt.yml
arbiter-kontrakt / contract (push) Successful in 1m49s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:19:09 +01:00
adminandClaude Opus 5.5 af941c1225 Fetch private dredd-core from the Haski Gitea, not GitHub
arbiter-kontrakt / contract (push) Successful in 2m48s
arbiter / backend (16) (push) Successful in 6m52s
arbiter / backend (17) (push) Successful in 6m30s
arbiter / managed-db (push) Successful in 5m36s
arbiter / compose-smoke (push) Successful in 1m43s
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:12 +01:00
adminandClaude Opus 5.5 a5eaa7ce04 CI: compose-smoke checks the headless root, not a console
arbiter / backend (16) (push) Successful in 5m48s
arbiter / backend (17) (push) Successful in 6m2s
arbiter / compose-smoke (push) Successful in 59s
arbiter / managed-db (push) Successful in 4m52s
Arbiter has no console since Atrium#53 stage 2: GET / answers JSON saying so,
and HEAD / is a 405. The smoke test now reads the security headers off a GET
and checks that the root describes the headless service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:41:23 +01:00
adminandClaude Opus 5.5 fb82239769 Build from Gitea instead of GitHub
arbiter-kontrakt / contract (push) Successful in 2m36s
arbiter / backend (16) (push) Successful in 5m15s
arbiter / managed-db (push) Successful in 4m56s
arbiter / backend (17) (push) Successful in 5m20s
arbiter / compose-smoke (push) Failing after 2m10s
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:17 +01:00
admin d99906f637 Merge pull request #5 from Alpaq92/fix/structure-split-reference
Parser: a cross-reference split at the line end is not a new unit; synthetic PDF gold set (Atrium#53)
2026-11-28 19:29:58 +01:00
adminandClaude Opus 5.5 e20ff33d88 Parser: a cross-reference split at the line end is not a new unit; synthetic PDF gold set (Atrium#53)
A line ending in "ust." / "pkt" / "lit." continues into the number opening the next
line ("§ 4 ust." + "1."), so that number is not a new unit, point or letter.

scripts/gold_synthetic.py builds 12 Polish contracts with known structure (fonts,
justification, marker gaps, hyphenation, NBSP, footers, headings at page end) and
measures extract_text + parse_structure against truth.json: 994 units, 0 missing,
0 extra (before the fix: 5 missing, 10 extra).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:15:12 +01:00
admin b040c89162 Merge pull request #4 from Alpaq92/feat/analysis-accepted
Akceptacja analizy: rename the sign-off and say analysis.accepted
2026-11-28 00:22:17 +01:00
adminandClaude Opus 5.5 136d10ecb7 chore(env): document ARCHIVE_READER_ID (deploy_check)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:17:46 +01:00
adminandClaude Opus 5.5 4aebf04e54 feat(evidence): GET /evidence for the Galena archive; technical account fenced to it (Atrium#53)
Every accepted analysis of a Galena document: a contract card as facts.export gives it (the frozen
document, sha256 = the fingerprint, unless masking is on for the caller), a red-lines run as its HTML
report. A person sees what authz.can_read lets them; the archive's technical account (fixed id
ARCHIVE_READER_ID, minted by the hub) sees all, is audited as evidence.read, and gets 404 on every
other route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:16:30 +01:00
adminandClaude Opus 5.5 b61abaa9a4 Arbiter loses its console: a headless service for Atrium's chat (Atrium#53)
Stage 2, plan 3: the console is removed, not hidden. frontend/, the static
mount (SpaStaticFiles, ConsoleUnlessApi), its build context, CI syntax step
and the console-only /dashboard and /stats routes (their tiles linked into
console screens) are gone. Every API the chat, review panel and skill screens
call stays, with /healthz; / answers one JSON line: no console.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:43:04 +01:00
adminandClaude Opus 5.5 b8d0a8f6bf fix(ingestion): recover glyphs whose ToUnicode entry is a control code
A broken ToUnicode CMap mapped benefia-owu-ac.pdf's bold /one to U+0004, so
PDFium dropped every bold "1" (213 missing / 181 extra labels). A C0 control
from ToUnicode is never text: invert the CMap to the char code and take the
glyph name from /Differences (pypdf, BSD-3, read only when one occurs).
Benefia now 0/0; engine 5388 hit / 3 missing / 2 extra on the 12 documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:43:45 +01:00
adminandClaude Opus 5.5 2140a9bb35 docs(specs): czytnik PDF wobec własnego wzorca na 12 publicznych PDF-ach (P7)
Wzorzec etykiet struktury z rozstrzygniętą każdą różnicą czytników
(silnik, pypdf, PyMuPDF), skrypt budowy i oceny, wynik w terminach S3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:13:40 +01:00
adminandClaude Opus 5.5 71c14a1bfa fix(events): refuse a subject that is neither a document nor a file
accepted_payload raises ValueError instead of emitting analysis.accepted
without a subject_kind. The acceptance's history narration in signoffs
and the sign route is trimmed to one sentence each. The PDF measurement
script says it needs pypdf and is not part of the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:51:43 +01:00
adminandClaude Opus 5.5 3cc1171c7e fix: subject.ref is a property; the migration test knows 0008's tables
Found by running the unit tests: accepted_payload called subject.ref() and
failed on every acceptance; test_analysis_migration did not list the event
tables 0008 brings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:51:18 +01:00
adminandClaude Opus 5.5 33d11bdf57 docs: the PDF reader measured on 12 public documents (Atrium#53)
pypdfium2 + pdf_layout and parse_structure on 12 public PDFs (8 contract
templates, 4 insurance terms), without a reference: extraction health,
structure counts, numbering continuity, a cross-check against pypdf, glued
words and § order. No U+FFFD; markers equal or within 1-3 of pypdf, more
on two-column OWU; numbering gaps are mostly document structure; one real
defect: glued words in one OWU (both readers), where the PDF has no space
glyphs. Scripts and sources under scripts/pdf_reader_measure/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:10:42 +01:00
adminandClaude Opus 5.5 323d720c8e Akceptacja analizy: rename the sign-off and say analysis.accepted
"Podpisz raport" becomes the acceptance of the analysis (Atrium#53, stage 2)
in the console, the card report, the API (POST /analyses/{id}/acceptance;
/signoff stays as an alias) and the audit log (analysis.accepted). The
append-only table analysis_signoff keeps its name and columns: it is
evidence, and renaming it would only migrate the evidence.

The acceptance now writes `analysis.accepted` in its own transaction
(services/events.py): ids and hashes only, the subject in the shape of
dredd_core.workflow_contract (a Galena document: module, document_id,
commit_sha, sha256). Revision 0008 brings the event log (standalone) and the
receiver's tables; the event tables are append-only evidence, and CI's
managed check runs with --events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:27:10 +01:00
admin af72386f7d Merge pull request #2 into main 2026-11-24 20:23:14 +01:00
admin 3eae1b0495 Merge pull request #1 into main 2026-11-24 20:23:13 +01:00
admin 5ad06107d9 Merge pull request #3 into main 2026-11-24 20:17:58 +01:00
tobayahandClaude Opus 5.5 af72a36e93 Telemetria: angielskie etykiety zdarzeń i modułów z katalogu backendu
Etykiety przychodzą z services/telemetry.py tylko po polsku; front tłumaczy je
po dokładnym brzmieniu. Kod zdarzenia oznaczony data-no-i18n (to identyfikator).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqKxJYwxV2cQzX8M6sh
2026-11-20 16:38:34 +01:00
tobayahandClaude Opus 5.5 dbef1f8f68 skills: the version status read asks the module role first; normalize answers a lone surrogate with 422
Final fix wave of Plan 2 (F9, F10): version_status calls assert_firm_role like every other read; a JSON body with an unpaired surrogate escape is the client's 422, not a 500 from the encode; round-trip test with multi-line text and ': ' / '#' inside values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 18:02:07 +01:00
tobayahandClaude Opus 5.5 5ec5665635 Arbiter console: English dictionary for every screen
I18N grows from 55 to 470 entries: navigation, subjects, the analysis queue and a
run's screen (lease, exit codes, checks, sign-off), red lines and the contract card
(values and units worded as services/card_report's EN vocabulary), model providers,
"What we send", number masking, the first-run intro (including the hardware verdict
and its fixed sentences), the trial run and the laptop program's credentials.

Two places never reached localize(): the breadcrumb in the top bar and the search
palette, which overwrites the dialog root after modal(). Both are localized now.
Sentences that were string concatenations across lines are single literals, so the
key matches the source as written.

Checked with a mocked API in Edge, every route and dialog in EN mode: no Polish text
left outside data-no-i18n values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:41:41 +01:00
tobayahandClaude Opus 5.5 21100859da Arbiter console: compose split sentences so English mode can translate them
localize() matches whole text nodes, so a sentence glued to a value never matched a
dictionary key. The fixed words now go through _tr or a node of their own; values
stay data:
- source label, red-lines counter, verdict/severity chips and hints inside the
  data-no-i18n red-lines rows, the model download banner (decimal point in EN)
- trial counts („3 z 5”), the trial toast and the per-rule differences
- telemetry „sent at”, the intro's „saved by”, the hardware note (fixed server
  sentences swapped one by one)
- the PowerShell Read-Host prompt on the laptop screen

Mechanism: toasts and dialog errors go through _tr; dates, money and relative time
follow LANG instead of a hard-coded pl-PL; the tab title, <html lang> and the language
button's title are translated; modal() honours the subIsValue its callers pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:32:25 +01:00
tobayahandClaude Opus 5.5 8b7356547a skills: read a skill version's trial and standards check without freezing it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 15:01:29 +01:00
tobayahandClaude Opus 5.5 7a52f14029 skill-check: normalize a checking file and list clause types for the hub's editor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 14:47:45 +01:00
tobayahandClaude Opus 5.5 ed5c8a957d agents: the run list ignores a JSON-null skill_ref; the standards check settles under the row lock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 00:26:06 +01:00
tobayahandClaude Opus 5.5 ee4998a312 config: ATRIUM_BASE_URL in .env.example; dredd-core pinned at v0.25.0 (0.24.0 stays K4's)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 00:11:07 +01:00
tobayahandClaude Opus 5.5 cb3a64d0eb lint: an unused import and a sorted import block
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 00:11:07 +01:00
tobayahandClaude Opus 5.5 209d087634 agents: a skill agent's trial and standards check are kept per version; a skill is ordered by its version only
agent.skill_trials (migration 0007) and agent.standards_check are maps by agent version id; trial and standards check name the version (agent_version_id) and never compare against the current one, so trying a proposal no longer takes the approved version off real contracts. A skill agent is not orderable by its agent id and is never activated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-19 00:11:07 +01:00
tobayahandClaude Opus 5.5 eaa92a6eaf skills: Atrium's listing is checked for shape (502 upstream_shape), its 401 is a 502 atrium_refused, and a frozen version is found before the file is read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:55:55 +01:00
tobayahandClaude Opus 5.5 94e63a85a1 skills: bounded input (256 KiB file, 100 standards, capped zasada and step name); the run list reads four skill keys in one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:51:28 +01:00
tobayahandClaude Opus 5.5 cd278534ae agents: one public fence-marker list and one slug check for the skill reader; an English ponytail note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:50:09 +01:00
tobayahandClaude Opus 5.5 a3b86fe187 agents: standards check refuses what says nothing about the standard; one model-asking sequence for trial and check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:26:25 +01:00
tobayahandClaude Opus 5.5 68a59ea897 agents: a standards check that advises the lawyer, never gates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:18:21 +01:00
tobayahandClaude Opus 5.5 b2ae7c3ef5 skills: the sync route needs the editor role, checked before Atrium is asked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:07:43 +01:00
tobayahandClaude Opus 5.5 773ebeb3a0 analyses: a report and its sign-off name the skill version; skill rules are edited in Atrium
Also POST /skills/{skill_id}/versions/{n}/sync: freeze a skill version without ordering a run, so the trial has an agent. dredd-core pin to v0.24.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 23:04:54 +01:00
tobayahandClaude Opus 5.5 81c75821b1 analyses: order a run by skill version, real contracts only for approved and tried ones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 22:49:55 +01:00
tobayahandClaude Opus 5.5 38edb482da skills: freeze a skill version from Atrium as an agent version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 22:31:55 +01:00
tobayahandClaude Opus 5.5 0bc8a46843 db: an agent can be a skill's, a version keeps the skill it came from
Migration 0007 adds agent.skill_id (unique, no FK), agent.standards_check and agent_version.skill_ref, idempotently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 22:22:21 +01:00
tobayahandClaude Opus 5.5 c58dcf1124 agents: harden skill reader (parser exceptions, slug ids, step fields in check_rules)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 19:18:01 +01:00
tobayahandClaude Opus 5.5 5a3cc6d56e agents: read a skill's sprawdzanie.yaml into red-line rules with steps
skill_check lives in services/ (not agents/): it needs check_rules, and test_agents_boundary forbids app/agents importing services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uwxqJYwbXKWMeNZfrFuXq
2026-11-18 19:07:03 +01:00
adminandClaude Opus 5.5 085bfc9afe Arbiter repository: carved out of compass-contract-hub, Workflow left behind
Workflow (apps/compass) is retired; Arbiter and the compass_* engine packages
continue here with their history (git filter-repo from compass-contract-hub
origin/main c2e7e8e, dropping apps/compass, its two workflows, .meduza and the
two Workflow-only plans). Old->new SHAs: docs/history/compass-contract-hub-sha-map.txt.

- workspace root renamed arbiter-workspace (uv.lock relocked); excludes apps/arbiter
- .dockerignore/.gitignore/arbiter.yml/hooks no longer name apps/compass
- README, CLAUDE.md, AGENTS.md, HANDOFF.md, ADR-005: the new repository and the
  new git URL form for the unchanged distributions (compass-ingestion etc.)
- engine contract/import-boundary tests and docstrings point at this repository

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:39:55 +01:00
admin 3f6b736501 Merge pull request #71 from Alpaq92/feat/arbiter-stats
Arbiter answers the stats contract (GET /stats)
2026-11-14 11:35:44 +01:00
adminandClaude Opus 5.5 f316862c12 Arbiter: GET /stats, the dredd-core 0.23.0 stats contract for Panorama
Two tiles, each the length of the console list its link opens (the same
permission-filtered list_subjects and status filter). Repin dredd-core to v0.23.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:42:39 +01:00
admin 1293b97c6c Merge pull request #70 from Alpaq92/ci/license-gate
CI: workspace licence gate over uv.lock
2026-11-14 09:26:12 +01:00
adminandClaude Opus 5.5 0754b12aac CI: run the workspace licence gate over uv.lock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:09:05 +01:00
admin 1deedf9a6b Merge pull request #68 from Alpaq92/feat/l2-copyleft-out
L2: copyleft out (marker-pdf, PyMuPDF leftovers), PDFium notices, lockfile licence gate
2026-11-13 16:25:20 +01:00
adminandClaude Opus 5.5 24aae4c20d Arbiter: list PROFILE_PATH and TELEMETRY_URL in .env.example
deploy_check.py refused main: config.py reads both settings but the example
did not name them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:24:29 +01:00
adminandClaude Opus 5.5 22e563a221 L2: copyleft out of the workspace (marker-pdf, PyMuPDF leftovers, licence gate)
- packages/ingestion: drop marker-pdf (GPL-3.0, pulled surya-ocr and torch) from the
  `ocr` extra; nothing imported it. uv.lock relocked.
- Delete scripts/compare_pdf_readers.py: a PyMuPDF-vs-pypdfium2 parity check, pointless
  without PyMuPDF; the frozen span replay still guards a pypdfium2 bump.
- scripts/license_gate.py + tests/test_workspace_licenses.py: no GPL/AGPL/SSPL in any
  package of uv.lock (every member, extra and group), by metadata and by known names.
- packages/ingestion/NOTICE: PDFium third-party notices (FreeType FTL, libjpeg-turbo,
  libpng, libtiff, ICU, OpenJPEG, zlib, AGG).
- Docs: live PyMuPDF/Marker/AGPL mentions updated; ADR-005 marked superseded, Compass
  ADR-001/003 annotated; ACCEPTANCE W6 closed as "reader replaced".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:21:00 +01:00
admin dddae4d06e Merge pull request #67 from Alpaq92/feat/m5-remove-contract
Compass M5: revision 0030 removes the contract, Compass = Workflow
2026-11-13 12:50:05 +01:00