21 Commits
Author SHA1 Message Date
adminandClaude Opus 5.5 5374467df2 Fetch private dredd-core from the Haski Gitea, not GitHub
CI / backend (16) (push) Successful in 1m26s
CI / backend (17) (push) Successful in 1m31s
CI / managed-db (push) Successful in 1m35s
CI / compose-smoke (push) Successful in 2m1s
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:09 +01:00
adminandClaude Opus 5.5 596dfbeb98 CI: allow a manual run (Actions -> CI -> Run workflow)
CI / managed-db (push) Successful in 1m27s
CI / compose-smoke (push) Successful in 2m11s
CI / backend (16) (push) Successful in 1m4s
CI / backend (17) (push) Successful in 1m10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:06:29 +01:00
adminandClaude Opus 5.5 0d61e7fe03 CI: push runs only on main; branches are tested through their pull request [skip ci]
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>
2026-11-30 16:38:52 +01:00
adminandClaude Opus 5.5 7aa1881a72 Build from Gitea instead of GitHub
CI / backend (16) (push) Successful in 2m42s
CI / backend (17) (push) Successful in 1m8s
CI / managed-db (push) Successful in 1m9s
CI / compose-smoke (push) Successful in 48s
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:16 +01:00
admin e4ca1827da Merge pull request #5 from Alpaq92/security/audit-compare-and-guards
Audit round comparisons, keep a closed room's thread read-only, user list for moderators
2026-11-28 10:40:03 +01:00
admin e0493ba59d Merge pull request #4 from Alpaq92/naprawa-53
Atrium#53: the other side as a guest, and approval through Workflow
2026-11-28 00:22:12 +01:00
adminandClaude Opus 5.5 d9ffb64737 Test: build the other side's docx once (zip time has 2 s resolution); hold scramp below 1.5
Fixes Atrium#53 run 2, points 6 and 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:21:42 +01:00
adminandClaude Opus 5.5 39d576d699 chore(env): document ARCHIVE_READER_ID (deploy_check)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:17:39 +01:00
adminandClaude Opus 5.5 6f2c6dba0e feat(evidence): GET /evidence for the Galena archive; technical account fenced to it (Atrium#53)
Every round's file with its sha256 of every room on a Galena document. A person sees the rooms they
may enter; 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:06:59 +01:00
adminandClaude Opus 5.5 aaab5cf057 feat: a room names its counterparty; the guest sees its name from the counterparty register (read only)
Spec 2026-11-25 part A (Kontrahenci), step 3: a nullable counterparty_id
(RESTRICT) on the platform's register, a picker over its organisations
and a PUT to set or clear it (owner or moderator, else 404). The module
only reads the register and never shows counterparty_contact. Idempotent
revision ending with runtime_grants_sql; standalone it creates the
(empty) local register, on the platform it drops empty local copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:55:25 +01:00
adminandClaude Opus 5.5 aa36d265c6 fix: guests see no deleted comment and no internal file detail
- room_view skips comments the team deleted; a guest's round shows a
  neutral runda-N.<ext>, no hash, no commit, no kind; downloads too
- accepted/closed rooms stay readable to a live invite, writes refused
- create_invite commits itself and removes guest copies on failure
- last_used_at stamped at most once a minute, committed only then
- names for rounds/comments preloaded in one query per kind
- one comment validation shared by people and guests
- InviteIn is the only range check; HEADER used by the router;
  receiver batch is one constant; app.js.new and ticket notes removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:44:58 +01:00
adminandClaude Opus 5.5 8b260c29cf fix(console): English for the guest-link screens
Found by the console tests under Node: six Polish strings of the invite
panel and the shared-comment option had no English entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:48:20 +01:00
Piotr ChojnackiandClaude Opus 5.5 db8d37729c Audit round comparisons, keep a closed room's thread read-only, roster for moderators
- GET /rooms/{id}/compare returns the full text of both rounds but wrote no audit row, while a
  download is audited before it streams (G9). It now records `room.rounds_compared`.
- DELETE /rooms/{id}/comments/{cid} used the read guard, so an author could still blank a comment
  in a closed (read-only) room. It now uses the write guard and answers 409 there.
- GET /users was open to every signed-in user and any read-only token. On the platform that is the
  whole platform's roster (e-mail, name, administrator flag). Only the Administration screen uses
  it, so it now requires this module's moderator tier.

Integration test extended for all three. Not run: CI is down and this machine has no private deps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:47:46 +01:00
adminandClaude Opus 5.5 917e34d325 feat: send a negotiation's result for approval in Workflow; its approval accepts the room
Atrium#53, stage 3 (Galena documents only, as decided). A room on a Galena
document gets "Wyślij wynik do akceptacji" on the platform: a link to
Workflow's new-run screen with the document prefilled, so Workflow pins its
current version (the last round's commit) and its own templates and people
decide. Agora now receives the event log: workflow.approved from
WORKFLOW_EVENT_ROLES (default workflow_app) on the commit of a room's last
Galena round marks that open room `accepted` (read-only); a room that moved
on after the run started stays open. Revision 0007 adds `accepted` to the
room status CHECK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:11:43 +01:00
adminandClaude Opus 5.5 e2d943cd46 feat: the other side as a guest of one room (room invite links)
Atrium#53, stage 3. The room's owner or a moderator makes a link for the
counterparty: a random token shown once, of which only the sha256 is kept,
valid 30 days by default (1-180), revocable. Whoever holds it, through
guest.html (token after "#", sent as X-Agora-Guest, never in a logged URL):
- sees that room only: its rounds (ours without internal notes or names)
  and the comments marked "także dla drugiej strony", plus their own;
- downloads rounds; a round kept in Galena reaches them as a guest_copy,
  made with a person's token when inviting or sending a round while an
  invite is active (a guest has no Galena account);
- sends a counter-round (always druga_strona, kept as Agora's own file, and
  negotiation.round_received still names the room's Galena document) and
  comments, while the room is open.
Unknown, expired and revoked tokens are one and the same 404. Every guest act
is audited with no actor and the invite's id. Module identity invariants hold:
no app_user, no session.

Revision 0006: room_invite (NO-DELETE), guest_copy, guest_invite_id on
rounds and comments, comment.shared, author_id nullable with a CHECK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:09:02 +01:00
admin 75619e8998 Merge pull request #1 into main 2026-11-24 20:17:12 +01:00
tobayahandClaude Opus 5.5 43af4ed2a4 Console: English only in EN mode (chrome, crumb, toast)
The shared chrome, the same in all six modules: the tab title and <html lang>, the language
button's title / aria-label (data-no-i18n, so set in code by localizeChrome()), the search
tooltip, the breadcrumb (setCrumb() now localizes the top bar) and toast(), which wrote outside
every localize() root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:42:35 +01:00
adminandClaude Opus 5.5 c82c1cf238 GET /stats: 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 service and status filter). Repin dredd-core to v0.23.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:36:24 +01:00
adminandClaude Opus 5.5 a343a1fe06 Document the negotiation room (M3): README, CLAUDE.md
How a round is stored with and without Galena, access by participants and
moderators (plan P5), the kept server-side .docx comparison and the
negotiation.round_received event, with the [T] questions for review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:47:50 +01:00
adminandClaude Opus 5.5 cd3d0f130b Port the negotiation room from Compass (M3)
negotiation_room is Agora's subject (dredd_core.document_ref: a Galena
DocumentRef or a plain_files FileRef); contract_version and contract_comment
become negotiation_round and negotiation_comment. With Galena a round is a new
commit on the room's document, written through Galena's upload (dest = the
document's path) with the person's token and pinned at the commit Galena
answers; without Galena it is a new plain file. Access is the room's
participants plus the module's moderators (plan P5). The .docx comparison
(compare.py, stdlib only) is kept server-side. A round from the other side
emits negotiation.round_received (dredd-core 0.20 events) in the round's
transaction. Revision 0005 is idempotent; 0001 builds with checkfirst=False;
provision.sql is rendered for the platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:47:15 +01:00
adminandClaude Opus 5.5 160bf0d39f Scaffold Agora (dredd skill: simple tenancy, red, pl-first, dredd-core v0.22.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:32:14 +01:00