Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
Document the meeting lock rule and its guard
Guido Boyke0609e0ef4bc8
diff --git a/CLAUDE.md b/CLAUDE.mdindex 98cd4c4..dbeb83e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -205,6 +205,29 @@ Einen privaten Kommentar lesen sein Adressat, sein Autor und die Kontoadmins. Da* Bis zum Audit vom 26.09.2026 stand die Regel nur in `PostPolicy`. Fünf Leser hatten sievergessen, zwei weitere fanden sich beim Beheben.+### A meeting write locks through `Meeting#lock_in_project!`++**Binding** (guard spec: `spec/architecture/meeting_lock_guard_spec.rb`; runs through the+directory entry `spec/architecture/` in the CI guard list):++A meeting can move into another project (`Actors::MoveMeeting`, under the meeting's row lock).+A write that was authorized against a project takes the same lock through+`meeting.lock_in_project!(authorized_project_id)` and treats `false` as "the meeting is gone+from this project": refuse, or answer as if it were not found.++* The guard refuses a bare lock on a meeting (`@meeting.lock!`, `Meeting.lock`,+ `project.meetings.lock`) anywhere outside `app/models/meeting.rb`. Its allow list names two+ actors that lock and then authorize again, under the lock, in the project the meeting is in+ now (`AcceptTicketSuggestion`, `StartTicketSuggestionRun`). It only shrinks, and every entry+ gives its reason.+* `WRITERS` pins the six writes that exist: the move, the edit, the delete, the ticket link,+ the analysis publication and the booking. Three review rounds of the move found each of+ them landing in the old project after a move.+* ⚠️ **Not seen: a new write that takes no lock at all.** Writing a meeting's data (its+ project, links, analyses, bookings) means calling the helper; the guard cannot know that a+ file it has never heard of should.+* Lock order: the meeting before a booking or an analysis, never the other way round.+---## ViewComponent & Design Systemdiff --git a/app/models/CLAUDE.md b/app/models/CLAUDE.mdindex 39c4aee..6dd574d 100644--- a/app/models/CLAUDE.md+++ b/app/models/CLAUDE.md@@ -1,4 +1,4 @@-# Karte: app/models (Stand: 2026-10-20)+# Karte: app/models (Stand: 2026-10-24)~80 Modelle liegen flach in diesem Verzeichnis; Namespaces existieren nur für `admin/`,`knowledge/`, `overview/`, `smart_folders/`, `time_sessions/`, `user/`. Die Domänen-Zugehörigkeit ist am@@ -129,6 +129,10 @@ Verzeichnis-Layout nicht ablesbar — diese Karte gruppiert sie:(Lalabases eigene Hilfetexte als Suchtabelle, tenant-frei, siehe Falle 3)* **Meetings**: `meeting`, `meeting_participant`, `meeting_participant_claim_rejection`,`meeting_analysis` (Post-Sichtbarkeitsmuster: `is_private`+`visible_to_user`), `analysis_prompt` (org-weite Prompt-Bibliothek)+ ⚠️ Ein Meeting kann das Projekt wechseln (`Actors::MoveMeeting`). Jeder Schreibweg, der gegen+ ein Projekt geprüft wurde, sperrt über `Meeting#lock_in_project!` und gibt bei `false` auf;+ eine nackte Sperre auf einem Meeting lehnt `spec/architecture/meeting_lock_guard_spec.rb`+ ab (Stand 24.10.2026, Abschnitt in der Wurzel-`CLAUDE.md`).* **Kein AR-Modell, liegt aber hier**: `acquisition_source` — Value Object über`accounts.acquisition` (Herkunft eines Neukunden). Besitzt die Kanal-Prioritätref > utm_source > referrer_host > direct an genau EINER Stelle (`doc/akquise_herkunft.md`).