Profession vs project responsibility — split project_teams.role into firm-level profession + project-level responsibility #6
Open
opened 2026-05-06 15:02:54 +00:00 by mAi
·
3 comments
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#6
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?
Problem
m's bug report (2026-05-06 16:58):
The team-add form on
/projects/{id}has a role dropdown with values that mix two distinct axes:leadassociatepaof_counsellocal_counselexpertobserverA user IS an Associate or a PA at the firm — that's their career tier, not something you redefine when staffing them on a matter. What changes per project is their responsibility (lead vs. member vs. observer).
Existing data axes (post t-138 + t-139)
paliad.users.global_role—standard | global_admin— tool admin gate onlypaliad.users.job_title— free-text display, never gates anythingpaliad.project_teams.role— current single column doing two jobs (the bug)paliad.partner_unit_members.unit_role— added by t-139 Phase 2:lead | attorney | senior_pa | pa | paralegal— closer to "profession" axis but only meaningful when a unit is involvedApprovalService.canApprove()strict ladder:lead(5) > of_counsel(4) > associate(3) > senior_pa(2) > pa(1) > local_counsel/expert/observer(0)— keys offproject_teams.roleSo
project_teams.roleis currently:Goals
Locked decisions (m, 2026-05-06)
Open design questions (for inventor — m will answer in design pass)
Profession axis
paliad.users.professioncolumn (firm-wide, simple)paliad.partner_unit_members.unit_role(already added in t-139 Phase 2; only set when the user is in a unit)paliad.user_professions(user_id, profession, valid_from)table for historypartner | of_counsel | associate | senior_pa | pa | paralegal. External roles (local_counsel,expert) — are those professions or project-only labels? Likely the latter.Project responsibility axis
lead | member | observer | externalor similar — flat, not a ladder. Inventor proposes, m signs off.memberis the natural choice.Approval ladder coordination (t-138 cross-cut)
project_teams.roleto the new profession column? If yes, all references inApprovalService.canApprove(),approval_role_level(), the policy authoring page, and the inbox SQL move to the new source. Inventor maps the rename.Migration
project_teamsrow carries a value from the legacy enum. The script:project_teams.role→ user's new profession (if not already set), ANDproject_teams.role→ new project_responsibility:lead→leadobserver→observermemberUX
Out of scope (v1)
References
paliad.project_teams.role(current single source) —internal/services/team_service.go, migration 018paliad.partner_unit_members.unit_role(t-139 Phase 2) — migration 055ApprovalService.canApprove()(t-138) —internal/services/approval_service.gointernal/services/approval_levels.go— strict ladder definitionfrontend/src/projects-detail.tsx:114-123— current team-add dropdown options (the UX surface m complained about)docs/design-approvals-2026-05-06.md§2 — the role taxonomy locked at the timeInventor brief
mai/<inventor>/inventor-profession-vs-project-roledocs/design-profession-vs-project-role-2026-05-06.md. Three sub-designs:Inventor design ready for review — kepler shift-1 (2026-05-07)
Doc:
docs/design-profession-vs-project-role-2026-05-07.md(841 lines, commit1eb43ceonmai/kepler/inventor-profession-vs).TL;DR
Split
paliad.project_teams.roleinto:paliad.users.profession— firm-wide career tier (partner | of_counsel | associate | senior_pa | pa | paralegal | NULL). Drives the t-138 approval ladder. NULL = external (level 0).paliad.project_teams.responsibility— per-project (lead | member | observer | external). Defaultmember. Replaces the team-add dropdown values m complained about.Approval ladder evaluated as a tuple-with-gate:
effective_level = profession_level IF responsibility ∈ {lead, member} ELSE 0. Policy grammar from t-138 (required_rolesingle value) stays unchanged.Single migration 057.
project_teams.rolekept as deprecated shadow for one release; dropped in follow-up 058.Verified live state
project_teams: 3 rows, allrole='lead'. Backfill is trivial.partner_unit_members: 20 rows, all defaultunit_role='attorney'. Bridge unchanged.e2e1381) and t-139 phases all merged on main. No blockers.12 open questions — recommendation summary
users.professioncolumnpartner / of_counsel / associate / senior_pa / pa / paralegal(NULL = external)associatelead / member / observer / externalmemberassociate, "Extern" hides field)Recommended implementer
Any pattern-fluent coder. NOT cronus (retired from paliad per memory directive). Sonnet work — 70% mechanical rename, 30% new SQL function + 4 ladder-site rewrites + new team-table layout. Single PR, 6 commits.
Inventor parked
Awaiting m's pass through the 12 questions in §10. After sign-off, design locks and head can dispatch a fresh coder shift on this branch.
DESIGN LOCKED — m approved all 12 recommendations verbatim (2026-05-07 21:35): "lets go with those - but if you are fine, go for shift". m authorized kepler to take the coder shift. Status flipped from READY-FOR-REVIEW to LOCKED.
Proceeding with implementation on
mai/kepler/inventor-profession-vs. Single PR, 6 commits per §7. Will merge to main after final verification.SHIPPED — PR ready for merge 🟢
Kepler completed implementation in single shift. PR: #11
6 commits on
mai/kepler/inventor-profession-vs:ab2530f— Migration 057 (schema + backfill + SQL fn)6506864— ApprovalService + DerivationServicee6937d2— TeamService + UserService + Models + Handlers9184e9b— Reminder + Deadline + Derivation cleanup2af4bf1— Frontend (the bug surface — team-add dropdown)0b4de1c— Deprecation notes + grep sweep+1969 / -247 lines · 23 files ·
mergeable: trueVerification clean:
go build ./...✓go vet ./...✓go test ./...✓ (all 7 packages, including new tests for profession ladder + responsibility gate + NULL trap)bun build.ts✓ (1723 i18n keys, all referenced)Ready for m's merge → Dokploy deploy → migration 057 applies on boot. Follow-up: file t-paliad-149 for migration 058 to drop the deprecated shadow column after one release of soak time.