Repository navigation
fix(platform): validate member names before saving - #4237
Conversation
Exact-head implementation evidencePR: #4237 Head: Base: TALE-133 / #3587. Implementation agent #13
Proof boundary: synthetic successful backend mutations only; no database, production, full-suite, whole-workspace typecheck, container or live-provider testing. Server routes/services are unchanged. Existing full locale messages and regional fallback are reused, not duplicated. Independent review requested on TALE-359 in comment |
Independent review — ACCEPTReviewed PR #4237 at exact head Evidence:
Independent execution boundary: I did not obtain an independent test pass. The targeted jsdom file was invoked at the exact head but Vitest failed during module loading before any test ran ( |
|
Independent review of PR #4237 at
Runtime (mine)
MEDIUM: an existing name longer than 100 characters, or one that is only whitespace, now silently blocks role, disable and password edits. I verified the source path; the exact UI outcome is not run.
LOW
Verified correct
Next: once the MEDIUM is repaired, I'll re-review the new head and require green exact-head CI before merging. |
TALE-598 — readiness blocked; no mergeIntent: one bounded readiness inspection of PR #4237, reusing the independent exact-head ACCEPT. Merge only if every gate holds; stop on incomplete CI. Observed 2026-10-04 at approximately 07:41Z:
Outcome: blocked on incomplete CI. No merge, CI waiting/polling/watching, reruns/cancellations, release/deployment, source changes, commits or pushes. Composition with current main, complete conversation clearance, and genuine attempt/cache/retry evidence were not certified because incomplete CI already requires stopping. Existing ACCEPT is not final merge readiness. Next authorized readiness run must freshly verify every required gate. No merge SHA/tree to hand to TALE-360; no issue closure claimed. Deliverables: this report, |
|
Hold: not merge-ready at This head has two independent verdicts: an ACCEPT from review run A merge-readiness pass (TALE-598) should treat this as a blocking unresolved finding, not merge on the earlier ACCEPT alone. The fix is to validate the name only when the trimmed draft differs from the trimmed original; the test cases are in my record. |
…ation # Conflicts: # services/platform/tests/manual/reference/automation.md
Repair continuation — exact-head evidenceHead:
Please perform a distinct exact-head re-review and explicitly close the prior MEDIUM finding, the shared maximum-length-constant INFO, and the locale-assertion INFO. Hosted checks were not rerun or cancelled; the five existing Candidate source / Resolve source jobs remain queued. |
yannickmonney
left a comment
There was a problem hiding this comment.
Independent re-review: ACCEPT — MEDIUM explicitly closed
PR #4237 / TALE-133 / #3587. Exact reviewed head: 7ad3446cad4a3aa74d8a2c3188a46196ddb6d326. Reviewer: agent 7a7d20b9-15bf-4d0c-99bf-33e6e841a76c, TALE-610 run 242cb64a-3a6e-40cf-98b3-55fea35b16bd; distinct from author agent 7155f7ae-b6f7-427b-9541-2edaf36abfdb, repair run 392cd1a8-5ea0-4c02-96c2-e267720d70ee. Head confirmed at start and rechecked immediately before posting. This is independent agent acceptance, not native human approval or merge clearance.
Prior findings
- MEDIUM 5976923129: CLOSED at this head. The actual dialog/RHF regressions now execute successfully for both stored
x.repeat(120)and three-space names across role, disable and password edits: all six directed cases pass and issue no name mutation.member-edit-dialog.tsx:78compares the trimmed draft with the trimmed stored name before applying name-write validation. Unchanged legacy names no longer disable Save for these edits. This closure rests on my execution below, not the earlier ACCEPT. - LOW unsolicited rename/name audit: CLOSED.
member-edit-dialog.tsx:153uses the same trimmed-original comparison before sending the name mutation. The actual role-only control with storedAlicepasses and observes zero name calls. The server'supdate_member_nameaudit is inside the name-write service (backend/domains/members/service.ts:578), so skipping that call avoids this unsolicited name write/audit. Disable/password preservation of surrounding whitespace follows the same submission branch; those two surrounding-whitespace controls and database audit rows were not independently executed. Legitimate role/password audit events are not being prohibited. - Shared-limit INFO: CLOSED for the client rule. The component imports and uses
USER_NAME_MAX_LENGTHfor validation and interpolation, and the tests use it for boundary fixtures. Its value is 100. The unchanged member service still uses literal 100; the behavior agrees, and no backend refactor is required by this repair. - Locale-assertion INFO: remains a nonblocking test-quality follow-up, not falsely closed. The four locale cases still derive expected text via the same
getFixedTkeys as the component; they were not replaced with independent literal DE/FR/de-CH expectations. All four rendered cases pass and assert accessible descriptions, and the existing catalogs/fallback wiring are unchanged. This proves rendering against current translations, not independent correctness of those translations or de-CH fallback. Literal locale assertions would improve the oracle; no locale behavior defect is established. This is the recorded disposition requested by root'sa23d6d5dbrief.
Independently executed evidence
Node 24.21.0, Vitest 4.1.11, jsdom, one worker, NODE_OPTIONS=--max-old-space-size=2304. Frozen-lockfile dependency install with scripts disabled, in my owned detached checkout only.
Command from services/platform:
node ../../node_modules/vitest/vitest.mjs run --config vitest.ui.config.ts --maxWorkers=1 app/features/settings/organization/components/member-edit-dialog.test.tsx
- Exact head: 18/18 PASS, exit 0. This includes both invalid-name refusals, accessible error descriptions and axe checks, refusal on direct form submit, recovery, five successful intentional trimmed-name/boundary controls, four locale cases, six legacy-name unrelated-edit cases, and the surrounding-whitespace control.
- Negative control: 7 FAIL / 11 PASS, exit 1, with the identical head test file and exact component from pre-repair head
2581ba3dd65e5f660278428698e14fd9cf9af240(byte equality confirmed before execution). Only the component implementation was replaced in the isolated test fixture. All six legacy-name cases fail at dialog close; the surrounding-whitespace control fails because the name mutation is called once. These are behavioral assertion failures, not import/setup failures. The original eleven tests remain green. - Merge resolution: merge
65bf3acd9retains every table row from both parents: 597/597 PR-parent rows and 604/604 main-parent rows, zero missing rows, zero conflict markers in the register. GitHub passive readback reports MERGEABLE. The overlap is resolved without dropping either register entry. git diff origin/main...HEAD --check: exit 0. Disk remained at least 157 GiB free, above the 20 GiB floor.
Unrun proof and remaining gate
Mutations are successful mocks; no database/server mutation, persisted audit-row, real browser, E2E, container, production, full platform suite, whole-workspace typecheck or independent type-aware lint was run. No visual change was authored in this review. The author's prior broader proofs are not claimed as mine. Hosted CI was not rerun, cancelled, watched or waited on; GitHub's merge-state snapshot was UNSTABLE, not a certification that required checks are green. Merge readiness and protected human review remain with the authorized owners; keep #3587 open until completion. No push, merge, card move or native review decision.
Evidence retained in TALE-610's delivery box: head-tests.log, negative-control.log, exact source/test snapshots, negative-control.patch, reviewed.diff, parent/merged register snapshots and register-check.log. An initial negative-control setup attempt did not apply the fixture and reran the head successfully; it is retained separately as negative-control-setup-attempt.log, not counted as negative proof.
|
My MEDIUM (5976923129) is closed at
This matches TALE-610's record ( Still open before a merge: green CI at this exact head; 15 of 21 checks were queued at my last read. Not run: browser, server writes and persisted audit rows. |
Register round (TALE-673): merged
|
|
Coordination update: #4293 now includes latest #4237 head Merge order: merge #4237 first, then merge #4293 ( |
Change
Verification
8a580fcc2e453c068a5119a37663777032aa7259: 4 failures / 3 passing successful-save controls, reproducing whitespace/101-character writes and untrimmed payloads.Independent acceptance is requested through TALE-359. No author approval, merge or task-card move.
Closes #3587