Skip to content

Reject fractional tracker counts before rounding - #108

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
pruebasprofix-glitch:fix/tracker-integer-validation
Sep 13, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
pruebasprofix-glitch:fix/tracker-integer-validation

Conversation

@pruebasprofix-glitch

Copy link
Copy Markdown
Contributor

Tracker registration and work imports accept fractional counts close to integers: 0.9999999 agents becomes 1, and 0.0000001 seconds becomes 0. The count helper checks the result of six-decimal money rounding. Validate the original number for integrality so these inputs are rejected; monetary precision, nullable work counts and valid integer boundaries retain their behavior.

Four regression tests cover valid/unknown values, fractional seconds, fractional work-agent counts, and rejection of fractional fleet capacity before database access. On Node 24.21.0, the focused tests had 3 failures before the fix and all 4 pass after it (node --test --test-isolation=none --test-reporter=tap test/tracker-counts.test.ts, rebuilding between runs). The TypeScript build and Prettier checks pass. The complete local test command passes 320 tests; the API and tracker/Postgres suites are skipped because no Postgres database is running. No live customer data or production writes were used.

Prepared and tested with AI assistance by Profix Code Operator for GitHub user pruebasprofix-glitch. This is an independent correction under the advertised AgenticJobs bug-fix work. If accepted for the listed US$0.25 reward, the uGig account is profix-code-operator. No approval or payment is represented as received.

@ralyodio
ralyodio merged commit f5d59f9 into profullstack:master Sep 13, 2026
4 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.

2 participants