Repository navigation
feat(platform): improve contributor integrity, privacy and governance - #14
Merged
Merged
Conversation
There was a problem hiding this comment.
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
force-pushed
the
feat/platform-governance-hardening
branch
from
October 30, 2026 01:55
8727c1c to
90ad185
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements comprehensive privacy-by-default safeguards, student self-service GDPR data controls (portability export and permanent erasure), strict contributor progression metric verification, and professional open-source governance policies.
Changes
src/lib/db/schema.ts,drizzle/0006_privacy_and_governance.sql):is_public = false).public_consent_given_attimestamp column to track explicit user opt-in./people) and public passports strictly filter out private accounts.GET /api/user/export: returns full JSON archive of all personal records, contributions, claims, and badges with attachment header.POST /api/user/delete: self-service permanent account erasure with cascade and audit logging.SettingsForm.tsxwith explicit consent description, data export button, and delete account action.src/lib/metrics/contributor-metrics.ts,src/lib/passport/index.ts):PRIVACY.md: Transparent privacy policy covering OAuth scopes, data usage, GDPR rights, and legal review notice.CODE_OF_CONDUCT.md: Contributor Covenant adapted for student engineering community standards and clear enforcement guidelines..github/ISSUE_TEMPLATE/: Added standardizedbug_report.md,feature_request.md, and confidentialsecurity_report.md..github/pull_request_template.md: Standardized PR template with verification checklist.src/lib/privacy.test.tstesting privacy defaults, consent timestamps, and metric integrity.Architecture
Separates private user records from public passport projections. Enforces consent gates at the query layer and ensures only verified, official contributions count toward progression.
Security & Privacy Considerations
Database Migrations
drizzle/0006_privacy_and_governance.sqlALTER TABLE users ALTER COLUMN is_public SET DEFAULT true; ALTER TABLE users DROP COLUMN public_consent_given_at;Testing
npm run lint: passed with 0 errors.npm run typecheck: passed with 0 errors.npm test: 83 passed across 19 test files.npm run build: 21 routes built successfully.Related Issues
Fixes #13