Conversation
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.
Tracker registration and work imports accept fractional counts close to integers:
0.9999999agents becomes1, and0.0000001seconds becomes0. 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.