You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Three routers are built on tables that were never created #658
Unlike the wrong-schema cluster (#657), these have no table to point at. Each needs a decision, not a rename.
router
queried
refs
nearest real thing
skills.ts (soft skills)
core.soft_skills_ratings
8
core.soft_skills, core.review_soft_skill_votes
profile-import.ts
core.profile_import_data
5
— nothing
profile-completion.ts:259
core.profile_completion_nudges
1
— nothing
GET /v1/profiles/skills/soft/history was confirmed 500 against a live stack. The soft-skills router carries eight references to a table that has never existed, which suggests a whole feature was written against a schema that was designed but not migrated.
The decision each needs
Soft skills history — is the intended source core.soft_skills + core.review_soft_skill_votes (which do exist and are populated by the review wizard), or was a dedicated ratings table planned? If the former, these eight references should be rewritten against the real tables. Related: lib/skill-snapshots.ts already summarises soft-skill ratings for /v1/skills/snapshots, so there may be two half-built versions of the same idea.
Profile import — is the feature live? If not, the router should be removed rather than left returning 500s.
Completion nudges — same question, one reference.
Acceptance
For each: either a migration creating the table, a rewrite against the real one, or removal of the router and its SDK surface
No route in these three files references a table outside the schema
The issue said each of the three needed a decision, not a rename. The deciding evidence turned out to be one question asked three times — does anything reach this? — and the answers split two-to-one.
created — shape read off the router: versioned, append-only self-assessments
core.profile_import_data
3 routes, 3 hooks, ImportReviewScreen at /profile/resume/review, linked from the drawer
created — one staged import per user, 24h expiry stays in the API
core.profile_completion_nudges
1 route, 1 hook, no component — and the upsert named no onConflict target, so it never worked as one
retired
On the specific questions the issue asked:
Soft skills — a dedicated ratings table was the intent, and the router already fully specified it. lib/skill-snapshots.ts is not a second half-built version: it's pure arithmetic over core.skill_snapshots, which exists.
No route in the three files references a table outside the schema
BASELINE_BROKEN loses all three — it is now empty
Verified, not trusted
constraints every CHECK, UNIQUE and FK tried and rejected
live routes 14/14 scripts/audit/test-658.mjs (GET /soft: 500 → 200)
RLS 5/5 scripts/audit/test-658-rls.mjs (two real sessions via PostgREST)
schema guard 6/6 baseline empty
One lesson worth leaving here: my first RLS probe emulated JWT claims in psql, which is not how auth.uid() reads them. It printed SET for every assertion — which looks like output and is not an answer. The committed probe uses two real signed-in sessions.
Activity
fix(types): regenerate types.ts — the local database was right, not d…
fix(inquiries): delete two phantom routes, and stop 404ing the thread…
fix(profile-completion): retire dismissNudge(), which wrote to a tabl…
thinkclay commentedon Sep 10, 2026
Done in #741, with Scaffald/sdk#25 for the retired surface.
The issue said each of the three needed a decision, not a rename. The deciding evidence turned out to be one question asked three times — does anything reach this? — and the answers split two-to-one.
core.soft_skills_ratingscore.profile_import_dataImportReviewScreenat/profile/resume/review, linked from the drawercore.profile_completion_nudgesonConflicttarget, so it never worked as oneOn the specific questions the issue asked:
lib/skill-snapshots.tsis not a second half-built version: it's pure arithmetic overcore.skill_snapshots, which exists.Acceptance
BASELINE_BROKENloses all three — it is now emptyVerified, not trusted
One lesson worth leaving here: my first RLS probe emulated JWT claims in psql, which is not how
auth.uid()reads them. It printedSETfor every assertion — which looks like output and is not an answer. The committed probe uses two real signed-in sessions.ci(types): guard types.ts generation, and finish migration 350's move (…
chore: gitignore fixes, untrack build artifacts, drop dead scripts
chore: gitignore fixes, untrack build artifacts, drop dead scripts (#776