Skip to content

refactor: quality tail finale — baseline cleared to zero - #738

Merged
w1ne merged 41 commits into
developfrom
refactor/complexity-tail-9
Sep 19, 2026
Merged

w1ne merged 41 commits into
developfrom
refactor/complexity-tail-9

Conversation

@w1ne

@w1ne w1ne commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Final quality-ratchet tail: every remaining baseline finding is cleared, so scripts/lib/qualityBaseline.json is now empty (0 findings).

Complexity batch 9 — the last 29 functions, all under 20
imageDimensions, parseTopoRef, buildNurbsFace, classifyHoleFace, buildMaterial (exportGlb), lowerCutout, getMassPropertiesTool, isVariableSweepMetadata, isCurve3DMetadata, buildNode (meshBvh), findPartHost, measureBearingCoplanarity, buildReferenceImageFeatureSpec, bridgeCurves, formatAst, getWire, runFeaTool, fetchPartTool, addPatternFeatureTool, projectionSymbol, computeProjectedUVs, expandCertificatePoses, resolveBendAxis, verifyAnimation, the PricingTiers arrow, exportPartTool, exportModelTool, drawingToCadTool, renderHuman.

api.ts split
createApi 654 → 22 effective lines, api.ts 973 → 232, via namespace modules (apiShapeMethods, apiParamMethods, apiCaptureMethods, apiSurfaceMethods, apiPartsLib, apiModuleNamespaces, apiSupport). Public surface pinned byte-identical: same Object.keys at every level, 197 template literals and 30 error codes as identical multisets, per-symbol AST verbatim check, listApi/skill-globals drift sentinels green. The kinematic imports stay in api.ts on purpose — removing the allowlist entries is slice 8.

Baseline: 31 → 0 findings; cycle baseline unchanged (7). Three characterisation tests added where coverage was missing (getWire, runFeaTool, resolveBendAxis, renderHuman).

Verification for the combined tree: npm run typecheck, npx eslint on all touched files, npm run test:ratchet (13/13 with an empty baseline), npm run qc:lint, npm run qc:build, plus each agent's targeted suites (~600 tests across the 29 modules and the api/drift/site checks). CI runs the full suite.

Next per the spec: with the baseline empty, lower the thresholds to complexity 15 / function 100 lines and repeat once.

w1ne added 30 commits September 19, 2026 23:23
@w1ne
w1ne merged commit 6ec97c1 into develop Sep 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant