Data model: 'rules' conflate legal norms + procedural events — explore submission/procedural-event-first model (inventor) #93
Open
opened 2026-05-25 13:04:01 +00:00 by mAi
·
1 comment
No Branch/Tag Specified
main
mai/planck/coder-b5-b6-train-share
mai/archimedes/fixer-port-engine
mai/maxwell/coder-b4-akte-mode
mai/lorenz/coder-b3-event-triggered
mai/euler/fixer-builder-add
mai/brunel/fixer-prod-500s-after-b1
mai/galileo/coder-b1-b2-mvp-train
mai/pasteur/fixer-pkg-litigationplann
mai/newton/coder-b0-scenario-db
mai/edison/inventor-prd-columnar
mai/knuth/coder-workflow-tracker
mai/atlas/inventor-extend-tools
mai/cronus/inventor-unified
mai/atlas/inventor-deadline-system
mai/atlas/inventor-followup-rules
mai/athena/consultant-deadline
mai/brunel/fixer-dark-mode-support
mai/knuth/coder-cronus-fristenrechn
mai/ritchie/coder-mig-153-proceeding
mai/atlas/inventor-proceeding
mai/cronus/inventor-fristenrechner
mai/curie/coder-mig152-clone-dedupe
mai/darwin/researcher-lexy-draft
mai/knuth/coder-dedupe-null
mai/cronus/coder-composer-slice-f
mai/cronus/coder-composer-slice-e
mai/cronus/coder-composer-slice-d
mai/curie/coder-slice-b6-url-rename
mai/curie/coder-slice-b5-go-rename
mai/cronus/coder-composer-slice-c
mai/curie/coder-slice-b4-destructive-drop
mai/cronus/coder-composer-slice-b
mai/cronus/coder-composer-slice-a
mai/cronus/inventor-prd-for
mai/knuth/coder-verfahrensablauf
mai/ritchie/coder-make-backup
mai/diesel/fixer-dark-mode-css
mai/curie/coder-slice-b3-read-cutover
mai/diesel/fixer-verfahrensablauf
mai/curie/coder-slice-b2-dual-write
mai/cronus/coder-slice-d-scenarios
mai/knuth/coder-backfill-applies
mai/hermes/gitster-verfahrensablauf
mai/cronus/coder-berufung-labels-refactor
mai/diesel/hotfix-2-mig-134-missing
mai/curie/coder-slice-b1-procedural-events
mai/cronus/coder-slice-c-upc-snapshot
mai/brunel/hotfix-rename-upc-apl
mai/cronus/coder-slice-b3-primary-party
mai/cronus/coder-slice-b2-catalog-query
mai/cronus/inventor-litigation-slice-b
mai/curie/researcher-slice-b-zero
mai/cronus/inventor-litigation
mai/artemis/gitster-remove-admin
mai/ritchie/coder-sort-post-trigger
mai/knuth/coder-conditional-label
mai/hermes/coder-verfahrensablauf
mai/brunel/rebase-121-conditional
mai/knuth/coder-conditional-rule
mai/hermes/gitster-dark-mode-fix
mai/ritchie/coder-submission-form
mai/artemis/gitster-re-surface
mai/brunel/fixer-views-any-filters
mai/cronus/coder-cicd-slice-a
mai/knuth/coder-wave-1-tier-1-rule
mai/ritchie/coder-upc-damages-add
mai/cronus/inventor-ci-cd-pre
mai/brunel/rebase-108-language
mai/hermes/gitster-admin-rules-list
mai/artemis/gitster-submission
mai/icarus/gitster-verfahrensablauf
mai/orpheus/gitster-search-input
mai/atlas/coder-event-card-choices-slice-ab
mai/hermes/gitster-date-range
mai/demeter/gitster-submission
mai/knuth/coder-hl-patents-style
mai/hermes/gitster-draft-editor
mai/atlas/inventor-per-event-card
mai/knuth/coder-deadline-rule-tier
mai/cronus/coder-procedural-events-slice-a
mai/hermes/gitster-deadline-form
mai/artemis/gitster-add-missing-i18n
mai/demeter/gitster-paliadin-chat
mai/brunel/wave0-tier0-deadline-fixes
mai/artemis/coder-docker-compose-yml
mai/icarus/coder-inbox-overhaul-slice-a
mai/atlas/coder-date-range-picker-slice-a
mai/brunel/fixer-de-inf-lg-cfi
mai/cronus/inventor-procedural
mai/hermes/gitster-event-type-modal
mai/cronus/coder-backup-mode
mai/curie/researcher-bulletproof
mai/hermes/gitster-draft-editor-focus-jump
mai/cronus/inventor-backup-mode
mai/hermes/gitster-submissions
mai/artemis/gitster-deadline-form
mai/brunel/fixer-submission-preview
mai/brunel/fixer-test-data-reset
mai/artemis/gitster-approval-withdraw
mai/demeter/gitster-events
mai/hermes/gitster-sidebar-loses
mai/hermes/gitster-browse-a
mai/brunel/fixer-submissions-demo
mai/icarus/inventor-inbox-overhaul
mai/atlas/inventor-symmetric-date
mai/artemis/gitster-demote-daten
mai/hermes/gitster-team-view-mailto
mai/knuth/coder-global-schriftsatze
mai/knuth/coder-schriftsatze
mai/ritchie/coder-author-demo-docx
mai/knuth/coder-add-schriftsatze
mai/knuth/coder-add-checklist
mai/knuth/coder-anchor-lookup-must
mai/tesla/dashboard-resize-clamp
mai/knuth/coder-demote-projekt
mai/knuth/coder-paliadin-chat
mai/knuth/coder-print-views
mai/knuth/coder-add-proceeding
mai/knuth/coder-submission
mai/ritchie/coder-extend-team-email
mai/knuth/coder-changelog-catch-up
mai/tesla/dashboard-overlap
mai/pasteur/fixercoder-dashboard
mai/newton/inventor-configurable
mai/dirac/inventorcoder-user
mai/gauss/inventorcoder-team-admin
mai/kepler/inventorcoder-project
mai/darwin/roadmap-ccr-en
mai/euler/coder-small-ux-polish
mai/darwin/fristenrechner-cleanup
mai/darwin/fixercoder-priority-bug
mai/leibniz/inventor-caldav-multi
mai/hertz/inventor-unified-modal
mai/archimedes/inventor-excel-data
mai/boltzmann/inventor-gap-tolerant
mai/copernicus/submission-slice-1
mai/fermi/interactive-session
mai/hertz/inventor-suggest-changes
mai/copernicus/inventor-submission
mai/mendel/test-strategy-slice-1
mai/mendel/inventor-test-strategy
mai/ampere/custom-views-improvements
mai/joule/mig-097-apply-huygens-s
mai/ohm/workstream-b-rename
mai/huygens/workstream-a-backfill
mai/kelvin/t-204-phase-2-proceeding
mai/bohr/ingest-t-paliad-203-rule
mai/curie/fristenrechner-gap
mai/maxwell/inbox-grey-out
mai/rutherford/slice-9-follow-up-b-re
mai/dirac/slice-9-follow-up-a
mai/bose/determinator-cascade-slice-3
mai/bose/determinator-cascade-slice-2
mai/bose/determinator-row-cascade
mai/lorenz/fristen-phase-3-slice-9
mai/curie/fristen-phase-3-slice-12
mai/planck/aichat-phase-b-paliad
mai/young/fristen-phase-3-slice-11b
mai/lorenz/fristen-phase-3-slice-11a
mai/lorenz/fristen-phase-3-slice-10
mai/lorenz/fristen-phase-3-slice-8
mai/lorenz/fristen-phase-3-slice-7
mai/lorenz/fristen-phase-3-slice-6
mai/lorenz/fristen-phase-3-slice-5
mai/lorenz/fristen-phase-3-slice-4
mai/lorenz/fristen-phase-3-slice-3
mai/lorenz/fristen-phase-3-slice-2
mai/lorenz/fristen-phase-3-slice-1
mai/pauli/fristen-phase2-design
mai/tesla/project-timeline-chart
mai/pauli/fristen-logic-audit
mai/pauli/determinator-b1-row-by
mai/noether/tools-cleanup-slice-1
mai/kelvin/inventor-tools-surface
mai/planck/paliadin-per-user-rls
mai/maxwell/bug-bundle-filterbar
mai/faraday/project-timeline-chart
mai/schroedinger/smarttimeline-slice-4
mai/bohr/smarttimeline-slice-3
mai/gauss/smarttimeline-slice-2
mai/riemann/filterbar-phase-2-slice
mai/lagrange/smarttimeline-design-the
mai/curie/researcher-determinator
mai/noether/collapse-regel-typ-on
mai/riemann/inventor-universal
mai/minkowski/project-level-our-side
mai/dirac/inventor-inline-paliadin
mai/feynman/fristenrechner
mai/minkowski/navbar-dashboard-reorg
mai/shannon/approval-rework
mai/einstein/consultant-deadline-data
mai/curie/researcher-upc-rop-audit
mai/noether/paliadin-real-claude
mai/noether/inventor-paliadin
mai/hilbert/inventor-approval-policy
mai/shannon/bug-frist-due-date
mai/fritz/bug-fristen-termine
mai/godel/inventor-projects-page
mai/fritz/bug-paliadin-chat
mai/kepler/inventor-profession-vs
mai/noether/inventor-paliadin-in-app
mai/fritz/bulk-team-email-send-to
mai/noether/inventor-local-chat-for
mai/noether/inventor-data-display
mai/fritz/bug-derived-team-members
mai/fritz/bug-sidebar-visibly
mai/noether/inventor-project
mai/shannon/bug-project-team-add
mai/cronus/inventor-dual-control
mai/fritz/bug-edit-mode-on
mai/cronus/inventor-holidays-per
mai/ritchie/phase-h-ai-deadline
No results found.
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: m/paliad#93
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
m's report (2026-05-25 15:02)
While looking at a Rechtsbeschwerdebegründung in the editor sidebar:
The observation
paliad.deadline_rulestoday conflates three distinct concepts into one row:Mixing these forces awkward field labels (
{{rule.submission_code}}for what's really a procedural-event identifier;{{rule.event_type}}for the procedural-event type) and confuses the mental model.Phase: inventor design (READ-ONLY)
Inventor → coder gate per project CLAUDE.md.
Open design questions
Q1 — Scope: relabel vs restructure
A. Cosmetic / relabel only: rename
{{rule.X}}placeholders + UI field labels to use "submission" / "procedural event" wording. Keep the underlyingdeadline_rulestable shape. ~1 coder shift.B. Restructure: introduce a
paliad.procedural_eventstable as the primary entity; demote sequencing rules to asequencing_rulestable linking procedural events; demote legal sources to a join. Migration + service-layer + UI refactor.C. Mixed: rename in code + UI now, plan B as a follow-up that requires its own migration window.
(R) = C: name the entities right immediately (refactor
rule.X→procedural_event.Xin placeholders + UI labels; keep DB shape); design B in detail with a clear migration plan but DON'T ship it in this slice. The cosmetic win is immediate; the structural rework needs its own breathing room.Q2 — "Procedural event" or "Submission" or "Verfahrensschritt" as the umbrella term?
m proposed "procedural event". Some surfaces already use "submission" (Schriftsätze = filings only). The umbrella covers more than just submissions (oral hearings, decisions). Pick one:
VerfahrensschrittorVerfahrensereignis) — covers all of filings, hearings, decisions, replies.paliad.events(audit feed).Lock the term in the design doc + i18n.
Q3 — Migration shape if Q1=B
If restructure ships:
paliad.procedural_events(id, code, name, event_kind, proceeding_type_id, default_party_role, default_legal_source_id, sequence_ordinal, …)— one row per template procedural event.paliad.sequencing_rules(id, procedural_event_id, trigger_event_id, period_months, period_days, …)— extracted timing rules.paliad.legal_sources(id, citation, jurisdiction, pretty_name, …)— extracted.paliad.deadlines.rule_id→paliad.deadlines.procedural_event_id(rename + migrate; live column isrule_id, notdeadline_rule_id— verified B.0 2026-05-26 t-paliad-273);paliad.deadlines.custom_rule_textfrom t-paliad-258 stays as-is.deadline_rulesrow becomes aprocedural_eventsrow + its ownsequencing_rulesrow +legal_sourcesrow.Q4 — Effect on Schriftsätze / Submissions feature
t-paliad-238 + t-paliad-242 + t-paliad-243 built the Submissions/Schriftsätze surface on top of the current
deadline_rulesfiltering. If we restructure:procedural_eventsbyevent_kind IN ('filing', 'reply')(or similar) → same content, cleaner predicate.procedural_event.code— same string, cleaner name.submission_templatesregistry keys offprocedural_event.codeinstead ofdeadline_rules.submission_code— same external behavior.Deliverable
docs/design-procedural-events-model-2026-05-25.mdon branchmai/<inventor>/procedural-events-design. Sections:deadline_rulesschema + every consumer)Hard rules
mai instruct head. Defaults to (R); escalate to head only on material picks (esp. Q1 and Q2).deadline_rules(services + handlers + frontend bundles + i18n keys) before designing — the rename surface is wider than it looks.When done
Push design doc +
mai report completedwith "DESIGN READY FOR REVIEW". Inventor stays parked. Head gates coder shift.Out of scope
paliad.events(audit feed) — that's a separate table; don't touch.B.0 read-only re-validation complete (t-paliad-273)
Branch:
mai/curie/researcher-slice-b-zero· Commit:c4c0a82Findings doc:
docs/design-procedural-events-b0-findings-2026-05-26.mdScope: re-checked every load-bearing premise in cronus's §1 against the live
paliadschema. Nothing written todeadline_rules. B.1 stays blocked pending m's greenlight.Drift since 2026-05-25
deadline_rulesrowssubmission_codeslegal_sourcespaliad.deadlinesrowssubmission_draftsrows10 migrations landed in the design's first 24 h (mig 124..133).
Decisions confirmed / refined
_archived_litigation.*): now moot. Zero_archived_litigation.*rows in the live DB; every activesubmission_codeis 1:1 with one rule row. B.1 backfill becomes a straight 1:1 INSERT — no GROUP-BY collapse step needed.concept_idattaches to procedural event, not sequencing rule: confirmed N:1. Empirical: 53 distinct concepts cover 129 rule rows; 38% of concepts span >1 submission_code (max 15). §4.1'sprocedural_events.concept_idFK shape is already correct — no UNIQUE index. Wording in the design's Q6 should be tightened to "many procedural events → one concept" (mechanical edit, not a structural change; flagged in findings §3).deadline_rules_pre_{091,093,095,098}exists. B.4's drop migration must includeCREATE TABLE paliad.deadline_rules_pre_<N> AS TABLE paliad.deadline_rules;beforeDROP TABLE. Non-negotiable.paliad.deadlines.rule_id(wasdeadline_rule_id— no such column ever existed). Live FK confirmed viainformation_schema.referential_constraints:paliad.deadlines.rule_id → paliad.deadline_rules.id.One decision to surface to m before B.1 starts
78 rule rows have
submission_code IS NULL(231 - 153). They are the "structural / parent-only rows in the proceeding tree". B.1 must explicitly decide whether they (a) get skipped and lost at B.4 drop time [unacceptable], (b) get synthetic codes minted and becomeprocedural_events[recommended], or (c) become free-standingsequencing_ruleswith NULLprocedural_event_id[would relax §4.1's NOT NULL FK]. See findings §7 point 2.Out-of-scope observation
Project CLAUDE.md still says "Migration tracker is
paliad.paliad_schema_migrations". Canonical tracker perinternal/db/migrate.go:9-21,53,105ispaliad.applied_migrations. The legacypaliad_schema_migrationstable is frozen at v106 and only used to bootstrap the new tracker. Separate doc-fix slice recommended; not part of B.0.Status: B.0 COMPLETE, AWAITING B.1 GREENLIGHT. Researcher (curie) parked.