Skip to content

feat(internships): introduce supervised internship and cohort management system - #18

Merged
ashishsinghbora merged 1 commit into
mainfrom
feat/internship-management-mvp
Oct 30, 2026
Merged

ashishsinghbora merged 1 commit into
mainfrom
feat/internship-management-mvp

Conversation

@ashishsinghbora

Copy link
Copy Markdown
Contributor

Summary

Implements Stage 5: Internship Management MVP (Milestone 4) to facilitate structured 4–12 week engineering fellowships backed by verified deliverables, milestone tracking, weekly work logs, mentor evaluations, and offer letter generation.

Closes #17

Architectural Invariants & Key Changes

  1. Database Schema & Migrations (drizzle/0008_internship_management.sql):

    • internship_programs: Fellowship definitions, tracks (systems, web_fullstack, devops_infra, developer_experience), duration, prerequisites, and learning outcomes.
    • cohorts: Cohort grouping, capacity, start/end dates, and status.
    • internship_applications: Student applications, statements, availability hours, and review audit trail.
    • internship_enrollments: Active participant enrollment, mentor assignment, offer letter ID, and verification hash.
    • internship_milestones: Bi-weekly milestone deliverables and deadlines.
    • internship_work_logs: Weekly progress logs with verified GitHub PR URLs, hours spent, and mentor feedback.
    • internship_evaluations: Mentor evaluations across 5 structured rubric dimensions (Code Quality, Collaboration, Punctuality, Documentation, Initiative).
  2. Offer Letter Generation & Cryptographic Verification (src/lib/internships/offer-letter.ts):

    • Generates deterministic SHA-256 verification hashes over canonical fellowship terms.
    • Embeds immutable terms of fellowship, open-source licensing requirements, and mentor attribution.
  3. Domain Service (src/lib/internships/service.ts):

    • Pilot program and cohort seeding (seedPilotInternships).
    • Program listing and detail retrieval (listInternshipPrograms).
    • Application submission with strict validation (applyForInternship).
    • Application review and automated offer letter issuance (reviewApplication).
    • Weekly work log submission and GitHub PR URL format validation (submitWorkLog).
    • Rubric-based mentor evaluation and completion marking (evaluateInternship).
    • Contributor portal data retrieval (getInternshipPortalData).
  4. REST APIs & UI Views:

    • GET /api/internships/programs
    • POST /api/internships/apply
    • GET /api/internships/portal
    • POST /api/internships/work-logs
    • Pages: /internships and /internships/portal

Verification

  • Test Suite: 104/104 tests passing across 23 test files (npm test).
  • Type Checking: Clean pass with zero errors (npm run typecheck).
  • Linting: Clean pass with zero errors/warnings (npm run lint).
  • Production Build: 27/27 routes compiled successfully (npm run build).

Copilot AI balanced review requested due to automatic review settings October 30, 2026 02:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@ashishsinghbora
ashishsinghbora merged commit 29ecdde into main Oct 30, 2026
1 check 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.

feat(internships): introduce supervised internship and cohort management system

2 participants