Open
mAi
wants to merge 8 commits from
mai/kepler/inventorcoder-project into main
pull from: mai/kepler/inventorcoder-project
merge into: m:main
m:main
m:mai/ritchie/db-test-packages-sh-and
m:mai/knuth/retire-skeleton-generator-tier5
m:mai/jason/seed-orphan-drafts-guard
m:mai/knuth/ci-lane-no-dsn
m:mai/jason/seed-script-prod-guard
m:mai/knuth/skeleton-doccomment-completeness
m:mai/brunel/harness-findings-postscript
m:mai/hades/dead-surface-sweep
m:mai/brunel/views-eventkind-flake
m:mai/jason/issue-158-service-address
m:mai/knuth/issue-139-letterhead-vars
m:mai/cronus/issue-148-trigger-picker
m:mai/hades/issue-155-followup
m:mai/hades/issue-155-naming
m:mai/brunel/escalation-visibility-flag
m:mai/jason/alles-overrides-horizon
m:mai/knuth/m-paliad-150-part-b-m
m:mai/hades/issue-161-zustandigkeit
m:mai/cronus/m-paliad-160-per-user
m:mai/jason/issue-163-parties-role
m:mai/ares/issue-162-one-convention
m:mai/brunel/m-paliad-115-the-sweep-s
m:mai/goodall/for-every-check-in-this
m:mai/knuth/land-darwin-s-follow-up
m:mai/diesel/guard-report-lib
m:mai/diesel/issue-139-slice-b
m:mai/diesel/issue-139-letterhead-vars
m:mai/darwin/148-crossparty-ui
m:mai/diesel/m-paliad-158-a-stale
m:mai/darwin/vacation-doc-warnings
m:mai/darwin/upc-vacation-findings
m:mai/darwin/rop-citation-fix
m:mai/darwin/issue-150-holidays
m:mai/ritchie/build-the-block-editor
m:mai/darwin/swallowed-cleanup-errors
m:mai/darwin/formalities-refusal-schema4
m:mai/darwin/drift-caveat-shape
m:mai/darwin/http-smoke-enforcing
m:mai/darwin/s6-round-3
m:mai/darwin/loops-acting-user
m:mai/darwin/s6-rehearsal-round-2
m:mai/darwin/close-the-s6-blockers
m:mai/darwin/rehearse-the-s6-flip
m:mai/knuth/drilling-the-scheduled
m:mai/brunel/21-test-files-under-pkg
m:mai/atlas/design-hlc-com-as
m:mai/hopper3/a-hand-run-can-advance
m:mai/grace4/re-vendor-mai
m:mai/grace3/vendor-the-nine-german
m:mai/head/slug-rule-contract
m:mai/head/vendor-contract-note
m:mai/grace2/wiki-generator-language
m:mai/marco/verify-the-outlook-add
m:mai/pike2/an-explicit-begin-commit
m:mai/noether5/remove-the-paris-p3-and
m:mai/lexy2/r2-backfill-procedural
m:mai/kepler/issue-502-hl-to-hlc
m:mai/hertz2/r4-litigationplanner
m:mai/shannon2/docker-compose-yml-never
m:mai/linus2/r3-finish-the-b-5
m:mai/zeus2/guard-no-live-sql-string
m:mai/galileo2/the-embedded-upc-planner
m:mai/kepler2/slice-b-procedural
m:mai/diesel2/mig044-erwiderung-repair
m:mai/diesel2/fresh-db-replay-past-mig
m:mai/head/gen-upc-snapshot-dead-table
m:mai/noether4/offices-export-regen-201
m:mai/noether4/base-p1-genericize-m
m:mai/hopper/finish-the-half-built
m:mai/pike/dead-migration-tests
m:mai/linus/audit-comment-fix
m:mai/linus/fristensuche-82-search
m:mai/linus/b7-checklists
m:mai/linus/b8-frontend-pure-logic
m:mai/pike/b5-auth-path-coverage
m:mai/diesel/rule-test-resync
m:mai/diesel/regression-m-confirmed
m:mai/patton/b1-make-the-dormant-test
m:mai/athena/test-gap-audit-map
m:mai/diesel/kostenrechner-bug-upc
m:mai/hopper/patentsstyle-styleguide
m:mai/pike/re-render-patentsstyle
m:mai/linus/firm-footer-officelanguag
m:mai/carmack/re-render-deploy
m:mai/diesel/fresh-db-bootstrap
m:mai/pike/follow-up-gen-template
m:mai/turing/docforge-flip
m:mai/cronus/bighand-delimiter-constant
m:mai/ritchie/composer-delete-all
m:mai/atlas/inventor-followup-rules
m:mai/knuth/coder-conditional-rule
m:mai/cronus/inventor-ci-cd-pre
m:mai/demeter/gitster-submission
m:mai/atlas/inventor-per-event-card
m:mai/cronus/inventor-procedural
m:mai/cronus/inventor-backup-mode
m:mai/icarus/inventor-inbox-overhaul
m:mai/atlas/inventor-symmetric-date
m:mai/gauss/inventorcoder-team-admin
m:mai/darwin/roadmap-ccr-en
m:mai/euler/coder-small-ux-polish
m:mai/darwin/fristenrechner-cleanup
m:mai/darwin/fixercoder-priority-bug
m:mai/leibniz/inventor-caldav-multi
m:mai/hertz/inventor-unified-modal
m:mai/archimedes/inventor-excel-data
m:mai/boltzmann/inventor-gap-tolerant
m:mai/copernicus/submission-slice-1
m:mai/fermi/interactive-session
m:mai/hertz/inventor-suggest-changes
m:mai/copernicus/inventor-submission
m:mai/mendel/test-strategy-slice-1
m:mai/ampere/custom-views-improvements
m:mai/planck/paliadin-per-user-rls
m:mai/ritchie/phase-h-ai-deadline
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 "mai/kepler/inventorcoder-project"
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?
Summary
Pairs #47 (Client Role rework — drop "Wir vertreten", rename to "Client Role" on case projects, widen sub-roles) with #50 (auto-derived project codes from the ancestor tree —
EXMPL.OPNT.567.INF.CFIetc.) in one shift.Design doc:
docs/design-project-metadata-rework-2026-05-20.md(head approved all 9 design picks at (R) earlier today).Changes
Migrations
client_role_rework: widenpaliad.projects.our_sideCHECK to seven sub-roles (Active: claimant/applicant/appellant; Reactive: defendant/respondent; Other: third_party/other); drop legacycourt/both, backfill rows to NULL (no-op on prod — verified 2026-05-20 all 12 rows are NULL).projects_opponent_code: addpaliad.projects.opponent_code texton litigation rows; CHECK enforces[A-Z0-9-]{1,16}ANDtype=litigation.Slot history: was 110/111, bumped twice on 2026-05-20 — mig 110 claimed by m/paliad#51 (euler), mig 111 by m/paliad#48 (gauss).
Backend
internal/services/project_code.go—BuildProjectCode(ctx, projectID)(single) +PopulateProjectCodes(ctx, []Project)(bulk, one CTE round-trip). Walks the existingpaliad.projects.pathltree.ProjectService.List,GetByID,ListAncestors,GetTree,LoadCounterclaimChildrenVisible,BuildTreeWithOptions— every service entry-point that returns projects populates.Codebefore returning.validateOurSidewidens;derivedCounterclaimOurSidewidens flip-map (applicant↔respondent, appellant→respondent, third_party/other pass through).submission_vars:{{project.code}}added.ourSideDE/ENswitched to gender-neutral-Seite/-Parteisuffix shape (Klägerseite / Antragstellerseite / …) per head's Q4 soft-note — better legal-prose default for a B2B patent practice and matches the form labels which already used this shape.Frontend
ProjectFormFields:opponent_codeon a newprojekt-fields-litigationblock;our_sidemoved intoprojekt-fields-casere-labelled "Client Role" / "Mandantenrolle" with three<optgroup>s + seven options.project-form.ts:showFieldsForTypetoggles litigation; payload reader/writer + prefill wire opponent_code; our_side is now only emitted fortype=case.fristenrechner.ts:ourSideToPerspectivewidened to seven sub-roles. ProjectOption type literal updated.projects.field.client_role.*andprojects.field.opponent_code.*keys (DE+EN). Legacyprojects.field.our_side.*keys stay one release for cached bundles + Verlauf event-history rendering.Tests (new + widened)
TestProjectCodeSegment,TestAssembleProjectCode,TestPatentLast3,TestSanitizeClientShort,TestProceedingTail,TestValidateOpponentCode,TestValidateOurSideSubRoles— pin pure helpers.TestOurSideTranslationswidened (seven sub-roles, new prose shape; legacy court/both arms return "").TestDerivedCounterclaimOurSidewidened (new flip-map).Verification
go build && go test ./internal/... && cd frontend && bun run buildall clean.our_sidevalues; no opponent_code field existed yet; reference treeExample Client → Siemens v Huawei → EP3456789 → upc.inf.cfiwill derive toEXAMPLE.OPNT.789.INF.CFIonce opponent_code is filled.Test plan
EXMPL.OPNT.<patent-last3>.<case-tail>on cases beneath.referenceon a case still wins (no auto-derivation).Closes #47
Closes #50
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.