# 0033 — Setup — Module Triage

**Milestone:** M3
**Owner:** TBD
**Status:** planning

## Goal

Consolidates 13 legacy issues from the
`MetaDrivenPlatform4AI` repo that share the same module / area label,
so they can be triaged together by the corresponding domain IC.

Module label scope: `module/setup`.

## Acceptance criteria

- [ ] All `ported` children below have a Story or Bug filed in pingcap-pack
- [ ] All filed Stories / Bugs have a linked test (existing or to-write task with scaffold)
- [ ] Engineering review confirms which children are still applicable under the new project's design

## Stories / Bugs (filed as GitHub issues)

13 children classified `ported`. Phase 3/4 will file each as
a Story (capability) or Bug (defect) in this repo and back-reference the
legacy issue. Initial child list:

- [ ] #TBD — legacy MetaDrivenPlatform4AI#1245 — Clean up duplicate Contract field records from discovery/system_tables ID mismatch
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1246 — Populate RecordType.IsDefault from database in GetRecordTypes
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1249 — Extract duplicated splitCamelCase to shared utility
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1250 — Replace hardcoded "_System_Field" with constants.TableField in schema.go
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1251 — "Fix naive PluralLabel computation in registerSystemObjectMetadata"
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1254 — Filter auto-generated layouts in addFieldToLayout
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1262 — Fix naive pluralization in buildObjectMetadata
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1263 — Support consonant doubling in pluralization (Quiz → Quizzes)
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1304 — Parameterize SQL queries in contract test shell scripts to prevent injection
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1305 — Move verify_query_pagination.sh and verify_search_strict.sh under tests/contract/rest_api/
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1386 — Picklist field editor missing Label column (shows API Name only)
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1483 — Picklist field editor missing Label column (shows API Name only)
- [ ] #TBD — legacy MetaDrivenPlatform4AI#2198 — Standard action invocation broken: _System_ActionSchema + _System_ActionInputGuard missing columns since PR #2032 (convertLead/changeOwner/createRecord all 500)

## Non-goals

- Re-port legacy fixes that are no longer relevant under the new project's
  pure-platform design — engineering identifies these case-by-case
- Layer-belonging classification (L0 / L1 / L2) — engineering's job

## History

- 2026-05-03 — created during Phase 2 from clustered orphan issues.

## Stories (filed in Phase 3)

_Pending Phase 3 synthesis._
