Repository navigation
Description
Legal matter editor blocks valid long descriptions without showing the validation error. Confirmed locally at 44e0dcf254975286c0e9dea443b5cd1ca6b23347.
Administrators cannot make an unrelated edit to a valid legal matter without truncating its retained case context or using the API.
Steps to reproduce:
- Create a legal matter through POST /api/app/legal-holds/matters with a 2500-character description; the current endpoint returns 200 and GET /matters reads the full text back.
- Open that existing matter in the Legal hold editor.
- Change only the matter name. Save stays disabled and no description validation message appears.
- Shorten the description below 2000 characters; Save becomes available.
Expected: A record accepted and returned by the current API remains editable without deleting valid description text. Validation failures must identify the affected field.
Actual: The server accepts descriptions up to 4000 characters while the dialog caps them at 2000. Its Textarea does not render the description error, so an otherwise valid existing record becomes silently unsavable.
Controls: The current real Hono route, membership check, serializable transaction, SQL service, audit writer and outbox ran in retained DB tale_gov_proof_20260928_mukzxkj1. A 4001-character description and 301-character name return 400. The real dialog is populated from the actual 2500-character API readback; shortening it enables Save.
Source:
- services/platform/app/features/settings/governance/legal-hold/upsert-matter-dialog.tsx:50-66,113-143
- services/platform/backend/domains/legal_holds/routes.ts:151-175
Proof: /Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/form-boundaries.test.tsx. Output: /Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/form-boundaries.log. Real API assertions passed; 4/4 component form probes passed.
python3 /Users/yannick/.codex/notes/tale-100-findings/governance-proof/run-governance-api.py
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-100-findings/governance-proof/vitest.config.ts form-boundaries.test.tsx --maxWorkers=1 --reporter=verboseSupporting frozen artifacts:
/Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/governance-api.ts/Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/governance-api.log/Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/governance-api-results.json/Users/yannick/.codex/notes/tale-100-findings/governance-proof/frozen/batch-02/run-governance-api.py
Limits: A new isolated local PostgreSQL fixture database and scratch config directory only. Auth session is synthetic. The component mutation boundary is controlled because the failing dialog never submits. No production data or external request. Fixture config path: /Users/yannick/.codex/notes/tale-100-findings/governance-proof/fixture-config/1790584756102921000.
Deduplication: Parent review included the all-state issue index, the accepted audit ledger and focused live GitHub searches; no matching root cause was found.
Independent parent verification: eight component controls passed across the login, legal matter, DSAR and usage UI probes (parent-batch-02-ui.log). The real governance API, usage-ledger PostgreSQL fixture and provider-catalog schema proofs also passed in fresh retained local fixtures.
Activity