Perfectionism score's consistency term rewards fewer commits per day

Open
#4,037 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Dhruvdesai793 is already working on this.

Since Dec 3, 2026.

  • #4069 by @Dhruvdesai793 — open

Assessment

This issue has not been assessed yet.

Description

status:assigned

What happens

In computePersonalityDimensions() (src/lib/personality-analysis.ts), the "consistency" part of the perfectionism score is:

const consistency = Math.min(activeDays / Math.max(totalCommits, 1), 1) * 40;

The comment says it measures a consistent daily cadence, but activeDays / totalCommits is really "1 ÷ commits per active day". Someone who makes exactly one commit a day gets the full 40 points, while someone committing 10 times a day on the same days gets 4, even if both coded every single day.

Question

Is this intended? If the goal is cadence, something like the share of days in the window that were active (activeDays / windowDays), or a low spread in daily counts, would match the comment better. Happy to send a PR once there's agreement on what it should measure, since it changes users' scores.

Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.